/* Fétali — site vitrine.
 *
 * Des couleurs qui viennent de l'île, chacune avec un rôle :
 *   sable / basalte   la base (fond, texte) ;
 *   nuit bleue        la soirée sous les guirlandes (accueil, cadres) ;
 *   flamboyant        les accents et boutons — la fleur du flamboyant ;
 *   lagon             le photobooth ;
 *   nuit + lave       le karaoké ;
 *   curcuma           les touches de lumière (guirlandes) ;
 *   bleu, rouge, jaune 974 : Lo Mahavéli, le drapeau de La Réunion (macaron).
 * Contrastes vérifiés (WCAG AA) : texte ≥ 4,5:1, grands titres ≥ 3:1.
 * Pas de script ni de style écrit dans le HTML (CSP stricte, cf. nginx.conf) :
 * les variations passent par des classes, le JS ne touche qu'à des variables.
 */

/* ── Polices auto-hébergées (aucune requête vers un tiers) ───────────────── */
/* Fraunces allégée (SOFT figé à 100, latin seul) : droite 600–800, italique
   400–800. */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ── Jetons ──────────────────────────────────────────────────────────────── */
:root {
  --sable: #fbf4e8;
  --papier: #fffdf8;
  --basalte: #1f1b19;
  --basalte-2: #5e534d;
  --flamboyant: #c73e26;
  --flamboyant-fonce: #ae3420;
  --flamboyant-texte: #a8331f;
  --flamboyant-vif: #e0583a;
  --lagon: #0e6b70;
  --lagon-fonce: #0b4f53;
  --lagon-pale: #d7eeea;
  --curcuma: #f2b33d;
  --curcuma-clair: #ffd58f;
  --nuit-bleue: #0e1d26;
  --nuit-bleue-2: #16303b;
  --nuit: #171312;
  --vanille: #f5ecd9;
  --vanille-2: #cdbfa8;
  --lave: #ff6b2c;
  --bleu-974: #2f5fe3;
  --rouge-974: #e8231b;
  --jaune-974: #ffd915;

  --titre: "Fraunces", Georgia, "Times New Roman", serif;
  --texte: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --largeur: 74rem;
  --gouttiere: clamp(1rem, 4vw, 2.5rem);
  --ombre: 0 1px 2px rgb(31 27 25 / 0.08), 0 14px 34px -12px rgb(31 27 25 / 0.32);
  --ombre-forte: 0 2px 4px rgb(0 0 0 / 0.12), 0 30px 60px -18px rgb(0 0 0 / 0.55);
  --ressort: cubic-bezier(0.2, 0.85, 0.25, 1.15);
  --doux: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  background: var(--sable);
  color: var(--basalte);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1,
h2,
h3 {
  font-family: var(--titre);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(3.1rem, 8vw, 6.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
h2 {
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  letter-spacing: -0.025em;
}
h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: var(--flamboyant-texte);
  text-underline-offset: 0.18em;
}

.italique {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

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

::selection {
  background: var(--curcuma);
  color: var(--basalte);
}

.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.lien-evitement {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--basalte);
  color: var(--sable);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
}
.lien-evitement:focus {
  top: 1rem;
}

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.surtitre {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flamboyant-texte);
  margin-bottom: 1.1rem;
}
.surtitre::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.surtitre-clair {
  color: var(--curcuma-clair);
}

.chapo {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--basalte-2);
  max-width: 40rem;
}

.tete-section {
  max-width: 48rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.tete-ligne {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 1rem 3rem;
  max-width: none;
}
.tete-ligne h2,
.tete-ligne .chapo {
  margin-bottom: 0;
}
@media (max-width: 48rem) {
  .tete-ligne {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Le drapeau, en petit (surtitre de l'accueil, pied de page). */
.drapeau {
  flex: none;
  width: 1.9rem;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.25), 0 2px 6px rgb(0 0 0 / 0.3);
}
.surtitre .drapeau {
  margin-right: 0.15rem;
}

/* ── Boutons ─────────────────────────────────────────────────────────────── */
.bouton {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  padding: 0.8rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  overflow: hidden;
  font: 700 1rem/1.2 var(--texte);
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.2s var(--ressort), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
/* Un reflet passe sur le bouton au survol. */
.bouton::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.35) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--doux);
}
.bouton:hover {
  transform: translateY(-2px);
}
.bouton:hover::after {
  transform: translateX(120%);
}
.bouton:active {
  transform: translateY(1px);
}
.bouton-plein {
  background: var(--flamboyant);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgb(199 62 38 / 0.7);
}
.bouton-plein:hover {
  background: var(--flamboyant-fonce);
}
.bouton-clair {
  background: var(--sable);
  color: var(--basalte);
}
.bouton-clair:hover {
  background: #fff;
}
.bouton-clair-trait {
  border-color: rgb(251 244 232 / 0.65);
  color: var(--sable);
  background: transparent;
}
.bouton-clair-trait:hover {
  border-color: var(--sable);
  background: rgb(251 244 232 / 0.1);
}

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-decoration: none;
}
.lien-fleche::after {
  content: "→";
  transition: transform 0.25s var(--ressort);
}
.lien-fleche:hover::after {
  transform: translateX(5px);
}

/* ── En-tête : transparent sur la nuit, sable dès qu'on descend ──────────── */
.entete {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--sable);
  transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}
.entete.est-plein {
  background: rgb(251 244 232 / 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  color: var(--basalte);
  box-shadow: 0 1px 0 rgb(31 27 25 / 0.08), 0 12px 30px -24px rgb(31 27 25 / 0.5);
}
.entete .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.logo {
  font-family: var(--titre);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 800;
  font-size: 1.95rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: inherit;
  text-decoration: none;
}
.logo .e {
  color: var(--flamboyant-vif);
}
.est-plein .logo .e {
  color: var(--flamboyant);
}

.menu ul {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu a:not(.bouton) {
  position: relative;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  padding-block: 0.4rem;
}
.menu a:not(.bouton)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--flamboyant-vif);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--doux);
}
.menu a:not(.bouton):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.menu .bouton {
  min-height: 2.6rem;
  padding: 0.55rem 1.2rem;
  font-size: 0.95rem;
}
/* Sur téléphone, la page est courte : seul le bouton « Nous écrire » reste. */
@media (max-width: 40rem) {
  .menu-lien {
    display: none;
  }
}

/* ── Accueil : une soirée sous les guirlandes ────────────────────────────── */
.heros {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: min(100svh, 60rem);
  padding: clamp(6.5rem, 11vw, 8rem) 0 clamp(5rem, 8vw, 6.5rem);
  overflow: hidden;
  color: var(--sable);
  background:
    radial-gradient(110% 70% at 50% 118%, rgb(233 138 75 / 0.55) 0%, rgb(233 138 75 / 0) 62%),
    radial-gradient(60% 50% at 82% 55%, rgb(14 107 112 / 0.35) 0%, rgb(14 107 112 / 0) 70%),
    linear-gradient(180deg, #0b1820 0%, var(--nuit-bleue) 35%, var(--nuit-bleue-2) 75%, #2a2622 100%);
}
/* Grain de photo argentique. */
.heros::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
}

.heros-fond {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.guirlande {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(5.5rem, 11vw, 10rem);
  overflow: visible;
}
.guirlande .fil {
  fill: none;
  stroke: #3a3029;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.ampoules circle {
  fill: var(--curcuma-clair);
  filter: drop-shadow(0 0 5px rgb(255 197 107 / 0.95)) drop-shadow(0 0 16px rgb(255 197 107 / 0.55));
  animation: scintille 3.4s ease-in-out infinite;
}
.ampoules-2 circle {
  fill: #ffc874;
  opacity: 0.85;
}
.ampoules circle:nth-child(3n) {
  animation-delay: -1.2s;
}
.ampoules circle:nth-child(3n + 1) {
  animation-delay: -2.3s;
}
.ampoules circle:nth-child(4n) {
  animation-duration: 4.6s;
}
.ampoules circle:nth-child(5n) {
  animation-duration: 2.7s;
}
@keyframes scintille {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

/* Lumières floues qui dérivent lentement. */
.bokeh {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 213 143 / 0.5) 0%, rgb(255 213 143 / 0.22) 55%, rgb(255 213 143 / 0) 72%);
  filter: blur(2px);
  animation: derive 18s ease-in-out infinite alternate;
}
.b1 { width: 9rem; height: 9rem; left: 4%; top: 58%; }
.b2 { width: 5rem; height: 5rem; left: 22%; top: 80%; animation-duration: 14s; }
.b3 { width: 12rem; height: 12rem; left: 40%; top: 72%; opacity: 0.6; animation-duration: 22s; }
.b4 { width: 4rem; height: 4rem; left: 55%; top: 30%; opacity: 0.5; animation-duration: 16s; }
.b5 { width: 7rem; height: 7rem; left: 70%; top: 82%; animation-duration: 20s; }
.b6 { width: 3rem; height: 3rem; left: 86%; top: 40%; animation-duration: 12s; }
.b7 { width: 10rem; height: 10rem; left: 88%; top: 68%; opacity: 0.55; animation-duration: 24s; }
.b8 { width: 3.5rem; height: 3.5rem; left: 12%; top: 34%; opacity: 0.6; animation-duration: 15s; }
.b3,
.b7 {
  background: radial-gradient(circle, rgb(255 158 90 / 0.4) 0%, rgb(255 158 90 / 0.15) 55%, rgb(255 158 90 / 0) 72%);
}
@keyframes derive {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(2.5rem, -3rem);
  }
}

.heros-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.heros h1 {
  margin: 0;
}
.heros h1 .ligne {
  display: block;
  /* Le masque d'où montent les lignes ; marge pour les jambages de l'italique. */
  overflow: hidden;
  padding: 0.04em 0.08em 0.12em 0;
  margin-bottom: -0.1em;
}
.heros h1 .ligne > span {
  display: inline-block;
}
/* Italique sans fantaisie (WONK 0) : sinon « ali » se lit « alî ». */
.heros h1 .italique {
  font-variation-settings: "SOFT" 100, "WONK" 0;
}
.degrade {
  padding-right: 0.08em;
  background: linear-gradient(92deg, var(--curcuma) 0%, #ff9e5a 45%, var(--flamboyant-vif) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* « Fétali, du créole fèt ali : le fêter. » — comme une entrée de dictionnaire. */
.definition {
  margin: 1.4rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--curcuma);
  font: italic 500 clamp(1.1rem, 1.7vw, 1.35rem)/1.4 var(--titre);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--curcuma-clair);
}
.definition b {
  font-style: normal;
  font-weight: 750;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  color: var(--sable);
}
.definition i {
  font-weight: 700;
  color: var(--sable);
}
.heros .chapo {
  margin: 1.4rem 0 2rem;
  color: rgb(251 244 232 / 0.82);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Entrée en scène : les lignes montent, le reste apparaît en fondu. */
.js .entree {
  opacity: 0;
  translate: 0 1.2rem;
  transition: opacity 0.9s var(--doux), translate 0.9s var(--doux);
  /* Filet de sécurité si le script s'arrête en route. */
  animation: secours 0s 3s forwards;
}
.js .heros h1 .entree {
  translate: 0 108%;
  transition-duration: 1.1s;
}
.js.pret .entree,
.js.pret .heros h1 .entree {
  opacity: 1;
  translate: 0 0;
}
.entree[data-ordre="1"] { transition-delay: 0.1s; }
.entree[data-ordre="2"] { transition-delay: 0.25s; }
.entree[data-ordre="3"] { transition-delay: 0.45s; }
.entree[data-ordre="4"] { transition-delay: 0.58s; }
.entree[data-ordre="5"] { transition-delay: 0.7s; }
@keyframes secours {
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* La scène : une pile de tirages et le téléphone qui les reçoit. */
.heros-scene {
  position: relative;
  aspect-ratio: 1 / 0.92;
}
.pile {
  position: absolute;
  inset: 2% 14% 8% 0;
}
.tirage-pile {
  --x: 0%;
  --y: -150%;
  --r: 16deg;
  --s: 1.1;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  opacity: 0;
  box-shadow: 0 2px 3px rgb(0 0 0 / 0.25), 0 26px 50px -16px rgb(0 0 0 / 0.65);
  transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r)) scale(var(--s));
  transition: transform 1s var(--ressort), opacity 0.5s ease, filter 0.6s ease;
}
.tirage-pile img {
  width: 100%;
}
.tirage-pile.format-paysage { width: 88%; }
.tirage-pile.format-portrait { width: 52%; }
.tirage-pile.format-story { width: 44%; }
.pos-0 { --x: 0%; --y: 0%; --r: -3deg; --s: 1; opacity: 1; z-index: 3; }
.pos-1 { --x: -12%; --y: -4%; --r: -11deg; --s: 0.94; opacity: 1; z-index: 2; filter: brightness(0.82); }
.pos-2 { --x: 11%; --y: 5%; --r: 9deg; --s: 0.9; opacity: 1; z-index: 1; filter: brightness(0.68); }
.pos-sortie { --x: 6%; --y: 14%; --r: 5deg; --s: 0.86; opacity: 0; z-index: 0; }

.flash {
  position: absolute;
  inset: -12%;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 42% 46%, rgb(255 255 255 / 0.95) 0%, rgb(255 246 220 / 0.5) 30%, rgb(255 255 255 / 0) 62%);
}
.flash.eclair {
  animation: eclair 0.65s ease-out;
}
@keyframes eclair {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Téléphone : la page que reçoivent les invités (mêmes couleurs que la vraie). */
.telephone {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 5;
  width: 31%;
  aspect-ratio: 9 / 19;
  padding: 2.4%;
  border-radius: 15% / 7%;
  background: linear-gradient(145deg, #3b3533, #121010);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12), var(--ombre-forte);
  rotate: 7deg;
  container-type: inline-size;
  animation: flotte 7s ease-in-out infinite;
}
@keyframes flotte {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}
.telephone-ecran {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  overflow: hidden;
  border-radius: 12% / 5.6%;
  background: linear-gradient(160deg, #1a1030, #3a1224);
}
.telephone-ecran::before {
  /* L'encoche. */
  content: "";
  position: absolute;
  top: 3%;
  left: 50%;
  width: 30%;
  height: 3.4%;
  border-radius: 99px;
  background: #0b0a0a;
  transform: translateX(-50%);
}
.dl-carte {
  margin: 0 6cqi;
  padding: 7cqi 6cqi;
  border-radius: 7cqi;
  background: #171c24;
  text-align: center;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 6cqi 16cqi rgb(0 0 0 / 0.45);
}
.dl-marque {
  margin: 0;
  color: #e8567a;
  font-weight: 700;
  font-size: 11cqi;
  line-height: 1.1;
}
.dl-evenement {
  margin: 1.5cqi 0 5cqi;
  color: #9aa4b2;
  font-size: 4.6cqi;
  line-height: 1.25;
}
.dl-photo {
  width: auto;
  max-width: 100%;
  max-height: 96cqi;
  margin: 0 auto 5cqi;
  border-radius: 3cqi;
}
.dl-photo.developpe {
  animation: developpe 1.1s var(--doux) both;
}
@keyframes developpe {
  0% {
    opacity: 0;
    filter: blur(8px) saturate(0) brightness(1.6);
    transform: scale(0.95);
  }
  45% {
    opacity: 1;
    filter: blur(3px) saturate(0.5) brightness(1.25);
  }
  100% {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
.dl-bouton {
  display: block;
  padding: 4cqi;
  border-radius: 4cqi;
  background: #e8567a;
  color: #fff;
  font-weight: 600;
  font-size: 5cqi;
}
.telephone-notif {
  position: absolute;
  top: 9%;
  left: 6%;
  right: 6%;
  z-index: 2;
  margin: 0;
  padding: 3.5cqi 4cqi;
  border-radius: 5cqi;
  background: rgb(255 253 248 / 0.94);
  color: var(--basalte);
  font: 700 5cqi/1.25 var(--texte);
  box-shadow: 0 3cqi 10cqi rgb(0 0 0 / 0.35);
  transform: translateY(-260%);
  transition: transform 0.55s var(--ressort);
}
.telephone.notifie .telephone-notif {
  transform: none;
}

/* Le macaron : Lo Mahavéli au centre, une ronde de mots qui tourne autour. */
.macaron {
  position: absolute;
  left: -3%;
  bottom: 3%;
  z-index: 5;
  width: clamp(6.5rem, 12vw, 9rem);
  filter: drop-shadow(0 12px 18px rgb(0 0 0 / 0.5));
  rotate: -10deg;
  animation: tampon 0.6s 1.2s var(--ressort) both;
}
.macaron svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.macaron-fond {
  fill: var(--papier);
}
.macaron-ronde {
  transform-origin: 100px 100px;
  animation: tourne 26s linear infinite;
}
.macaron-ronde text {
  fill: var(--basalte);
  font: 800 17px var(--texte);
}
.drapeau-bleu { fill: var(--bleu-974); }
.drapeau-rouge { fill: var(--rouge-974); }
.drapeau-jaune { fill: var(--jaune-974); }
@keyframes tampon {
  from {
    opacity: 0;
    scale: 1.6;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}
@keyframes tourne {
  to {
    rotate: 360deg;
  }
}

.heros-suite {
  position: absolute;
  left: 50%;
  bottom: 2.4rem;
  width: 1.7rem;
  height: 2.7rem;
  border: 2px solid rgb(251 244 232 / 0.45);
  border-radius: 99px;
  transform: translateX(-50%);
}
.heros-suite::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.45rem;
  width: 4px;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--sable);
  transform: translateX(-50%);
  animation: molette 1.8s ease-in-out infinite;
}
@keyframes molette {
  0% {
    opacity: 0;
    translate: 0 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    translate: 0 0.9rem;
  }
}

@media (max-width: 56rem) {
  .heros {
    min-height: 0;
  }
  .heros-grille {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  /* Le texte s'ouvre pour que la scène vienne se glisser après la définition. */
  .heros-texte {
    display: contents;
  }
  .heros-texte .surtitre { order: 1; }
  .heros h1 { order: 2; }
  .heros .definition { order: 3; }
  .heros-scene { order: 4; }
  .heros .chapo { order: 5; margin-top: 0.5rem; }
  .heros .actions { order: 6; }
  .heros-scene {
    width: min(100%, 34rem);
    margin: 1.4rem auto 0.8rem;
  }
  .heros-suite {
    display: none;
  }
}

/* ── Les deux animations ─────────────────────────────────────────────────── */
.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
.offre {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.4s var(--doux), box-shadow 0.4s ease;
}
.offre:hover {
  box-shadow: 0 30px 60px -28px rgb(31 27 25 / 0.55);
}
.offre-visuel {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.4rem, 3vw, 2.2rem) 0;
}
/* Une bulle en créole, collée sur l'écran comme un autocollant. */
.bulle {
  position: absolute;
  top: clamp(0.6rem, 1.6vw, 1.1rem);
  right: clamp(0.8rem, 2vw, 1.4rem);
  z-index: 1;
  padding: 0.45rem 0.95rem 0.5rem;
  border-radius: 999px 999px 999px 6px;
  background: var(--curcuma);
  color: var(--basalte);
  font: italic 800 clamp(0.95rem, 1.5vw, 1.1rem)/1.1 var(--titre);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  box-shadow: 0 10px 22px -10px rgb(0 0 0 / 0.55);
  rotate: 4deg;
  transition: rotate 0.35s var(--ressort);
}
.offre:hover .bulle {
  rotate: -3deg;
}
.offre-karaoke .bulle {
  background: var(--lave);
}
.offre-corps {
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.offre-corps h3 {
  margin-bottom: 0.6rem;
}
.offre-corps p:not(.surtitre) {
  margin-bottom: 1.3rem;
}
.offre-photo {
  background: linear-gradient(160deg, var(--lagon-pale), #eaf5f1 60%, var(--papier));
  box-shadow: inset 0 0 0 1px rgb(14 107 112 / 0.12);
}
.offre-photo .surtitre {
  color: var(--lagon-fonce);
}
.offre-photo p:not(.surtitre) {
  color: var(--basalte-2);
}
.offre-karaoke {
  background: radial-gradient(90% 70% at 80% 0%, rgb(255 107 44 / 0.24), transparent 65%), var(--nuit);
  color: var(--vanille);
}
.offre-karaoke .surtitre {
  color: var(--lave);
}
.offre-karaoke p:not(.surtitre) {
  color: var(--vanille-2);
}

.ecran-cadre {
  overflow: hidden;
  border: 9px solid #1d1a18;
  border-radius: 14px;
  background: #000;
  box-shadow: var(--ombre);
}
.ecran-cadre img {
  width: 100%;
  transition: transform 0.9s var(--doux);
}
.offre:hover .ecran-cadre img {
  transform: scale(1.04);
}

.mini-paroles {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.35rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 9px solid #2b2422;
  border-radius: 14px;
  background: radial-gradient(90% 90% at 50% 120%, rgb(255 107 44 / 0.4), transparent 60%), #0f0c0b;
  text-align: center;
}
.mini-ligne {
  font: italic 700 clamp(1.05rem, 2.1vw, 1.5rem)/1.2 var(--titre);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  background: linear-gradient(90deg, var(--lave) 0 50%, rgb(245 236 217 / 0.4) 50% 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: remplit 4s linear infinite;
}
.mini-ligne-2 {
  animation-delay: 2s;
}
@keyframes remplit {
  0% {
    background-position: 100% 0;
  }
  50%,
  100% {
    background-position: 0 0;
  }
}
.mini-eq {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 34%;
  opacity: 0.55;
}
.mini-eq i {
  width: 7px;
  height: 100%;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, var(--lave), var(--curcuma));
  transform-origin: bottom;
  animation: equalise 1.1s ease-in-out infinite alternate;
}
.mini-eq i:nth-child(2n) {
  animation-duration: 0.8s;
}
.mini-eq i:nth-child(3n) {
  animation-duration: 1.4s;
  animation-delay: -0.4s;
}
.mini-eq i:nth-child(5n) {
  animation-duration: 0.95s;
  animation-delay: -0.7s;
}
@keyframes equalise {
  from {
    transform: scaleY(0.15);
  }
  to {
    transform: scaleY(1);
  }
}

/* Trois atouts, en pastilles. */
.atouts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.atouts li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
}
.atouts li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}
.offre-photo .atouts li {
  background: rgb(14 107 112 / 0.1);
  color: var(--lagon-fonce);
}
.offre-karaoke .atouts li {
  background: rgb(255 107 44 / 0.12);
  color: #ffb08a;
}

@media (max-width: 48rem) {
  .duo {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* L'essai : le QR code de démonstration. */
.essai {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.2rem);
  max-width: 44rem;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  padding: clamp(1.2rem, 3vw, 1.6rem);
  border-radius: 22px;
  background: var(--basalte);
  color: var(--sable);
  box-shadow: var(--ombre);
}
.essai-qr {
  flex: none;
  width: 7.5rem;
  padding: 0.5rem;
  border-radius: 14px;
  background: #fff;
}
.essai h3 {
  margin-bottom: 0.35rem;
  color: var(--curcuma);
}
.essai p {
  margin-bottom: 0.6rem;
  color: rgb(251 244 232 / 0.85);
}
.essai .lien-fleche {
  color: var(--sable);
}
.essai-telephone {
  display: none;
}
@media (hover: none) and (pointer: coarse) {
  .essai-qr,
  .essai-ordinateur {
    display: none;
  }
  .essai-telephone {
    display: block;
  }
}

/* ── Les cadres : un rail qu'on fait défiler ─────────────────────────────── */
.cadres {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--sable);
  background:
    radial-gradient(70% 50% at 10% 0%, rgb(14 107 112 / 0.45), transparent 70%),
    radial-gradient(60% 50% at 95% 100%, rgb(233 138 75 / 0.28), transparent 70%),
    var(--nuit-bleue);
}
.cadres .surtitre {
  color: var(--curcuma-clair);
}
.cadres .chapo {
  color: rgb(251 244 232 / 0.8);
}

/* Le rail déborde jusqu'au bord droit de l'écran ; le premier cadre reste
   aligné sur le texte. */
.rail {
  --h: clamp(16rem, 30vw, 24rem);
  --marge: calc(max(0px, (100% - var(--largeur)) / 2) + var(--gouttiere));
  display: flex;
  align-items: flex-end;
  gap: clamp(1.1rem, 2.6vw, 2rem);
  margin: 0;
  padding: 0.6rem var(--marge) 1.4rem;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--marge);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar {
  display: none;
}
.rail:focus-visible {
  outline-offset: -3px;
}
.cadre {
  flex: none;
  scroll-snap-align: start;
}
.cadre-image {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.35s var(--doux);
}
.cadre-image img {
  width: auto;
  max-width: none;
  height: var(--h);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 24px 44px -20px rgb(0 0 0 / 0.8);
  transition: box-shadow 0.35s ease;
}
/* Reflet de lumière qui suit le pointeur. */
.cadre-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / 0.28), transparent 45%);
  transition: opacity 0.35s ease;
}
.cadre-image:hover::after {
  opacity: 1;
}
.cadre-image:hover img {
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 34px 60px -22px rgb(0 0 0 / 0.9);
}
.cadre-legende {
  margin: 0.9rem 0 0;
  font: 650 1.1rem/1.3 var(--titre);
  font-variation-settings: "SOFT" 100, "WONK" 0;
}

.rail-fleches {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}
.rail-fleche {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1.5px solid rgb(251 244 232 / 0.35);
  border-radius: 50%;
  background: transparent;
  color: var(--sable);
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}
.rail-fleche:hover {
  border-color: var(--sable);
  background: rgb(251 244 232 / 0.1);
}
.rail-fleche:disabled {
  opacity: 0.3;
  cursor: default;
}
.rail-fleche svg {
  width: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Au doigt, on fait glisser : les flèches ne servent qu'à la souris. */
@media (hover: none) and (pointer: coarse) {
  .rail-fleches {
    display: none;
  }
}

/* La visionneuse : un cadre en grand. */
.visionneuse {
  max-width: min(92vw, 70rem);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.visionneuse::backdrop {
  background: rgb(10 16 20 / 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.visionneuse[open] {
  animation: zoome 0.35s var(--ressort);
}
@keyframes zoome {
  from {
    opacity: 0;
    scale: 0.92;
  }
}
.visionneuse-image {
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  margin-inline: auto;
  box-shadow: var(--ombre-forte);
}
.visionneuse-titre {
  margin: 1rem 0 0;
  color: var(--sable);
  font-weight: 700;
  text-align: center;
}
.visionneuse-fermer {
  position: absolute;
  top: -1.1rem;
  right: -1.1rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: var(--sable);
  color: var(--basalte);
  cursor: pointer;
  box-shadow: var(--ombre);
}
.visionneuse-fermer svg {
  width: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
}

/* ── Contact ─────────────────────────────────────────────────────────────── */
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
  background:
    radial-gradient(70% 90% at 90% 0%, var(--flamboyant-vif), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, #8e2a1b, transparent 60%),
    var(--flamboyant);
  color: var(--sable);
  text-align: center;
}
.contact .conteneur {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact .surtitre {
  color: #ffe7b8;
}
.contact h2 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  margin-bottom: 0.3em;
}
.contact .chapo {
  color: rgb(251 244 232 / 0.9);
  margin-inline: auto;
}
.contact-mail {
  display: inline-block;
  margin: 1.4rem 0 1.8rem;
  padding-bottom: 0.08em;
  color: var(--sable);
  font: italic 700 clamp(2.1rem, 8vw, 5.6rem)/1.05 var(--titre);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  letter-spacing: -0.03em;
  text-decoration: none;
  background: linear-gradient(var(--curcuma), var(--curcuma)) 0 100% / 0 0.07em no-repeat;
  transition: background-size 0.6s var(--doux);
  overflow-wrap: anywhere;
}
.contact-mail:hover,
.contact-mail:focus-visible {
  background-size: 100% 0.07em;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}
.copie-ok {
  min-height: 1.6em;
  margin: 1.1rem 0 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffe7b8;
}
.contact-fond i {
  position: absolute;
  z-index: -1;
  width: 1.1rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--curcuma);
  opacity: 0.85;
  animation: tombe 9s linear infinite;
}
.contact-fond i:nth-child(1) { left: 6%; animation-delay: -1s; }
.contact-fond i:nth-child(2) { left: 16%; background: var(--sable); animation-duration: 11s; animation-delay: -6s; }
.contact-fond i:nth-child(3) { left: 27%; background: var(--lagon); animation-duration: 8s; animation-delay: -3s; }
.contact-fond i:nth-child(4) { left: 38%; animation-duration: 12s; animation-delay: -9s; }
.contact-fond i:nth-child(5) { left: 52%; background: var(--sable); animation-duration: 10s; animation-delay: -2s; }
.contact-fond i:nth-child(6) { left: 63%; background: var(--lagon); animation-duration: 9.5s; animation-delay: -7s; }
.contact-fond i:nth-child(7) { left: 72%; animation-duration: 13s; animation-delay: -4s; }
.contact-fond i:nth-child(8) { left: 81%; background: var(--sable); animation-duration: 8.5s; animation-delay: -5s; }
.contact-fond i:nth-child(9) { left: 90%; background: var(--lagon); animation-duration: 11.5s; animation-delay: -8s; }
.contact-fond i:nth-child(10) { left: 96%; animation-duration: 10.5s; animation-delay: -1.5s; }
@keyframes tombe {
  from {
    top: -5%;
    transform: rotate(0deg) translateX(0);
  }
  to {
    top: 105%;
    transform: rotate(720deg) translateX(3rem);
  }
}
/* Les confettis lancés par le bouton « Copier l'adresse » (créés par le JS). */
.confetti {
  position: fixed;
  z-index: 60;
  width: 0.7rem;
  height: 0.4rem;
  border-radius: 2px;
  pointer-events: none;
}

/* ── Pied de page ────────────────────────────────────────────────────────── */
.pied {
  padding-block: 2.2rem;
  background: var(--basalte);
  color: var(--vanille-2);
  font-size: 0.95rem;
}
.pied .conteneur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.pied .logo {
  color: var(--sable);
  font-size: 1.6rem;
}
.pied .logo .e {
  color: var(--flamboyant-vif);
}
.pied p {
  margin: 0;
}
.pied-ile {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}
.pied-ile .drapeau {
  width: 1.5rem;
}
.pied a:not(.logo) {
  color: var(--vanille);
  text-decoration: none;
}
.pied a:not(.logo):hover {
  color: var(--curcuma);
  text-decoration: underline;
}

/* ── Apparitions au défilement ───────────────────────────────────────────── */
.js [data-apparait] {
  opacity: 0;
  translate: 0 2rem;
  transition: opacity 0.85s var(--doux), translate 0.85s var(--doux);
  transition-delay: calc(var(--rang, 0) * 90ms);
}
.js [data-apparait].est-visible {
  opacity: 1;
  translate: 0 0;
}

/* ── Page introuvable ────────────────────────────────────────────────────── */
.introuvable {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 100svh;
  overflow: hidden;
  padding-block: 4rem;
  background:
    radial-gradient(110% 70% at 50% 118%, rgb(233 138 75 / 0.5) 0%, transparent 62%),
    linear-gradient(180deg, #0b1820 0%, var(--nuit-bleue) 40%, var(--nuit-bleue-2) 100%);
  color: var(--sable);
}
.introuvable .logo {
  display: inline-block;
  margin-bottom: 2.5rem;
}
.introuvable h1 {
  max-width: 14ch;
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
}
.introuvable .chapo {
  margin-bottom: 2rem;
  color: rgb(251 244 232 / 0.82);
}
.introuvable .guirlande {
  z-index: -1;
}

/* ── Mouvement réduit : tout est là, rien ne bouge ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .entree,
  .js [data-apparait] {
    opacity: 1;
    translate: 0 0;
  }
  .mini-ligne {
    background-position: 0 0;
  }
}
