/* Look and Sell — design de l'appli.
   Clair et aéré, photo en premier, chiffres en grand. Couleurs du logo : noir, jaune-vert du viseur, rouge du « & ». */
:root {
  --noir: #111014;
  --lime: #D4FF3A;
  --lime-doux: #EEFFB8;
  --lime-texte: #4A7400;
  --rouge: #F23A2E;
  --fond: #F6F5F1;
  --surface: #FFFFFF;
  --surface-2: #EFEDE7;
  --surface-3: #E5E2DA;
  --texte: #111014;
  --texte-2: #5E5B6B;
  --texte-3: #9A97A6;
  --ligne: rgba(17, 16, 20, .08);
  --vert: #12925A; --vert-fond: #E2F5EA;
  --orange: #B76E00; --orange-fond: #FFF1D9;
  --rouge-texte: #C42A20; --rouge-fond: #FDE7E5;
  --bleu: #2459D8; --bleu-fond: #E5ECFC;
  --ombre: 0 1px 2px rgba(17, 16, 20, .04), 0 6px 24px rgba(17, 16, 20, .06);
  --ombre-forte: 0 10px 40px rgba(17, 16, 20, .18);
  --titre: "Bricolage Grotesque", system-ui, sans-serif;
  --r: 20px;
  --nav: calc(72px + env(safe-area-inset-bottom));
  --doux: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0D0C10; --surface: #17161C; --surface-2: #211F27; --surface-3: #2C2A33;
    --texte: #F4F3F8; --texte-2: #B3B0C0; --texte-3: #7F7C8C; --ligne: rgba(255, 255, 255, .08);
    --lime-doux: #2A3510; --lime-texte: #D4FF3A;
    --vert: #4FD18B; --vert-fond: #12301F; --orange: #F5B94A; --orange-fond: #352710;
    --rouge-texte: #FF7B71; --rouge-fond: #3A1614; --bleu: #8AA9FF; --bleu-fond: #18234A;
    --ombre: none; --ombre-forte: 0 10px 40px rgba(0, 0, 0, .5); color-scheme: dark;
  }
  .nav .nav-scan span { background: var(--lime); color: var(--noir); box-shadow: 0 6px 24px rgba(212, 255, 58, .18); }
  .logo-clair { display: none !important; }
  .logo-sombre { display: block !important; }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--texte); min-height: 100dvh;
  font: 16px/1.5 "Instrument Sans", system-ui, -apple-system, sans-serif;
  padding-bottom: var(--nav); overscroll-behavior-y: none;
}
h1, h2, h3 { font-family: var(--titre); line-height: 1.1; margin: 0; letter-spacing: -.025em; font-weight: 800; }
h1 { font-size: 28px; } h2 { font-size: 21px; } h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
svg[aria-hidden="true"] { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.logo-sombre { display: none; }

main { max-width: 600px; margin: 0 auto; padding: 0 16px 28px; outline: none; }
.ecran-entree { animation: entree .35s var(--doux) both; }
@keyframes entree { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- Barre du haut (écrans hors scanner) ---------- */
.barre { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(14px + env(safe-area-inset-top)) 0 10px; }
.barre .logo { height: 30px; width: auto; }
.barre-titre { display: flex; align-items: center; gap: 10px; min-width: 0; }
.retour { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: var(--ombre); display: grid; place-items: center; flex: none; text-decoration: none; }
.retour svg, .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Navigation du bas ---------- */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: var(--nav);
  display: grid; grid-template-columns: 1fr 96px 1fr; align-items: start; padding: 8px 12px env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--ligne);
}
.nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px; font-size: 12px; font-weight: 600; color: var(--texte-3); text-decoration: none; }
.nav a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav a.actif { color: var(--texte); }
.nav .nav-scan { margin-top: -26px; }
.nav .nav-scan span {
  width: 66px; height: 66px; border-radius: 22px; background: var(--noir); color: var(--lime); display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(17, 16, 20, .28); transition: transform .15s var(--doux);
}
.nav .nav-scan span svg { width: 30px; height: 30px; stroke-width: 2.4; }
.nav .nav-scan:active span { transform: scale(.94); }
body.plein .nav { background: rgba(10, 10, 12, .72); border-top-color: rgba(255, 255, 255, .08); }
body.plein .nav a { color: #8D8A99; } body.plein .nav a.actif { color: #fff; }
body.plein .nav .nav-scan { visibility: hidden; }

/* ---------- Boutons, champs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px;
  border-radius: 16px; border: 0; background: var(--surface-2); font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .12s var(--doux), background .15s, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn-noir { background: var(--noir); color: var(--lime); }
.btn-lime { background: var(--lime); color: var(--noir); }
@media (prefers-color-scheme: dark) { .btn-noir { background: var(--lime); color: var(--noir); } }
.btn-contour { background: transparent; box-shadow: inset 0 0 0 1.5px var(--surface-3); }
.btn-plein { width: 100%; }
.btn-petit { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.lien { background: none; border: 0; padding: 0; color: var(--texte-2); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.rangee { display: flex; gap: 10px; } .rangee > * { flex: 1; }

.champ { display: block; }
.champ > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 0; background: var(--surface-2); outline: none;
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .15s;
}
input:focus, select:focus, textarea:focus { box-shadow: inset 0 0 0 2px var(--texte); }
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
input[type=range] { width: 100%; accent-color: var(--texte); }
:focus-visible { outline: 2.5px solid var(--lime-texte); outline-offset: 2px; }

/* Contrôle segmenté */
.seg { display: flex; background: var(--surface-2); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 11px; padding: 9px 10px; font-weight: 600; font-size: 14px; color: var(--texte-2); transition: background .2s, color .2s; white-space: nowrap; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--surface); color: var(--texte); box-shadow: var(--ombre); }
.seg-defile { overflow-x: auto; scrollbar-width: none; } .seg-defile::-webkit-scrollbar { display: none; }

/* Pastilles */
.pastille { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--texte-2); white-space: nowrap; }
.pastille.vert { background: var(--vert-fond); color: var(--vert); }
.pastille.orange { background: var(--orange-fond); color: var(--orange); }
.pastille.rouge { background: var(--rouge-fond); color: var(--rouge-texte); }
.pastille.bleu { background: var(--bleu-fond); color: var(--bleu); }
.pastille.lime { background: var(--lime); color: var(--noir); }
.pastilles { display: flex; flex-wrap: wrap; gap: 6px; }
.puce-site { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }

/* Cartes */
.carte { background: var(--surface); border-radius: var(--r); padding: 18px; box-shadow: var(--ombre); margin-top: 12px; }
.carte-titre { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.sous { color: var(--texte-2); }
.petit { font-size: 13.5px; color: var(--texte-2); }
.pile > * + * { margin-top: 12px; }
.chiffre { font-family: var(--titre); font-weight: 800; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }

/* Squelettes pendant le chargement */
.sq { border-radius: 10px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: brille 1.3s linear infinite; }
@keyframes brille { to { background-position: -200% 0; } }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav) + 14px); z-index: 60; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--noir); color: #fff; padding: 12px 18px; border-radius: 16px; font-size: 14.5px; font-weight: 500; box-shadow: var(--ombre-forte);
  max-width: calc(100% - 32px); width: max-content; text-align: center; transition: .25s var(--doux); display: flex; gap: 8px; align-items: center;
}
.toast.vu { opacity: 1; transform: translate(-50%, 0); }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex: none; }
.alerte { padding: 12px 14px; border-radius: 14px; background: var(--orange-fond); color: var(--orange); font-size: 14px; font-weight: 500; }
.alerte.erreur { background: var(--rouge-fond); color: var(--rouge-texte); }

/* ---------- Feuille du bas (bottom sheet) ---------- */
.voile { position: fixed; inset: 0; z-index: 40; background: rgba(10, 10, 12, .45); opacity: 0; transition: opacity .25s; }
.voile.ouvert { opacity: 1; }
.feuille {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: 26px 26px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .32s var(--doux); max-width: 640px; margin: 0 auto; box-shadow: var(--ombre-forte);
}
.feuille.ouvert { transform: none; }
.feuille .poignee { width: 42px; height: 5px; border-radius: 5px; background: var(--surface-3); margin: 0 auto 12px; }
.feuille-haut { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.fermer { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-2); display: grid; place-items: center; flex: none; }

/* ================= SCANNER ================= */
.scanner { position: fixed; inset: 0; bottom: 0; background: #000; color: #fff; z-index: 5; overflow: hidden; }
.scanner video, .scanner .fige { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanner .fige { z-index: 1; }
.scanner .degrade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.55) 0, transparent 22%, transparent 60%, rgba(0,0,0,.75) 100%); }
.scanner-haut { position: absolute; z-index: 4; left: 0; right: 0; top: 0; padding: calc(12px + env(safe-area-inset-top)) 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.scanner-haut .logo { height: 26px; width: auto; }
.rond-verre { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; display: grid; place-items: center; flex: none; }
.rond-verre[aria-pressed="true"] { background: var(--lime); color: var(--noir); }
.rond-verre svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mode { position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); top: calc(64px + env(safe-area-inset-top)); display: flex; padding: 4px; gap: 2px; border-radius: 99px; background: rgba(0,0,0,.42); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mode button { border: 0; background: transparent; color: rgba(255,255,255,.75); padding: 8px 16px; border-radius: 99px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.mode button[aria-pressed="true"] { background: #fff; color: var(--noir); }
.cadre { position: absolute; z-index: 3; left: 9%; right: 9%; top: 22%; bottom: 34%; pointer-events: none; }
.cadre i { position: absolute; width: 44px; height: 44px; border: 5px solid var(--lime); }
.cadre i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 18px; }
.cadre i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 18px; }
.cadre i:nth-child(3) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 18px; }
.cadre i:nth-child(4) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 18px; }
.cadre .rayon { position: absolute; left: 4%; right: 4%; height: 3px; border-radius: 3px; background: var(--lime); box-shadow: 0 0 22px 4px rgba(212,255,58,.55); top: 50%; opacity: 0; }
.scanner.analyse .cadre .rayon { opacity: 1; animation: balayage 2s ease-in-out infinite; }
@keyframes balayage { 0%, 100% { top: 6%; } 50% { top: 94%; } }
.indice { position: absolute; z-index: 3; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-weight: 600; color: rgba(255,255,255,.85); text-shadow: 0 1px 8px rgba(0,0,0,.5); padding: 0 40px; pointer-events: none; }
.scanner-bas { position: absolute; z-index: 4; left: 0; right: 0; bottom: calc(var(--nav) + 18px); padding: 0 20px; }
.miniatures { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; min-height: 58px; }
.miniature { position: relative; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 2px #fff; animation: pop .3s var(--doux); }
.miniature img { width: 100%; height: 100%; object-fit: cover; }
.miniature button { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 14px; line-height: 1; padding: 0; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.commandes { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.declencheur { width: 78px; height: 78px; border-radius: 50%; border: 4px solid #fff; background: transparent; padding: 4px; position: relative; }
.declencheur::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; transition: transform .12s var(--doux); }
.declencheur:active::after { transform: scale(.88); }
.declencheur input { position: absolute; inset: 0; opacity: 0; z-index: 2; }
.galerie { justify-self: start; position: relative; width: 50px; height: 50px; border-radius: 14px; background: rgba(255,255,255,.16); display: grid; place-items: center; overflow: hidden; }
.galerie svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.galerie input { position: absolute; inset: 0; opacity: 0; }
.analyser { justify-self: end; min-height: 50px; padding: 0 18px; border-radius: 16px; border: 0; background: var(--lime); color: var(--noir); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; animation: pop .3s var(--doux); }
.flash { position: absolute; inset: 0; z-index: 6; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { animation: flash .35s ease-out; }
@keyframes flash { from { opacity: .85; } to { opacity: 0; } }
.sans-camera { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 32px; text-align: center; background: radial-gradient(circle at 50% 40%, #23222A, #000 70%); }
.sans-camera .rond { width: 84px; height: 84px; border-radius: 28px; background: var(--lime); color: var(--noir); display: grid; place-items: center; }
.sans-camera .rond svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sans-camera p { color: #B9B6C6; }
.depot { outline: 2px dashed rgba(212,255,58,.7); outline-offset: -14px; }

/* Résultat qui monte pendant l'analyse */
.resultat-direct { position: absolute; z-index: 5; left: 12px; right: 12px; bottom: calc(var(--nav) + 12px); background: var(--surface); color: var(--texte); border-radius: 24px; padding: 18px; box-shadow: var(--ombre-forte); animation: monte .45s var(--doux) both; max-width: 576px; margin: 0 auto; }
@keyframes monte { from { transform: translateY(40px); opacity: 0; } }
.resultat-direct .ligne { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.resultat-direct h2 { font-size: 22px; }
.resultat-direct .chiffre { font-size: 40px; }
.etat-analyse { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--texte-2); margin-top: 12px; }
.etat-analyse::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--lime-texte); animation: pouls 1s ease-in-out infinite; }
@keyframes pouls { 50% { transform: scale(.5); opacity: .5; } }

/* ================= FICHE OBJET ================= */
.galerie-fiche { margin: 0 -16px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px; scrollbar-width: none; }
.galerie-fiche::-webkit-scrollbar { display: none; }
.galerie-fiche figure { margin: 0; flex: 0 0 78%; max-width: 380px; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; scroll-snap-align: center; background: var(--surface-2); position: relative; }
.galerie-fiche figure:only-child { flex-basis: 100%; max-width: none; aspect-ratio: 1; }
.galerie-fiche img { width: 100%; height: 100%; object-fit: cover; }
.galerie-fiche figcaption { position: absolute; left: 10px; bottom: 10px; }
.entete-fiche { margin-top: 16px; }
.entete-fiche h1 { font-size: 26px; }
.entete-fiche .pastilles { margin-top: 10px; }
.prix-tete { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.prix-tete .chiffre { font-size: 52px; }
.onglets-fiche { position: sticky; top: 0; z-index: 8; margin: 18px -16px 0; padding: 10px 16px; background: color-mix(in srgb, var(--fond) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* Verdict d'achat */
.verdict { border-radius: var(--r); padding: 18px; margin-top: 12px; background: var(--noir); color: #fff; }
@media (prefers-color-scheme: dark) { .verdict { background: var(--surface); } }
.verdict .petit { color: #B4B1C2; }
.verdict .saisie { display: flex; align-items: center; gap: 10px; margin-top: 10px; background: rgba(255,255,255,.1); border-radius: 16px; padding: 4px 4px 4px 16px; }
.verdict .saisie input { background: transparent; color: #fff; font-family: var(--titre); font-weight: 800; font-size: 30px; min-height: 58px; padding: 0; box-shadow: none !important; }
.verdict .saisie span { font-family: var(--titre); font-size: 26px; font-weight: 800; color: #8D8A99; padding-right: 10px; }
.verdict-texte { margin-top: 14px; padding: 14px; border-radius: 16px; font-weight: 600; line-height: 1.35; }
.verdict-texte.bon { background: #1C3A12; color: #B6F57F; }
.verdict-texte.moyen { background: #3A2B0D; color: #F7C969; }
.verdict-texte.mauvais { background: #3D1715; color: #FF968D; }
.verdict-texte.neutre { background: rgba(255,255,255,.08); color: #D6D3E0; }
.verdict .max { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 14px; }
.verdict .max .chiffre { font-size: 38px; color: var(--lime); white-space: nowrap; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stat { background: var(--surface-2); border-radius: 14px; padding: 12px; }
.stat b { display: block; font-family: var(--titre); font-size: 18px; letter-spacing: -.02em; }
.stat span { font-size: 12.5px; color: var(--texte-2); }

.sites { display: grid; gap: 2px; }
.site { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--ligne); }
.site:first-child { border-top: 0; padding-top: 0; }
.site .nom { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.site .net { font-weight: 700; font-variant-numeric: tabular-nums; }
.site .raison { grid-column: 2 / -1; font-size: 13.5px; color: var(--texte-2); }
.site .jauge { grid-column: 2 / -1; height: 5px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.site .jauge b { display: block; height: 100%; background: var(--texte); border-radius: 5px; transition: width .6s var(--doux); }
.site.premier .jauge b { background: var(--lime-texte); }
.verifier { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.verifier li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; background: var(--orange-fond); color: var(--orange); padding: 10px 12px; border-radius: 12px; font-weight: 500; }
.verifier li::before { content: "?"; font-weight: 800; }

.comparables { display: flex; gap: 10px; overflow-x: auto; margin: 12px -18px 0; padding: 0 18px 4px; scrollbar-width: none; }
.comparable { flex: none; width: 116px; text-decoration: none; font-size: 12.5px; }
.comparable img { width: 116px; height: 116px; object-fit: cover; border-radius: 14px; background: var(--surface-2); }
.comparable b { display: block; margin-top: 6px; font-size: 14px; }
.comparable span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--texte-2); }

/* Photos */
.photos-grille { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.photo-tuile { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); }
.photo-tuile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tuile .bascule { position: absolute; left: 8px; bottom: 8px; right: 8px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.photo-tuile.ajout { display: grid; place-items: center; text-align: center; color: var(--texte-2); font-weight: 600; font-size: 14px; cursor: pointer; box-shadow: inset 0 0 0 2px var(--surface-3); background: transparent; }
.photo-tuile.ajout input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-tuile.ajout svg { width: 28px; height: 28px; margin: 0 auto 6px; display: block; }
.photo-tuile .encours { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.35); color: #fff; font-weight: 600; font-size: 13px; }
.nuancier { display: flex; gap: 10px; overflow-x: auto; padding: 6px 6px 10px; margin: 0 -6px; scrollbar-width: none; }
.nuance { flex: none; width: 46px; height: 46px; border-radius: 14px; border: 0; padding: 0; box-shadow: inset 0 0 0 1px var(--ligne); transition: transform .15s; }
.nuance[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--texte); transform: scale(1.05); }

/* Annonce */
.bloc { background: var(--surface-2); border-radius: 16px; padding: 12px 14px; position: relative; }
.bloc + .bloc { margin-top: 8px; }
.bloc .etiquette { font-size: 12px; font-weight: 700; color: var(--texte-3); letter-spacing: .03em; text-transform: uppercase; display: flex; gap: 8px; }
.bloc .etiquette .trop { color: var(--rouge-texte); }
.bloc .contenu { margin-top: 4px; white-space: pre-wrap; word-break: break-word; padding-right: 44px; outline: none; }
.bloc .contenu:focus { box-shadow: 0 0 0 2px var(--texte); border-radius: 6px; }
.bloc .copier { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--surface); display: grid; place-items: center; }
.bloc .copier.fait { background: var(--lime); color: var(--noir); }
.champs-site { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; margin-top: 6px; }
.champs-site dt { color: var(--texte-2); } .champs-site dd { margin: 0; font-weight: 600; }
.ecriture { display: grid; gap: 8px; }
.ecriture .titre-direct { font-weight: 600; animation: entree .3s var(--doux); }

/* Assistant de publication */
.etapes { display: grid; gap: 8px; }
.etape { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface-2); text-align: left; border: 0; width: 100%; transition: background .2s, transform .12s; }
.etape:active { transform: scale(.985); }
.etape .num { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.etape.fait .num { background: var(--lime); color: var(--noir); }
.etape.suivante { background: var(--lime-doux); box-shadow: inset 0 0 0 2px var(--lime-texte); }
.etape b { display: block; font-size: 15px; }
.etape small { display: block; color: var(--texte-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52vw; }
.etape .action { font-size: 13px; font-weight: 700; color: var(--texte-2); }

/* Réponses toutes prêtes */
.reponse { display: block; width: 100%; text-align: left; border: 0; background: var(--surface-2); border-radius: 16px; padding: 12px 14px; }
.reponse + .reponse { margin-top: 8px; }
.reponse b { display: block; font-size: 14px; }
.reponse span { display: block; color: var(--texte-2); font-size: 14px; margin-top: 2px; }

/* ================= STOCK ================= */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.kpi { background: var(--surface); border-radius: var(--r); padding: 16px; box-shadow: var(--ombre); }
.kpi.fort { grid-column: 1 / -1; background: var(--noir); color: #fff; }
@media (prefers-color-scheme: dark) { .kpi.fort { background: var(--surface-2); } }
.kpi .chiffre { font-size: 30px; display: block; margin-top: 4px; }
.kpi.fort .chiffre { font-size: 46px; color: var(--lime); }
.kpi span { font-size: 13px; color: var(--texte-2); font-weight: 500; }
.kpi.fort span { color: #B4B1C2; }
.liste { display: grid; gap: 8px; margin-top: 12px; }
.objet { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; padding: 10px; padding-right: 14px; border-radius: 18px; background: var(--surface); box-shadow: var(--ombre); text-decoration: none; transition: transform .12s; }
.objet:active { transform: scale(.985); }
.objet img { width: 62px; height: 62px; border-radius: 13px; object-fit: cover; background: var(--surface-2); }
.objet b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.objet .meta { display: flex; gap: 6px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.objet .droite { text-align: right; }
.objet .droite .chiffre { font-size: 19px; display: block; }
.vide { text-align: center; padding: 48px 16px 24px; }
.vide .rond { width: 76px; height: 76px; border-radius: 26px; background: var(--lime); display: grid; place-items: center; margin: 0 auto 16px; }
.vide .rond svg { width: 36px; height: 36px; fill: none; stroke: var(--noir); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Compte */
.interrupteur { position: relative; width: 52px; height: 32px; flex: none; }
.interrupteur input { position: absolute; inset: 0; opacity: 0; margin: 0; z-index: 1; }
.interrupteur i { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-3); transition: .2s; }
.interrupteur i::after { content: ""; position: absolute; width: 26px; height: 26px; top: 3px; left: 3px; border-radius: 50%; background: #fff; transition: .2s var(--doux); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.interrupteur input:checked + i { background: var(--lime-texte); }
.interrupteur input:checked + i::after { left: 23px; }
.reglage { display: flex; justify-content: space-between; align-items: center; gap: 14px; }

/* Bouton compte (en haut à droite) */
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); box-shadow: var(--ombre); display: grid; place-items: center; flex: none; color: var(--texte); }
.avatar svg { width: 21px; height: 21px; }
.puce-cat { flex: none; border: 0; background: var(--surface-2); color: var(--texte-2); border-radius: 99px; padding: 8px 14px; font-weight: 600; font-size: 14px; }
.puce-cat[aria-pressed="true"] { background: var(--noir); color: var(--lime); }
@media (prefers-color-scheme: dark) { .puce-cat[aria-pressed="true"] { background: var(--lime); color: var(--noir); } }

/* Abonnement */
.offres { display: grid; gap: 14px; margin-top: 16px; }
.offre { position: relative; background: var(--surface); border-radius: var(--r); padding: 20px; box-shadow: var(--ombre); }
.offre.vedette { box-shadow: inset 0 0 0 2.5px var(--lime-texte), var(--ombre); margin-top: 6px; }
.avantages { list-style: none; margin: 12px 0 16px; padding: 0; display: grid; gap: 8px; }
.avantages li { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.avantages svg { color: var(--lime-texte); width: 18px; height: 18px; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.pack { border: 0; text-align: left; background: var(--surface); box-shadow: var(--ombre); border-radius: 18px; padding: 16px; display: grid; gap: 4px; transition: transform .12s; }
.pack:active { transform: scale(.97); }
.pack b { font-size: 16px; } .pack span { color: var(--texte-2); font-size: 13.5px; }
.pack .chiffre { color: var(--texte); font-size: 24px; margin-top: 6px; }
@media (min-width: 700px) { .offres { grid-template-columns: repeat(3, 1fr); } }

@media (min-width: 700px) {
  .galerie-fiche figure { flex-basis: 46%; }
  .prix-tete .chiffre { font-size: 60px; }
}
