/* repas2026.reanova.fr : une nuit d'hiver, une guirlande, une raclette qui fond,
   puis la carte du chalet sur papier crème. Police : Archivo variable (graisse + largeur). */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Papier de la carte */
  --papier: oklch(0.968 0.018 85);
  --papier-2: oklch(0.94 0.026 85);
  --surface: oklch(0.99 0.008 85);
  --encre: oklch(0.24 0.025 55);
  --encre-2: oklch(0.46 0.03 55);
  --trait: oklch(0.86 0.03 80);

  /* Nuit d'hiver */
  --nuit: oklch(0.235 0.04 228);
  --nuit-2: oklch(0.3 0.045 228);
  --neige: oklch(0.97 0.008 230);
  --neige-2: oklch(0.83 0.03 230);

  /* Raclette */
  --fromage: oklch(0.86 0.15 88);
  --fromage-pale: oklch(0.94 0.07 92);
  --fromage-fonce: oklch(0.74 0.15 72);
  --croute: oklch(0.6 0.12 58);
  --airelle: oklch(0.55 0.19 22);
  --sapin: oklch(0.42 0.08 160);
  --vert: oklch(0.76 0.17 127);
  --rouge: oklch(0.52 0.18 28);

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --rayon: 26px;
  --gouttiere: clamp(18px, 4vw, 56px);
  --largeur: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--papier); color: var(--encre);
  font: 400 1.0625rem/1.6 "Archivo", "Segoe UI", system-ui, sans-serif;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
::selection { background: var(--fromage); color: var(--encre); }
:focus-visible { outline: 3px solid var(--fromage-fonce); outline-offset: 3px; border-radius: 6px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--encre); color: var(--papier); padding: 10px 16px; border-radius: 8px; }
.evitement:focus { top: 12px; }

/* -- Barre ----------------------------------------------------------------------------- */
.barre {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 12px var(--gouttiere);
}
.marque-reanova { display: block; border-radius: 10px; }
.marque-reanova img { display: block; height: 46px; width: auto; mix-blend-mode: multiply; }
.barre-titre {
  font-weight: 600; font-stretch: 112%; font-size: .92rem; color: var(--encre-2);
  padding-left: 18px; border-left: 1px solid var(--trait);
}
.barre-actions { margin-left: auto; display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; }
.barre-actions form { margin: 0; }
.lien-barre {
  font-weight: 650; font-stretch: 108%; text-decoration: none; font-size: .95rem;
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid currentColor;
  transition: background-color .25s var(--ease-quart), color .25s var(--ease-quart);
}
.lien-barre:hover { background: var(--encre); color: var(--papier); border-color: var(--encre); }
.qui { font-weight: 600; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bouton-discret {
  font: inherit; font-size: .92rem; color: inherit; opacity: .75; background: none; border: 0; cursor: pointer;
  padding: 6px 10px; border-radius: 8px; transition: background-color .2s, opacity .2s;
}
.bouton-discret:hover { opacity: 1; background: color-mix(in oklch, currentColor 10%, transparent); }

/* Sur l'accueil, la barre est posée sur la nuit. */
.accueil { background: var(--nuit); }
.accueil main, .accueil .pied { background: var(--papier); }
.accueil .barre { background: var(--nuit); color: var(--neige); }
.accueil .marque-reanova { background: var(--neige); padding: 3px 8px; }
.accueil .barre-titre { color: var(--neige-2); border-left-color: var(--nuit-2); }
.accueil .lien-barre:hover { background: var(--neige); color: var(--nuit); border-color: var(--neige); }

/* -- La soirée ------------------------------------------------------------------------- */
.soiree {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--nuit); color: var(--neige);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center;
  gap: clamp(24px, 4vw, 64px);
  min-height: min(calc(100svh - 70px), 880px);
  padding: clamp(96px, 11vw, 150px) var(--gouttiere) clamp(110px, 12vw, 170px);
}

/* Neige : trois couches qui tombent à des vitesses différentes. Chaque couche glisse d'un
   multiple exact de la hauteur de son motif : la boucle ne se voit pas. */
.neige { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.neige span {
  position: absolute; left: 0; right: 0; top: -560px; bottom: 0;
  background-repeat: repeat;
  animation: neiger 22s linear infinite;
}
.neige span:nth-child(1) {
  background-image: radial-gradient(circle at 30% 40%, oklch(0.97 0.008 230 / .9) 0 2px, transparent 2.6px),
                    radial-gradient(circle at 75% 80%, oklch(0.97 0.008 230 / .7) 0 1.6px, transparent 2.2px);
  background-size: 140px 140px;
}
.neige span:nth-child(2) {
  background-image: radial-gradient(circle at 60% 20%, oklch(0.97 0.008 230 / .85) 0 3px, transparent 3.8px);
  background-size: 280px 280px; animation-duration: 16s;
}
.neige span:nth-child(3) {
  background-image: radial-gradient(circle at 20% 70%, oklch(0.97 0.008 230 / .45) 0 1.2px, transparent 1.8px),
                    radial-gradient(circle at 80% 30%, oklch(0.97 0.008 230 / .35) 0 1px, transparent 1.6px);
  background-size: 70px 70px; animation-duration: 34s;
}
@keyframes neiger {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-20px, 560px, 0); }
}

/* Guirlande : fil festonné et ampoules qui scintillent chacune à son rythme. */
.guirlande { position: absolute; top: 0; left: 0; width: 100%; height: 70px; z-index: 0; overflow: visible; }
.guirlande .fil { fill: none; stroke: oklch(0.16 0.03 228); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.ampoules { position: absolute; top: 0; left: 0; right: 0; height: 70px; z-index: 0; pointer-events: none; }
.ampoules i {
  --c: var(--fromage);
  position: absolute; top: 28px; width: 12px; height: 17px; margin-left: -6px;
  border-radius: 50% 50% 46% 46% / 42% 42% 58% 58%;
  background: var(--c);
  box-shadow: 0 0 14px 3px color-mix(in oklch, var(--c) 70%, transparent);
  animation: scintiller 2.6s ease-in-out infinite alternate;
  transform-origin: 50% 0;
}
.ampoules i::before {
  content: ""; position: absolute; left: 3px; top: -4px; width: 6px; height: 5px; border-radius: 2px;
  background: oklch(0.2 0.03 228);
}
.ampoules i:nth-child(3n+2) { --c: var(--airelle); top: 34px; animation-delay: -1.3s; animation-duration: 3.1s; }
.ampoules i:nth-child(3n) { --c: oklch(0.9 0.05 200); animation-delay: -.7s; animation-duration: 2.2s; }
.ampoules i:nth-child(4n) { animation-delay: -2s; }
.ampoules i:nth-child(1) { left: 5%; }   .ampoules i:nth-child(2) { left: 10%; } .ampoules i:nth-child(3) { left: 15%; }
.ampoules i:nth-child(4) { left: 25%; }  .ampoules i:nth-child(5) { left: 30%; } .ampoules i:nth-child(6) { left: 35%; }
.ampoules i:nth-child(7) { left: 45%; }  .ampoules i:nth-child(8) { left: 50%; } .ampoules i:nth-child(9) { left: 55%; }
.ampoules i:nth-child(10) { left: 65%; } .ampoules i:nth-child(11) { left: 70%; } .ampoules i:nth-child(12) { left: 75%; }
.ampoules i:nth-child(13) { left: 85%; } .ampoules i:nth-child(14) { left: 90%; } .ampoules i:nth-child(15) { left: 95%; }
@keyframes scintiller {
  0% { opacity: .38; transform: rotate(-4deg); }
  60% { opacity: 1; }
  100% { opacity: .92; transform: rotate(4deg); }
}

.soiree-texte { position: relative; z-index: 1; max-width: 640px; }
.surtitre {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  font-weight: 650; font-stretch: 112%; font-size: .95rem; color: var(--fromage);
  animation: monter-doux 1s var(--ease-expo) .2s both;
}
.surtitre::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.titre { margin-top: 18px; line-height: .86; }
/* Le masque ne coupe qu'en bas (montée des mots), jamais sur les côtés. */
.ligne { display: block; clip-path: inset(-.2em -1em 0 -1em); padding-bottom: .04em; }
.ligne > span { display: inline-block; animation: monter 1.3s var(--ease-expo) .35s both; }
.titre .ligne:first-child {
  font-size: clamp(4.2rem, 10.5vw, 10.5rem); font-weight: 880; font-stretch: 62%;
  letter-spacing: -.02em; color: var(--fromage); text-transform: uppercase;
}
.titre .ligne.petite {
  margin-top: .12em; font-size: clamp(2rem, 5.2vw, 4rem); font-weight: 300; font-stretch: 125%;
  letter-spacing: -.03em; color: var(--neige);
}
.titre .ligne.petite > span { animation-delay: .5s; }
@keyframes monter { from { transform: translateY(105%); } to { transform: none; } }
@keyframes monter-doux { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.chapo {
  margin-top: clamp(22px, 3vw, 34px); max-width: 46ch; font-size: clamp(1.06rem, 1.5vw, 1.24rem);
  color: var(--neige-2); animation: monter-doux 1s var(--ease-expo) .8s both;
}
.chapo strong { color: var(--neige); font-weight: 650; }
.cta {
  display: inline-flex; align-items: center; gap: 12px; margin-top: clamp(28px, 3.4vw, 40px);
  padding: 17px 24px 17px 28px; border-radius: 999px; text-decoration: none;
  background: var(--fromage); color: var(--encre);
  font-weight: 720; font-stretch: 112%; font-size: 1.08rem;
  animation: monter-doux 1s var(--ease-expo) 1s both;
  transition: transform .5s var(--ease-expo), box-shadow .5s var(--ease-expo), background-color .3s;
}
.cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease-expo); }
.cta:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -14px color-mix(in oklch, var(--fromage) 70%, transparent); }
.cta:hover svg { transform: translateY(3px); }
.cta:active { transform: scale(.98); }
.soiree :focus-visible { outline-color: var(--fromage); }

/* Le dessin, réchauffé par la lueur de l'appareil. */
.soiree-dessin { position: relative; z-index: 1; display: grid; place-items: center; animation: monter-doux 1.4s var(--ease-expo) .6s both; }
.soiree-dessin::before {
  content: ""; position: absolute; inset: 4% -6% 10%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklch, var(--fromage-fonce) 34%, transparent), transparent);
  animation: rougeoyer 4.8s ease-in-out infinite alternate;
}
@keyframes rougeoyer { from { opacity: .55; transform: scale(.94); } to { opacity: 1; transform: scale(1.03); } }

.raclette { display: block; width: 100%; max-width: 470px; height: auto; overflow: visible; }
.raclette .metal { fill: oklch(0.36 0.02 240); }
.raclette .lueur { fill: oklch(0.72 0.2 42); filter: drop-shadow(0 0 6px oklch(0.72 0.2 42)); animation: chauffer 2.4s ease-in-out infinite alternate; }
@keyframes chauffer { from { opacity: .55; } to { opacity: 1; } }
.raclette .pate { fill: oklch(0.93 0.08 94); }
.raclette .croute { fill: var(--croute); }
.raclette .trous circle { fill: oklch(0.86 0.1 88); }
.raclette .fondu, .raclette .coulure, .raclette .goutte, .raclette .nappe { fill: var(--fromage); }
.raclette .coulure {
  transform-box: fill-box; transform-origin: 50% 0;
  animation: couler 5.2s var(--ease-quart) infinite;
}
.coulures .coulure:nth-child(2) { animation-delay: .6s; }
.coulures .coulure:nth-child(3) { animation-delay: 1.4s; animation-duration: 6s; }
.coulures .coulure:nth-child(4) { animation-delay: .25s; animation-duration: 5.8s; }
.coulures .coulure:nth-child(5) { animation-delay: 2s; }
@keyframes couler {
  0% { transform: scaleY(.18); }
  55%, 68% { transform: scaleY(1); }
  100% { transform: scaleY(.18); }
}
/* La goutte se détache de la grande coulure et tombe sur la pomme de terre. */
.raclette .goutte { transform-box: fill-box; animation: goutter 5.2s cubic-bezier(.55, 0, .9, .4) .6s infinite; opacity: 0; }
@keyframes goutter {
  0%, 52% { opacity: 0; transform: translateY(-14px) scale(.5); }
  58% { opacity: 1; transform: translateY(0) scale(1); }
  74% { opacity: 1; transform: translateY(100px) scale(.9, 1.15); }
  78%, 100% { opacity: 0; transform: translateY(106px) scale(1.5, .4); }
}
.raclette .nappe { transform-box: fill-box; transform-origin: 50% 0; animation: napper 5.2s var(--ease-quart) .6s infinite; }
@keyframes napper { 0%, 72% { transform: scale(.96, .9); } 82% { transform: scale(1.04, 1.12); } 100% { transform: scale(.96, .9); } }
.raclette .assiette-ombre { fill: oklch(0.12 0.03 228 / .5); }
.raclette .assiette { fill: oklch(0.95 0.01 230); }
.raclette .assiette-creux { fill: oklch(0.89 0.014 230); }
.raclette .patate { fill: oklch(0.8 0.1 78); }
.raclette .taches circle { fill: oklch(0.6 0.08 60); }
.raclette .cornichon { fill: oklch(0.56 0.12 135); }
.raclette .vapeur {
  fill: none; stroke: oklch(0.97 0.008 230 / .55); stroke-width: 3; stroke-linecap: round;
  animation: fumer 3.6s ease-out infinite; opacity: 0;
}
.vapeurs .vapeur:nth-child(2) { animation-delay: 1.2s; }
.vapeurs .vapeur:nth-child(3) { animation-delay: 2.3s; }
@keyframes fumer {
  0% { opacity: 0; transform: translateY(10px); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-34px); }
}

/* Congère : la neige rejoint le papier de la carte. */
.congere { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(46px, 6vw, 80px); z-index: 2; }
.congere path { fill: var(--papier); }

/* -- Révélations au défilement --------------------------------------------------------- */
.js [data-revele] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--ease-expo), transform 1s var(--ease-expo);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-revele].visible { opacity: 1; transform: none; }

/* -- La carte -------------------------------------------------------------------------- */
.carte {
  max-width: calc(var(--largeur) + 2 * var(--gouttiere)); margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) var(--gouttiere) clamp(64px, 8vw, 110px);
  scroll-margin-top: 0;
}
.carte-tete { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px clamp(28px, 5vw, 72px); align-items: end; }
.carte-tete h2 {
  font-size: clamp(3.6rem, 9vw, 7rem); font-weight: 880; font-stretch: 62%; line-height: .85;
  text-transform: uppercase; letter-spacing: -.01em;
}
.carte-tete p { color: var(--encre-2); font-size: 1.1rem; max-width: 50ch; padding-bottom: 6px; }
.carte-tete p strong { color: var(--encre); }

.menu { list-style: none; margin: clamp(36px, 5vw, 60px) 0 0; padding: 0; border-top: 2px solid var(--encre); }
.plat {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: clamp(56px, 7vw, 84px) minmax(0, auto) minmax(28px, 1fr) auto;
  align-items: center; gap: clamp(14px, 2.4vw, 30px);
  padding: clamp(22px, 3vw, 34px) clamp(4px, 1.4vw, 18px);
  border-bottom: 1px solid var(--trait);
}
/* Bandeau doré qui s'étale sous l'assiette choisie. */
.plat::before {
  content: ""; position: absolute; inset: 8px -10px; z-index: -1; border-radius: 22px;
  background: var(--fromage-pale);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .8s var(--ease-expo), background-color .4s;
}
.plat:hover::before { transform: scaleX(1); background: var(--papier-2); }
.plat.selectionne::before, .plat.est-choisi::before { transform: scaleX(1); background: var(--fromage-pale); }

.embleme { display: block; width: 100%; height: auto; overflow: visible; }
.embleme .trait { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.embleme .trait.fin { stroke-width: 1.6; }
.embleme .point { fill: currentColor; }
.plat-embleme { color: var(--encre); transition: transform .7s var(--ease-expo), color .3s; }
.plat:hover .plat-embleme { transform: rotate(-9deg) scale(1.06); }
.plat.selectionne .plat-embleme, .plat.est-choisi .plat-embleme { color: var(--airelle); }

.plat-texte h3 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 820; font-stretch: 112%; line-height: 1; letter-spacing: -.035em; }
.plat-texte p { margin-top: 8px; color: var(--encre-2); max-width: 44ch; }
.pointilles { align-self: center; height: 0; border-bottom: 2.5px dotted color-mix(in oklch, var(--encre) 35%, transparent); transform: translateY(.3em); }

.form-choix { margin: 0; }
.choisir {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 14px 20px 14px 22px; border: 1.5px solid var(--encre); border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--encre);
  font: inherit; font-weight: 700; font-stretch: 110%;
  transition: background-color .3s var(--ease-quart), color .3s var(--ease-quart), transform .5s var(--ease-expo), border-color .3s;
}
.choisir svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-expo); }
.plat:hover .choisir, .choisir:focus-visible { background: var(--encre); color: var(--papier); }
.choisir:hover svg { transform: translateX(4px); }
.choisir:active { transform: scale(.97); }
.plat.selectionne .choisir, .plat.est-choisi .choisir { background: var(--encre); color: var(--fromage); border-color: var(--encre); }
.choisir[disabled] { opacity: .65; cursor: progress; }

.absent {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px;
  margin-top: clamp(26px, 3vw, 38px); color: var(--encre-2);
}
.lien-bouton {
  font: inherit; font-weight: 700; color: var(--encre); background: none; border: 0; padding: 4px 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px;
  transition: color .2s, text-decoration-color .2s;
}
.lien-bouton:hover { color: var(--airelle); }

/* -- Connexion / statut ---------------------------------------------------------------- */
.rejoindre {
  max-width: calc(var(--largeur) + 2 * var(--gouttiere)); margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--gouttiere) clamp(80px, 10vw, 140px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: start;
  scroll-margin-top: 8px;
}
.etapes h2 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 820; font-stretch: 112%; line-height: 1.02; letter-spacing: -.035em; max-width: 14ch; }
.etapes ol { list-style: none; margin: clamp(30px, 4vw, 48px) 0 0; padding: 0; display: grid; gap: clamp(20px, 2.6vw, 30px); }
.etapes li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 2.4vw, 30px); align-items: start; }
.num {
  font-size: clamp(3.8rem, 7vw, 6rem); font-weight: 880; font-stretch: 62%; line-height: .78;
  color: var(--fromage-fonce); min-width: .5em; font-variant-numeric: tabular-nums;
}
.etapes li p { font-size: 1.12rem; color: var(--encre-2); max-width: 40ch; padding-top: 4px; }
.etapes li strong { color: var(--encre); }

.guichet {
  --accent-g: var(--fromage-fonce);
  position: relative;
  background: var(--surface); color: var(--encre);
  border: 1.5px solid var(--encre); border-radius: var(--rayon);
  box-shadow: 8px 8px 0 var(--encre);
  padding: clamp(26px, 4vw, 48px);
  display: flex; flex-direction: column;
  scroll-margin-top: 24px;
}
.guichet[data-repas="vegetarien"] { --accent-g: var(--sapin); }
.guichet[data-repas="halal"] { --accent-g: var(--airelle); }
.guichet[data-repas="absent"] { --accent-g: var(--nuit-2); }
.connexion-choix { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 620; font-stretch: 104%; line-height: 1.25; letter-spacing: -.01em; margin-bottom: 14px; }
.connexion-choix strong { box-shadow: inset 0 -.38em 0 var(--fromage-pale); }
.connexion label { font-weight: 650; font-size: .95rem; margin: 16px 0 7px; }
.connexion input[type=text], .connexion input[type=password] {
  font: inherit; color: var(--encre); background: var(--papier);
  padding: 14px 16px; border-radius: 14px; border: 1.5px solid color-mix(in oklch, var(--encre) 28%, transparent);
  transition: border-color .25s, box-shadow .25s;
}
.connexion input:focus-visible { outline: none; border-color: var(--encre); box-shadow: 0 0 0 4px color-mix(in oklch, var(--fromage) 60%, transparent); }
.bouton-principal {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 26px; padding: 17px 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--fromage); color: var(--encre);
  font: inherit; font-weight: 720; font-stretch: 112%; font-size: 1.08rem; text-decoration: none; text-align: center;
  transition: transform .5s var(--ease-expo), background-color .3s var(--ease-quart);
}
.bouton-principal:hover { transform: translateY(-2px); background: oklch(0.82 0.16 84); }
.bouton-principal:active { transform: scale(.985); }
.bouton-principal[disabled] { opacity: .65; cursor: progress; }
.note { margin-top: 16px; font-size: .9rem; color: var(--encre-2); }
.alerte {
  padding: 12px 16px; border-radius: 12px; font-weight: 650;
  background: color-mix(in oklch, var(--rouge) 10%, var(--surface)); color: var(--rouge);
  animation: secouer .5s var(--ease-quart);
}
@keyframes secouer { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

.statut { align-items: flex-start; }
.statut-embleme { position: relative; width: 104px; height: 104px; margin-bottom: 24px; color: var(--accent-g); }
.statut-embleme .embleme { width: 100%; height: 100%; }
.statut-bonjour { color: var(--encre-2); font-size: 1.05rem; }
.statut-choix { margin-top: 6px; font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 820; font-stretch: 112%; line-height: 1.04; letter-spacing: -.035em; }
.statut .note { max-width: 46ch; }
.lien-fleche { margin-top: 22px; font-weight: 650; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

/* Célébration : l'emblème se pose et des flocons dorés s'en échappent. */
.celebrer.visible .statut-embleme .embleme { animation: poser 1.3s var(--ease-expo) .25s both; }
@keyframes poser { from { transform: scale(.3) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }
.flocons { position: absolute; inset: 0; pointer-events: none; }
.flocons i {
  position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--fromage-fonce); opacity: 0;
}
.flocons i:nth-child(3n+1) { background: var(--airelle); width: 8px; height: 8px; }
.flocons i:nth-child(3n) { background: var(--sapin); border-radius: 2px; }
.celebrer.visible .flocons i { animation: eclater 1.5s var(--ease-expo) .45s both; }
.flocons i:nth-child(1) { --a: 0deg; } .flocons i:nth-child(2) { --a: 30deg; } .flocons i:nth-child(3) { --a: 60deg; }
.flocons i:nth-child(4) { --a: 90deg; } .flocons i:nth-child(5) { --a: 120deg; } .flocons i:nth-child(6) { --a: 150deg; }
.flocons i:nth-child(7) { --a: 180deg; } .flocons i:nth-child(8) { --a: 210deg; } .flocons i:nth-child(9) { --a: 240deg; }
.flocons i:nth-child(10) { --a: 270deg; } .flocons i:nth-child(11) { --a: 300deg; } .flocons i:nth-child(12) { --a: 330deg; }
.flocons i:nth-child(3n) { --d: 116px; } .flocons i:nth-child(3n+1) { --d: 90px; } .flocons i:nth-child(3n+2) { --d: 140px; }
@keyframes eclater {
  0% { opacity: 1; transform: rotate(var(--a)) translateX(18px) scale(1); }
  100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d)) translateY(30px) scale(.3); }
}

/* -- Pied ------------------------------------------------------------------------------ */
.pied {
  padding: 36px var(--gouttiere) 44px; border-top: 1px solid var(--trait);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font-size: .92rem; color: var(--encre-2);
}
.pied a { color: var(--encre); font-weight: 650; text-underline-offset: 3px; }
.pied-legal { font-size: .82rem; }

/* -- Page d'erreur --------------------------------------------------------------------- */
.erreur-page { max-width: 640px; margin: clamp(48px, 10vw, 120px) auto; padding: 0 var(--gouttiere); }
.erreur-page h2 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 880; font-stretch: 62%; text-transform: uppercase; line-height: .9; }
.erreur-page p { margin-top: 18px; color: var(--encre-2); font-size: 1.12rem; }
.erreur-page .bouton-principal { margin-top: 28px; }

/* -- Adaptation ------------------------------------------------------------------------ */
@media (max-width: 900px) {
  .soiree { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 92px; }
  .soiree-dessin { max-width: 340px; justify-self: center; width: 100%; }
  .rejoindre, .carte-tete { grid-template-columns: minmax(0, 1fr); }
  .plat { grid-template-columns: 56px minmax(0, 1fr); }
  .pointilles { display: none; }
  .plat .form-choix { grid-column: 2; }
}
@media (max-width: 640px) {
  .barre { flex-wrap: nowrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .marque-reanova img { height: 38px; }
  .barre-titre, .qui { display: none; }
  .barre-actions { gap: 4px; flex-wrap: nowrap; }
  .lien-barre { padding: 7px 14px; font-size: .9rem; }
  .ampoules i:nth-child(3n+2) { display: none; }
  .guichet { box-shadow: 5px 5px 0 var(--encre); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-revele] { opacity: 1; transform: none; }
  .neige { display: none; }
  .raclette .coulure { transform: none; }
}
