/* NATTER — Kamelya Studio concept. Lait + Encre pour l'interface ; la couleur n'existe que dans les bulles et les aplats de saveur. */
@font-face { font-family: "Anybody"; src: url(../fonts/anybody.woff2) format("woff2"); font-weight: 100 900; font-stretch: 50% 150%; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(../fonts/newsreader-italic.woff2) format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Sligoil"; src: url(../fonts/Sligoil-MicroMedium.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --lait: #F3F0E8; --ink: #111111;
  --jaune: #DDFF2E; --rose: #FF4F9A; --bleu: #2B3BFF;
  --gut: clamp(16px, 2.2vw, 32px);
  --nav: 44px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--lait); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: transparent; color: var(--ink); font-family: "Anybody", system-ui, sans-serif; font-variation-settings: "wdth" 90; font-weight: 500; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: "Sligoil", ui-monospace, monospace; font-size: 12px; line-height: 1.4; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.bg { position: fixed; inset: 0; background: var(--lait); z-index: -1; }

/* ---------- Chargement ---------- */
.loader { position: fixed; inset: 0; z-index: 60; background: var(--lait); display: grid; place-items: center; transition: opacity .5s ease, visibility .5s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader-logo { width: min(46vw, 520px); height: auto; overflow: visible; }
.loader-logo text { font-family: "Anybody"; font-size: 40px; font-weight: 800; font-variation-settings: "wdth" 50; letter-spacing: -.5px; }
.ll-out { fill: none; stroke: var(--ink); stroke-width: .35; }
.ll-in { fill: url(#ldots); }
.loader-count { position: absolute; left: 0; right: 0; bottom: 14vh; text-align: center; }
html:not(.js) .loader { display: none; }

/* ---------- Barre de navigation (barre fine de liens texte, Postevand) ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav); z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--gut); border-bottom: 1px solid var(--ink); background: var(--lait); transition: background-color .4s; }
.nav[data-flat] { background: transparent; }
.nav-mark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.nav-mark svg { width: 22px; height: 15px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-sound:hover { text-decoration: underline; text-underline-offset: 3px; }
.nav-sound { justify-self: end; text-transform: uppercase; letter-spacing: .06em; }
.nav-sound b { font-weight: 500; display: inline-block; min-width: 3ch; padding: 2px 6px; border: 1px solid var(--ink); border-radius: 999px; margin-left: 4px; text-align: center; }
.nav-sound[aria-pressed="true"] b { background: var(--ink); color: var(--lait); }

/* ---------- Toiles fixes ---------- */
.gl { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; display: block; }
.carriers { position: fixed; inset: 0; z-index: 25; pointer-events: none; overflow: hidden; }
.carrier { position: absolute; left: 0; top: 0; display: grid; place-items: center; text-align: center; font-family: "Newsreader", serif; font-style: italic; font-weight: 420; line-height: 1.08; opacity: 0; transition: opacity .25s; padding: 0 6px; }
.carrier.on { opacity: 1; }

/* ---------- Logotype géant (SVG piloté par la pression) ---------- */
.biglogo svg { display: block; width: 100%; height: auto; overflow: visible; }
.biglogo text { font-family: "Anybody"; font-weight: 800; fill: var(--ink); }

/* ---------- 1. Hero ---------- */
.hero { height: 190vh; position: relative; }
.hero-in { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero .biglogo { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 calc(var(--gut) * .5); transform-origin: 50% 100%; will-change: transform; }
.hero-hint { position: fixed; z-index: 31; left: 0; right: 0; top: calc(var(--nav) + 22px); text-align: center; min-height: 1.4em; margin: 0; pointer-events: none; transition: opacity .3s; }
.hero-motion { position: fixed; left: 50%; top: calc(var(--nav) + 50px); transform: translateX(-50%); border: 1px solid var(--ink); border-radius: 999px; padding: 10px 16px; background: var(--lait); z-index: 31; transition: opacity .3s; }
.hero-motion.off { opacity: 0; pointer-events: none; }
.hero-tag { position: absolute; left: var(--gut); right: var(--gut); top: 38vh; margin: 0; font-size: clamp(34px, 5.6vw, 92px); line-height: .98; font-weight: 700; font-variation-settings: "wdth" 70; letter-spacing: -.01em; max-width: 13ch; opacity: 0; transform: translateY(40px); }
.packshot { display: none; }

/* ---------- 2. Chapitre épinglé ---------- */
.chapter { height: 460vh; position: relative; }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.chapter-kicker, .chapter-foot { position: absolute; left: 0; right: 0; text-align: center; margin: 0; }
.chapter-kicker { top: calc(var(--nav) + 26px); }
.chapter-foot { bottom: 30px; }
.phrases { list-style: none; margin: 0; padding: 0; }
.phrases li { position: absolute; font-family: "Newsreader", serif; font-style: italic; font-weight: 420; font-size: clamp(24px, 2.35vw, 38px); line-height: 1.1; white-space: nowrap; padding: .32em .7em .38em; opacity: 0; transform: translateY(16px); transition: opacity .35s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.phrases li.on { opacity: 1; transform: none; }
.phrases li[data-c="2"] { color: var(--lait); }
.phrases li i { font-style: normal; }
/* position des 6 phrases, de part et d'autre de la canette */
.phrases li:nth-child(1) { right: 64%; top: 26%; }
.phrases li:nth-child(2) { left: 63%; top: 33%; }
.phrases li:nth-child(3) { right: 63%; top: 47%; }
.phrases li:nth-child(4) { left: 64%; top: 54%; }
.phrases li:nth-child(5) { right: 62%; top: 68%; }
.phrases li:nth-child(6) { left: 62%; top: 75%; }

/* ---------- Écrans partagés (le réel) ---------- */
.split { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; border-top: 1px solid var(--ink); }
.split-txt { display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--nav) + 8vh) var(--gut) 34px; }
.split-big { margin: 0; font-size: clamp(30px, 3.5vw, 56px); line-height: 1.04; font-weight: 500; font-variation-settings: "wdth" 82; letter-spacing: -.012em; max-width: 15ch; }
.split-note { margin: 0; opacity: .7; }
.split-img { margin: 0; position: relative; overflow: hidden; border-left: 1px solid var(--ink); }
.split-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-early .split-img img { object-position: 50% 50%; }
#ph-cercle .split-img img { object-position: 64% 50%; }

/* ---------- 4. Vue éclatée ---------- */
.exploded { height: 520vh; position: relative; }
.ex-title { position: absolute; top: calc(var(--nav) + 26px); left: var(--gut); margin: 0; }
.ex-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ex-lines line { stroke: var(--ink); stroke-width: 1; }
.ex-lines circle { fill: var(--ink); }
.ex-legends { list-style: none; margin: 0; padding: 0; }
.ex-legends li { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.ex-legends li b { font-weight: 500; background: var(--ink); color: var(--lait); padding: 2px 5px; margin-right: 4px; }
.ex-box { position: absolute; left: 0; right: 0; bottom: 34px; text-align: center; margin: 0; opacity: 0; transition: opacity .4s; }

/* ---------- 5. Saveurs ---------- */
.flavours { height: 420vh; position: relative; }
.fl-kicker { position: absolute; top: calc(var(--nav) + 26px); left: 0; right: 0; text-align: center; margin: 0; }
.fl-names { position: absolute; left: 0; right: 0; bottom: 5vh; height: 34vh; }
.fl-name { position: absolute; inset: auto 0 0 0; text-align: center; opacity: 0; transform: translateY(30px); transition: opacity .35s, transform .5s cubic-bezier(.2,.8,.2,1); }
.fl-name.on { opacity: 1; transform: none; }
.fl-name h2 { margin: 0; font-size: clamp(56px, 11vw, 168px); line-height: .86; font-weight: 800; font-variation-settings: "wdth" 120; letter-spacing: -.02em; text-transform: uppercase; }
.fl-name p { margin: 14px 0 0; font-family: "Newsreader", serif; font-style: italic; font-size: clamp(18px, 1.7vw, 26px); }
.flavours[data-f="2"] .fl-name, .flavours[data-f="2"] .fl-kicker, .flavours[data-f="2"] .fl-nav { color: var(--lait); }
.fl-nav { position: absolute; right: var(--gut); bottom: calc(5vh + 8px); display: flex; gap: 8px; z-index: 2; }
.fl-nav button { width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-size: 16px; }
.fl-nav button:hover { background: var(--ink); color: var(--lait); }

/* ---------- 6. Bandeau ---------- */
.mq-sec { position: relative; overflow: hidden; padding: 6vh 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.mq { white-space: nowrap; }
.mq-track { display: inline-flex; gap: .5em; font-size: clamp(64px, 9.5vw, 150px); line-height: 1; font-weight: 800; font-variation-settings: "wdth" 58; letter-spacing: -.015em; will-change: transform; }
.mq-track span { padding-right: .1em; }
.mq-track .dot { color: transparent; background-image: radial-gradient(circle at 50% 50%, var(--ink) 0 2.2px, transparent 2.6px); background-size: 6px 6px; -webkit-background-clip: text; background-clip: text; }

/* ---------- 7. Table talk ---------- */
.tabletalk { height: 400vh; position: relative; }
.tabletalk .pin { display: grid; place-items: center; }
.tt-kicker { position: absolute; top: calc(var(--nav) + 26px); left: 0; right: 0; text-align: center; margin: 0; }
.tt-sentence { margin: 0; padding: 0 var(--gut); max-width: 15.5em; font-family: "Newsreader", serif; font-style: italic; font-weight: 400; font-size: clamp(40px, 6.4vw, 112px); line-height: 1.02; letter-spacing: -.012em; text-align: center; text-wrap: balance; }
.tt-sentence em { font-style: normal; font-weight: 520; }
.tt-sentence .w { display: inline-block; }
.js .tt-sentence.armed .w { opacity: 0; transform: scale(.6); transition: opacity .18s, transform .32s cubic-bezier(.3,1.6,.5,1); }
.js .tt-sentence.armed .w.on { opacity: 1; transform: none; }
.tt-note { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; margin: 0; }
.tt-aside { position: absolute; left: 0; top: 0; margin: 0; opacity: 0; white-space: nowrap; transition: opacity .3s; }

/* ---------- 9. FAQ ---------- */
.faq { position: relative; display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--gut); padding: 16vh var(--gut); border-top: 1px solid var(--ink); }
.faq-side h2 { margin: 0 0 28px; font-size: clamp(36px, 4.6vw, 72px); line-height: .95; font-weight: 700; font-variation-settings: "wdth" 70; max-width: 9ch; letter-spacing: -.01em; }
.faq-btn { display: inline-block; text-decoration: none; background: var(--ink); color: var(--lait); padding: 13px 20px; border-radius: 999px; }
.acc { display: flex; flex-direction: column; gap: 10px; }
.acc-it { border: 1.5px solid var(--ink); border-radius: 30px; background: var(--lait); }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; text-align: left; font-size: clamp(18px, 1.5vw, 23px); font-weight: 600; font-variation-settings: "wdth" 85; }
.acc-h { margin: 0; font: inherit; }
.acc-ic { position: relative; width: 16px; height: 16px; flex: none; }
.acc-ic i { position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: var(--ink); transition: transform .3s; }
.acc-ic i + i { transform: rotate(90deg); }
.acc-btn[aria-expanded="true"] .acc-ic i + i { transform: rotate(0); }
.acc-p p { margin: 0; padding: 0 24px 20px; font-family: "Newsreader", serif; font-style: italic; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.3; max-width: 38em; }

/* ---------- 10. Pied de page ---------- */
.foot { position: relative; height: 140vh; border-top: 1px solid var(--ink); }
.foot-in { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.foot-line { position: absolute; left: var(--gut); top: calc(var(--nav) + 6vh); margin: 0; font-family: "Newsreader", serif; font-style: italic; font-size: clamp(26px, 2.6vw, 42px); max-width: 12em; line-height: 1.05; }
.foot-meta { position: absolute; right: var(--gut); top: calc(var(--nav) + 6vh); text-align: right; display: grid; gap: 6px; max-width: 360px; }
.foot-meta p { margin: 0; }
.foot-meta p[lang="fr"] { text-transform: none; letter-spacing: .02em; opacity: .75; }
.cartel { display: inline-block; justify-self: end; border: 1px solid var(--ink); padding: 3px 8px; border-radius: 999px; }
.foot .biglogo { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 calc(var(--gut) * .5); }

/* ---------- Secours sans WebGL / sans JS ---------- */
.no-webgl .gl { display: none; }
.no-webgl .packshot, html:not(.js) .packshot { display: block; position: absolute; left: 50%; top: calc(var(--nav) + 4vh); height: 58vh; width: auto; transform: translateX(-50%) rotate(-8deg); }
html:not(.js) .phrases li, .no-webgl .phrases li { position: static; opacity: 1; transform: none; display: block; text-align: center; white-space: normal; color: var(--ink) !important; }
html:not(.js) .chapter, .no-webgl .chapter, html:not(.js) .exploded, .no-webgl .exploded, html:not(.js) .flavours, .no-webgl .flavours, html:not(.js) .tabletalk, .no-webgl .tabletalk, html:not(.js) .hero, .no-webgl .hero { height: auto; min-height: 100vh; }
html:not(.js) .pin, .no-webgl .pin, html:not(.js) .hero-in, .no-webgl .hero-in { position: relative; height: auto; min-height: 100vh; padding: 14vh var(--gut); }
.no-webgl .fl-name, html:not(.js) .fl-name { position: static; opacity: 1; transform: none; margin: 4vh 0; }
.no-webgl .fl-names, html:not(.js) .fl-names { position: static; height: auto; }
.no-webgl .hero-tag, html:not(.js) .hero-tag { opacity: 1; transform: none; top: 66vh; }

/* ---------- Mobile (390) : conçu à part ---------- */
@media (max-width: 760px) {
  :root { --nav: 46px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero-tag { top: 30vh; font-size: 46px; max-width: 8.5ch; }
  .chapter { height: 400vh; }
  .phrases li { font-size: 19px; white-space: nowrap; }
  .phrases li:nth-child(1) { right: auto; left: 5%; top: 15%; }
  .phrases li:nth-child(2) { left: auto; right: 5%; top: 22%; }
  .phrases li:nth-child(3) { right: auto; left: 4%; top: 29%; }
  .phrases li:nth-child(4) { left: auto; right: 4%; top: 71%; }
  .phrases li:nth-child(5) { right: auto; left: 5%; top: 78%; }
  .phrases li:nth-child(6) { left: auto; right: 5%; top: 85%; }
  .chapter-foot { bottom: 18px; }
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split-txt { padding: 12vh var(--gut) 18px; gap: 18px; }
  .split-big { font-size: 33px; max-width: 13ch; }
  .split-img { border-left: 0; border-top: 1px solid var(--ink); aspect-ratio: 4 / 5; }
  .split-early .split-img { aspect-ratio: 1 / 1; }
  .fl-names { bottom: 9vh; }
  .fl-name h2 { font-size: 58px; font-variation-settings: "wdth" 96; }
  .fl-name p { font-size: 17px; padding: 0 var(--gut); }
  .fl-nav { left: 0; right: 0; justify-content: space-between; bottom: calc(50vh - 22px); padding: 0 12px; }
  .ex-legends li { white-space: normal; max-width: 44vw; font-size: 11px; }
  .tt-sentence { font-size: 38px; line-height: 1.05; max-width: none; }
  .faq { grid-template-columns: 1fr; padding: 12vh var(--gut); gap: 30px; }
  .acc-btn { padding: 15px 18px; font-size: 17px; }
  .acc-p p { padding: 0 18px 16px; font-size: 17px; }
  .foot-line { font-size: 30px; right: var(--gut); }
  .foot-meta { left: var(--gut); right: var(--gut); top: auto; bottom: calc(37vw + 18px); text-align: left; max-width: none; }
  .cartel { justify-self: start; }
  .mq-track { font-size: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  .phrases li, .fl-name, .tt-sentence .w, .carrier { transition: none !important; }
}
.no-webgl .ex-legends, html:not(.js) .ex-legends { padding-top: 16vh; display: grid; gap: 14px; justify-items: center; }
.no-webgl .ex-legends li, html:not(.js) .ex-legends li { position: static; opacity: 1; transform: none !important; }
.no-webgl .ex-box, html:not(.js) .ex-box { position: static; opacity: 1; margin-top: 30px; }
.no-webgl .packshot { top: calc(var(--nav) + 9vh); height: 52vh; }

/* ---------- Passe images : sections photo (le réel ancre, le geste anime) ---------- */
.ph { position: relative; border-top: 1px solid var(--ink); background: var(--lait); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-note { margin: 0; opacity: .7; }
.ph-cap { margin: 0; display: flex; justify-content: space-between; gap: 16px; padding: 12px var(--gut) 0; }
/* plein écran */
.ph-full { height: 100vh; min-height: 560px; overflow: hidden; }
.ph-full figure { margin: 0; position: absolute; inset: 0; }
.ph-full .ph-say { position: absolute; left: var(--gut); bottom: 64px; margin: 0; max-width: min(34ch, 80vw); font-family: "Newsreader", serif; font-style: italic; font-weight: 400; font-size: clamp(22px, 2.3vw, 36px); line-height: 1.12; background: var(--lait); border: 1.5px solid var(--ink); border-radius: 999px; padding: .42em 1.05em .5em; box-shadow: 4px 4px 0 var(--ink); }
.ph-full .ph-say.r { left: auto; right: var(--gut); }
.ph-full .ph-say.top { bottom: auto; top: calc(var(--nav) + 28px); }
.ph-full .ph-note { position: absolute; right: var(--gut); bottom: 18px; background: var(--lait); padding: 3px 8px; border-radius: 99px; opacity: .85; }
.ph-full .ph-note.l { right: auto; left: var(--gut); }

@media (max-width: 760px) {
  .ph-full { height: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .ph-full.ph-tall { aspect-ratio: 3 / 4; }
  .ph-full .ph-say { font-size: 19px; bottom: 44px; max-width: calc(100vw - 2 * var(--gut)); border-radius: 22px; }
  .ph-full .ph-note { bottom: 10px; font-size: 10px; }
}
/* emplacement vide tant que la photo n'est pas générée : aplat neutre, pas de texte de secours visible */
.ph-new img { background: #E4DFD3; color: transparent; }

/* Passe Gemini : cadrages (la canette reste dans le cadre en 4:5 sur mobile) */
#ph-matiere img { object-position: 64% 50%; }
#ph-trinquer img { object-position: 50% 46%; }
