/* Base & Reset */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
  --color-bg: #f8f8f8;
  --color-text: #1a1a1a;
  --color-text-light: #555555;
  --color-primary: #1a1a1a;
  --color-secondary: #e0e0e0;
  --color-accent: #d4b254;
  --color-light: #ffffff;
  --color-dark: #0a0a0a;
  --font-main: 'Jost', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Grain Overlay */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF/C1M8uP/ZtYdiuj26UdAdQQSXQErwSOMzt/XWRWAz5GuSBIkwG1H3FabJ2OsUOUhGC6tK4EMtJO0ttC6IBD3kM0ve0tJwMdSfjZo+EEISaeTr9P3wYrGjXqyC1krcKdhMpxEnt5JetoulscpyzhXN5FRpuPHvbeQaKxFAEB6EN+cYN6xD7RYGpXpNndMmZgM5Dcs3YSNFDHUo2LGfZuukSWyUYirJAdYbF3MfqEKmjM+I2EfhA94iG3L7uKrR+GdWD73ydlIB+6hgref1QTlmgmbM3/LeX5GI1Ux1RWpgxpLuZ2+I+IjzZ8wqE4nilvQdkUdfhzI5QDWy+kw5Wgg2pGpeEVeCCA7b85BO3F9DzxB3cdqvBzWcmzbyMiqhzuYqtHRVG2y4x+KOlnyqla8AoWWpuBoYRxzXrfKuILl6SfiWCbjxoZJUaCBj1CjH7GIaDbc9kqBY3W/Rgjda1iqQcOJu2WW+76pZC9QG7M00dffe9hNnseupFL53r8F7YHSwJWUKP2q+k7RdsxyOB11n0xtOvnW4irMMFNV4H0uqwS5ExsmP9AxbDTc9JwgneAT5vTiUSm1E7BSflSt3bfa1tv8Di3R8n3Af7MNWzs49hmauE2wP+ttrq+AsWpFG2awvsuOqbipWHgtuvuaAE+A1Z/7gC9hesnr+7wqCwG8c5yAg3AL1fm8T9AZtp/bbJGwl1pNrE7RuOX7PeMRUERVaPpEs+yqeoSmuOlokqw49pgomjLeh7icHNlG19yjs6XXOMedYm5xH2YxpV2tc0Ro2jJfxC50ApuxGob7lMsxfTbeUv07TyYxpeLucEH1gNd4IKH2LAg5TdVhlCafZvpskfncCfx8pOhJzd76bJWeYFnFciwcYfubRc12Ip/ppIhA1/mSZ/RxjFDrJC5xifFjJpY2Xl5zXdguFqYyTR1zSp1Y9p+tktDYYSNflcxI0iyO4TPBdlRcpeqjK/piF5bklq77VSEaA+z8qmJTFzIWiitbnzR794USKBUaT0NTEsVjZqLaFVqJoPN9ODG70IPbfBHKK+/q/AWR0tJzYHRULOa4MP+W/HfGadZUbfw177G7j/OGbIs8TahLyynl4X4RinF793Oz+BU0saXtUHrVBFT/DnA3ctNPoGbs4hRIjTok8i+algT1lTHi4SxFvONKNrgQFAq2/gFnWMXgwffgYMJpiKYkmW3tTg3ZQ9Jq+f8XN+A5eeUKHWvJWJ2sgJ1Sop+wwhqFVijqWaJhwtD8MNlSBeWNNWTa5Z5kPZw5+LbVT99wqTdx29lMUH4OIG/D86ruKEauBjvH5xy6um/Sfj7ei6UUVk4AIl3MyD4MSSTOFgSwsH/QJWaQ5as7ZcmgBZkzjjU1UrQ74ci1gWBCSGHtuV1H2mhSnO3Wp/3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==');
  opacity: 0.03;
  z-index: 1000;
  pointer-events: none;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: var(--transition);
  background-color: rgba(248, 248, 248, 0.95);
  backdrop-filter: blur(10px);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.logo span {
  display: inline-block;
  transform: translate(1rem, -1.3rem);
}

.footer-logo span {
  display: inline-block;
  transform: translate(1rem, -0.75rem);
}

.img-inline {
  display: inline-block;
}

header > nav ul {
  display: flex;
  gap: 40px;
}

header > nav ul li a {
  font-size: 0.95rem;
  font-weight: 400;
  position: relative;
}

header > nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-text);
  transition: width 0.3s ease;
}

header > nav ul li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 1px;
  background-color: var(--color-text);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
}

.hero-content {
  flex: 1;
  padding-right: 60px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 30px;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--color-text-light);
  margin-bottom: 60px;
}

.scroll-indicator {
  display: flex;
  align-items: center;
  gap: 15px;
}

.scroll-indicator span {
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.scroll-line {
  width: 60px;
  height: 1px;
  background-color: var(--color-text);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--color-accent);
  animation: scroll-line 2s infinite;
}

@keyframes scroll-line {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}

.hero-image {
  flex: none ;
  position: relative;
  /* overflow: hidden; */
  height: 80vh;
}

.hero-image img {
  width: auto;
  height: 100%;
  object-fit: cover;
}

.band-image {
  position: relative;
  width: 50%!important;
}

.band-video {
  width: 100%!important;
  overflow:visible;
  text-align: right;
}

.video {
  width: 100%!important;
  height: auto!important;
  border-radius: 20px!important;
  transform: translateX(0)!important;
}

.logo-cube-3d {
  position: absolute;
  top: 25%!important;
  left: 0!important;
  transform: translate(-25%, 10%)!important;
} 

.logo-cube-3d img {
  width: 75%!important;
  height: auto!important;
}

/* Section Styles */
section {
  padding: 100px 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  margin-bottom: 60px;
}

.section-number {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-accent);
  margin-right: 20px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 500;
}

.large-text {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 30px;
}

/* About Section */
.about {
  background-color: var(--color-light);
}

.about-content {
  display: flex;
  gap: 60px;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 20px;
}

.about-signature {
  margin-top: 40px;
}

.about-signature img {
  max-width: 150px;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.band-image {
  position: relative;
  width: 50%;
}

.video {
  width: 100%;
  height: auto;
  border-radius: 50px;
}

/* Work Section */
.work {
  background-color: var(--color-bg);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.work-item {
  position: relative;
  overflow: hidden;
}

.work-image {
  margin-bottom: 20px;
  overflow: hidden;
}

.work-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-item:hover .work-image img {
  transform: scale(1.05);
}

.work-info {
  position: relative;
}

.work-info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.work-info p {
  color: var(--color-text-light);
  margin-bottom: 15px;
}

.work-year {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--color-accent);
  margin-bottom: 15px;
}

.work-link {
  display: inline-block;
  font-weight: 500;
  position: relative;
}

.work-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-text);
  transition: width 0.3s ease;
}

.work-link:hover::after {
  width: 100%;
}

.view-all {
  margin-top: 60px;
  text-align: center;
}

.btn-outline {
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-outline:hover {
  background-color: var(--color-text);
  color: var(--color-light);
}

/* Services Section */
.services {
  background-color: var(--color-light);
}

.services-intro {
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 40px;
}

.service-item {
  padding: 30px;
  background-color: var(--color-bg);
  transition: var(--transition);
}

.service-item:hover {
  transform: translateY(-10px);
}

.service-icon {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.service-item h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 15px;
}

.service-item p {
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.service-list {
  list-style: none;
}

.service-list li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.service-list li::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  width: 5px;
  height: 1px;
  background-color: var(--color-accent);
}

/* Testimonials Section */
.testimonials {
  background-color: var(--color-bg);
  padding: 80px 0;
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.testimonial-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-item.active {
  opacity: 1;
}

.testimonial-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 30px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-name {
  font-weight: 500;
  margin-bottom: 5px;
}

.author-position {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.testimonial-prev,
.testimonial-next {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 10px;
  color: var(--color-text);
  transition: var(--transition);
}

.testimonial-prev:hover,
.testimonial-next:hover {
  color: var(--color-accent);
}

.testimonial-dots {
  display: flex;
  gap: 10px;
  margin: 0 20px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--color-accent);
}

/* Contact Section */
.contact {
  background-color: var(--color-light);
}

.contact-content {
  display: flex;
  gap: 60px;
}

.contact-info {
  flex: 1;
}

.contact-details {
  margin: 40px 0;
}

.contact-item {
  margin-bottom: 20px;
}

.contact-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 5px;
}

.contact-value {
  font-size: 1.1rem;
  color: var(--color-text-light);
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-link {
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-link:hover {
  color: var(--color-accent);
}

.contact-form-container {
  flex: 1;
}

.contact-form {
  background-color: var(--color-bg);
  padding: 40px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background-color: var(--color-light);
  border: none;
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--color-text);
  outline: none;
}

.btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--color-text);
  color: var(--color-light);
  border: none;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--color-accent);
}

/* --- tooltip ---*/

#tooltip {
  top: 2rem;
  left: 2rem;
  width: calc(100% - 4rem);
  height: calc(100% - 4rem);
  padding: 4rem 0 0;
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 20x!important;
}

/* --- zoom ---*/
#bloc-zoom {
  position:absolute;
  z-index: 3000;
  display: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255,255,255,0.75);
  border: transparent;
}

#bloc-zoom .nav-close {
  position: absolute;
  top:1rem;
  right: 1rem;
}

#group-zoom {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#group-zoom .mouse {
  position:absolute;
  padding-top: 3rem;
  text-align: center;
  bottom: 0;
}

#bloc-zoom .mouse1 i, .mouse1 p {
  width: 100%;
  text-align: center;
  color: #000;
}

#group-zoom .zoom {
  width: auto;
  height: 500px;
}

#tooltip > nav {
  position:absolute;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  top: 0;
  right: 0;
  width: 100%;
  height: 4rem;
  background-color: rgba(0,0,0,0.1);
}

#tooltip > nav div {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 0.5rem;
}

#tooltip > nav div a {
  position: relative;
  display: inline-block;
  padding: 0.25rem 0.5rem;
  cursor: default;
  color: var(--color-accent);
  font-weight: lighter;
}

#tooltip > nav div a:nth-child(1) {
  margin-right: 3rem;
}

#tooltip > nav div a:nth-child(1)::after {
  position: absolute;
  right: 0;
  width: 2.5rem;
  height: 1px;
  background-color: var(--color-accent);
  content: '';
  transform: translate(2.75rem,0.8rem);
}

#tooltip > nav div a:hover {
  color: #fff;
  background-color: rgba(0,0,0,0.1);
  font-weight: normal;
}

.close-tooltip {
  background-color: transparent;
  border: none;
}

.close-tooltip i {
  opacity: 0.3;
  font-size: 2rem;
  color: var(--color-accent);
  padding: 1rem;
}

.close-tooltip i:hover {
  color: rgba(0,0,0,0.5);
}

/* --- section tooltip ---*/

.group-tooltip {
  position: relative;
  overflow-y: scroll;
  width: 100%;
  height: 100%;
  padding: 1rem 0 2rem;
}

#section-projects, #section-etudes {
  padding: 0 1rem;
}

.title-tooltip {
  display: flex;
  align-items: baseline;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.title-tooltip h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
}

.container-tooltip {
  position: relative;
  width: 100%;
  min-height: 29.75vh;
  background-color: var(--color-bg);
  overflow: hidden;
}

.projet-flex {
  position: relative;
  display:flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}

.projet-flex aside {
  position: relative;
  z-index: 100;
  width: 50px;
  min-height: 100%;
}

.projet-flex aside a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50px;
  min-height: 100%; 
  color: var(--color-accent);
  background-color: rgba(0,0,0,0.02);
}

.projet-flex aside a:hover {
  color: #fff;
  background-color: rgba(0,0,0,0.1);
}

.projet-flex > div {
  width: calc(100% - 100px);
  min-height: 100%;
}

/*--- projets ---*/

#projets {
  position:relative;
  z-index: 0;
  width: 100%;
  height: auto;
  overflow: hidden;
}

#projets ul {
  display: flex;
  flex-wrap:nowrap;
  justify-content:start;
  align-items: center;
  overflow-x: scroll;
}

#projets .projets-item {
  position: relative;
  min-width: 300px;
  width: 300px;
  min-height: 29.75vh;
  height: 40vh;
  padding: 1rem;
  margin: 0.5rem;
  border: 1px solid rgba(0,0,0,0.1);
  background-color: #fff;
}

#projets .projets-item figure {
  width: 100%;
}

#projets .projets-item img {
  width: 100%;
  height: auto;
}

#projets .projets-info div {
  position: relative;
  display: flex;
}

#projets .projets-info div span {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-accent);
  margin-right: 20px;
  margin-block-start: 0.5em;
}

#projets .projets-info div h2 {
  display: block;
  font-size: 1.17em;
  margin-block-start: 0.5em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  font-weight: bold;
  unicode-bidi: isolate;
}

#projets .projets-info p {
  font-size: 1rem;
  font-weight: lighter;
}

#projets .projets-info a {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
}

/*--- code ---*/

#section-etudes {
  padding-bottom: 3rem;
}

#section-etudes .nav-code {
  position: relative;
  z-index: 200;
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: start;
  width: auto;
  top: 0;
  right: 0;
  transform: rotateZ(90deg) translate(calc(100vh - 75px), calc(100vh - 80px));
}

#section-etudes .nav-code ul {
  display: flex;
  flex-direction: row;
  align-items: center;
}

#section-etudes .nav-code li {
  padding: 0;
  margin: 0;
  color: rgba(0,0,0,0.2);
}

#section-etudes .nav-code li a {
  position: relative;
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-top-left-radius: 50%;
  border-top-right-radius: 50%;
  background-color: rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.1);
  border-bottom: none;
}

#section-etudes .nav-code li a:hover, #section-etudes .nav-code .active {
  color: var(--color-accent);
  background-color: #fff;
  border: 1px solid var(--color-accent);
  border-bottom: none;
}

#section-etudes .nav-code li a:hover i, #section-etudes .nav-code .active i {
  color: var(--color-accent);
}

#section-etudes .nav-code li a i {
  font-size: 1.2rem;
  color: rgba(0,0,0,0.2);
}

.container-code {
  position: absolute;
  z-index: 0;
  top:0;
  left: 3rem;
  width: calc(100% - 3rem);
  min-height: 29.5vh;
  background-color: var(--color-bg);
}

#etudes {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

#etudes ul {
  position: relative;
  display: none;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  width: auto;
  overflow-x: scroll;
}

#etudes ul li {
  position: relative;
  width: 265px;
  height: 265px;
  min-width: 265px;
}

#etudes ul li img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

#etudes .active {
  display: flex;
}

/* --- end tooltip ---*/

/* Footer */
footer {
  background-color: var(--color-bg);
  padding: 60px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
}

.footer-text {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent);
}


/* Responsive Styles */
@media (max-width: 1280px) {
  #projets .projets-item {
    width: 300px;
    height: 50vh!important;
  }

  #etudes ul li {
    width: 230px;
    height: 230px;
    min-width: 230px;
  }
}

@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    padding: 150px 20px 80px;
  }
  
  .hero-content {
    padding-right: 0;
    margin-bottom: 60px;
  }

  .band-image {
     width: 65%!important;
  }

  #about {
    padding: 15rem 0 100px!important;
  }

  #tooltip {
    top: 1rem;
    left: 1rem;
    width: calc(100% - 2rem);
    height: calc(100% - 2rem);
  }
  
  .container-tooltip {
    min-height: 47vh;
  }

  #section-etudes .nav-code {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: start;
    width: 100%;
    top: 0;
    right: 0;
    transform: rotateZ(90deg) translate(calc(75vh + 10px), calc(100vh - 23.5vh));
  } 
  
  .container-code {
    min-height: 47vh;
  }

  #projets .projets-item {
    width: 300px;
    height: 62vh!important;
  }

  #etudes ul li {
    width: 275px;
    height: 275px;
    min-width: 275px;
  }
  
}

@media (max-width: 768px) {
  header {
    padding: 20px;
  }
  
  header >  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease;
    z-index: 999;
  }
  
  nav.active {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav ul li {
    margin: 15px 0;
  }
  
  .menu-toggle {
    display: flex;
    z-index: 1000;
  }
  
  .menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.active .bar:nth-child(2) {
    transform: rotate(-45deg);
  }
  
  .hero-title {
    font-size: 3rem;
  }

  .band-image {
    position: relative;
    width: 100%!important;
  }
  
  .band-video {
    width: 100%!important;
    overflow: hidden;
    border-radius: 20px;
  }
  
  .video {
    width: 200%!important;
    height: auto;
    border-radius: 20px!important;
    transform: translateX(-50%)!important;
  }
  
  
  .logo-cube-3d {
    position: absolute;
    top: 60%!important;
    left: 0;
    transform: translate(0, 0)!important;
  }
  
  .logo-cube-3d img {
    width: 100%!important;
    height: auto!important;
  }

  #about {
    padding: 150px 0 100px!important;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-content,
  .contact-content {
    flex-direction: column;
  }
  
  .work-grid {
    grid-template-columns: 1fr;
  }

  #tooltip {
    top: 0.5rem;
    left: 0.5rem;
    width: calc(100% - 1rem);
    height: calc(100% - 1rem);
  } 
  
  .close-tooltip i {
    padding: 0.5rem!important;
  }

  #tooltip > nav {
    height: 3rem;
  }

  #section-etudes .nav-code li a {
    border-top-left-radius: 0;
    border-top-right-radius: 0;  
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    border-top: none;
  }

  #section-etudes .nav-code li a:hover {
    border: 1px solid var(--color-accent);
    border-top: none;
  }

  #section-etudes .nav-code {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: start;
    width: auto;
    top: 0;
    right: 0;
    transform: rotateZ(0) translate(0, 0);
  }

  .container-tooltip {
    min-height: 40vh;
}

  #projets .projets-item {
    position: relative;
    min-width: 195px!important;
    height: 47vh !important;
  }

  #projets .projets-info a {
    position: absolute;
    display: block;
    margin-left: 0;
    bottom: 0.5rem;
    right: 0.5rem;
  }

  #projets .projets-info div span {
    font-size: 1rem;
    font-weight: 200;
  }

  #projets .projets-info div h2 {
    display: block;
    font-size: 1em;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  #etudes ul {
    min-height: 370px;
  } 

  #etudes ul li {
    width: 260px;
    height: 260px;
    min-width: 260px;
  }

  #group-zoom .zoom {
    width: auto;
    height: 300px;
  }

}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .large-text {
    font-size: 1.4rem;
  }
  
  .testimonial-text {
    font-size: 1.2rem;
  }

  .container-code {
    left: 0;
    min-height: 47vh;
    width: 100%;
  }

  #group-zoom .zoom {
    width: auto;
    height: 280px;
  }

}