/* ==================================================================
   1. VARIABLES & SYSTÈME DE DESIGN
   ================================================================== */
:root {
  /* Couleurs */
  --kaki: #8a9a7e;
  --kaki-clair: #a5b29b;
  --kaki-miroir: rgba(138, 154, 126, 0.25);
  --ivoire: #d2cbb6;
  --white-glass: rgba(255, 255, 255, 0.75);
  --border-kaki: rgba(138, 154, 126, 0.2);
  --clr-cta: #8a9a7e;

  /* Ombres & Blur */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.12);
  --glass-blur: blur(15px);

  /* Transitions */
  --t-fast: 0.2s ease;
  --t-normal: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t-slow: 0.8s ease-out;
}

/* ==================================================================
   2. RESET & VERROUILLAGE ANTI-DEZOOM
   ================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  /* Correction majeure : empêche le site de "flotter" sur les côtés */
  overflow-x: hidden; 
  position: relative;
  font-family: 'Montserrat', sans-serif;
  color: var(--kaki);
  background: radial-gradient(
    circle at 50% 30%, 
    #ffffff 0%,
    #f8f9f4 40%,
    #eef2e8 70%,
    #e6ebd9 100%);
  background-attachment: fixed;
  cursor: none !important; /* On cache la souris d'origine partout */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* ================= ANIMATIONS REVEAL ================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ================= NAVBAR & BURGER ================= */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  height: 70px;
  background: var(--white-glass);
  backdrop-filter: blur(15px);
  border-radius: 50px;
  border: 1px solid var(--border-kaki);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 2000;
  box-shadow: var(--shadow-soft);
  box-sizing: border-box;
}

.logo { height: 40px; }

.nav-links { display: flex; gap: 25px; }
.nav-links a {
  color: #8a9a7e;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.burger {
  display: none; 
}
.burger span {
  display: block;
  width: 30px;        
  height: 3px;         
  background-color: var(--kaki); 
  transition: all 0.3s ease-in-out;
}
.nav-links {
  display: flex; 
  gap: 25px;
}

@media (max-width: 992px) {
  .burger {
    display: flex; 
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .nav-links {
    color: #ffffff;
    display: none; 
    flex-direction: column;
    position: absolute;
    top: 75px; 
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: var(--kaki);
    padding: 20px 0;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-kaki);
    text-align: center;
    color: #ffffff;
  }

  .nav-links a {
    color: #fdfdfb;
}

  .nav-links.active {
    display: flex; 
  }
}
@media (max-width: 992px) {
  .burger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .burger.open span:nth-child(2) {
    opacity: 0;
  }
  .burger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

.contact-btn {
  background: var(--kaki);
  color: #ffffff;
  padding: 10px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.contact-btn:hover {
  background: #7a8a6e; 
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 10% 90px;
  position: relative;
  overflow: hidden;
  background: var(--white-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-kaki);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent calc(80px - 1px),
      rgba(138, 154, 126, 0.06) calc(80px - 1px),
      rgba(138, 154, 126, 0.06) 80px
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(80px - 1px),
      rgba(138, 154, 126, 0.06) calc(80px - 1px),
      rgba(138, 154, 126, 0.06) 80px
    );
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
}

.hero-main-title {
  transition: filter 0.2s ease-out, transform 0.2s ease-out;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--kaki);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--ivoire);
  margin-top: 3rem;
  margin-bottom: 5rem;
  font-weight: 300;
}

.cta-btn {
  background: var(--kaki);
  color: #ffffff;
  border: none;
  padding: 1rem 3rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  text-decoration: none; 
}

.cta-btn:hover {
  background: #7a8a6e;
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.deco-title {
  position: absolute;
  font-size: 4rem;
  text-transform: uppercase;
  color: var(--kaki-miroir);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  left: 20%; 
  transform: translateX(-50%);
  width: 100vw; 
  text-align: center;
  opacity: 0.5;
  transition: transform 0.1s linear;
  overflow: hidden; 
}

/* Supers pouvoirs MIROIRS */
.superpowers-normal {
  top: 850px; 
  opacity: 0.5;
}
.superpowers-mirror {
  top: 900px; 
  transform: translateX(-50%) rotate(180deg) scaleY(-1);
  letter-spacing: -0.08em;
  opacity: 0.5;
}

.superpowers-section {
  padding-top: 100px; 
  position: relative;
  z-index: 1;
}

.superpowers-section .section-title {
  margin-top: 0; 
  margin-bottom: 150px; 
  font-size: clamp(3.5rem, 8vw, 80px);
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--kaki);
}

.superpowers-content {
  margin-top: -50px; 
}

.superpowers-wrapper {
  margin-top: 200px; 
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch; 
  gap: 30px;
  padding: 0 30px;
  min-height: auto; 
}

.superpowers-wrapper .box {
  position: relative;
  width: 350px; /* Largeur fixe pour le carré */
  aspect-ratio: 1 / 1; /* Force la hauteur à être égale à la largeur */
  background: rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(138, 154, 126, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column; 
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 800px;
  transition: transform 0.3s ease;
}

.superpowers-wrapper .box:hover {
  transform: translateY(-8px);
}
.superpowers-wrapper h2 {
  font-family: 'Montserrat', sans-serif; /* police demandée */
  font-size: 1.8rem; /* plus petit et élégant */
  font-weight: 700;
  color: var(--kaki);
  margin-bottom: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.superpowers-wrapper .description {
  padding: 25px; 
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center;
}

.superpowers-wrapper p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem; 
  color: var(--kaki-clair);
  line-height: 1.6;
  margin-bottom: 0; 
}

.superpowers-wrapper .list {
  list-style: none;
  display: flex;
  justify-content: center; /* centrage horizontal */
  align-items: center; /* centrage vertical si besoin */
  gap: 35px;
  margin: 1.5rem 0 0 0; /* remonte les icônes + supprime marges latérales */
  padding: 0;
  width: 100%; /* force pleine largeur */
}

.superpowers-wrapper .list li {
  cursor: pointer;
  margin: 0 !important; /* supprime tout décalage parasite */
  padding: 0;
  text-align: center;
}

.superpowers-wrapper i {
  font-size: 2rem;
  color: var(--kaki);
  transition: all 0.4s ease;
}

.projects-section .section-title {
  
  font-size: clamp(3.5rem, 8vw, 80px);
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 80px;
  margin-top: -80px;
  color: #8a9a7e;
  padding-top: 400px; 
  padding-bottom: 20px;
}


.projects-content {
  margin-top: 0 !important;
  padding-bottom: 80px;
}

.projects-normal {
  top: 1700px;
  opacity: 0.5;
  color: var(--kaki-miroir);
}

.projects-mirror {
  top: 1750px;
  transform: translateX(-50%) rotate(180deg) scaleY(-1);
  letter-spacing: -0.08em;
  opacity: 0.5;
  color: var(--kaki-miroir);
}

.carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.6s ease;
}

.carousel-card {
  flex: 0 0 20%;
  background: #fff;
  border-radius: 18px;
  text-decoration: none;
  color: var(--kaki);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.carousel-card:hover {
  transform: translateY(-8px);
}

.carousel-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.carousel-card h3 {
  padding: 18px;
  font-size: 15px;
  text-align: center;
}

.carousel-pagination {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 10px;
}

.carousel-pagination span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8d8d8;
  transition: all 0.3s ease;
  cursor: pointer;
}

.carousel-pagination span.active {
  background: var(--kaki);
  transform: scale(1.3);
}

.scroll-indicator {
  position: absolute;
  bottom: -40px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.6;
  animation: floatArrow 1s infinite ease-in-out;
}

.scroll-indicator span {
  font-size: 22px;
  color: var(--kaki);
}

@keyframes floatArrow {
  0%,100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

@media (max-width: 1200px) {
  .carousel-card { flex: 0 0 25%; }
}

@media (max-width: 992px) {
  .carousel-card { flex: 0 0 33.33%; }
}

@media (max-width: 768px) {
  .carousel-card { flex: 0 0 70%; }
}

.about-section {
  padding: 80px 5%;
}

.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.about-title {
  font-size: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #8a9a7e;
  text-align: center;
  margin-bottom: 0;
}

.about-text {
  flex: 1;
  text-align: center;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #8a9a7e;
  margin: 0 0 2rem 0;
}

.about-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.about-buttons .btn {
  background: var(--kaki);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.about-buttons .btn:hover {
  background: #7a8a6e;
  transform: translateY(-3px);
}

.about-photo {
  max-width: 480px;
  width: 100%;
}

.about-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease;
  display: block;
}

.about-photo img:hover {
  transform: scale(1.03);
}

@media (min-width: 993px) {
  .about-container {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .about-title {
    width: 100%;
    text-align: left;
    margin-bottom: 40px;
  }

  .about-photo {
    flex: 0 0 40%;
  }

  .about-text {
    flex: 1;
    text-align: left;
  }

  .about-text p {
    text-align: justify;
  }

  .about-buttons {
    justify-content: flex-start;
  }
}

.footer {
  padding: 30px 5%;
  background: transparent; 
  border-top: 1px solid var(--border-kaki);
  margin-top: 50px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between; 
  align-items: center;         
  gap: 20px;
}

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

.footer-links a, .copyright {
  color: var(--kaki);
  font-size: 0.75rem; 
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin: 0; 
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column; 
    gap: 15px;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
    gap: 10px;
  }
}

@media (max-width: 1024px) {

  .projects-normal {
    top: 2500px;
    font-size: 3.5rem;
    opacity: 0.5;
  }

  .projects-mirror {
    top: 2550px; /* ← ET ICI */
    font-size: 3.5rem;
    letter-spacing: -0.05em;
    opacity: 0.5;
  }

}
@media (max-width: 600px) {

  .projects-normal {
    top: 2600px;
    font-size: 2rem;
  }

  .projects-mirror {
    top: 2650px;
    font-size: 2rem;
  }

}

@media (max-width: 1024px) {
  .superpowers-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .superpowers-wrapper .box {
    width: 80%;
  }
}

@media (max-width: 600px) {
  .superpowers-wrapper .box {
    width: 90%;
  }
}
@media (max-width: 1024px) {
  .superpowers-wrapper .box {
    width: 260px;
    min-height: 360px;
  }

  .superpowers-wrapper h2 {
    font-size: 1.4rem;
  }

  .superpowers-wrapper p {
    font-size: 0.95rem;
  }

  .superpowers-wrapper .description {
    padding: 20px 18px;
  }

  .superpowers-wrapper i {
    font-size: 1.6rem;
  }
}

/* Le petit point central */
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--kaki);
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  z-index: 10000; 
  pointer-events: none; 
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid var(--kaki);
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
  transition: transform 0.1s ease-out;
}

.floating-shapes {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  z-index: -1; 
  pointer-events: none;
}

.shape {
  position: absolute;
  filter: blur(80px);
  opacity: 0.2;
  border-radius: 50%;
  animation: float 20s infinite alternate ease-in-out;
}

.s1 { width: 400px; height: 400px; background: var(--kaki); top: -10%; left: -10%; }
.s2 { width: 300px; height: 300px; background: var(--ivoire); bottom: 10%; right: -5%; animation-duration: 25s; }
.s3 { width: 500px; height: 500px; background: var(--kaki-clair); top: 40%; left: 30%; opacity: 0.1; }

@keyframes float {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(100px, 50px) rotate(30deg); }
}