/* ==========================================================================
   PANGEA — feuille de style
   Direction : marché méditerranéen, formes organiques, mouvement doux.
   ========================================================================== */


:root {
  /* Couleurs : palette coolors.co/cb5731-f2be5c-758a5c-f8e9cf-442f29 + nuances dérivées */
  --sable: #f8e9cf;
  --lin: #fcf5e9;
  --argile: #e8d8c0;
  --terracotta: #cb5731;
  --terracotta-texte: #a04a2e;
  --terracotta-clair: #e4a788;
  --terracotta-fond: #b04c2c; /* fond portant du texte clair (contraste AA) */
  --olive: #758a5c;
  --olive-clair: #bdbe9b;
  --olive-fond: #5f7247; /* fond portant du texte clair (contraste AA) */
  --olive-nuit: #3b452e;
  --safran: #f2be5c;
  --safran-clair: #f5d496;
  --figue: #81412d;
  --figue-clair: #eabda0;
  --encre: #442f29;
  --encre-douce: #766357;

  /* Typo */
  --f-display: "Telma", "Trebuchet MS", sans-serif;
  --f-texte: "Supreme", "Segoe UI", sans-serif;
  --f-accent: var(--f-texte); /* étiquettes : capitales espacées */
  --f-logo: "Vabedo PANGEA", "Telma", sans-serif; /* police du logo : grands titres et chiffres */

  --fs-mega: clamp(3.4rem, 11vw, 10rem);
  --fs-1: clamp(2.6rem, 6.4vw, 5.6rem);
  --fs-2: clamp(2rem, 4.2vw, 3.6rem);
  --fs-3: clamp(1.35rem, 2.2vw, 1.85rem);
  --fs-texte: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-petit: 0.875rem;

  /* Espace & formes */
  --gouttiere: clamp(1rem, 4vw, 3rem);
  --largeur: 76rem;
  --blob-1: 42% 58% 63% 37% / 41% 44% 56% 59%;
  --blob-2: 63% 37% 54% 46% / 55% 48% 52% 45%;
  --blob-3: 38% 62% 45% 55% / 62% 38% 62% 38%;
  --ombre: 0 1px 0 rgb(68 47 41 / 0.08), 0 14px 30px -18px rgb(68 47 41 / 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sable);
  color: var(--encre);
  font-family: var(--f-texte);
  font-size: var(--fs-texte);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 7rem; /* place pour le dock */
}
/* Grain : donne une matière papier/argile au fond */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.16;
  will-change: transform;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: var(--terracotta-texte); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { color: var(--figue); }
p { margin: 0 0 1em; max-width: 58ch; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1, h2 { font-family: var(--f-logo); font-weight: 400; font-synthesis: none; letter-spacing: 0; line-height: 1.02; }
h2 { font-size: var(--fs-1); }
h3 { font-size: var(--fs-3); line-height: 1.1; }
ul { padding-left: 1.2em; }

:focus-visible {
  outline: 3px solid var(--figue);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection { background: var(--safran-clair); color: var(--encre); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--encre); color: var(--lin);
  padding: 0.7rem 1.1rem; border-radius: 999px;
}
.evitement:focus { top: 1rem; }

.conteneur {
  width: min(100% - 2 * var(--gouttiere), var(--largeur));
  margin-inline: auto;
}
.section { position: relative; padding-block: clamp(4rem, 10vw, 8rem); }

/* Mots-accents en Gambarino */
.accent { color: var(--safran); }
.surligne {
  background: linear-gradient(transparent 62%, var(--safran-clair) 62% 90%, transparent 90%);
  padding-inline: 0.08em;
}

/* Infos provisoires : visibles volontairement pour ne rien oublier */
.tbd {
  border-bottom: 2px dotted currentColor;
  cursor: help;
}
.a-venir {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--f-texte); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.3em 0.8em; border-radius: 999px;
  border: 1.5px dashed currentColor;
  color: var(--encre);
  white-space: nowrap;
}
.a-venir::before {
  content: ""; width: 0.5em; height: 0.5em; border-radius: 50%;
  background: var(--safran);
  animation: pulse 2.4s var(--ease) infinite;
}

/* ---------- Étiquettes (« stickers ») ---------- */
.etiquette {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.65em 1.15em;
  border-radius: 2em 1.6em 2.1em 1.4em / 1.5em 2em 1.4em 2em;
  background: var(--lin);
  color: var(--encre);
  font-weight: 600;
  box-shadow: var(--ombre);
  rotate: var(--r, -2deg);
  line-height: 1.25;
}
.etiquette svg { width: 1.2em; height: 1.2em; flex: none; }
.etiquette--terracotta { background: var(--terracotta-fond); color: var(--lin); }
.etiquette--olive { background: var(--olive-fond); color: var(--lin); }
.etiquette--safran { background: var(--safran-clair); }
.etiquette--figue { background: var(--figue); color: var(--lin); }

.surtitre {
  display: inline-block;
  font-family: var(--f-accent);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--terracotta-texte);
  margin-bottom: 0.6rem;
  rotate: -2deg;
}

/* ---------- Boutons ---------- */
.bouton {
  --bg: var(--encre); --fg: var(--lin);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 1em 1.6em;
  min-height: 48px;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 700 1rem/1 var(--f-texte);
  text-decoration: none; cursor: pointer;
  overflow: hidden;
  transition: color 0.35s var(--ease), translate 0.35s var(--ease);
}
.bouton::before {
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 100%; width: 140%; aspect-ratio: 1;
  translate: -50% 0; border-radius: var(--blob-1);
  background: var(--terracotta);
  transition: top 0.55s var(--ease), border-radius 0.8s var(--ease);
}
.bouton:hover { color: var(--lin); }
.bouton:hover::before { top: -40%; border-radius: var(--blob-2); }
.bouton svg { width: 1.1em; height: 1.1em; transition: translate 0.35s var(--ease); }
.bouton:hover svg { translate: 0.25em 0; }
.bouton--clair { --bg: var(--lin); --fg: var(--encre); }
.bouton--clair::before { background: var(--safran); }
.bouton--clair:hover { color: var(--encre); }
.bouton[aria-disabled="true"] {
  --bg: transparent; --fg: var(--encre-douce);
  border: 2px dashed var(--encre-douce); cursor: not-allowed;
}
.bouton[aria-disabled="true"]::before { display: none; }

/* ==========================================================================
   Navigation : dock flottant (bureau) / bulle + rideau organique (mobile)
   ========================================================================== */
.logo-bulle {
  position: fixed; z-index: 70; top: 1rem; left: var(--gouttiere);
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--encre);
}
.logo-img {
  width: clamp(8.5rem, 13vw, 11.5rem); height: auto;
  transition: rotate 0.5s var(--ease), scale 0.5s var(--ease);
}
.logo-bulle:hover .logo-img { rotate: -2deg; scale: 1.04; }

.dock {
  position: fixed; z-index: 70;
  left: 50%; bottom: 1.1rem; translate: -50% 0;
  display: flex; align-items: center; gap: 0.25rem;
  padding: 0.4rem;
  background: rgb(68 47 41 / 0.88);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  box-shadow: 0 18px 40px -20px rgb(68 47 41 / 0.6);
}
.dock a {
  position: relative;
  display: block;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  color: var(--argile);
  text-decoration: none;
  font-weight: 600; font-size: 0.95rem;
  white-space: nowrap;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.dock a:hover { color: var(--lin); background: rgb(252 245 233 / 0.1); }
.dock a[aria-current="page"] { background: var(--safran-clair); color: var(--encre); }
.dock .dock-date {
  margin-left: 0.3rem;
  background: var(--terracotta-fond); color: var(--lin);
  font-family: var(--f-display); font-size: 0.95rem; font-weight: 700;
}
.dock .dock-date:hover { background: var(--figue); }

.menu-bouton {
  display: none;
  position: fixed; z-index: 85; top: 1rem; right: var(--gouttiere);
  width: 3.6rem; height: 3.6rem;
  border: 0; border-radius: var(--blob-2);
  background: var(--encre); color: var(--lin);
  cursor: pointer;
  animation: morph 10s ease-in-out infinite alternate-reverse;
}
.menu-bouton span {
  position: absolute; left: 50%; width: 1.4rem; height: 2px;
  background: currentColor; translate: -50% 0;
  transition: rotate 0.4s var(--ease), top 0.4s var(--ease);
}
.menu-bouton span:first-child { top: 44%; }
.menu-bouton span:last-child { top: 56%; }
.menu-bouton[aria-expanded="true"] span { top: 50%; }
.menu-bouton[aria-expanded="true"] span:first-child { rotate: 45deg; }
.menu-bouton[aria-expanded="true"] span:last-child { rotate: -45deg; }

.rideau {
  position: fixed; inset: 0; z-index: 80;
  background: var(--olive-nuit);
  color: var(--lin);
  clip-path: circle(0% at calc(100% - 3rem) 3rem);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease), visibility 0s linear 0.7s;
  display: grid; align-content: center;
  padding: 6rem var(--gouttiere) 3rem;
  overflow: hidden;
}
.rideau.ouvert {
  clip-path: circle(150% at calc(100% - 3rem) 3rem);
  visibility: visible;
  transition: clip-path 0.8s var(--ease), visibility 0s;
}
.rideau ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; position: relative; z-index: 1; }
.rideau a {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.2rem, 10vw, 3.6rem); line-height: 1.1;
  color: var(--lin); text-decoration: none;
  display: inline-block;
}
.rideau a[aria-current="page"] { color: var(--safran-clair); }
.rideau .rideau-info { margin-top: 2rem; color: var(--olive-clair); position: relative; z-index: 1; }
.rideau .forme {
  position: absolute; border-radius: var(--blob-1);
  animation: morph 9s ease-in-out infinite alternate;
}
.rideau .forme:nth-of-type(1) { width: 60vw; aspect-ratio: 1; right: -18vw; bottom: -12vw; background: var(--olive); }
.rideau .forme:nth-of-type(2) { width: 28vw; aspect-ratio: 1; left: -8vw; top: 12%; background: var(--terracotta); opacity: 0.8; }

@media (max-width: 860px) {
  .dock { display: none; }
  .menu-bouton { display: block; }
  body { padding-bottom: 0; }
}

/* Voile de transition entre pages */
.voile {
  position: fixed; inset: 0; z-index: 150;
  pointer-events: none;
  display: grid; place-items: center;
}
.voile span {
  width: 300vmax; aspect-ratio: 1;
  border-radius: var(--blob-1);
  background: var(--terracotta);
  scale: 0;
}

/* ==========================================================================
   Accueil — la scène du plateau
   ========================================================================== */
.scene {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  padding: 6rem var(--gouttiere) 4rem;
}
.scene-h1 {
  position: absolute; left: var(--gouttiere); bottom: 6.5rem; z-index: 3;
  margin: 0;
  font-family: var(--f-texte); font-size: var(--fs-petit); font-weight: 600;
  letter-spacing: 0.04em; line-height: 1.4;
  max-width: 22rem;
  color: var(--encre-douce);
  background: rgb(248 233 207 / 0.88);
  padding: 0.8rem 1rem;
  border-radius: 1.2rem;
}
.scene-h1 strong { display: block; font-family: var(--f-logo); font-weight: 400; font-size: 1.4rem; color: var(--terracotta-texte); letter-spacing: 0; }

.plateau {
  position: relative;
  width: min(84vw, 37rem, 60svh);
  aspect-ratio: 1;
  z-index: 2;
}
.plateau-anneau { position: absolute; inset: -9%; width: 118%; height: 118%; }
.plateau-anneau text {
  font-family: var(--f-logo); font-weight: 400; font-size: 25px;
  letter-spacing: 0.12em; fill: var(--encre);
}
.plateau-assiette {
  position: absolute; inset: 6%;
  border-radius: 50%;
  /* Ombrage en dégradés plutôt qu'en ombres intérieures (évite les liserés sur les formes qui tournent) */
  background:
    radial-gradient(circle at 50% 50%, var(--lin) 0 54%, transparent 55%),
    radial-gradient(120% 70% at 50% 108%, rgb(117 138 92 / 0.22), transparent 60%),
    radial-gradient(circle at 35% 30%, #fffaf2, var(--argile) 70%);
  box-shadow: 0 40px 70px -40px rgb(68 47 41 / 0.55);
}
.galet {
  position: absolute;
  width: var(--t, 17%); aspect-ratio: 1;
  border-radius: var(--blob-1);
  background:
    radial-gradient(circle at 30% 25%, rgb(255 255 255 / 0.32), transparent 45%),
    radial-gradient(circle at 72% 78%, rgb(68 47 41 / 0.25), transparent 55%),
    var(--c);
  animation: morph var(--d, 11s) ease-in-out infinite alternate;
}
.prix-piece {
  position: absolute; z-index: 4;
  left: 50%; top: 50%; translate: -50% -50%;
  width: 34%; aspect-ratio: 1;
  display: grid; place-items: center; text-align: center;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--lin);
  background: radial-gradient(circle at 50% 44%, var(--terracotta) 0 60%, color-mix(in srgb, var(--terracotta) 88%, black) 74%);
  box-shadow: 0 18px 30px -16px rgb(160 74 46 / 0.8);
}
.prix-piece b { display: block; font-family: var(--f-logo); font-weight: 400; font-size: clamp(2.6rem, 9vw, 4.6rem); line-height: 0.85; }
.prix-piece small { display: block; font-size: clamp(0.62rem, 1.6vw, 0.8rem); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.3em; }

.scene-etiquettes { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.scene-etiquettes .etiquette { position: absolute; pointer-events: auto; font-size: clamp(0.85rem, 1.4vw, 1.05rem); }
.scene-etiquettes .e1 { top: 17%; left: 9%; --r: -6deg; }
.scene-etiquettes .e2 { top: 22%; right: 8%; --r: 5deg; }
.scene-etiquettes .e3 { bottom: 24%; right: 10%; --r: -3deg; }
.scene-etiquettes .e4 { top: 44%; left: 5%; --r: 4deg; }

.scene-fond { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.scene-fond .forme { position: absolute; border-radius: var(--blob-1); animation: morph 16s ease-in-out infinite alternate; }
.scene-fond .f1 { width: 46vmax; aspect-ratio: 1; left: -14vmax; top: -10vmax; background: var(--olive-clair); opacity: 0.55; }
.scene-fond .f2 { width: 38vmax; aspect-ratio: 1; right: -12vmax; bottom: -14vmax; background: var(--terracotta-clair); opacity: 0.5; animation-duration: 19s; }
.scene-fond .f3 { width: 14vmax; aspect-ratio: 1; right: 18%; top: 8%; background: var(--safran-clair); opacity: 0.8; animation-duration: 13s; }


@media (max-width: 1180px) {
  .scene { padding-top: 6.5rem; align-content: start; min-height: 0; padding-bottom: 5rem; }
  .plateau { width: min(78vw, 34rem, 58svh); }
}
@media (max-width: 560px) {
  .plateau { width: min(70vw, 58svh); }
  .scene-etiquettes { position: relative; inset: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-top: 2.2rem; }
  .scene-etiquettes .etiquette { position: static; }
  .scene-h1 { position: static; margin-top: 2rem; text-align: center; max-width: none; }
}

/* ---------- Texte ondulant le long d'une courbe ---------- */
.vague-texte { position: relative; margin-block: -2rem; z-index: 2; pointer-events: none; }
.vague-texte svg { width: 100%; height: auto; overflow: visible; }
.vague-texte text {
  font-family: var(--f-display); font-weight: 800;
  font-size: 64px; fill: var(--encre);
}
.vague-texte .doux { fill: var(--terracotta); }
.vague-texte .ruban { fill: none; stroke: var(--safran-clair); stroke-width: 96; stroke-linecap: round; opacity: 0.85; }

/* ---------- Compose ton plateau (défilement horizontal) ---------- */
.compose { position: relative; overflow: hidden; background: var(--lin); }
.compose-piste {
  display: flex;
  width: max-content;
  min-height: 100svh;
  align-items: center;
}
.compose-panneau {
  position: relative;
  width: min(100vw, 64rem);
  padding: 6rem var(--gouttiere) 4rem;
  flex: none;
}
.compose-panneau:first-child { padding-left: max(var(--gouttiere), calc((100vw - var(--largeur)) / 2)); }
.compose-panneau h1, h2 { font-family: var(--f-logo); font-weight: 400; font-synthesis: none; letter-spacing: 0; line-height: 1.02; }
h2 { font-size: var(--fs-1); }
.compose-panneau .numero {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(7rem, 20vw, 15rem); line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px var(--c, var(--terracotta));
  position: absolute; right: var(--gouttiere); top: 3rem;
  opacity: 0.5;
  pointer-events: none;
}
.choix { border: 0; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.choix legend { font-weight: 700; margin-bottom: 0.8rem; padding: 0; }
.choix label {
  --c: var(--olive);
  position: relative;
  width: clamp(6.2rem, 26vw, 9.5rem);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  font-weight: 700; font-size: 0.92rem; line-height: 1.2;
  cursor: pointer;
}
.choix-visuel { position: relative; width: 100%; margin-bottom: 0.7rem; }
.choix-photo {
  display: block; aspect-ratio: 1; overflow: hidden;
  border-radius: var(--blob-2);
  outline: 2px dashed var(--c); outline-offset: 4px;
  background: var(--argile);
  transition: border-radius 0.8s var(--ease), outline-color 0.4s var(--ease);
}
.choix-photo img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.8s var(--ease), filter 0.5s var(--ease); }
.choix-drapeau {
  position: absolute; right: -0.3rem; bottom: -0.3rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  border: 3px solid var(--lin); box-shadow: var(--ombre);
  rotate: -8deg; transition: rotate 0.5s var(--ease), scale 0.5s var(--ease);
}
.choix label small { display: block; font-weight: 500; font-size: 0.75rem; color: var(--encre-douce); margin-top: 0.15rem; }
.choix label:hover .choix-photo { border-radius: var(--blob-3); }
.choix label:hover .choix-photo img { scale: 1.08; }
.choix label:hover .choix-drapeau { rotate: 8deg; scale: 1.1; }
.choix input { position: absolute; opacity: 0; pointer-events: none; }
/* Plat choisi : contour plein, coche, nom en couleur ; les autres s'effacent un peu */
.choix:has(input:checked) label .choix-photo img { filter: saturate(0.4) opacity(0.75); }
.choix input:checked + label .choix-photo { outline: 4px solid var(--c); border-radius: var(--blob-3); }
.choix input:checked + label .choix-photo img { filter: none; }
.choix input:checked + label .choix-nom { color: var(--c); }
.choix input:checked + label .choix-visuel::before {
  content: "✓"; position: absolute; z-index: 1; left: -0.3rem; top: -0.3rem;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c); color: var(--lin); font-size: 1rem; font-weight: 800;
  box-shadow: var(--ombre);
}
.choix input:focus-visible + label .choix-photo { outline: 3px solid var(--figue); }
.choix--plat label { --c: var(--terracotta); }
.choix--dessert label { --c: var(--figue); }

.mini-plateau {
  position: absolute; z-index: 5;
  right: var(--gouttiere); bottom: 2rem;
  width: clamp(9rem, 18vw, 13rem);
  pointer-events: none;
}
.mini-plateau .case { fill: var(--sable); stroke: var(--encre-douce); stroke-dasharray: 5 5; stroke-width: 2; transition: fill 0.5s var(--ease); }
.mini-plateau .case.plein { stroke-dasharray: none; }
.mini-plateau .case[data-case="entree"].plein { fill: var(--olive); }
.mini-plateau .case[data-case="plat"].plein { fill: var(--terracotta); }
.mini-plateau .case[data-case="dessert"].plein { fill: var(--figue); }
.mini-plateau .mp-drapeau { opacity: 0; transition: opacity 0.4s var(--ease); }
.mini-plateau .mp-drapeau.visible { opacity: 1; }
.total {
  font-family: var(--f-display); font-weight: 900;
  font-size: var(--fs-mega); line-height: 0.85;
  color: var(--terracotta);
}

@media (max-width: 860px), (prefers-reduced-motion: reduce) {
  .compose-piste { flex-direction: column; width: auto; min-height: 0; }
  .compose-panneau, .compose-panneau:first-child { width: 100%; padding: 4rem var(--gouttiere); }
  .mini-plateau { position: sticky; top: auto; bottom: 1rem; margin: -9rem 0 0 auto; display: block; }
}

/* ---------- Compte à rebours ---------- */
.rebours {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.rebours-blob {
  position: relative;
  aspect-ratio: 1;
  display: grid; place-items: center; text-align: center;
  background: var(--olive-fond);
  color: var(--lin);
  border-radius: var(--blob-1);
  animation: morph 14s ease-in-out infinite alternate;
  padding: 12%;
}
.rebours-blob .jours { font-family: var(--f-logo); font-weight: 400; font-size: clamp(5rem, 16vw, 12rem); line-height: 0.85; display: block; }
.rebours-blob .unite { font-family: var(--f-accent); font-size: clamp(1.2rem, 2.4vw, 1.8rem); }
.rebours-details { display: flex; gap: 1.2rem; justify-content: center; margin-top: 1rem; font-variant-numeric: tabular-nums; font-weight: 700; }
.rebours-details span { display: grid; font-size: 1.4rem; line-height: 1.1; }
.rebours-details small { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }

.infos-pratiques { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 0.9rem; }
.infos-pratiques li { display: flex; gap: 0.9rem; align-items: flex-start; }
.infos-pratiques svg { width: 1.6rem; height: 1.6rem; flex: none; color: var(--terracotta); margin-top: 0.1rem; }
.infos-pratiques strong { display: block; }

@media (max-width: 760px) { .rebours { grid-template-columns: 1fr; } .rebours-blob { width: min(100%, 24rem); margin-inline: auto; } }

/* ---------- Bulles « qui peut venir » ---------- */
.bulles { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.4rem; margin-top: 3rem; }
.bulle {
  position: relative;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  border-radius: 2.6rem 2.6rem 2.6rem 0.6rem;
  box-shadow: var(--ombre);
}
.bulle h3 { font-size: var(--fs-3); }
.bulle p:last-child { margin-bottom: 0; }
.bulle--oui { grid-column: 1 / span 7; background: var(--olive-fond); color: var(--lin); rotate: -1.5deg; }
.bulle--sur-demande { grid-column: 6 / span 7; background: var(--safran-clair); rotate: 1.2deg; border-radius: 2.6rem 2.6rem 0.6rem 2.6rem; }
.bulle--non { grid-column: 2 / span 6; background: var(--lin); rotate: -0.8deg; border: 2px dashed var(--encre-douce); box-shadow: none; }
@media (max-width: 760px) { .bulle--oui, .bulle--sur-demande, .bulle--non { grid-column: 1 / -1; } }

/* ---------- Engagements « sur place » ---------- */
.engagements { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2.4rem 1.6rem; margin-top: 3rem; }
.engagement { position: relative; padding-top: 5.4rem; }
.engagement .pastille {
  position: absolute; top: 0; left: 0;
  width: 4.4rem; height: 4.4rem;
  display: grid; place-items: center;
  border-radius: var(--blob-2);
  background: var(--c, var(--terracotta)); color: var(--lin);
  animation: morph 10s ease-in-out infinite alternate;
}
.engagement:nth-child(2) .pastille { --c: var(--olive); animation-delay: -3s; }
.engagement:nth-child(3) .pastille { --c: var(--safran); color: var(--encre); animation-delay: -5s; }
.engagement:nth-child(4) .pastille { --c: var(--figue); animation-delay: -7s; }
.engagement .pastille svg { width: 1.8rem; height: 1.8rem; }
.engagement h3 { font-size: 1.3rem; }

/* ---------- Chemin des étapes ---------- */
.chemin { position: relative; margin-top: 3rem; }
.chemin-trace { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.chemin-trace path { fill: none; stroke: var(--terracotta); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 10; }
.chemin-trace .trait { stroke-dasharray: none; stroke: var(--olive); stroke-width: 4; }
.chemin ol { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.chemin li {
  position: relative;
  width: min(100%, 26rem);
  padding: 1.4rem 1.6rem 1.4rem 4.6rem;
  background: var(--lin);
  border-radius: 1.8rem 2.4rem 2rem 2.6rem;
  box-shadow: var(--ombre);
}
.chemin li:nth-child(even) { margin-left: auto; }
.chemin li:nth-child(3n+2) { rotate: 1deg; }
.chemin li:nth-child(3n) { rotate: -1.2deg; }
.chemin li .rond {
  position: absolute; left: 1.1rem; top: 1.3rem;
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  border-radius: var(--blob-1);
  background: var(--olive-fond); color: var(--lin);
  font-family: var(--f-display); font-weight: 800;
}
.chemin li.temps-fort { background: var(--terracotta-fond); color: var(--lin); }
.chemin li.temps-fort .rond { background: var(--safran-clair); color: var(--encre); }
.chemin time { display: block; font-family: var(--f-accent); font-size: 1.1rem; color: var(--terracotta-texte); }
.chemin li.temps-fort time { color: var(--lin); }
.chemin h3 { font-size: 1.3rem; margin: 0.15em 0 0; }
@media (max-width: 700px) { .chemin-trace { display: none; } .chemin li:nth-child(even) { margin-left: 0; } }

/* ---------- Portes « participer » ---------- */
.portes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2rem); margin-top: 3rem; }
.porte {
  --c: var(--olive-fond);
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 22rem;
  padding: 2rem 5rem 2rem 2rem;
  color: var(--lin);
  text-decoration: none;
  isolation: isolate;
  transition: translate 0.5s var(--ease);
}
/* La forme (arche) vit sur un calque : elle peut changer sans jamais couper le texte */
.porte::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--c);
  border-radius: 50% 50% 2rem 2rem / 9rem 9rem 2rem 2rem;
  transition: border-radius 0.7s var(--ease);
}
.porte:hover::before { border-radius: 2.4rem 50% 2rem 2rem / 2.4rem 9rem 2rem 2rem; }
.porte:nth-child(2) { --c: var(--terracotta-fond); margin-top: 3rem; }
.porte:nth-child(3) { --c: var(--figue); }
.porte:hover { color: var(--lin); translate: 0 -0.4rem; }
.porte h3 { font-size: var(--fs-3); }
.porte p { margin: 0; opacity: 0.92; }
.porte .fleche { position: absolute; bottom: 2rem; right: 1.8rem; width: 2.4rem; height: 2.4rem; transition: rotate 0.5s var(--ease); }
.porte:hover .fleche { rotate: -45deg; }
@media (max-width: 760px) { .portes { grid-template-columns: 1fr; } .porte:nth-child(2) { margin-top: 0; } .porte { min-height: 15rem; } }

/* ---------- Vagues de séparation ---------- */
.vague { display: block; width: 100%; height: clamp(40px, 7vw, 110px); color: var(--c, var(--lin)); }
.vague--haut { margin-bottom: -1px; }
.vague--bas { margin-top: -1px; }

/* ==========================================================================
   Pages intérieures
   ========================================================================== */
.intro {
  position: relative;
  min-height: 78svh;
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center;
  gap: 2rem;
  padding: 8rem var(--gouttiere) 3rem;
  max-width: calc(var(--largeur) + 2 * var(--gouttiere));
  margin-inline: auto;
}
.intro h1 { font-size: var(--fs-1); margin-bottom: 0.3em; }
.intro p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--encre-douce); }
.intro-visuel { position: relative; aspect-ratio: 1; width: min(100%, 30rem); justify-self: center; }
.intro-visuel .forme {
  position: absolute; inset: 0;
  border-radius: var(--blob-1);
  background: var(--c, var(--terracotta-clair));
  animation: morph 13s ease-in-out infinite alternate;
}
.intro-visuel .forme + .forme { inset: 18%; background: var(--c2, var(--olive)); animation-duration: 9s; animation-direction: alternate-reverse; }
.intro-visuel .anneau { position: absolute; inset: -6%; width: 112%; height: 112%; animation: tourne 40s linear infinite; }
.intro-visuel .anneau text { font-family: var(--f-logo); font-weight: 400; font-size: 17px; letter-spacing: 0.2em; fill: var(--encre); }
.intro-visuel .centre {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font-family: var(--f-logo); font-weight: 400; color: var(--lin);
  font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 0.9;
}
/* Symbole PANGEA au centre du visuel (page L'asso) */
.intro-visuel .centre-logo { width: 52%; height: auto; filter: drop-shadow(0 10px 18px rgb(68 47 41 / 0.25)); }
@media (max-width: 760px) {
  .intro { grid-template-columns: 1fr; min-height: 0; padding-top: 7rem; }
  .intro-visuel { width: min(72%, 18rem); order: -1; }
}

/* Deux colonnes souples */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: start; }

/* Ticket d'informations */
.ticket {
  position: relative;
  background: var(--lin);
  border-radius: 2.4rem;
  padding: clamp(1.6rem, 4vw, 3rem);
  box-shadow: var(--ombre);
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 1.3rem, #000 1.35rem) left / 51% 100% no-repeat,
                radial-gradient(circle at 100% 50%, transparent 1.3rem, #000 1.35rem) right / 51% 100% no-repeat;
          mask: radial-gradient(circle at 0 50%, transparent 1.3rem, #000 1.35rem) left / 51% 100% no-repeat,
                radial-gradient(circle at 100% 50%, transparent 1.3rem, #000 1.35rem) right / 51% 100% no-repeat;
}
.ticket dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.6rem; }
.ticket dt { font-family: var(--f-accent); color: var(--terracotta-texte); font-size: 1.1rem; }
.ticket dd { margin: 0; font-weight: 600; }
@media (max-width: 520px) { .ticket dl { grid-template-columns: 1fr; gap: 0.2rem; } .ticket dd { margin-bottom: 0.9rem; } }

/* Grille 3 × 3 du principe : une ligne par service, photos en cercles parfaits */
.grille-9 { display: grid; gap: 1.6rem; max-width: 34rem; width: 100%; }
.grille-9 .ligne-titre {
  display: block; margin-bottom: 0.7rem;
  font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; color: var(--c);
}
.g-plats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
.grille-9 .g { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.grille-9 .g-photo { position: relative; display: block; width: min(100%, 8.5rem); aspect-ratio: 1; margin-bottom: 0.6rem; }
.grille-9 .g-photo > img:first-child {
  width: 100%; height: 100%; object-fit: cover; display: block;
  clip-path: circle(50%);
  box-shadow: none;

}
/* Anneau de couleur autour de la photo */
.grille-9 .g-photo::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 3px solid var(--c); pointer-events: none;
}
.grille-9 .g-drapeau {
  position: absolute; z-index: 1; right: -2%; bottom: -2%;
  width: 28%; height: auto; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid var(--lin); box-shadow: var(--ombre);
}
.grille-9 .g-nom { font-weight: 700; font-size: 0.85rem; line-height: 1.2; text-wrap: balance; overflow-wrap: normal; hyphens: none; }
.grille-9 .g small { display: block; font-size: 0.72rem; color: var(--encre-douce); margin-top: 0.15rem; }
@media (max-width: 420px) { .grille-9 .g-nom { font-size: 0.78rem; } .g-plats { gap: 0.7rem; } }

/* FAQ native */
.faq { display: grid; gap: 0.9rem; margin-top: 2rem; max-width: 50rem; }
.faq details {
  background: var(--lin);
  border-radius: 1.6rem;
  box-shadow: var(--ombre);
  overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 1.2rem 1.5rem;
  font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  width: 2rem; height: 2rem; display: grid; place-items: center;
  border-radius: var(--blob-1); background: var(--safran-clair);
  font-family: var(--f-display); font-size: 1.4rem;
  transition: rotate 0.4s var(--ease);
}
.faq details[open] summary::after { rotate: 135deg; background: var(--terracotta-clair); }
.faq .reponse { padding: 0 1.5rem 1.3rem; }
.faq .reponse p:last-child { margin: 0; }

/* Note encadrée */
.note {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.2rem 1.4rem;
  border-radius: 1.4rem;
  background: rgb(242 190 92 / 0.16);
  max-width: 50rem;
}
.note svg { width: 1.5rem; height: 1.5rem; flex: none; color: var(--terracotta); margin-top: 0.15rem; }
.note p { margin: 0; }

/* ---------- Menu ---------- */
.statut-menu {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem;
  padding: 1.3rem 1.6rem;
  border-radius: 999px;
  background: var(--olive-nuit); color: var(--lin);
}
.statut-menu .a-venir { color: var(--safran-clair); }
@media (max-width: 640px) { .statut-menu { border-radius: 1.6rem; } }

.service { margin-top: clamp(4rem, 8vw, 6rem); }
.service-titre { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.service-titre h2 { margin: 0; }
.service-titre .compte { font-family: var(--f-accent); font-size: 1.3rem; color: var(--encre-douce); }
.plats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2rem; }
@media (max-width: 960px) { .plats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .plats { grid-template-columns: 1fr; } }

.plat { perspective: 1400px; min-height: 30rem; }
.plat-interieur {
  position: relative; height: 100%; min-height: inherit;
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease);
}
.plat.retourne .plat-interieur { transform: rotateY(180deg); }
.plat-face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 2.2rem;
  background: var(--lin);
  box-shadow: var(--ombre);
  padding: 1.4rem;
  display: flex; flex-direction: column;
}
.plat-face--dos { transform: rotateY(180deg); overflow: auto; }
.plat-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--blob-2);
  background: repeating-linear-gradient(-45deg, var(--argile) 0 10px, var(--sable) 10px 20px);
  display: grid; place-items: center;
  overflow: hidden;
  transition: border-radius 0.8s var(--ease);
}
.plat:hover .plat-photo { border-radius: var(--blob-3); }
.plat-photo img { width: 100%; height: 100%; object-fit: cover; }
.plat-visuel { position: relative; margin-bottom: 1.2rem; }
.plat-photo img { grid-area: 1 / 1; transition: scale 0.8s var(--ease); }
.plat:hover .plat-photo img { scale: 1.05; }
.plat-legende {
  position: absolute; left: 50%; bottom: 0.7rem; translate: -50% 0;
  padding: 0.2em 0.7em; border-radius: 999px;
  background: rgb(68 47 41 / 0.55); color: var(--lin);
  font-size: 0.7rem; letter-spacing: 0.04em; white-space: nowrap;
}
/* Drapeau en pastille, posé sur le bord de la photo */
.plat-drapeau {
  position: absolute; right: 0.4rem; bottom: -0.6rem;
  width: 3.2rem; height: 3.2rem; border-radius: 50%;
  border: 4px solid var(--lin); box-shadow: var(--ombre);
  rotate: -8deg; transition: rotate 0.6s var(--ease), scale 0.6s var(--ease);
}
.plat:hover .plat-drapeau { rotate: 6deg; scale: 1.08; }
.plat-indicatif { font-size: 0.78rem !important; color: var(--encre-douce); margin: 0 0 0.8rem; }
.credits-photos { font-size: 0.85rem; padding-left: 1.2rem; display: grid; gap: 0.3rem; overflow-wrap: anywhere; }
.plat-pays { font-family: var(--f-accent); color: var(--terracotta-texte); font-size: 1.1rem; }
.plat h3 { font-size: 1.45rem; margin: 0.15em 0 0.4em; }
.plat-face p { font-size: 0.95rem; }
.plat-retourner {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.7em 1.2em; min-height: 44px;
  border: 2px solid var(--encre); border-radius: 999px;
  background: transparent; color: var(--encre);
  font: 700 0.9rem var(--f-texte); cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.plat-retourner:hover { background: var(--encre); color: var(--lin); }
.plat-face--dos dl { margin: 0 0 1rem; display: grid; gap: 0.7rem; font-size: 0.93rem; }
.plat-face--dos dt { font-weight: 800; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--encre-douce); }
.plat-face--dos dd { margin: 0.1rem 0 0; }
.regimes { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.4rem; }
.regime {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.25em 0.7em; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700;
  background: var(--sable); color: var(--encre-douce);
  border: 1.5px dashed var(--encre-douce);
}
.regime.oui { background: var(--olive-fond); color: var(--lin); border-style: solid; border-color: var(--olive-fond); }
.plat--entree .plat-face--dos { border-top: 8px solid var(--olive); }
.plat--plat .plat-face--dos { border-top: 8px solid var(--terracotta); }
.plat--dessert .plat-face--dos { border-top: 8px solid var(--figue); }
@media (prefers-reduced-motion: reduce) { .plat-interieur { transition: none; } }

.allergenes { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.allergenes li {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.55em 1em 0.55em 0.55em;
  border-radius: 999px;
  background: var(--lin);
  box-shadow: var(--ombre);
  font-weight: 600; font-size: 0.95rem;
  transition: translate 0.3s var(--ease), rotate 0.3s var(--ease);
}
.allergenes li:hover { translate: 0 -3px; rotate: -2deg; }
.allergenes .num {
  width: 1.9rem; height: 1.9rem; display: grid; place-items: center;
  border-radius: var(--blob-1);
  background: var(--safran-clair);
  font-family: var(--f-display); font-weight: 800; font-size: 0.85rem;
}

/* ---------- Association / bureau ---------- */
.valeurs { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0.2em 0.5em; font-family: var(--f-logo); font-weight: 400; font-size: var(--fs-mega); line-height: 1; text-align: center; }
.valeurs span { display: inline-block; }
.valeurs .v1 { color: var(--terracotta); }
.valeurs .v2 { color: var(--olive); }
.valeurs .v3 { color: var(--figue); }
.valeurs .et { color: var(--encre); }
.valeurs .v2 + .et { margin-left: -0.15em; }

.bureau { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem); margin-top: 3rem; }
@media (max-width: 960px) { .bureau { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .bureau { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; } .membre h3 { font-size: 1.15rem; } .membre .role { font-size: 1rem; } }
.membre:nth-child(even) { margin-top: 3rem; }
@media (max-width: 480px) { .membre:nth-child(even) { margin-top: 2rem; } }
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--blob-1);
  overflow: hidden;
  background: var(--c, var(--olive));
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
  transition: border-radius 1s var(--ease);
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* force la découpe arrondie sur Safari */
  transform: translateZ(0);
}
.membre:nth-child(2) .portrait { --c: var(--terracotta); animation-delay: -4s; }
.membre:nth-child(3) .portrait { --c: var(--figue); animation-delay: -8s; }
.membre:nth-child(4) .portrait { --c: var(--safran); animation-delay: -11s; }
.portrait .initiales { font-family: var(--f-logo); font-weight: 400; font-size: 3.4rem; color: var(--lin); }
.portrait img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(1) brightness(1.18) contrast(1.05);
  transition: scale 0.8s var(--ease), filter 0.6s var(--ease);
}
/* Teinte de la couleur du membre, qui garde la luminosité de la photo */
.portrait:has(img)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--c, var(--olive));
  mix-blend-mode: color; opacity: 0.6;
  transition: opacity 0.6s var(--ease);
}
/* Effets de survol : uniquement à la souris (au doigt, ils restaient « collés ») */
@media (hover: hover) {
  .membre:hover .portrait { border-radius: var(--blob-3); }
  .membre:hover .portrait img { filter: none; scale: 1.06; }
  .membre:hover .portrait::after { opacity: 0; }
}
/* Illustration (pas une photo) : couleurs d'origine, sans teinte */
.membre .role { font-family: var(--f-accent); color: var(--terracotta-texte); font-size: 1.15rem; display: block; }
.membre h3 { font-size: 1.4rem; margin: 0.1em 0 0.3em; }
.membre .reserve { font-size: 0.88rem; color: var(--encre-douce); margin: 0; }

.principes { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.principes li {
  padding: 1.4rem 1.5rem;
  border-radius: 1.6rem 2.2rem 1.8rem 2.4rem;
  background: rgb(252 245 233 / 0.12);
  border: 1.5px solid rgb(252 245 233 / 0.25);
}
.principes strong { display: block; font-family: var(--f-display); font-size: 1.2rem; margin-bottom: 0.3rem; }

/* Fonds de section */
.fond-lin { background: var(--lin); }
.fond-nuit { background: var(--olive-nuit); color: var(--lin); }
.fond-nuit a { color: var(--safran-clair); }
.fond-nuit .surtitre { color: var(--safran-clair); }
.fond-nuit p { color: rgb(252 245 233 / 0.88); }
.fond-terracotta { background: var(--terracotta-fond); color: var(--lin); }
.fond-terracotta .surtitre { color: var(--lin); }

/* Dons */
.dons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.6rem; margin-top: 2.4rem; }
.don {
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: 3rem 1.6rem 3rem 1.6rem;
  background: var(--lin); color: var(--encre);
  box-shadow: var(--ombre);
}
.don:nth-child(2) { border-radius: 1.6rem 3rem 1.6rem 3rem; background: var(--safran-clair); }
.don h3 { font-size: var(--fs-3); }
.don .gros { font-family: var(--f-logo); font-weight: 400; font-size: clamp(3rem, 7vw, 5rem); line-height: 0.9; color: var(--terracotta-texte); display: block; margin-bottom: 0.4rem; }
.don p { color: var(--encre); }

.usages { list-style: none; padding: 0; margin: 2.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.9rem; }
.usages li { font-size: 1.05rem; }

.partenaires-vides { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.partenaires-vides span {
  width: 9rem; height: 6rem; display: grid; place-items: center; text-align: center;
  border-radius: var(--blob-2); border: 2px dashed var(--encre-douce);
  font-size: 0.8rem; font-weight: 700; color: var(--encre-douce); padding: 0.6rem;
}

/* ---------- Pages légales ---------- */
.legal { max-width: 52rem; }
.legal h2 { font-size: var(--fs-2); margin-top: 2.6rem; }
.legal dl { display: grid; grid-template-columns: minmax(10rem, auto) 1fr; gap: 0.6rem 1.4rem; margin: 0; }
.legal dt { font-weight: 700; }
.legal dd { margin: 0; }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; gap: 0.1rem; } .legal dd { margin-bottom: 0.8rem; } }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.pied { position: relative; background: var(--olive-nuit); color: var(--argile); margin-top: 0; }
.pied-haut { display: block; width: 100%; height: clamp(50px, 8vw, 120px); color: var(--olive-nuit); background: var(--fond-avant, var(--sable)); }
.pied-contenu { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.4rem; padding-block: 3rem 2rem; }
.pied h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); color: var(--lin); }
.pied h3 { font-family: var(--f-texte); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--olive-clair); margin-bottom: 1rem; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.pied a { color: var(--lin); text-decoration: none; }
.pied a:hover { color: var(--safran-clair); text-decoration: underline; }
.pied .a-venir { color: var(--argile); }
.pied-bas {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-block: 1.6rem 2rem;
  border-top: 1px solid rgb(252 245 233 / 0.14);
  font-size: var(--fs-petit); color: var(--olive-clair);
}
.pied-bas p { margin: 0; max-width: none; }
@media (max-width: 760px) { .pied-contenu { grid-template-columns: 1fr; } }

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes morph {
  0%   { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  33%  { border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%; }
  66%  { border-radius: 38% 62% 45% 55% / 62% 38% 62% 38%; }
  100% { border-radius: 55% 45% 40% 60% / 45% 60% 40% 55%; }
}
@keyframes tourne { to { rotate: 360deg; } }
@keyframes pulse { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: 1.6; opacity: 0.5; } }
@keyframes fil { 0% { stroke-dashoffset: 120; } 60%, 100% { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Compléments */
.voile-entree .voile span { scale: 1; }
.plateau-galets { position: absolute; inset: 6%; z-index: 1; }
.plateau-anneau { z-index: 0; }
.plateau-anneau, .intro-visuel .anneau { max-width: none; }
.vague { margin-block: -1px; position: relative; }
.fond-terracotta .a-venir, .fond-nuit .a-venir { color: var(--lin); }
@media (max-width: 860px), (prefers-reduced-motion: reduce) {
  .mini-plateau { position: relative; right: auto; bottom: auto; margin: -1rem auto 3rem; }
}

/* Animations CSS en pause hors de l'écran (économie de calcul) */
.pause, .pause::before, .pause::after { animation-play-state: paused !important; }

/* Logo et nom : disparaissent dès qu'on fait défiler */
.logo-bulle { transition: opacity 0.45s var(--ease), translate 0.45s var(--ease), visibility 0s linear 0s; }
.defile .logo-bulle { opacity: 0; translate: 0 -1.2rem; visibility: hidden; transition: opacity 0.45s var(--ease), translate 0.45s var(--ease), visibility 0s linear 0.45s; }
.rideau-ouvert .logo-bulle { opacity: 1; translate: 0 0; visibility: visible; z-index: 86; }

/* ---------- Carte (infos pratiques) ---------- */
.lieu { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.6rem, 4vw, 3rem); align-items: center; margin-top: 2.6rem; }
@media (max-width: 900px) { .lieu { grid-template-columns: 1fr; } }
.carte {
  position: relative;
  height: clamp(20rem, 42vw, 30rem);
  border-radius: 5rem 3rem 6rem 3.5rem / 4rem 5.5rem 3rem 6rem;
  overflow: hidden;
  background: var(--argile);
  box-shadow: var(--ombre);
  isolation: isolate;
}
@media (max-width: 600px) { .carte { border-radius: 3rem 4.5rem 3.2rem 5rem; height: 22rem; } }
.carte-illustration { position: absolute; inset: 0; width: 100%; height: 100%; }
.carte-consentement {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-content: center; justify-items: center; gap: 0.9rem;
  text-align: center; padding: 2rem 12%;
}
.carte-consentement .carte-titre {
  margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.6rem); line-height: 1.15;
  background: var(--lin); padding: 0.5em 1em; border-radius: 1.4rem; box-shadow: var(--ombre);
}
.carte-consentement .carte-mention { margin: 0; font-size: 0.8rem; max-width: 30ch; color: var(--encre); background: rgb(252 245 233 / 0.85); padding: 0.4em 0.9em; border-radius: 1rem; }
.carte-leaflet { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity 0.8s var(--ease); background: var(--argile); }
.carte.chargee .carte-leaflet { opacity: 1; z-index: 3; }
.carte.chargee .carte-consentement { display: none; }
.pin { position: relative; display: block; width: 38px; height: 38px; cursor: default; }
.pin--arret { width: 20px; height: 20px; }
.pin-forme {
  position: absolute; inset: 0;
  background: var(--terracotta);
  border-radius: 50% 50% 50% 0;
  rotate: -45deg;
  box-shadow: 0 10px 18px -8px rgb(68 47 41 / 0.6);
  animation: pin-chute 0.9s var(--ease) both;
}
.pin-forme::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: var(--lin); }
.pin-onde { position: absolute; left: 50%; bottom: -6px; width: 16px; height: 6px; translate: -50% 0; border-radius: 50%; background: rgb(68 47 41 / 0.25); }
.pin-onde::after { content: ""; position: absolute; inset: -10px -14px; border-radius: 50%; border: 2px solid var(--terracotta); animation: onde 2.4s ease-out infinite; }
.pin--arret .pin-forme { background: var(--olive); border-radius: 50%; rotate: 0deg; }
.pin--arret .pin-forme::after { inset: 32%; }
.pin-etiquette {
  position: absolute; left: 50%; bottom: calc(100% + 8px); translate: -50% 0;
  white-space: nowrap; font: 700 0.78rem/1.2 var(--f-texte);
  background: var(--lin); color: var(--encre); padding: 0.35em 0.8em; border-radius: 999px; box-shadow: var(--ombre);
}
.pin--arret .pin-etiquette { background: var(--olive-fond); color: var(--lin); }
.carte-liens { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.lien-pastille {
  display: inline-flex; align-items: center; gap: 0.5em; min-height: 44px;
  padding: 0.6em 1.1em; border-radius: 999px; border: 2px solid var(--encre);
  color: var(--encre); text-decoration: none; font-weight: 700; font-size: 0.92rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.lien-pastille:hover { background: var(--encre); color: var(--lin); }
.lien-pastille svg { width: 1.1em; height: 1.1em; }
@keyframes pin-chute { from { translate: 0 -40px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes onde { from { scale: 0.4; opacity: 1; } to { scale: 1.6; opacity: 0; } }
.portrait:has(img) .initiales { display: none; }

/* Aucun défilement horizontal parasite (éléments animés qui glissent depuis les côtés) */
html, body { overflow-x: hidden; overflow-x: clip; }
.section, .intro, .vague-texte { overflow-x: clip; }
.pin--arret .pin-etiquette { bottom: auto; top: 50%; left: auto; right: calc(100% + 10px); translate: 0 -50%; }

/* Carte MapLibre aux couleurs du site */
.carte .maplibregl-map { font-family: var(--f-texte); background: var(--sable); }
.carte .maplibregl-ctrl-top-left { margin: 1.4rem 0 0 1.4rem; }
.carte .maplibregl-ctrl-group { background: transparent; box-shadow: none; }
.carte .maplibregl-ctrl-group button {
  width: 2.4rem; height: 2.4rem; background-color: var(--encre); border: 0 !important;
}
.carte .maplibregl-ctrl-group button + button { margin-top: 2px; }
.carte .maplibregl-ctrl-group button:first-child { border-radius: 1.2rem 1.2rem 0.3rem 0.3rem; }
.carte .maplibregl-ctrl-group button:last-child { border-radius: 0.3rem 0.3rem 1.2rem 1.2rem; }
.carte .maplibregl-ctrl-group button:hover { background-color: var(--terracotta) !important; }
.carte .maplibregl-ctrl-icon { filter: invert(1) brightness(1.1); }
.carte .maplibregl-ctrl-bottom-right { margin: 0 1.6rem 0.8rem 0; }
.carte .maplibregl-ctrl-attrib { background: rgb(252 245 233 / 0.92); border-radius: 1rem; font-size: 0.7rem; }
.carte .maplibregl-ctrl-attrib a { color: var(--terracotta-texte); }
.carte .maplibregl-cooperative-gesture-screen { background: rgb(59 69 46 / 0.72); font-family: var(--f-texte); font-weight: 700; font-size: 1.1rem; border-radius: inherit; }

/* Pièce « 1 € » : le texte suit la taille du cercle */
.prix-piece { container-type: inline-size; }
.prix-piece b { font-size: 34cqi; }
.prix-piece small { font-size: 7.5cqi; }
.carte .carte-leaflet.maplibregl-map { position: absolute; inset: 0; }
@media (max-width: 600px) { .carte .maplibregl-ctrl-attrib { font-size: 0.62rem; } .carte .maplibregl-ctrl-bottom-right { margin: 0 1rem 0.6rem 0; } }
@media (max-width: 600px) { .pin--arret .pin-etiquette { top: calc(100% + 8px); bottom: auto; right: auto; left: 50%; translate: -50% 0; } }

/* Formes arrondies qui contiennent une photo : pas de couleur de fond derrière
   (sinon liseré coloré sur le bord) et découpe stable pendant les animations */
.portrait, .plat-photo, .choix-photo { isolation: isolate; }
.portrait:has(img), .plat-photo:has(img), .choix-photo { background: none; }

/* Étiquettes (surtitres, rôles, pays…) : capitales espacées dans la police du texte */
.surtitre, .rebours-blob .unite, .chemin time, .ticket dt, .service-titre .compte, .plat-pays, .membre .role {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem;
}
.surtitre { font-size: 0.9rem; }
.rebours-blob .unite { font-size: clamp(0.8rem, 1.6vw, 1rem); }

/* ---------- Boutique ---------- */
.produits { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: clamp(1.4rem, 3vw, 2.2rem); margin-top: 2.5rem; }
.produit { display: flex; flex-direction: column; background: var(--lin); border-radius: 2rem; overflow: hidden; box-shadow: var(--ombre); transition: translate 0.5s var(--ease); }
.produit:nth-child(3n+2) { rotate: 0.6deg; } .produit:nth-child(3n) { rotate: -0.6deg; }
.produit-image img { width: 100%; height: auto; aspect-ratio: 1; transition: scale 0.8s var(--ease); }
.produit-texte { padding: 1.3rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }
.produit h3 { font-size: var(--fs-3); margin: 0; }
.produit p { margin: 0; color: var(--encre-douce); }
.produit-prix { margin-top: auto !important; padding-top: 0.9rem; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
.produit .prix { font-family: var(--f-logo); font-weight: 400; font-size: 2rem; color: var(--terracotta-texte); line-height: 1; }
@media (hover: hover) {
  .produit:hover { translate: 0 -0.4rem; }
  .produit:hover .produit-image img { scale: 1.05; }
}
.etapes-boutique { margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: e; display: grid; gap: 1rem; max-width: 46rem; }
.etapes-boutique li { counter-increment: e; position: relative; padding: 1.1rem 1.3rem 1.1rem 4rem; border-radius: 1.4rem; background: rgb(252 245 233 / 0.1); }
.etapes-boutique li::before { content: counter(e); position: absolute; left: 1.1rem; top: 50%; translate: 0 -50%; width: 2.2rem; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--safran); color: var(--encre); font-weight: 800; }
@media (min-width: 900px) { .produits { grid-template-columns: repeat(3, 1fr); } }
/* Textes en cercle : les lettres dépassent du cadre du SVG, on ne les coupe pas */
.anneau, .plateau-anneau { overflow: visible; }
.produit-image--vide { aspect-ratio: 1; display: grid; place-items: center; margin: 0.9rem 0.9rem 0; border-radius: 1.4rem; border: 2px dashed rgb(68 47 41 / 0.28); background: var(--sable); }

/* ---------- Effet autocollant (comme le logo) ----------
   Le texte reste un vrai texte ; derrière, un calque [data-t] en police « pleine » porte le bord crème, le liseré et l'ombre encre. */
.mot-cadre { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.14em 0.06em 0.1em; margin: -0.14em -0.06em -0.1em; }
.autocollant .mot-cadre { padding: 0.26em 0.2em 0.26em; margin: -0.26em -0.2em; }
.autocollant { color: var(--terracotta); word-spacing: 0.1em; }
.autocollant [data-t], .autocollant[data-t] { position: relative; z-index: 0; }
.autocollant [data-t]::before, .autocollant[data-t]::before {
  content: attr(data-t);
  content: attr(data-t) / "";
  position: absolute; inset: 0; z-index: -1;
  font-family: "Vabedo PANGEA Plein", var(--f-logo);
  color: var(--sable);
  -webkit-text-stroke: 0.17em var(--sable);
  paint-order: stroke fill;
  filter: drop-shadow(0 0 1px var(--encre)) drop-shadow(0 0 0.5px var(--encre)) drop-shadow(0.035em 0.045em 0 var(--encre));
  pointer-events: none;
}
.autocollant .mot-cadre .mot { position: relative; z-index: 0; }
/* Titre découpé en mots par le script : le calque passe sur chaque mot */
.autocollant.est-decoupe::before { content: none; }
.intro h1.autocollant { margin-bottom: 0.45em; }
.valeurs.autocollant { gap: 0.25em 0.55em; }
