/* ======================================================
   ÉCRAN D’INTRODUCTION — KODENNART
   ====================================================== */

   #intro-screen[hidden] {
  display: none !important;
}

#testimonial-fanja {
  scroll-margin-top: 7rem;
}

/* Bloque le scroll tant que l’introduction est visible */
body.intro-active {
  overflow: hidden;
}

body.intro-active .cookie-fab {
  visibility: hidden;
  pointer-events: none;
}

/* Couche plein écran placée au-dessus de toute la Home */
.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 11000;

  min-height: 100svh;

  display: grid;
  place-items: center;

  overflow: hidden;

  background: transparent;

  transition: visibility 0s linear 950ms;
}

/* ======================================================
   ATMOSPHÈRE
   ====================================================== */

.intro-atmosphere {
  position: absolute;
  inset: 0;

  overflow: hidden;
  pointer-events: none;

  background:
    radial-gradient(
      ellipse at 5% 15%,
      rgba(240, 90, 40, 0.28) 0%,
      rgba(240, 90, 40, 0.14) 22%,
      transparent 48%
    ),
    radial-gradient(
      ellipse at 94% 75%,
      rgba(32, 184, 208, 0.24) 0%,
      rgba(32, 184, 208, 0.11) 24%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 45% 110%,
      rgba(253, 195, 0, 0.15) 0%,
      transparent 44%
    ),
    var(--color-warm-white);

  transition: opacity 650ms ease 220ms;
}

/* ======================================================
   VAGUES
   ====================================================== */

.intro-wave {
  position: absolute;

  width: 110vw;
  height: 58vh;

  border-radius: 50%;

  opacity: 0.9;

  transform-origin: center;

  filter: blur(1px);

  transition:
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 700ms ease;
}

.intro-wave--warm {
  left: -58vw;
  top: 34vh;

  transform: rotate(18deg);

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0) 8%,
      rgba(255, 255, 255, 0.82) 42%,
      rgba(255, 243, 228, 0.72) 52%,
      rgba(240, 90, 40, 0.16) 67%,
      rgba(255, 255, 255, 0) 84%
    );

  box-shadow:
    0 -2px 0 rgba(255, 255, 255, 0.72),
    0 24px 80px rgba(240, 90, 40, 0.10);
}

.intro-wave--cold {
  right: -62vw;
  bottom: -4vh;

  transform: rotate(-20deg);

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0) 10%,
      rgba(255, 255, 255, 0.78) 40%,
      rgba(226, 249, 252, 0.74) 53%,
      rgba(32, 184, 208, 0.18) 68%,
      rgba(255, 255, 255, 0) 86%
    );

  box-shadow:
    0 -2px 0 rgba(255, 255, 255, 0.74),
    0 24px 90px rgba(32, 184, 208, 0.10);
}

/* ======================================================
   POINT LUMINEUX
   ====================================================== */

.intro-light {
  position: absolute;

  left: -6vw;
  top: 43vh;

  width: 28vw;
  aspect-ratio: 1;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 232, 194, 0.72) 10%,
      rgba(240, 90, 40, 0.24) 30%,
      transparent 68%
    );

  filter: blur(2px);

  opacity: 0.92;

  transform: scale(1);

  animation: intro-light-breath 18s ease-in-out infinite;

  transition:
    transform 850ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 650ms ease;
}

@keyframes intro-light-breath {
  0% {
    transform: scale(1);
    opacity: 0.88;
    filter: blur(2px);
  }

  25% {
    transform: scale(1.03);
    opacity: 0.96;
    filter: blur(1px);
  }

  50% {
    transform: scale(1.06);
    opacity: 1;
    filter: blur(0);
  }

  75% {
    transform: scale(1.03);
    opacity: 0.95;
    filter: blur(1px);
  }

  100% {
    transform: scale(1);
    opacity: 0.88;
    filter: blur(2px);
  }
}

/* ======================================================
   CONTENU
   ====================================================== */

.intro-content {
  position: relative;
  z-index: 2;

  width: min(1400px, calc(100% - 3rem));
  margin-inline: auto;

  text-align: center;

  transform: translateY(-6vh);

  transition:
    opacity 320ms ease,
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ======================================================
   LOGO
   ====================================================== */

.intro-logo {
  width: min(450px, 80vw);
  height: auto;

  margin-inline: auto;
  margin-bottom: 5rem;
}

/* ======================================================
   QUESTION
   ====================================================== */

.intro-question {
  width: 100%;
  max-width: 24ch;

  margin: 0 auto 5rem;

  color: var(--color-neutral-900);

  font-size: clamp(2.7rem, 4.2vw, 4.6rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.06;
  letter-spacing: -0.04em;

  text-align: center;
  text-wrap: balance;
}

.intro-question strong {
  font-weight: var(--font-weight-extrabold);
}

/* ======================================================
   RÉPONSES
   ====================================================== */

.intro-actions {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 1.25rem;
  flex-wrap: wrap;
}

.intro-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: min(340px, 100%);
  min-height: 72px;

  padding: 1rem 2rem;

  border: 3px solid rgba(240, 90, 40, 0.18);
  border-radius: var(--radius-pill);

  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.8),
      rgba(247, 247, 247, 0.9)
    );

  color: var(--color-neutral-900);

  font: inherit;
  font-size: 1.15rem;
  font-weight: var(--font-weight-extrabold);
  line-height: 1;

  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);

  box-shadow: var(--shadow-intro-pill);

  cursor: pointer;

  transition:
    transform 250ms ease,
    border-color 250ms ease,
    background-color 250ms ease,
    box-shadow 250ms ease;
}

.intro-btn span {
  position: relative;
  z-index: 2;
}

/* Reflet gris-bleu */
.intro-btn::before {
  content: "";

  position: absolute;
  z-index: 1;

  top: -90%;
  left: -55%;

  width: 34%;
  height: 280%;

  background:
    linear-gradient(
      115deg,
      transparent 0%,
      rgba(255, 255, 255, 0) 25%,
      rgba(225, 233, 239, 0.30) 38%,
      rgba(255, 255, 255, 0.95) 49%,
      rgba(190, 208, 222, 0.42) 58%,
      rgba(255, 255, 255, 0) 73%,
      transparent 100%
    );

  filter: blur(4px);

  opacity: 0;

  transform: translateX(0) rotate(8deg);

  pointer-events: none;
}

.intro-btn:hover {
  transform:
    translateY(-2px)
    scale(1.02);

  background: var(--color-white);

  border-color: rgba(253, 195, 0, 0.20);

  box-shadow: var(--shadow-intro-pill-hover);
}

.intro-btn:hover::before {
  opacity: 1;

  animation:
    intro-pill-reflection 1.5s
    cubic-bezier(0.22, 0.61, 0.36, 1)
    forwards;
}

@keyframes intro-pill-reflection {
  from {
    transform: translateX(0) rotate(8deg);
  }

  to {
    transform: translateX(500%) rotate(8deg);
  }
}

.intro-btn:active {
  transform: translateY(-1px);
}

.intro-btn:focus-visible {
  outline: 3px solid rgba(32, 184, 208, 0.68);
  outline-offset: 5px;
}

/* ======================================================
   TRANSITION DE SORTIE
   ====================================================== */

.intro-screen.is-leaving {
  pointer-events: none;
}

.intro-screen.is-leaving .intro-content {
  opacity: 0;

  transform:
    translateY(calc(-6vh - 20px))
    scale(0.985);
}

.intro-screen.is-leaving .intro-wave--warm {
  transform:
    translate(-22vw, 28vh)
    rotate(24deg)
    scale(1.18);

  opacity: 0;
}

.intro-screen.is-leaving .intro-wave--cold {
  transform:
    translate(24vw, 24vh)
    rotate(-26deg)
    scale(1.18);

  opacity: 0;
}

.intro-screen.is-leaving .intro-light {
  animation: none;

  transform: scale(2.2);
  opacity: 0;
}

.intro-screen.is-leaving .intro-atmosphere {
  opacity: 0;
}

/* ======================================================
   RESPONSIVE
   ====================================================== */

@media (max-width: 760px) {
  .intro-content {
    width: min(100% - 2rem, 520px);
  }

  .intro-logo {
    width: min(330px, 82vw);
    margin-bottom: 3rem;
  }

  .intro-question {
    max-width: 17ch;

    margin-bottom: 3.5rem;

    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .intro-actions {
    width: min(100%, 430px);
    margin-inline: auto;
  }

  .intro-btn {
    width: 100%;
    min-height: 62px;

    font-size: 1rem;
  }
}

@media (max-width: 420px) {
  .intro-content {
    width: min(100% - 1.5rem, 380px);
  }

  .intro-logo {
    width: min(300px, 86vw);
  }

  .intro-question {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }
}

/* ======================================================
   RÉDUCTION DES MOUVEMENTS
   ====================================================== */

@media (prefers-reduced-motion: reduce) {
  .intro-content,
  .intro-atmosphere,
  .intro-wave,
  .intro-light,
  .intro-btn {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .intro-btn:hover::before {
    animation: none;
    opacity: 0;
  }
}