/* ============================================================
   ZA3MA CHEF — styles.css
   Palette « Safran & Sable » : sable lin / crème / nuit zellige / terracotta / safran / menthe.
   Tokens = source unique des couleurs. Surfaces remappées par classe (.on-nuit, .on-sable-2…).
   Seuls transform et opacity sont animés. Tout vit à l'état final sans JS.
   ============================================================ */

/* ---------- FONTS (auto-hébergées, sous-ensembles latin, OFL) ---------- */
@font-face { font-family: Fraunces; font-style: normal; font-weight: 800; font-display: block; src: url("fonts/fraunces-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: Fraunces; font-style: normal; font-weight: 700; font-display: block; src: url("fonts/fraunces-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: Fraunces; font-style: italic; font-weight: 700; font-display: block; src: url("fonts/fraunces-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: Figtree;  font-style: normal; font-weight: 400; font-display: block; src: url("fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Figtree;  font-style: normal; font-weight: 500; font-display: block; src: url("fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: Figtree;  font-style: normal; font-weight: 700; font-display: block; src: url("fonts/figtree-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces Fallback"; src: local("Palatino"), local("Georgia"); size-adjust: 104%; ascent-override: 92%; }

/* ---------- TOKENS ---------- */
:root {
  color-scheme: light;
  --sable: #F5EFE3; --creme: #FDF8EE; --sable-2: #EBE1CF; --nuit: #3A2A1F; --nuit-2: #4A382B;
  --ink: #2A1E15; --muted: #5F4B3B; --creme-72: rgba(255,248,236,.72); --creme-88: rgba(255,248,236,.88);
  --terracotta: #B4461A; --terracotta-txt: #A83F18; --terracotta-vive: #C4501F; --paprika: #9E2F1C;
  --safran: #E0A93F; --menthe: #4C6B3C; --menthe-claire: #BFD6A6;
  --ligne: rgba(43,24,17,.14); --ligne-nuit: rgba(255,248,236,.16);
  --ombre-sable: rgba(43,24,17,.28); --ombre-nuit: rgba(6,14,26,.55); --lueur: rgba(242,165,26,.14);
  --contact: rgba(43,24,17,.22); --contact-nuit: rgba(0,0,0,.45); --ombre-cta: rgba(180,70,26,.28);
  --font-display: Fraunces, "Fraunces Fallback", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-text: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-body: 17px; --lh-body: 1.55; --measure: 62ch;
  --gutter: 16px; --content-max: 1200px; --section-pad: clamp(72px, 10vw, 144px); --header-h: 56px;
  --r-pill: 999px; --r-card: 20px; --r-tile: 14px; --r-arche: 280px 280px 28px 28px;
  --ease-pose: cubic-bezier(.2,.7,.2,1); --ease-lift: cubic-bezier(.34,1.56,.64,1);
  --t-fast: 180ms; --t-mid: 400ms; --t-slow: 900ms;
  --bg: var(--sable); --fg: var(--ink); --fg-soft: var(--muted); --accent: var(--terracotta-txt); --accent-strong: var(--paprika);
  --line: var(--ligne); --shadow: var(--ombre-sable); --contact-shadow: var(--contact); --focus: var(--paprika);
}
.on-creme   { --bg: var(--creme); }
.on-sable-2 { --bg: var(--sable-2); }
.on-nuit, .on-nuit-2 {
  --fg: var(--creme); --fg-soft: var(--creme-72); --accent: var(--safran); --accent-strong: var(--safran);
  --line: var(--ligne-nuit); --shadow: var(--ombre-nuit); --contact-shadow: var(--contact-nuit); --focus: var(--safran);
}
.on-nuit { --bg: var(--nuit); } .on-nuit-2 { --bg: var(--nuit-2); }
@media (min-width: 375px)  { :root { --gutter: 20px; } }
@media (min-width: 480px)  { :root { --gutter: 24px; } }
@media (min-width: 768px)  { :root { --header-h: 64px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; --fs-body: 18px; } }


/* ---------- PALETTES NATURELLES (aucun bleu, aucun rose) — html[data-palette] ----------
   A. olive   : sable lin + olive profonde + terracotta + safran      (défaut)
   B. charbon : ivoire + charbon chaud (argile cuite) + terracotta vive + miel + olive
   C. noyer   : lin + noyer (bois de planche) + paprika + miel + vert herbes */
html[data-palette="olive"] {
  --sable: #F6EBD5; --creme: #FFF8EC; --sable-2: #F1E2C4;
  --nuit: #2B3A22; --nuit-2: #36472B;
  --ink: #2B1F14; --muted: #5E4A38;
  --terracotta: #B4461A; --terracotta-txt: #A83F18; --terracotta-vive: #C4501F; --paprika: #9E2F1C;
  --safran: #E9A83A; --menthe: #4E7A3F; --menthe-claire: #B9D9A0;
  --ombre-nuit: rgba(12,20,8,.55); --lueur: rgba(233,168,58,.16); --contact-nuit: rgba(0,0,0,.45);
}
html[data-palette="charbon"] {
  --sable: #F7F1E6; --creme: #FFFBF4; --sable-2: #EFE5D3;
  --nuit: #2A2521; --nuit-2: #38312B;
  --ink: #241C17; --muted: #5C4E43;
  --terracotta: #B8501F; --terracotta-txt: #A64518; --terracotta-vive: #C4501F; --paprika: #9E2F1C;
  --safran: #D9A441; --menthe: #5B6B3A; --menthe-claire: #C9CFA0;
  --ombre-nuit: rgba(0,0,0,.55); --lueur: rgba(217,164,65,.16);
}
:root, html[data-palette="noyer"] {
  --sable: #F5EFE3; --creme: #FDF8EE; --sable-2: #EBE1CF;
  --nuit: #3A2A1F; --nuit-2: #4A382B;
  --ink: #2A1E15; --muted: #5F4B3B;
  --terracotta: #B4461A; --terracotta-txt: #A83F18; --terracotta-vive: #C4501F; --paprika: #9E2F1C;
  --safran: #E0A93F; --menthe: #4C6B3C; --menthe-claire: #BFD6A6;
  --ombre-nuit: rgba(20,10,4,.55); --lueur: rgba(224,169,63,.16);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; background: var(--sable); color: var(--ink); overflow-x: clip; }
html { background: var(--sable); }
body { font: 400 var(--fs-body)/var(--lh-body) var(--font-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.on-nuit .btn-safran:focus-visible, .card:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--creme); }
.menu, .footer, dialog.viewer, .card { --focus: var(--safran); }
[hidden] { display: none !important; }
html:not(.js) .menu-btn, html:not(.js) .clip-btn, html:not(.js) .lang { display: none; }
.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; }
.num { font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.wrap { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; overflow: clip; scroll-margin-top: calc(var(--header-h) + 16px); }
em { font-style: italic; }

/* ---------- TYPO ---------- */
.kicker { font: 500 12px/1.3 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-soft); }
.h1 { font: 800 clamp(48px, 7.2vw, 108px)/.95 var(--font-display); letter-spacing: -.025em; color: var(--fg); }
.h2 { font: 700 clamp(34px, 4.6vw, 64px)/1.02 var(--font-display); letter-spacing: -.02em; color: var(--fg); text-wrap: balance; }
.h2 em { font-style: italic; color: var(--terracotta); }
.on-nuit .h2 em, .on-nuit-2 .h2 em { color: var(--safran); }
.lede { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.5; color: var(--fg); max-width: var(--measure); }
.on-nuit .lede { color: var(--creme-88); }
.soft { color: var(--fg-soft); }
.small { font-size: 14px; line-height: 1.45; }
@media (max-width: 767px) {
  .h1 { font-size: clamp(40px, 12vw, 56px); }
  .h2 { font-size: clamp(32px, 9vw, 44px); }
}

/* ---------- BOUTONS ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--r-pill);
  font: 700 16px/1 var(--font-text); transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform 120ms; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--terracotta); color: var(--creme); box-shadow: 0 10px 24px var(--ombre-cta); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--paprika); box-shadow: 0 6px 16px var(--ombre-cta); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--creme); }
.btn-safran { background: var(--safran); color: var(--ink); }
.btn-safran:hover { background: var(--creme); }
.btn-outline { border: 1.5px solid var(--creme); color: var(--creme); }
.btn-outline:hover { background: rgba(255,248,236,.08); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.quiet { display: inline-flex; align-items: center; min-height: 44px; font: 500 15px/1.3 var(--font-text); color: var(--accent); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.quiet:hover { text-decoration-thickness: 2px; }
.arrow { display: inline-block; transition: transform 300ms var(--ease-pose); }
a:hover .arrow, .card:hover .arrow { transform: translate(3px, -3px); }

/* ---------- HEADER ---------- */
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 50; background: var(--ink); color: var(--creme); padding: 12px 18px; border-radius: 12px; font-weight: 700; }
.skip:focus { top: 12px; }
.header { position: sticky; top: 0; z-index: 20; height: calc(var(--header-h) + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding-inline: var(--gutter);
  transition: background 300ms, box-shadow 300ms; }
.header::before { content: ""; position: absolute; inset: 0 auto auto 0; height: 2px; width: 100%; background: var(--paprika); transform: scaleX(var(--progress, 0)); transform-origin: left; }
.header.is-scrolled { background: rgba(243,226,198,.94); box-shadow: 0 1px 0 var(--ligne); }
.brand { font: 700 22px/1 var(--font-display); letter-spacing: -.02em; color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; }
.brand b { color: var(--terracotta); font-weight: 700; }
.nav { position: relative; display: none; justify-content: center; gap: 28px; }
.nav a { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 500 15px/1 var(--font-text); color: var(--ink); transition: color var(--t-fast); }
.nav a:hover { color: var(--terracotta-txt); }
.nav a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--terracotta-txt)); box-shadow: 0 0 0 1.5px var(--ink); }
.nav-indicator { position: absolute; left: 0; bottom: 6px; height: 3px; width: 40px; background: var(--paprika); border-radius: 2px; transform-origin: left; transition: transform 320ms var(--ease-pose), opacity 200ms; opacity: 0; }
.header-right { display: flex; align-items: center; gap: 10px; justify-self: end; }
.lang { display: inline-flex; border: 1.5px solid var(--ink); border-radius: var(--r-pill); height: 40px; overflow: hidden; }
.lang button { padding: 0 12px; font: 700 13px/1 var(--font-text); letter-spacing: .04em; color: var(--ink); min-width: 44px; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--creme); }
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.menu-btn svg { width: 22px; height: 22px; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
@media (min-width: 900px) { .nav { display: flex; } .menu-btn { display: none; } }
@media (max-width: 559px) { .header .lang { display: none; } .header .btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; } .header { gap: 8px; } }
.menu { position: fixed; inset: 0; z-index: 30; background: var(--nuit); color: var(--creme); padding: calc(24px + env(safe-area-inset-top)) var(--gutter) 40px; display: none; flex-direction: column; gap: 28px; }
.menu.is-open { display: flex; }
.menu a.big { font: 700 clamp(32px, 9vw, 40px)/1.15 var(--font-display); color: var(--creme); display: inline-flex; align-items: center; gap: 14px; min-height: 56px; }
.menu a.big::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--safran)); box-shadow: 0 0 0 1.5px var(--creme); }
.menu .close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: var(--gutter); width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--creme-72); color: var(--creme); font-size: 22px; }
.menu .lang { border-color: var(--creme); align-self: flex-start; } .menu .lang button { color: var(--creme); } .menu .lang button[aria-pressed="true"] { background: var(--creme); color: var(--nuit); }
.menu .mail { font: 500 16px/1.3 var(--font-text); color: var(--creme-72); margin-top: auto; }
body.menu-open { overflow: hidden; }

/* ---------- STICKERS (détourages) ---------- */
.sticker { --rot: 0deg; --size: 300px; --ox: 0%; --oy: 0%; --sy: 18px; --sb: 28px; position: absolute; width: var(--size); max-width: 96vw; z-index: 2; pointer-events: none;
  transform: translate(var(--ox), var(--oy)) rotate(var(--rot)); filter: drop-shadow(0 var(--sy) var(--sb) var(--shadow)); transition: transform 500ms var(--ease-lift); }
.on-nuit .sticker, .on-nuit-2 .sticker, .arche .sticker { filter: drop-shadow(0 var(--sy) var(--sb) var(--ombre-nuit)) drop-shadow(0 0 32px var(--lueur)); }
.sticker img { width: 100%; height: auto; }
.sticker::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: -6%; height: 18%; border-radius: 50%; z-index: -1;
  background: radial-gradient(ellipse at center, var(--contact-shadow) 0%, transparent 70%); filter: blur(18px); transform-origin: center; transition: transform 500ms var(--ease-lift), opacity 500ms; }
.sticker.no-contact::after { display: none; }

/* ---------- HERO ---------- */
.hero { min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; padding: 24px 0 0; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 32px; position: relative; }
.hero-copy { position: relative; z-index: 3; display: grid; gap: 22px; align-content: center; padding-block: 24px; }
.mask { display: block; overflow: hidden; }
html.lang-pending [data-copy] { visibility: hidden; }
.h1 .line { display: block; }
.hero .h1 .line2 { font: 700 italic clamp(26px, 3vw, 44px)/1.1 var(--font-display); letter-spacing: -.01em; color: var(--terracotta); margin-top: 12px; }
.proof { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; background: var(--creme); border-radius: var(--r-pill); padding: 10px 18px; box-shadow: 0 8px 24px rgba(43,24,17,.10); font: 500 15px/1.3 var(--font-text); color: var(--ink); width: fit-content; }
.proof::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--terracotta-txt); flex: none; }
.proof b { font-weight: 700; }
.proof .sep { color: var(--muted); }
.proof-date { font-size: 13px; color: var(--muted); margin-top: -12px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-stage { position: relative; min-height: 106vw; }
.arche { position: absolute; left: 6%; right: 6%; bottom: 0; height: 92%; background: var(--nuit); border-radius: 44vw 44vw 20px 20px; overflow: visible; }
.arche::before, .arche-2::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .06; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23FFF8EC' stroke-width='1.2' stroke-linejoin='round'%3E%3Crect x='51.7' y='51.7' width='56.6' height='56.6'/%3E%3Cpath d='M80 40 L120 80 L80 120 L40 80 Z'/%3E%3Ccircle cx='80' cy='80' r='8'/%3E%3Crect x='-28.3' y='-28.3' width='56.6' height='56.6'/%3E%3Cpath d='M0 -40 L40 0 L0 40 L-40 0 Z'/%3E%3Ccircle cx='0' cy='0' r='8'/%3E%3Crect x='131.7' y='-28.3' width='56.6' height='56.6'/%3E%3Cpath d='M160 -40 L200 0 L160 40 L120 0 Z'/%3E%3Ccircle cx='160' cy='0' r='8'/%3E%3Crect x='-28.3' y='131.7' width='56.6' height='56.6'/%3E%3Cpath d='M0 120 L40 160 L0 200 L-40 160 Z'/%3E%3Ccircle cx='0' cy='160' r='8'/%3E%3Crect x='131.7' y='131.7' width='56.6' height='56.6'/%3E%3Cpath d='M160 120 L200 160 L160 200 L120 160 Z'/%3E%3Ccircle cx='160' cy='160' r='8'/%3E%3Cpath d='M80 -11 L91 0 L80 11 L69 0 Z'/%3E%3Cpath d='M0 69 L11 80 L0 91 L-11 80 Z'/%3E%3Cpath d='M160 69 L171 80 L160 91 L149 80 Z'/%3E%3Cpath d='M80 149 L91 160 L80 171 L69 160 Z'/%3E%3C/g%3E%3C/svg%3E"); }
.halo { position: absolute; left: 5%; width: 90%; aspect-ratio: 1; top: 8%; border-radius: 50%; pointer-events: none; transform-origin: center 60%;
  background: radial-gradient(closest-side, rgba(242,165,26,.38), rgba(242,165,26,.12) 45%, transparent 72%); }
.portrait { position: absolute; bottom: 4%; left: 7%; width: 91%; z-index: 2; filter: drop-shadow(0 24px 40px var(--ombre-nuit)) drop-shadow(0 0 32px var(--lueur)); }
.portrait img { width: 100%; height: auto; }
.sticker.tajine { --size: 63vw; --rot: -6deg; left: -1%; bottom: 5%; z-index: 4; --sy: 22px; --sb: 30px; }
.sticker.sardines { --size: 26vw; --rot: 8deg; right: -12%; top: -9%; z-index: 3; }
.sticker.persil { --size: 48px; --rot: -14deg; --sy: 6px; --sb: 8px; z-index: 1; }
.hero .persil-a { left: 0; top: -20px; }
.hero .persil-b, .hero .citron, .sticker.sardines { display: none; }
@media (min-width: 768px) {
  .hero .wrap { grid-template-columns: 55fr 45fr; gap: 24px; align-items: end; }
  .hero-copy { padding-block: 48px 120px; }
  .hero-stage { min-height: min(86svh, 900px); }
  .arche { left: 0; right: 0; border-radius: var(--r-arche); height: 86%; }
  .sticker.tajine { --size: 32vw; left: -8%; bottom: 3%; }
  .sticker.sardines { --size: 150px; right: -12%; top: -3%; }
  .hero .persil-b { display: block; --size: 70px; --rot: 22deg; right: 8%; bottom: 32%; z-index: 1; }
  .hero .citron { display: block; --size: 70px; --rot: -30deg; left: 40%; bottom: 22%; z-index: 1; }
}
@media (min-width: 1024px) {
  .hero .wrap { grid-template-columns: 6fr 6fr; gap: 48px; }
  .sticker.tajine { --size: min(380px, 26vw); left: -12%; bottom: 4%; }
  .sticker.sardines { --size: 190px; right: -14%; top: -4%; }
  .hero .persil-a { --size: 90px; left: -30px; top: -10px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-stage { min-height: clamp(480px, 65vw, 660px); }
}

/* ---------- BANDE CHIFFRES / SURFACES NUIT ---------- */
.band { background: var(--bg); color: var(--fg); padding: var(--section-pad) 0; }
.zellige::before { content: ""; position: absolute; inset: -160px 0 0 0; pointer-events: none; opacity: .06; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23FFF8EC' stroke-width='1.2' stroke-linejoin='round'%3E%3Crect x='51.7' y='51.7' width='56.6' height='56.6'/%3E%3Cpath d='M80 40 L120 80 L80 120 L40 80 Z'/%3E%3Ccircle cx='80' cy='80' r='8'/%3E%3Crect x='-28.3' y='-28.3' width='56.6' height='56.6'/%3E%3Cpath d='M0 -40 L40 0 L0 40 L-40 0 Z'/%3E%3Ccircle cx='0' cy='0' r='8'/%3E%3Crect x='131.7' y='-28.3' width='56.6' height='56.6'/%3E%3Cpath d='M160 -40 L200 0 L160 40 L120 0 Z'/%3E%3Ccircle cx='160' cy='0' r='8'/%3E%3Crect x='-28.3' y='131.7' width='56.6' height='56.6'/%3E%3Cpath d='M0 120 L40 160 L0 200 L-40 160 Z'/%3E%3Ccircle cx='0' cy='160' r='8'/%3E%3Crect x='131.7' y='131.7' width='56.6' height='56.6'/%3E%3Cpath d='M160 120 L200 160 L160 200 L120 160 Z'/%3E%3Ccircle cx='160' cy='160' r='8'/%3E%3Cpath d='M80 -11 L91 0 L80 11 L69 0 Z'/%3E%3Cpath d='M0 69 L11 80 L0 91 L-11 80 Z'/%3E%3Cpath d='M160 69 L171 80 L160 91 L149 80 Z'/%3E%3Cpath d='M80 149 L91 160 L80 171 L69 160 Z'/%3E%3C/g%3E%3C/svg%3E"); background-size: 160px 160px; }
.horizon::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--safran); transform-origin: left; z-index: 1; }
.band .wrap { position: relative; z-index: 2; }
#chiffres { padding-top: calc(var(--section-pad) + 24px); }
.stats-grid { display: grid; grid-template-columns: 1fr; margin-top: 32px; }
.stat { padding: 24px 0; border-top: 1px solid var(--line); }
.stat .big { font: 800 clamp(44px, 13vw, 64px)/.95 var(--font-display); color: var(--safran); letter-spacing: -.02em; min-width: 5ch; }
.stat .lab { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 16px; color: var(--creme-88); }
.stat .lab svg { width: 16px; height: 16px; flex: none; stroke: var(--menthe-claire); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fine { margin-top: 28px; font-size: 14px; color: var(--creme-72); }
@media (min-width: 480px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 0 32px; } }
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } .stat { border-top: 0; border-left: 1px solid var(--line); padding: 8px 32px; } .stat:first-child { border-left: 0; padding-left: 0; } .stat .big { font-size: clamp(56px, 6.6vw, 112px); } }

/* ---------- REELS ---------- */
#reels { padding: calc(var(--section-pad) + 40px) 0 var(--section-pad); }
.section-head { display: grid; gap: 20px; align-items: end; margin-bottom: 40px; }
@media (min-width: 900px) { .section-head { grid-template-columns: 1fr 1fr; gap: 48px; } .section-head .h2 { max-width: 14ch; } }
.section-head .lede { color: var(--fg); }
.counter-band { position: sticky; top: var(--header-h); z-index: 5; background: rgba(247,232,208,.94); border-bottom: 1px solid var(--ligne); margin: 0 calc(-1 * var(--gutter)) 24px; padding: 14px var(--gutter);
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 16px; }
.counter-band .mask { display: block; height: 1em; line-height: 1; font-size: clamp(48px, 7vw, 96px); }
.counter-band .cnt { display: block; font: 800 clamp(48px, 7vw, 96px)/1 var(--font-display); color: var(--paprika); letter-spacing: -.03em; min-width: 4ch; }
.counter-band .lab { font: 500 15px/1.3 var(--font-text); color: var(--muted); }
.counter-band .folio { font: 500 12px/1 var(--font-text); color: var(--muted); letter-spacing: .08em; }
.rail { display: grid; gap: 24px; grid-template-columns: 1fr; }
.rail-hero { padding-top: 200px; }
.card { position: relative; display: grid; grid-template-rows: 1fr auto; background: var(--nuit-2); color: var(--creme); border-radius: var(--r-card); border: 1px solid rgba(255,248,236,.10); overflow: visible; transition: box-shadow var(--t-fast); }
.card:hover, .card:focus-within, .card.is-active { box-shadow: 0 0 0 1px rgba(242,165,26,.4); }
.card-media { position: relative; aspect-ratio: 9/16; padding: 10px; border-radius: var(--r-card) var(--r-card) 0 0; overflow: visible; background: var(--nuit); }
.card.hero-card .card-media { aspect-ratio: 9/16; }
.card-media img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.card-media video { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; opacity: 0; transition: opacity 300ms; }
.card.is-playing .card-media video { opacity: 1; }
.card-media::after { display: none; }
.card .sticker { --size: 68%; left: 16%; bottom: calc(100% + 10px); --rot: -4deg; --sy: 18px; --sb: 24px; z-index: 3; }
.card:hover .sticker, .card:focus-within .sticker, .card.is-active .sticker { transform: translate(var(--ox), var(--oy)) rotate(var(--rot)); }
.card:hover .sticker::after, .card.is-active .sticker::after { transform: scale(.94); opacity: .8; }
.card-body { padding: 18px 20px 20px; display: grid; gap: 4px; }
.card .views { font: 800 36px/1 var(--font-display); color: var(--safran); letter-spacing: -.02em; min-width: 5ch; }
.card.hero-card .views { font-size: 44px; }
.card .title { font: 700 22px/1.15 var(--font-display); color: var(--creme); letter-spacing: -.01em; }
.card .date { font-size: 13px; color: var(--creme-72); }
.card .open { font: 700 15px/1 var(--font-text); color: var(--safran); margin-top: 4px; display: inline-flex; gap: 6px; align-items: center; min-height: 40px; }
.card .folio { position: absolute; top: 12px; right: 12px; font: 700 11px/1 var(--font-text); color: var(--creme); letter-spacing: .08em; z-index: 2; background: color-mix(in srgb, var(--nuit) 65%, transparent); padding: 6px 8px; border-radius: 999px; }
.card .tag { position: absolute; top: 12px; left: 14px; z-index: 2; font: 700 11px/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--nuit) 72%, transparent); color: var(--creme); }
.card .tag.ad { background: var(--safran); color: var(--ink); }
.reels-foot { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin-top: 40px; }
.clip-btn { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.clip-btn .mini { width: 56px; aspect-ratio: 9/16; border-radius: 10px; overflow: hidden; flex: none; position: relative; }
.clip-btn .mini img { width: 100%; height: 100%; object-fit: contain; }
.clip-btn .mini::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--nuit) 25%, transparent); }
.clip-btn .mini::before { content: ""; position: absolute; z-index: 1; left: 50%; top: 50%; width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--creme); transform: translate(-40%, -50%); }
@media (max-width: 899px) {
  .rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 0 var(--gutter) 12px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none; }
  .rail.rail-hero { padding-top: 200px; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > .card { flex: 0 0 78vw; max-width: 340px; scroll-snap-align: center; }
  .counter-band { position: static; margin: 0 0 20px; padding: 12px 0; background: none; grid-template-columns: auto 1fr; }
  .counter-band .folio { display: none; }
}
@media (min-width: 900px) { .rail { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .rail-more { grid-template-columns: repeat(4, 1fr); } }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta-txt); opacity: .5; transition: all 200ms; }
.dots i.is-active { width: 10px; height: 10px; background: var(--paprika); opacity: 1; }
@media (min-width: 900px) { .dots { display: none; } }

/* ---------- COLLABS ---------- */
#collabs { background: var(--sable-2); border-radius: 48px 48px 0 0; margin-top: -48px; padding: calc(var(--section-pad) + 24px) 0 var(--section-pad); z-index: 1; }
.collab-grid { display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 900px) { .collab-grid { grid-template-columns: 1fr 1fr; } }
.collab { display: grid; gap: 20px; background: var(--creme); border-radius: var(--r-card); border-left: 4px solid var(--terracotta-vive); box-shadow: 0 12px 32px rgba(43,24,17,.08); padding: 22px; }
@media (min-width: 560px) { .collab { grid-template-columns: 180px 1fr; align-items: start; } }
.collab .medaillon { width: min(42vw, 180px); aspect-ratio: 9/16; border-radius: 16px; overflow: hidden; background: var(--nuit-2); }
.collab .medaillon img { width: 100%; height: 100%; object-fit: contain; }
.badge { display: inline-flex; align-items: center; gap: 6px; font: 700 11px/1 var(--font-text); letter-spacing: .12em; text-transform: uppercase; padding: 8px 12px; border-radius: var(--r-pill); border: 1px solid var(--ink); color: var(--ink); width: fit-content; }
.badge.ad { background: var(--safran); border-color: var(--safran); }
.collab .brand-name { font: 700 28px/1.1 var(--font-display); color: var(--ink); letter-spacing: -.02em; margin-top: 12px; }
.collab .brand-name a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--terracotta-vive); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.collab .brand-name a:hover { color: var(--terracotta-txt); }
.collab .what { font-size: 16px; color: var(--ink); margin-top: 6px; }
.collab .views { font: 800 36px/1 var(--font-display); color: var(--paprika); margin-top: 14px; letter-spacing: -.02em; }
.collab .views small { font: 400 14px/1 var(--font-text); color: var(--muted); margin-left: 8px; }
.collab .open { display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; min-height: 44px; font: 700 15px/1 var(--font-text); color: var(--terracotta-txt); }
.sub-head { display: flex; align-items: center; gap: 14px; margin-top: 44px; font: 500 12px/1 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sub-head::after { content: ""; flex: 1; height: 1px; background: var(--ligne); }
.checks { display: grid; gap: 10px; margin-top: 32px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--fg); }
.on-nuit .checks li { color: var(--creme-88); } .on-nuit .checks svg { stroke: var(--menthe-claire); }
.checks.on-nuit { grid-template-columns: 1fr !important; gap: 12px; }
.checks svg { width: 18px; height: 18px; flex: none; margin-top: 4px; stroke: var(--menthe); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.formats { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (min-width: 720px) { .checks { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

/* ---------- AUDIENCE ---------- */
#audience { padding-top: calc(var(--section-pad) + 8px); }
.aud-grid { display: grid; gap: 40px; margin-top: 24px; }
@media (min-width: 900px) { .aud-grid { grid-template-columns: 7fr 5fr; align-items: center; gap: 64px; } }
.mediakit-portrait { position: relative; width: 100%; max-width: 440px; min-width: 0; margin: 0 auto; filter: drop-shadow(0 20px 28px rgba(20,10,6,.22)); }
.mediakit-portrait img { display: block; width: 100%; height: auto; object-fit: contain; transform: scaleX(-1); transform-origin: center; }

/* ---------- CHEF ---------- */
#chef { background: var(--sable); border-radius: 0 0 48px 48px; padding: calc(var(--section-pad) + 16px) 0 calc(var(--section-pad) + 24px); }
#chef::before { content: ""; position: absolute; top: -48px; left: 0; right: 0; height: 48px; background: var(--nuit); z-index: -1; }
.chef-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .chef-grid { grid-template-columns: 7fr 5fr; align-items: center; gap: 64px; } }
.chef-text { display: grid; gap: 22px; }
.chef-text .lede { max-width: 56ch; }
.dropcap::first-letter { font: 700 3.1em/.85 var(--font-display); color: var(--paprika); float: left; margin: .08em .12em 0 0; }
.quote { font: 700 italic clamp(24px, 2.6vw, 36px)/1.25 var(--font-display); color: var(--ink); border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); padding: 24px 0; letter-spacing: -.01em; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { font: 500 14px/1 var(--font-text); color: var(--ink); border: 1px solid var(--ligne); border-radius: var(--r-pill); padding: 10px 14px; background: var(--creme); }
.arche-2 { position: relative; width: min(84vw, 400px); max-width: 100%; aspect-ratio: 2/3; margin-inline: auto; background: var(--terracotta-vive); border-radius: 220px 220px 24px 24px; overflow: visible; }
.arche-2::before { opacity: .22; filter: drop-shadow(0 1px 0 rgba(75,32,18,.6)); }
.arche-2 .chef-img { position: absolute; z-index: 1; bottom: 0; left: 50%; width: 96%; transform: translateX(-50%); filter: drop-shadow(0 18px 24px rgba(43,24,17,.20)); }
.arche-2 .chef-img img { width: 100%; height: auto; object-fit: contain; -webkit-mask-image: linear-gradient(to bottom, #000 93%, transparent 100%); mask-image: linear-gradient(to bottom, #000 93%, transparent 100%); } /* Fondu uniquement sous le pull ; mains et sandwich conservés. */
.arche-2 .sticker.sardine-a { --size: 26%; --rot: -8deg; left: 2%; bottom: 2%; --sy: 6px; --sb: 10px; }
.arche-2 .sticker.sardine-b { --size: 22%; --rot: 5deg; right: 2%; bottom: 3%; --sy: 6px; --sb: 10px; }

/* ---------- COLLABORER ---------- */
#collaborer { min-height: 70svh; padding: calc(var(--section-pad) + 16px) 0 calc(var(--section-pad) + 40px); }
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 7fr 5fr; align-items: end; gap: 48px; } }
.steps { display: grid; gap: 0; margin-top: 12px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .n { font: 700 40px/1 var(--font-display); color: var(--safran); letter-spacing: -.02em; }
.step .t { font: 500 18px/1.3 var(--font-text); color: var(--creme); }
.step .d { font-size: 15px; color: var(--creme-72); margin-top: 4px; }
.mail-cta { font: 700 clamp(16px, 2.4vw, 20px)/1 var(--font-text); }
.recap { font-size: 14px; color: var(--creme-72); }
.served-stage { position: relative; min-width: 0; margin-top: 8px; }
.served-trio { width: 100%; margin: 0; filter: drop-shadow(0 24px 32px rgba(20,10,6,.24)); }
.served-trio img { display: block; width: 100%; height: auto; object-fit: contain; }
@media (min-width: 900px) { .served-stage { margin-top: 0; align-self: center; } }

/* ---------- FOOTER ---------- */
.footer { background: var(--nuit); color: var(--creme-72); border-top: 1px solid var(--ligne-nuit); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 14px; }
.footer .wrap { display: grid; gap: 28px; }
@media (min-width: 900px) { .footer .wrap { grid-template-columns: 1fr 1fr 1fr; align-items: start; } }
.footer .brand { color: var(--creme); font-size: 20px; }
.footer .brand b { color: var(--safran); }
.footer a { color: var(--creme); display: inline-flex; align-items: center; min-height: 34px; }
.footer a:hover { text-decoration: underline; }
.footer ul { display: grid; gap: 0; }
.footer a { min-height: 34px; }
.footer a.insta { gap: 8px; }
.footer .ig { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }


/* ---------- DIALOG ---------- */
dialog.viewer { border: 0; padding: 0; background: var(--nuit-2); color: var(--creme); border-radius: var(--r-card); max-width: min(92vw, 420px); width: 100%; overflow: hidden; }
dialog.viewer::backdrop { background: color-mix(in srgb, var(--nuit) 74%, transparent); }
dialog.viewer video { width: 100%; max-height: 80svh; background: #000; aspect-ratio: 708/1280; }
dialog.viewer .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
dialog.viewer .cap { font-size: 14px; color: var(--creme-72); }
dialog.viewer .cap a { color: var(--safran); text-decoration: underline; }
dialog.viewer .x { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--creme-72); font-size: 20px; color: var(--creme); flex: none; }
@media (max-width: 480px) { dialog.viewer { max-width: 100vw; max-height: 100svh; border-radius: 0; margin: 0; height: 100svh; } dialog.viewer video { max-height: calc(100svh - 72px); } }


/* ---------- MOTION (uniquement si le visiteur l'accepte) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transition: opacity 500ms var(--ease-pose); transition-delay: calc(var(--i, 0) * 70ms); }
  html.js .reveal.is-in { opacity: 1; transform: none; }
  html.js .horizon::after { opacity: 0; transition: opacity 900ms var(--ease-pose); }
  html.js .horizon.is-in::after { opacity: 1; }
  html.js .hero .mask .line { opacity: 0; animation: fadeIn 600ms var(--ease-pose) forwards; }
  html.js .hero .mask .line1 { animation-delay: 80ms; } html.js .hero .mask .line2 { animation-delay: 220ms; }
  html.js .hero .kicker, html.js .hero .proof, html.js .hero .proof-date, html.js .hero .cta-row, html.js .hero .quiet { animation: fade 400ms var(--ease-pose) both; }
  html.js .hero .cta-row { animation-delay: 300ms; } html.js .hero .quiet { animation-delay: 400ms; }
  html.js .arche { animation: fade 600ms var(--ease-pose) both; }
  html.js .halo { animation: fade 600ms var(--ease-pose) both, breathe 9s ease-in-out 700ms infinite; }
  html.js .portrait { animation: up 700ms var(--ease-pose) 200ms both; }
  html.js .sticker.tajine { animation: fade 700ms var(--ease-pose) 300ms both; }
  html.js .sticker.tajine::after { animation: fade 900ms var(--ease-pose) 300ms both; }
  html.js .sticker.sardines { animation: fade 500ms var(--ease-pose) 450ms both; }
  html.js .sticker.persil, html.js .sticker.citron { animation: fade 500ms var(--ease-pose) 600ms both; }
  html.js .zellige.drift::before { animation: none; }
  html.js .card .sticker { transform: translate(var(--ox), var(--oy)) rotate(var(--rot)); }
  html.js .card.is-in .sticker { transform: translate(var(--ox), var(--oy)) rotate(var(--rot)); }
  html.js .card.is-in:hover .sticker, html.js .card.is-in.is-active .sticker { transform: translate(var(--ox), var(--oy)) rotate(var(--rot)); }
  html.js .counter-band .cnt { transition: opacity 200ms; }
  html.js .counter-band .cnt.out { opacity: 0; transition-duration: 200ms; }
  html.js .counter-band .cnt.in { opacity: 0; transition: none; }
  @supports (animation-timeline: view()) {
    html.js .sticker.served { animation: none; }
  }
}
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes up { from { opacity: 0; } to { opacity: 1; } }
@keyframes light { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .85; } }
@keyframes land { from { opacity: 0; transform: translate(var(--ox), var(--oy)) rotate(var(--rot)) scale(.97); } to { opacity: 1; transform: translate(var(--ox), var(--oy)) rotate(var(--rot)) scale(1); } }
@keyframes settle { from { transform: scale(1.25); opacity: .08; } to { transform: scale(1); opacity: 1; } }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes drift { to { transform: translateY(160px); } }
@keyframes servedIn { from { translate: 0 -8%; } to { translate: 0 0; } }

/* ---------- MEDIA KIT : formulaire ---------- */
dialog.kit { border: 0; padding: 0; background: transparent; max-width: min(92vw, 520px); width: 100%; margin: auto; }
dialog.kit::backdrop { background: rgba(42, 30, 21, .62); backdrop-filter: blur(6px); }
.kit-form { position: relative; background: var(--creme); color: var(--ink); border-radius: 28px; padding: 32px 28px 26px; box-shadow: 0 30px 80px rgba(42,30,21,.35); display: grid; gap: 14px; }
.kit-form .h3 { font: 700 clamp(24px, 4vw, 32px)/1.1 var(--font-display); letter-spacing: -.01em; margin-top: 6px; }
.kit-lede { color: var(--muted); font-size: 15px; line-height: 1.45; }
.kit-form label { display: grid; gap: 6px; font: 500 14px/1.3 var(--font-text); color: var(--muted); }
.kit-form input, .kit-form textarea { font: 400 16px/1.4 var(--font-text); color: var(--ink); background: var(--sable); border: 1px solid var(--sable-2); border-radius: 14px; padding: 12px 14px; width: 100%; }
.kit-form input:focus-visible, .kit-form textarea:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 1px; }
.kit-form .cta-row { margin-top: 6px; }
.kit-hint, .kit-done { font-size: 13px; color: var(--muted); line-height: 1.4; }
.kit-done { color: var(--menthe); font-weight: 600; }
.kit-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--sable-2); color: var(--ink); font: 400 26px/1 var(--font-text); cursor: pointer; }
.kit-close:hover { background: var(--terracotta); color: var(--creme); }
