/* ==========================================================================
   Produits EcomSphere — même charte que l'outil de compta (ecomsphere-labs.com)
   Navy #081220 · cyan #6dd5ed · bleu #3a8bbf · or #c9a876 · Inter
   En thème clair l'accent passe sur le bleu #2f7fab, lisible sur fond blanc ;
   le cyan reprend sa place en thème sombre.
   ========================================================================== */
:root {
  --navy: #081220; --navy-2: #0c1a2c; --navy-3: #122236;
  --cyan: #6dd5ed; --blue: #3a8bbf; --gold: #c9a876;

  --bg: #f2f5f8; --surface: #ffffff; --surface-2: #f7f9fb;
  --border: #e4eaf1; --border-strong: #cfd9e4;
  --text: #0c1a2c; --text-2: #55647a; --text-3: #8b9ab0;
  --accent: #2f7fab; --accent-soft: #e7f2f8;
  --pos: #0f8a5f; --pos-soft: #e4f5ee;
  --neg: #cc3b47; --neg-soft: #fdeaec;
  --warn: #9a7434; --warn-soft: #f8f1e3;
  --on-navy: #f1f5f9; --on-navy-dim: #94a3b8;

  --radius: 14px; --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(8, 18, 32, .04), 0 6px 18px -10px rgba(8, 18, 32, .18);
  --shadow-pop: 0 10px 40px -12px rgba(8, 18, 32, .35);
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #081220; --surface: #0c1a2c; --surface-2: #122236;
    --border: rgba(255, 255, 255, .07); --border-strong: rgba(125, 196, 224, .22);
    --text: #f1f5f9; --text-2: #94a3b8; --text-3: #64748b;
    --accent: #6dd5ed; --accent-soft: rgba(109, 213, 237, .12);
    --pos: #3ecf94; --pos-soft: rgba(62, 207, 148, .13);
    --neg: #ff6b78; --neg-soft: rgba(255, 107, 120, .13);
    --warn: #dcc08f; --warn-soft: rgba(201, 168, 118, .13);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-pop: 0 10px 40px -12px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.022em; }
h1 { font-size: 24px; margin-bottom: 4px; }
h2 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2);
  margin: 30px 0 11px;
}
h3 { font-size: 15px; }
code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .92em; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; }
.sous { color: var(--text-2); margin: 0 0 18px; }
.aide { color: var(--text-2); font-size: 13px; }
p.aide, div.aide { margin: 6px 0; }
.cache { display: none !important; }
.coupe { word-break: break-all; }

/* ---------- bandeau du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 26px; padding: 0 26px; min-height: 58px;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
  color: var(--on-navy); border-bottom: 1px solid rgba(109, 213, 237, .18);
}
.marque { display: flex; align-items: center; gap: 10px; color: var(--on-navy); text-decoration: none;
  font-weight: 500; font-size: 15px; white-space: nowrap; }
.marque span:not(.logo) { color: var(--cyan); }
.logo {
  width: 18px; height: 18px; flex: none; border-radius: 5px;
  background:
    linear-gradient(to top, var(--cyan) 42%, transparent 42%) 0 100% / 3px 100% no-repeat,
    linear-gradient(to top, var(--cyan) 72%, transparent 72%) 5px 100% / 3px 100% no-repeat,
    linear-gradient(to top, var(--cyan) 56%, transparent 56%) 10px 100% / 3px 100% no-repeat,
    linear-gradient(to top, var(--gold) 92%, transparent 92%) 15px 100% / 3px 100% no-repeat;
}
.topbar nav { display: flex; gap: 4px; flex: 1; align-self: stretch; }
.topbar nav a {
  display: flex; align-items: center; padding: 0 12px; color: var(--on-navy-dim); text-decoration: none;
  font-size: 14px; border-bottom: 2px solid transparent; transition: color .18s var(--ease), border-color .18s var(--ease);
}
.topbar nav a:hover { color: var(--on-navy); }
.topbar nav a.on { color: var(--on-navy); border-bottom-color: var(--cyan); }
.moi { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.moi a { color: var(--on-navy-dim); text-decoration: none; }
.moi a:hover { color: var(--cyan); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: flex !important; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan)); color: var(--navy) !important; font-weight: 700; font-size: 12px;
}
.moi .nom { color: var(--on-navy) !important; }
.sortir { padding-left: 10px; border-left: 1px solid rgba(255,255,255,.15); }

.bandeau { background: var(--warn-soft); color: var(--warn); border-bottom: 1px solid var(--border);
  padding: 10px 26px; font-size: 13.5px; }
.bandeau a { color: inherit; font-weight: 600; }

main { max-width: 1080px; margin: 0 auto; padding: 30px 26px 80px; }

/* ---------- cartes ---------- */
.carte {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; margin-bottom: 16px; box-shadow: var(--shadow);
}
details.carte > summary { cursor: pointer; list-style: none; }
details.carte > summary::-webkit-details-marker { display: none; }
details.carte > summary::before { content: '▸ '; color: var(--text-3); }
details.carte[open] > summary::before { content: '▾ '; }
.vide { text-align: center; color: var(--text-2); padding: 52px 20px; }
.entete { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.rangee { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rangee form { margin: 0; }

/* ---------- formulaires ---------- */
label { display: block; font-weight: 600; font-size: 13px; margin: 16px 0 6px; }
label .opt { font-weight: 400; color: var(--text-3); }
input[type=text], input[type=url], input[type=number], input[type=password], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font: inherit; background: var(--surface); color: var(--text);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 110px; resize: vertical; }
input[type=file] { font: inherit; font-size: 13px; color: var(--text-2); }
.radios { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.radios label {
  display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; margin: 0; font-weight: 500; background: var(--surface); cursor: pointer; flex: 1; min-width: 230px;
}
.radios label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radios input { margin-top: 3px; }
.radios b { display: block; }
.radios small { color: var(--text-2); font-weight: 400; }
.cond { display: none; } .cond.on { display: block; }
.actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }

button {
  font: inherit; font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer;
  transition: filter .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .1s;
}
@media (prefers-color-scheme: dark) { button { color: var(--navy); } }
button:hover { filter: brightness(1.08); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .55; cursor: progress; }
button.sec { background: var(--surface); color: var(--text); border-color: var(--border-strong); font-weight: 500; }
button.sec:hover { border-color: var(--accent); color: var(--accent); filter: none; }
button.danger { background: var(--surface); color: var(--neg); border-color: var(--neg-soft); font-weight: 500; }
button.danger:hover { background: var(--neg-soft); filter: none; }

/* ---------- tableaux ---------- */
table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.carte table { box-shadow: none; }
main > table { box-shadow: var(--shadow); }
th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3);
  font-weight: 600; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s var(--ease); }
tbody tr:hover td { background: var(--surface-2); }
td a { font-weight: 600; text-decoration: none; }
td.date { width: 150px; color: var(--text-3); font-size: 12.5px; }
table.infos th { width: 190px; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text-2); background: none; font-weight: 500; }

/* ---------- statuts ---------- */
.puce { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.s-brouillon, .s-annule { --c: var(--text-3); }
.s-en_file, .s-en_cours { --c: var(--accent); }
.s-bloque_info, .s-bloque_image { --c: var(--neg); }
.s-pret_a_valider { --c: var(--warn); }
.s-publie { --c: var(--pos); }
h1 .puce { vertical-align: middle; margin-left: 6px; }

/* ---------- messages ---------- */
.alerte { background: var(--neg-soft); color: var(--neg); border: 1px solid color-mix(in srgb, var(--neg) 30%, transparent);
  padding: 12px 15px; border-radius: var(--radius-sm); margin-bottom: 14px; }
.alerte.succes { background: var(--pos-soft); color: var(--pos); border-color: color-mix(in srgb, var(--pos) 30%, transparent); }
.alerte ul, .vigilance ul { margin: 6px 0 0; padding-left: 18px; }
.vigilance { background: var(--warn-soft); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
  border-radius: var(--radius-sm); padding: 12px 15px; margin: 14px 0; }
.sortie-test { white-space: pre-wrap; font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px; margin-top: 12px; }

/* ---------- frise et encadré « À faire » ---------- */
.frise { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 14px 0 20px; }
.frise .etape { font-size: 12.5px; padding: 5px 12px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--border); color: var(--text-3); }
.frise .etape.fini { color: var(--pos); border-color: color-mix(in srgb, var(--pos) 30%, transparent); background: var(--pos-soft); }
.frise .etape.actif { color: #fff; background: linear-gradient(120deg, var(--accent), var(--blue)); border-color: transparent; font-weight: 600;
  box-shadow: 0 4px 14px -6px var(--accent); }
@media (prefers-color-scheme: dark) { .frise .etape.actif { color: var(--navy); } }
.frise .fleche { color: var(--text-3); }

.afaire { position: relative; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.afaire::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--text-3); }
.afaire.action::before { background: linear-gradient(var(--cyan), var(--blue)); }
.afaire.attente::before { background: var(--border-strong); }
.afaire.fini::before { background: var(--pos); }
.afaire-titre { font-weight: 700; font-size: 17px; margin-bottom: 10px; letter-spacing: -0.015em; }
.afaire p { margin: 7px 0; }
.afaire ol, .afaire ul { margin: 8px 0; padding-left: 20px; }
.afaire li { margin: 4px 0; }
.afaire details { margin-top: 12px; }
.afaire summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 13.5px; }
.question { font-size: 16px; font-weight: 600; line-height: 1.45; margin: 4px 0 12px !important; }
.liste-fournir { list-style: none; padding: 0 !important; }
.liste-fournir li { padding: 8px 12px 8px 34px; margin: 6px 0; position: relative; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm); }
.liste-fournir li::before { content: ''; position: absolute; left: 11px; top: 11px; width: 13px; height: 13px;
  border: 2px solid var(--accent); border-radius: 4px; }
.texte-long { white-space: pre-line; color: var(--text-2); font-size: 13.5px; margin-top: 8px; padding: 12px 14px;
  background: var(--surface-2); border-radius: var(--radius-sm); }
.etape-slack { margin: 14px 0; padding: 14px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); }
.copie { display: flex; gap: 8px; align-items: flex-start; }
.copie textarea { min-height: 96px; font: 13px ui-monospace, 'SF Mono', Menlo, monospace; background: var(--surface-2); }
.reponse { margin-top: 14px; }
.reponse textarea { min-height: 90px; }
.fichiers { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 500; color: var(--text-2);
  padding: 10px 12px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); margin-top: 10px; cursor: pointer; }
.tourne { display: inline-block; width: 13px; height: 13px; border: 2px solid var(--border-strong); border-top-color: var(--accent);
  border-radius: 50%; animation: t .9s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes t { to { transform: rotate(360deg); } }
.sans-extension { display: none; }
body.sans-extension-detectee .si-extension { display: none; }
body.sans-extension-detectee .sans-extension { display: block; }

/* ---------- aperçu de la proposition ---------- */
.fiche { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 18px; }
.fiche h3 { margin-bottom: 12px; }
.variantes td.nb, .variantes th:nth-child(n+2):nth-child(-n+5) { text-align: right; white-space: nowrap; }
.variantes td.ecart { color: var(--warn); }
.variantes code { font-size: 11.5px; }
.galerie { display: flex; flex-wrap: wrap; gap: 12px; }
.vignette { margin: 0; width: 128px; }
.vignette img { width: 128px; height: 128px; object-fit: cover; border: 1px solid var(--border); border-radius: var(--radius-sm); display: block;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.vignette img:hover { transform: scale(1.04); box-shadow: var(--shadow-pop); }
.vignette figcaption, .legende { font-size: 11px; color: var(--text-3); margin-top: 5px; max-width: 128px; overflow: hidden; }
.pastille { display: inline-block; background: var(--accent); color: #fff; border-radius: 4px; padding: 0 6px; font-size: 10.5px; font-weight: 600; }
.description { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; max-height: 340px; overflow: auto;
  margin-top: 8px; background: var(--surface-2); }
details > summary { cursor: pointer; }

/* ---------- liste des demandes ---------- */
.onglets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.onglet { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text-2); text-decoration: none; font-size: 13px; transition: all .18s var(--ease); }
.onglet:hover { border-color: var(--accent); color: var(--accent); }
.onglet.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
@media (prefers-color-scheme: dark) { .onglet.on { color: var(--navy); } }
.onglet .compte { display: inline-block; min-width: 19px; padding: 0 6px; margin-left: 3px; border-radius: 9px; background: var(--surface-2);
  color: var(--text-2); font-size: 11.5px; text-align: center; font-weight: 600; }
.onglet.on .compte { background: rgba(255,255,255,.25); color: inherit; }
.filtres { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filtres input { flex: 2; min-width: 220px; } .filtres select { flex: 1; min-width: 160px; }
a.faire { white-space: nowrap; display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); font-size: 12.5px; }
a.faire:hover { background: var(--accent); color: #fff; }

/* ---------- activité ---------- */
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 11px; margin-bottom: 8px; }
.tuile { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow); }
.tuile::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--blue)); opacity: .6; }
.tuile b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.tuile span { color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.pensee { border-left: 3px solid var(--accent-soft); padding: 6px 14px; margin: 10px 0; white-space: pre-wrap; font-size: 13.5px; }

/* ---------- installation de l'extension ---------- */
.etape-install { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); }
.etape-install .num { flex: 0 0 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--navy); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.etape-install ol { padding-left: 18px; }
.statut-ext .ok { color: var(--pos); font-weight: 600; } .statut-ext .ko { color: var(--warn); font-weight: 600; }

/* ---------- connexion ---------- */
.ecran-connexion { max-width: 400px; margin: 70px auto; }

@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .topbar nav { order: 3; width: 100%; overflow-x: auto; }
  .topbar nav a { padding: 8px 10px; }
  .moi .nom { display: none; }
  main { padding: 18px 16px 60px; }
  .copie { flex-direction: column; }
  table { display: block; overflow-x: auto; }
}
tr.cliquable { cursor: pointer; }
.titre-ligne { font-size: 14.5px; color: var(--text) !important; }
tr.cliquable:hover .titre-ligne { color: var(--accent) !important; }
.meta-ligne { font-size: 12px; color: var(--text-3); margin-top: 3px; }
td.meta-ligne { white-space: nowrap; margin: 0; }

/* ==================== éditeur de fiche (façon admin Shopify) ==================== */
main.large { max-width: 1320px; }
.ed-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ed-tete h1 { font-size: 21px; margin: 4px 0 6px; }
.ed-tete .puce { margin-right: 8px; }
.bascule { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.bascule button { background: var(--surface); color: var(--text-2); border: 0; border-radius: 0; font-weight: 500; padding: 8px 14px; }
.bascule button.on { background: var(--accent); color: #fff; font-weight: 600; }
@media (prefers-color-scheme: dark) { .bascule button.on { color: var(--navy); } }
.ed-barre { position: sticky; top: 58px; z-index: 20; display: none; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--navy); color: var(--on-navy); padding: 10px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; box-shadow: var(--shadow-pop); }
.ed-barre.visible { display: flex; }
.ed-barre button.sec { background: transparent; color: var(--on-navy); border-color: rgba(255,255,255,.25); }
.ed-grille { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.ed-cote { position: sticky; top: 76px; }
.ed-principal .carte, .ed-cote .carte { margin-bottom: 14px; }
.ed-titre-carte { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.carte h3 { font-size: 14px; margin-bottom: 4px; }
.compteur { text-align: right; font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
button.petit { padding: 5px 10px; font-size: 12.5px; }
.rte-outils { display: flex; gap: 4px; margin-bottom: 6px; }
.rte-outils button { padding: 4px 10px; font-size: 12.5px; }
.rte { min-height: 120px; max-height: 360px; overflow: auto; padding: 10px 12px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); background: var(--surface); line-height: 1.55; }
.rte:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rte h2 { font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--text); margin: 12px 0 6px; }

.medias { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 10px; }
.media { position: relative; margin: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); cursor: grab; }
.media.principale { grid-column: span 2; grid-row: span 2; }
.media img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.media.glisse { opacity: .4; }
.media figcaption textarea { border: 0; border-top: 1px solid var(--border); border-radius: 0; min-height: 52px; font-size: 11.5px; padding: 6px 8px; resize: none; }
.badge-principale { position: absolute; top: 6px; left: 6px; background: var(--navy); color: var(--cyan); font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 5px; }
.media .suppr { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; padding: 0; border-radius: 50%; background: rgba(8,18,32,.75); border: 0; color: #fff; font-size: 15px; line-height: 1; }
.medias.choix { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.medias.choix img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); border: 2px solid transparent; cursor: pointer; }
.medias.choix img:hover { border-color: var(--accent); }
.medias.choix img.pris { opacity: .45; border-color: var(--pos); }
.medias.choix img.encours { opacity: .4; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .15; } }

.option { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; margin: 10px 0; background: var(--surface-2); }
.nom-option { font-weight: 600; max-width: 280px; }
.valeurs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.valeur { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 10px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--border-strong); font-size: 13px; }
.valeur button { padding: 0 6px; border: 0; background: none; color: var(--text-3); font-size: 15px; line-height: 1; }
.valeur button:hover { color: var(--neg); filter: none; }
.ajout-valeur { width: 200px !important; padding: 5px 10px !important; border-radius: 999px !important; font-size: 13px; }
.table-defile { overflow-x: auto; margin-top: 12px; }
.table-variantes td { vertical-align: middle; padding: 8px 10px; }
.table-variantes input { padding: 6px 8px; font-size: 13px; }
.table-variantes input.nb { width: 86px; text-align: right; }
.table-variantes tr.eteinte td { opacity: .45; }
.table-variantes .rouge { color: var(--neg); font-weight: 600; }
.vignette-var { width: 44px; height: 44px; padding: 0; border-radius: 8px; background: var(--surface-2); color: var(--text-3); border: 1px dashed var(--border-strong); overflow: hidden; }
.vignette-var img { width: 100%; height: 100%; object-fit: cover; display: block; }
.metachamp { padding: 4px 0 8px; border-bottom: 1px solid var(--border); }
.metachamp:last-child { border-bottom: 0; }
.choix-image { display: flex; align-items: center; gap: 12px; }
.choix-image img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.serp { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin: 8px 0 4px; background: var(--surface-2); }
.serp-site { font-size: 12px; color: var(--text-2); }
.serp-titre { color: #1a0dab; font-size: 17px; margin: 3px 0; }
@media (prefers-color-scheme: dark) { .serp-titre { color: #8ab4f8; } }
.serp-desc { font-size: 13px; color: var(--text-2); }
.prefixe { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.prefixe span { padding: 0 10px; color: var(--text-3); font-size: 13px; white-space: nowrap; background: var(--surface-2); align-self: stretch; display: flex; align-items: center; }
.prefixe input { border: 0 !important; box-shadow: none !important; }
.resultats { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; max-height: 240px; overflow: auto; }
.resultat { text-align: left; background: var(--surface); color: var(--text); border: 1px solid var(--border); font-weight: 400; font-size: 12.5px; padding: 7px 10px; }
.resultat:hover { border-color: var(--accent); color: var(--accent); filter: none; }
.puces-collections { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.categorie-actuelle { margin-bottom: 6px; }
.ligne-resume { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13.5px; }
.publier button { width: 100%; }
.modale { position: fixed; inset: 0; z-index: 60; background: rgba(8, 18, 32, .55); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modale-boite { background: var(--surface); border-radius: var(--radius); padding: 20px; width: min(860px, 100%); max-height: 86vh; overflow: auto; box-shadow: var(--shadow-pop); }

/* aperçu boutique */
.boutique-cadre { background: #fff; color: #1b1b1b; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; font-family: var(--sans); }
.boutique-cadre .aide { color: #777; }
.boutique-entete { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid #eee; font-weight: 700; letter-spacing: .02em; }
.boutique-produit { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; padding: 28px; }
.boutique-principale { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #f5f5f5; }
.boutique-vignettes { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.boutique-vignettes img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 2px solid transparent; }
.boutique-vignettes img.on { border-color: #1b1b1b; }
.boutique-titre { font-size: 26px; text-transform: none; letter-spacing: -0.01em; color: #1b1b1b; margin: 0 0 8px; }
.boutique-prix { font-size: 22px; margin-bottom: 18px; }
.boutique-option { margin-bottom: 14px; }
.choix { background: #fff; color: #1b1b1b; border: 1px solid #ccc; border-radius: 4px; font-weight: 500; padding: 8px 14px; }
.choix.on { border-color: #1b1b1b; box-shadow: inset 0 0 0 1px #1b1b1b; }
.choix.indispo { color: #bbb; text-decoration: line-through; }
.boutique-panier { width: 100%; background: #1b1b1b; border-color: #1b1b1b; color: #fff; padding: 14px; margin: 6px 0 18px; border-radius: 4px; }
.boutique-puces { padding-left: 0; list-style: none; }
.boutique-puces li { padding: 4px 0 4px 24px; position: relative; }
.boutique-puces li::before { content: '✓'; position: absolute; left: 0; color: #2d7a4f; font-weight: 700; }
.boutique-bloc { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; padding: 28px; border-top: 1px solid #f0f0f0; }
.boutique-bloc.inverse img { order: 2; }
.boutique-bloc img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.boutique-bloc h3, .boutique-section h3 { font-size: 20px; margin-bottom: 10px; color: #1b1b1b; }
.boutique-section { padding: 24px 28px; border-top: 1px solid #f0f0f0; }

@media (max-width: 980px) {
  .ed-grille, .boutique-produit, .boutique-bloc { grid-template-columns: 1fr; }
  .ed-cote { position: static; }
  .media.principale { grid-column: span 1; grid-row: span 1; }
}
.ouvrir-editeur { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px; margin: 12px 0; border-radius: var(--radius-sm); background: var(--accent-soft); }
.boutique-cadre h2, .boutique-courte h2, .rte h2, .description h2 { text-transform: none; letter-spacing: -0.01em; color: inherit; font-size: 18px; margin: 18px 0 8px; }
.boutique-courte h2 { font-size: 17px; }
.table-variantes input[data-cle="sku"] { min-width: 230px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; }
.table-variantes td.aide { white-space: nowrap; }

/* ---------- formation ---------- */
.aide-page { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.aide-sommaire { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.aide-sommaire b { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 8px; }
.aide-sommaire a { color: var(--text-2); text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.aide-sommaire a:hover { background: var(--accent-soft); color: var(--accent); }
.aide-contenu .carte { scroll-margin-top: 80px; }
.aide-titre { font-size: 18px !important; text-transform: none !important; letter-spacing: -0.015em !important; color: var(--text) !important; margin: 0 0 12px !important; }
.aide-capture { margin: 16px 0; }
.aide-capture img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border); box-shadow: var(--shadow); display: block; }
.aide-capture img[src*="extension.jpg"] { width: 350px; max-width: 100%; }
.aide-capture figcaption { font-size: 12.5px; color: var(--text-3); margin-top: 6px; text-align: center; }
.aide-encadre { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 12px 16px; margin: 14px 0; }
.aide-etapes li { margin: 8px 0; }
.aide-table th { width: 220px; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text); background: var(--surface-2); vertical-align: top; }
.rouge { color: var(--neg); font-weight: 600; } .jaune { color: var(--warn); font-weight: 600; }
@media (max-width: 900px) { .aide-page { grid-template-columns: 1fr; } .aide-sommaire { position: static; } }
