/* Thème d'Arka : blanc, texte noir, boutons ronds, une couleur par étape de la chaîne.
   Chargé en dernier ; le préfixe "html body" passe devant les styles ajoutés par annonces.js / niches.js. */
:root {
  --bg:#ffffff; --panel:#ffffff; --field:#ffffff; --ink:#000000; --muted:#5e5e5e; --line:#e8e8e8; --soft:#f3f3f3;
  --orange:#05944f; --accent:#06c167; --accent-ink:#05944f; --green:#05944f; --red:#e11900;
  --bleu:#276ef1; --bleu-f:#eef3ff; --orange2:#c25700; --orange-f:#fff3e6; --violet:#7356bf; --violet-f:#f3eeff; --vert:#05944f; --vert-f:#e6f8ee;
  --r:16px;
}
html body { font-family:'Inter Tight',system-ui,Segoe UI,Roboto,sans-serif; background:#fff; color:var(--ink); -webkit-font-smoothing:antialiased; }
html body a { color:var(--ink); }
html body .muted { color:var(--muted); }

/* En-tête */
html body header { background:#fff; border-bottom:1px solid #eeeeee; padding:0 40px; min-height:68px; gap:16px; flex-wrap:wrap; }
html body .hd-l { display:flex; align-items:center; gap:36px; flex-wrap:wrap; }
html body header h1 { font-size:22px; font-weight:700; letter-spacing:-.02em; text-transform:none; display:flex; align-items:center; gap:10px; }
html body header h1 span { width:30px; height:30px; border-radius:9px; background:var(--accent); display:block; }
html body .nav { gap:4px; background:none; padding:0; }
html body .nav button { border:none; background:none; border-radius:999px; font-size:15px; font-weight:500; color:var(--ink); padding:10px 16px; }
html body .nav button:hover { background:var(--soft); }
html body .nav button.on { background:#000; color:#fff; font-weight:600; }
html body .avatar { width:38px; height:38px; padding:0; border-radius:999px; background:#000; color:#fff; border:none; font-size:15px; }
html body #subnav { background:#fff; border-bottom:1px solid #f0f0f0; }
html body #subnav:empty { display:none; }
html body .subnav-in { max-width:1620px; margin:0 auto; padding:10px 40px; display:flex; gap:6px; flex-wrap:wrap; }
html body .subnav-in button { border:none; background:var(--soft); border-radius:999px; padding:8px 16px; font-size:14px; font-weight:600; }
html body .subnav-in button.on { background:#000; color:#fff; }
@media (max-width:700px) { html body header { padding:10px 16px; } html body .subnav-in { padding:10px 16px; } }

/* Titres */
html body main { padding-top:40px; }
html body .head h2 { font-weight:700; letter-spacing:-.035em; font-size:clamp(32px,4.4vw,56px); line-height:1.02; }
html body h2, html body h3 { letter-spacing:-.02em; }

/* Champs et boutons */
html body input, html body select, html body textarea { border-radius:12px; border:1px solid var(--line); background:#fff; }
html body input:focus, html body select:focus, html body textarea:focus { outline:none; border-color:#000; box-shadow:0 0 0 3px rgba(0,0,0,.08); }
html body button { border-radius:999px; font-weight:600; transition:background .15s, transform .15s; }
html body button:hover { background:var(--soft); }
html body button.go { background:#000; border:none; color:#fff; box-shadow:none; }
html body button.go:hover, html body .black:hover { background:#282828; }
html body .black { background:#000; border-color:#000; color:#fff; }
html body .search input { background:var(--soft); border:none; border-radius:999px; padding:12px 18px; }
html body .chips2 button { border-radius:999px; background:var(--soft); padding:7px 14px; }
html body .chips2 button.on { background:#000; color:#fff; }
html body .linkbtn { color:var(--ink); }

/* Catégories (tuiles) */
html body .cat { background:var(--soft); border:none; border-radius:var(--r); color:var(--ink); transition:transform .18s, background .18s; }
html body .cat:hover { background:#eaeaea; transform:translateY(-2px); }
html body .cat.on { background:#000; color:#fff; }
html body .cat .ic { filter:none; }
html body .cat b { letter-spacing:-.01em; font-weight:700; font-size:16px; text-transform:none; }
html body .cat small { color:var(--muted); } html body .cat.on small { color:#bdbdbd; }

/* Cartes fiches (nouvelle carte) */
html body .card .fc-img { position:relative; border-radius:var(--r); overflow:hidden; background:var(--soft); padding:0; }
html body .card .fc-v, html body .card .fc-s, html body .card .fc-dos, html body .card .fc-prix span { display:inline-block; }
html body .card .fc-v { color:#fff; } html body .card .fc-s { color:var(--vert); } html body .card .fc-dos { color:var(--orange2); } html body .card .fc-prix span { color:var(--muted); }
html body .card .fc-img img { border-radius:0; transition:transform .3s; }
html body .card:hover .fc-img img { transform:scale(1.03); }
html body .card .fc-tags { position:absolute; left:10px; top:10px; display:flex; flex-direction:column; align-items:flex-start; gap:6px; padding:0; }
.fc-v, .fc-s { font-size:12px; font-weight:700; padding:5px 10px; border-radius:999px; }
.fc-v { background:#000; color:#fff; } .fc-s { background:#fff; color:var(--vert); }
.fc-dos { position:absolute; left:10px; bottom:10px; font-size:11px; font-weight:600; padding:4px 10px; border-radius:999px; background:rgba(255,255,255,.92); color:var(--orange2); }
html body .card .fc-info { padding:12px 2px 4px; display:flex; flex-direction:column; gap:8px; font-size:14px; }
html body .card .fc-info > b { white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; line-height:1.3; font-weight:600; min-height:2.6em; }
html body .card .fc-prix { display:flex; flex-wrap:wrap; gap:6px; padding:0; }
.fc-prix span { font-size:12px; color:var(--muted); background:var(--soft); padding:4px 10px; border-radius:999px; }
.fc-prix span b { color:var(--ink); display:inline !important; font-weight:700; }
.fc-prix .fc-pv { background:var(--vert-f); } .fc-prix .fc-pv b { color:var(--vert); }
.fc-prix .fc-type { text-transform:capitalize; }
html body .card .fc-info small { color:#9a9a9a; font-size:11px; font-variant-numeric:tabular-nums; }

/* Cartes fiches */
html body .cards { gap:20px; }
html body .card { border:none; border-radius:var(--r); padding:0; box-shadow:none; background:#fff; transition:transform .18s; }
html body .card:hover { transform:translateY(-3px); }
html body .card img { border-radius:var(--r); background:var(--soft); }
html body .card div { padding:12px 4px 4px; }
html body .card b { font-weight:700; font-size:14px; }
html body .card.sel { outline:3px solid #000; outline-offset:3px; border-radius:var(--r); }
html body .card .ck { border-radius:999px; top:12px; right:12px; width:30px; height:30px; }
html body .card.sel .ck { background:#000; border-color:#000; }
html body .badge-w, html body .badge-s, html body .badge-v { border-radius:999px; font-weight:600; padding:3px 10px; }
html body .badge-w { background:var(--orange-f); color:var(--orange2) !important; }
html body .badge-s { background:var(--vert-f); color:var(--vert) !important; }
html body .badge-v { background:#000; }
html body .selbar { border-radius:999px; border:none; padding:10px 12px 10px 22px; box-shadow:0 12px 40px rgba(0,0,0,.18); }
html body .af { border-radius:10px; } html body .af.on { background:#000; }

/* Blocs */
html body .box, html body .vet, html body .gitem, html body .ccard, html body .fond, html body .steps, html body .login { border-radius:var(--r); border:1px solid var(--line); box-shadow:none; }
html body .panel { background:var(--soft); border:none; border-radius:var(--r); }
html body .p-title, html body .m-title { letter-spacing:-.01em; text-transform:none; font-size:16px; font-weight:700; }
html body .col { background:var(--soft); border:none; border-radius:var(--r); }
html body .col-h { letter-spacing:0; text-transform:none; font-size:15px; }
html body .kanban > .panel:nth-child(4n+1) { background:var(--bleu-f); } html body .kanban > .panel:nth-child(4n+2) { background:var(--orange-f); }
html body .kanban > .panel:nth-child(4n+3) { background:var(--violet-f); } html body .kanban > .panel:nth-child(4n+4) { background:var(--vert-f); }
html body .fond { overflow:hidden; } html body .gitem img, html body .ph img { border-radius:12px; }
html body .steps { overflow:hidden; } html body .steps div.on { background:var(--soft); border-left-color:#000; }
html body .vet-f { border-radius:12px; background:var(--soft); border:none; }
html body .gbar b { color:var(--accent-ink); } html body .gbar i { background:var(--accent); }
html body .warn { border-radius:12px; }
html body .toast { background:#000; border-radius:999px; padding:12px 20px; }
html body .login { margin-top:12vh; padding:36px; }
html body .login h2 { font-weight:700; letter-spacing:-.03em; font-size:32px; }

/* Fenêtre fiche produit */
html body .modal-bg { background:rgba(0,0,0,.45); }
html body .modal { background:#fff; border-radius:24px; overflow:hidden; box-shadow:0 30px 80px rgba(0,0,0,.25); }
html body .m-head, html body .m-foot { background:#fff; border-color:#f0f0f0; }
html body .pill { background:var(--soft); border-radius:999px; } html body .pill.on { background:#000; }
html body .slot { border-radius:14px; background:var(--soft); }
html body .tag { background:#000; border-radius:999px; }
html body .pic { border-radius:14px; } html body .pic.sel { border-color:#000; }
html body .sz { border-radius:12px; border-color:var(--line); } html body .sz.has { border-color:#000; background:var(--soft); }
html body .ctr button { border-radius:999px; }
html body .picker img { border-radius:10px; } html body .picker img:hover { border-color:#000; }

/* Fiche d'un compte */
html body .cpt-head { display:flex; align-items:center; gap:16px; padding:22px 28px; }
.cpt-av { width:52px; height:52px; border-radius:999px; background:#000; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; flex:none; }
html body .cpt-nom { border:none; padding:0; font-size:26px; font-weight:700; letter-spacing:-.02em; background:none; }
html body .cpt-nom:focus { box-shadow:none; }
html body .cpt-head .m-close { position:static; }
html body .cpt-body { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:16px; padding-top:16px; }
html body .cpt-body > .panel { grid-column:1/-1; }
@media (max-width:800px) { html body .cpt-body { grid-template-columns:1fr; } }
.cpt-bloc { background:var(--soft); border-radius:var(--r); padding:22px; }
.cpt-bloc h4 { margin:18px 0 10px; font-size:14px; font-weight:700; } .cpt-bloc h4:first-child { margin-top:0; }
.cpt-chips { display:flex; flex-wrap:wrap; gap:6px; }
html body .cpt-chips button { border:none; background:#fff; padding:8px 14px; font-size:13px; display:flex; align-items:center; gap:7px; }
html body .cpt-chips button.on { background:#000; color:#fff; }
.cpt-chips i { width:8px; height:8px; border-radius:999px; background:#c6c6c6; }
.et-remplir i { background:var(--vert); } .et-plein i { background:var(--bleu); } .et-restreint i { background:var(--orange2); }
.et-vide i { background:#a6a6a6; } .et-repos i { background:var(--violet); } .et-bloque i { background:var(--red); }
html body .cpt-bloc textarea { min-height:70px; border:none; }
html body .cpt-bloc select { border:none; }
.cpt-bloc .f label { font-size:12px; color:var(--muted); font-weight:600; }
.cpt-fonds { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
/* Choix du fond */
html body .fond-choix { display:block; width:100%; padding:0; border:none; background:none; position:relative; border-radius:14px; overflow:hidden; }
.fond-choix img { width:100%; aspect-ratio:4/5; object-fit:cover; display:block; background:#eaeaea; }
.fond-choix b { position:absolute; left:10px; top:10px; background:#fff; font-size:12px; padding:4px 10px; border-radius:999px; }
.fond-choix span { position:absolute; right:10px; bottom:10px; background:#000; color:#fff; font-size:12px; padding:6px 12px; border-radius:999px; }
html body .fond-choix:hover { background:none; } .fond-choix:hover img { opacity:.85; }
.fp-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:14px; padding:6px 0 10px; }
html body .fp-item { padding:0; border:none; background:none; border-radius:14px; text-align:left; font-weight:400; }
html body .fp-item:hover { background:none; transform:translateY(-2px); }
.fp-item img { width:100%; aspect-ratio:3/4; object-fit:cover; border-radius:14px; display:block; background:#eaeaea; }
.fp-item span { display:flex; flex-direction:column; padding:6px 2px 0; font-size:13px; } .fp-item small { color:var(--muted); }
.fp-item.on img { outline:3px solid var(--accent); outline-offset:2px; }

/* Articles d'un compte */
.a-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:12px; max-height:520px; overflow:auto; }
.a-art { position:relative; cursor:pointer; border-radius:14px; }
.a-art img { width:100%; aspect-ratio:3/4; object-fit:cover; border-radius:14px; display:block; background:#eaeaea; }
.a-art p { margin:6px 2px 0; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.a-st { position:absolute; top:8px; left:8px; font-size:11px; font-weight:700; padding:3px 9px; border-radius:999px; background:#fff; }
.a-st.st-a_generer { background:var(--violet); color:#fff; } .a-st.st-genere { background:var(--orange2); color:#fff; } .a-st.st-poste { background:var(--vert); color:#fff; }
.a-ck { position:absolute; top:8px; right:8px; width:26px; height:26px; border-radius:999px; background:rgba(255,255,255,.9); color:transparent; display:flex; align-items:center; justify-content:center; font-style:normal; font-weight:700; }
.a-art.sel { outline:3px solid #000; outline-offset:2px; } .a-art.sel .a-ck { background:#000; color:#fff; }
html body #a-filtres button { border:none; background:#fff; padding:6px 12px; font-size:13px; } html body #a-filtres button.on { background:#000; color:#fff; }

/* Accueil */
.pill-noir, .pill-gris { font-size:16px !important; padding:14px 24px !important; border:none !important; min-height:48px; }
html body .pill-noir { background:#000; color:#fff; } html body .pill-noir:hover { background:#282828; }
html body .pill-gris { background:var(--soft); color:#000; } html body .pill-gris:hover { background:#e6e6e6; }
#app section { margin-bottom:56px; }
.acc-hero { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-end; gap:24px; margin-top:16px; }
.acc-date { color:var(--muted); font-weight:500; font-size:16px; text-transform:capitalize; }
.acc-hero h1 { margin:12px 0 0; font-size:clamp(36px,5vw,56px); line-height:1.04; font-weight:700; letter-spacing:-.035em; }
html body .acc-prenom { font:inherit; letter-spacing:inherit; border:none; background:none; padding:0; border-radius:0; color:inherit; cursor:pointer; }
html body .acc-prenom:hover { background:none; text-decoration:underline; text-decoration-thickness:3px; text-underline-offset:6px; }
.acc-hero h1 em { font-style:normal; color:var(--vert); }
.acc-titre { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:8px; }
.acc-titre h2 { margin:0; font-size:28px; font-weight:700; }
.acc-aide { margin:0 0 20px; font-size:16px; max-width:720px; }
html body .acc-switch { display:flex; align-items:center; gap:12px; background:var(--soft); border:none; padding:8px 8px 8px 18px; min-height:48px; font-size:15px; }
.acc-switch i { width:52px; height:32px; border-radius:999px; background:#c6c6c6; display:flex; align-items:center; padding:3px; box-sizing:border-box; transition:background .2s; }
.acc-switch i b { width:26px; height:26px; border-radius:999px; background:#fff; display:block; transition:margin .2s; }
.acc-switch.on i { background:var(--accent); } .acc-switch.on i b { margin-left:20px; }
.acc-etapes { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; }
.etape { border-radius:var(--r); padding:24px; display:flex; flex-direction:column; gap:18px; min-height:270px; }
.etape h3 { margin:0 0 4px; font-size:26px; font-weight:700; }
.etape-h { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.etape .num { width:40px; height:40px; border-radius:999px; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; }
html body .maillon { border:none; background:#fff; color:var(--muted); font-size:13px; padding:6px 12px; }
html body .maillon.on { background:#000; color:#fff; }
.etape-n { margin-top:auto; display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.etape-n b { font-size:40px; letter-spacing:-.03em; }
html body .etape-go { background:#fff; border:none; display:flex; justify-content:space-between; align-items:center; padding:12px 18px; min-height:44px; box-shadow:0 1px 3px rgba(0,0,0,.08); font-size:15px; }
html body .etape-go:hover { background:#fff; transform:translateX(2px); }
.c-bleu.etape { background:var(--bleu-f); } .c-bleu .num, i.c-bleu, .av.c-bleu { background:var(--bleu); }
.c-orange.etape { background:var(--orange-f); } .c-orange .num, i.c-orange, .av.c-orange { background:var(--orange2); }
.c-violet.etape { background:var(--violet-f); } .c-violet .num, i.c-violet, .av.c-violet { background:var(--violet); }
.c-vert.etape { background:var(--vert-f); } .c-vert .num, i.c-vert, .av.c-vert { background:var(--vert); }
i.c-rouge { background:var(--red); }
.acc-phrase { color:var(--ink); } .acc-phrase em { font-style:normal; color:var(--vert); }
.acc-tuiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; }
.acc-tuiles > div { border-radius:var(--r); padding:22px; display:flex; flex-direction:column; gap:4px; }
.acc-tuiles span { color:var(--muted); font-size:14px; font-weight:500; } .acc-tuiles b { font-size:44px; letter-spacing:-.03em; line-height:1.1; font-variant-numeric:tabular-nums; } .acc-tuiles small { color:var(--muted); font-size:13px; }
.acc-tuiles .c-vert { background:var(--vert-f); } .acc-tuiles .c-orange { background:var(--orange-f); } .acc-tuiles .c-bleu { background:var(--bleu-f); } .acc-tuiles .c-violet { background:var(--violet-f); }
.tache { display:flex; align-items:center; gap:14px; padding:14px 0; border-bottom:1px solid #f0f0f0; } .tache:last-child { border-bottom:none; }
.tache > div { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; } .tache b { font-size:16px; } .tache .muted { font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tache-n { min-width:40px; height:40px; padding:0 8px; border-radius:12px; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:16px; flex:none; }
.tache-n.c-rouge { background:var(--red); } .tache-n.c-orange { background:var(--orange2); } .tache-n.c-violet { background:var(--violet); } .tache-n.c-bleu { background:var(--bleu); }
html body .tache-b { font-size:13px !important; padding:9px 16px !important; min-height:38px; text-decoration:none; white-space:nowrap; flex:none;
  display:inline-flex; align-items:center; gap:6px; border-radius:999px; border:none; font-weight:600; cursor:pointer; }
html body a.tache-b.pill-gris { background:var(--soft); color:#000; } html body a.tache-b.pill-noir { background:#000; color:#fff; }
html body a.tache-b:hover { filter:brightness(.94); }
.tache-bloc { border-bottom:1px solid #f0f0f0; } .tache-bloc:last-child { border-bottom:none; } .tache-bloc .tache { border-bottom:none; }
.tache-detail { display:flex; flex-direction:column; gap:6px; padding:0 0 14px 54px; } .tache-detail[hidden] { display:none; }
.cmd-l { display:flex; align-items:center; gap:12px; padding:8px 12px; border-radius:12px; background:var(--soft); text-decoration:none; color:var(--ink); }
html body .cmd-l:hover { background:#eaeaea; }
.cmd-l img, .cmd-ph { width:36px; height:46px; object-fit:cover; border-radius:6px; background:#ddd; flex:none; }
.cmd-l > div { flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; } .cmd-l b { font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .cmd-l .muted { font-size:12px; }
.cmd-go { display:inline-flex; align-items:center; gap:4px; font-size:13px; font-weight:600; white-space:nowrap; }
.barres .bv { font-size:11px; color:var(--muted); font-weight:600; min-height:14px; }
#acc-barres { height:auto; margin-top:12px; align-items:flex-end; } #acc-barres > div { justify-content:flex-end; height:140px; }
.top { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid #e6e6e6; } .top:last-child { border-bottom:none; }
.top img { width:44px; height:58px; object-fit:cover; border-radius:8px; background:#e6e6e6; flex:none; }
.top > div { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; } .top b { font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .top .muted { font-size:12px; }
html body .acompte { text-align:left; background:#fff; font-weight:400; border-radius:var(--r); cursor:pointer; }
html body .acompte:hover { background:#fafafa; box-shadow:0 8px 24px rgba(0,0,0,.06); }
.auj-v { margin-left:auto; font-size:12px; font-weight:700; color:var(--vert); background:var(--vert-f); padding:4px 9px; border-radius:999px; align-self:flex-start; }
.acc-etapes.compact .etape { min-height:0; gap:10px; padding:18px; text-align:left; border:none; font-weight:400; cursor:pointer; }
.acc-etapes.compact .etape h3 { font-size:20px; margin:0; } .acc-etapes.compact .etape-n b { font-size:30px; }
html body .acc-etapes.compact .etape:hover { filter:brightness(.97); }
.acc-2 { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:16px; }
.acc-ventes { background:var(--soft); border-radius:var(--r); padding:28px; display:flex; flex-direction:column; gap:18px; }
.acc-big { display:flex; align-items:baseline; gap:12px; } .acc-big b { font-size:64px; letter-spacing:-.04em; line-height:1; }
.evol { font-size:14px; font-weight:700; color:#03703c; background:#dcf6e7; padding:4px 10px; border-radius:999px; }
.evol.bas { color:#a31500; background:#ffe7e3; }
.barres { display:flex; align-items:flex-end; gap:8px; height:110px; }
.barres div { flex:1; display:flex; flex-direction:column; align-items:center; gap:8px; }
.barres i { width:100%; border-radius:6px; background:#d9d9d9; display:block; } .barres i.auj { background:var(--accent); }
.barres small { color:var(--muted); font-size:12px; text-transform:uppercase; }
.acc-regler { border:1px solid var(--line); border-radius:var(--r); padding:28px; display:flex; flex-direction:column; }
.ligne { display:flex; align-items:center; gap:14px; padding:14px 0; border-bottom:1px solid #f0f0f0; }
.ligne:last-child { border-bottom:none; }
.ligne > div { flex:1; display:flex; flex-direction:column; gap:2px; } .ligne b { font-size:16px; }
.pt { width:10px; height:10px; border-radius:999px; flex:none; }
html body .lien { border:none; background:none; padding:6px 4px; font-size:14px; text-decoration:underline; text-underline-offset:3px; }
html body .lien:hover { background:none; }
.acc-comptes { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:12px; }
.acompte { border:1px solid var(--line); border-radius:var(--r); padding:20px; display:flex; flex-direction:column; gap:12px; }
.acompte-h { display:flex; align-items:center; gap:12px; } .acompte-h div { display:flex; flex-direction:column; min-width:0; }
.acompte-h b { font-size:16px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .acompte-h .muted { font-size:13px; }
.av { width:44px; height:44px; border-radius:999px; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; flex:none; }
.acompte-n { display:flex; justify-content:space-between; font-size:14px; }
.jauge { height:6px; border-radius:999px; background:#f0f0f0; overflow:hidden; } .jauge i { display:block; height:100%; border-radius:999px; }

/* Progression de la génération */
.gen-prog { position:sticky; top:76px; z-index:4; background:#fff; border:1px solid var(--line); border-radius:var(--r); padding:16px 20px; margin-bottom:16px; box-shadow:0 6px 20px rgba(0,0,0,.06); }
.gp-h { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:10px; } .gp-h b { font-size:16px; }
.gp-barre, .ph-barre { height:8px; border-radius:999px; background:var(--soft); overflow:hidden; }
.gp-barre i, .ph-barre i { display:block; height:100%; width:0; border-radius:999px; background:var(--accent); transition:width .5s linear; }
.ph .load { flex-direction:column; gap:10px; } .ph-barre { width:80%; height:6px; }
html body.sombre .gen-prog { background:#1a1a1a; }

/* Installation de l'extension */
.ext-install { margin-top:10px; background:var(--soft); border-radius:var(--r); padding:20px 22px; max-width:640px; font-size:14px; }
.ext-install p { margin:6px 0 14px; } .ext-install ol { margin:16px 0 0; padding-left:20px; display:flex; flex-direction:column; gap:6px; color:var(--muted); }
.ext-install code { background:#fff; padding:2px 6px; border-radius:6px; font-size:13px; }
html body .ext-install .pill-noir { display:inline-block; text-decoration:none; border-radius:999px; }

/* Niches */
.src-ext { font-size:13px; margin-top:12px; }
.src-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; margin-bottom:28px; }
.src-stats > div { border-radius:var(--r); padding:20px 22px; display:flex; flex-direction:column; gap:4px; }
.src-stats span { color:var(--muted); font-size:14px; font-weight:500; } .src-stats b { font-size:36px; letter-spacing:-.03em; } .src-stats small { font-size:18px; color:var(--muted); }
.src-stats .c-vert { background:var(--vert-f); } .src-stats .c-bleu { background:var(--bleu-f); } .src-stats .c-violet { background:var(--violet-f); }
.src-onglets { display:flex; gap:6px; margin-bottom:14px; }
html body .src-onglets button { border:none; background:var(--soft); padding:10px 18px; font-size:14px; }
html body .src-onglets button.on { background:#000; color:#fff; }
.src-aide { margin-bottom:20px; } .src-aide summary { font-size:14px; } .src-aide summary span { color:#9a9a9a; }
.src-log { white-space:pre-wrap; max-height:260px; overflow:auto; background:var(--soft); border-radius:14px; padding:14px 16px; margin:12px 0 0; font-size:12px; color:var(--muted); }
.niches { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:16px; }
.niche { border:1px solid var(--line); border-radius:var(--r); padding:22px; display:flex; flex-direction:column; gap:16px; background:#fff; transition:box-shadow .2s, transform .2s; }
.niche:hover { box-shadow:0 10px 30px rgba(0,0,0,.08); transform:translateY(-2px); }
.niche.off { opacity:.55; }
.niche-h { display:flex; align-items:center; gap:12px; } .niche-h > div { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.niche-h b { font-size:17px; line-height:1.25; letter-spacing:-.01em; } .niche-h .muted { font-size:13px; text-transform:capitalize; }
.niche-new { font-size:12px; font-weight:700; color:var(--vert); background:var(--vert-f); padding:4px 10px; border-radius:999px; white-space:nowrap; align-self:flex-start; }
.niche-mots { display:flex; flex-wrap:wrap; gap:6px; }
.niche-mots span { font-size:12px; background:var(--soft); padding:5px 10px; border-radius:999px; } .niche-mots .plus { color:var(--muted); }
.niche-infos { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.niche-infos > div { background:var(--soft); border-radius:12px; padding:10px 12px; display:flex; flex-direction:column; gap:2px; min-width:0; }
.niche-infos small { color:var(--muted); font-size:11px; } .niche-infos b { font-size:13px; overflow-wrap:anywhere; }
.niche-f { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-top:auto; } .niche-f .muted { font-size:13px; } .niche-f .muted b { color:var(--ink); }
html body .niche-btn { font-size:14px !important; padding:10px 18px !important; min-height:40px; }
html body .niche-add { border:2px dashed var(--line); background:none; align-items:center; justify-content:center; min-height:240px; color:var(--muted); font-weight:600; }
html body .niche-add:hover { background:var(--soft); color:var(--ink); }
.niche-add span { font-size:36px; font-weight:300; line-height:1; }

/* Santé des comptes */
.src-stats .c-orange { background:var(--orange-f); }
.s-bloc { border:1px solid var(--line); border-radius:var(--r); padding:22px; margin-bottom:16px !important; }
.s-bloc-h { display:flex; gap:12px; align-items:flex-start; margin-bottom:12px; } .s-bloc-h > div { flex:1; }
.s-bloc-h .pt { margin-top:10px; } .s-bloc-h h3 { margin:0; font-size:20px; } .s-bloc-h p { margin:4px 0 0; font-size:14px; }
.s-liste { display:flex; flex-direction:column; max-height:420px; overflow:auto; }
.s-art { display:flex; align-items:center; gap:14px; padding:10px 0; border-bottom:1px solid #f0f0f0; }
.s-art:last-child { border-bottom:none; }
.s-art img { width:46px; height:60px; object-fit:cover; border-radius:8px; background:var(--soft); flex:none; }
.s-art > div { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.s-art a { text-decoration:none; } .s-art b { font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:block; } .s-art .muted { font-size:12px; }
.s-chif { font-size:13px; font-weight:600; white-space:nowrap; min-width:64px; text-align:right; }
.s-prix { font-size:13px; white-space:nowrap; } .s-prix b { color:var(--bleu); }
.s-ck input { width:20px; height:20px; accent-color:#000; }
.s-comptes { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:16px; }
.s-compte { border:1px solid var(--line); border-radius:var(--r); padding:20px; display:flex; flex-direction:column; gap:14px; }
.s-top { display:grid; grid-template-columns:repeat(6,1fr); gap:6px; }
.s-top a { position:relative; display:block; } .s-top img { width:100%; aspect-ratio:3/4; object-fit:cover; border-radius:8px; display:block; background:var(--soft); }
.s-top span { position:absolute; left:4px; bottom:4px; background:#fff; font-size:10px; font-weight:700; padding:2px 6px; border-radius:999px; }
.s-alerte { display:flex; gap:14px; align-items:flex-start; padding:14px 0; border-bottom:1px solid #f0f0f0; }
.s-alerte .pt { margin-top:6px; } .s-alerte > div { flex:1; display:flex; flex-direction:column; gap:2px; } .s-alerte p { margin:6px 0 0; font-size:14px; }

/* Proxys */
.px { display:flex; align-items:center; gap:14px; padding:12px 0; border-bottom:1px solid #f0f0f0; } .px:last-child { border-bottom:none; }
.px > div { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; } .px .muted { font-size:13px; }
.px-tag { font-size:12px; font-weight:700; padding:5px 12px; border-radius:999px; white-space:nowrap; min-width:110px; text-align:center; }
.px-tag.c-vert { background:var(--vert-f); color:var(--vert); } .px-tag.c-orange { background:var(--orange-f); color:var(--orange2); }
.px-tag.c-rouge { background:#ffe7e3; color:var(--red); } .px-tag.c-gris { background:var(--soft); color:var(--muted); }

/* Compta */
.cpt-mois { display:flex; align-items:center; gap:4px; background:var(--soft); border-radius:999px; padding:4px; }
.cpt-mois b { min-width:150px; text-align:center; text-transform:capitalize; }
html body .cpt-mois button { border:none; background:#fff; width:36px; height:36px; padding:0; font-size:18px; }
.cpt-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr); gap:32px; background:var(--soft); border-radius:var(--r); padding:32px; }
@media (max-width:900px) { .cpt-hero { grid-template-columns:1fr; } }
.cpt-big { font-size:clamp(48px,7vw,80px); font-weight:700; letter-spacing:-.04em; line-height:1.05; color:var(--vert); margin:8px 0 14px; }
.cpt-big.neg, b.neg { color:var(--red) !important; }
.cpt-tag { background:#fff; border-radius:999px; padding:6px 12px; font-size:13px; font-weight:600; }
.cpt-encours { margin:14px 0 0; color:var(--orange2); font-weight:600; font-size:14px; }
.cpt-rep-h { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:14px; } .cpt-rep-h b { font-size:28px; letter-spacing:-.02em; }
.cpt-rep-h h3 { margin:0; font-size:20px; }
.cpt-barre { display:flex; gap:3px; height:44px; border-radius:12px; overflow:hidden; }
.cpt-barre i { display:block; min-width:4px; }
.cpt-leg { display:flex; flex-wrap:wrap; gap:8px 18px; margin-top:14px; font-size:13px; }
.cpt-leg span { display:flex; align-items:center; gap:6px; }
i.c-gris { background:#a6a6a6; }
.cpt-kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; }
.cpt-kpis > div { border-radius:var(--r); padding:22px; display:flex; flex-direction:column; gap:6px; }
.cpt-kpis span { font-size:14px; color:var(--muted); font-weight:500; } .cpt-kpis b { font-size:32px; letter-spacing:-.03em; } .cpt-kpis small { color:var(--muted); }
.cpt-kpis .c-vert { background:var(--vert-f); } .cpt-kpis .c-bleu { background:var(--bleu-f); } .cpt-kpis .c-orange { background:var(--orange-f); } .cpt-kpis .c-violet { background:var(--violet-f); }
.cpt-calc, .cpt-six { border:1px solid var(--line); border-radius:var(--r); padding:26px; }
.cpt-calc h3 { margin:0 0 8px; font-size:20px; }
.cl-ligne { display:flex; align-items:center; gap:14px; padding:14px 0; border-bottom:1px solid #f0f0f0; }
.cl-ligne > div { flex:1; display:flex; flex-direction:column; gap:2px; } .cl-ligne .muted { font-size:13px; }
.cl-pct { width:70px; text-align:right; } .cl-mt { width:110px; text-align:right; font-variant-numeric:tabular-nums; }
.cl-total { display:flex; align-items:center; gap:14px; padding:18px 0 0; font-size:18px; } .cl-total b:first-child { flex:1; } .cl-total b:last-child { width:130px; text-align:right; color:var(--vert); font-size:22px; }
.six { display:grid; grid-template-columns:repeat(6,1fr); gap:6px; align-items:end; }
html body .six-m { border:none; background:none; border-radius:12px; padding:8px 4px; display:flex; flex-direction:column; align-items:center; gap:6px; font-weight:400; }
html body .six-m.on { background:var(--soft); } .six-m > b { font-size:13px; color:var(--vert); }
.six-b { display:flex; gap:3px; align-items:flex-end; height:165px; } .six-b i { width:16px; border-radius:5px 5px 0 0; display:block; } .six-b .enc { background:#cfcfcf; }
.six-m span { font-weight:600; text-transform:capitalize; font-size:13px; } .six-m small { font-size:11px; }
.cpt-charges h3 { margin:0 0 4px; font-size:22px; text-transform:none; }
.ch-form { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:16px 0; background:var(--soft); padding:12px; border-radius:var(--r); }
html body .ch-form input, html body .ch-form select { width:auto; flex:1 1 140px; border:none; }
.ch-liste { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:10px; }
.ch { border:1px solid var(--line); border-radius:14px; padding:14px 16px; display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; }
.ch-t { flex-basis:100%; font-size:11px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; }
.ch .muted { flex:1; font-size:13px; }

/* Mode sombre du générateur */
html body.sombre { --bg:#0f0f0f; --panel:#1a1a1a; --field:#141414; --ink:#f5f5f5; --muted:#9b9b9b; --line:#2a2a2a; --soft:#1f1f1f; background:#0f0f0f; }
html body.sombre header, html body.sombre #subnav { background:#0f0f0f !important; border-color:#222; }
html body.sombre .nav button { color:#f5f5f5; } html body.sombre .nav button.on, html body.sombre .subnav-in button.on { background:#fff; color:#000; }
html body.sombre .card { background:transparent !important; }

/* Outils : extension + favori */
.outil { display:flex; gap:16px; background:var(--soft); border-radius:var(--r); padding:20px 22px; max-width:680px; font-size:14px; text-align:left; }
.outil.ok { background:var(--vert-f, #e6f6ee); }
.outil-ic { width:44px; height:44px; flex:none; border-radius:12px; background:#fff; display:grid; place-items:center; font-size:22px; }
.outil-c { flex:1; min-width:0; }
.outil-t { display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:15px; }
.outil-c p { margin:6px 0 14px; }
.outil-lien { font-size:13px; color:var(--text, #000); }
html body .outil .pill-noir { display:inline-block; text-decoration:none; border-radius:999px; }
.outil code { background:#fff; padding:2px 6px; border-radius:6px; font-size:12.5px; }
.etapes { display:grid; gap:8px; margin-top:16px; color:var(--muted); }
.etapes > div { display:flex; gap:10px; align-items:flex-start; }
.etapes span { flex:none; width:22px; height:22px; border-radius:50%; background:#000; color:#fff; font-size:12px; font-weight:600; display:grid; place-items:center; }
.favori-zone { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.favori-btn { background:#000; color:#fff !important; text-decoration:none; padding:10px 18px; border-radius:999px; font-weight:600; cursor:grab; box-shadow:0 4px 14px rgba(0,0,0,.18); }
.favori-btn:active { cursor:grabbing; }

.favori-barre { display:flex; align-items:center; gap:14px; flex-wrap:wrap; background:var(--soft); border-radius:var(--r); padding:12px 16px; margin:0 0 18px; font-size:13.5px; }

.favori-barre[hidden] { display:none; }

.pv-modes { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:12px; }
.pv-champs { display:flex; flex-direction:column; gap:8px; }
.pv-champs input { width:72px; padding:6px 8px; border:1px solid #ddd; border-radius:8px; font:inherit; background:#fff; }
.pv-pal { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.pv-ex { margin-top:12px; font-size:12.5px; }

.pv-mode { border:1px solid #e2e2e2; background:#fff; color:#000; border-radius:999px; padding:8px 14px; font:600 13px inherit; cursor:pointer; }
.pv-mode.on { background:#000; color:#fff; border-color:#000; }
.pv-pal { flex-direction:row; }
.pv-save { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:16px; }
html body .pv-save .pill-noir:disabled { background:var(--vert); color:#fff; opacity:1; cursor:default; }

.pv-ligne { background:#fff; border-radius:12px; padding:8px 10px; }
.pv-ligne select { padding:6px 8px; border:1px solid #ddd; border-radius:8px; font:inherit; background:#fff; }
.pv-de { color:var(--muted); min-width:74px; }
html body .pv-ligne { display:flex; flex-wrap:wrap; align-items:center; gap:6px; } html body .pv-ligne select, html body .pv-ligne input { width:auto; flex:none; margin:0; } html body .pv-ligne input { width:72px; }
.pv-base { background:transparent; border:1px dashed #d6d6d6; }

.outil.vieux { background:#fdecea; } html body .px-tag.ko { background:#e11900; color:#fff; } html body .outil.vieux .px-tag.ko { background:#e11900; color:#fff; }

/* Idées de niches */
.id-saison { font-size:13px; color:var(--muted); background:var(--soft); padding:6px 12px; border-radius:999px; }
.idees { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:14px; }
.idee { background:var(--soft); border-radius:var(--r); padding:16px; display:flex; flex-direction:column; gap:12px; }
.idee-h { display:flex; gap:12px; align-items:center; }
.idee-h img { width:52px; height:68px; object-fit:cover; border-radius:10px; background:#fff; flex:none; }
.idee-h b { display:block; font-size:16px; }
.idee-score { color:var(--vert); letter-spacing:2px; font-size:12px; } .idee-score span { color:#d6d6d6; }
.idee-tags { display:flex; flex-wrap:wrap; gap:6px; }
.idee-tags span { font-size:12px; font-weight:600; padding:4px 10px; border-radius:999px; }
.idee-tags .c-vert { background:var(--vert-f, #e6f6ee); color:var(--vert); } .idee-tags .c-orange { background:var(--orange-f, #fff0e5); color:var(--orange2); }
.idee-tags .c-bleu { background:var(--bleu-f, #eaf1fe); color:var(--bleu); } .idee-tags .c-gris { background:#fff; color:var(--muted); }
.idee-infos { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; background:#fff; border-radius:12px; padding:10px 12px; }
.idee-infos small { display:block; color:var(--muted); font-size:11.5px; } .idee-infos b { font-size:14px; }
.idee-mots { display:flex; flex-wrap:wrap; gap:6px; } .idee-mots span { font-size:12px; background:#fff; padding:3px 9px; border-radius:8px; color:var(--muted); }
html body .idee .pill-noir { margin-top:auto; align-self:flex-start; }
.id-pistes { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:14px; font-size:13px; }
.id-piste { border:1px dashed #cfcfcf; background:#fff; border-radius:999px; padding:7px 14px; font:600 13px inherit; cursor:pointer; }
.id-piste:hover { border-color:#000; }
.id-reglages { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:14px 20px; background:var(--soft); border-radius:var(--r); padding:16px 18px; margin-bottom:14px; }
.id-reglages small { display:block; color:var(--muted); margin-bottom:6px; } .id-ch { display:flex; flex-wrap:wrap; gap:6px; }
