/* P'tit Sucré v5 — « La fête foraine en plein jour » : design system commun aux 5 pages */

:root {
  --sucre: #fff8ef;
  --sucre-fonce: #fdecd8;
  --barbe: #ffd6e5;
  --barbe-clair: #ffeaf2;
  --ciel: #c4eaf2;
  --ciel-clair: #e6f6fa;
  --bonbon: #ff6fa8;
  --framboise: #d81f6e;
  --lagon: #0f72a6;
  --cacao: #3b1e14;
  --cacao-doux: #6b4436;
  --citron: #ffc93c;
  --blanc: #fff;
  --led-on: #1f9d55;
  --led-off: #c2410c;

  --font-display: "Fraunces", Georgia, serif;
  --font-sign: "Bungee", "Arial Black", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;

  --line: 3px;
  --pop: 0 5px 0 var(--cacao);
  --r-xl: 36px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 76px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--sucre);
  color: var(--cacao);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
picture { display: contents; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.05; }
strong { font-weight: 800; }
:focus-visible { outline: 3px solid var(--lagon); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--citron); color: var(--cacao); padding: 10px 16px; border-radius: 999px; border: var(--line) solid var(--cacao); font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 12px; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

/* ---------- Typographie ---------- */
.display, .section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  letter-spacing: -.02em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  margin: 0 0 1rem;
  font: 800 .82rem/1.2 var(--font-body);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--framboise);
}
.eyebrow::before { content: "✦"; font-size: 1.15em; letter-spacing: 0; }
.section-title { font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: .98; text-wrap: balance; }
.section-lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); max-width: 50ch; color: var(--cacao-doux); margin-top: 1.1rem; }
.section-header { margin-bottom: clamp(36px, 5vw, 64px); }
.section-header.center { text-align: center; }
.section-header.center .section-lead { margin-inline: auto; }

/* ---------- Fonds de sections ---------- */
.section { position: relative; padding-block: var(--section-y); }
.bg-sucre { background: var(--sucre); }
.bg-barbe { background: var(--barbe); }
.bg-ciel { background: var(--ciel); }
.bg-ciel-clair { background: var(--ciel-clair); }
.bg-barbe .eyebrow, .bg-ciel .eyebrow { color: var(--cacao); }
.bg-ciel .eyebrow::before { color: var(--framboise); }
.bg-barbe .eyebrow::before { color: var(--framboise); }

/* ---------- Glaçage qui coule (masque SVG irrégulier, liseré cacao) ---------- */
.drip {
  --dh: clamp(64px, 8vw, 118px);
  position: absolute; left: 0; right: 0; top: 100%;
  height: var(--dh);
  z-index: 3; pointer-events: none;
}
/* Coulures vectorielles (contour cacao et reflets dessinés dans le SVG), jamais déformées : la largeur suit la hauteur. */
.drip i { position: absolute; z-index: 1; inset: 0; background: url("../assets/v5/drip-a-sucre.svg?v=20261105a") 0 0 / auto 100% repeat-x; }
.bg-sucre > .drip--a i { background-image: url("../assets/v5/drip-a-sucre.svg?v=20261105a"); }
.bg-barbe > .drip--a i { background-image: url("../assets/v5/drip-a-barbe.svg?v=20261105a"); }
.bg-ciel > .drip--a i { background-image: url("../assets/v5/drip-a-ciel.svg?v=20261105a"); }
.footer > .drip--a i { background-image: url("../assets/v5/drip-a-cacao.svg?v=20261105a"); }
.bg-sucre > .drip--b i { background-image: url("../assets/v5/drip-b-sucre.svg?v=20261105a"); }
.bg-barbe > .drip--b i { background-image: url("../assets/v5/drip-b-barbe.svg?v=20261105a"); }
.bg-ciel > .drip--b i { background-image: url("../assets/v5/drip-b-ciel.svg?v=20261105a"); }
.footer > .drip--b i { background-image: url("../assets/v5/drip-b-cacao.svg?v=20261105a"); }
.bg-sucre > .drip--c i { background-image: url("../assets/v5/drip-c-sucre.svg?v=20261105a"); }
.bg-barbe > .drip--c i { background-image: url("../assets/v5/drip-c-barbe.svg?v=20261105a"); }
.bg-ciel > .drip--c i { background-image: url("../assets/v5/drip-c-ciel.svg?v=20261105a"); }
.footer > .drip--c i { background-image: url("../assets/v5/drip-c-cacao.svg?v=20261105a"); }
.drip--top { top: 0; }
/* Le pied de page a sa propre coulure chocolat : pas de double coulure au-dessus. */
main > .section:last-child > .drip { display: none; }
.has-drip + * { padding-top: calc(var(--section-y) + 40px); }

/* Mention sous les photos de produits (photos d'illustration, crédits dans les mentions légales). */
.photo-note { margin: clamp(28px, 4vw, 44px) 0 0; text-align: center; font-size: .88rem; color: var(--cacao-doux); }
.photo-note a { color: inherit; }

/* ---------- Boutons « autocollant » ---------- */
.btn {
  --btn-bg: var(--blanc);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.4em;
  border: var(--line) solid var(--cacao); border-radius: 999px;
  background: var(--btn-bg); color: var(--cacao);
  font: 800 1rem/1 var(--font-body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: var(--pop);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--cacao); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--cacao); }
.btn-candy { --btn-bg: var(--bonbon); }
.btn-sky { --btn-bg: var(--ciel); }
.btn-gold { --btn-bg: var(--citron); }
.btn-ghost { --btn-bg: var(--blanc); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.arrow-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 800; color: var(--framboise); text-decoration: none; }
.arrow-link svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- Tickets de manège (prix) ---------- */
.ticket {
  --tk-bg: var(--citron);
  position: relative; display: inline-flex; align-items: center; gap: .7em;
  padding: .55em 1.3em;
  background: var(--tk-bg); color: var(--cacao);
  font-family: var(--font-sign); font-size: .9rem; letter-spacing: .02em; line-height: 1.2; white-space: nowrap;
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 7px, #000 7.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 7px, #000 7.5px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 50%, transparent 7px, #000 7.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 7px, #000 7.5px) right / 51% 100% no-repeat;
}
.ticket strong { font-weight: 400; font-size: 1.12em; white-space: nowrap; }
.ticket .tk-sep { align-self: stretch; border-left: 2px dashed rgba(59, 30, 20, .4); }
.ticket--rose { --tk-bg: var(--bonbon); }
.ticket--creme { --tk-bg: var(--sucre); }
.ticket--ciel { --tk-bg: var(--ciel); }

.tag--halal {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .35em .85em .35em .45em; border-radius: 999px;
  background: var(--blanc); border: 2px solid var(--cacao);
  font-weight: 800; font-size: .88rem; line-height: 1;
}
.halal-icon { width: 20px; height: 20px; background: url("../assets/img/halal.svg") center / contain no-repeat; display: inline-block; }

/* ---------- En-tête + auvent rayé ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: var(--sucre);
  transition: transform .5s var(--ease-out), box-shadow .3s;
}
.site-header.is-hidden { transform: translateY(calc(-100% - 30px)); }
.valance {
  position: absolute; left: 0; right: 0; top: 100%; height: 24px;
  pointer-events: none;
  filter: drop-shadow(0 3px 0 var(--cacao));
}
.valance i {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, var(--bonbon) 0 44px, var(--sucre) 44px 88px);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% 4px no-repeat, radial-gradient(circle 22px at 50% 0, #000 97%, transparent 100%) 0 0 / 44px 100% repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% 4px no-repeat, radial-gradient(circle 22px at 50% 0, #000 97%, transparent 100%) 0 0 / 44px 100% repeat-x;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: 50px; height: 50px; border-radius: 50%; border: var(--line) solid var(--cacao); background: var(--blanc); }
.brand-name { display: block; font-family: var(--font-display); font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 1.45rem; line-height: 1; }
.brand-tagline { display: block; margin-top: 4px; font-weight: 800; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--framboise); }
.desktop-nav ul { display: flex; gap: 2px; }
.nav-link {
  display: inline-block; padding: 9px 13px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  transition: background-color .2s;
}
.nav-link:hover { background: var(--barbe-clair); }
.nav-link.active { background: var(--barbe); box-shadow: inset 0 0 0 2px var(--cacao); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta { min-height: 44px; padding: 0 1.1em; font-size: .92rem; box-shadow: 0 4px 0 var(--cacao); }
.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none;
  border-radius: 50%; border: var(--line) solid var(--cacao); background: var(--blanc);
  box-shadow: 0 3px 0 var(--cacao); cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.icon-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--cacao); }
.icon-btn svg { width: 22px; height: 22px; }
.burger { display: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 150;
  display: flex; flex-direction: column; padding: 14px var(--gutter) 32px;
  background: var(--barbe-clair); overflow-y: auto;
  transform: translateY(-102%); visibility: hidden;
  transition: transform .55s var(--ease-out), visibility 0s .55s;
}
.mobile-menu.open { transform: none; visibility: visible; transition: transform .55s var(--ease-out), visibility 0s; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; min-height: 62px; }
.mobile-links { margin: 24px 0; }
.mobile-link {
  display: block; padding: 10px 0;
  font-family: var(--font-display); font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(2rem, 9vw, 2.7rem); text-decoration: none;
  border-bottom: 2px dashed rgba(59, 30, 20, .18);
}
.mobile-link svg { display: none; }
.mobile-cta { display: grid; gap: 14px; margin-top: auto; }

/* ---------- Bandeau défilant ---------- */
.marquee-band {
  position: relative; z-index: 4; overflow: hidden; padding: 16px 0;
  background: var(--bonbon); color: var(--cacao);
  border-block: var(--line) solid var(--cacao);
}
.marquee-band.tilt { transform: rotate(-1.6deg); margin-inline: -2vw; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-band:hover .marquee-track, .is-paused .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 26px; padding-right: 26px;
  font-family: var(--font-sign); font-size: clamp(1.05rem, 2vw, 1.55rem); white-space: nowrap; text-transform: uppercase;
}
.marquee-track span::after { content: "✦"; color: var(--sucre); font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Apparitions (sans dépendance externe) ---------- */
html.js [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity .9s var(--ease-out), translate .9s var(--ease-out); transition-delay: var(--d, 0s); }
html.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* ---------- Pied de page ---------- */
.footer { position: relative; background: var(--barbe-clair); padding: clamp(150px, 16vw, 190px) 0 36px; }
.footer .drip { --dh: clamp(70px, 8vw, 110px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h3 { font-family: var(--font-display); font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 1.35rem; margin-bottom: .9rem; }
.footer-text { color: var(--cacao-doux); max-width: 42ch; margin-top: 1.2rem; }
.contact-line { display: flex; align-items: center; gap: 10px; margin: 0 0 .6em; font-weight: 700; }
.contact-line svg { width: 20px; height: 20px; color: var(--lagon); flex: none; }
.contact-line a { text-decoration: none; }
.contact-line a:hover, .footer-links a:hover { color: var(--framboise); }
.footer-links { display: grid; gap: 8px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.footer-links svg { display: none; }
.socials { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.social-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 800; text-decoration: none; }
.social-link svg { width: 22px; height: 22px; color: var(--framboise); }
.social-link span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--bonbon); }
.payments { margin-top: 1.2rem; color: var(--cacao-doux); font-weight: 700; }
.payments-label { display: block; margin-bottom: 4px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cacao); }
.payment-pill + .payment-pill::before { content: " · "; }
.payment-pill svg { display: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; margin-top: 54px; padding-top: 24px; border-top: 2px dashed rgba(59, 30, 20, .22); font-size: .9rem; color: var(--cacao-doux); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--cacao); }

@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .burger { display: inline-grid; }
}
@media (min-width: 1081px) {
  .mobile-menu { display: none; }
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  :root { --header-h: 66px; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-name { font-size: 1.2rem; }
  .brand-tagline { display: none; }
  .nav-cta { min-height: 42px; padding: 0 .9em; font-size: .86rem; }
  .icon-btn { width: 44px; height: 44px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js [data-reveal] { opacity: 1; translate: none; }
}

/* ---------- Crédit agence ---------- */
.made-by { display: inline-flex; align-items: center; gap: .4em; margin-left: .5em; white-space: nowrap; }
.made-by a { display: inline-flex; align-items: center; gap: .4em; font-weight: 800; color: var(--cacao); text-decoration: none; }
.made-by a:hover { color: var(--framboise); }
.made-by img { width: 20px; height: 20px; border-radius: 50%; }

/* Écrans moyens : le menu à 8 entrées garde le nom de la marque sur une ligne. */
.brand { flex: none; }
.brand-name { white-space: nowrap; }
@media (min-width: 1081px) and (max-width: 1300px) {
  .brand-tagline { display: none; }
  .nav-link { padding: 9px 9px; font-size: .9rem; }
  .nav-inner { gap: 12px; }
}

/* ---------- Gouttes vivantes ---------- */
.bg-sucre { --drip-c: var(--sucre); }
.bg-barbe { --drip-c: var(--barbe); }
.bg-ciel { --drip-c: var(--ciel); }
.footer { --drip-c: var(--cacao); }
/* ---------- Gouttes qui tombent + flaque de glaçage (js/v5-drops.js) ---------- */
.drop-bead, .drop-fall { aspect-ratio: 40 / 54; background: center / 100% 100% no-repeat; }
.drop-bit { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--cacao); }
.drop-bead { position: absolute; z-index: 0; transform-origin: 50% 0; }
.drop-fall { position: fixed; z-index: 1; }
.glaze-layer { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; contain: strict; }
.drop-ripple { position: fixed; width: 46px; height: 12px; border-radius: 50%; border: 2px solid var(--cacao); background: rgba(255, 255, 255, .35); }
.drop-bit { position: fixed; width: 6px; }
.glaze-pool {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 89; height: 72px;
  pointer-events: none; transform: translateY(72px);
  transition: transform .9s cubic-bezier(.2, .8, .2, 1);
  filter: drop-shadow(0 -2px 6px rgba(59, 30, 20, .12));
}
.glaze-wave {
  position: absolute; left: 0; top: 0; width: calc(100% + 240px); height: 22px;
  background: url("../assets/v5/glaze-wave.svg?v=1") 0 0 / 240px 22px repeat-x;
  animation: glaze-wave 5s linear infinite;
}
.glaze-body { position: absolute; left: 0; right: 0; top: 20px; bottom: 0; background: linear-gradient(180deg, #ff7fb2, #f45c9c 60%, #e94d8f); }
@keyframes glaze-wave { to { transform: translateX(-240px); } }
@media (prefers-reduced-motion: reduce) { .glaze-pool, .glaze-layer { display: none; } }

/* ---------- Écran de chargement (arrivée sur le site uniquement) ---------- */
.loader { display: none; }
html.is-loading { overflow: hidden; }
html.is-loading .loader {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--ciel) 0%, #d8f1f6 58%, var(--sucre) 100%);
  transition: transform 1s cubic-bezier(.7, 0, .25, 1);
  /* Filet de sécurité : si aucun script ne tourne, l'écran disparaît seul. */
  animation: loader-failsafe .01s linear 6.5s forwards;
}
html.loader-out .loader { transform: translateY(calc(-100% - 140px)); }
@keyframes loader-failsafe { to { visibility: hidden; opacity: 0; } }
.loader .valance { top: 0; }
.loader .puff { z-index: 0; }
.loader-drip { top: 100%; height: clamp(70px, 8vw, 118px); }
.loader-center { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; width: min(86vw, 640px); }
.loader-title { width: 100%; height: auto; overflow: visible; }
.loader-title .lt { font-family: var(--font-display); font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-size: 120px; }
.loader-title .lt-depth { fill: var(--framboise); stroke: var(--cacao); stroke-width: 12px; stroke-linejoin: round; paint-order: stroke; }
.loader-title .lt-base { fill: #fff; stroke: var(--cacao); stroke-width: 12px; stroke-linejoin: round; paint-order: stroke; }
.loader-rise { transform: translateY(150px); animation: loader-rise 2.5s cubic-bezier(.42, .1, .3, 1) .25s forwards; }
.loader-wave { animation: loader-wave 1.2s linear infinite; }
.loader-wave path:first-child { fill: url(#loader-glaze); }
.loader-wave--back { animation-duration: 1.7s; animation-direction: reverse; }
.loader-wave--back path { fill: #ffc2dc; }
.loader-wave path:last-child { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 4px; stroke-linecap: round; }
@keyframes loader-rise { to { transform: translateY(-14px); } }
@keyframes loader-wave { to { transform: translateX(-360px); } }
.loader-tag {
  margin: 0; text-align: center; text-wrap: balance; font-weight: 800; font-size: clamp(.78rem, 2.2vw, .95rem); letter-spacing: .16em; text-transform: uppercase; color: var(--framboise);
  opacity: 0; translate: 0 10px; animation: loader-tag .9s var(--ease-out) 1.1s forwards;
}
@keyframes loader-tag { to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { html.is-loading { overflow: auto; } html.is-loading .loader { display: none; } }
