/* =================================================================
   JOYEUX ANNIVERSAIRE ROUKAYATH FADEYI
   Thème « Bleu céleste » : ciel lumineux, rose poudré, champagne doré
   Composants 100% propres à ce site.
   ================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Bleus (tirés d'elle : fond bleu Lions, blancs lumineux) */
  --bleu-nuit: #1b2a5b;
  --bleu: #2f6be0;
  --bleu-ciel: #5b8def;
  --ciel-clair: #cfe0ff;
  --ciel-voile: #eaf2ff;

  /* Accents féminins */
  --rose: #f3a9c6;
  --rose-poudre: #fbdce8;
  --or: #e3bd63;
  --or-clair: #f4e4bd;

  /* Neutres */
  --blanc: #ffffff;
  --blanc-nacre: #fbfcff;
  --encre: #243154;
  --encre-douce: #5a6a8c;

  /* Sémantique */
  --bg: var(--blanc-nacre);
  --surface: var(--blanc);
  --texte: var(--encre);
  --texte-doux: var(--encre-douce);
  --primaire: var(--bleu);
  --anneau: rgba(47, 107, 224, 0.45);

  /* Rythme & formes */
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 34px;
  --ombre-douce: 0 18px 50px -24px rgba(27, 42, 91, 0.35);
  --ombre-carte: 0 14px 40px -20px rgba(27, 42, 91, 0.4);
  --gutter: clamp(18px, 5vw, 64px);
  --section-y: clamp(68px, 11vw, 140px);

  /* Typo */
  --f-script: "Great Vibes", cursive;
  --f-serif: "Playfair Display", Georgia, serif;
  --f-sans: "Poppins", system-ui, -apple-system, sans-serif;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--f-sans);
  font-weight: 300;
  color: var(--texte);
  background:
    radial-gradient(1200px 700px at 80% -10%, var(--ciel-voile), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, #fff2f7, transparent 55%),
    var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--f-serif); font-weight: 600; line-height: 1.15; color: var(--bleu-nuit); margin: 0; }
p { margin: 0 0 1rem; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--anneau);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Helpers ---------- */
.section {
  padding: var(--section-y) var(--gutter);
  max-width: 1180px;
  margin-inline: auto;
}

.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(32px, 6vw, 60px); }

.section__title { font-size: clamp(1.9rem, 5vw, 3.1rem); }

.section__sub { color: var(--texte-doux); font-size: 1.02rem; }

.kicker {
  display: inline-block;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bleu);
  background: linear-gradient(120deg, var(--ciel-voile), var(--rose-poudre));
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bleu);
  margin-bottom: 14px;
}
.eyebrow i { color: var(--or); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn--primary {
  color: #fff;
  background: linear-gradient(120deg, var(--bleu), var(--bleu-ciel));
  box-shadow: 0 16px 34px -14px rgba(47, 107, 224, 0.7);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -14px rgba(47, 107, 224, 0.8); }

/* ---------- Photo fondue (blob organique) ---------- */
.blob {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.blob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(130% 115% at 50% 42%, #000 62%, transparent 93%);
  mask-image: radial-gradient(130% 115% at 50% 42%, #000 62%, transparent 93%);
}
.blob--hero {
  width: min(430px, 82vw);
  aspect-ratio: 4 / 5;
  border-radius: 58% 42% 55% 45% / 48% 52% 48% 52%;
  box-shadow: var(--ombre-douce);
  animation: blobMorph 14s ease-in-out infinite;
}
.blob--about {
  width: min(440px, 86vw);
  aspect-ratio: 4 / 5;
  border-radius: 46% 54% 42% 58% / 56% 44% 56% 44%;
  box-shadow: var(--ombre-douce);
  animation: blobMorph 16s ease-in-out infinite reverse;
}
@keyframes blobMorph {
  0%, 100% { border-radius: 58% 42% 55% 45% / 48% 52% 48% 52%; }
  50% { border-radius: 44% 56% 48% 52% / 56% 46% 54% 44%; }
}

/* =================================================================
   INTRO : éclosion
   ================================================================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(900px 600px at 50% 40%, #fff, var(--ciel-voile) 55%, #eef4ff 100%);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.intro.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
body.intro-lock { overflow: hidden; }

.intro__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.intro__content { position: relative; text-align: center; z-index: 2; }
.intro__eyebrow {
  display: block;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--bleu);
  opacity: 0;
  animation: introFade 0.9s ease 0.3s forwards;
}
.intro__mono {
  display: block;
  font-family: var(--f-serif);
  font-size: clamp(3.5rem, 14vw, 7rem);
  color: var(--or);
  line-height: 1;
  opacity: 0;
  transform: scale(0.6);
  animation: introPop 1s cubic-bezier(0.2, 0.8, 0.3, 1) 0.5s forwards;
}
.intro__name {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(2.8rem, 12vw, 6rem);
  line-height: 1.1;
  color: var(--bleu-nuit);
  margin-top: -0.1em;
  padding: 0 0.1em 0.12em;
  opacity: 0;
  animation: introFade 1s ease 1s forwards;
}
.intro__sub {
  display: block;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1rem, 3.5vw, 1.4rem);
  color: var(--texte-doux);
  opacity: 0;
  animation: introFade 1s ease 1.3s forwards;
}
.intro__skip {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--ciel-clair);
  backdrop-filter: blur(6px);
  color: var(--bleu-nuit);
  font-family: var(--f-sans);
  font-size: 0.9rem;
  padding: 11px 24px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0;
  animation: introFade 1s ease 1.6s forwards;
  transition: background 0.2s ease, transform 0.2s ease;
}
.intro__skip:hover { background: #fff; transform: translateX(-50%) translateY(-2px); }

@keyframes introFade { to { opacity: 1; } }
@keyframes introPop { to { opacity: 1; transform: scale(1); } }

/* =================================================================
   FX : confettis + pétales
   ================================================================= */
.fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 970; /* au-dessus du voile et de la mascotte d'accueil */
}

/* =================================================================
   NAVBAR : transparente au repos, blanche au défilement
   ================================================================= */
html { scroll-padding-top: 106px; }

.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 910;
  padding: 29px var(--gutter);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: padding 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.topnav.is-scrolled,
.topnav.is-open {
  padding-top: 21px;
  padding-bottom: 21px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: rgba(207, 224, 255, 0.7);
  box-shadow: 0 10px 30px -18px rgba(27, 42, 91, 0.35);
}
.topnav__inner {
  max-width: 1180px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topnav__brand { display: inline-flex; align-items: center; }
.topnav__name { font-family: var(--f-script); font-size: 1.85rem; line-height: 1; color: var(--bleu-nuit); padding-top: 4px; }

.topnav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  margin: 0;
  padding: 0;
}
.topnav__links a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--bleu-nuit);
  transition: color 0.25s ease;
}
.topnav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--bleu);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.topnav__links a:hover,
.topnav__links a.is-active { color: var(--bleu); }
.topnav__links a:hover::after,
.topnav__links a.is-active::after { transform: scaleX(1); }

.topnav__links a.topnav__cta {
  padding: 9px 20px;
  border-radius: 999px;
  color: #fff;
  background: var(--bleu);
  box-shadow: 0 10px 22px -12px rgba(47, 107, 224, 0.8);
  transition: background 0.25s ease, transform 0.25s ease;
}
.topnav__links a.topnav__cta::after { display: none; }
.topnav__links a.topnav__cta:hover,
.topnav__links a.topnav__cta.is-active { color: #fff; background: var(--bleu-nuit); transform: translateY(-1px); }

/* Burger (mobile) */
.topnav__burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ciel-clair);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  padding: 0;
  place-items: center;
  align-content: center;
  gap: 4px;
}
.topnav__burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--bleu-nuit);
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.topnav.is-open .topnav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.topnav.is-open .topnav__burger span:nth-child(2) { opacity: 0; }
.topnav.is-open .topnav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1000px) {
  .topnav__burger { display: grid; }
  .topnav__links {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--ciel-clair);
    border-radius: 22px;
    box-shadow: var(--ombre-carte);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.3s ease, visibility 0.25s;
  }
  .topnav.is-open .topnav__links { opacity: 1; visibility: visible; transform: none; }
  .topnav__links a { display: block; padding: 12px 16px; border-radius: 14px; }
  .topnav__links a::after { display: none; }
  .topnav__links a:hover,
  .topnav__links a.is-active { background: var(--ciel-voile); }
  .topnav__links a.topnav__cta { margin-top: 6px; text-align: center; }
  .topnav__name { font-size: 1.6rem; }
}

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(90px, 14vh, 150px) var(--gutter) 70px;
  overflow: hidden;
}
/* Fond du héro : dégradé blanc-bleu lumineux (plus de photo) */
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__bg-img {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 520px at 82% 8%, var(--ciel-clair), transparent 62%),
    radial-gradient(620px 460px at 8% 24%, #fdeef4, transparent 58%),
    linear-gradient(150deg, #dce9ff 0%, #eef4ff 42%, var(--blanc-nacre) 100%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* fondu vers la section suivante */
  background: linear-gradient(0deg, var(--bg) 0%, rgba(251, 252, 255, 0) 20%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(30px, 6vw, 70px);
  max-width: 1180px;
  margin-inline: auto;
  width: 100%;
}
.hero__hi {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 4vw, 2rem);
  color: var(--texte-doux);
  margin: 0;
}
.hero__name {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(3.6rem, 15vw, 8rem);
  line-height: 1.08;
  color: var(--bleu);
  margin: 2px 0 6px;
  padding: 0.06em 0.12em 0.16em;
  overflow: visible;
}
.hero__role {
  font-family: var(--f-sans);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--bleu);
  margin: 0 0 18px;
}
.hero__lead { max-width: 440px; color: var(--texte-doux); margin-bottom: 28px; }

.hero__photo { position: relative; justify-self: center; }

/* Carrousel du héro : fondu enchaîné + lent zoom arrière dans le blob */
.hero-carou__img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.14);
  transition: opacity 1.2s ease, transform 6.5s cubic-bezier(0.2, 0.6, 0.3, 1);
}
.hero-carou__img.is-active { opacity: 1; transform: scale(1); }
.hero-carou__dots {
  position: absolute;
  left: 50%;
  bottom: -26px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero-carou__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(47, 107, 224, 0.3);
  cursor: pointer;
  transition: width 0.35s ease, background 0.35s ease;
}
.hero-carou__dots button.is-active { width: 28px; background: var(--bleu); }
/* zone tactile confortable autour des petits points */
.hero-carou__dots button { position: relative; }
.hero-carou__dots button::before { content: ""; position: absolute; inset: -14px -4px; }
.hero__badge {
  position: absolute;
  bottom: 12%;
  left: -6%;
  background: #fff;
  color: var(--bleu-nuit);
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  box-shadow: var(--ombre-carte);
}
.hero__badge i { color: var(--or); }

.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--bleu-ciel);
  border-radius: 999px;
  z-index: 2;
}
.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  background: var(--bleu);
  border-radius: 50%;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* =================================================================
   ABOUT
   ================================================================= */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}
.about__photo { justify-self: center; }
.about__text p { color: var(--texte-doux); }
.about__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
}
.about__tags li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--bleu-nuit);
  background: var(--surface);
  border: 1px solid var(--ciel-clair);
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: var(--ombre-douce);
}
.about__tags i { color: var(--rose); }

/* =================================================================
   GALERIE « panneaux déployants » (accordéon) + lightbox
   ================================================================= */
.accord {
  display: flex;
  gap: 12px;
  height: clamp(360px, 60vh, 520px);
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}
.accord__panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border: none;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--ciel-voile);
  background-size: cover;
  background-position: center;
  box-shadow: var(--ombre-douce);
  filter: saturate(0.92);
  transition: flex 0.6s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.4s ease, filter 0.4s ease;
}
.accord__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(27, 42, 91, 0.55) 0%, transparent 45%),
    linear-gradient(120deg, rgba(47, 107, 224, 0.28), rgba(243, 169, 198, 0.18));
  opacity: 1;
  transition: opacity 0.5s ease;
}
.accord__panel.is-active {
  flex: 7 1 0;
  box-shadow: var(--ombre-carte);
  filter: saturate(1.05);
}
.accord__panel.is-active::after { opacity: 0.35; }

.accord__meta {
  position: absolute;
  left: 18px;
  bottom: 16px;
  right: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
}
.accord__panel.is-active .accord__meta { opacity: 1; transform: none; }
.accord__num {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  font-variant-numeric: tabular-nums;
}
.accord__open {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--bleu);
  box-shadow: var(--ombre-douce);
}
/* bandeau vertical discret sur les panneaux repliés */
.accord__spine {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.accord__spine i { color: #fff; font-size: 1.1rem; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)); }
.accord__panel.is-active .accord__spine { opacity: 0; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  background: rgba(21, 31, 62, 0.82);
  backdrop-filter: blur(8px);
  padding: 4vw;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: min(92vw, 900px);
  max-height: 84vh;
  border-radius: var(--r-md);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
  animation: lbIn 0.35s ease;
}
@keyframes lbIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
.lightbox__btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox__close { top: 4vw; right: 4vw; }
.lightbox__prev { left: 3vw; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 3vw; top: 50%; transform: translateY(-50%); }
.lightbox__counter {
  position: absolute;
  bottom: 4vw;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-family: var(--f-sans);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

/* =================================================================
   GÂTEAU À SOUFFLER
   ================================================================= */
.cake { text-align: center; }
.cake__stage { display: flex; flex-direction: column; align-items: center; }
.cake__scene {
  position: relative;
  width: 260px;
  height: 230px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.cake__plate {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 26px;
  background: linear-gradient(#fff, #e9eefb);
  border-radius: 50%;
  box-shadow: var(--ombre-carte);
}
.cake__body { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); width: 200px; }
.cake__layer { border-radius: 16px 16px 10px 10px; }
.cake__layer--bottom {
  height: 86px;
  background: linear-gradient(120deg, var(--bleu-ciel), var(--bleu));
  box-shadow: inset 0 -10px 0 rgba(27, 42, 91, 0.18);
}
.cake__layer--top {
  position: relative;
  height: 58px;
  width: 170px;
  margin: 0 auto;
  margin-top: -6px;
  background: linear-gradient(120deg, #fff, var(--rose-poudre));
}
.cake__drip {
  position: absolute;
  top: 52px;
  left: 15px;
  right: 15px;
  height: 20px;
  background:
    radial-gradient(circle at 10px 0, var(--rose) 9px, transparent 10px),
    radial-gradient(circle at 40px 0, var(--rose) 11px, transparent 12px),
    radial-gradient(circle at 75px 0, var(--rose) 9px, transparent 10px),
    radial-gradient(circle at 110px 0, var(--rose) 12px, transparent 13px),
    radial-gradient(circle at 145px 0, var(--rose) 9px, transparent 10px);
}
.cake__candles {
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 24px;
}
.candle {
  position: relative;
  width: 8px;
  height: 46px;
  border-radius: 4px;
  background: repeating-linear-gradient(45deg, var(--or) 0 5px, #fff 5px 10px);
}
.flame {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 18px;
  background: radial-gradient(circle at 50% 70%, #fff 0, var(--or) 45%, #ff8a3d 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: 0 0 16px 4px rgba(255, 170, 70, 0.8);
  transform-origin: center bottom;
  animation: flicker 0.9s ease-in-out infinite alternate;
}
@keyframes flicker {
  from { transform: translateX(-50%) scale(1) rotate(-3deg); opacity: 1; }
  to { transform: translateX(-50%) scale(1.12) rotate(3deg); opacity: 0.85; }
}
.cake__scene.is-blown .flame { opacity: 0; transform: translateX(-50%) scale(0.2); box-shadow: none; transition: opacity 0.5s ease, transform 0.5s ease; }
.cake__scene.is-blown .flame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #9aa6c2;
  border-radius: 50%;
  filter: blur(3px);
  opacity: 0.4;
  animation: smoke 1.2s ease-out forwards;
}
@keyframes smoke { to { transform: translateY(-30px) scale(1.6); opacity: 0; } }

.cake__hint { color: var(--texte-doux); margin-top: 28px; }
.cake__hint i { color: var(--bleu); }
.cake__wish {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--bleu-nuit);
  margin-top: 24px;
  max-width: 460px;
  animation: introFade 0.8s ease;
}

/* =================================================================
   BOÎTE À SOUHAITS
   ================================================================= */
.gift { text-align: center; }
.gift__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(56px, 8vw, 84px) var(--gutter) clamp(44px, 6vw, 64px);
  border-radius: var(--r-lg);
  border: 1px solid var(--bleu);
  color: #fff;
  background:
    radial-gradient(520px 300px at 50% 0%, rgba(255, 255, 255, 0.2), transparent 70%),
    radial-gradient(640px 340px at 50% 115%, rgba(243, 169, 198, 0.28), transparent 70%),
    linear-gradient(180deg, #2a5bd0 0%, #1f3f9a 55%, var(--bleu-nuit) 100%);
  box-shadow: var(--ombre-carte);
}
.gift .kicker { color: #fff; background: rgba(255, 255, 255, 0.14); }
.gift .section__title { color: #fff; }
.gift__box {
  position: relative;
  width: 180px;
  height: 160px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.gift__box:hover { transform: translateY(-4px); }
.gift__base {
  position: absolute;
  bottom: 0;
  width: 180px;
  height: 118px;
  background: linear-gradient(120deg, #ffffff, #dfe9ff);
  border-radius: 10px;
  box-shadow: 0 22px 40px -18px rgba(5, 12, 40, 0.7);
}
.gift__ribbon-v {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 118px;
  background: linear-gradient(90deg, #d6a640, #f3d68c 50%, #d6a640);
  z-index: 2;
}
.gift__lid {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 196px;
  height: 44px;
  /* couvercle blanc traversé par le ruban doré */
  background:
    linear-gradient(90deg, transparent 43%, #e0b453 43%, #f3d68c 50%, #e0b453 57%, transparent 57%),
    linear-gradient(120deg, #ffffff, #e6eeff);
  border-radius: 8px;
  box-shadow: 0 8px 14px -8px rgba(5, 12, 40, 0.6);
  z-index: 3;
  transition: transform 0.6s cubic-bezier(0.3, 1.4, 0.5, 1), opacity 0.6s ease;
}
.gift__bow {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 30px;
  background: var(--rose);
  border-radius: 50% 50% 48% 48%;
  box-shadow: -22px 2px 0 -4px var(--rose), 22px 2px 0 -4px var(--rose);
}
.gift__box.is-open .gift__lid { transform: translateX(-50%) translateY(-70px) rotate(-14deg); opacity: 0; }
.gift__box.is-open .gift__ribbon-v { opacity: 0; transition: opacity 0.4s ease; }

.gift__reveal { max-width: 560px; margin-top: 40px; }
.gift__reveal p { color: rgba(255, 255, 255, 0.85); }
.gift__hint { color: rgba(255, 255, 255, 0.85); margin-top: 24px; }
.gift__hint i { color: var(--or-clair); }

/* =================================================================
   VŒUX : carrousel 3D (coverflow)
   ================================================================= */
.carou3d {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  perspective: 1600px;
  /* coupe les cartes latérales qui dépassent (évite le scroll horizontal sur mobile) */
  overflow: hidden;
  padding-inline: 8px;
}
.carou3d__stage {
  position: relative;
  height: 430px;
  transform-style: preserve-3d;
  touch-action: pan-y;
}
.wish-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(430px, 86vw);
  height: 380px;
  transform: translate(-50%, -50%);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.6s ease, filter 0.6s ease;
  will-change: transform, opacity;
  cursor: pointer;
}
.wish-card__inner {
  position: relative;
  height: 100%;
  background: linear-gradient(160deg, #fff, var(--ciel-voile));
  border: 1px solid var(--bleu);
  border-radius: var(--r-lg);
  box-shadow: var(--ombre-carte);
  overflow: hidden;
  perspective: 900px;
}

/* --- La lettre (cachée tant que l'enveloppe est fermée) --- */
.wish-card__letter {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 34px 30px 26px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.wish-card.is-open .wish-card__letter {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease 0.3s, transform 0.5s ease 0.3s;
}

/* --- L'enveloppe fermée --- */
.env {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: #f7faff;
  transition: opacity 0.25s ease;
}
/* grain de papier très léger */
.env::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.18 0 0 0 0 0.3 0 0 0 0 0.6 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* corps : rabats latéraux + rabat du bas, plis éclairés */
.env__body,
.env__flap { position: absolute; left: 0; width: 100%; overflow: visible; }
.env__body { inset: 0; height: 100%; }
.env__side { fill: #edf3ff; stroke: rgba(47, 107, 224, 0.14); stroke-width: 1; vector-effect: non-scaling-stroke; }
.env__bottom { fill: #e6eeff; }
.env__crease { fill: none; stroke: #fff; stroke-width: 1.6; vector-effect: non-scaling-stroke; opacity: 0.9; }

/* rabat supérieur, pointe arrondie, qui se soulève */
.env__flap {
  top: 0;
  height: 50%;
  z-index: 1;
  transform-origin: top center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease 0.3s;
  filter: drop-shadow(0 8px 10px rgba(27, 42, 91, 0.14));
}
.env__flap path:first-child { fill: #dbe6ff; }
.env__flap-edge { stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: 0.8; }
.wish-card.is-front:not(.is-open):hover .env__flap { transform: rotateX(-16deg); }

/* sceau de cire doré */
.env__seal {
  position: absolute;
  top: 47%;
  left: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  display: grid;
  place-items: center;
  border-radius: 48% 52% 46% 54% / 53% 47% 55% 45%;
  background: radial-gradient(circle at 34% 28%, #f6dc9b 0%, #e0b453 42%, #c08d2c 100%);
  box-shadow:
    inset 0 -3px 6px rgba(120, 80, 15, 0.35),
    inset 0 3px 5px rgba(255, 245, 210, 0.6),
    0 8px 16px -6px rgba(150, 105, 25, 0.75);
  transition: transform 0.35s ease, opacity 0.3s ease;
}
.env__seal::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 248, 225, 0.55);
  box-shadow: inset 0 1px 2px rgba(120, 80, 15, 0.3);
}
.env__seal span {
  position: relative;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #fff8e6;
  text-shadow: 0 -1px 0 rgba(120, 80, 15, 0.55), 0 1px 0 rgba(255, 245, 210, 0.4);
}

/* adresse : « Pour Roukayath » + expéditeur */
.env__address {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 66px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  transition: opacity 0.25s ease;
}
.env__to { font-family: var(--f-script); font-size: 2.1rem; line-height: 1.1; color: var(--bleu); }
.env__from { font-size: 0.82rem; color: var(--texte-doux); }
.env__from strong { font-weight: 600; color: var(--bleu-nuit); }

.env__cta {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(47, 107, 224, 0.35);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bleu);
  box-shadow: 0 6px 14px -8px rgba(27, 42, 91, 0.4);
  transition: opacity 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.wish-card.is-front:not(.is-open):hover .env__cta { background: var(--bleu); color: #fff; }
.wish-card.is-front:not(.is-open) .env__seal { animation: sealPulse 2.6s ease-in-out infinite; }
@keyframes sealPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

/* --- Ouverture : le rabat bascule, le sceau saute, la lettre apparaît --- */
.wish-card.is-open .env { opacity: 0; transition: opacity 0.45s ease 0.35s; }
.wish-card.is-open .env__flap { transform: rotateX(180deg); opacity: 0; }
.wish-card.is-open .env__seal { transform: scale(0.3) rotate(-20deg); opacity: 0; animation: none; }
.wish-card.is-open .env__address,
.wish-card.is-open .env__cta { opacity: 0; }

.wish-card__head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.wish-card__avatar {
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: var(--bleu);
}
.wish-card__name { font-family: var(--f-serif); font-weight: 600; font-size: 1.08rem; color: var(--bleu-nuit); line-height: 1.2; }
.wish-card__role { font-size: 0.8rem; color: var(--bleu); font-weight: 500; }
.wish-card__quote { color: var(--or); font-size: 1.3rem; margin-bottom: 6px; }
.wish-card__msg {
  font-size: 0.95rem;
  color: var(--texte-doux);
  white-space: pre-line;
  line-height: 1.6;
  overflow: hidden;
}
.wish-card.is-front .wish-card__inner { box-shadow: 0 30px 60px -24px rgba(27, 42, 91, 0.55); }
.wish-card.is-open .wish-card__msg { overflow-y: auto; }

/* flèches + points */
.carou3d__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--ciel-clair);
  background: #fff;
  color: var(--bleu-nuit);
  cursor: pointer;
  font-size: 1rem;
  display: grid;
  place-items: center;
  box-shadow: var(--ombre-carte);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.carou3d__nav:hover { background: var(--bleu); color: #fff; }
.carou3d__prev { left: 0; }
.carou3d__next { right: 0; }
.carou3d__dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.carou3d__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--ciel-clair);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}
.carou3d__dot.is-active { background: var(--bleu); transform: scale(1.4); }

/* =================================================================
   COMPTE À REBOURS
   ================================================================= */
.countdown { text-align: center; }
.countdown__inner {
  background: linear-gradient(135deg, var(--bleu-nuit), #2b3e78 60%, var(--bleu));
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(40px, 7vw, 72px) var(--gutter);
  box-shadow: var(--ombre-carte);
  position: relative;
  overflow: hidden;
}
.countdown__inner .kicker { color: #fff; background: rgba(255, 255, 255, 0.14); }
.countdown__inner .section__title { color: #fff; margin-bottom: 36px; }
.countdown__grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 30px);
}
.cd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-md);
  padding: 20px clamp(16px, 3vw, 30px);
  min-width: 92px;
}
.cd__num {
  display: block;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1;
  color: var(--or-clair);
  font-variant-numeric: tabular-nums;
}
.cd__label { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.8; }
.countdown__note { margin-top: 30px; font-style: italic; font-family: var(--f-serif); opacity: 0.9; }
.countdown__note.is-today {
  margin-top: 8px;
  font-style: normal;
  font-size: clamp(1.3rem, 4vw, 2rem);
  color: var(--or-clair);
  opacity: 1;
}

/* =================================================================
   FOOTER
   ================================================================= */
.footer {
  text-align: center;
  padding: clamp(50px, 9vw, 90px) var(--gutter) 60px;
}
.footer__script { font-family: var(--f-script); font-size: clamp(2.4rem, 8vw, 4rem); color: var(--bleu-nuit); margin: 0; }
.footer__sign { color: var(--bleu); font-weight: 500; margin: 6px 0 2px; }
.footer__date { color: var(--texte-doux); font-size: 0.88rem; }

/* =================================================================
   BOUTONS FLOTTANTS
   ================================================================= */
.fab {
  position: fixed;
  right: clamp(16px, 4vw, 30px);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.15rem;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--ombre-carte);
  z-index: 950;
  transition: transform 0.25s ease, opacity 0.3s ease, background 0.25s ease;
}
.fab--music { bottom: calc(clamp(16px, 4vw, 30px) + 66px); background: linear-gradient(135deg, var(--bleu), var(--bleu-ciel)); }
.fab--music.playing { background: linear-gradient(135deg, var(--rose), var(--bleu-ciel)); }
.fab--music.playing i { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fab--top { bottom: clamp(16px, 4vw, 30px); background: linear-gradient(135deg, var(--bleu-nuit), var(--bleu)); opacity: 0; pointer-events: none; transform: translateY(14px); }
.fab--top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.fab:hover { transform: translateY(-3px); }

/* =================================================================
   BALLONS 3D À ÉCLATER
   ================================================================= */
.balloons__stage {
  position: relative;
  height: clamp(380px, 62vh, 560px);
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(520px 320px at 50% 0%, rgba(255, 255, 255, 0.22), transparent 70%),
    radial-gradient(700px 380px at 50% 115%, rgba(243, 169, 198, 0.28), transparent 70%),
    linear-gradient(180deg, #2a5bd0 0%, #1f3f9a 55%, var(--bleu-nuit) 100%);
  border: 1px solid var(--bleu);
  box-shadow: var(--ombre-douce);
}
.balloons__canvas { display: block; width: 100%; height: 100%; touch-action: manipulation; }
.balloons__status {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bleu-nuit);
  box-shadow: var(--ombre-douce);
  white-space: nowrap;
  pointer-events: none;
}
.balloons__status:empty { display: none; }
.balloons__again { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.balloons__again[hidden] { display: none; }

/* Modale « surprise » */
.surprise {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(21, 31, 62, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: introFade 0.25s ease;
}
.surprise[hidden] { display: none; }
.surprise__card {
  width: min(380px, 100%);
  padding: 34px 30px 28px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--bleu);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 70px -24px rgba(27, 42, 91, 0.6);
  animation: surprisePop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes surprisePop { from { opacity: 0; transform: scale(0.7) translateY(20px); } to { opacity: 1; transform: none; } }
.surprise__icon { display: block; font-size: 2.8rem; line-height: 1; margin-bottom: 10px; }
.surprise__title { font-family: var(--f-script); font-weight: 400; font-size: 2.4rem; color: var(--bleu); }
.surprise__text { margin: 8px 0 22px; font-size: 1.05rem; color: var(--bleu-nuit); }

/* =================================================================
   SOUFFLE AU MICRO
   ================================================================= */
.cake__mic { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 22px; }
.cake__mic-note { margin: 0; font-size: 0.82rem; color: var(--texte-doux); }
.cake__meter {
  width: 200px;
  height: 8px;
  border-radius: 999px;
  background: var(--ciel-voile);
  border: 1px solid var(--ciel-clair);
  overflow: hidden;
}
.cake__meter[hidden] { display: none; }
.cake__meter span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--bleu);
  transition: width 0.08s linear;
}
#cakeMic.is-listening { background: var(--rose); box-shadow: 0 0 0 0 rgba(243, 169, 198, 0.7); animation: micPulse 1.2s ease-out infinite; }
@keyframes micPulse { to { box-shadow: 0 0 0 16px rgba(243, 169, 198, 0); } }
#cakeMic:disabled { opacity: 0.6; cursor: default; }
/* le vent du souffle penche et réduit les flammes */
.flame { rotate: calc(var(--wind, 0) * -38deg); scale: calc(1 - var(--wind, 0) * 0.45); transform-origin: center bottom; }

/* =================================================================
   PHOTOBOOTH
   ================================================================= */
.booth__frame {
  position: relative;
  width: min(720px, 100%);
  aspect-ratio: 4 / 3;
  margin-inline: auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--bleu-nuit), #2b3e78);
  border: 1px solid var(--bleu);
  box-shadow: var(--ombre-carte);
}
.booth__video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.booth__canvas, .booth__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.booth__shot { object-fit: contain; background: var(--bleu-nuit); }
.booth__shot[hidden] { display: none; }
.booth__idle {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
  color: #fff;
}
.booth__idle[hidden] { display: none; }
.booth__icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 2.2rem;
  color: var(--or-clair);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.booth__note { margin: 0; font-size: 0.85rem; opacity: 0.8; }
.booth__count {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(5rem, 18vw, 9rem);
  color: #fff;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
}
.booth__count:empty { display: none; }
.booth__count span { animation: countPop 0.9s ease forwards; }
@keyframes countPop { from { opacity: 0; transform: scale(1.6); } 30% { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0.8); } }
.booth__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.booth__flash.is-on { animation: boothFlash 0.6s ease-out; }
@keyframes boothFlash { from { opacity: 0.95; } to { opacity: 0; } }

.booth__controls, .booth__result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}
.booth__controls[hidden], .booth__result[hidden] { display: none; }
.booth__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.booth__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--ciel-clair);
  background: #fff;
  color: var(--texte-doux);
  font-family: var(--f-sans);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.booth__chip.is-on { background: var(--ciel-voile); border-color: var(--bleu); color: var(--bleu); }
.booth__ghost { background: #fff; color: var(--bleu-nuit); border: 1px solid var(--ciel-clair); }
.booth__ghost:hover { background: var(--ciel-voile); }
.booth__ghost[hidden] { display: none; }

/* =================================================================
   FINALE : portrait en particules
   ================================================================= */
.finale {
  position: relative;
  padding: var(--section-y) var(--gutter) clamp(50px, 8vw, 90px);
  text-align: center;
  color: #fff;
  background:
    radial-gradient(900px 500px at 50% 45%, rgba(47, 107, 224, 0.35), transparent 70%),
    linear-gradient(180deg, #0f1836 0%, var(--bleu-nuit) 55%, #0f1836 100%);
  overflow: hidden;
}
.finale__head { max-width: 640px; margin: 0 auto 10px; }
.finale .kicker { color: #fff; background: rgba(255, 255, 255, 0.12); }
.finale .section__title { color: #fff; }
.finale .section__sub { color: rgba(255, 255, 255, 0.75); }
.finale__stage { position: relative; height: clamp(440px, 74vh, 680px); max-width: 1100px; margin: 0 auto; }
.finale__canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.finale__btn {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.finale__btn:hover { background: #fff; color: var(--bleu-nuit); }

/* =================================================================
   GUIDE : mini Roukayath (SVG animé)
   ================================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.guide {
  --skin: #8d5a3b;
  --skin-ombre: #6f4329;
  --cheveux: #1c1416;
  position: fixed;
  left: clamp(10px, 2.5vw, 26px);
  bottom: calc(clamp(10px, 2.5vw, 22px) + env(safe-area-inset-bottom, 0px));
  z-index: 940;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
  opacity: 0;
  transform: translateY(40px) scale(0.8);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.guide.is-visible { opacity: 1; transform: none; }
.guide > * { pointer-events: auto; }

/* --- Avatar --- */
.guide__avatar {
  position: relative;
  width: 120px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  filter: drop-shadow(0 14px 18px rgba(27, 42, 91, 0.28));
  animation: guideFloat 3.4s ease-in-out infinite;
}
.guide__avatar::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -6px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(47, 107, 224, 0.28), transparent);
  z-index: -1;
}
.guide__avatar:focus-visible { outline: 3px solid var(--anneau); outline-offset: 4px; border-radius: 24px; }
.guide__svg { display: block; width: 100%; height: auto; overflow: visible; }
.guide.is-hidden .guide__avatar,
.guide.is-hidden .guide__bubble { display: none; }

@keyframes guideFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* --- Couleurs du personnage --- */
.g-skin { fill: url(#gSkinGrad); }
.g-hair { fill: url(#gHairGrad); }
.g-hairshine { stroke: rgba(255, 255, 255, 0.2); stroke-width: 2.2; stroke-linecap: round; fill: none; }
.g-braids { fill: url(#gHairGrad); stroke: #46333a; stroke-width: 0.9; }
.g-top { fill: url(#gTopGrad); }
.g-fold { stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.4; stroke-linecap: round; fill: none; }
.g-neckline { fill: url(#gSkinGrad); }
.g-shade { fill: #5d3620; opacity: 0.3; }
.g-chain { stroke: var(--or); stroke-width: 1.1; fill: none; }
.g-heart, .g-gold { fill: var(--or); }
.g-sleeve { stroke: #3f74e6; stroke-width: 10; stroke-linecap: round; fill: none; }
.g-puff { fill: #4a7fea; }
.g-band { fill: url(#gBandGrad); }
.g-bandedge { stroke: rgba(255, 255, 255, 0.22); stroke-width: 1; fill: none; }
.g-dots, .g-dot { fill: #fff; }
.g-knot { fill: #1f1b28; }
.g-knotline { stroke: rgba(255, 255, 255, 0.25); stroke-width: 1; fill: none; }
.g-brow { stroke: var(--cheveux); stroke-width: 2; stroke-linecap: round; fill: none; }
.g-cheek { fill: #ff9fbf; opacity: 0.55; }
.g-nose { stroke: var(--skin-ombre); stroke-width: 1.6; stroke-linecap: round; fill: none; }
.g-pupil { fill: #24150f; }
.g-glint { fill: #fff; }
.g-lid { fill: url(#gSkinGrad); transform-box: fill-box; transform-origin: top; transform: scaleY(0); transition: transform 0.07s ease; }
.g-lens { fill: rgba(255, 255, 255, 0.14); stroke: var(--or); stroke-width: 2; }
.g-frame { stroke: var(--or); stroke-width: 2; stroke-linecap: round; fill: none; }
.g-shine { stroke: #fff; stroke-width: 1.8; stroke-linecap: round; fill: none; opacity: 0.55; animation: guideShine 4.5s ease-in-out infinite; }
.g-smile { stroke: #6b2433; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.g-talk { fill: #6b2433; display: none; transform-box: fill-box; transform-origin: center; }
.g-sparkles { opacity: 0; }
.g-spark { fill: var(--or); transform-box: fill-box; transform-origin: center; }
.g-spark--2 { fill: var(--rose); }
.g-spark--3 { fill: var(--bleu-ciel); }

@keyframes guideShine {
  0%, 70%, 100% { opacity: 0.25; }
  80% { opacity: 0.9; }
}

/* --- Bras (pivot à l'épaule) --- */
.g-arm { transform-box: view-box; transition: transform 0.45s cubic-bezier(0.3, 1.3, 0.5, 1); }
.g-armL { transform-origin: 39px 103px; }
.g-armR { transform-origin: 81px 103px; }

/* --- États --- */
.guide.is-blinking .g-lid { transform: scaleY(1); }

.guide.is-talking .g-smile { display: none; }
.guide.is-talking .g-talk { display: block; animation: guideTalk 0.17s ease-in-out infinite alternate; }
@keyframes guideTalk { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }

.guide.is-waving .g-armR { animation: guideWave 0.42s ease-in-out infinite alternate; }
@keyframes guideWave { from { transform: rotate(-112deg); } to { transform: rotate(-152deg); } }

.guide.is-pointing .g-armL { transform: rotate(104deg); }

.guide.is-celebrating .g-armL { transform: rotate(160deg); }
.guide.is-celebrating .g-armR { transform: rotate(-160deg); }
.guide.is-celebrating .guide__avatar { animation: guideJoy 0.45s ease-in-out infinite alternate; }
.guide.is-celebrating .g-sparkles { opacity: 1; }
.guide.is-celebrating .g-spark { animation: guideSpark 0.6s ease-in-out infinite alternate; }
.guide.is-celebrating .g-spark--2 { animation-delay: 0.2s; }
.guide.is-celebrating .g-spark--3 { animation-delay: 0.4s; }
@keyframes guideJoy { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-14px) rotate(3deg); } }
@keyframes guideSpark { from { transform: scale(0.4) rotate(0); } to { transform: scale(1.2) rotate(45deg); } }

.guide.is-hopping .guide__avatar { animation: guideHop 0.55s cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes guideHop {
  0% { transform: translateY(0) scale(1, 1); }
  25% { transform: translateY(2px) scale(1.06, 0.92); }
  55% { transform: translateY(-26px) scale(0.96, 1.05); }
  100% { transform: translateY(0) scale(1, 1); }
}

/* --- Bulle de dialogue --- */
.guide__bubble {
  position: relative;
  width: min(330px, calc(100vw - 32px));
  margin: 0 0 14px 6px;
  padding: 18px 20px 16px;
  background: #fff;
  border: 1px solid var(--ciel-clair);
  border-radius: 22px 22px 22px 6px;
  box-shadow: var(--ombre-carte);
  transform-origin: bottom left;
  animation: guideBubbleIn 0.35s cubic-bezier(0.2, 1.3, 0.4, 1);
}
.guide__bubble::after {
  content: "";
  position: absolute;
  left: 34px;
  bottom: -9px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-right: 1px solid var(--ciel-clair);
  border-bottom: 1px solid var(--ciel-clair);
  transform: rotate(45deg);
}
@keyframes guideBubbleIn { from { opacity: 0; transform: scale(0.85) translateY(8px); } to { opacity: 1; transform: none; } }

.guide__text {
  margin: 0;
  min-height: 1.6em;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--bleu-nuit);
  font-weight: 400;
}
.guide__step {
  display: block;
  margin-bottom: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bleu);
}
.guide__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.guide__actions:empty { display: none; }
.guide__btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--ciel-clair);
  background: #fff;
  color: var(--bleu-nuit);
  font-family: var(--f-sans);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.guide__btn:hover { transform: translateY(-1px); background: var(--ciel-voile); }
.guide__btn--main { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.guide__btn--main:hover { background: var(--bleu-nuit); }
.guide__btn--ghost { border-color: transparent; color: var(--texte-doux); }

/* --- Réduire la bulle pendant la visite --- */
.guide__min {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--ciel-clair);
  background: var(--ciel-voile);
  color: var(--bleu-nuit);
  font-size: 0.8rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.guide__min:hover { background: var(--bleu); color: #fff; }
.guide__min[hidden] { display: none; }
.guide__bubble.has-min .guide__text { padding-right: 32px; }

.guide__mini {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0 4px;
  animation: guideBubbleIn 0.3s ease;
}
.guide__mini[hidden] { display: none; }
.guide__mini .guide__btn { box-shadow: var(--ombre-douce); }
.guide__mini-open { width: 40px; padding: 0; display: grid; place-items: center; }

/* --- Scène d'accueil : mascotte en grand, site flouté --- */
body.guide-lock { overflow: hidden; }
.guide-veil {
  position: fixed;
  inset: 0;
  z-index: 930;
  background:
    radial-gradient(520px 520px at 50% 52%, rgba(255, 255, 255, 0.85), transparent 70%),
    linear-gradient(160deg, rgba(234, 242, 255, 0.72), rgba(251, 220, 232, 0.55));
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
  opacity: 0;
  transition: opacity 0.55s ease;
}
.guide-veil.is-on { opacity: 1; }
.guide-veil[hidden] { display: none; }

.guide.is-stage {
  left: 50%;
  top: 50%;
  bottom: auto;
  z-index: 960;
  align-items: center;
  transform: translate(-50%, -42%) scale(0.85);
}
.guide.is-visible.is-stage { transform: translate(-50%, -50%); }
.guide.is-stage .guide__avatar {
  width: min(310px, 60vw, 40vh);
  filter: drop-shadow(0 26px 30px rgba(27, 42, 91, 0.3));
}
.guide.is-stage .guide__avatar::before { bottom: -12px; height: 22px; }
.guide.is-stage .guide__bubble {
  width: min(440px, calc(100vw - 32px));
  margin: 0 0 4px;
  padding: 22px 24px 20px;
  border-radius: 26px;
  text-align: center;
}
.guide.is-stage .guide__bubble::after { left: calc(50% - 8px); }
.guide.is-stage .guide__text { font-size: 1.08rem; }
.guide.is-stage .guide__actions { justify-content: center; }

/* --- Pastille (guide cachée) --- */
.guide__pill {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 1.2rem;
  background: var(--bleu);
  box-shadow: var(--ombre-carte);
  display: grid;
  place-items: center;
  animation: guideBubbleIn 0.35s ease;
}
.guide__pill[hidden] { display: none; }

/* =================================================================
   REVEAL AU SCROLL
   ================================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.3, 1);
}
[data-reveal].vis { opacity: 1; transform: none; }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__text { order: 2; }
  .hero__photo { order: 1; }
  .hero__lead { margin-inline: auto; }
  .hero__badge { left: auto; right: 6%; }
  .about { grid-template-columns: 1fr; text-align: center; }
  .about__tags { justify-content: center; }
}

/* Accordéon -> vertical sur petits écrans */
@media (max-width: 720px) {
  .accord {
    flex-direction: column;
    height: auto;
    gap: 10px;
  }
  .accord__panel { flex: none; height: 74px; border-radius: 16px; }
  .accord__panel.is-active { flex: none; height: clamp(300px, 56vh, 420px); }
  .accord__spine i { font-size: 1rem; }
}

@media (max-width: 560px) {
  .cake__scene { transform: scale(0.9); }
  .lightbox__prev { left: 10px; }
  .lightbox__next { right: 10px; }
  .lightbox__close { top: 16px; right: 16px; }
  .cd { min-width: 70px; flex: 1 1 40%; }
  .carou3d__stage { height: 410px; }
  .wish-card { height: 360px; }
  .carou3d__nav { width: 42px; height: 42px; }
  .carou3d__prev { left: -4px; }
  .carou3d__next { right: -4px; }
  /* Guide : bulle en bandeau compact à côté de la mascotte, tout en bas */
  .guide:not(.is-stage) { right: 10px; flex-direction: row; align-items: flex-end; gap: 8px; }
  .guide:not(.is-stage) .guide__avatar { order: 1; flex: none; width: 64px; }
  .guide:not(.is-stage) .guide__bubble {
    order: 2;
    flex: 1;
    min-width: 0;
    width: auto;
    margin: 0 0 8px;
    padding: 10px 13px 10px;
    border-radius: 18px 18px 18px 6px;
  }
  .guide:not(.is-stage) .guide__bubble::after {
    left: -8px;
    bottom: 18px;
    width: 14px;
    height: 14px;
    border-right: none;
    border-bottom: 1px solid var(--ciel-clair);
    border-left: 1px solid var(--ciel-clair);
  }
  .guide:not(.is-stage) .guide__text { font-size: 0.86rem; line-height: 1.45; min-height: 0; }
  .guide:not(.is-stage) .guide__step { font-size: 0.62rem; margin-bottom: 2px; }
  .guide:not(.is-stage) .guide__actions { margin-top: 8px; gap: 6px; }
  .guide:not(.is-stage) .guide__btn { min-height: 40px; padding: 0 12px; font-size: 0.8rem; }
  .guide:not(.is-stage) .guide__mini { order: 2; margin: 0 0 10px; }
  .guide:not(.is-stage) .guide__min { top: 6px; right: 6px; width: 30px; height: 30px; }
  body.guide-talking .fab { opacity: 0; pointer-events: none; }
  .guide.is-stage .guide__avatar { width: min(240px, 56vw, 36vh); }
}

/* =================================================================
   REDUCED MOTION
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .blob--hero, .blob--about { animation: none; }
  .guide { transition: opacity 0.01ms; transform: none; }
}
