/* ==========================================================================
   Glace Pétard, exemple fictif (maquette validée glace-petard)
   Un glacier en camion inventé, volontairement criard et très animé (choix de Marco).
   Page à part : son propre menu et son pied de page, sans ceux du site. Police Bricolage Grotesque
   hébergée sur le site (licence OFL, Fontsource 5.3.0). Sans la classe « anime » (moins de mouvement),
   tout est posé à plat : chaque parfum prend un écran, le camion reste garé.
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root { --rose: #ff2e88; --citron: #d7ff1f; --bleu: #2f2bff; --orange: #ff6b1a; --nuit: #140b22; --creme: #fff3e2; }
* { box-sizing: border-box; }
html { overflow-x: clip; background: var(--rose); }
body { margin: 0; font-family: "Bricolage Grotesque", system-ui, sans-serif; color: var(--nuit); background: var(--rose); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--nuit); outline-offset: 3px; }
.demo { position: fixed; z-index: 60; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; gap: 12px; padding: 7px 18px; background: var(--nuit); color: var(--creme); font-size: 13px; }
.demo a { text-decoration: underline; text-underline-offset: 3px; }
.demo :focus-visible { outline-color: var(--citron); }

.entete { position: fixed; z-index: 50; top: 34px; left: 0; right: 0; display: flex; align-items: center; gap: 28px; padding: 14px 24px; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: -.03em; text-decoration: none; background: var(--citron); padding: 8px 16px 10px; border-radius: 999px; transform: rotate(-3deg); }
.entete nav { display: flex; gap: 22px; margin-left: auto; font-weight: 600; }
.entete nav a { text-decoration: none; }
.bouton { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: var(--nuit); color: var(--citron); font-weight: 800; font-size: 17px; text-decoration: none; border: 3px solid var(--nuit); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), background-color .2s, color .2s; }
.bouton:hover { transform: rotate(-3deg) scale(1.06); background: var(--citron); color: var(--nuit); }
.bouton:active { transform: scale(.96); }

/* 1. L'ouverture : le nom en énorme, le cornet au milieu */
.ouverture { position: relative; min-height: 100vh; padding: 130px 24px 40px; display: grid; place-items: center; overflow: clip; }
.ouverture h1 { position: relative; z-index: 2; margin: 0; text-align: center; font-weight: 800; font-size: clamp(5rem, 19vw, 19rem); line-height: .78; letter-spacing: -.06em; color: var(--citron); -webkit-text-stroke: 4px var(--nuit); paint-order: stroke fill; }
.ouverture h1 .mot { display: block; }
.ouverture h1 .mot + .mot { color: var(--creme); }
.ouverture .accroche { position: relative; z-index: 2; max-width: 520px; margin: 26px auto 0; text-align: center; font-size: 22px; font-weight: 600; line-height: 1.3; }
.ouverture .actions { position: relative; z-index: 2; display: flex; justify-content: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.cornet { position: absolute; z-index: 3; width: min(22vw, 250px); left: 84%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.soleil { position: absolute; z-index: 1; width: 140vmax; height: 140vmax; left: 50%; top: 50%; transform: translate(-50%, -50%); background: repeating-conic-gradient(from 0deg, var(--rose) 0 10deg, #ff4c9a 10deg 20deg); border-radius: 50%; }

/* 2. Les parfums : l'écran change de couleur à chaque parfum */
.parfums { position: relative; height: 420vh; }
.parfums__scene { position: sticky; top: 0; height: 100vh; overflow: clip; display: grid; place-items: center; }
.parfum { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4vw; padding: 120px 6vw 60px; }
.parfum h2 { margin: 0; font-weight: 800; font-size: clamp(3.4rem, 9vw, 9rem); line-height: .85; letter-spacing: -.055em; }
.parfum p { margin: 22px 0 0; max-width: 440px; font-size: 21px; line-height: 1.4; font-weight: 600; }
.parfum .prix { display: inline-block; margin-top: 22px; padding: 10px 20px 12px; border: 3px solid currentColor; border-radius: 999px; font-weight: 800; font-size: 20px; transform: rotate(4deg); }
.boule { justify-self: center; width: min(36vw, 420px); aspect-ratio: 1; border-radius: 50%; border: 6px solid var(--nuit); position: relative; }
.boule::after { content: ""; position: absolute; width: 22%; height: 14%; left: 22%; top: 18%; border-radius: 50%; background: rgb(255 255 255 / .55); transform: rotate(-30deg); }
.p1 { background: var(--orange); color: var(--nuit); } .p1 .boule { background: #ffc21a; }
.p2 { background: var(--citron); color: var(--nuit); } .p2 .boule { background: #9be34b; }
.p3 { background: var(--bleu); color: var(--creme); } .p3 .boule { background: #ff4f7b; border-color: var(--creme); }
.p4 { background: var(--nuit); color: var(--citron); } .p4 .boule { background: #b6e07a; border-color: var(--citron); }

/* 3. Le camion traverse l'écran */
.camion { position: relative; height: 260vh; background: var(--citron); }
.camion__scene { position: sticky; top: 0; height: 100vh; overflow: clip; display: flex; flex-direction: column; justify-content: center; }
.camion h2 { margin: 0 24px; font-weight: 800; font-size: clamp(3rem, 11vw, 11rem); line-height: .82; letter-spacing: -.06em; white-space: nowrap; }
.camion svg { width: min(70vw, 760px); margin-top: 3vh; }
.route { height: 14px; background: repeating-linear-gradient(90deg, var(--nuit) 0 60px, transparent 60px 100px); margin-top: -8px; }

/* 4. Où nous trouver : la semaine du camion */
.semaine { background: var(--creme); padding: 18vh 24px; overflow-x: clip; }
.semaine h2 { margin: 0 0 6vh; font-weight: 800; font-size: clamp(3rem, 8vw, 8rem); line-height: .85; letter-spacing: -.055em; }
.semaine ol { list-style: none; margin: 0; padding: 0; border-top: 4px solid var(--nuit); }
.semaine li { display: grid; grid-template-columns: 9em 1fr auto; gap: 16px; align-items: baseline; padding: 22px 0; border-bottom: 4px solid var(--nuit); font-size: clamp(1.3rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; transition: background-color .2s, padding .3s cubic-bezier(.3, 1.6, .5, 1); }
.semaine li span { font-weight: 400; }
.semaine li em { font-style: normal; font-size: 18px; font-weight: 600; }
.semaine li:hover { background: var(--citron); padding-left: 18px; }

/* 5. La fin : on vient goûter */
.fin { position: relative; min-height: 100vh; background: var(--bleu); color: var(--creme); display: grid; place-items: center; text-align: center; padding: 120px 24px; overflow: clip; }
.fin h2 { position: relative; z-index: 2; margin: 0; font-weight: 800; font-size: clamp(4rem, 15vw, 15rem); line-height: .8; letter-spacing: -.06em; color: var(--citron); }
.fin p { position: relative; z-index: 2; margin: 24px auto 28px; max-width: 460px; font-size: 21px; font-weight: 600; }
.fin .bouton { position: relative; z-index: 2; background: var(--rose); color: var(--nuit); border-color: var(--nuit); }
.vermicelles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.vermicelles i { position: absolute; width: 10px; height: 34px; border-radius: 6px; }
.pied { background: var(--nuit); color: var(--creme); padding: 28px 24px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 14px; }
.pied :focus-visible { outline-color: var(--citron); }

@media (max-width: 760px) {
  .entete nav { display: none; }
  .entete .bouton { margin-left: auto; padding: 10px 16px; font-size: 15px; }
  .ouverture h1 { -webkit-text-stroke: 3px var(--nuit); }
  .cornet { width: 26vw; left: 82%; top: 17%; }
  .logo { white-space: nowrap; font-size: 18px; }
  .entete { top: 30px; padding: 12px 16px; }
  .parfum { grid-template-columns: 1fr; padding: 110px 22px 40px; align-content: center; }
  .boule { width: 52vw; order: -1; }
  .parfum p { font-size: 18px; }
  .semaine li { grid-template-columns: 1fr; gap: 4px; }
  .demo span { display: none; }
  .demo .court { display: inline; }
}
html:not(.anime) .parfums { height: auto; }
html:not(.anime) .parfums__scene { position: static; height: auto; display: block; }
html:not(.anime) .parfum { position: relative; min-height: 100vh; }
html:not(.anime) .camion { height: auto; }
html:not(.anime) .camion h2 { white-space: normal; }
html:not(.anime) .camion__scene { position: static; height: auto; padding: 18vh 0; }
