/* chiche! · « Féerie » de la page d'accueil (15 nov. 2026)
   Forme inspirée des grands studios (menu flottant en bas, pastilles, titres centrés qui se dévoilent,
   frise qui se remplit au défilement), avec la DA de chiche! Noël : nuit, corail, soleil, neige, givre et poussière d'or.
   Tout reste lisible sans JavaScript et sans animation (prefers-reduced-motion). */

:root {
  --fe-surface: #1e1633; --fe-ligne: #3a3057; --fe-ink: #fbf5ec; --fe-ink-muted: #cfc6dd; --fe-nuit: #1e1633; --fe-neige: #fbf5ec;
  --fe-soleil: #ffc93c; --fe-corail: #ff6b4a;
  --fe-font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif; --fe-font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

/* ---------- En-tête épuré : le logo seul, centré ---------- */
.feerie-js header.top { justify-content: center; padding: 10px 0 8px; }
.feerie-js header.top nav.menu, .feerie-js header.top > .btn { display: none !important; }
.feerie-js header.tete { justify-content: center; }
.feerie-js header.tete .retour { display: none; }

/* ---------- Pastilles (étiquettes de section) ---------- */
.section-tete { text-align: center; margin-left: auto; margin-right: auto; }
.section-tete .chapo { margin-left: auto; margin-right: auto; }
.section-tete .etiquette,
.flocon-bandeau .etiquette,
.fl-heros .etiquette,
.fe-legal main .etiquette {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 12px; border-radius: 999px;
  background: rgba(255, 201, 60, .08); border: 1px solid rgba(255, 201, 60, .35);
  color: var(--fe-soleil); letter-spacing: .08em; font-size: 13px; line-height: 16px;
  box-shadow: 0 0 22px rgba(255, 201, 60, .12) inset;
}
.section-tete .etiquette::before,
.flocon-bandeau .etiquette::before,
.fl-heros .etiquette::before,
.fe-legal main .etiquette::before {
  content: ""; width: 9px; height: 9px; flex: none;
  background: var(--fe-soleil);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 4px rgba(255,201,60,.9));
}
.section-tete h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -.02em; margin-top: 18px; }

/* ---------- Le mot doré du titre ---------- */
.insec { white-space: nowrap; }
.mot-or {
  background: linear-gradient(100deg, #ffc93c 0%, #fff3c4 22%, #ffc93c 40%, #ff9f4a 60%, #ffc93c 80%, #fff3c4 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: or-coule 6s linear infinite;
  filter: drop-shadow(0 0 18px rgba(255, 201, 60, .28));
}
@keyframes or-coule { to { background-position: -220% 0; } }

/* ---------- Dévoilement « givre » (les titres mot à mot, le reste en bloc) ---------- */
.feerie-js .givre { opacity: 0; filter: blur(14px); transform: translateY(26px); }
.feerie-js .givre.vu { opacity: 1; filter: blur(0); transform: none;
  transition: opacity .9s ease, filter 1.1s ease, transform 1.1s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.feerie-js .mot { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(.45em) scale(.98); }
.feerie-js .vu .mot, .feerie-js .mot.vu { opacity: 1; filter: blur(0); transform: none;
  transition: opacity .8s ease, filter 1s ease, transform 1s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }

/* ---------- Boutons : reflet qui passe, léger halo ---------- */
.btn-corail { position: relative; overflow: hidden; isolation: isolate; }
.btn-corail::after {
  content: ""; position: absolute; inset: -2px; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 48%, transparent 66%);
  transform: translateX(-130%); transition: transform .9s cubic-bezier(.2,.8,.2,1);
}
.btn-corail:hover::after, .btn-corail:focus-visible::after { transform: translateX(130%); }
.btn { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, background-color .3s ease, color .3s ease, border-color .3s ease; }
.btn:hover { transform: translateY(-2px); }

/* ---------- Le menu flottant (en bas, comme une petite vitrine de nuit) ---------- */
body { padding-bottom: 104px; }
.dock {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 60;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 6px;
  border-radius: 999px;
  background: rgba(30, 22, 51, .72);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(251, 245, 236, .14);
  box-shadow: 0 18px 50px rgba(10, 6, 24, .55), 0 0 0 1px rgba(255, 201, 60, .06) inset, 0 0 40px rgba(255, 201, 60, .10);
}
.feerie-js .dock { opacity: 0; transform: translate(-50%, 30px); transition: opacity .8s ease .6s, transform .9s cubic-bezier(.2,.8,.2,1) .6s; }
.feerie-js .dock.la { opacity: 1; transform: translate(-50%, 0); }
.dock-icones { display: flex; gap: 2px; padding: 0 4px; }
.dock a { text-decoration: none; }
.dock-ic {
  position: relative; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 999px; color: var(--fe-ink-muted);
  transition: color .3s ease, background-color .3s ease;
}
.dock-ic svg { width: 22px; height: 22px; }
.dock-ic:hover, .dock-ic:focus-visible { color: var(--fe-ink); background: rgba(251, 245, 236, .08); }
.dock-ic.actif { color: var(--fe-soleil); }
.dock-ic.actif::after {
  content: ""; position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%;
  background: var(--fe-soleil); box-shadow: 0 0 8px rgba(255,201,60,.9);
}
.dock-ic .bulle {
  position: absolute; bottom: calc(100% + 12px); left: 50%; white-space: nowrap; pointer-events: none;
  transform: translate(-50%, 6px); opacity: 0;
  padding: 6px 12px; border-radius: 999px; font: 600 13px/18px var(--fe-font-sans);
  background: var(--fe-neige); color: var(--fe-nuit); box-shadow: 0 8px 24px rgba(10,6,24,.4);
  transition: opacity .25s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
.dock-ic:hover .bulle, .dock-ic:focus-visible .bulle { opacity: 1; transform: translate(-50%, 0); }
.dock .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0;
  min-height: 48px; padding: 12px 22px; white-space: nowrap; border-radius: 999px; border: 0;
  background: var(--fe-corail); color: var(--fe-nuit); font: 700 16px/1.2 var(--fe-font-sans); text-decoration: none;
  box-shadow: 0 0 28px rgba(255, 107, 74, .45);
}
.dock .btn:hover { box-shadow: 0 0 36px rgba(255, 107, 74, .65); }
.dock-long { margin-left: .28em; }
@media (max-width: 520px) {
  .dock { gap: 2px; padding: 5px; width: calc(100% - 20px); justify-content: space-between; }
  .dock-icones { padding: 0; }
  .dock-ic { width: 42px; height: 44px; }
  .dock .btn { padding: 10px 16px; font-size: 15px; }
  .dock-ic .bulle { display: none; }
  .dock-long { display: none; }
}

/* ---------- Les portes de l'Avent (ce qui est compris, derrière une porte) ---------- */
.offre { transition: transform .5s cubic-bezier(.2,.8,.2,1), border-color .4s ease, box-shadow .5s ease; }
.offre:hover { transform: translateY(-4px); border-color: rgba(255,201,60,.35); box-shadow: 0 24px 60px -24px rgba(255,201,60,.30); }
.av-zone { position: relative; perspective: 1400px; margin: 0 0 20px; }
.av-zone > ul { margin: 0; padding: 18px 18px 16px 38px; border-radius: 16px; background: rgba(255, 201, 60, .06); border: 1px dashed rgba(255, 201, 60, .28); }
.feerie-js .av-zone > ul li { opacity: 0; transform: translateY(8px); filter: blur(6px); transition: opacity .5s ease, transform .6s ease, filter .6s ease; }
.feerie-js .av-zone.ouverte > ul li { opacity: 1; transform: none; filter: none; }
.feerie-js .av-zone.ouverte > ul li:nth-child(2) { transition-delay: .12s; }
.feerie-js .av-zone.ouverte > ul li:nth-child(3) { transition-delay: .24s; }
.av-zone::before { /* la lumière qui s'échappe quand la porte s'ouvre */
  content: ""; position: absolute; inset: -10px; border-radius: 24px; pointer-events: none; opacity: 0;
  background: radial-gradient(60% 70% at 30% 50%, rgba(255, 201, 60, .30), transparent 70%);
  transition: opacity .9s ease;
}
.av-zone.ouverte::before { opacity: 1; }
.av-porte {
  position: absolute; inset: -2px; z-index: 2; cursor: pointer;
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; text-align: left;
  border-radius: 16px; border: 1px solid rgba(255, 201, 60, .45);
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(255, 201, 60, .16), transparent 55%),
    repeating-linear-gradient(90deg, rgba(251,245,236,.025) 0 2px, transparent 2px 9px),
    linear-gradient(160deg, #3a2d63, #241b40 60%, #1e1633);
  color: var(--fe-ink); font: inherit;
  transform-origin: 0 50%; transform-style: preserve-3d; backface-visibility: hidden;
  box-shadow: 0 10px 30px rgba(10,6,24,.45), inset 0 1px 0 rgba(251,245,236,.12);
  transition: transform 1s cubic-bezier(.2,.8,.2,1), box-shadow 1s ease, opacity .5s ease .5s;
}
.av-porte::after { /* la poignée */
  content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff3c4, #ffc93c 55%, #b9860f);
  box-shadow: 0 0 10px rgba(255,201,60,.8);
}
.av-num {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px;
  font: 800 32px/1 var(--fe-font-display);
  background: linear-gradient(140deg, #fff3c4, #ffc93c 45%, #c98c12 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  border: 1px solid rgba(255, 201, 60, .4);
  text-shadow: 0 0 22px rgba(255,201,60,.35);
}
.av-txt { display: grid; gap: 2px; padding-right: 22px; }
.av-txt b { font: 700 16px/22px var(--fe-font-display); }
.av-txt span { font-size: 13px; line-height: 18px; color: var(--fe-ink-muted); }
.av-porte:hover { box-shadow: 0 14px 40px rgba(10,6,24,.5), 0 0 26px rgba(255,201,60,.22), inset 0 1px 0 rgba(251,245,236,.16); }
.av-zone.ouverte .av-porte { transform: rotateY(-104deg); box-shadow: 30px 10px 40px rgba(10,6,24,.0); opacity: 0; pointer-events: none; }
.av-refermer {
  margin: 10px 0 0; padding: 0; border: 0; background: none; color: var(--fe-ink-muted); font: 600 13px/18px var(--fe-font-sans);
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px; display: none;
}
.av-zone.ouverte .av-refermer { display: inline-block; }
.av-refermer { align-self: flex-start; margin: -8px 0 16px; }
.offre-mesure .av-porte { border-color: rgba(255, 201, 60, .7); }

/* ---------- Maison Flocon : une bande de nuit profonde, la frise s'allume ligne à ligne ---------- */
#flocon .flocon-bandeau {
  background:
    radial-gradient(70% 90% at 90% 0%, rgba(255, 201, 60, .14), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(255, 107, 74, .12), transparent 60%),
    #17112a;
  border-color: rgba(255, 201, 60, .22);
}
.mini-frise li { transition: background-color .35s ease, padding-left .35s ease; border-radius: 12px; }
.mini-frise li:hover { background: rgba(255, 201, 60, .07); padding-left: 12px; }
.mini-frise li:hover .mf-date { text-shadow: 0 0 14px rgba(255,201,60,.8); }

/* ---------- Comment ça marche : une frise verticale qui se remplit d'or ---------- */
#comment .etapes { position: relative; display: block; max-width: 920px; margin: 0 auto; padding: 8px 0; }
#comment .etapes::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--fe-ligne); }
#comment .etapes .fil-or {
  position: absolute; left: 50%; top: 0; width: 2px; margin-left: -1px; height: 100%;
  transform-origin: top; transform: scaleY(var(--p, 0));
  background: linear-gradient(var(--fe-soleil), var(--fe-corail));
  box-shadow: 0 0 12px rgba(255, 201, 60, .7);
}
#comment .etapes li {
  position: relative; width: calc(50% - 48px); margin: 0 0 48px; padding: 28px 28px 26px;
  border-radius: 24px; background: rgba(42, 33, 69, .55); border: 1px solid var(--fe-ligne);
}
#comment .etapes li:nth-of-type(odd) { margin-right: auto; }
#comment .etapes li:nth-of-type(even) { margin-left: auto; }
#comment .etapes li:last-child { margin-bottom: 0; }
#comment .etapes li::before {
  position: absolute; top: 26px; margin: 0;
  box-shadow: 0 0 0 6px var(--fe-surface), 0 0 0 7px var(--fe-ligne);
  transition: box-shadow .6s ease, transform .6s ease;
}
#comment .etapes li:nth-of-type(odd)::before { right: -68px; }
#comment .etapes li:nth-of-type(even)::before { left: -68px; }
#comment .etapes li.atteinte::before { box-shadow: 0 0 0 6px var(--fe-surface), 0 0 0 7px rgba(255,201,60,.8), 0 0 28px rgba(255,201,60,.8); transform: scale(1.08); }
#comment .etapes h3 { font-size: 22px; line-height: 28px; }
@media (max-width: 760px) {
  #comment .etapes::before, #comment .etapes .fil-or { left: 20px; }
  #comment .etapes li, #comment .etapes li:nth-of-type(odd), #comment .etapes li:nth-of-type(even) { width: auto; margin: 0 0 28px 56px; padding: 22px; }
  #comment .etapes li:nth-of-type(odd)::before, #comment .etapes li:nth-of-type(even)::before { left: -56px; right: auto; top: 20px; }
}

/* ---------- Questions : centrées, les réponses apparaissent dans le givre ---------- */
#faq .faq { margin: 0 auto; }
.faq summary { transition: color .3s ease; }
.faq summary:hover { color: var(--fe-soleil); }
.faq summary::after { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.faq details[open] summary::after { content: "+"; transform: rotate(135deg); }
.faq details[open] p { animation: givre-in .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes givre-in { from { opacity: 0; filter: blur(8px); transform: translateY(-6px); } to { opacity: 1; filter: none; transform: none; } }

/* ---------- La poussière d'or qui suit la souris ---------- */
#poussiere { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }


/* ======================================================================
   Les autres pages : même menu, mêmes pastilles, mêmes dévoilements
   ====================================================================== */

/* Le Noël de Maison Flocon : en-tête centré, la frise qui se remplit d'or */
.fl-heros { text-align: center; padding-top: 40px; }
.fl-heros h1 { margin-left: auto; margin-right: auto; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -.025em; margin-top: 18px; }
.fl-heros .accroche, .fl-heros .chapo, .fl-heros .note-dates { margin-left: auto; margin-right: auto; }
.fl-heros .legende-tags { justify-content: center; }
.frise .fil-or { display: none; }
@media (min-width: 900px) {
  .frise .fil-or {
    display: block; position: absolute; left: 119px; top: 8px; bottom: 8px; width: 2px; z-index: 0;
    transform-origin: top; transform: scaleY(var(--p, 0));
    background: linear-gradient(var(--fe-soleil), var(--fe-corail)); box-shadow: 0 0 12px rgba(255,201,60,.7);
  }
}
.moment .m-num { transition: box-shadow .6s ease, transform .6s ease; }
.moment.atteint .m-num { box-shadow: 0 0 0 6px var(--fe-surface), 0 0 0 7px rgba(255,201,60,.8), 0 0 28px rgba(255,201,60,.85); transform: scale(1.08); }
.m-carte { transition: transform .5s cubic-bezier(.2,.8,.2,1), border-color .4s ease, box-shadow .5s ease; }
.m-carte:hover { transform: translateY(-4px); border-color: rgba(255,201,60,.35); box-shadow: 0 24px 60px -24px rgba(255,201,60,.30); }
.m-img { transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .8s ease; }
.m-carte:hover .m-img { transform: translateY(-6px) scale(1.04) rotate(-1.5deg); filter: drop-shadow(0 12px 24px rgba(255,201,60,.25)); }
.m-carte h2 { letter-spacing: -.01em; }
.offre-mini { transition: transform .5s cubic-bezier(.2,.8,.2,1), border-color .4s ease, box-shadow .5s ease; }
.offre-mini:hover { transform: translateY(-4px); border-color: rgba(255,201,60,.35); box-shadow: 0 24px 60px -24px rgba(255,201,60,.30); }

/* Pages légales et page introuvable : un titre qui se dévoile, des intertitres dorés */
.fe-legal main h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.06; letter-spacing: -.02em; }
.fe-legal main h2::before {
  content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; vertical-align: .12em;
  background: var(--fe-soleil); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 4px rgba(255,201,60,.9));
}
.fl-heros h1 .mot-or, #titre-village .mot-or { padding-right: .04em; }

/* ---------- Sans animation ---------- */
@media (prefers-reduced-motion: reduce) {
  .feerie-js .givre, .feerie-js .mot, .feerie-js .dock, .feerie-js .av-zone > ul li { opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important; }
  .feerie-js .dock { transform: translateX(-50%) !important; }
  .mot-or { animation: none; }
  .av-porte, .btn, .btn-corail::after, .offre { transition: none !important; }
  .faq details[open] p { animation: none; }
  #poussiere { display: none; }
}
@media print { .dock, #poussiere { display: none !important; } body { padding-bottom: 0; } }

/* Offres : portes de même hauteur sur grand écran */
@media (min-width: 900px) { .offres .offre .av-zone > ul { min-height: 212px; } }

/* Exposant de « 1er » en minuscules dans les étiquettes en capitales ; zones à toucher (17 nov. au soir). */
sup { text-transform: lowercase; letter-spacing: 0; }
.btn-small { min-height: 44px; }

/* Maison Flocon : la ligne de la frise passait à travers les dates. Dates centrées sur la ligne, sur un fond qui la masque. */
@media (min-width: 900px) {
  .frise .m-date { justify-items: center; text-align: center; }
  .frise .m-num { left: 0; }
  .frise .m-quand, .frise .m-moment { position: relative; padding: 2px 10px; background: #1e1633; border-radius: 8px; text-wrap: balance; }
}
