/* Studio WP – design system à 3 couches: primitifs → sémantiques → composants */

/* === PRIMITIVES === */
:root {
  --indigo-50: #eef2ff; --indigo-100: #e0e7ff; --indigo-400: #818cf8; --indigo-500: #6366f1; --indigo-600: #4f46e5; --indigo-700: #4338ca;
  --slate-0: #ffffff; --slate-50: #f8fafc; --slate-100: #f1f5f9; --slate-200: #e2e8f0; --slate-300: #cbd5e1;
  --slate-400: #94a3b8; --slate-500: #64748b; --slate-600: #475569; --slate-700: #334155; --slate-800: #1e293b; --slate-900: #0f172a; --slate-950: #020617;
  --teal-50: #f0fdfa; --teal-600: #0d9488; --teal-700: #0f766e;
  --red-50: #fef2f2; --red-600: #dc2626; --red-700: #b91c1c;
  --amber-50: #fffbeb; --amber-600: #d97706; --amber-700: #b45309;

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem;
  --radius-sm: 6px; --radius: 8px; --radius-lg: 12px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --dur-fast: 120ms;
}

/* === SEMANTIC (clair) === */
:root {
  --bg: var(--slate-50);
  --surface: var(--slate-0);
  --surface-2: var(--slate-100);
  --fg: var(--slate-900);
  --fg-muted: var(--slate-500);
  --border: var(--slate-200);
  --border-strong: var(--slate-300);
  --primary: var(--indigo-600);
  --primary-hover: var(--indigo-700);
  --primary-soft: var(--indigo-50);
  --on-primary: #ffffff;
  --success: var(--teal-700); --success-soft: var(--teal-50);
  --danger: var(--red-700); --danger-soft: var(--red-50);
  --warning: var(--amber-700); --warning-soft: var(--amber-50);
  --shadow-sm: 0 1px 2px rgb(15 23 42 / .06);
  --shadow-md: 0 4px 16px rgb(15 23 42 / .08);
  --focus: 0 0 0 3px color-mix(in srgb, var(--primary) 35%, transparent);
  color-scheme: light;
}

/* === SEMANTIC (sombre) === */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--slate-950); --surface: var(--slate-900); --surface-2: var(--slate-800);
    --fg: var(--slate-100); --fg-muted: var(--slate-400);
    --border: var(--slate-800); --border-strong: var(--slate-700);
    --primary: var(--indigo-400); --primary-hover: var(--indigo-500); --primary-soft: #1e1b4b; --on-primary: var(--slate-950);
    --success: #5eead4; --success-soft: #042f2e; --danger: #fca5a5; --danger-soft: #450a0a; --warning: #fcd34d; --warning-soft: #422006;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4); --shadow-md: 0 4px 16px rgb(0 0 0 / .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: var(--slate-950); --surface: var(--slate-900); --surface-2: var(--slate-800);
  --fg: var(--slate-100); --fg-muted: var(--slate-400);
  --border: var(--slate-800); --border-strong: var(--slate-700);
  --primary: var(--indigo-400); --primary-hover: var(--indigo-500); --primary-soft: #1e1b4b; --on-primary: var(--slate-950);
  --success: #5eead4; --success-soft: #042f2e; --danger: #fca5a5; --danger-soft: #450a0a; --warning: #fcd34d; --warning-soft: #422006;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4); --shadow-md: 0 4px 16px rgb(0 0 0 / .5);
  color-scheme: dark;
}

/* === COMPOSANTS (tokens) === */
:root {
  --btn-bg: var(--surface); --btn-fg: var(--fg); --btn-border: var(--border-strong); --btn-hover: var(--surface-2);
  --btn-primary-bg: var(--primary); --btn-primary-fg: var(--on-primary); --btn-primary-hover: var(--primary-hover);
  --btn-h: 2.5rem; --btn-px: var(--space-4);
  --input-bg: var(--surface); --input-border: var(--border-strong);
  --card-bg: var(--surface); --card-border: var(--border); --card-radius: var(--radius-lg); --card-pad: var(--space-4);
  --side-w: 15rem;
}

/* === BASE === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 var(--font-sans); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 var(--space-3); }
h1 { font-size: 1.5rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
p { margin: 0 0 var(--space-3); }
a { color: var(--primary); }
code, .mono { font-family: var(--font-mono); font-size: .875em; }
.muted { color: var(--fg-muted); }
.sm { font-size: .8125rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: none; box-shadow: var(--focus); }
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; flex: none; }

/* === BOUTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--btn-h); padding: 0 var(--btn-px); border-radius: var(--radius);
  border: 1px solid var(--btn-border); background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); border-color: transparent; }
.btn-primary:hover { background: var(--btn-primary-hover); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-danger { color: var(--danger); }
.btn-sm { min-height: 2rem; padding: 0 var(--space-3); font-size: .8125rem; }
.btn-icon { width: 2.25rem; padding: 0; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* === FORMULAIRES === */
label { font-weight: 500; font-size: .875rem; display: block; margin-bottom: var(--space-1); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], input[type=number], select, textarea {
  width: 100%; min-height: var(--btn-h); padding: .5rem .75rem; border-radius: var(--radius);
  border: 1px solid var(--input-border); background: var(--input-bg); color: var(--fg); font: inherit;
}
textarea { min-height: 5rem; resize: vertical; }
input::placeholder { color: var(--fg-muted); }
input[type=color] { width: 2.5rem; height: 2.5rem; padding: 2px; border: 1px solid var(--input-border); border-radius: var(--radius); background: var(--input-bg); cursor: pointer; }
input[type=file] { font: inherit; max-width: 100%; }
.field { margin-bottom: var(--space-4); }
.hint { color: var(--fg-muted); font-size: .8125rem; margin-top: var(--space-1); }
.row { display: flex; gap: var(--space-3); align-items: flex-end; flex-wrap: wrap; }
.row > .grow { flex: 1 1 14rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--space-4); }

/* choix segmenté (radios) */
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; gap: var(--space-2); padding: .5rem var(--space-4); cursor: pointer; font-weight: 500; }
.seg input:checked + span { background: var(--primary-soft); color: var(--primary); }
.seg input:focus-visible + span { box-shadow: inset var(--focus); }

/* === MISE EN PAGE === */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100dvh; }
.side {
  position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: var(--space-4);
  padding: var(--space-4); background: var(--surface); border-right: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: var(--space-2); font-weight: 700; font-size: 1.05rem; padding: var(--space-1) var(--space-2); color: inherit; text-decoration: none; border-radius: var(--radius); }
a.brand:hover { background: var(--surface-2); }
.brand-mark { width: 1.75rem; height: 1.75rem; border-radius: 7px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: var(--space-3); min-height: 2.5rem; padding: 0 var(--space-3);
  border-radius: var(--radius); color: var(--fg); text-decoration: none; font-weight: 500;
}
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current=page] { background: var(--primary-soft); color: var(--primary); }
.nav-sep { height: 1px; background: var(--border); margin: var(--space-2) var(--space-2); }
.me { margin-top: auto; display: flex; align-items: center; gap: var(--space-2); font-size: .8125rem; }
.me .who { min-width: 0; flex: 1; }
.me .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { padding: var(--space-5) var(--space-6) var(--space-7); max-width: 80rem; width: 100%; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-5); }
.page-head h1 { margin: 0; }

@media (max-width: 800px) {
  .nav-sep { width: 1px; height: auto; margin: var(--space-2) 0; align-self: stretch; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side {
    position: fixed; inset: auto 0 0 0; height: auto; flex-direction: row; z-index: 10;
    padding: var(--space-1) var(--space-2) calc(var(--space-1) + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--border);
  }
  .brand, .me .who { display: none; }
  .nav { flex-direction: row; flex: 1; justify-content: space-around; }
  .nav a { flex-direction: column; gap: 2px; font-size: .75rem; min-height: 3rem; justify-content: center; text-align: center; padding: 0 var(--space-2); }
  .nav { min-width: 0; }
  .nav a { min-width: 0; flex: 1 1 0; line-height: 1.15; }
  .me .btn { padding: 0 var(--space-2); }
  .side { gap: 0; }
}
@media (max-width: 420px) {
  .nav a { font-size: .625rem; padding: 0; }
  .nav a .i { width: 1.25em; height: 1.25em; }
  .me { margin: 0; }
  .main { padding: var(--space-4) var(--space-4) 6rem; }
}

/* === CARTES, GRILLES === */
.card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--card-radius); padding: var(--card-pad); box-shadow: var(--shadow-sm); }
.card h2 { margin-bottom: var(--space-3); }
.stack > * + * { margin-top: var(--space-4); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: var(--space-4); }
.tpl { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.tpl-body { padding: var(--space-3) var(--space-4); flex: 1; }
.tpl-body h3 { margin: 0 0 2px; }
.tpl-foot { display: flex; gap: var(--space-1); padding: var(--space-2) var(--space-3); border-top: 1px solid var(--border); flex-wrap: wrap; }
.tpl-foot form { display: contents; }
.tpl-foot .btn:not(.btn-ghost) { flex: 1 1 6.5rem; justify-content: center; white-space: nowrap; }
.tpl-foot .btn-ghost { margin-left: auto; }

/* vignette: maquette colorée à partir de la palette du template */
.thumb {
  height: 8.5rem; padding: 10px; display: flex; flex-direction: column; gap: 6px;
  background: var(--c-base); border-bottom: 1px solid var(--border); overflow: hidden;
}
.thumb i { display: block; border-radius: 3px; }
.thumb .h { height: 12px; background: var(--c-contrast); opacity: .85; width: 100%; }
.thumb .hero { height: 46px; background: var(--c-surface); display: flex; align-items: center; justify-content: center; }
.thumb .hero b { width: 38%; height: 10px; border-radius: 3px; background: var(--c-primary); }
.thumb .cols { display: flex; gap: 6px; flex: 1; }
.thumb .cols i { flex: 1; background: var(--c-surface); border: 1px solid color-mix(in srgb, var(--c-contrast) 12%, transparent); }
.thumb .cols i:nth-child(2) { background: var(--c-secondary); opacity: .85; }
.thumb .cols i:nth-child(3) { background: var(--c-accent); opacity: .85; }

/* maquette filaire d'un accueil (Models::thumb et aperçu de la structure d'un site) */
.wf-wrap { overflow: hidden; border-radius: var(--radius); }
.thumb.wf-wrap { padding: 0; display: block; border-radius: 0; }
.wf { display: flex; flex-direction: column; height: 100%; min-height: 8.5rem; background: var(--c-base); color: var(--c-contrast); --c-base: #fff; --c-contrast: #111827; --c-primary: #4f46e5; --c-secondary: #0f766e; --c-accent: #f59e0b; --c-surface: #f3f4f6; }
.wf i { display: block; flex: none; border-radius: 2px; }
.wf-head { height: 9px; margin: 6px 8px 4px; background: var(--c-contrast); opacity: .8; }
.wf-sec, .wf-grp { display: flex; flex-direction: column; gap: 3px; }
.wf-sec { flex: none; padding: 6px 8px; }
.wf-hero { padding: 12px 8px; }
.wf-surface { background: var(--c-surface); }
.wf-primary { background: var(--c-primary); }
.wf-h { height: 5px; width: 42%; background: var(--c-contrast); }
.wf-h1 { height: 7px; width: 62%; }
.wf-t { height: 3px; width: 82%; background: var(--c-contrast); opacity: .3; }
.wf-b { height: 7px; width: 26%; margin-top: 2px; border-radius: 4px; background: var(--c-primary); }
.wf-img { height: 16px; width: 100%; background: var(--c-secondary); opacity: .4; }
.wf-primary .wf-h, .wf-primary .wf-t { background: #fff; }
.wf-primary .wf-b { background: var(--c-accent); }
.wf-cols { display: flex; gap: 5px; }
.wf-col { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.model-pick { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: var(--space-4); align-items: center; padding: var(--space-3); margin-bottom: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-2); }
.model-pick .wf-wrap, .structure-grid .wf-wrap { border: 1px solid var(--border); }
.model-pick .wf-wrap { height: 9rem; }
.structure-grid { display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr; gap: var(--space-4); margin: var(--space-3) 0; }
.structure-grid .wf-wrap { height: 15rem; align-self: start; }
.tree-pick label { display: flex; gap: .5rem; align-items: flex-start; cursor: pointer; }
.tree-pick input { margin-top: .2rem; }
@media (max-width: 600px) { .model-pick, .structure-grid { grid-template-columns: 1fr; } }

/* === BADGES, ALERTES === */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--surface-2); color: var(--fg-muted); white-space: nowrap; }
.badge-primary { background: var(--primary-soft); color: var(--primary); }
.badge-ok { background: var(--success-soft); color: var(--success); }
.badge-warn { background: var(--warning-soft); color: var(--warning); }
.badge-err { background: var(--danger-soft); color: var(--danger); }
.flash { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius); margin-bottom: var(--space-4); background: var(--success-soft); color: var(--success); border: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
.flash-err { background: var(--danger-soft); color: var(--danger); }
.flash-info { background: var(--primary-soft); color: var(--primary); }
.empty { text-align: center; padding: var(--space-7) var(--space-4); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); }
.empty h2 { margin-bottom: var(--space-2); }

/* === TABLEAUX === */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .65rem var(--space-4); border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-muted); font-weight: 600; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td form { display: inline-flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }

/* === ONGLETS (réglages) === */
.tabs { display: flex; gap: var(--space-1); overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: var(--space-5); }
.tabs a { padding: .6rem var(--space-4); text-decoration: none; color: var(--fg-muted); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; display: flex; gap: var(--space-2); align-items: center; }
.tabs a:hover { color: var(--fg); }
.tabs a[aria-current=page] { color: var(--primary); border-bottom-color: var(--primary); }

/* === LISTES CLÉ/VALEUR (serveur, versions) === */
.kv { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); margin-bottom: var(--space-4); overflow: hidden; }
.kv h3 { margin: 0; padding: var(--space-3) var(--space-4); background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-muted); }
.kv-row { display: flex; gap: var(--space-3); justify-content: space-between; align-items: center; padding: .6rem var(--space-4); border-top: 1px solid var(--border); }
.kv-row .hint { margin: 0; }
/* le texte long (URL, détail d'audit) passe à la ligne ; la date reste sur une ligne à droite */
.kv-row > :first-child { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.kv-row > :last-child:not(:first-child) { flex: none; white-space: nowrap; }
.grid-2 > *, .metrics > * { min-width: 0; }

/* === ASSISTANT DE CRÉATION / ATELIER === */
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: var(--space-3); }
.swatch { display: flex; align-items: center; gap: var(--space-2); }
.swatch label { margin: 0; font-weight: 400; font-size: .8125rem; line-height: 1.2; }
.pane[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.chip { padding: 2px .6rem; border-radius: 999px; background: var(--surface-2); font-size: .8125rem; }
.analysis { margin-top: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius); background: var(--surface-2); }
.ref-img { max-width: 100%; max-height: 14rem; border-radius: var(--radius); border: 1px solid var(--border); margin-top: var(--space-3); }
.tree { list-style: none; margin: 0; padding: 0; font-size: .875rem; }
.tree li { padding: 3px 0; }
.tree ul { list-style: none; padding-left: 1rem; margin: 0; border-left: 1px solid var(--border); }

/* === CONNEXION === */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: var(--space-4); }
.auth .card { width: min(26rem, 100%); padding: var(--space-6); box-shadow: var(--shadow-md); }
.auth .brand { justify-content: center; margin-bottom: var(--space-5); font-size: 1.25rem; }
.sep { display: flex; align-items: center; gap: var(--space-3); color: var(--fg-muted); font-size: .8125rem; margin: var(--space-4) 0; }
.sep::before, .sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.err-text { color: var(--danger); font-size: .875rem; min-height: 1.25rem; margin-top: var(--space-2); }

/* === LISTES FILTRABLES (templates, extensions), TABLEAU DE BORD, PARTAGE === */
[hidden] { display: none !important; }
.toolbar { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; margin-bottom: var(--space-3); }
.toolbar .grow { flex: 1 1 18rem; }
.chips-bar { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.chipbtn { border: 1px solid var(--border-strong); background: var(--surface); color: var(--fg); border-radius: 999px; padding: .3rem .85rem; font: inherit; font-size: .8125rem; cursor: pointer; }
.chipbtn:hover { background: var(--surface-2); }
.chipbtn[aria-pressed=true] { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }
.items[data-view=grid] .items-table { display: none; }
.items[data-view=list] .items-grid { display: none; }
.items-table td:last-child { display: flex; gap: var(--space-1); flex-wrap: wrap; align-items: center; }
.items-table td form { display: contents; }
.items-table td:first-child { min-width: 11rem; }
.items-table td { white-space: nowrap; }
.items-table td:first-child, .items-table td:last-child { white-space: normal; }
.dots { display: inline-flex; gap: 2px; margin-right: var(--space-2); vertical-align: middle; }
.dots i { width: .7rem; height: .7rem; border-radius: 50%; border: 1px solid var(--border-strong); }
.thumb--lib { align-items: center; justify-content: center; background: var(--surface-2); color: var(--fg-muted); font-size: .8125rem; }
.thumb--lib .i { width: 2rem; height: 2rem; }
.thumb--lib.has-img { position: relative; padding: 0; }
.thumb--lib.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb--lib.has-img .ver { position: absolute; right: .5rem; bottom: .5rem; padding: 1px .5rem; border-radius: 999px; background: rgb(0 0 0 / .6); color: #fff; font-size: .75rem; }
.lib-ico { width: 2rem; height: 2rem; border-radius: 6px; object-fit: cover; vertical-align: middle; margin-right: .6rem; background: var(--surface-2); }
.lib-ico--lg { width: 4rem; height: 4rem; margin: 0; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: var(--space-3); margin-bottom: var(--space-5); }
.metric { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); text-decoration: none; color: var(--fg); box-shadow: var(--shadow-sm); }
.metric:hover { border-color: var(--primary); }
.metric b { font-size: 1.9rem; line-height: 1.1; }
dialog { border: 0; border-radius: var(--radius-lg); padding: var(--space-5); width: min(36rem, calc(100% - 2rem)); background: var(--surface); color: var(--fg); box-shadow: var(--shadow-md); }
dialog::backdrop { background: rgb(15 23 42 / .5); }
dialog h2 { margin-bottom: var(--space-2); }
.copy-row { display: flex; gap: var(--space-2); }
.copy-row input { font-family: var(--font-mono); font-size: .8125rem; }
.share-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); padding: .4rem 0; border-top: 1px solid var(--border); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* charte graphique du client (atelier) */
.charte { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.charte h3 { margin: 0 0 var(--space-2); }
.charte-sum { margin-top: var(--space-3); display: grid; gap: var(--space-2); }
.charte-logos { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.charte-logos figure { margin: 0; display: grid; gap: 4px; justify-items: center; }
.charte-logos img { max-height: 3.5rem; max-width: 9rem; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; object-fit: contain; }
.chip .dot { display: inline-block; width: .7rem; height: .7rem; margin-right: .35rem; border-radius: 50%; border: 1px solid var(--border-strong); vertical-align: -1px; }

/* historique des versions (Paramètres › Releases) */
.release.is-current { border-color: var(--primary); }
.release-head { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.release-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.release-list li { display: flex; gap: var(--space-2); align-items: baseline; }
.release-list .badge { flex: none; }
