/* =====================================================================
   ARSÈNE HIKX — Feuille de style
   Charte : sombre profond / orange citrouille / vert poison
   Esprit : géométrique, carré, coins coupés "tech", zéro gadget.
   ===================================================================== */

/* ---------- 1. Variables (change ici les couleurs / tailles globales) ---------- */
:root {
  --bg: #0C0D10;
  --bg-2: #14161B;
  --bg-3: #1B1E25;
  --line: #252932;
  --line-2: #353B47;
  --txt: #F2F3F5;
  --muted: #9BA2AF;
  --orange: #FF7A00;
  --orange-2: #FF9A3D;
  --orange-soft: rgba(255, 122, 0, .12);
  --green: #2EE59D;
  --green-soft: rgba(46, 229, 157, .12);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);

  --maxw: 1360px;
  --gutter: clamp(16px, 4vw, 40px);
  --cut: 14px;          /* taille des coins coupés */
  --header-h: 68px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  background: var(--bg);
  color: var(--txt);
  font: 16px/1.65 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
main { flex: 1; outline: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
::selection { background: var(--orange); color: var(--bg); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--bg); padding: 8px 14px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

/* Coins coupés réutilisables */
.cut   { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.cut-s { clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }

/* ---------- 3. Boutons, tags, labels ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .02em; text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background .18s, color .18s, transform .18s cubic-bezier(.2,.7,.2,1);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .06s; }
.btn__arrow { display: inline-block; transition: transform .2s cubic-bezier(.2,.7,.2,1); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--block { justify-content: center; width: 100%; }
.btn--primary { background: var(--orange); color: var(--bg); }
.btn--primary:hover { background: var(--orange-2); }
.btn--ghost { background: var(--bg-3); color: var(--txt); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { background: var(--line); }
.btn--green { background: var(--green); color: var(--bg); }
.btn--sm { padding: 10px 16px; font-size: 13px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: var(--bg-3); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2);
}
.tag--orange { color: var(--orange); background: var(--orange-soft); box-shadow: inset 0 0 0 1px rgba(255,122,0,.35); }
.tag--green  { color: var(--green);  background: var(--green-soft);  box-shadow: inset 0 0 0 1px rgba(46,229,157,.35); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section__title { font-size: clamp(30px, 4vw, 48px); margin-top: 10px; }
.section__sub { color: var(--muted); max-width: 560px; margin-top: 10px; }
.link-arrow { font-family: var(--display); font-weight: 700; color: var(--orange); text-transform: uppercase; font-size: 14px; letter-spacing: .06em; }
.link-arrow:hover { color: var(--orange-2); }
.link-arrow::after { content: " →"; }

/* ---------- 4. Barre de navigation ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 13, 16, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar { transition: box-shadow .25s, background .25s; }
.topbar.scrolled { box-shadow: 0 10px 30px rgba(0,0,0,.35); background: rgba(12,13,16,.94); }
.topbar__inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--orange); color: var(--bg);
  font-family: var(--display); font-weight: 700; font-size: 15px;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}
.brand__name { font-family: var(--display); font-weight: 700; letter-spacing: .08em; font-size: 17px; }
.brand__name b { color: var(--orange); margin-left: 6px; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; height: var(--header-h);
  font-size: 14px; font-weight: 600; color: var(--muted);
  transition: color .15s;
}
.nav a:hover { color: var(--txt); }
.nav a[aria-current="page"] { color: var(--txt); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; background: var(--orange);
}
.nav .soon {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 6px; color: var(--green); box-shadow: inset 0 0 0 1px rgba(46,229,157,.45);
}
.topbar__cta { flex: none; }

.burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--txt); transition: transform .2s, opacity .2s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 5. Accueil : hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { /* grille géométrique de fond */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
}
.hero::after { /* halo orange discret */
  content: ""; position: absolute; width: 640px; height: 640px; right: -160px; top: -220px; pointer-events: none;
  background: radial-gradient(circle, rgba(255,122,0,.16), transparent 65%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
}
.hero h1 { font-size: clamp(44px, 6.4vw, 92px); line-height: .95; margin: 18px 0 22px; text-transform: uppercase; }
.hero h1 .o { color: var(--orange); }
.hero h1 .strike { position: relative; color: var(--muted); white-space: nowrap; }
.hero h1 .strike::after { content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: .09em; background: var(--green); transform: rotate(-4deg); }
.hero__lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 520px; }
.hero__lead strong { color: var(--txt); }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero__stats { display: flex; gap: 36px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.stat b { display: block; font-family: var(--display); font-size: 32px; line-height: 1; color: var(--txt); }
.stat b em { font-style: normal; color: var(--orange); }
.stat span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.hero__video { position: relative; }
.hero__video::before { /* cadre décalé géométrique */
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid rgba(255,122,0,.45);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.hero__video .video { --cut: 22px; }
.hero__label { position: absolute; left: 0; bottom: -44px; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.hero__label i { width: 8px; height: 8px; background: var(--green); display: inline-block; }

/* ---------- 6. Lecteur vidéo YouTube (façade légère, chargée au clic) ---------- */
.video {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  background: var(--bg-3) center / cover no-repeat;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  overflow: hidden;
}
.video--short {
  aspect-ratio: 9 / 16;
  width: min(100%, calc(min(58vh, 600px) * 9 / 16));
  margin-inline: auto;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, transparent 40%, rgba(12,13,16,.7));
  transition: background .2s;
}
.video__play span {
  width: 76px; height: 76px; display: grid; place-items: center; background: var(--orange);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: transform .2s, background .2s;
}
.video__play span::after { content: ""; border-left: 22px solid var(--bg); border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }
.video:hover .video__play span { transform: scale(1.06); background: var(--orange-2); }
.video__title { position: absolute; left: 18px; bottom: 14px; right: 18px; font-weight: 600; font-size: 15px; text-align: left; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.video--empty {
  display: grid; place-items: center; text-align: center;
  background:
    repeating-linear-gradient(135deg, rgba(255,122,0,.06) 0 14px, transparent 14px 28px),
    var(--bg-3);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.video--empty strong { display: block; font-family: var(--display); font-size: 18px; color: var(--orange); }
.video--empty small { color: var(--muted); font-size: 13px; }

/* ---------- 7. Emplacements photo (avec placeholder automatique) ---------- */
.media {
  position: relative; overflow: hidden; background: var(--bg-3);
  aspect-ratio: 4 / 3;
}
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.media__ph { /* visible si pas de photo ou photo introuvable */
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px;
  background:
    linear-gradient(135deg, var(--ph-a, rgba(255,122,0,.22)), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 2px, transparent 2px 16px),
    var(--bg-3);
}
.media__ph span { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5vw, 64px); color: rgba(255,255,255,.12); letter-spacing: -.02em; }
.media__ph small { position: absolute; left: 12px; bottom: 10px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.media--green { --ph-a: rgba(46,229,157,.2); }

/* ---------- 8. Cartes recettes ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .2s, opacity .16s;
}
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--orange); }
.card:hover .media img { transform: scale(1.05); }
.card:active { transform: translateY(-1px); }
.card__media { position: relative; overflow: hidden; }
.card__more {
  font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--orange); display: inline-flex; gap: 6px; align-items: center;
}
.card__more::after { content: "→"; transition: transform .2s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__more::after { transform: translateX(5px); }
/* Transition nette lors d'un changement de filtre / recherche */
.grid.is-swapping .card { opacity: 0; transform: translateY(8px) scale(.985); }
[hidden] { display: none !important; }
.count { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin: -12px 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card__badges { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; gap: 6px; }
.card__badges .tag { background: rgba(12,13,16,.85); backdrop-filter: blur(4px); }
.card__video { position: absolute; top: 12px; right: 12px; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center; background: var(--orange); }
.card__video::after { content: ""; border-left: 10px solid var(--bg); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__title { font-size: 21px; }
.card__desc { color: var(--muted); font-size: 14px; flex: 1; }
.macros { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); padding-top: 14px; gap: 4px; }
.macros div { text-align: center; }
.macros b { display: block; font-family: var(--display); font-size: 18px; line-height: 1.1; }
.macros span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.macros .k b { color: var(--orange); }
.macros .p b { color: var(--green); }

/* ---------- 9. Démarche (piliers) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { background: var(--bg); padding: 28px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .25s cubic-bezier(.2,.7,.2,1); }
.pillar:hover { box-shadow: inset 0 0 0 1px var(--green); transform: translateY(-3px); }
.pillar__num { font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--orange); letter-spacing: .1em; }
.pillar h3 { font-size: 24px; margin: 14px 0 10px; }
.pillar p { color: var(--muted); }
.pillar__icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-size: 22px; float: right; }

/* ---------- 10. Blog ---------- */
.posts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.posts__side { display: grid; gap: 20px; }
.post { display: grid; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.post:hover { box-shadow: inset 0 0 0 1px var(--orange); }
.posts--even { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.post { transition: box-shadow .2s, transform .25s cubic-bezier(.2,.7,.2,1); }
.post:hover { transform: translateY(-3px); }
.post .media img { transition: transform .4s; }
.post:hover .media img { transform: scale(1.04); }
.post--big .media { aspect-ratio: 16 / 8; }
.post--row { grid-template-columns: 180px 1fr; }
.post--row .media { aspect-ratio: auto; height: 100%; min-height: 140px; }
.post__body { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.post__meta { font-size: 13px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.post__meta .tag { padding: 2px 8px; }
.post h3 { font-size: 22px; }
.post--big h3 { font-size: clamp(24px, 2.6vw, 34px); }
.post p { color: var(--muted); font-size: 15px; }

.article { max-width: 760px; margin: 0 auto; }
.article__cover { margin: 32px 0 40px; }
.article__cover .media { aspect-ratio: 16 / 8; }
.article h1 { font-size: clamp(34px, 5vw, 56px); margin: 16px 0; }
.prose { font-size: 18px; color: #D7DAE0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 30px; color: var(--txt); margin-top: 1.8em; }
.prose h3 { font-size: 22px; color: var(--txt); margin-top: 1.5em; }
.prose strong { color: var(--txt); }
.prose a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--orange); }
.prose blockquote { border-left: 3px solid var(--green); padding: 6px 0 6px 20px; font-family: var(--display); font-size: 22px; color: var(--txt); }

/* ---------- 11. Catalogue recettes : filtres ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 32px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.page-head h1 { font-size: clamp(38px, 5.4vw, 72px); text-transform: uppercase; margin-top: 12px; }
.page-head h1 span { color: var(--orange); }
.page-head p { color: var(--muted); max-width: 620px; margin-top: 12px; font-size: 17px; }
.filters { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 32px 0 28px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 16px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  background: var(--bg-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: all .15s;
}
.chip:hover { color: var(--txt); box-shadow: inset 0 0 0 1px var(--muted); }
.chip[aria-pressed="true"] { background: var(--orange); color: var(--bg); box-shadow: none; }
.search { position: relative; min-width: min(320px, 100%); }
.search input {
  width: 100%; padding: 12px 16px 12px 42px; font: inherit; font-size: 15px;
  background: var(--bg-2); color: var(--txt); border: 0; box-shadow: inset 0 0 0 1px var(--line-2); outline: none;
}
.search input:focus { box-shadow: inset 0 0 0 1px var(--orange); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- 12. Fiche recette détaillée ---------- */
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; padding-top: 28px; }
.crumbs a:hover { color: var(--orange); }
.recipe__head { padding: 18px 0 28px; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.recipe__head h1 { font-size: clamp(34px, 4.6vw, 60px); margin: 14px 0 12px; max-width: 900px; }
.recipe__head p { color: var(--muted); font-size: 18px; max-width: 720px; }
.jump { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.jump a { font-size: 13px; font-weight: 600; padding: 7px 12px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); transition: color .15s, box-shadow .15s; }
.jump a:hover { color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.recipe__times { display: flex; gap: 10px; flex-wrap: wrap; }
.time { padding: 12px 18px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); text-align: center; min-width: 96px; }
.time b { display: block; font-family: var(--display); font-size: 22px; line-height: 1.1; }
.time span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.recipe {
  display: grid; gap: 28px 40px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  grid-template-areas: "photo side" "body side";
  padding-bottom: 96px;
}
.recipe__photo { grid-area: photo; }
.recipe__photo .media { aspect-ratio: 16 / 10; }
.recipe__side { grid-area: side; align-self: start; position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.recipe__body { grid-area: body; display: grid; gap: 40px; }

.panel { background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); padding: 22px 24px; }
.panel__title { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-family: var(--display); margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.macro-big { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.macro-big div { background: var(--bg); padding: 14px 8px; text-align: center; box-shadow: inset 0 0 0 1px var(--line); }
.macro-big b { display: block; font-family: var(--display); font-size: 26px; line-height: 1.1; }
.macro-big span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.macro-big .k b { color: var(--orange); }
.macro-big .p b { color: var(--green); }
.macro-big--5 { grid-template-columns: repeat(5, 1fr); gap: 6px; }
.macro-big--5 b { font-size: 20px; }
.totals { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.totals__label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.totals__row { display: flex; flex-wrap: wrap; gap: 6px; }
.totals__row span { padding: 5px 9px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }
.totals__row b { font-weight: 600; }
.totals__row span:first-child b { color: var(--orange); }
.totals__row span:nth-child(2) b { color: var(--green); }
.micros { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.micro { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--bg-2); box-shadow: inset 3px 0 0 var(--green), inset 0 0 0 1px var(--line); transition: transform .2s cubic-bezier(.2,.7,.2,1); }
.micro:hover { transform: translateY(-2px); }
.micro b { font-family: var(--display); font-size: 16px; }
.micro span { font-size: 13px; color: var(--green); }
.micro small { font-size: 13px; color: var(--muted); }
.micro--watch { box-shadow: inset 3px 0 0 var(--orange), inset 0 0 0 1px var(--line); }
.micro--watch span { color: var(--orange); }
.macro-bar { display: flex; height: 6px; margin-top: 14px; gap: 2px; }
.macro-bar i { display: block; height: 100%; }
.macro-legend { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.macro-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; }

.block-title { font-size: clamp(26px, 3vw, 34px); display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.block-title::before { content: ""; width: 12px; height: 12px; background: var(--orange); flex: none; }
.lead-text { font-size: 18px; color: #D7DAE0; }

.servings { display: inline-flex; align-items: center; box-shadow: inset 0 0 0 1px var(--line-2); }
.servings button { width: 36px; height: 36px; font-size: 18px; font-weight: 700; color: var(--orange); }
.servings button:hover { background: var(--bg-3); }
.servings output { min-width: 92px; text-align: center; font-size: 14px; font-weight: 600; }

.ingredients { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ingredients li {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; user-select: none;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); transition: all .15s;
}
.ingredients li:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.ingredients li::before { content: ""; width: 16px; height: 16px; flex: none; box-shadow: inset 0 0 0 2px var(--line-2); transition: all .15s; }
.ingredients li b { color: var(--orange); font-weight: 700; white-space: nowrap; }
.ingredients li[aria-checked="true"] { opacity: .45; text-decoration: line-through; }
.ingredients li[aria-checked="true"]::before { background: var(--green); box-shadow: none; transform: scale(.85); }
.ingredients li:active { transform: scale(.99); }
.ing-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.ing-head .block-title { margin: 0; }
.hint { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.servings button:disabled { opacity: .3; cursor: default; background: none; }
.servings output { display: inline-block; }

.steps { list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li {
  counter-increment: s; position: relative; padding: 20px 22px 20px 78px; min-height: 72px;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); color: #D7DAE0;
}
.steps li { cursor: pointer; transition: opacity .2s, box-shadow .2s; }
.steps li:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.steps li.done { opacity: .45; }
.steps li.done::before { color: var(--green); }
.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 20px; top: 18px;
  font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--orange); line-height: 1;
}
.tip { padding: 20px 22px; background: var(--green-soft); box-shadow: inset 3px 0 0 var(--green); color: #D7DAE0; }
.tip strong { color: var(--green); font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; display: block; margin-bottom: 4px; }

.related { border-top: 1px solid var(--line); }

/* ---------- 13. Sport (bientôt disponible) ---------- */
.soon-page { position: relative; overflow: hidden; min-height: calc(100vh - var(--header-h) - 200px); display: grid; place-items: center; text-align: center; padding: 80px 0; }
.soon-page::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(46,229,157,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(46,229,157,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 70%);
}
.soon-page > * { position: relative; }
.soon-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; color: var(--green); box-shadow: inset 0 0 0 1px rgba(46,229,157,.5); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.soon-badge i { width: 8px; height: 8px; background: var(--green); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.soon-page h1 { font-size: clamp(48px, 9vw, 120px); text-transform: uppercase; margin: 24px 0 16px; }
.soon-page h1 span { color: var(--green); }
.soon-page p { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 18px; }
.soon-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 48px auto 36px; max-width: 900px; text-align: left; }
.soon-list div { padding: 20px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.soon-list b { display: block; font-family: var(--display); font-size: 18px; margin-bottom: 6px; }
.soon-list span { color: var(--muted); font-size: 14px; }
.progress { max-width: 420px; margin: 0 auto 32px; }
.progress__bar { height: 6px; background: var(--bg-3); }
.progress__bar i { display: block; height: 100%; background: var(--green); }
.progress small { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- 14. À propos & liens ---------- */
.about { display: grid; grid-template-columns: 420px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; padding-block: clamp(48px, 7vw, 88px); }
.about__photo .media { aspect-ratio: 4 / 5; }
.about h1 { font-size: clamp(38px, 5vw, 64px); margin: 14px 0 20px; text-transform: uppercase; }
.about h1 span { color: var(--orange); }
.socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.social {
  display: flex; flex-direction: column; gap: 10px; padding: 22px;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); transition: all .2s;
}
.social:hover { box-shadow: inset 0 0 0 1px var(--orange); transform: translateY(-3px); }
.social svg { width: 30px; height: 30px; fill: var(--orange); }
.social b { font-family: var(--display); font-size: 20px; }
.social span { color: var(--muted); font-size: 14px; }
.social em { font-style: normal; color: var(--green); font-weight: 600; font-size: 14px; margin-top: auto; }
.social--main { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 20px; background: var(--orange); color: var(--bg); box-shadow: none; }
.social--main svg { fill: var(--bg); width: 48px; height: 48px; flex: none; }
.social--main span, .social--main em { color: rgba(12,13,16,.75); }
.social--main div { flex: 1; }
.social--main:hover { box-shadow: none; background: var(--orange-2); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin-top: 32px; box-shadow: 0 0 0 1px var(--line); }
.facts div { background: var(--bg); padding: 18px; }
.facts b { display: block; font-family: var(--display); font-size: 15px; color: var(--orange); text-transform: uppercase; letter-spacing: .08em; }
.facts span { color: var(--muted); font-size: 14px; }
.facts a { color: var(--txt); }
.facts a:hover { color: var(--orange); }

/* ---------- 15. Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px 0 32px; }
.footer__top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__tag { color: var(--muted); max-width: 340px; margin-top: 14px; font-size: 14px; }
.footer__links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer__links h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer__links a { display: block; font-size: 14px; padding: 4px 0; }
.footer__links a:hover { color: var(--orange); }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- 16. Micro-animations (transform + opacity uniquement) ----------
   .reveal : l'élément apparaît en douceur quand il entre à l'écran (une seule fois).
   La classe "js" est posée par la page : sans JavaScript, tout reste visible. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}

/* Barres de macros / progression qui se remplissent */
.macro-bar i, .progress__bar i { width: var(--w); transform-origin: left; animation: grow .9s .25s cubic-bezier(.2,.7,.2,1) both; }
@keyframes grow { from { transform: scaleX(0); } }

/* Quantités qui "rebondissent" quand on change le nombre de portions */
.bump { display: inline-block; animation: bump .35s cubic-bezier(.2,.7,.2,1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.18); color: var(--green); } 100% { transform: scale(1); } }

/* Vidéo : fondu à l'ouverture du lecteur */
.video.is-playing { animation: fade .3s ease both; }
@keyframes fade { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 17. Responsive ---------- */
/* Très grands écrans / 21:9 : on élargit un peu le contenu */
@media (min-width: 2200px) {
  :root { --maxw: 1680px; }
  body { font-size: 17px; }
}

@media (max-width: 1180px) {
  .topbar__cta span { display: none; }
  .nav a { padding: 10px 10px; font-size: 13px; }
  .recipe { grid-template-columns: minmax(0, 1fr) 380px; }
}

@media (max-width: 980px) {
  :root { --header-h: 60px; }
  .burger { display: block; }
  .topbar__cta { margin-left: auto; }
  .burger { margin-left: 0; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .2s, opacity .2s, visibility 0s .2s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .25s cubic-bezier(.2,.7,.2,1), opacity .2s; }
  .nav a { opacity: 0; transform: translateX(-8px); transition: opacity .2s, transform .2s, color .15s; }
  .nav.open a { opacity: 1; transform: none; }
  .nav.open a:nth-child(2) { transition-delay: 40ms; }
  .nav.open a:nth-child(3) { transition-delay: 80ms; }
  .nav.open a:nth-child(4) { transition-delay: 120ms; }
  main, .footer { transition: opacity .25s; }
  body.menu-open main, body.menu-open .footer { opacity: .35; }
  .nav a { height: auto; padding: 16px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { color: var(--orange); }
  .nav a[aria-current="page"]::after { display: none; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__video { margin-right: 18px; }
  .hero__label { position: static; margin-top: 30px; }
  .pillars { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }

  .recipe { grid-template-columns: 1fr; grid-template-areas: "photo" "side" "body"; }
  .recipe__side { position: static; }

  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; }
  .soon-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar__cta { display: none; }
  .burger { margin-left: auto; }
  .brand__name { font-size: 15px; }
  .hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .hero__stats { gap: 24px; }
  .stat b { font-size: 26px; }
  .btn { padding: 13px 18px; font-size: 14px; }
  .hero__cta .btn { flex: 1; justify-content: center; }
  .grid { grid-template-columns: 1fr; }
  .post--row { grid-template-columns: 110px 1fr; }
  .post__body { padding: 16px; }
  .post--row p { display: none; }
  .ingredients { grid-template-columns: 1fr; }
  .steps li { padding: 54px 18px 18px; }
  .steps li::before { left: 18px; top: 18px; font-size: 22px; }
  .macro-big b { font-size: 21px; }
  .macro-big--5 { gap: 4px; }
  .macro-big--5 div { padding: 12px 2px; }
  .macro-big--5 b { font-size: 16px; }
  .macro-big--5 span { font-size: 9px; letter-spacing: .02em; }
  .panel { padding: 18px; }
  .socials { grid-template-columns: 1fr; }
  .social--main { flex-direction: column; align-items: flex-start; }
  .facts { grid-template-columns: 1fr; }
  .filters { flex-direction: column; align-items: stretch; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .chip { flex: none; }
  .prose { font-size: 17px; }
}

/* =====================================================================
   18. VERSION 3 — logo, accueil, réseaux, recettes à venir, fiche recette
   (ces règles complètent / remplacent les précédentes)
   ===================================================================== */

/* ---------- Logo ---------- */
.brand__logo { height: 36px; width: auto; flex: none; filter: drop-shadow(0 2px 8px rgba(255,122,0,.25)); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.brand:hover .brand__logo { transform: rotate(-4deg) scale(1.06); }
.footer .brand__logo { height: 42px; }
.footer__social { display: flex; gap: 8px; margin-top: 18px; }
.footer__social a { width: 40px; height: 40px; display: grid; place-items: center; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s, transform .2s; }
.footer__social a:hover { box-shadow: inset 0 0 0 1px var(--orange); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; fill: var(--orange); }

/* ---------- Navigation "pilule" (ordinateur) ---------- */
@media (min-width: 981px) {
  .nav {
    margin-left: auto; padding: 4px; gap: 2px; align-self: center;
    background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  }
  .nav a { height: auto; padding: 9px 14px; transition: color .15s, background .15s; }
  .nav a:hover { background: var(--bg-3); }
  .nav a[aria-current="page"] { background: var(--orange-soft); color: var(--orange); }
  .nav a[aria-current="page"]::after { display: none; }
}

/* ---------- Pastilles macros ---------- */
.pill { display: inline-flex; align-items: center; padding: 4px 10px; font-size: 12px; font-weight: 700; letter-spacing: .02em; background: rgba(12,13,16,.82); color: var(--txt); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(4px); white-space: nowrap; }
.pill--p { color: var(--bg); background: var(--green); box-shadow: none; }
.pill--k { color: var(--bg); background: var(--orange); box-shadow: none; }
.card__pills { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Héros : visuel à droite avec coins géométriques ---------- */
.hero__visual { position: relative; padding: 14px; }
.hero__visual .hero__label { left: 14px; }
.corner { position: absolute; width: 64px; height: 64px; pointer-events: none; z-index: 2; }
.corner--tl { top: 0; left: 0; border-top: 3px solid var(--orange); border-left: 3px solid var(--orange); }
.corner--br { right: 0; bottom: 0; border-right: 3px solid var(--green); border-bottom: 3px solid var(--green); }
.feature { position: relative; display: block; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2); --cut: 22px; }
.feature .media { aspect-ratio: 4 / 3; }
.feature .media img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.feature:hover .media img { transform: scale(1.04); }
.feature__info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 56px 22px 20px;
  display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(180deg, transparent, rgba(12,13,16,.92) 55%);
}
.feature__kicker { font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.feature__info b { font-family: var(--display); font-size: clamp(20px, 2vw, 28px); line-height: 1.15; }
.feature__pills { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Accueil : recettes + colonne réseaux ---------- */
.home-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.home-split__side { align-self: stretch; }
.home-split > * { min-width: 0; }
.grid--home { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.chips--links { margin: -12px 0 24px; }
.chips--links .chip { display: inline-block; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.center-cta { display: flex; justify-content: center; margin-top: 36px; }

/* ---------- Bloc "Suis-moi" ---------- */
.follow { background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); padding: 20px; display: grid; gap: 14px; }
.follow--sticky { position: sticky; top: calc(var(--header-h) + 20px); }
.follow__head { display: flex; align-items: center; gap: 12px; }
.follow__logo { height: 34px; width: auto; flex: none; }
.follow__head b { display: block; font-family: var(--display); font-size: 20px; }
.follow__head span { font-size: 13px; color: var(--muted); }
.follow__yt, .follow__row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s;
}
.follow__yt:hover, .follow__row:hover { box-shadow: inset 0 0 0 1px var(--orange); transform: translateX(2px); }
.follow__yt svg, .follow__row svg { width: 24px; height: 24px; fill: var(--orange); flex: none; }
.follow__yt span, .follow__row span { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.follow__yt small, .follow__row small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.follow__row em { font-style: normal; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 6px 12px; color: var(--bg); background: var(--orange); }
.follow__row:nth-child(even) em { background: var(--green); }
.follow__label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.follow__video .video { --cut: 10px; }
.follow__list { display: grid; gap: 8px; }
/* Variante large (fin de recette, article, à propos) */
.follow--wide { grid-template-columns: 1.2fr 1fr; align-items: start; }
.follow--wide .follow__head, .follow--wide .follow__yt { grid-column: 1 / -1; }
.follow--wide .follow__video { grid-row: span 3; }

/* ---------- Cartes "Recettes à venir" ---------- */
.soon-card { position: relative; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .2s; }
.soon-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--green); }
.soon-card__media { position: relative; overflow: hidden; }
.soon-card__media img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.soon-card:hover .soon-card__media img { transform: scale(1.05); }
.soon-card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--bg); background: var(--green);
}
.soon-card__badge i { width: 7px; height: 7px; background: var(--bg); animation: blink 1.4s steps(2) infinite; }
.soon-card__body { padding: 16px 18px 18px; }
.soon-card__body h3 { font-size: 19px; }
.soon-card__body p { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- Catalogue : tri ---------- */
.filters__right { display: flex; gap: 10px; flex-wrap: wrap; }
.sort select {
  appearance: none; -webkit-appearance: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--txt);
  padding: 12px 40px 12px 14px; background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23FF7A00' stroke-width='2.5'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  border: 0; box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; outline: none;
}
.sort select:focus { box-shadow: inset 0 0 0 1px var(--orange); }
.sort option { background: var(--bg-2); }

/* ---------- Fiche recette : nouvelle disposition ---------- */
.recipe { grid-template-areas: "photo side" "bar side" "body side"; row-gap: 20px; }
.recipe__body { margin-top: 12px; }
.recipe__bar {
  grid-area: bar; position: sticky; top: calc(var(--header-h) + 10px); z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 12px; background: rgba(20,22,27,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 10px 30px rgba(0,0,0,.25);
}
.recipe__bar .servings { box-shadow: none; gap: 4px; }
.servings__label { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.recipe__bar .servings button { width: 40px; height: 40px; font-size: 20px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .15s, transform .1s; }
.recipe__bar .servings button:hover:not(:disabled) { background: var(--orange); color: var(--bg); }
.recipe__bar .servings button:active:not(:disabled) { transform: scale(.94); }
.recipe__bar .servings output { min-width: 52px; height: 40px; display: inline-grid; place-items: center; font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--bg); background: var(--green); }
.tools { display: flex; gap: 6px; flex-wrap: wrap; }
.tool {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 13px; font-weight: 600; color: var(--muted);
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); transition: color .15s, box-shadow .15s, transform .15s;
}
.tool svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.tool:hover { color: var(--txt); box-shadow: inset 0 0 0 1px var(--orange); transform: translateY(-1px); }
.tool[aria-pressed="true"] { color: var(--bg); background: var(--green); box-shadow: none; }

.panel__title small { font-size: 12px; letter-spacing: .04em; text-transform: none; color: var(--green); font-family: var(--font); font-weight: 600; }
.seg { display: inline-flex; box-shadow: inset 0 0 0 1px var(--line-2); }
.seg button { padding: 6px 10px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: background .15s, color .15s; }
.seg button[aria-pressed="true"] { background: var(--orange); color: var(--bg); }
.macro-big b { font-variant-numeric: tabular-nums; }
.macro-note { margin-top: 12px; font-size: 12px; color: var(--muted); }
.ing-for { font-size: 13px; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: .08em; }
.ing-head { margin-bottom: 4px; }

/* ---------- Mode cuisine : grandes étapes lisibles de loin ---------- */
body.cook-mode .steps li { font-size: 21px; line-height: 1.5; padding-top: 24px; padding-bottom: 24px; }
body.cook-mode .ingredients li { font-size: 18px; }
body.cook-mode .recipe__photo { display: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; font-weight: 600; font-size: 14px; color: var(--bg); background: var(--green);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: opacity .2s, transform .25s cubic-bezier(.2,.7,.2,1);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- À propos : logo en grand si pas de portrait ---------- */
.about__logo { aspect-ratio: 4 / 5; display: grid; place-items: center; background:
  radial-gradient(circle at 50% 45%, rgba(255,122,0,.18), transparent 60%),
  repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 2px, transparent 2px 16px), var(--bg-2); }
.about__logo-img { width: 66%; height: auto; filter: drop-shadow(0 12px 30px rgba(255,122,0,.3)); }

/* ---------- Responsive V3 ---------- */
@media (max-width: 1180px) {
  .home-split { grid-template-columns: minmax(0, 1fr) 300px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .tool span { display: none; }
}
@media (max-width: 980px) {
  .home-split { grid-template-columns: minmax(0, 1fr); }
  .follow--sticky { position: static; }
  .home-split__side .follow { grid-template-columns: 1fr 1fr; }
  .home-split__side .follow__head, .home-split__side .follow__yt, .home-split__side .btn { grid-column: 1 / -1; }
  .recipe { grid-template-areas: "photo" "bar" "side" "body"; }
  .recipe__bar { top: calc(var(--header-h) + 6px); }
  .tool span { display: inline; }
}
@media (max-width: 640px) {
  .brand__logo { height: 30px; }
  .grid--4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .soon-card__body { padding: 12px; }
  .soon-card__body h3 { font-size: 16px; }
  .soon-card__body p { display: none; }
  .home-split__side .follow, .follow--wide { grid-template-columns: 1fr; }
  .follow--wide .follow__video { grid-row: auto; }
  .filters__right { flex-direction: column; }
  .recipe__bar { padding: 8px; }
  .servings__label { display: none; }
  .tool { padding: 9px 10px; }
  .tool span { display: none; }
  .hero__visual { padding: 10px; }
  .corner { width: 44px; height: 44px; }
  .seg button { padding: 6px 8px; }
  body.cook-mode .steps li { font-size: 19px; }
}

/* ---------- Impression : la recette seule, en noir sur blanc ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; color: #000 !important; font-size: 12pt; }
  .topbar, .footer, .recipe__bar, .video, .related, .follow, .jump, .crumbs, .hint, .toast, .btn, .seg, .macro-bar, .macro-legend, .macro-note, #a-venir { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .recipe { display: block !important; padding: 0 !important; }
  .recipe__photo { max-width: 60%; margin-bottom: 12px; }
  .recipe__side { position: static !important; }
  .panel, .ingredients li, .steps li, .micro, .tip, .time { background: #fff !important; box-shadow: none !important; border: 1px solid #ccc; color: #000 !important; clip-path: none !important; }
  .recipe__head h1, .block-title, .macro-big b, .steps li::before, .ingredients li b { color: #000 !important; }
  .ingredients { grid-template-columns: 1fr 1fr; }
  .steps li, .micro { break-inside: avoid; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Fenêtre "liste de courses" (secours si copie bloquée) ---------- */
.list-dialog { margin: auto; width: min(520px, 92vw); padding: 24px; border: 0; color: var(--txt); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.list-dialog::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(3px); }
.list-dialog h2 { font-size: 24px; margin-bottom: 6px; }
.list-dialog p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.list-dialog textarea { width: 100%; font: 14px/1.5 var(--font); color: var(--txt); background: var(--bg); border: 0; box-shadow: inset 0 0 0 1px var(--line-2); padding: 12px; resize: vertical; }
.list-dialog form { display: flex; justify-content: flex-end; margin-top: 14px; }

/* Les filtres ne doivent jamais élargir la page sur mobile */
.filters > *, .chips { min-width: 0; max-width: 100%; }

/* =====================================================================
   19. VERSION 3.1 — vidéo automatique, onglet d'abonnement, boutons sous la vidéo
   ===================================================================== */

/* ---------- Bouton "Activer le son" sur la vidéo qui tourne en muet ---------- */
.video__sound {
  position: absolute; left: 50%; bottom: 16px; z-index: 3; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; white-space: nowrap;
  font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--bg); background: var(--orange); box-shadow: 0 8px 24px rgba(0,0,0,.45);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  animation: soundPulse 2.2s ease-in-out infinite;
}
.video__sound:hover { background: var(--orange-2); }
@keyframes soundPulse { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.06); } }

/* ---------- Boutons sous la vidéo de la recette ---------- */
.side-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.side-cta .btn { justify-content: center; padding-inline: 12px; }

/* ---------- Onglet d'abonnement fixé à droite ---------- */
.subtab { position: fixed; right: 0; top: 50%; z-index: 60; transform: translate(110%, -50%); transition: transform .35s cubic-bezier(.2,.7,.2,1); display: flex; align-items: center; }
.subtab.visible { transform: translate(calc(100% - 46px), -50%); }
.subtab.open { transform: translate(0, -50%); }
.subtab__handle {
  width: 46px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0;
  color: var(--bg); background: var(--orange); box-shadow: -6px 6px 24px rgba(0,0,0,.4);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  transition: background .2s;
}
.subtab__handle:hover { background: var(--orange-2); }
.subtab__handle svg { width: 22px; height: 22px; fill: currentColor; }
.subtab__handle span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.subtab__panel {
  position: relative; width: 300px; padding: 20px; display: grid; gap: 14px;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2), -12px 12px 40px rgba(0,0,0,.5);
}
.subtab__close { position: absolute; top: 6px; right: 10px; font-size: 24px; line-height: 1; color: var(--muted); padding: 4px; }
.subtab__close:hover { color: var(--orange); }
.subtab__panel .follow__head { padding-right: 22px; }

@media (max-width: 640px) {
  /* Sur téléphone : petit bouton rond en bas à droite au lieu d'un onglet vertical */
  .subtab { top: auto; bottom: 16px; transform: translateX(130%); align-items: flex-end; }
  .subtab.visible { transform: translateX(calc(100% - 64px)); }
  .subtab.open { transform: translateX(-8px); }
  .subtab__handle { width: 52px; height: 52px; padding: 0; justify-content: center; margin-right: 8px; border-radius: 50%; clip-path: none; }
  .subtab__handle span { display: none; }
  .subtab.open .subtab__handle { display: none; }
  .subtab__panel { width: min(320px, calc(100vw - 32px)); }
  .side-cta { grid-template-columns: 1fr; }
}
@media print { .subtab, .video__sound { display: none !important; } }

/* =====================================================================
   20. VERSION 3.2 — en-tête réseaux (YouTube / TikTok / Instagram) + onglet plus bas
   ===================================================================== */
.socialbar { background: var(--bg-2); border-bottom: 1px solid var(--line); position: relative; z-index: 1; }
.socialbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.socialbar__txt { font-size: 13px; color: var(--muted); }
.socialbar__txt b { color: var(--txt); font-weight: 600; }
.socialbar__list { display: flex; gap: 10px; margin-left: auto; }
.sb-card {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 10px; min-width: 0;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: box-shadow .2s, transform .2s;
}
.sb-card:hover { box-shadow: inset 0 0 0 1px var(--orange); transform: translateY(-1px); }
.sb-card__icon { width: 30px; height: 30px; display: grid; place-items: center; flex: none; }
.sb-card__icon svg { width: 26px; height: 26px; }
.sb-card--youtube .sb-card__icon svg { fill: #FF0033; }
.sb-card--tiktok .sb-card__icon svg { fill: #fff; filter: drop-shadow(1.5px 1px 0 #FE2C55) drop-shadow(-1.5px -1px 0 #25F4EE); }
.sb-card--instagram .sb-card__icon svg { fill: #E1306C; }
.sb-card__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.sb-card__text b { font-size: 14px; font-weight: 700; white-space: nowrap; }
.sb-card__text small { font-size: 11px; color: var(--muted); }
.sb-card__btn {
  flex: none; padding: 7px 12px; font-size: 13px; font-weight: 700; color: var(--bg); background: var(--orange);
  transition: background .15s;
}
.sb-card:hover .sb-card__btn { background: var(--orange-2); }
.sb-card__btn--ghost { color: var(--txt); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); }
.sb-card:hover .sb-card__btn--ghost { background: var(--bg-3); }

/* L'onglet S'abonner descend vers le bas de l'écran (plus au milieu) */
@media (min-width: 641px) {
  .subtab { top: auto; bottom: 12vh; transform: translateX(110%); }
  .subtab.visible { transform: translateX(calc(100% - 46px)); }
  .subtab.open { transform: translateX(0); }
}

@media (max-width: 1180px) {
  .socialbar__txt { display: none; }
  .socialbar__list { margin: 0 auto 0 auto; width: 100%; justify-content: flex-end; }
}
@media (max-width: 760px) {
  /* Tablette / téléphone : 3 cartes compactes sur toute la largeur */
  .socialbar__inner { padding-block: 8px; }
  .socialbar__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .sb-card { flex-direction: column; gap: 4px; padding: 8px 4px; text-align: center; }
  .sb-card__text small { display: none; }
  .sb-card__text b { font-size: 11px; }
  .sb-card__icon { width: 24px; height: 24px; }
  .sb-card__icon svg { width: 22px; height: 22px; }
  .sb-card__btn { padding: 5px 8px; font-size: 11px; }
}
@media (max-width: 380px) { .sb-card__text { display: none; } }
@media print { .socialbar { display: none !important; } }
