/* Vigie Allergènes : thème « Vitaminé » (orange agrume, jaune citron, titres en capitales) */
:root{
  color-scheme:light;
  --bg:#FFF6EA; --surface:#FFFFFF; --surface-2:#FFFAF3;
  --ink:#24170A; --muted:#7A6450; --faint:#A08A74; --line:#F1DFC8;
  --brand:#E85A0C; --brand-ink:#FFFFFF; --brand-2:#C24A00; --sage:#FFE9D2; --sage-2:#FFD9B3;
  --hero:#FF6A13; --hero-2:#FF7B25; --hero-ink:#FFFFFF; --hero-muted:#FFE3CC;
  --sun:#FFC928; --sun-ink:#24170A;
  --gold:#9A7000; --gold-soft:#FFF3C4; --gold-line:#F4D77A;
  --prem:#24170A; --prem-ink:#FFF6EA; --prem-muted:#D9C3AB;
  --red:#D7263D; --red-soft:#FFE6E6; --amber:#B86E00; --amber-soft:#FFF1D6;
  --slate:#6B5A4A; --slate-soft:#F6EDE2; --ok:#23964A; --ok-soft:#E3F5E7;
  --mark:#FFE08A;
  --shadow-sm:0 1px 2px rgba(60,30,0,.06);
  --shadow:0 1px 2px rgba(60,30,0,.06),0 8px 24px rgba(120,60,0,.08);
  --f-display:"Archivo","Arial Black",system-ui,sans-serif;
  --f-body:"Figtree",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --f-mono:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;
  --tabbar-h:64px;
}
@media (prefers-color-scheme: dark){
  :root{
    color-scheme:dark;
    --bg:#15100A; --surface:#1F1811; --surface-2:#241C14;
    --ink:#FBEFE2; --muted:#C2AD97; --faint:#8F7B67; --line:#3A2E22;
    --brand:#FF7A2A; --brand-ink:#1A0F05; --brand-2:#FF9A55; --sage:#3A2412; --sage-2:#4A2E16;
    --hero:#E8590C; --hero-2:#F26A1B; --hero-ink:#FFFFFF; --hero-muted:#FFE0C7;
    --sun:#FFC928; --sun-ink:#24170A;
    --gold:#FFC928; --gold-soft:#2E2610; --gold-line:#5A4A18;
    --prem:#2A1D10; --prem-ink:#FFF6EA; --prem-muted:#CDB59A;
    --red:#FF7A85; --red-soft:#3A1419; --amber:#FFB547; --amber-soft:#34240C;
    --slate:#CDB9A4; --slate-soft:#2A2119; --ok:#6FD58E; --ok-soft:#12301C;
    --mark:#6A4A0E;
    --shadow-sm:0 1px 2px rgba(0,0,0,.35);
    --shadow:0 1px 2px rgba(0,0,0,.35),0 8px 24px rgba(0,0,0,.3);
  }
}

*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:16px;line-height:1.5}
img{max-width:100%}
button,input{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--brand-2);outline-offset:2px}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

.app{max-width:480px;margin:0 auto;min-height:100vh;padding-bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom,0px) + 16px)}
.view{display:block}
.stack{padding-inline:20px;padding-block:8px 24px;display:flex;flex-direction:column;gap:22px}

/* ---- Barre du haut ---- */
.bar{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:calc(env(safe-area-inset-top,0px) + 10px) 20px 10px;background:color-mix(in srgb,var(--bg) 90%,transparent);
  backdrop-filter:saturate(1.4) blur(12px);-webkit-backdrop-filter:saturate(1.4) blur(12px)}
.logo{font-family:var(--f-display);font-style:italic;font-weight:500;font-size:28px;letter-spacing:-.01em;color:var(--brand);line-height:1}
.bar-title{margin:0;font-family:var(--f-display);font-weight:500;font-size:30px;letter-spacing:-.01em;line-height:1.1}
.avatar{width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--brand);font-weight:700;font-size:15px;display:grid;place-items:center}
.avatar svg{width:20px;height:20px}

/* ---- Typo ---- */
h1,h2{text-wrap:balance}
.greet h1{margin:4px 0 4px;font-family:var(--f-display);font-weight:500;font-size:36px;line-height:1.08;letter-spacing:-.015em}
.greet h1 em{font-style:italic;color:var(--brand)}
.lede{margin:0;color:var(--muted);font-size:16.5px}
.hint{margin:0;color:var(--muted);font-size:14px}
.fine{margin:0;color:var(--faint);font-size:12.5px;line-height:1.45}
.fine a{color:var(--brand-2);font-weight:600;text-underline-offset:2px}
.code-form{display:flex;flex-direction:column;gap:8px;padding-top:4px}
.code-form label{font-weight:600;font-size:14.5px}
.code-row{display:flex;gap:8px}
.code-row .input{flex:1;min-width:0;text-transform:uppercase}
/* Hors connexion */
.net-box{display:flex;flex-direction:column;gap:12px;padding:14px 16px}
.net-line{margin:0;display:flex;gap:10px;align-items:flex-start;font-size:14.5px;line-height:1.45;color:var(--muted)}
.net-line b{color:var(--ink)}
.net-line svg,.offline-note svg{flex:none;width:20px;height:20px;margin-top:1px;fill:none;stroke:var(--brand-2);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.net-box .list{box-shadow:none}
.offline-note{margin:0;display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:12px;background:var(--amber-soft);color:var(--ink);font-size:14.5px;line-height:1.45}
.offline-note svg{stroke:var(--amber)}
.opt{font-weight:400;color:var(--faint);font-size:13px}
.block{display:flex;flex-direction:column;gap:10px}
.block-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.block-head h2{margin:0;font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.link{background:none;border:0;padding:4px 0;color:var(--brand-2);font-weight:600;font-size:14.5px}
.mono{font-family:var(--f-mono)}

.mini-icons{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.mini-icons span{width:32px;height:32px;border-radius:50%;background:var(--sage);color:var(--brand);display:grid;place-items:center}
.mini-icons svg{width:18px;height:18px}
.mini-icons .more{font-size:12px;font-weight:700}

/* ---- Bouton scan (hero) ---- */
.hero{position:relative;overflow:hidden;display:flex;align-items:center;gap:14px;width:100%;text-align:left;border:0;border-radius:22px;
  padding:24px 20px;background:linear-gradient(135deg,var(--hero-2),var(--hero));color:var(--hero-ink);box-shadow:var(--shadow);transition:transform .12s}
.hero:active{transform:scale(.985)}
.hero-lines{position:absolute;right:-8px;top:0;bottom:0;width:46%;opacity:.13;
  background:repeating-linear-gradient(90deg,var(--hero-ink) 0 3px,transparent 3px 7px,var(--hero-ink) 7px 8px,transparent 8px 12px,var(--hero-ink) 12px 16px,transparent 16px 19px);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 60%);mask-image:linear-gradient(90deg,transparent,#000 60%)}
.hero-txt{position:relative;flex:1;display:flex;flex-direction:column;gap:2px}
.hero-kicker{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--hero-muted);font-weight:600}
.hero strong{font-family:var(--f-display);font-weight:500;font-size:28px;line-height:1.1;letter-spacing:-.01em}
.hero-sub{font-size:14.5px;color:var(--hero-muted)}
.hero-go{position:relative;flex:none;width:52px;height:52px;border-radius:50%;background:var(--hero-ink);color:var(--hero);display:grid;place-items:center}
.hero-go svg{stroke-width:2}

/* ---- Champs ---- */
.manual{display:flex;gap:8px}
.input{flex:1;min-width:0;width:100%;padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:var(--surface);font-size:16px}
.input::placeholder{color:var(--faint)}
.input.mono{letter-spacing:.03em;font-size:15px}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-weight:600;font-size:14.5px}
.btn{border:0;border-radius:12px;padding:12px 18px;font-weight:700;background:var(--brand);color:var(--brand-ink);white-space:nowrap;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.btn.soft{background:var(--sage);color:var(--brand)}
.btn.line{background:transparent;border:1px solid var(--line);color:var(--ink)}
.btn.big{width:100%;padding:16px 20px;font-size:17px;border-radius:14px}
.btn:disabled{opacity:.5;cursor:default}

/* ---- Statistiques ---- */
.stats{display:grid;grid-template-columns:repeat(3,1fr);background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-sm)}
.stats div{padding:14px 10px;display:flex;flex-direction:column;align-items:center;text-align:center}
.stats div+div{border-left:1px solid var(--line)}
.stats b{font-family:var(--f-display);font-weight:500;font-size:28px;line-height:1.1;font-variant-numeric:tabular-nums}
.stats span{font-size:12.5px;color:var(--muted)}

/* ---- Listes (scans) ---- */
.list{list-style:none;margin:0;padding:0;background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:var(--shadow-sm)}
.list li+li{border-top:1px solid var(--line)}
.row{width:100%;display:grid;grid-template-columns:48px 1fr auto;gap:12px;align-items:center;padding:10px 14px;border:0;background:none;text-align:left}
.row:active{background:var(--surface-2)}
.thumb{width:48px;height:48px;border-radius:10px;object-fit:contain;background:#fff;border:1px solid var(--line)}
span.thumb{display:grid;place-items:center;background:var(--sage);color:var(--brand);border:0}
span.thumb svg{width:22px;height:22px}
.row-t{min-width:0}
.row-t b{display:block;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row-t span{display:block;font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.empty{padding:22px 16px;text-align:center;color:var(--muted);font-size:14.5px}

.pill{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;white-space:nowrap}
.pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.s-contient{background:var(--red-soft);color:var(--red)}
.s-traces,.s-verifier{background:var(--amber-soft);color:var(--amber)}
.s-incertain,.s-inconnu{background:var(--slate-soft);color:var(--slate)}
.s-aucun,.s-absent{background:var(--ok-soft);color:var(--ok)}

/* ---- Teaser premium ---- */
.teaser{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:16px;border-radius:16px;border:1px solid var(--gold-line);background:var(--gold-soft);color:var(--ink)}
.teaser-txt{flex:1;display:flex;flex-direction:column}
.teaser-txt strong{font-family:var(--f-display);font-weight:500;font-size:19px;line-height:1.2}
.teaser-txt span{font-size:13.5px;color:var(--muted)}
.chev{font-size:26px;color:var(--gold);line-height:1}
.badge-gold{display:inline-block;align-self:flex-start;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--gold);border:1px solid var(--gold-line);background:color-mix(in srgb,var(--gold-soft) 60%,transparent);padding:4px 9px;border-radius:999px}

/* ---- Tuiles allergènes ---- */
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.tile{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:14px 6px 12px;border-radius:14px;border:1px solid var(--line);background:var(--surface);transition:border-color .15s,background .15s}
.tile .t-ico{width:46px;height:46px;border-radius:50%;background:var(--sage);color:var(--brand);display:grid;place-items:center;transition:background .15s,color .15s}
.tile .t-ico svg{width:26px;height:26px}
.tile .t-n{font-weight:600;font-size:14px;line-height:1.2}
.tile .t-s{font-size:11.5px;color:var(--muted);line-height:1.25}
.tile .t-num{position:absolute;top:7px;left:9px;font-family:var(--f-mono);font-size:10px;color:var(--faint)}
.tile[aria-pressed="true"]{border-color:var(--brand);background:color-mix(in srgb,var(--sage) 55%,var(--surface));box-shadow:inset 0 0 0 1px var(--brand)}
.tile[aria-pressed="true"] .t-ico{background:var(--brand);color:var(--brand-ink)}
.tile[aria-pressed="true"]::after{content:"";position:absolute;top:8px;right:8px;width:18px;height:18px;border-radius:50%;background:var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat}

/* ---- Barre d'onglets ---- */
.tabbar{position:fixed;left:50%;transform:translateX(-50%);bottom:0;z-index:20;width:100%;max-width:480px;display:grid;grid-template-columns:repeat(5,1fr);align-items:end;
  padding:6px 8px calc(env(safe-area-inset-bottom,0px) + 6px);background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid var(--line)}
.tabbar button{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 0;color:var(--faint);font-size:11px;font-weight:600}
.tabbar button svg{width:24px;height:24px}
.tabbar button[aria-current="page"]{color:var(--brand)}
.tabbar .tab-scan{align-self:center}
.tabbar .tab-scan svg{width:56px;height:56px;padding:15px;border-radius:50%;background:var(--brand);color:var(--brand-ink);stroke-width:2;box-shadow:0 6px 16px color-mix(in srgb,var(--brand) 35%,transparent);margin-top:-22px}

/* ---- Feuille résultat ---- */
.sheet{position:fixed;inset:0;z-index:30;background:var(--bg);overflow-y:auto;-webkit-overflow-scrolling:touch;animation:up .28s cubic-bezier(.2,.8,.2,1)}
.sheet > *{max-width:480px;margin-inline:auto}
.sheet-bar{justify-content:flex-start}
.back{display:inline-flex;align-items:center;gap:2px;border:0;background:none;color:var(--brand-2);font-weight:600;font-size:16px;padding:6px 4px 6px 0}
.back svg{stroke-width:2.2}
@keyframes up{from{transform:translateY(24px);opacity:.4}to{transform:none;opacity:1}}

.product{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px}
.product .p-img{width:112px;height:112px;border-radius:20px;object-fit:contain;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-sm)}
.product .p-noimg{width:112px;height:112px;border-radius:20px;background:var(--sage);color:var(--brand);display:grid;place-items:center}
.product .p-noimg svg{width:44px;height:44px}
.product h1{margin:4px 0 0;font-family:var(--f-display);font-weight:500;font-size:28px;line-height:1.15;letter-spacing:-.01em}
.product p{margin:0;color:var(--muted);font-size:15px}
.product .code{font-family:var(--f-mono);font-size:12px;color:var(--faint)}

.verdict{display:flex;gap:14px;align-items:flex-start;padding:18px;border-radius:18px}
.verdict .v-ico{flex:none;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;color:#fff}
.verdict .v-ico svg{width:24px;height:24px;stroke-width:2.4}
.verdict h2{margin:0 0 4px;font-family:var(--f-display);font-weight:500;font-size:24px;line-height:1.15}
.verdict p{margin:0;font-size:15px;color:var(--ink)}
.v-contient{background:var(--red-soft)} .v-contient .v-ico{background:var(--red)} .v-contient h2{color:var(--red)}
.v-traces,.v-verifier{background:var(--amber-soft)} .v-traces .v-ico,.v-verifier .v-ico{background:var(--amber)} .v-traces h2,.v-verifier h2{color:var(--amber)}
.v-incertain{background:var(--slate-soft)} .v-incertain .v-ico{background:var(--slate)} .v-incertain h2{color:var(--slate)}
.v-aucun{background:var(--ok-soft)} .v-aucun .v-ico{background:var(--ok)} .v-aucun h2{color:var(--ok)}
@media (prefers-color-scheme: dark){ .verdict .v-ico{color:var(--bg)} }

.checks .row{grid-template-columns:40px 1fr auto;cursor:default}
.checks .c-ico{width:40px;height:40px;border-radius:50%;background:var(--sage);color:var(--brand);display:grid;place-items:center}
.checks .c-ico svg{width:22px;height:22px}
.checks .row-t span{white-space:normal}

.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px;box-shadow:var(--shadow-sm)}
.ingredients{margin:0;font-size:15px;line-height:1.7;overflow-wrap:anywhere}
.ingredients mark{background:var(--mark);color:inherit;font-weight:600;padding:0 3px;border-radius:4px}
.source{display:flex;gap:8px;align-items:center;font-size:12.5px;color:var(--faint)}
.actions{display:flex;flex-direction:column;gap:10px}
.loading{display:flex;flex-direction:column;align-items:center;gap:14px;padding:60px 0;color:var(--muted)}
.spin{width:34px;height:34px;border-radius:50%;border:3px solid var(--sage-2);border-top-color:var(--brand);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* ---- Bienvenue ---- */
.onboard{position:fixed;inset:0;z-index:40;background:var(--bg);overflow-y:auto}
.ob-step{max-width:480px;margin:0 auto;padding:calc(env(safe-area-inset-top,0px) + 20px) 20px calc(env(safe-area-inset-bottom,0px) + 24px);display:flex;flex-direction:column;gap:18px;min-height:100%}
.ob-art{height:230px;border-radius:26px;position:relative;overflow:hidden;background:linear-gradient(150deg,var(--hero-2),var(--hero));display:grid;place-items:center}
.ob-art::before{content:"";position:absolute;inset:0;opacity:.1;background:repeating-linear-gradient(90deg,var(--hero-ink) 0 3px,transparent 3px 8px,var(--hero-ink) 8px 9px,transparent 9px 14px)}
.ob-art::after{content:"";position:absolute;left:28%;right:28%;bottom:62px;height:1px;background:var(--gold)}
.ob-mark{position:relative;font-family:var(--f-display);font-style:italic;font-weight:500;font-size:64px;color:var(--hero-ink);letter-spacing:-.02em}
.ob-step h1{margin:6px 0 0;font-family:var(--f-display);font-weight:500;font-size:36px;line-height:1.08;letter-spacing:-.015em}
.ob-points{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.ob-points li{position:relative;padding-left:20px;font-size:15.5px;color:var(--muted)}
.ob-points li::before{content:"";position:absolute;left:0;top:.6em;width:8px;height:8px;border-radius:50%;background:var(--brand)}
.ob-points b{color:var(--ink);font-weight:600}
.step-n{margin:0;font-size:12.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--faint)}
.ob-more summary{cursor:pointer;font-weight:600;color:var(--brand-2);padding:4px 0}
.ob-more[open] summary{margin-bottom:10px}
.ob-foot{position:sticky;bottom:0;padding:12px 0 calc(env(safe-area-inset-bottom,0px) + 4px);background:linear-gradient(transparent,var(--bg) 30%);margin-top:auto}
.ob-step > .btn.big{margin-top:auto}

/* ---- Premium ---- */
.prem-hero{border-radius:22px;padding:24px 20px;background:linear-gradient(150deg,var(--hero-2),var(--hero));color:var(--hero-ink);display:flex;flex-direction:column;gap:10px}
.prem-hero .badge-gold{color:#E3C88F;border-color:rgba(227,200,143,.45);background:rgba(227,200,143,.08)}
.prem-hero h2{margin:0;font-family:var(--f-display);font-weight:500;font-size:28px;line-height:1.12;letter-spacing:-.01em}
.prem-hero p{margin:0;color:var(--hero-muted);font-size:15px}
.feats{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px}
.feats li{display:grid;grid-template-columns:44px 1fr;gap:14px;align-items:start}
.f-ico{width:44px;height:44px;border-radius:12px;background:var(--gold-soft);color:var(--gold);display:grid;place-items:center;border:1px solid var(--gold-line)}
.f-ico svg{width:22px;height:22px}
.feats strong{display:block;font-weight:600;font-size:16px}
.feats span{display:block;font-size:14px;color:var(--muted)}
.plans{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.plan{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;padding:16px 14px 14px;border-radius:16px;border:1px solid var(--line);background:var(--surface)}
.plan[aria-checked="true"]{border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}
.p-name{font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.p-price{font-family:var(--f-display);font-weight:500;font-size:28px;line-height:1.15;font-variant-numeric:tabular-nums}
.p-per{font-size:12.5px;color:var(--muted)}
.p-save{position:absolute;top:-10px;right:10px;font-size:11px;font-weight:700;padding:3px 8px;border-radius:999px;background:var(--gold);color:#fff}
@media (prefers-color-scheme: dark){ .p-save{color:var(--bg)} }
.waitlist{display:flex;flex-direction:column;gap:10px}
.waitlist label{font-weight:600;font-size:15px}
.waitlist .ok{color:var(--ok)} .waitlist .err{color:var(--red)}
.compare{background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow-x:auto}
.compare table{width:100%;border-collapse:collapse;font-size:14px}
.compare th,.compare td{padding:11px 12px;text-align:center;border-bottom:1px solid var(--line)}
.compare tbody tr:last-child th,.compare tbody tr:last-child td{border-bottom:0}
.compare th[scope="row"]{text-align:left;font-weight:500}
.compare thead th{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:600}
.compare thead th:last-child,.compare td:last-child{color:var(--brand);font-weight:700;background:color-mix(in srgb,var(--sage) 45%,transparent)}

/* ---- Scanner ---- */
.scanner{position:fixed;inset:0;z-index:50;background:#050A08;color:#fff;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
.sc-top,.sc-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 16px}
.sc-bottom{justify-content:center}
.sc-title{font-family:var(--f-display);font-weight:500;font-size:21px}
.sc-btn{background:rgba(255,255,255,.14);color:#fff;border:0;border-radius:999px;padding:10px 18px;font-weight:600}
.sc-view{position:relative;flex:1;min-height:0;overflow:hidden;display:grid;place-items:center}
.sc-view video{width:100%;height:100%;object-fit:cover}
.sc-frame{position:absolute;left:50%;top:50%;width:min(82vw,340px);height:min(42vw,170px);transform:translate(-50%,-50%);border-radius:18px;box-shadow:0 0 0 200vmax rgba(0,0,0,.5);border:2px solid rgba(255,255,255,.9)}
.sc-frame::after{content:"";position:absolute;left:8%;right:8%;top:50%;height:2px;background:#7BE0AE;box-shadow:0 0 14px #7BE0AE;animation:laser 1.8s ease-in-out infinite}
@keyframes laser{0%,100%{transform:translateY(-52px);opacity:.5}50%{transform:translateY(52px);opacity:1}}
.sc-hint{margin:0;text-align:center;padding:12px 16px 0;font-size:15px;color:#D5E6DC}
.sc-err{margin:0 16px;padding:12px 14px;border-radius:12px;background:#3A1916;color:#FFD4CE;font-size:14.5px}

@media (min-width:600px){ .app{border-inline:1px solid var(--line);background:var(--bg)} body{background:color-mix(in srgb,var(--sage) 40%,var(--bg))} }
@media (max-width:360px){ .tiles{grid-template-columns:repeat(2,1fr)} .greet h1{font-size:31px} }
@media (prefers-reduced-motion:reduce){ *{transition:none!important;animation:none!important} }

/* ---- Nutrition ---- */
:root{ --ns-a:#1E8A4C; --ns-b:#78B83F; --ns-c:#E9BD1C; --ns-d:#E7852C; --ns-e:#D8472B; }
.unit{font-size:12.5px;color:var(--faint)}
.head-chips{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.chip-ns,.chip-nova{font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;color:#fff}
.chip-ns.ns-c{color:#3A2E00}
.chip-nova{background:var(--slate-soft);color:var(--slate)}
.chip-nova.nova-4{background:var(--red-soft);color:var(--red)}
.chip-nova.nova-3{background:var(--amber-soft);color:var(--amber)}
.chip-nova.nova-1,.chip-nova.nova-2{background:var(--ok-soft);color:var(--ok)}
.ns-a{background:var(--ns-a)} .ns-b{background:var(--ns-b)} .ns-c{background:var(--ns-c)} .ns-d{background:var(--ns-d)} .ns-e{background:var(--ns-e)}
.ns-mini{display:inline-grid;place-items:center;width:17px;height:17px;border-radius:5px;margin-right:6px;font-style:normal;font-size:10.5px;font-weight:800;color:#fff;vertical-align:1px}
.ns-mini.ns-c{color:#3A2E00}

.score-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.score-card{display:flex;flex-direction:column;gap:10px;padding:14px}
.score-card .k{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.score-card p{margin:0;font-size:13.5px;line-height:1.35;color:var(--ink)}
.ns{display:grid;grid-template-columns:repeat(5,1fr);gap:3px;align-items:center;height:38px}
.ns span{height:26px;display:grid;place-items:center;border-radius:6px;font-weight:800;font-size:13px;color:#fff;opacity:.28}
.ns span.ns-c{color:#3A2E00}
.ns span.on{height:38px;opacity:1;font-size:19px;box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px currentColor}
.ns span.on.ns-a{color:#fff;box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px var(--ns-a)}
.ns span.on.ns-b{box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px var(--ns-b)}
.ns span.on.ns-c{box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px var(--ns-c)}
.ns span.on.ns-d{box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px var(--ns-d)}
.ns span.on.ns-e{box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px var(--ns-e)}
.nova{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;align-items:center;height:38px}
.nova span{height:28px;border-radius:50%;aspect-ratio:1;justify-self:center;display:grid;place-items:center;font-weight:800;font-size:13px;background:var(--slate-soft);color:var(--faint)}
.nova span.on{height:36px;color:#fff}
.nova span.on.nova-1{background:var(--ns-a)} .nova span.on.nova-2{background:var(--ns-b)} .nova span.on.nova-3{background:var(--ns-d)} .nova span.on.nova-4{background:var(--ns-e)}
.ns.off span,.nova.off span{opacity:.18}

.facts h3,.nut-table h3{margin:0 0 12px;font-family:var(--f-display);font-weight:500;font-size:20px;line-height:1.2}
.facts ul,.nut-table ul{list-style:none;margin:0;padding:0}
.facts ul{display:flex;flex-direction:column;gap:12px}
.facts li{display:grid;grid-template-columns:28px 1fr;gap:12px;align-items:start}
.facts li b{display:block;font-weight:600}
.facts li span{display:block;font-size:14px;color:var(--muted);line-height:1.45}
.f-dot{width:28px;height:28px;border-radius:50%;display:grid;place-items:center}
.f-dot svg{width:16px;height:16px;stroke-width:2.4}
.facts.good .f-dot{background:var(--ok-soft);color:var(--ok)}
.facts.watch .f-dot{background:var(--amber-soft);color:var(--amber)}
.facts.watch{border-color:color-mix(in srgb,var(--amber) 25%,var(--line))}

.nut-table li{display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"n lv v" "bar bar p";column-gap:12px;row-gap:5px;padding:10px 0;border-top:1px solid var(--line);align-items:center}
.nut-table li:first-child{border-top:0;padding-top:0}
.nut-table li .n{grid-area:n;font-weight:600;font-size:15px}
.nut-table li.sub .n{font-weight:400;color:var(--muted);padding-left:14px}
.nut-table li .v{grid-area:v;font-variant-numeric:tabular-nums;font-weight:600;text-align:right}
.nut-table li .meter{grid-area:bar;height:6px;border-radius:999px;background:var(--slate-soft);overflow:hidden}
.nut-table li .fill{display:block;height:100%;border-radius:999px;background:var(--brand-2)}
.nut-table li .fill.lvl-low{background:var(--ok)} .nut-table li .fill.lvl-mid{background:var(--amber)} .nut-table li .fill.lvl-high{background:var(--red)}
.nut-table li .p{grid-area:p;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;text-align:right;min-width:40px}
.nut-table li .lv{grid-area:lv;justify-self:start;font-style:normal;font-size:11.5px;font-weight:700;padding:2px 8px;border-radius:999px}
.lv-low{background:var(--ok-soft);color:var(--ok)} .lv-mid{background:var(--amber-soft);color:var(--amber)} .lv-high{background:var(--red-soft);color:var(--red)}
.nut-table .fine{margin-top:10px}
@media (max-width:360px){ .score-row{grid-template-columns:1fr} }


/* ================= Thème Vitaminé : typographie et détails ================= */
.logo,.greet h1,.bar-title,.hero strong,.product h1,.verdict h2,.ob-step h1,.prem-hero h2,.facts h3,.nut-table h3,.teaser-txt strong,.sc-title,.ob-mark{
  font-family:var(--f-display);font-style:normal;font-weight:800;font-stretch:118%;text-transform:uppercase;letter-spacing:-.02em}
.logo{font-size:24px;color:var(--brand)}
.greet h1{font-size:31px;line-height:1.05}
.greet h1 em{font-style:normal;color:var(--brand)}
.bar-title{font-size:26px}
.product h1{font-size:22px;line-height:1.1}
.verdict h2{font-size:21px}
.facts h3,.nut-table h3{font-size:16px}
.teaser-txt strong{font-size:16px}
.prem-hero h2{font-size:24px;line-height:1.08}
.ob-step h1{font-size:32px;line-height:1.02}
.stats b,.p-price{font-family:var(--f-display);font-weight:800;font-stretch:110%}
.block-head h2{font-weight:700;letter-spacing:.1em}

.hero{border-radius:18px;background:repeating-linear-gradient(-55deg,var(--hero) 0 16px,var(--hero-2) 16px 32px);box-shadow:0 10px 24px color-mix(in srgb,var(--hero) 30%,transparent)}
.hero-lines{display:none}
.hero strong{font-size:25px}
.hero-go{background:var(--sun);color:var(--sun-ink)}
.mini-icons span{background:var(--sun);color:var(--sun-ink)}
.list,.card,.stats{border-radius:14px}
.tile{border-radius:12px}
.tile .t-ico{background:var(--sage);color:var(--brand-2)}
.tile[aria-pressed="true"]{background:color-mix(in srgb,var(--sage) 60%,var(--surface))}
.checks .c-ico,span.thumb{background:var(--sage);color:var(--brand-2)}
.btn{border-radius:12px}
.btn.soft{background:var(--sun);color:var(--sun-ink)}
.link,.back{color:var(--brand-2)}
.tabbar button[aria-current="page"]{color:var(--brand)}

.teaser{background:var(--gold-soft);border-color:var(--gold-line)}
.chev{color:var(--gold)}
.badge-gold{color:var(--sun-ink);background:var(--sun);border-color:var(--sun)}
.prem-hero{background:var(--prem);color:var(--prem-ink);border-radius:18px;position:relative;overflow:hidden}
.prem-hero::after{content:"";position:absolute;right:-62px;top:-62px;width:150px;height:150px;border-radius:50%;background:radial-gradient(circle,var(--sun) 0 34%,transparent 35%),radial-gradient(circle,transparent 0 48%,color-mix(in srgb,var(--sun) 35%,transparent) 49% 52%,transparent 53%);opacity:.9}
.prem-hero p{color:var(--prem-muted)}
.prem-hero h2,.prem-hero .badge-gold{position:relative;z-index:1}
.prem-hero h2{padding-right:34px}
.prem-hero .badge-gold{color:var(--sun-ink);border-color:var(--sun);background:var(--sun)}
.f-ico{background:var(--gold-soft);color:var(--gold);border-color:var(--gold-line)}
.p-save{background:var(--sun);color:var(--sun-ink)}
@media (prefers-color-scheme: dark){ .p-save{color:var(--sun-ink)} .verdict .v-ico{color:var(--bg)} }

.ob-art{background:repeating-linear-gradient(-55deg,var(--hero) 0 18px,var(--hero-2) 18px 36px);border-radius:22px}
.ob-art::before{display:none}
.ob-art::after{background:var(--sun);height:4px;border-radius:4px;left:32%;right:32%;bottom:64px}
.ob-mark{font-size:56px;color:#fff}
.ob-points li::before{background:var(--sun);box-shadow:0 0 0 2px var(--brand)}
.sc-frame::after{background:var(--sun);box-shadow:0 0 14px var(--sun)}

/* ================= Accessibilité ================= */
.bar-actions{display:flex;gap:8px;align-items:center}
.settings .setting{display:grid;grid-template-columns:40px 1fr auto;gap:12px;align-items:center;padding:12px 14px}
.settings .row-t span{white-space:normal}
.s-ico{width:40px;height:40px;border-radius:50%;background:var(--sage);color:var(--brand-2);display:grid;place-items:center}
.s-ico svg{width:22px;height:22px}
.switch{position:relative;flex:none;width:54px;height:32px;border-radius:999px;border:0;background:var(--faint);transition:background .15s}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .15s}
.switch[aria-checked="true"]{background:var(--ok)}
.switch[aria-checked="true"]::after{transform:translateX(22px)}
#testVoice svg,.help-btn svg{width:22px;height:22px}
.help-btn{width:100%;padding:14px 16px;font-size:16px;border-width:2px;white-space:normal;text-align:left}

.listen-row{display:flex}
.listen{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:2px solid var(--ink);background:var(--surface);color:var(--ink);border-radius:999px;padding:10px 18px;font-weight:700;font-size:16px}
.listen svg{width:24px;height:24px;stroke-width:2}
.listen.big{width:100%;padding:16px 18px;font-size:19px;border:0;background:var(--ink);color:var(--bg);border-radius:16px}

/* Mode Facile : un symbole, un mot */
.easy{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:26px 18px 20px;border-radius:24px}
.easy .e-ico{width:128px;height:128px;border-radius:50%;display:grid;place-items:center;color:#fff}
.easy .e-ico svg{width:78px;height:78px;stroke-width:3}
.easy .e-word{margin:6px 0 0;font-family:var(--f-display);font-weight:900;font-stretch:115%;font-size:54px;line-height:1;letter-spacing:.01em}
.easy .e-line{margin:0;font-size:21px;font-weight:700}
.e-contient{background:var(--red-soft)} .e-contient .e-ico{background:var(--red)} .e-contient .e-word{color:var(--red)}
.e-traces,.e-verifier{background:var(--amber-soft)} .e-traces .e-ico,.e-verifier .e-ico{background:var(--amber)} .e-traces .e-word,.e-verifier .e-word{color:var(--amber)}
.e-incertain{background:var(--slate-soft)} .e-incertain .e-ico{background:var(--slate)} .e-incertain .e-word{color:var(--slate)}
.e-aucun{background:var(--ok-soft)} .e-aucun .e-ico{background:var(--ok)} .e-aucun .e-word{color:var(--ok)}
@media (prefers-color-scheme: dark){ .easy .e-ico{color:var(--bg)} }
.e-alls{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:6px 0 4px}
.e-all{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:15px}
.e-all b{font-weight:700;color:var(--ink)}
.e-all-ico{position:relative;width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:var(--surface);border:4px solid currentColor}
.e-all-ico svg{width:34px;height:34px;color:var(--ink)}
.e-all.s-contient{color:var(--red)} .e-all.s-traces,.e-all.s-verifier{color:var(--amber)}
.e-all.s-contient .e-all-ico::after{content:"";position:absolute;inset:6px;background:linear-gradient(45deg,transparent 46%,var(--red) 46% 54%,transparent 54%)}
.e-all.s-contient,.e-all.s-traces,.e-all.s-verifier{background:none;padding:0}
.e-all.s-contient::before,.e-all.s-traces::before,.e-all.s-verifier::before{display:none}
.more{border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.more summary{cursor:pointer;padding:14px 16px;font-weight:700;color:var(--brand-2);font-size:16px}
.more-in{padding:0 12px 14px;display:flex;flex-direction:column;gap:18px}

/* Grand texte et contraste fort */
html.a11y-large{--muted:#4A3726;--faint:#5E4A36;--line:#D8BE9E}
@media (prefers-color-scheme: dark){ html.a11y-large{--muted:#EBDCCB;--faint:#D3BFA8;--line:#5A4836} }
html.a11y-large body{font-size:19px}
html.a11y-large :is(.logo,.greet h1,.bar-title,.hero strong,.product h1,.verdict h2,.ob-step h1,.prem-hero h2,.facts h3,.nut-table h3,.teaser-txt strong,.sc-title,.ob-mark,.block-head h2){text-transform:none;letter-spacing:0;font-stretch:100%}
html.a11y-large .greet h1{font-size:34px}
html.a11y-large .lede{font-size:19px}
html.a11y-large .block-head h2{font-size:17px;color:var(--ink)}
html.a11y-large :is(.hint,.fine){font-size:16px}
html.a11y-large .row-t b{font-size:18px;white-space:normal}
html.a11y-large .row-t span{font-size:16px;white-space:normal}
html.a11y-large .row{grid-template-columns:56px 1fr auto;padding:14px}
html.a11y-large :is(.thumb,span.thumb){width:56px;height:56px}
html.a11y-large .pill{font-size:14.5px;padding:6px 12px}
html.a11y-large .tiles{grid-template-columns:repeat(2,1fr)}
html.a11y-large .tile .t-ico{width:60px;height:60px}
html.a11y-large .tile .t-ico svg{width:34px;height:34px}
html.a11y-large .tile .t-n{font-size:18px}
html.a11y-large .tile .t-s{font-size:14.5px}
html.a11y-large .tabbar button{font-size:13px}
html.a11y-large .tabbar button:not(.tab-scan) svg{width:28px;height:28px}
html.a11y-large :is(.btn,.input){font-size:19px}
html.a11y-large .btn{padding:15px 20px}
html.a11y-large .input{padding:15px}
html.a11y-large :is(.verdict p,.ingredients){font-size:18px}
html.a11y-large .verdict h2{font-size:26px}
html.a11y-large .facts li span{font-size:16.5px}
html.a11y-large .nut-table li .n{font-size:17px}
html.a11y-large .hero strong{font-size:28px}
html.a11y-large .hero-sub{font-size:17px}
html.a11y-large :focus-visible{outline-width:3px;outline-offset:3px}
html.a11y-large .list,html.a11y-large .card,html.a11y-large .tile{border-width:2px}

/* ================= Essai et abonnement ================= */
.teaser.ended{background:var(--red-soft);border-color:color-mix(in srgb,var(--red) 30%,var(--line))}
.teaser.ended .badge-gold{background:var(--red);border-color:var(--red);color:#fff}
.teaser.ended .chev{color:var(--red)}
.sub-status{display:flex;flex-direction:column;gap:12px}
.ss-head{display:grid;grid-template-columns:44px 1fr;gap:12px;align-items:center}
.ss-head b{display:block;font-size:17px}
.ss-head span{display:block;font-size:14px;color:var(--muted)}
.ss-ico{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--sun);color:var(--sun-ink)}
.ss-ico svg{width:24px;height:24px;stroke-width:2}
.ss-ico.ok{background:var(--ok);color:#fff}
.ss-ico.end{background:var(--red);color:#fff}
@media (prefers-color-scheme: dark){ .ss-ico.ok,.ss-ico.end{color:var(--bg)} }
.ss-meter{height:8px;border-radius:999px;background:var(--sage);overflow:hidden}
.ss-meter span{display:block;height:100%;border-radius:999px;background:repeating-linear-gradient(-55deg,var(--hero) 0 8px,var(--hero-2) 8px 16px)}
.feats .soon{font-style:normal;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:2px 7px;border-radius:999px;background:var(--slate-soft);color:var(--slate);margin-left:6px;vertical-align:2px}
.paywall{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:10px 0 4px}
.pw-ico{width:88px;height:88px;border-radius:50%;display:grid;place-items:center;background:repeating-linear-gradient(-55deg,var(--hero) 0 12px,var(--hero-2) 12px 24px);color:#fff}
.pw-ico svg{width:42px;height:42px;stroke-width:2}
.paywall h2{margin:6px 0 0;font-family:var(--f-display);font-weight:800;font-stretch:118%;text-transform:uppercase;letter-spacing:-.02em;font-size:24px;line-height:1.08}
.paywall p{margin:0;color:var(--muted);font-size:16px}
html.a11y-large .paywall h2{text-transform:none;letter-spacing:0;font-stretch:100%}

#trialBanner .teaser-txt{gap:2px}
#trialBanner .teaser-txt .badge-gold{display:inline-block;align-self:flex-start;margin-bottom:6px;font-size:11px;color:var(--sun-ink)}
#trialBanner.ended .teaser-txt .badge-gold{color:#fff}

/* ================= Mes données ================= */
.privacy{display:flex;flex-direction:column;gap:10px}
.privacy p{margin:0;font-size:14.5px;line-height:1.5;color:var(--ink)}
.privacy a{color:var(--brand-2);font-weight:600}
.btn.danger{background:transparent;color:var(--red);border:2px solid color-mix(in srgb,var(--red) 45%,transparent)}
html.a11y-large .privacy p{font-size:17px}

/* ================= Profils famille ================= */
.fam{display:flex;flex-wrap:wrap;gap:8px}
.fam-b,.who-b{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:5px 14px 5px 5px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font-weight:600;font-size:14.5px;line-height:1.1;max-width:100%}
.fam-b span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fam-av{flex:none;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--sage);color:var(--brand-2);font-weight:800;font-size:14px;font-style:normal}
.fam-b[aria-pressed="true"],.who-b[aria-pressed="true"]{border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand);background:color-mix(in srgb,var(--sage) 55%,var(--surface))}
.fam-b[aria-pressed="true"] .fam-av,.who-b[aria-pressed="true"] .fam-av{background:var(--brand);color:var(--brand-ink)}
.fam-add{border-style:dashed;color:var(--brand-2)}
.fam-add .fam-av{background:transparent;border:1.5px dashed currentColor;font-size:18px}
.who{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:14px}
.who[hidden]{display:none}
.who-l{width:100%;font-size:13px;font-weight:600;color:var(--muted)}
.who-b{min-height:40px;padding:4px 12px 4px 4px;font-size:14px}
.who-b .fam-av{width:30px;height:30px;font-size:13px}
.who-b[aria-pressed="false"]{color:var(--muted);text-decoration:line-through;text-decoration-color:color-mix(in srgb,var(--muted) 60%,transparent)}
.who-b[aria-pressed="false"] .fam-av{background:var(--surface-2);color:var(--faint)}
.checks .c-ico.fam-av{font-size:16px;background:var(--sage);color:var(--brand-2)}
.fam-more{margin-top:10px}
.btn.danger-line{color:var(--red);border-color:color-mix(in srgb,var(--red) 40%,var(--line))}
.btn.danger-line[hidden]{display:none}
.e-fam{list-style:none;margin:6px 0 4px;padding:0;display:flex;flex-direction:column;gap:8px;width:100%}
.e-p{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:12px;padding:8px 14px 8px 8px;border-radius:16px;background:var(--surface);text-align:left}
.e-p .fam-av{width:44px;height:44px;font-size:18px}
.e-p b{font-size:19px;font-weight:700;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.e-p i{font-style:normal;font-family:var(--f-display);font-weight:900;font-stretch:115%;font-size:21px;letter-spacing:.01em}
.ep-contient i{color:var(--red)} .ep-traces i,.ep-verifier i{color:var(--amber)} .ep-incertain i{color:var(--slate)} .ep-aucun i{color:var(--ok)}
html.a11y-large .fam-b,html.a11y-large .who-b{font-size:17px;min-height:48px}
html.a11y-large .fam-av{width:36px;height:36px;font-size:16px}

/* ================= Recette modifiée ================= */
.recipe-note{display:flex;gap:10px;align-items:flex-start;margin:0;padding:12px 14px;border-radius:14px;background:var(--amber-soft);color:var(--ink);font-size:14.5px;line-height:1.4}
.recipe-note svg{flex:none;width:20px;height:20px;margin-top:1px;fill:none;stroke:var(--amber);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.recipe-note.bad{background:var(--red-soft)}
.recipe-note.bad svg{stroke:var(--red)}
html.a11y-large .recipe-note{font-size:17px}

/* ================= Outils du profil : carte voyage et partage ================= */
.tools{display:flex;flex-direction:column;gap:8px;margin-top:-6px}
.tool{display:grid;grid-template-columns:44px 1fr;gap:12px;align-items:center;width:100%;text-align:left;padding:12px 14px;border-radius:14px;border:1px solid var(--line);background:var(--surface);color:var(--ink);box-shadow:var(--shadow-sm)}
.tool-ico{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--sun);color:var(--sun-ink)}
.tool-ico svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tool-t b{display:block;font-weight:700;font-size:15.5px}
.tool-t span{display:block;font-size:13.5px;color:var(--muted)}
.panel .bar-title{margin:4px 0 0}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{min-height:40px;padding:8px 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font-weight:600;font-size:14.5px}
.chip[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.tcard{background:#fff;color:#1a1208;border-radius:20px;padding:22px 20px;border:3px solid #E5484D;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;gap:12px}
.tcard p{margin:0}
.tc-kicker{display:flex;align-items:center;gap:8px;font-weight:800;font-size:15px;letter-spacing:.06em;text-transform:uppercase;color:#C42B30}
.tc-kicker svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.tc-name{font-size:26px;font-weight:800;line-height:1.1}
.tc-intro{font-size:20px;font-weight:700}
.tc-list{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:6px;font-size:22px;font-weight:700;line-height:1.25}
.tc-list small{font-size:13px;font-weight:500;color:#6b5a48}
.tc-diets{font-size:18px;font-weight:600;line-height:1.35}
.tc-danger{font-size:18px;font-weight:700;color:#C42B30;line-height:1.35}
.tc-ask{font-size:17px;line-height:1.4}
.tc-thanks{font-size:18px;font-weight:700}
.qr-box{align-self:center;width:min(280px,80vw);padding:10px;background:#fff;border-radius:16px;border:1px solid var(--line)}
.qr-box svg{display:block;width:100%;height:auto}
.share-actions{display:flex;flex-direction:column;gap:8px}
.fine.ok{color:var(--ok)}
html.a11y-large .tool-t b{font-size:18px}
html.a11y-large .tool-t span{font-size:16px}
html.a11y-large .chip{font-size:17px;min-height:46px}
.qr-box svg *{stroke:none!important}
.qr-box svg path{fill:#000!important}
.qr-box svg rect{fill:#fff!important}
.panel h1[tabindex="-1"]:focus{outline:none}

/* Langue de la liste d'ingrédients (liste non traduite) */
.block-head h2 .lang-tag{display:inline-block;margin-left:6px;padding:2px 9px;border-radius:99px;background:var(--amber-soft);color:var(--ink);font-family:var(--f-body);font-size:12.5px;font-weight:600;letter-spacing:0;vertical-align:middle}

/* ================= Panneaux au-dessus de la fiche produit ================= */
.sheet.panel{z-index:35}
.chip[aria-checked="true"]{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.chip:disabled{opacity:.45}
.lbl{font-weight:600;font-size:14.5px}
fieldset.field{border:0;margin:0;padding:0;min-width:0}
textarea.input{resize:vertical;line-height:1.4;font-family:inherit}
.check{display:flex;gap:10px;align-items:center;font-weight:500!important}
.check input{width:22px;height:22px;accent-color:var(--brand)}
.toast{position:fixed;left:50%;bottom:calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom,0px));transform:translate(-50%,20px);z-index:60;max-width:min(92vw,440px);
  padding:12px 18px;border-radius:14px;background:var(--ink);color:var(--bg);font-weight:600;font-size:15px;box-shadow:var(--shadow);opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.toast.on{opacity:1;transform:translate(-50%,0)}

/* ================= Accueil : fiche d'urgence ================= */
.urg-open{display:inline-flex;align-items:center;gap:8px;margin-top:10px;padding:9px 14px;border-radius:999px;border:2px solid color-mix(in srgb,var(--red) 55%,transparent);
  background:var(--red-soft);color:var(--red);font-weight:700;font-size:14.5px}
.urg-open svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ================= Journal ================= */
.j-nav{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:6px}
.j-day{margin:0;text-align:center;font-family:var(--f-display);font-weight:800;font-size:19px;text-transform:capitalize}
.j-arrow{width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:var(--surface);display:grid;place-items:center;color:var(--ink)}
.j-arrow svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.j-arrow:disabled{opacity:.35}
.j-sum{display:flex;flex-direction:column;gap:12px}
.j-kcal{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.j-kcal > b{font-family:var(--f-display);font-weight:900;font-size:44px;line-height:1;color:var(--ink)}
.j-kcal span{color:var(--muted);font-size:15px}
.j-kcal span b{color:var(--ink)}
.j-bar{display:block;height:10px;border-radius:99px;background:var(--slate-soft);overflow:hidden}
.j-bar > span{display:block;height:100%;width:0;border-radius:99px;background:var(--brand);transition:width .4s}
.j-bar.done > span{background:var(--ok)}
.j-bar.over > span{background:var(--amber)}
.j-nuts{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:12px 16px}
.j-nuts li{display:flex;flex-direction:column;gap:4px;min-width:0}
.j-n{font-weight:600;font-size:13.5px;color:var(--muted)}
.j-v{font-weight:700;font-size:15px}
.j-v i{font-style:normal;font-weight:500;font-size:12.5px;color:var(--faint)}
.j-cheer{margin:0;padding:10px 12px;border-radius:12px;background:var(--ok-soft);color:var(--ink);font-weight:600;font-size:15px}
.j-listen{align-self:flex-start}
.j-listen svg,.urg-actions svg,.j-add-scan svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.j-setup h2,.j-lock h2{margin:0 0 6px;font-size:18px}
.j-setup p,.j-lock p{margin:0 0 12px;color:var(--muted)}
.j-meal .block-head h2 small{font-family:var(--f-body);font-weight:600;font-size:13.5px;color:var(--muted);margin-left:6px;text-transform:none;letter-spacing:0}
.j-meal .row,#jResults .row,#jPanelBody .list .row{grid-template-columns:1fr auto}
.j-ek{font-weight:700;font-size:14.5px;white-space:nowrap}
.j-sub{padding:8px 14px 4px;font-size:12.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--faint);list-style:none}
.j-weight p{margin:0 0 8px}
.j-chart{width:100%;height:auto;display:block}
.j-chart polyline{fill:none;stroke:var(--brand);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.j-chart circle{fill:var(--surface);stroke:var(--brand);stroke-width:2}
.j-chart text{fill:var(--faint);stroke:none;font-size:10px;font-family:var(--f-body)}
.j-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.j-acts{display:flex;flex-direction:column;gap:8px}
.j-act{text-align:left;padding:10px 14px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--ink)}
.j-act b{display:block;font-size:15px}
.j-act span{display:block;font-size:13px;color:var(--muted)}
.j-act[aria-checked="true"]{border:2px solid var(--brand);background:var(--sage)}
.j-live p{margin:0 0 4px}
#jPanelBody > .btn:not(.big){align-self:flex-start}
@media (max-width:340px){ .j-grid{grid-template-columns:1fr 1fr} .j-nuts{grid-template-columns:1fr} }

/* ================= Fiche d'urgence ================= */
.urg-card{background:#fff;color:#1D1B1A;border:3px solid #B3261E;border-radius:20px;overflow:hidden;display:flex;flex-direction:column}
.urg-card section{padding:12px 18px 0}
.urg-card h3{margin:0 0 6px;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:#B3261E}
.urg-card h3 small{text-transform:none;letter-spacing:0;font-weight:500;color:#6B6560}
.urg-head{display:flex;gap:14px;align-items:center;padding:16px 18px;background:#B3261E;color:#fff}
.urg-head svg{flex:none;width:40px;height:40px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.urg-kicker{margin:0;font-weight:700;font-size:13px;letter-spacing:.06em;text-transform:uppercase;opacity:.92}
.urg-name{margin:2px 0 0;font-family:var(--f-display);font-weight:900;font-size:30px;line-height:1.05;color:#fff}
.urg-ana{margin:14px 18px 0;padding:10px 14px;border-radius:12px;background:#B3261E;color:#fff;font-weight:800;font-size:17px}
.urg-all{margin:0;padding-left:20px;font-weight:800;font-size:20px;line-height:1.35}
.urg-call p{margin:0 0 8px;padding:10px 12px;border-radius:12px;background:#FDECEA;font-weight:600}
.urg-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.urg-tel{background:#B3261E;color:#fff;white-space:normal;text-align:center}
.urg-txt{margin:0;white-space:pre-wrap;font-size:16px;line-height:1.45}
.urg-contacts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.urg-contacts li{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:baseline}
.urg-contacts i{font-style:normal;color:#6B6560}
.urg-contacts a{font-weight:800;color:#B3261E;text-decoration:none;font-size:17px}
.urg-none{margin:0;color:#6B6560}
.urg-foot{margin:14px 0 0;padding:10px 18px 14px;font-size:12px;color:#6B6560;border-top:1px solid #EEE}
.urg-actions{display:flex;flex-direction:column;gap:8px}
.urg-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}
.urg-row input:last-child{grid-column:1 / -1}
.urg-row.two input:last-child{grid-column:auto}
html.a11y-large .urg-all{font-size:24px}
html.a11y-large .j-kcal > b{font-size:52px}

/* Impression : seulement la fiche d'urgence */
@media print{
  body.print-urg{overflow:visible!important}
  body.print-urg > *:not(#urgPanel){display:none!important}
  body.print-urg #urgPanel{position:static!important;overflow:visible!important;background:#fff!important;animation:none!important}
  body.print-urg #urgPanel .sheet-bar,body.print-urg .urg-noprint,body.print-urg .urg-call .urg-btns{display:none!important}
  body.print-urg .urg-card{border-width:2px;break-inside:avoid}
  body.print-urg .urg-head,body.print-urg .urg-ana{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
.tool-ico.urg-ico{background:var(--red-soft);color:var(--red)}
