/* LOOP Docs : lib graphique du serveur (menu pause style 4, MDT direction B habillé lib LOOP).
   Tuiles noires à 50 %, rayon 6, boutons rayon 4, aucun cadre ni filet, Montserrat pour les titres,
   Lato pour le texte, principal et sélection en blanc plein texte noir. Aucune image vectorielle. */

@font-face { font-family: "LOOP Montserrat"; src: url(../fonts/montserrat-var.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "LOOP Lato"; src: url(../fonts/lato-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "LOOP Lato"; src: url(../fonts/lato-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --titre: "LOOP Montserrat", "Montserrat", "Segoe UI", sans-serif;
  --texte: "LOOP Lato", "Lato", "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", "Consolas", "SFMono-Regular", monospace;
  --t1: #fff;
  --t2: rgba(255, 255, 255, .72);
  --t3: rgba(255, 255, 255, .46);
  --t4: rgba(255, 255, 255, .28);
  --tuile: rgba(0, 0, 0, .5);
  --tuile-on: rgba(0, 0, 0, .72);
  --plein: rgba(0, 0, 0, .9);
  --voile: rgba(255, 255, 255, .055);
  --voile2: rgba(255, 255, 255, .09);
  --danger: #ff5a52;
  --ok: #3ddc84;
  --or: #e7d8c2;
  --r2: 2px; --r4: 4px; --r6: 6px; --r10: 10px;
  --elan: cubic-bezier(.2, .8, .2, 1);
  --barre: 64px;
  --nav: 292px;
  --toc: 232px;
  --ombre: 0 28px 64px -24px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--barre) + 18px); }
html, body { margin: 0; }
body {
  background: #050506;
  color: var(--t2);
  font: 400 16px/1.68 var(--texte);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background: url(../img/fond.webp) center / cover no-repeat;
  filter: saturate(.9);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.80) 0%, rgba(0,0,0,.86) 30%, rgba(0,0,0,.9) 70%, rgba(0,0,0,.94) 100%);
}
::selection { background: rgba(235, 240, 245, .9); color: #000; }
a { color: var(--t1); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
img { max-width: 100%; }
code, kbd, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: var(--r4); }

/* ---------- barre du haut ---------- */
.barre {
  position: fixed; top: 0; left: 0; right: 0; height: var(--barre); z-index: 40;
  display: flex; align-items: center; gap: 18px; padding: 0 22px;
  background: rgba(0, 0, 0, .72); backdrop-filter: blur(14px) saturate(1.1);
}
.marque { display: flex; align-items: center; gap: 12px; color: #fff; font: 800 17px/1 var(--titre); letter-spacing: -.015em; }
.marque img { width: 32px; height: 32px; }
.marque .trait { width: 1px; height: 24px; background: rgba(255,255,255,.18); }
.marque em { font-style: normal; color: var(--t3); font-weight: 600; }
.marque:hover { text-decoration: none; }
.barre-recherche {
  flex: 1; max-width: 560px; margin: 0 auto; height: 40px; display: flex; align-items: center; gap: 10px;
  padding: 0 14px; border-radius: var(--r4); background: var(--voile); color: var(--t3); cursor: text;
  font-size: 14px; border: 0; text-align: left; font-family: inherit;
}
.barre-recherche:hover { background: var(--voile2); color: var(--t2); }
.barre-recherche .loupe { width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 50%; position: relative; flex: none; }
.barre-recherche .loupe::after { content: ""; position: absolute; width: 6px; height: 2px; background: currentColor; right: -6px; bottom: -3px; transform: rotate(45deg); border-radius: 2px; }
.barre-recherche span:not(.touche):not(.loupe) { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.touche { font: 700 11px/1 var(--titre); color: var(--t2); background: rgba(255,255,255,.08); padding: 5px 7px; border-radius: var(--r4); }
.barre-liens { display: flex; gap: 6px; }
.barre-liens a { color: var(--t2); font: 600 13px/1 var(--titre); padding: 10px 12px; border-radius: var(--r4); }
.barre-liens a:hover { background: var(--voile); color: #fff; text-decoration: none; }
.burger { display: none; width: 40px; height: 40px; border: 0; border-radius: var(--r4); background: var(--voile); position: relative; cursor: pointer; }
.burger i, .burger::before, .burger::after { content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; }
.burger::before { top: 13px; } .burger i { top: 19px; } .burger::after { top: 25px; }

/* ---------- mise en page ---------- */
.cadre { display: grid; grid-template-columns: var(--nav) minmax(0, 1fr) var(--toc); gap: 0; padding-top: var(--barre); max-width: 1640px; margin: 0 auto; }
.cadre.sans-toc { grid-template-columns: var(--nav) minmax(0, 1fr); }
.cadre.plein { grid-template-columns: minmax(0, 1fr); }
.nav {
  position: sticky; top: var(--barre); height: calc(100vh - var(--barre)); overflow-y: auto; padding: 22px 14px 40px 22px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent;
}
.nav-groupe { margin-bottom: 14px; }
.nav-titre {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  font: 700 11px/1 var(--titre); letter-spacing: .08em; text-transform: uppercase; color: var(--t3);
  padding: 10px 12px 8px; background: none; border: 0; cursor: pointer; text-align: left;
}
.nav-titre .compte { font-weight: 600; color: var(--t4); letter-spacing: 0; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 7px 12px; margin: 1px 0; border-radius: var(--r4); color: var(--t2);
  font: 500 14px/1.35 var(--texte);
}
.nav a:hover { background: var(--voile); color: #fff; text-decoration: none; }
.nav a.actif { background: #fff; color: #000; font-weight: 700; }
.nav ul ul { padding-left: 10px; }
.nav ul ul a { font-size: 13px; padding: 5px 12px; color: var(--t3); }
.nav ul ul a.actif { color: #000; }

.contenu { padding: 34px 44px 90px; min-width: 0; }
.contenu > .article { max-width: 920px; }
.plein .contenu > .article { max-width: 1240px; margin: 0 auto; }

.toc { position: sticky; top: var(--barre); height: calc(100vh - var(--barre)); overflow-y: auto; padding: 34px 22px 40px 8px; font-size: 13px; }
.toc h4 { font: 700 11px/1 var(--titre); letter-spacing: .08em; text-transform: uppercase; color: var(--t3); margin: 0 0 12px; }
.toc a { display: block; color: var(--t3); padding: 4px 0 4px 12px; border-radius: 0; line-height: 1.4; position: relative; }
.toc a.n3 { padding-left: 24px; font-size: 12.5px; }
.toc a:hover { color: #fff; text-decoration: none; }
.toc a.actif { color: #fff; }
.toc a.actif::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 2px; background: #fff; }

/* ---------- titres & texte ---------- */
.fil { font: 600 12px/1 var(--titre); color: var(--t3); letter-spacing: .02em; margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fil a { color: var(--t3); } .fil a:hover { color: #fff; }
.fil i { font-style: normal; color: var(--t4); }
h1, h2, h3, h4 { font-family: var(--titre); color: #fff; letter-spacing: -.02em; }
h1 { font-size: 38px; line-height: 1.12; font-weight: 800; margin: 0 0 14px; }
.chapeau { font-size: 18.5px; line-height: 1.6; color: var(--t2); margin: 0 0 26px; max-width: 760px; }
h2 { font-size: 24px; line-height: 1.25; font-weight: 750; margin: 46px 0 14px; scroll-margin-top: 90px; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 700; margin: 30px 0 10px; }
h4 { font-size: 15px; font-weight: 700; margin: 22px 0 8px; }
h2 .ancre, h3 .ancre { opacity: 0; margin-left: 8px; color: var(--t3); font-weight: 600; }
h2:hover .ancre, h3:hover .ancre { opacity: 1; }
p { margin: 0 0 14px; }
strong { color: #fff; }
ul, ol { padding-left: 22px; margin: 0 0 16px; }
li { margin: 5px 0; }
li::marker { color: var(--t3); }
hr { border: 0; height: 1px; background: rgba(255,255,255,.07); margin: 34px 0; }
:not(pre) > code {
  font-size: .86em; padding: 2px 6px; border-radius: var(--r4); background: rgba(255,255,255,.08); color: #fff; white-space: nowrap;
}
@media (max-width: 640px) { p > code, li > code { white-space: normal; overflow-wrap: anywhere; } }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 26px; }

/* ---------- composants ---------- */
.tuile { background: var(--tuile); border-radius: var(--r6); padding: 20px 22px; margin: 0 0 16px; }
.tuile > :last-child { margin-bottom: 0; }
.tuile-titre { font: 600 13px/1.2 var(--titre); color: rgba(255,255,255,.66); margin: 0 0 12px; letter-spacing: 0; }
.grille { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 0 0 18px; }
.grille.g2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.carte {
  display: flex; flex-direction: column; gap: 6px; background: var(--tuile); border-radius: var(--r6); padding: 16px 18px;
  color: var(--t2); transition: background .18s var(--elan), transform .18s var(--elan); min-height: 92px;
}
.carte:hover { background: #fff; color: #000; text-decoration: none; transform: translateY(-1px); }
.carte:hover b, .carte:hover small, .carte:hover .compte { color: #000; }
.carte b { color: #fff; font: 700 15px/1.3 var(--titre); }
.carte small { color: var(--t3); font-size: 13px; line-height: 1.45; }
.carte .compte { margin-top: auto; font: 700 11px/1 var(--titre); color: var(--t3); letter-spacing: .04em; text-transform: uppercase; }
.carte img.ico { width: 34px; height: 34px; object-fit: contain; margin-bottom: 4px; }

.pastille {
  display: inline-flex; align-items: center; gap: 5px; font: 700 11px/1 var(--titre); letter-spacing: .02em;
  padding: 5px 8px; border-radius: var(--r4); background: rgba(255,255,255,.08); color: var(--t2); white-space: nowrap;
}
.pastille.blanc { background: #fff; color: #000; }
.pastille.ok { color: var(--ok); background: rgba(61,220,132,.1); }
.pastille.danger { color: var(--danger); background: rgba(255,90,82,.1); }
.pastille.or { color: var(--or); background: rgba(231,216,194,.1); }
.pastille.mono { font-family: var(--mono); font-weight: 600; }

.bouton {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--r4); border: 0;
  background: var(--tuile); color: #fff; font: 700 13px/1 var(--titre); cursor: pointer; transition: background .16s, color .16s;
}
.bouton:hover { background: #fff; color: #000; text-decoration: none; }
.bouton.principal { background: #fff; color: #000; }
.bouton.principal:hover { background: rgba(255,255,255,.86); }

/* encadrés : teinte, sans filet */
.encart { border-radius: var(--r6); padding: 16px 18px 16px 50px; margin: 18px 0; background: var(--tuile); position: relative; }
.encart::before {
  content: "i"; position: absolute; left: 16px; top: 16px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; color: #000; font: 800 13px/22px var(--titre); text-align: center;
}
.encart > b:first-child { display: block; color: #fff; font: 700 14.5px/1.35 var(--titre); margin-bottom: 4px; }
.encart p:last-child, .encart ul:last-child { margin-bottom: 0; }
.encart.attention { background: rgba(255, 90, 82, .09); }
.encart.attention::before { content: "!"; background: var(--danger); color: #000; }
.encart.astuce::before { content: "✓"; background: var(--ok); }
.encart.astuce { background: rgba(61, 220, 132, .07); }

/* étapes numérotées */
ol.etapes { list-style: none; counter-reset: e; padding: 0; margin: 18px 0 22px; }
ol.etapes > li { counter-increment: e; position: relative; padding: 16px 18px 16px 62px; margin: 0 0 10px; background: var(--tuile); border-radius: var(--r6); }
ol.etapes > li::before {
  content: counter(e); position: absolute; left: 18px; top: 15px; width: 28px; height: 28px; border-radius: 50%;
  background: #fff; color: #000; font: 800 13px/28px var(--titre); text-align: center;
}
ol.etapes > li > :last-child { margin-bottom: 0; }
ol.etapes > li > b:first-child { color: #fff; font-family: var(--titre); }

/* tableaux */
.tableau { width: 100%; overflow-x: auto; margin: 0 0 20px; border-radius: var(--r6); background: var(--tuile); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font: 700 11px/1.2 var(--titre); letter-spacing: .06em; text-transform: uppercase; color: var(--t3); padding: 13px 14px 10px; white-space: nowrap; }
td { padding: 10px 14px; vertical-align: top; color: var(--t2); }
tbody tr:nth-child(odd) td { background: rgba(255,255,255,.022); }
tbody tr:hover td { background: rgba(255,255,255,.06); }
td code { white-space: normal !important; word-break: break-word; }
td.n { white-space: nowrap; color: var(--t3); font-variant-numeric: tabular-nums; }

/* code */
pre {
  position: relative; background: rgba(0,0,0,.62); border-radius: var(--r6); padding: 16px 18px; overflow-x: auto;
  font-size: 13.2px; line-height: 1.62; color: #e8e8ea; margin: 0 0 18px;
}
pre .com { color: var(--t3); }
pre .cle { color: #fff; font-weight: 700; }
pre .val { color: var(--or); }
.copier {
  position: absolute; top: 8px; right: 8px; border: 0; border-radius: var(--r4); background: rgba(255,255,255,.08); color: var(--t2);
  font: 700 11px/1 var(--titre); padding: 7px 9px; cursor: pointer; opacity: 0; transition: opacity .15s;
}
pre:hover .copier { opacity: 1; }
.copier:hover { background: #fff; color: #000; }
.fichier { font: 700 12px/1 var(--titre); color: var(--t3); margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
kbd {
  display: inline-block; min-width: 22px; text-align: center; font: 700 11.5px/1 var(--titre); color: #000; background: #fff;
  border-radius: var(--r4); padding: 5px 7px; margin: 0 1px; vertical-align: 1px;
}

/* figures : vraies captures, zoom */
figure { margin: 0 0 22px; }
figure.capture { background: var(--tuile); border-radius: var(--r6); padding: 12px; }
figure.capture img { display: block; width: 100%; height: auto; border-radius: var(--r4); cursor: zoom-in; }
figcaption { font-size: 13.5px; color: var(--t3); padding: 10px 4px 2px; line-height: 1.5; }
figcaption b { color: var(--t2); }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.menu-vue { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 22px; align-items: start; margin: 0 0 26px; }
.menu-vue .pages { display: flex; flex-direction: column; gap: 10px; }
.menu-vue .pages img { width: 100%; border-radius: var(--r6); cursor: zoom-in; display: block; background: #000; }
.menu-vue .onglets-pages { display: flex; gap: 6px; flex-wrap: wrap; }
.menu-vue .onglets-pages button { border: 0; border-radius: var(--r4); background: var(--tuile); color: var(--t2); font: 700 12px/1 var(--titre); padding: 8px 10px; cursor: pointer; }
.menu-vue .onglets-pages button.actif { background: #fff; color: #000; }

/* liste des entrées d'un menu */
.entrees { list-style: none; padding: 0; margin: 0; counter-reset: ent; }
.entrees li { background: var(--tuile); border-radius: var(--r6); padding: 12px 14px 12px 50px; margin: 0 0 6px; position: relative; counter-increment: ent; }
.entrees li::before { content: counter(ent); position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; border-radius: var(--r4); background: rgba(255,255,255,.1); color: #fff; font: 800 11px/24px var(--titre); text-align: center; }
.entrees li.sep { background: none; padding: 14px 4px 4px; counter-increment: none; font: 700 11px/1 var(--titre); letter-spacing: .08em; text-transform: uppercase; color: var(--t3); }
.entrees li.sep::before { display: none; }
.entrees .lib { color: #fff; font: 700 14.5px/1.35 var(--titre); }
.entrees .type { font: 700 10.5px/1 var(--titre); letter-spacing: .05em; text-transform: uppercase; color: var(--t3); margin-left: 8px; }
.entrees .droite { float: right; color: var(--t3); font: 600 12px/1.6 var(--titre); margin-left: 10px; }
.entrees .desc { color: var(--t2); font-size: 14px; margin-top: 3px; }
.entrees .det { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.entrees .det .pastille { font-size: 10.5px; padding: 4px 7px; }
.entrees a.vers { color: #fff; font: 700 12px/1 var(--titre); }

/* arbre */
.arbre { font-size: 14px; }
.arbre ul { list-style: none; margin: 0; padding-left: 18px; }
.arbre > ul { padding-left: 0; }
.arbre li { margin: 2px 0; position: relative; }
.arbre li::before { content: ""; position: absolute; left: -12px; top: 12px; width: 7px; height: 1px; background: rgba(255,255,255,.2); }
.arbre > ul > li::before { display: none; }
.arbre a { color: var(--t2); } .arbre a:hover { color: #fff; }
.arbre .nb { color: var(--t4); font-size: 12px; margin-left: 6px; }

/* filtres de registres */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.filtres input[type=search], .filtres select {
  height: 40px; border: 0; border-radius: var(--r4); background: var(--voile); color: #fff; padding: 0 14px; font: 400 14px var(--texte); min-width: 240px;
}
.filtres select { min-width: 0; padding-right: 30px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.filtres input::placeholder { color: var(--t3); }
.filtres .puce { border: 0; border-radius: var(--r4); background: var(--tuile); color: var(--t2); font: 700 12px/1 var(--titre); padding: 10px 12px; cursor: pointer; }
.filtres .puce.actif { background: #fff; color: #000; }
.filtres .total { margin-left: auto; color: var(--t3); font: 600 12px/1 var(--titre); }

/* items */
.items-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.item { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; align-items: center; background: var(--tuile); border-radius: var(--r6); padding: 9px 10px; cursor: pointer; border: 0; text-align: left; color: inherit; font: inherit; }
.item:hover { background: rgba(255,255,255,.1); }
.item img { width: 46px; height: 46px; object-fit: contain; }
.item b { display: block; color: #fff; font: 700 13px/1.25 var(--titre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item small { display: block; color: var(--t3); font: 500 11.5px/1.3 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .etat { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 5px; vertical-align: 1px; background: var(--t4); }
.item .etat.actif { background: #fff; } .item .etat.inutilise { background: var(--danger); } .item .etat.ingredient { background: var(--or); } .item .etat.code { background: rgba(255,255,255,.5); }

.tiroir { position: fixed; top: var(--barre); right: 0; bottom: 0; width: min(560px, 100vw); z-index: 45; background: rgba(8,8,9,.97); backdrop-filter: blur(16px); box-shadow: var(--ombre); transform: translateX(105%); transition: transform .28s var(--elan); overflow-y: auto; padding: 26px 26px 60px; }
.tiroir.ouvert { transform: none; }
.tiroir .fermer { position: absolute; top: 16px; right: 16px; }
.croix { width: 34px; height: 34px; border: 0; border-radius: var(--r4); background: var(--voile); cursor: pointer; position: relative; }
.croix::before, .croix::after { content: ""; position: absolute; left: 9px; right: 9px; top: 16px; height: 2px; background: #fff; border-radius: 2px; transform: rotate(45deg); }
.croix::after { transform: rotate(-45deg); }
.croix:hover { background: #fff; } .croix:hover::before, .croix:hover::after { background: #000; }
.fiche-item .tete { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 16px; align-items: center; margin-bottom: 18px; }
.fiche-item .tete img { width: 96px; height: 96px; object-fit: contain; background: var(--tuile); border-radius: var(--r6); padding: 8px; }
.fiche-item h3 { margin: 0 0 4px; font-size: 22px; }
.fiche-item dl { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 6px 12px; margin: 0 0 16px; font-size: 14px; }
.fiche-item dt { color: var(--t3); } .fiche-item dd { margin: 0; color: #fff; }

/* recherche */
.voile-recherche { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.66); backdrop-filter: blur(6px); display: none; align-items: flex-start; justify-content: center; padding: 9vh 16px 16px; }
.voile-recherche.ouvert { display: flex; }
.boite-recherche { width: min(780px, 100%); max-height: 82vh; display: flex; flex-direction: column; background: rgba(10,10,11,.97); border-radius: var(--r10); box-shadow: var(--ombre); overflow: hidden; }
.champ-recherche { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 64px; background: rgba(255,255,255,.04); }
.champ-recherche input { flex: 1; height: 100%; border: 0; background: none; color: #fff; font: 500 18px var(--texte); outline: none; }
.champ-recherche input::placeholder { color: var(--t3); }
.champ-recherche .loupe { width: 17px; height: 17px; border: 2.5px solid var(--t3); border-radius: 50%; position: relative; flex: none; }
.champ-recherche .loupe::after { content: ""; position: absolute; width: 7px; height: 2.5px; background: var(--t3); right: -7px; bottom: -4px; transform: rotate(45deg); border-radius: 2px; }
.resultats { overflow-y: auto; padding: 8px 8px 12px; }
.resultats .grp { font: 700 11px/1 var(--titre); letter-spacing: .08em; text-transform: uppercase; color: var(--t3); padding: 14px 12px 8px; }
.res { display: block; padding: 10px 12px; border-radius: var(--r6); color: var(--t2); }
.res:hover, .res.choisi { background: #fff; color: #000; text-decoration: none; }
.res b { display: block; color: #fff; font: 700 14.5px/1.3 var(--titre); }
.res.choisi b, .res:hover b { color: #000; }
.res small { display: block; font-size: 13px; line-height: 1.45; color: var(--t3); margin-top: 2px; }
.res.choisi small, .res:hover small { color: rgba(0,0,0,.66); }
.res .chemin { font: 600 11px/1.3 var(--titre); color: var(--t4); margin-top: 4px; display: block; }
.res.choisi .chemin, .res:hover .chemin { color: rgba(0,0,0,.5); }
.res mark { background: none; color: inherit; font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.reponse { margin: 6px 4px 10px; padding: 16px 18px; border-radius: var(--r6); background: rgba(255,255,255,.06); }
.reponse .eti { font: 700 10.5px/1 var(--titre); letter-spacing: .08em; text-transform: uppercase; color: var(--t3); margin-bottom: 8px; }
.reponse h5 { margin: 0 0 8px; color: #fff; font: 800 17px/1.3 var(--titre); }
.reponse ol { margin: 0 0 10px; padding-left: 20px; font-size: 14px; }
.reponse li { margin: 4px 0; }
.reponse .bouton { height: 34px; }
.vide-recherche { padding: 26px; color: var(--t3); text-align: center; }
.astuces-recherche { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 12px 14px; }
.astuces-recherche button { border: 0; border-radius: var(--r4); background: var(--tuile); color: var(--t2); font: 600 12.5px/1 var(--texte); padding: 9px 11px; cursor: pointer; }
.astuces-recherche button:hover { background: #fff; color: #000; }
.pied-recherche { display: flex; gap: 16px; padding: 10px 18px; background: rgba(255,255,255,.03); color: var(--t3); font-size: 12px; }

/* visionneuse */
.visionneuse { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; padding: 30px; cursor: zoom-out; }
.visionneuse.ouvert { display: flex; }
.visionneuse img { max-width: 96vw; max-height: 90vh; border-radius: var(--r6); box-shadow: var(--ombre); }
.visionneuse p { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--t2); font-size: 14px; }

/* accueil */
.accueil .contenu { padding-top: 0; }
.heros { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px; align-items: end; min-height: 520px; padding: 70px 0 0; }
.heros h1 { font-size: 56px; line-height: 1.02; letter-spacing: -.035em; margin-bottom: 18px; }
.heros h1 em { font-style: normal; color: var(--or); }
.heros .chapeau { font-size: 19px; }
.heros-recherche {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; height: 66px; padding: 0 22px; margin: 8px 0 14px;
  border: 0; border-radius: var(--r6); background: #fff; color: #444; font: 500 17px var(--texte); cursor: text; text-align: left;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.9);
}
.heros-recherche .loupe { width: 18px; height: 18px; border: 2.5px solid #000; border-radius: 50%; position: relative; flex: none; }
.heros-recherche .loupe::after { content: ""; position: absolute; width: 8px; height: 2.5px; background: #000; right: -8px; bottom: -4px; transform: rotate(45deg); border-radius: 2px; }
.heros-recherche span:not(.touche):not(.loupe) { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.heros-recherche .touche { background: #000; color: #fff; }
.exemples { display: flex; flex-wrap: wrap; gap: 8px; }
.exemples button { border: 0; border-radius: var(--r4); background: var(--tuile); color: var(--t2); font: 600 13px/1 var(--texte); padding: 10px 12px; cursor: pointer; }
.exemples button:hover { background: #fff; color: #000; }
.perso { position: relative; height: 560px; display: flex; align-items: flex-end; justify-content: center; }
.perso .cadre-photo {
  position: absolute; left: 6%; right: 6%; bottom: 0; height: 74%; border-radius: var(--r10);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)), url(../img/fond.webp) center / cover;
  box-shadow: var(--ombre); overflow: hidden;
}
.perso .cadre-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.7)); }
.perso img.cameron { position: relative; z-index: 2; height: 108%; width: auto; max-width: none; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0,0,0,.7)); pointer-events: none; }
.perso .plaque { position: absolute; z-index: 3; left: 10%; bottom: 18px; background: rgba(0,0,0,.72); backdrop-filter: blur(8px); border-radius: var(--r6); padding: 10px 14px; }
.perso .plaque b { display: block; color: #fff; font: 800 14px/1.2 var(--titre); }
.perso .plaque small { color: var(--t3); font: 600 11.5px/1.3 var(--titre); letter-spacing: .03em; }
.chiffres { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 26px 0 34px; }
.chiffres div { background: var(--tuile); border-radius: var(--r6); padding: 16px; }
.chiffres b { display: block; color: #fff; font: 800 26px/1 var(--titre); letter-spacing: -.02em; }
.chiffres span { font: 600 12px/1.3 var(--titre); color: var(--t3); }

.pied { color: var(--t4); font-size: 13px; padding: 30px 0 0; margin-top: 60px; }
.pied a { color: var(--t3); }

/* responsive */
@media (max-width: 1280px) { .cadre { grid-template-columns: var(--nav) minmax(0, 1fr); } .toc { display: none; } .menu-vue { grid-template-columns: 330px minmax(0,1fr); } }
@media (max-width: 980px) {
  .cadre, .cadre.sans-toc { grid-template-columns: minmax(0, 1fr); }
  .nav { position: fixed; z-index: 50; left: 0; top: var(--barre); width: min(320px, 88vw); background: rgba(6,6,7,.98); transform: translateX(-105%); transition: transform .25s var(--elan); }
  .nav.ouvert { transform: none; }
  .burger { display: block; }
  .barre-liens { display: none; }
  .contenu { padding: 26px 16px 70px; }
  .heros { grid-template-columns: minmax(0, 1fr); padding-top: 26px; min-height: 0; }
  .perso { height: 380px; order: -1; }
  .heros h1 { font-size: 40px; }
  .chiffres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .menu-vue, .duo { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 30px; }
  .barre { padding: 0 12px; gap: 10px; }
  .marque em, .marque .trait { display: none; }
  .barre-recherche .touche { display: none; }
}
@media (max-width: 560px) { .chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fiche-item dl { grid-template-columns: 1fr; } }

/* bulle de Cameron vers la recherche */
.perso .bulle {
  position: absolute; z-index: 4; left: -6%; top: 30%; max-width: 210px; background: #fff; color: #000; border-radius: var(--r6);
  padding: 12px 14px; font: 800 14px/1.3 var(--titre); box-shadow: 0 18px 40px -16px rgba(0,0,0,.9);
}
.perso .bulle::after { content: ""; position: absolute; left: -9px; top: 50%; margin-top: -9px; border: 9px solid transparent; border-left: 0; border-right-color: #fff; }
details.tuile summary { cursor: pointer; list-style: none; }
details.tuile summary::-webkit-details-marker { display: none; }
details.tuile summary::before { content: "›"; display: inline-block; margin-right: 8px; transition: transform .15s; color: var(--t3); font-weight: 800; }
details.tuile[open] summary::before { transform: rotate(90deg); }
details.tuile pre { margin: 12px 0 0; }
@media (max-width: 980px) { .perso .bulle { display: none; } }
figure.capture.f1 { max-width: 480px; }
.duo figure.capture.f1 { max-width: none; }
.entrees .det .pastille, .meta .pastille { white-space: normal; line-height: 1.35; text-align: left; overflow-wrap: anywhere; }
.pastille.blanc a { color: #000; text-decoration: underline; text-underline-offset: 2px; }
.contenu { overflow-wrap: break-word; }
.article { min-width: 0; }
.fiche-item code { white-space: normal !important; word-break: break-all; }

/* zoom annoté */
.zoom { position: relative; display: inline-block; max-width: 100%; }
.zoom img { display: block; max-width: 100%; height: auto; border-radius: var(--r6); }
.zoom .repere {
  position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: #fff; color: #000;
  font: 800 13px/28px var(--titre); text-align: center; box-shadow: 0 0 0 4px rgba(0,0,0,.55), 0 8px 20px rgba(0,0,0,.6);
}
.anatomie { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 24px; align-items: start; margin: 0 0 24px; }
.anatomie ol { list-style: none; counter-reset: a; padding: 0; margin: 0; }
.anatomie ol li { counter-increment: a; position: relative; padding: 10px 12px 10px 48px; margin: 0 0 6px; background: var(--tuile); border-radius: var(--r6); font-size: 14.5px; }
.anatomie ol li::before { content: counter(a); position: absolute; left: 12px; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #000; font: 800 12px/24px var(--titre); text-align: center; }
.anatomie ol li b { color: #fff; }
@media (max-width: 980px) { .anatomie { grid-template-columns: minmax(0, 1fr); } }
.vignettes { display: flex; flex-wrap: wrap; gap: 6px; }
.vignette { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 4px; border-radius: var(--r4); background: rgba(255,255,255,.05); color: var(--t2); font-size: 12.5px; }
.vignette img { width: 32px; height: 32px; object-fit: contain; }
.vignette:hover { background: #fff; color: #000; text-decoration: none; }
.vignette.plus { padding: 10px 12px; font-weight: 700; }
tbody tr.ligne-vignettes td { background: none !important; padding-top: 0; }
.item-img { width: 28px; height: 28px; object-fit: contain; vertical-align: middle; margin-right: 6px; }

.reponse-texte { font-size: 14px; line-height: 1.55; color: var(--t1, #e9e9ea); }
.reponse-texte p { margin: 0 0 8px; }
.reponse-texte ol, .reponse-texte ul { margin: 0 0 10px; padding-left: 20px; }
.reponse-texte code { font-size: 12.5px; }
.reponse-texte a { color: #fff; text-decoration: underline; }
.reponse-liens { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* Fiches pratiques (drogues, braquages) */
.fiche { background: var(--tuile); border-radius: var(--r10); padding: 20px 22px; margin: 0 0 22px; scroll-margin-top: calc(var(--barre) + 16px); }
.fiche > header { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; }
.fiche > header img { width: 76px; height: 76px; object-fit: contain; background: var(--voile); border-radius: var(--r6); padding: 6px; flex: none; }
.fiche h3 { margin: 0 0 6px; font: 800 20px/1.2 var(--titre); color: #fff; }
.fiche h4 { margin: 18px 0 6px; font: 700 14px/1.3 var(--titre); color: var(--t2); text-transform: uppercase; letter-spacing: .04em; }
.bdgs { display: flex; flex-wrap: wrap; gap: 6px; }
.bdg { font: 700 11px/1 var(--titre); padding: 6px 8px; border-radius: var(--r4); background: var(--voile2); color: var(--t2); }
.bdg.ok { color: var(--ok); } .bdg.off { color: var(--danger); }
.fi-intro { color: var(--t2); }
ol.pas { list-style: none; padding: 0; margin: 12px 0 14px; counter-reset: p; }
ol.pas > li { display: grid; grid-template-columns: 96px 1fr minmax(220px, 38%); gap: 14px; align-items: start; background: var(--voile); border-radius: var(--r6); padding: 12px; margin: 0 0 8px; }
.prop { width: 96px; min-height: 96px; border-radius: var(--r6); background: rgba(0,0,0,.35); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 6px; }
.prop img { width: 64px; height: 64px; object-fit: contain; }
.prop span { font: 600 11px/1.25 var(--titre); color: var(--t3); }
.prop.sans span { color: var(--t2); }
.pas-txt b { display: block; color: #fff; font: 700 15px/1.3 var(--titre); margin-bottom: 4px; }
.pas-txt p { margin: 0; color: var(--t2); font-size: 14px; line-height: 1.5; }
.pas-it > div { margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.pas-it em { font: 700 10px/1 var(--titre); text-transform: uppercase; letter-spacing: .05em; color: var(--t4); font-style: normal; width: 100%; }
.it { display: inline-flex; align-items: center; gap: 5px; background: rgba(0,0,0,.4); border-radius: var(--r4); padding: 3px 7px 3px 3px; color: #fff; font-size: 12px; text-decoration: none; }
a.it:hover { background: #fff; color: #000; text-decoration: none; }
.it img { width: 26px; height: 26px; object-fit: contain; }
.it .q { font: 800 11px/1 var(--titre); color: var(--or); }
.it small { color: var(--t3); font-size: 11px; }
.it.argent { padding: 6px 8px; } .it.argent b { color: var(--ok); }
.vide { color: var(--t4); font-size: 12px; }
.fi-infos { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; margin: 10px 0; }
.fi-infos dt { font: 700 12px/1.5 var(--titre); color: var(--t3); }
.fi-infos dd { margin: 0; color: var(--t2); font-size: 14px; line-height: 1.55; }
.fi-mat summary { cursor: pointer; font: 700 13px/1.4 var(--titre); color: var(--t2); margin: 8px 0; }
@media (max-width: 760px) { ol.pas > li { grid-template-columns: 72px 1fr; } .prop { width: 72px; min-height: 72px; } .prop img { width: 48px; height: 48px; } .pas-it { grid-column: 1 / -1; } .fi-infos { grid-template-columns: 1fr; } }
