/* Brand hub Bouillon Belge — mise en page du site de charte. Les valeurs de marque viennent de ../tokens/tokens.css */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--bb-fond); color: var(--bb-texte);
  font: 400 var(--bb-t-m)/1.6 var(--bb-font-texte); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--bb-font-titre); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0 0 var(--bb-s-4); max-width: 68ch; text-wrap: pretty; }
a { color: var(--bb-bordeaux); }
code { font: 500 0.85em ui-monospace, "Cascadia Code", Consolas, monospace; background: #efe6d5; padding: 1px 6px; border-radius: 2px; }
:focus-visible { outline: 3px solid var(--bb-moutarde); outline-offset: 3px; }

/* ---------- Structure ---------- */
.layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.nav {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: var(--bb-s-8) var(--bb-s-6);
  background: var(--bb-bordeaux); color: var(--bb-creme); display: flex; flex-direction: column; gap: var(--bb-s-6);
}
.nav img { width: 150px; }
.nav ol { list-style: none; margin: 0; padding: 0; counter-reset: n; display: grid; gap: 2px; }
.nav a {
  counter-increment: n; display: flex; gap: 12px; align-items: baseline; padding: 7px 10px; border-radius: 2px;
  color: inherit; text-decoration: none; font-size: var(--bb-t-s); opacity: 0.78; transition: opacity .15s, background .15s;
}
.nav a::before { content: counter(n, decimal-leading-zero); font: 400 0.8em var(--bb-font-titre); color: var(--bb-moutarde); }
.nav a:hover, .nav a.actif { opacity: 1; background: rgba(246, 239, 226, 0.12); }
.nav small { margin-top: auto; font-size: var(--bb-t-xs); opacity: 0.6; line-height: 1.5; }
.nav small a { display: inline; padding: 0; counter-increment: none; text-decoration: underline; opacity: 1; }
.nav small a::before { content: none; }
main { min-width: 0; }
section { padding: var(--bb-s-24) clamp(24px, 6vw, 96px); border-bottom: 1px solid var(--bb-filet); }
.tete { display: grid; gap: var(--bb-s-4); margin-bottom: var(--bb-s-12); }
.tete h2 { font-size: clamp(2.2rem, 5vw, var(--bb-t-4xl)); color: var(--bb-bordeaux); }
.tete p { font-size: var(--bb-t-l); color: var(--bb-texte-doux); line-height: 1.45; }
h3 { font-size: var(--bb-t-xl); margin: var(--bb-s-12) 0 var(--bb-s-4); }
h4 { font-size: var(--bb-t-l); margin-bottom: var(--bb-s-2); }
.grille { display: grid; gap: var(--bb-s-6); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grille.serre { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.carte { background: #fff; border: 1px solid var(--bb-filet); padding: var(--bb-s-6); border-radius: var(--bb-rayon); }
.carte p:last-child { margin-bottom: 0; }
.note { border-left: 4px solid var(--bb-moutarde); background: #fff7e2; padding: var(--bb-s-4) var(--bb-s-6); margin: var(--bb-s-6) 0; max-width: 78ch; }
.note.alerte { border-color: var(--bb-vichy); background: #fbe9e7; }
.oui, .non { font-weight: 700; font-size: var(--bb-t-s); letter-spacing: .04em; text-transform: uppercase; }
.oui { color: #2f6b3c; } .non { color: var(--bb-vichy); }
ul.propre { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }

/* ---------- Dispositif signature : filet + mot en script (issu du logo) ---------- */
.filet-script { display: flex; align-items: center; gap: 14px; font: 400 1.9rem/1 var(--bb-font-script); color: var(--bb-encre); }
.filet-script::before, .filet-script::after { content: ""; flex: 1; height: 2px; background: currentColor; opacity: .55; max-width: 120px; }
.filet-script.gauche::before { display: none; }
.vichy { background-color: var(--bb-creme); background-image: var(--bb-motif-vichy); background-size: var(--bb-vichy-taille) var(--bb-vichy-taille); }

/* ---------- Couverture ---------- */
.couverture { background: var(--bb-bordeaux); color: var(--bb-creme); padding: 0; border: 0; display: grid; grid-template-columns: 1.1fr .9fr; min-height: 100vh; }
.couverture .texte { padding: clamp(32px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; gap: var(--bb-s-8); }
.couverture h1 { font-size: clamp(3rem, 7.5vw, 6.6rem); letter-spacing: -0.01em; }
.couverture h1 em { font: 400 0.62em var(--bb-font-script); color: var(--bb-moutarde); display: block; margin-top: .15em; }
.couverture p { font-size: var(--bb-t-l); opacity: .85; max-width: 44ch; }
.couverture .filet-script { color: var(--bb-creme); font-size: 1.6rem; }
.couverture .photo { position: relative; overflow: hidden; }
.couverture .photo img { width: 100%; height: 100%; object-fit: cover; }
.couverture .photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 56px; background-image: var(--bb-motif-vichy); background-color: var(--bb-creme); background-size: 28px 28px; }
.chiffres { display: flex; flex-wrap: wrap; gap: var(--bb-s-8); }
.chiffres div { display: grid; }
.chiffres b { font: 400 var(--bb-t-2xl)/1 var(--bb-font-titre); color: var(--bb-moutarde); font-variant-numeric: tabular-nums; }
.chiffres span { font-size: var(--bb-t-s); opacity: .8; }

/* ---------- Plateforme ---------- */
.manifeste { font: 400 clamp(1.5rem, 3vw, 2.4rem)/1.25 var(--bb-font-titre); max-width: 26ch; color: var(--bb-bordeaux); }
.piliers .carte { border-top: 6px solid var(--bb-bordeaux); }
.piliers .num { font: 400 var(--bb-t-2xl)/1 var(--bb-font-titre); color: var(--bb-laiton); }
.axe { display: grid; grid-template-columns: 9em 1fr 9em; align-items: center; gap: 12px; font-size: var(--bb-t-s); margin-bottom: 10px; }
.axe span:last-child { text-align: right; }
.axe i { height: 8px; background: var(--bb-filet); border-radius: 99px; position: relative; }
.axe i::after { content: ""; position: absolute; top: -5px; left: var(--p); width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--bb-bordeaux); }

/* ---------- Logo ---------- */
.logo-zone { display: grid; place-items: center; padding: var(--bb-s-12); min-height: 260px; border: 1px solid var(--bb-filet); transition: background .2s; }
.logo-zone img { width: min(340px, 80%); }
.logo-zone[data-fond="creme"] { background: var(--bb-creme); }
.logo-zone[data-fond="bordeaux"] { background: var(--bb-bordeaux); }
.logo-zone[data-fond="encre"] { background: var(--bb-encre); }
.logo-zone[data-fond="photo"] { background: linear-gradient(rgba(46,42,34,.62), rgba(46,42,34,.62)), url(img/salle-vichy.jpg) center/cover; }
.boutons { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--bb-s-4) 0; }
.boutons button {
  font: 600 var(--bb-t-s) var(--bb-font-texte); padding: 8px 16px; border: 1.5px solid var(--bb-bordeaux);
  background: transparent; color: var(--bb-bordeaux); border-radius: var(--bb-rayon-pastille); cursor: pointer;
}
.boutons button[aria-pressed="true"] { background: var(--bb-bordeaux); color: var(--bb-creme); }
.protection { position: relative; display: grid; place-items: center; padding: 56px; background: var(--bb-creme); }
.protection img { width: 260px; outline: 1px dashed var(--bb-vichy); outline-offset: 40px; }
.interdits .logo-zone { min-height: 170px; padding: var(--bb-s-6); background: var(--bb-creme); }
.interdits img { width: 190px; }
.interdits figure { margin: 0; }
.interdits figcaption { font-size: var(--bb-t-s); margin-top: 8px; }

/* ---------- Couleurs ---------- */
.nuancier { display: grid; gap: var(--bb-s-4); grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.nuance { border: 1px solid var(--bb-filet); background: #fff; text-align: left; padding: 0; cursor: pointer; font: inherit; color: inherit; border-radius: var(--bb-rayon); overflow: hidden; }
.nuance i { display: block; height: 120px; background: var(--c); }
.nuance.maitre i { height: 190px; }
.nuance div { padding: 12px 14px; display: grid; gap: 2px; }
.nuance b { font: 400 var(--bb-t-l) var(--bb-font-titre); }
.nuance span { font-size: var(--bb-t-xs); color: var(--bb-texte-doux); }
.nuance code { justify-self: start; }
.proportions { display: flex; height: 64px; margin-top: var(--bb-s-6); border: 1px solid var(--bb-filet); }
.proportions span { display: grid; place-items: center; font-size: var(--bb-t-xs); font-weight: 600; }
table { border-collapse: collapse; width: 100%; max-width: 760px; font-size: var(--bb-t-s); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--bb-filet); }
th { font-weight: 600; color: var(--bb-texte-doux); }
.echantillon { display: inline-block; padding: 4px 12px; font-weight: 600; border-radius: 2px; }

/* ---------- Typographie ---------- */
.specimen { border-top: 1px solid var(--bb-filet); padding: var(--bb-s-6) 0; display: grid; grid-template-columns: 180px 1fr; gap: var(--bb-s-6); align-items: baseline; }
.specimen small { color: var(--bb-texte-doux); font-size: var(--bb-t-s); }
.sp-titre { font: 400 clamp(2.4rem, 6vw, 5rem)/1 var(--bb-font-titre); color: var(--bb-bordeaux); }
.sp-script { font: 400 clamp(2rem, 4vw, 3.4rem)/1 var(--bb-font-script); }
.sp-texte { font-size: var(--bb-t-l); max-width: 52ch; }
.prix { font-family: var(--bb-font-titre); font-variant-numeric: tabular-nums; }

/* ---------- Photo ---------- */
.galerie { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; }
.galerie figure { margin: 0; position: relative; overflow: hidden; }
.galerie img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; transition: transform .5s; }
.galerie figure:hover img { transform: scale(1.04); }
.galerie figcaption { position: absolute; left: 0; bottom: 0; background: var(--bb-creme); padding: 4px 10px; font-size: var(--bb-t-xs); font-weight: 600; }
.g4 { grid-column: span 4; } .g3 { grid-column: span 3; } .g6 { grid-column: span 6; } .g6 img { aspect-ratio: 3/2; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--bb-s-6); }
.duo figure { margin: 0; } .duo img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.duo figcaption { margin-top: 8px; font-size: var(--bb-t-s); }

/* ---------- Voix ---------- */
.bulle { background: #fff; border: 1px solid var(--bb-filet); padding: var(--bb-s-6); position: relative; }
.bulle blockquote { margin: 0 0 10px; font: 400 var(--bb-t-l)/1.35 var(--bb-font-titre); }
.bulle.ko blockquote { color: var(--bb-texte-doux); text-decoration: line-through; text-decoration-color: var(--bb-vichy); font-family: var(--bb-font-texte); }

/* ---------- Applications ---------- */
.apps { display: grid; gap: var(--bb-s-12) var(--bb-s-8); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.app { display: grid; gap: 12px; margin: 0; }
.app figcaption { font-size: var(--bb-t-s); color: var(--bb-texte-doux); }
.app figcaption b { color: var(--bb-encre); display: block; font: 400 var(--bb-t-l) var(--bb-font-titre); }
.support { box-shadow: var(--bb-ombre); position: relative; overflow: hidden; container-type: inline-size; }

/* Post carré : le prix en héros */
.post { aspect-ratio: 1; background: var(--bb-bordeaux); color: var(--bb-creme); padding: 9%; display: grid; grid-template-rows: auto 1fr auto; }
.post .gros { font: 400 40cqw/.85 var(--bb-font-titre); color: var(--bb-moutarde); align-self: center; letter-spacing: -.03em; }
.post .gros small { font-size: .19em; color: var(--bb-creme); letter-spacing: 0; display: block; margin-top: .5em; line-height: 1.15; }
.post .pied { display: flex; justify-content: space-between; align-items: end; }
.post .pied img { width: 34%; }
.post .filet-script { color: var(--bb-creme); font-size: 1.5rem; }

/* Post photo */
.post-photo { aspect-ratio: 4/5; color: var(--bb-creme); display: grid; align-content: end; }
.post-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-photo .bandeau { position: relative; background: var(--bb-creme); color: var(--bb-encre); padding: 16px 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.post-photo .bandeau b { font: 400 1.25rem/1.1 var(--bb-font-titre); }
.post-photo .bandeau .prix { font-size: 2.1rem; color: var(--bb-bordeaux); line-height: 1; }

/* Story */
.story { aspect-ratio: 9/16; max-width: 300px; justify-self: center; width: 100%; color: var(--bb-creme); display: grid; grid-template-rows: 1fr auto; }
.story > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(74,17,24,.94) 78%); z-index: 1; }
.story .contenu { position: relative; z-index: 2; grid-row: 2; padding: 24px 22px 30px; display: grid; gap: 10px; }
.story h4 { font-size: 2rem; }
.story .cta { justify-self: start; background: var(--bb-moutarde); color: var(--bb-encre); font-weight: 700; padding: 9px 18px; border-radius: 99px; font-size: var(--bb-t-s); }

/* Affiche « L'addition » */
.affiche { aspect-ratio: 2/3; background: var(--bb-creme); padding: 8% 9%; display: grid; grid-template-rows: auto 1fr auto; gap: 12px; }
.affiche h4 { font-size: 14cqw; color: var(--bb-bordeaux); }
.ticket { background: #fff; font: 500 4.1cqw/1.8 ui-monospace, "Cascadia Code", Consolas, monospace; padding: 5cqw 5cqw 7cqw; align-self: center; position: relative; transform: rotate(-2.2deg); box-shadow: 0 14px 30px -14px rgba(46,42,34,.5); }
.ticket::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px; background: linear-gradient(-45deg, transparent 7px, #fff 0) 0 0/14px 10px, linear-gradient(45deg, transparent 7px, #fff 0) 7px 0/14px 10px; }
.ticket p { display: flex; justify-content: space-between; gap: 12px; margin: 0; max-width: none; }
.ticket .tete-t { justify-content: center; font-weight: 700; letter-spacing: .12em; border-bottom: 1px dashed var(--bb-encre); margin-bottom: 8px; }
.ticket .total { border-top: 1px dashed var(--bb-encre); margin-top: 8px; padding-top: 6px; font-weight: 800; font-size: 1.35em; color: var(--bb-bordeaux); }
.affiche .pied { display: flex; justify-content: space-between; align-items: end; gap: 16px; font-size: 4.2cqw; line-height: 1.4; }
.affiche .pied img { width: 34%; }

/* Ardoise lunch */
.lunch { background: var(--bb-encre); color: var(--bb-creme); padding: 10% 9%; display: grid; gap: 18px; text-align: center; }
.lunch .filet-script { color: var(--bb-moutarde); justify-content: center; }
.lunch h4 { font-size: 3.4rem; color: var(--bb-creme); }
.lunch dl { margin: 0; display: grid; gap: 12px; }
.lunch dt { font-size: var(--bb-t-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--bb-laiton); }
.lunch dd { margin: 0; font: 400 1.15rem/1.3 var(--bb-font-titre); }

/* Carte de fidélité / bon cadeau */
.fidelite { aspect-ratio: 85/54; background: var(--bb-creme); padding: 7%; display: grid; grid-template-rows: auto 1fr auto; }
.fidelite .cases { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-self: center; }
.fidelite .cases i { aspect-ratio: 1; border: 1.5px dashed var(--bb-bordeaux); border-radius: 50%; display: grid; place-items: center; }
.fidelite .cases i.ok { border-style: solid; background: var(--bb-bordeaux); }
.fidelite .cases i.ok img { width: 62%; }
.fidelite .cases i.don { background: var(--bb-moutarde); border-style: solid; border-color: var(--bb-moutarde); font: 400 .7rem var(--bb-font-titre); font-style: normal; text-align: center; line-height: 1.05; }
.fidelite header { display: flex; justify-content: space-between; align-items: center; }
.fidelite header img { width: 30%; }
.fidelite small { font-size: .7rem; color: var(--bb-texte-doux); }
.cadeau { aspect-ratio: 21/10; display: grid; grid-template-columns: 26% 1fr; }
.cadeau .talon { background-size: 22px 22px; }
.cadeau .corps { background: var(--bb-bordeaux); color: var(--bb-creme); padding: 8%; display: grid; align-content: space-between; }
.cadeau h4 { font-size: 1.9rem; }
.cadeau .corps img { width: 34%; }

/* Sac, sous-bock, store, signature */
.sac { aspect-ratio: 4/5; background: #c9a877; display: grid; place-items: center; padding: 14%; border-top: 26px solid #b8955f; }
.sac img { width: 78%; mix-blend-mode: multiply; }
.sac span { position: absolute; bottom: 9%; font: 400 1.5rem var(--bb-font-script); color: var(--bb-encre); }
.sousbock { aspect-ratio: 1; border-radius: 50%; background: var(--bb-creme); display: grid; place-items: center; text-align: center; border: 10px solid var(--bb-bordeaux); max-width: 280px; justify-self: center; width: 100%; }
.sousbock div { display: grid; gap: 6px; justify-items: center; padding: 12%; }
.sousbock img { width: 44%; }
.sousbock b { font: 400 1.25rem/1.15 var(--bb-font-titre); color: var(--bb-bordeaux); }
.store { background: var(--bb-vichy); color: var(--bb-creme); padding: 12% 8% 16%; text-align: center; clip-path: polygon(0 0, 100% 0, 100% 84%, 95% 100%, 90% 84%, 85% 100%, 80% 84%, 75% 100%, 70% 84%, 65% 100%, 60% 84%, 55% 100%, 50% 84%, 45% 100%, 40% 84%, 35% 100%, 30% 84%, 25% 100%, 20% 84%, 15% 100%, 10% 84%, 5% 100%, 0 84%); box-shadow: none; }
.store img { width: 46%; margin: 0 auto; }
.signature { background: #fff; padding: 22px; display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: center; font-size: var(--bb-t-s); border: 1px solid var(--bb-filet); box-shadow: none; }
.signature .bloc { background: var(--bb-bordeaux); padding: 14px; }
.signature b { font: 400 1.1rem var(--bb-font-titre); display: block; }
.signature span { color: var(--bb-texte-doux); display: block; }
.signature em { font: 400 1.2rem var(--bb-font-script); color: var(--bb-bordeaux); }

/* ---------- Campagnes ---------- */
.frise { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; border: 1px solid var(--bb-filet); background: #fff; }
.frise div { padding: var(--bb-s-6); border-right: 1px solid var(--bb-filet); border-bottom: 1px solid var(--bb-filet); }
.frise small { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bb-vichy); font-size: var(--bb-t-xs); }
.frise h4 { margin: 6px 0; }
.frise p { font-size: var(--bb-t-s); margin: 0; }

footer { padding: var(--bb-s-12) clamp(24px, 6vw, 96px); font-size: var(--bb-t-s); color: var(--bb-texte-doux); }
.toast { position: fixed; bottom: 24px; left: 50%; translate: -50% 20px; background: var(--bb-encre); color: var(--bb-creme); padding: 10px 18px; border-radius: 99px; font-size: var(--bb-t-s); opacity: 0; transition: .2s; pointer-events: none; z-index: 10; }
.toast.vu { opacity: 1; translate: -50% 0; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .nav { position: static; height: auto; }
  .nav ol { grid-template-columns: 1fr 1fr; }
  .couverture { grid-template-columns: 1fr; }
  .couverture .photo { height: 46vh; }
  .specimen { grid-template-columns: 1fr; gap: 6px; }
  .g4, .g3 { grid-column: span 6; } .g6 { grid-column: span 12; }
  .duo { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .nav, .boutons, .toast { display: none; } .layout { display: block; } section { break-inside: avoid; padding: 32px; } }

/* ---------- Ajustements : supports dimensionnés par leur conteneur, petits écrans ---------- */
.fidelite { padding: 6%; }
.fidelite header b { font-size: 5.4cqw !important; }
.fidelite .cases { gap: 2cqw; padding: 2cqw 0; }
.fidelite .cases i.don { font-size: 3.2cqw; }
.fidelite small { font-size: 3cqw; }
.cadeau .corps { padding: 6%; }
.cadeau h4 { font-size: 7.4cqw; }
.cadeau .filet-script { font-size: 5cqw !important; }
.cadeau .corps img { width: 30%; }
@media (max-width: 900px) {
  table { display: block; overflow-x: auto; }
  .axe { grid-template-columns: 6em 1fr 6em; }
  .protection { padding: 48px 24px; }
  .protection img { width: 180px; outline-offset: 24px; }
  section { padding-top: var(--bb-s-16); padding-bottom: var(--bb-s-16); }
}
.fidelite { aspect-ratio: 85/60; }
