*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0B0B09;
  --bg2: #13101A;
  --bg3: #1B1724;
  --text: #F0EDE6;
  --text-soft: #C8C4BC;
  --text-muted: #8B8578;
  --accent: #7B5CBF;
  --accent-light: #A07DE0;
  --accent-pale: rgba(123,92,191,0.16);
  --gold: #C8A035;
  --good: #5CC08A;
  --danger: #F5793A;
  --border: rgba(240,237,230,0.09);
  --border-accent: rgba(123,92,191,0.35);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100dvh; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input { font: inherit; }
[hidden] { display: none !important; }

.wrap { max-width: 520px; margin: 0 auto; padding: 0 16px calc(28px + env(safe-area-inset-bottom)); }

/* Nav (reprend la page de vente) */
nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 12px; }
.nav-id { display: flex; align-items: center; gap: 9px; min-width: 0; }
.nav-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-light); flex-shrink: 0; }
.nav-name { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; line-height: 1.2; }
.nav-sub { font-size: 11.5px; color: var(--text-muted); font-weight: 500; }
.nav-out { font-size: 12.5px; font-weight: 600; color: var(--text-muted); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; flex-shrink: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--accent-light); padding: 8px 12px 8px 4px; }

.eyebrow { font-size: 12px; font-weight: 700; color: var(--accent-light); display: flex; align-items: center; gap: 7px; letter-spacing: 0.05em; text-transform: uppercase; margin: 10px 0 12px; }
.eyebrow::before { content: '●'; font-size: 8px; }
h1 { font-family: var(--font-display); font-size: clamp(28px, 8vw, 38px); font-weight: 800; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; margin-bottom: 10px; }
h1 .hl { color: var(--accent-light); }
h2 { font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.lead { color: var(--text-soft); font-size: 15.5px; max-width: 44ch; }
.muted { color: var(--text-muted); font-size: 13px; }
.label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-light); margin: 28px 0 10px; }
.label.soon { color: var(--gold); }

/* Boutons */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: var(--accent); color: #fff; font-family: var(--font-display); font-size: 16px; font-weight: 700; padding: 16px 20px; border-radius: 14px; }
.btn:disabled { opacity: .45; }
.btn-ghost { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; color: var(--accent-light); border: 2px solid var(--accent); font-family: var(--font-display); font-size: 15px; font-weight: 700; padding: 13px 18px; border-radius: 12px; }
.btn-row { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.link { color: var(--accent-light); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; }

/* Login */
.login { padding-top: 6vh; }
.field { width: 100%; background: var(--bg2); border: 1px solid var(--border-accent); color: var(--text); border-radius: 12px; padding: 15px 16px; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; margin: 18px 0 12px; }
.field:focus { outline: 2px solid var(--accent-light); outline-offset: 1px; }
.error { color: var(--danger); font-size: 14px; font-weight: 600; min-height: 1.4em; }

/* Grille aliments */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card { background: var(--bg2); border: 1px solid var(--border-accent); border-radius: 16px; padding: 16px 14px; text-align: left; display: flex; flex-direction: column; gap: 6px; min-height: 118px; transition: transform .12s, border-color .12s; }
.card:active { transform: scale(.97); border-color: var(--accent-light); }
.card .em { font-size: 28px; line-height: 1; }
.card .nm { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; line-height: 1.2; }
.card .q { font-size: 12.5px; color: var(--text-muted); font-weight: 500; line-height: 1.35; }
.mini { background: var(--bg2); border: 1px solid rgba(200,160,53,0.2); border-radius: 10px; padding: 11px 13px; display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-soft); }
.mini span:first-child { font-size: 17px; }

/* Scanner */
.viewer { position: relative; width: 100%; aspect-ratio: 3/4; max-height: 62dvh; background: #000; border-radius: 20px; overflow: hidden; border: 1px solid var(--border-accent); margin-top: 6px; }
.viewer video { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame { position: absolute; left: 10%; right: 10%; top: 36%; height: 26%; border-radius: 14px; box-shadow: 0 0 0 999px rgba(11,11,9,.55); }
.frame::before, .frame::after { content: ''; position: absolute; inset: 0; border-radius: 14px; border: 2px solid var(--accent-light); }
.frame::after { border: 0; height: 2px; top: 50%; background: var(--danger); box-shadow: 0 0 12px var(--danger); animation: sweep 1.8s ease-in-out infinite; inset: auto 6px; }
@keyframes sweep { 0%,100% { top: 15%; } 50% { top: 85%; } }
@media (prefers-reduced-motion: reduce) { .frame::after { animation: none; top: 50%; } }
.viewer-msg { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-weight: 600; font-size: 14px; padding: 0 16px; text-shadow: 0 1px 6px #000; }
.viewer-off { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; color: var(--text-soft); font-size: 14.5px; }
.viewer-off .big { font-size: 40px; }
.manual { display: flex; gap: 8px; margin-top: 12px; }
.manual .field { margin: 0; letter-spacing: .04em; font-size: 16px; text-transform: none; }
.manual .btn { width: auto; padding: 0 18px; }

/* Photos */
.slots { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.slot { display: flex; align-items: center; gap: 12px; background: var(--bg2); border: 1px dashed var(--border-accent); border-radius: 14px; padding: 12px; text-align: left; width: 100%; position: relative; }
.slot.filled { border-style: solid; border-color: var(--accent); }
.slot .thumb { width: 58px; height: 58px; border-radius: 10px; background: var(--accent-pale); display: grid; place-items: center; font-size: 22px; flex-shrink: 0; overflow: hidden; }
.slot .thumb img { width: 100%; height: 100%; object-fit: cover; }
.slot .sl { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.slot .sm { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.slot input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.notice { background: var(--bg2); border: 1px solid var(--border); border-left: 3px solid var(--accent-light); border-radius: 8px; padding: 12px 14px; font-size: 14px; color: var(--text-soft); margin-top: 14px; }
.notice b { color: var(--text); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-muted); margin-top: 14px; line-height: 1.45; }
.consent input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }

/* Chargement */
.loading { min-height: 60dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--accent-pale); border-top-color: var(--accent-light); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Résultat */
.verdict { border-radius: 24px; padding: 24px 22px; margin-top: 6px; }
.verdict .vb { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.22); }
.verdict h2 { font-size: clamp(25px, 7vw, 30px); margin: 14px 0 4px; }
.verdict .rank { font-family: var(--font-display); font-weight: 700; font-size: 15px; opacity: .9; }
.verdict p { margin-top: 12px; font-size: 15px; line-height: 1.55; }
.v-top { background: linear-gradient(155deg, var(--accent) 0%, #5A4491 100%); color: #fff; }
.v-good { background: var(--bg2); border: 1px solid rgba(92,192,138,.45); }
.v-good .vb { color: var(--good); background: rgba(92,192,138,.12); }
.v-ok { background: var(--bg2); border: 1px solid rgba(200,160,53,.45); }
.v-ok .vb { color: var(--gold); background: rgba(200,160,53,.12); }
.v-avoid { background: var(--bg2); border: 1px solid rgba(245,121,58,.5); }
.v-avoid .vb { color: var(--danger); background: rgba(245,121,58,.12); }
.v-unknown { background: var(--bg2); border: 1px dashed var(--border-accent); }
.v-unknown .vb { color: var(--accent-light); background: var(--accent-pale); }
.v-good p, .v-ok p, .v-avoid p, .v-unknown p { color: var(--text-soft); }
.product { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.product img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; background: #fff; flex-shrink: 0; }
.product .pn { font-weight: 700; font-size: 15px; line-height: 1.3; }
.product .pb { font-size: 13px; color: var(--text-muted); }
.checks { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.checks li { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; display: flex; gap: 10px; font-size: 14.5px; font-weight: 500; line-height: 1.4; }
.checks li .ic { flex-shrink: 0; }
.alts { display: flex; flex-direction: column; gap: 8px; }
.alt { background: var(--bg2); border: 1px solid var(--border-accent); border-radius: 12px; padding: 12px 14px; }
.alt .an { font-weight: 700; font-size: 14.5px; }
.alt .ad { font-size: 13px; color: var(--text-muted); }
.source { font-size: 12.5px; color: var(--text-muted); margin-top: 22px; line-height: 1.5; }
.contrib { margin-top: 12px; font-size: 13.5px; font-weight: 600; padding: 10px 13px; border-radius: 10px; background: var(--accent-pale); color: var(--accent-light); }

/* ---------- Fiche « Vérifié par Steven » ---------- */
.vrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.verified { font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; background: var(--accent); color: #fff; }
.v-top .verified { background: rgba(255,255,255,.18); }
.draft-flag { color: var(--gold) !important; font-weight: 700; font-size: 13.5px !important; }
.gallery { display: flex; gap: 8px; overflow-x: auto; margin-top: 14px; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.gallery img { height: 150px; border-radius: 12px; flex-shrink: 0; scroll-snap-align: start; background: var(--bg2); }
.opinion { background: var(--bg2); border: 1px solid var(--border-accent); border-left: 3px solid var(--accent-light); border-radius: 10px; padding: 14px 16px; font-size: 15px; color: var(--text); }
.opinion p + p, .opinion p + ul, .opinion ul + p { margin-top: 10px; }
.opinion ul { padding-left: 20px; }
.opinion li + li { margin-top: 4px; }
.opinion b { color: var(--accent-light); }
.prices { display: flex; flex-direction: column; gap: 6px; }
.price { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 13px; }
.price .pp { font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.price .pw { font-size: 13.5px; color: var(--text-soft); min-width: 0; }
.price .pd { font-size: 12px; color: var(--text-muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent-pale); color: var(--accent-light); }
details.more { margin-top: 16px; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; font-size: 14px; color: var(--text-soft); }
details.more summary { cursor: pointer; font-weight: 600; color: var(--text); }
details.more p { margin-top: 8px; }

/* ---------- Admin ---------- */
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding: 12px; border-radius: 14px; border: 1px dashed rgba(200,160,53,.5); background: rgba(200,160,53,.06); }
.ab-t { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); flex-basis: 100%; }
.btn-sm { flex: 1; font-family: var(--font-display); font-weight: 700; font-size: 14px; padding: 11px 12px; border-radius: 11px; border: 2px solid var(--accent); color: var(--accent-light); }
.btn-sm.solid { background: var(--accent); color: #fff; }
.btn-ghost.sm { font-size: 14px; padding: 10px 14px; margin-top: 10px; }
.filters { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.items { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 13px; }
.li-ic { font-size: 20px; flex-shrink: 0; }
.li-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.li-n { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.li-s { font-size: 12.5px; color: var(--text-muted); }
.pill { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; flex-shrink: 0; }
.pill.published { background: rgba(92,192,138,.14); color: var(--good); }
.pill.draft { background: rgba(200,160,53,.14); color: var(--gold); }

.pform { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.fset { border: 1px solid var(--border); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg2); min-width: 0; }
.fset legend { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-light); padding: 0 6px; }
.fl { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); min-width: 0; }
.inp { width: 100%; min-width: 0; background: var(--bg); border: 1px solid var(--border-accent); color: var(--text); border-radius: 10px; padding: 11px 12px; font-size: 16px; font-family: var(--font-body); }
textarea.inp { resize: vertical; line-height: 1.45; }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent-light) 50%), linear-gradient(135deg, var(--accent-light) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.inp:focus { outline: 2px solid var(--accent-light); outline-offset: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.four .inp { padding: 10px 8px; }
@media (max-width: 380px) { .four { grid-template-columns: 1fr 1fr; } }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 10px; border: 1px solid var(--border-accent); font-size: 20px; cursor: pointer; text-align: center; }
.seg small { font-size: 10.5px; font-weight: 700; color: var(--text-muted); line-height: 1.2; }
.seg input:checked + span { background: var(--accent); border-color: var(--accent-light); }
.seg input:checked + span small { color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--accent-light); }
.sug { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--text-soft); background: var(--accent-pale); border-radius: 10px; padding: 8px 12px; }
.sug .link { padding: 4px 0; flex-shrink: 0; }
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg); border: 1px solid var(--border-accent); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph.off span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; font-weight: 700; text-align: center; background: rgba(0,0,0,.6); padding: 3px; }
.ph.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 22px; border-style: dashed; cursor: pointer; }
.ph.add span { font-size: 12px; font-weight: 600; color: var(--accent-light); }
.ph.add input { position: absolute; inset: 0; opacity: 0; }
.ph-x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; background: rgba(11,11,9,.8); color: #fff; font-size: 18px; line-height: 1; }
.pc-row { display: grid; grid-template-columns: 64px 1fr 36px; gap: 6px; align-items: center; }
.pc-row select.inp { padding: 10px 6px; background-image: none; text-align: center; }
.row-x { height: 40px; border-radius: 10px; color: var(--text-muted); font-size: 22px; }
.pr-row { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); }
.pr-row .inp { background: var(--bg2); }
.link.danger { color: var(--danger); align-self: flex-start; font-size: 13px; }
.actions { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 12px 0 calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 22%); }
.actions .btn, .actions .btn-ghost { padding: 14px 10px; }

/* ---------- Onglets ---------- */
body.has-tabs .wrap { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; background: rgba(19,16,26,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border-accent); padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); }
.tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; border-radius: 12px; font-family: var(--font-display); font-weight: 700; font-size: 12.5px; color: var(--text-muted); }
.tabbar .tb-ic { font-size: 21px; filter: grayscale(1); opacity: .6; }
.tabbar button.on { color: var(--accent-light); background: var(--accent-pale); }
.tabbar button.on .tb-ic { filter: none; opacity: 1; }
body.has-tabs .actions { bottom: calc(64px + env(safe-area-inset-bottom)); }
body.has-tabs #toast { bottom: calc(84px + env(safe-area-inset-bottom)); }

/* ---------- Guides ---------- */
.loading.small { min-height: 30dvh; }
.glist { display: flex; flex-direction: column; gap: 8px; }
.gitem { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--bg2); border: 1px solid var(--border-accent); border-radius: 14px; padding: 15px 16px; transition: transform .12s; }
.gitem:active { transform: scale(.98); }
.gi-em { font-size: 24px; flex-shrink: 0; }
.gi-n { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; flex: 1; }
.chev { color: var(--accent-light); font-size: 22px; font-weight: 700; line-height: 1; }
.mini.wip { border-color: var(--border); color: var(--text-muted); }
.g-head { margin: 4px 0 14px; }
.g-em { font-size: 40px; display: block; margin-bottom: 6px; }
.g-scan { margin-bottom: 8px; }

.guide { font-size: 15.5px; line-height: 1.65; color: var(--text-soft); overflow-wrap: anywhere; }
.guide h2 { font-size: 22px; color: var(--text); margin: 30px 0 12px; }
.guide h3 { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--text); margin: 22px 0 10px; }
.guide p { margin: 10px 0; }
.guide b { color: var(--text); }
.guide i { color: var(--text-soft); }
.guide ul, .guide ol { margin: 10px 0; padding-left: 22px; }
.guide li { margin: 6px 0; }
.guide li::marker { color: var(--accent-light); font-weight: 700; }
.guide hr { border: 0; height: 1px; background: var(--border); margin: 22px 0; }
.guide a { color: var(--accent-light); text-underline-offset: 3px; }
.guide code { font-size: .9em; background: var(--bg3); padding: 1px 5px; border-radius: 5px; }
.guide blockquote { border-left: 3px solid var(--accent-light); padding: 4px 0 4px 14px; margin: 12px 0; color: var(--text); }
.guide .tbl { overflow-x: auto; margin: 14px -16px; padding: 0 16px; -webkit-overflow-scrolling: touch; }
.guide table { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: 14px; line-height: 1.4; background: var(--bg2); border: 1px solid var(--border-accent); border-radius: 12px; overflow: hidden; }
.guide th, .guide td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); min-width: 7.5em; overflow-wrap: normal; word-break: normal; hyphens: auto; }
.guide th { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-light); background: var(--accent-pale); }
.guide tr:last-child td { border-bottom: 0; }
.guide td { color: var(--text); }
.guide .callout { display: flex; gap: 10px; background: var(--bg2); border: 1px solid var(--border); border-left: 3px solid var(--accent-light); border-radius: 10px; padding: 12px 14px; margin: 14px 0; }
.guide .callout p { margin: 0; }
.guide .co-ic { font-size: 18px; }
.guide details.n-toggle { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin: 12px 0; }
.guide details.n-toggle summary { cursor: pointer; color: var(--text); font-weight: 600; }
.guide details.n-toggle summary h2, .guide details.n-toggle summary h3 { display: inline; margin: 0; }
.guide figure { margin: 16px 0; }
.guide figure img { max-width: 100%; border-radius: 12px; display: block; }
.guide figcaption { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.guide .subpage { display: flex; align-items: center; gap: 12px; text-decoration: none; background: var(--accent-pale); border: 1px solid var(--border-accent); border-radius: 14px; padding: 15px 16px; margin: 14px 0; color: var(--text); font-weight: 600; }
.guide .subpage span:nth-child(2) { flex: 1; }
.guide .todos { list-style: none; padding-left: 0; }
.guide [class^="nc-"] { color: inherit; }
.guide .nc-red, .guide .nc-orange { color: var(--danger); }
.guide .nc-green { color: var(--good); }
.guide .nc-purple, .guide .nc-blue { color: var(--accent-light); }
.guide .nc-yellow, .guide .nc-brown { color: var(--gold); }
.guide .nc-gray { color: var(--text-muted); }
.guide [class$="_background"] { background: var(--accent-pale); border-radius: 4px; padding: 0 3px; }

/* ---------- Recette variable / infos admin ---------- */
.variable { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(200,160,53,.1); border: 1px solid rgba(200,160,53,.45); font-size: 14.5px; color: var(--text); }
.variable b { color: var(--gold); }
.warn-note { margin: 0 0 12px; border-color: rgba(245,121,58,.5); background: rgba(245,121,58,.08); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-soft); line-height: 1.45; padding: 10px 12px; border: 1px dashed rgba(200,160,53,.45); border-radius: 10px; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--gold); flex-shrink: 0; }
.check b { color: var(--text); }
.admin-off { margin-top: 16px; border: 1px dashed rgba(200,160,53,.5); background: rgba(200,160,53,.06); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; color: var(--text-soft); }
.admin-off summary { cursor: pointer; font-weight: 700; color: var(--gold); font-size: 12.5px; letter-spacing: .03em; }
.admin-off ul { list-style: none; margin: 8px 0; display: flex; flex-direction: column; gap: 4px; }
.admin-off a { color: var(--accent-light); font-weight: 600; font-size: 13px; }

/* ---------- Photos : agrandissement, guides, alternatives ---------- */
img[data-zoom] { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(11,11,9,.94); display: flex; align-items: center; justify-content: center; padding: 16px; padding-top: calc(16px + env(safe-area-inset-top)); animation: lb-in .15s ease-out; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.lightbox button { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border-radius: 50%; background: var(--bg3); border: 1px solid var(--border-accent); color: #fff; font-size: 26px; line-height: 1; }
@keyframes lb-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lightbox { animation: none; } }

.guide td.brand-cell { min-width: 9em; }
.guide th.num, .guide td.num { min-width: 0; width: 1%; padding-right: 4px; color: var(--text-muted); }
.guide .row-ph { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 8px; margin-bottom: 6px; background: #fff; }
.guide .row-tools { display: inline-flex; gap: 6px; margin-left: 6px; vertical-align: middle; }
.guide .row-btn { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px dashed rgba(200,160,53,.6); background: rgba(200,160,53,.08); color: var(--gold); font-size: 15px; font-weight: 700; cursor: pointer; overflow: hidden; }
.guide .row-btn input { position: absolute; inset: 0; opacity: 0; }
.guide .row-btn.del { color: var(--danger); border-color: rgba(245,121,58,.5); background: rgba(245,121,58,.08); }

.alt { display: flex; align-items: center; gap: 12px; }
.alt-ph { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex-shrink: 0; background: #fff; }
.alt-tx { min-width: 0; }

.ph-r { position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: rgba(11,11,9,.8); color: #fff; font-size: 16px; display: grid; place-items: center; overflow: hidden; cursor: pointer; }
.ph-r input { position: absolute; inset: 0; opacity: 0; }

/* ---------- Modification des guides ---------- */
.edit-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(200,160,53,.5); background: rgba(200,160,53,.06); font-size: 13.5px; font-weight: 600; color: var(--gold); }
.edit-bar span { flex: 1; }
.edit-bar .btn-sm { flex: 0 0 auto; }
.guide.editing [data-b] { outline: 1px dashed rgba(200,160,53,.45); outline-offset: 3px; border-radius: 4px; cursor: pointer; }
.guide.editing tr[data-b] { outline-offset: -2px; }
.guide.editing [data-b]:hover { outline-color: var(--gold); background: rgba(200,160,53,.05); }
.sheet { position: fixed; inset: 0; z-index: 90; background: rgba(11,11,9,.6); display: flex; align-items: flex-end; justify-content: center; }
.sheet-in { width: 100%; max-width: 560px; max-height: 88dvh; overflow-y: auto; background: var(--bg2); border: 1px solid var(--border-accent); border-bottom: 0; border-radius: 20px 20px 0 0; padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.sheet-h { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-size: 17px; }
.sheet-x { width: 36px; height: 36px; border-radius: 50%; background: var(--bg3); font-size: 22px; line-height: 1; }
.sheet-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.ed-add { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.ed-add .btn-ghost { width: auto; padding: 11px 14px; font-size: 14px; }

/* ---------- Marques, versions, références dans les guides ---------- */
.traits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.trait { font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(92,192,138,.12); color: var(--good); }
.where { display: flex; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--text-soft); }
.where b { color: var(--text); }
.brandbox { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 4px 14px 14px; }
.brandbox .opinion { margin-top: 12px; }
.versions { display: flex; flex-direction: column; gap: 8px; }
.version { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--bg2); border: 1px solid var(--border-accent); border-radius: 12px; padding: 10px 12px; }
.version img, .version .v-ph { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--bg3); display: grid; place-items: center; font-size: 20px; }
.v-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.v-n { font-weight: 700; font-size: 15px; }
.v-r { font-size: 12.5px; color: var(--text-muted); }
.v-ic { font-size: 20px; }
.item.child { margin-left: 18px; width: calc(100% - 18px); border-style: dashed; }
.two-btn { flex-direction: row; }
.two-btn .btn { flex: 1.3; }
.two-btn .btn-ghost { flex: 1; }
.guide .myrefs { margin: 26px 0; padding: 16px; border-radius: 16px; border: 1px solid var(--border-accent); background: linear-gradient(180deg, var(--accent-pale), transparent); }
.guide .myrefs h2 { margin: 0 0 4px; }
.guide .myrefs .muted { margin: 0 0 12px; }
.refcard { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--bg2); border: 1px solid var(--border-accent); border-radius: 12px; padding: 10px 12px; margin-top: 8px; color: var(--text); }
.refcard img, .refcard .rc-ph { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--bg3); display: grid; place-items: center; font-size: 20px; }
.rc-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rc-b { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; color: var(--accent-light); text-transform: uppercase; }
.rc-n { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; line-height: 1.25; }
.rc-s { font-size: 12.5px; color: var(--text-muted); line-height: 1.35; }

/* ---------- Recadrage des photos ---------- */
.crop-modal { position: fixed; inset: 0; z-index: 120; background: var(--bg); display: flex; flex-direction: column; padding: calc(10px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom)); gap: 10px; }
.crop-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.crop-top b { font-family: var(--font-display); font-size: 16px; }
.crop-top button { font-family: var(--font-display); font-weight: 700; font-size: 15px; padding: 10px 14px; border-radius: 10px; color: var(--accent-light); }
.crop-top button.solid { background: var(--accent); color: #fff; }
.crop-area { flex: 1; min-height: 0; border-radius: 12px; overflow: hidden; background: #000; }
.crop-area img { display: block; max-width: 100%; }
.crop-tools { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.crop-tools button { font-size: 13.5px; font-weight: 600; padding: 9px 12px; border-radius: 999px; border: 1px solid var(--border-accent); color: var(--text-soft); }
.crop-tools button.on { background: var(--accent); border-color: var(--accent-light); color: #fff; }
.crop-hint { text-align: center; font-size: 12.5px; color: var(--text-muted); }
.crop-modal .cropper-view-box { outline-color: var(--accent-light); }
.crop-modal .cropper-line, .crop-modal .cropper-point { background-color: var(--accent-light); }
.crop-modal .cropper-point { width: 12px; height: 12px; opacity: 1; }

/* ---------- Codes-barres des lignes de guide, ajout au guide ---------- */
.bc-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.bc-row .btn-ghost { width: auto; padding: 0 16px; font-size: 18px; }
.guide .row-credit { display: block; font-size: 10.5px; color: var(--text-muted); margin: -2px 0 6px; }
.guide .row-code { display: inline-grid; place-items: center; height: 30px; padding: 0 8px; border-radius: 8px; background: rgba(92,192,138,.12); color: var(--good); font-size: 12px; font-weight: 700; }
.check.gt { border-style: solid; border-color: var(--border-accent); }
.check.gt small { color: var(--text-muted); font-size: 12px; }
.tf { display: flex; flex-direction: column; gap: 8px; }
.gt-ph { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; vertical-align: middle; margin-right: 6px; }

.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 6px 0 4px; }
.st-tile { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 13px 14px; min-width: 0; }
.st-v { font-family: var(--font-display); font-size: 28px; font-weight: 800; line-height: 1.1; display: flex; align-items: center; gap: 8px; }
.st-v small { font-size: 15px; color: var(--text-muted); font-weight: 600; }
.st-l { font-size: 13px; font-weight: 700; color: var(--text-soft); margin-top: 3px; }
.st-s { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.4; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(92,192,138,.18); flex-shrink: 0; }
.st-gauge { display: block; height: 5px; background: var(--bg3); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.st-gauge span { display: block; height: 100%; background: var(--accent-light); border-radius: 3px; }
.st-bars { display: flex; flex-direction: column; gap: 7px; }
.st-row { display: grid; grid-template-columns: minmax(0, 40%) 1fr auto; align-items: center; gap: 10px; font-size: 13.5px; }
.st-k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-soft); }
.st-track { height: 10px; background: var(--bg3); border-radius: 5px; overflow: hidden; }
.st-fill { display: block; height: 100%; background: var(--accent-light); border-radius: 0 4px 4px 0; }
.st-n { font-weight: 700; min-width: 2ch; text-align: right; }
.st-cols { display: flex; align-items: flex-end; gap: 6px; height: 130px; padding-top: 18px; }
.st-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.st-cn { font-size: 12px; font-weight: 700; color: var(--text-soft); }
.st-cbar { width: 100%; max-width: 34px; background: var(--accent-light); border-radius: 4px 4px 0 0; }
.st-cd { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.st-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.st-table th { text-align: left; font-size: 12px; color: var(--text-muted); font-weight: 700; padding: 6px 4px; border-bottom: 1px solid var(--border); }
.st-table td { padding: 9px 4px; border-bottom: 1px solid var(--border); vertical-align: middle; word-break: break-word; }
.st-table small { color: var(--text-muted); }
#st-q { margin-bottom: 10px; }
.st-upd { margin-top: 14px; font-size: 12px; }
.vt-groups { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.chip { border: 1px solid var(--border); background: var(--bg2); color: var(--text); border-radius: 999px; padding: 6px 11px; font-size: 13px; font-family: inherit; cursor: pointer; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.vt-card { border: 1px solid var(--border); border-radius: 14px; padding: 13px 14px; background: var(--bg2); cursor: pointer; }
.vt-card.v-top, .vt-card.v-good { border-color: rgba(76,175,110,.35); }
.vt-card.v-ok { border-color: rgba(200,160,53,.35); }
.vt-card.v-avoid { border-color: rgba(214,84,84,.35); }
.vt-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; font-size: 12.5px; font-weight: 700; }
.vt-mod { color: var(--gold); font-size: 12px; }
.vt-title { font-weight: 800; font-size: 16.5px; margin-top: 6px; }
.vt-card p { margin: 6px 0 0; color: var(--text-soft); font-size: 14px; line-height: 1.5; }
.vt-var { color: var(--accent-light); font-weight: 700; }
.vt-form { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; cursor: default; }
.vt-form .label { margin: 6px 0 0; }
.vt-form textarea { resize: vertical; font-family: inherit; }
.vt-vars, .vt-orig { font-size: 12.5px; line-height: 1.6; color: var(--text-muted); }
.vt-vars .chip { padding: 2px 8px; font-size: 12px; }
.omega-edit { margin-top: 12px; padding: 12px; border: 1px dashed rgba(200,160,53,.6); border-radius: 12px; }
.omega-edit .label { margin-top: 0; }
.oe-row { display: flex; gap: 8px; }
.oe-row .inp { flex: 1; min-width: 0; }
.btn-ghost.admin-act { border-style: dashed; border-color: rgba(200,160,53,.6); color: var(--gold); }

/* ---------- Valeurs nutritionnelles, oméga-3 ---------- */
.nutri { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.nutri-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 14px; border-top: 1px solid var(--border); }
.nutri-row:first-child { border-top: 0; }
.nutri-row span:last-child { font-weight: 600; color: var(--text); white-space: nowrap; }
.nutri-row span:first-child { color: var(--text-soft); }
.nutri-hl { display: flex; flex-direction: column; gap: 2px; padding: 14px; background: linear-gradient(135deg, rgba(92,192,138,.16), rgba(92,192,138,.04)); border-bottom: 1px solid rgba(92,192,138,.3); }
.nutri-hl.bad { background: linear-gradient(135deg, rgba(245,121,58,.16), rgba(245,121,58,.04)); border-bottom-color: rgba(245,121,58,.3); }
.nutri-hl.bad .nh-v { color: var(--danger); }
.nh-v { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--good); line-height: 1.05; }
.nh-l { font-weight: 700; font-size: 14px; color: var(--text); }
.nh-s { font-size: 13.5px; color: var(--text-soft); }
.nh-s b { color: var(--good); }
.checks li.omega { border-color: rgba(92,192,138,.45); background: rgba(92,192,138,.08); font-weight: 600; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.three .inp { padding: 10px 8px; }
.omega-calc { font-size: 13.5px; font-weight: 600; color: var(--good); background: rgba(92,192,138,.08); border-radius: 10px; padding: 9px 12px; }

.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.pick { display: flex; flex-direction: column; gap: 10px; }

.field-email { text-transform: none; letter-spacing: 0; margin-bottom: 0; }

.btn-sm.review { flex-basis: 100%; border-style: dashed; border-color: rgba(200,160,53,.6); color: var(--gold); }
.prop { display: flex; gap: 12px; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.prop > img, .prop > .v-ph { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--bg3); display: grid; place-items: center; font-size: 22px; }
.prop-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.prop-act { display: flex; gap: 8px; margin-top: 8px; }

#toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--bg3); color: var(--text); border: 1px solid var(--border-accent); padding: 11px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; max-width: calc(100% - 32px); transition: opacity .2s, transform .2s; z-index: 50; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { border-color: var(--danger); color: var(--danger); }
.st-table .btn-sm { white-space: nowrap; padding: 6px 10px; }
.st-table td:nth-child(2) { white-space: nowrap; font-size: 12.5px; }
.st-gift { display: flex; gap: 8px; }
.st-gift .inp { flex: 1; }
.st-gift-help { font-size: 12.5px; margin: 6px 0 4px; }
