:root{
  /* --- Identité de marque (chrome : header, logo, CTA, liens, focus) ---
     Séparée du système de couleurs SÉMANTIQUES ci-dessous (teal/rouge/ambre/
     vert = protégé / à corriger / à vérifier / positif), qui reste inchangé
     partout où il code un TYPE de signal détecté. L'ambre de marque a un hex
     différent de l'ambre sémantique — pas de collision, juste deux rôles. */
  --brand-ink:#1B1D23;
  --brand-paper:#F6F4EF;
  --brand-amber:#E8A23D;       /* usage graphique (fonds, bordures, icônes) — 7.75:1 sur encre */
  --amber-text:#9D6317;        /* variante foncée pour DU TEXTE sur papier — 4.52:1, AA */

  --bg:#F6F4EF;
  --surface:#FBFAF7;
  --surface-2:#EFECE4;
  --border:#D8D4C8;
  --text:#1B1D23;
  --text-muted:#4A4D56;
  --text-dim:#6B6E76;

  /* --- Couleurs sémantiques (contenu des analyses) — inchangées --- */
  --teal:#0D9488;
  --teal-bright:#2DD4BF;
  --teal-dim:#E3F8F5;
  --teal-border:#9FE0D6;
  --amber:#C2660A;
  --amber-dim:#FEF3E2;
  --amber-border:#F3CA85;
  --red:#DC2626;
  --red-hover:#EF4444;
  --red-dim:#FDECEC;
  --red-border:#F5B5B5;
  --green:#15803D;
  --radius:10px;
  --mono:'IBM Plex Mono', monospace;
  --sans:'IBM Plex Sans', sans-serif;
  --focus-ring: 2px solid var(--brand-amber);
}

*{box-sizing:border-box; margin:0; padding:0;}

/* Garde-fou global : sans cette règle, tout élément dont une classe fixe
   explicitement `display` (ex. .trunc-expand-toggle{display:flex}) annule
   silencieusement l'attribut HTML hidden="" — c'est la cause du bug du
   bouton "Afficher plus/moins" qui restait visible et mal positionné même
   quand il n'y avait rien à déplier. Règle standard, à garder pour tout
   nouvel élément qui utilisera hidden à l'avenir. */
[hidden]{display:none !important;}

body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--sans);
  line-height:1.5;
  padding:32px 20px 80px;
  min-height:100vh;
}

.wrap{max-width:780px; margin:0 auto; transition:max-width .2s ease;}
@media (min-width:1080px){ .wrap{max-width:920px;} }
@media (min-width:1400px){ .wrap{max-width:1080px;} }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible{
  outline:var(--focus-ring); outline-offset:2px;
}

/* Header */
header{display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; flex-wrap:wrap; gap:12px;}
.brand{display:flex; align-items:center; gap:10px;}
.brand-mark{ flex-shrink:0; border-radius:7px; }
.brand-name{font-weight:700; font-size:16px; letter-spacing:-0.01em;}
.brand-tag{font-size:12px; color:var(--text-dim); font-family:var(--mono);}
.quota{font-family:var(--mono); font-size:11px; color:var(--text-dim); border:1px solid var(--border); padding:5px 10px; border-radius:20px;}
.quota b{color:var(--amber-text);}

/* Site nav — barre commune à toutes les pages, sous le header */
.site-nav{
  display:flex; align-items:center; gap:4px; flex-wrap:wrap;
  margin-bottom:32px; padding-bottom:16px; border-bottom:1px solid var(--border);
}
.site-nav a{
  font-family:var(--mono); font-size:12.5px; color:var(--text-muted); text-decoration:none;
  padding:6px 11px; border-radius:20px; transition:background .15s ease, color .15s ease;
}
.site-nav a:hover{background:var(--surface-2); color:var(--text);}
.site-nav a[aria-current="page"]{background:var(--brand-ink); color:var(--brand-paper);}
.site-nav .site-nav-cta{
  margin-left:auto; background:var(--brand-amber); color:var(--brand-ink); font-weight:700;
}
.site-nav .site-nav-cta:hover{background:var(--amber-text); color:var(--brand-paper);}
@media (max-width:640px){
  .site-nav{gap:2px;}
  .site-nav .site-nav-cta{margin-left:0; order:-1; width:100%; text-align:center; margin-bottom:4px;}
}

/* Mini-header de marque, utilisé sur les sous-pages (faq, comparatif, status...) */
.site-header-mini{display:flex; align-items:center; justify-content:space-between; margin-bottom:20px;}
.brand-mini{display:flex; align-items:center; gap:9px; text-decoration:none; color:var(--text);}
.brand-mini .brand-name{font-weight:700; font-size:15px; letter-spacing:-0.01em;}

/* Barre de navigation globale — identique sur les 12 pages du site */
.main-nav-bar{
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  flex-wrap:wrap; padding-bottom:18px; margin-bottom:28px; border-bottom:1px solid var(--border);
}
.main-nav-brand{display:flex; align-items:center; gap:9px; text-decoration:none; color:var(--text); flex-shrink:0;}
.main-nav-brand .brand-mark{width:26px; height:26px;}
.main-nav-brand-name{font-weight:800; font-size:16px; letter-spacing:-0.01em;}
.main-nav-links{display:flex; align-items:center; gap:26px; flex-wrap:wrap;}
.main-nav-links a{font-size:13.5px; color:var(--text-muted); text-decoration:none; white-space:nowrap;}
.main-nav-links a:hover, .main-nav-links a[aria-current="page"]{color:var(--text);}
.main-nav-cta{
  background:var(--brand-amber); color:var(--brand-ink); font-weight:700; font-size:13.5px;
  padding:10px 20px; border-radius:24px; text-decoration:none; white-space:nowrap; flex-shrink:0;
}
.main-nav-cta:hover{background:var(--amber-text); color:var(--brand-paper);}
/* Regroupe langue / dashboard / quota / CTA à droite de la barre — fusionné
   depuis l'ancien <header> dupliqué (30/07/2026), pour n'avoir plus qu'un
   seul bandeau de marque en haut de la page d'accueil au lieu de deux. */
.main-nav-extras{display:flex; align-items:center; gap:14px; flex-wrap:wrap; flex-shrink:0;}
@media (max-width:760px){
  .main-nav-bar{gap:12px;}
  .main-nav-links{gap:14px; order:3; width:100%;}
  .main-nav-extras{gap:10px;}
}

/* Comparatif de tokens multi-modèles — dans la section résultats */
.token-compare{margin:14px 0 18px; padding:14px 16px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);}
.token-compare-label{font-family:var(--mono); font-size:11px; color:var(--text-dim); text-transform:uppercase; letter-spacing:.05em; margin-bottom:10px;}
.token-compare-estim{color:var(--amber-text); text-transform:none; letter-spacing:normal; font-weight:600;}
.token-compare-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:10px;}
@media (max-width:640px){ .token-compare-grid{grid-template-columns:repeat(2,1fr);} }
.token-compare-cell{display:flex; flex-direction:column; gap:4px;}
.token-compare-name{font-size:11.5px; color:var(--text-muted); font-weight:600;}
.token-compare-model{font-weight:400; color:var(--text-dim); font-family:var(--mono); font-size:10px;}
.token-compare-num{font-family:var(--mono); font-size:15px; font-weight:700;}
.token-compare-track{height:4px; border-radius:3px; background:var(--surface-2); overflow:hidden;}
.token-compare-fill{height:100%; background:var(--brand-amber); border-radius:3px;}
.token-compare-fill.warn{background:var(--red);}
.token-compare-ctx{font-family:var(--mono); font-size:10px; color:var(--text-dim);}
.token-compare-savings{margin-top:12px; padding-top:12px; border-top:1px solid var(--border); font-size:12.5px; color:var(--text-muted);}
.token-compare-savings b{color:var(--teal);}

/* Page tarifs */
.pricing-toggle{display:inline-flex; border:1px solid var(--border); border-radius:20px; padding:3px; margin-bottom:30px; gap:2px;}
.pricing-toggle button{
  font-family:var(--mono); font-size:12.5px; padding:7px 16px; border-radius:16px; border:none; background:none;
  color:var(--text-muted); cursor:pointer; transition:background .15s ease, color .15s ease;
}
.pricing-toggle button.active{background:var(--brand-ink); color:var(--brand-paper);}
.pricing-toggle .save-badge{font-size:10px; background:var(--teal-dim); color:var(--teal); padding:1px 6px; border-radius:10px; margin-left:6px;}

.pricing-grid{display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:20px;}
@media (max-width:640px){ .pricing-grid{grid-template-columns:1fr;} }
.pricing-grid-4{grid-template-columns:repeat(4, 1fr);}
@media (max-width:980px){ .pricing-grid-4{grid-template-columns:1fr 1fr;} }
@media (max-width:640px){ .pricing-grid-4{grid-template-columns:1fr;} }
.price-card .price-save{font-size:11.5px; font-weight:700; color:var(--teal); font-family:var(--mono); margin-top:-10px;}

.price-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:24px 22px; display:flex; flex-direction:column; gap:14px; position:relative;
}
.price-card.featured{border-color:var(--brand-amber); box-shadow:0 6px 20px rgba(232,162,61,.14);}
.price-card-badge{
  position:absolute; top:-11px; right:20px; background:var(--brand-amber); color:var(--brand-ink);
  font-family:var(--mono); font-size:10.5px; font-weight:700; padding:3px 10px; border-radius:12px;
}
.price-card h3{font-size:16px; font-weight:700;}
.price-card .price-amount{font-size:34px; font-weight:800; letter-spacing:-0.02em;}
.price-card .price-amount small{font-size:14px; font-weight:500; color:var(--text-dim);}
.price-card .price-sub{font-size:12px; color:var(--text-dim); font-family:var(--mono); margin-top:-10px;}
.price-card ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px;}
.price-card li{font-size:13.5px; color:var(--text-muted); display:flex; align-items:flex-start; gap:8px; line-height:1.45;}
.price-card li::before{content:"✓"; color:var(--teal); font-weight:700; flex-shrink:0;}
.price-card .price-cta{
  margin-top:auto; text-align:center; padding:11px; border-radius:8px; font-weight:700; font-size:13.5px;
  text-decoration:none; border:1px solid var(--border); color:var(--text);
}
.price-card.featured .price-cta{background:var(--brand-ink); color:var(--brand-paper); border-color:var(--brand-ink);}
.price-card.featured .price-cta:hover{background:var(--amber-text);}

.pricing-faq{margin-top:44px;}
.pricing-note{
  font-size:12.5px; color:var(--text-dim); font-family:var(--mono); text-align:center;
  margin:24px 0 44px; line-height:1.6;
}

.team-teaser{
  border:1px dashed var(--border); border-radius:var(--radius); padding:18px 22px;
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  margin-bottom:40px; background:var(--surface);
}
.team-teaser p{margin:0; font-size:13.5px;}
.team-teaser .team-teaser-tag{
  font-family:var(--mono); font-size:11px; color:var(--text-dim); background:var(--surface-2);
  padding:4px 10px; border-radius:20px; white-space:nowrap;
}

h1{font-size:26px; font-weight:800; letter-spacing:-0.02em; margin-bottom:8px;}
.hero-title{font-size:38px; line-height:1.12; margin-bottom:10px;}
@media (max-width:640px){ .hero-title{font-size:28px;} }
.lede{color:var(--text-muted); font-size:14.5px; margin-bottom:20px; max-width:640px;}
.lede code{font-family:var(--mono); background:var(--surface-2); padding:1px 5px; border-radius:4px; font-size:13px; color:var(--amber-text);}

.lang-toggle{display:inline-flex; border:1px solid var(--border); border-radius:20px; overflow:hidden;}
.lang-toggle-btn{
  font-family:var(--mono); font-size:11px; padding:5px 11px; background:none; border:none;
  color:var(--text-dim); cursor:pointer;
}
.lang-toggle-btn.active{background:var(--brand-ink); color:var(--brand-paper);}
.lang-toggle-btn:not(.active):hover{background:var(--surface-2); color:var(--text-muted);}
.lang-toggle-btn:focus-visible{outline:var(--focus-ring); outline-offset:2px;}

.trust-line{display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:12px; color:var(--text-dim); margin-bottom:24px;}
.trust-sep{opacity:0.5;}
.platform-badge{display:inline-flex; align-items:center; gap:6px; font-size:12px; color:var(--text-muted); border:1px solid var(--border); border-radius:20px; padding:4px 11px; background:var(--surface);}
.platform-badge-dot{width:7px; height:7px; border-radius:50%; flex-shrink:0;}

/* Bandeau "Compatible avec" — sous le lede, avant l'éditeur */
.platform-badge{display:inline-flex; align-items:center; gap:6px; font-size:12px; color:var(--text-muted); border:1px solid var(--border); border-radius:20px; padding:5px 12px; background:var(--surface);}
.platform-badge-dot{width:7px; height:7px; border-radius:50%; flex-shrink:0;}

/* Grille de fonctionnalités — sous l'outil, renforce ce qui vient d'être
   démontré plutôt que de le précéder (l'outil reste la priorité d'affichage,
   pas une promesse marketing à lire avant de pouvoir l'utiliser). */
.feature-grid-intro{text-align:center; font-size:13px; color:var(--text-dim); margin:48px 0 14px; font-family:var(--mono);}
.feature-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin:0 0 8px;}
@media (max-width:820px){ .feature-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:480px){ .feature-grid{grid-template-columns:1fr;} }
.feature-card{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:18px 16px;}
.feature-card .clarity-icon{width:22px; height:22px; margin-bottom:12px;}
.feature-card h3{font-size:13.5px; font-weight:700; margin-bottom:5px;}
.feature-card p{font-size:12.5px; line-height:1.5; color:var(--text-dim);}
.privacy-dot{width:6px; height:6px; border-radius:50%; background:var(--brand-amber); flex-shrink:0;}

/* Editor */
.editor{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden;}
.editor-bar{display:flex; align-items:center; justify-content:space-between; padding:10px 14px; border-bottom:1px solid var(--border); background:var(--surface-2); gap:10px;}
.dots{display:flex; gap:6px;}
.dots span{width:9px; height:9px; border-radius:50%; background:var(--text-dim); opacity:.5;}
.editor-label{font-family:var(--mono); font-size:11.5px; color:var(--text-dim);}
select.examples{background:var(--bg); color:var(--text-muted); border:1px solid var(--border); border-radius:6px; padding:5px 8px; font-family:var(--sans); font-size:12px; cursor:pointer;}
textarea{width:100%; min-height:170px; background:var(--surface); border:none; outline:none; color:var(--text); font-family:var(--mono); font-size:13.5px; line-height:1.65; padding:16px; resize:vertical;}
textarea::placeholder{color:var(--text-dim);}

.actions{display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border-top:1px solid var(--border); background:var(--surface-2); gap:10px; flex-wrap:wrap;}
.actions-end{justify-content:flex-end;}
.hint{font-size:11.5px; color:var(--text-dim); font-family:var(--mono);}
.actions-buttons{display:flex; gap:8px;}
button.primary{background:var(--brand-amber); color:var(--brand-ink); border:none; font-weight:700; font-size:13.5px; padding:9px 18px; border-radius:7px; cursor:pointer; font-family:var(--sans); transition:transform .1s ease, opacity .15s ease;}
button.primary:hover{opacity:.9;}
button.primary:active{transform:scale(.98);}
button.ghost{background:transparent; color:var(--text-muted); border:1px solid var(--border); font-size:12.5px; padding:7px 14px; border-radius:7px; cursor:pointer; font-family:var(--sans);}
button.ghost:hover{border-color:var(--text-dim); color:var(--text);}

/* Results */
#results{margin-top:24px;}
.status-banner{display:flex; align-items:flex-start; gap:12px; border-radius:var(--radius); padding:14px 16px; margin-bottom:16px; border:1px solid var(--border);}
.status-banner.ok{background:var(--teal-dim); border-color:var(--teal-border);}
.status-banner.abstain{background:var(--amber-dim); border-color:var(--amber-border);}
.status-icon{font-size:18px; line-height:1;}
.status-title{font-weight:700; font-size:14px; margin-bottom:2px;}
.status-desc{font-size:12.5px; color:var(--text-muted); line-height:1.5;}

.stats-row{display:flex; gap:10px; margin-bottom:18px; flex-wrap:wrap;}
.stat{flex:1; min-width:110px; background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:11px 14px;}
.stat-num{font-family:var(--mono); font-size:20px; font-weight:700; color:var(--amber-text);}
.stat-label{font-size:11px; color:var(--text-dim); margin-top:2px;}
.stat-legend{font-size:10.5px; color:var(--text-dim); margin-top:3px; line-height:1.35; opacity:.85;}
.stat-legend code{font-family:var(--mono); background:var(--surface-2); padding:0 4px; border-radius:3px; font-size:10px; color:var(--amber-text);}

.section-label{font-family:var(--mono); font-size:11px; color:var(--text-dim); text-transform:uppercase; letter-spacing:.06em; margin:22px 0 8px; font-weight:600;}

/* Accordion */
.accordion{margin:22px 0 0; border:none;}
.accordion-summary{
  display:flex; align-items:center; gap:7px; cursor:pointer; list-style:none;
  user-select:none;
}
.accordion[open] > .accordion-summary{margin:0 0 8px;}
.accordion-summary::-webkit-details-marker{display:none;}
.accordion-summary::marker{display:none; content:'';}
.accordion-summary::before{
  content:'▸'; display:inline-block; font-size:9px; color:var(--text-dim);
  transition:transform .15s ease; transform-origin:center;
}
.accordion[open] > .accordion-summary::before{transform:rotate(90deg);}
.accordion-summary:hover{color:var(--text-muted);}
.accordion-summary:focus-visible{outline:var(--focus-ring); outline-offset:3px; border-radius:4px;}
.accordion-body{animation:accordion-in .15s ease;}
@keyframes accordion-in{from{opacity:0;} to{opacity:1;}}

.layer-toggles{display:flex; gap:7px; flex-wrap:wrap; margin-bottom:10px; border:none;}
.toggle-chip{display:inline-flex; align-items:center; gap:6px; background:var(--surface-2); border:1px solid var(--border); padding:5px 10px; border-radius:20px; font-size:11px; color:var(--text-muted); cursor:pointer; user-select:none; font-family:var(--sans);}
.toggle-chip input{accent-color:var(--brand-amber); cursor:pointer;}
.toggle-chip.off{opacity:.5;}
.toggle-chip .dot{width:6px; height:6px; border-radius:50%; display:inline-block;}
/* Palette volontairement réduite à 4 teintes qui portent un vrai sens
   (au lieu de 7 couleurs arbitraires) : teal = protégé/brand, rouge = à
   traiter, ambre = à vérifier (heuristique), gris = structurel/neutre. */
.dot-vars{background:var(--teal);} .dot-placeholder{background:var(--amber);} .dot-dupes{background:var(--red);} .dot-neardupe{background:var(--red); opacity:.55;} .dot-contra{background:var(--red);}
.dot-ambig{background:var(--amber);} .dot-position{background:var(--amber);} .dot-format{background:var(--text-dim);}

.diff{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:16px; font-family:var(--mono); font-size:13px; line-height:2; white-space:pre-wrap; word-break:break-word;}
.chip-var{background:var(--teal-dim); color:var(--teal); border:1px solid var(--teal-border); padding:1px 6px; border-radius:5px; font-size:12px; white-space:nowrap;}
.chip-var.make{background:#EAF2FE; color:#1D4ED8; border-color:#BFD7FE;}
.chip-placeholder{background:var(--amber-dim); color:var(--amber); border:1px dashed var(--amber-border); padding:1px 6px; border-radius:5px; font-size:12px; white-space:nowrap;}
.strike{background:var(--red-dim); color:var(--red); text-decoration:line-through; padding:1px 4px; border-radius:4px; opacity:.85;}
.near-dupe-mark{background:rgba(220,38,38,.10); border-bottom:1.5px dashed var(--red); padding-bottom:1px;}
.amb-mark{background:rgba(194,102,10,.12); border-bottom:1.5px dashed var(--amber); padding-bottom:1px;}
.crit-mark{background:rgba(194,102,10,.12); border-bottom:1.5px dashed var(--amber); padding-bottom:1px;}
.contra-mark{background:rgba(220,38,38,.12); border-bottom:1.5px dashed var(--red); padding-bottom:1px;}
.tag-note{color:var(--text-dim); font-size:11px; font-family:var(--sans);}

.clarity-panel{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:14px 16px; display:flex; flex-direction:column; gap:9px;}
.clarity-item{display:flex; align-items:flex-start; gap:10px; font-size:12.5px;}
.clarity-icon{width:16px; height:16px; margin-top:1px; flex-shrink:0; color:var(--text-dim);}
.icon-red{color:var(--red);} .icon-amber{color:var(--amber);} .icon-teal{color:var(--teal);} .icon-green{color:var(--green);} .icon-neutral{color:var(--text-dim);}
.clarity-item b{color:var(--text);}
.confidence{font-size:10.5px; font-family:var(--mono); padding:1px 6px; border-radius:10px; margin-left:6px; display:inline-block;}
.confidence.fact{background:var(--teal-dim); color:var(--teal);}
.confidence.consider{background:var(--surface-2); color:var(--text-dim); border:1px solid var(--border);}
.confidence.weak{background:transparent; color:var(--text-dim); border:1px dashed var(--border); font-style:italic;}
.clarity-empty{color:var(--text-dim); font-size:12px; font-style:italic;}

.suggestions-intro{font-size:11.5px; color:var(--text-dim); margin-bottom:10px; line-height:1.5;}
.suggestion-item .suggestion-present{color:var(--text-dim); font-weight:500;}
.suggestion-tip{color:var(--text-muted); font-size:11.5px; margin-top:2px; line-height:1.4;}
.optimize-undo{background:var(--surface-2); border-radius:8px; padding:8px 10px; margin:-2px -2px 2px;}

.format-panel{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:16px;}
.format-options{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px;}
.format-btn{background:var(--surface-2); border:1px solid var(--border); color:var(--text-muted); padding:8px 13px; border-radius:7px; font-size:12.5px; cursor:pointer; font-family:var(--sans);}
.format-btn.active{background:var(--brand-amber); color:var(--brand-ink); border-color:var(--brand-amber); font-weight:600;}
.format-result{display:flex; align-items:center; gap:14px; font-family:var(--mono); font-size:12.5px; flex-wrap:wrap;}
.tokens-after{color:var(--amber-text); font-weight:600;}
.bar-track{flex:1; min-width:80px; height:8px; background:var(--surface-2); border-radius:4px; overflow:hidden;}
.bar-fill{height:100%; background:var(--brand-amber); border-radius:4px; transition:width .4s ease;}
.format-disclaimer{font-size:11px; color:var(--text-dim); margin-top:10px; line-height:1.5;}

.upgrade{margin-top:22px; border:1px solid var(--amber-border); background:var(--amber-dim); border-radius:var(--radius); padding:16px;}
.upgrade-title{font-weight:700; font-size:13.5px; color:var(--amber); margin-bottom:4px;}
.upgrade-desc{font-size:12.5px; color:var(--text-muted); margin-bottom:12px; line-height:1.5;}
.upgrade-row{display:flex; gap:8px; flex-wrap:wrap;}
.upgrade-row input{flex:1; min-width:180px; background:var(--bg); border:1px solid var(--border); color:var(--text); padding:9px 12px; border-radius:7px; font-family:var(--sans); font-size:13px; outline:none;}
.upgrade-row button{background:var(--amber); color:#FFFFFF; border:none; font-weight:700; font-size:13px; padding:9px 16px; border-radius:7px; cursor:pointer; white-space:nowrap;}
.toast{font-size:12px; color:var(--green); margin-top:8px; font-family:var(--mono);}

footer{margin-top:40px; text-align:center; font-size:11.5px; color:var(--text-dim); font-family:var(--mono); display:flex; flex-direction:column; align-items:center; gap:8px;}

/* --- Tableau de bord d'activité (100% local) --- */
.stats-open-btn{background:var(--surface-2); border:1px solid var(--border); color:var(--text); padding:5px 11px; border-radius:14px; font-size:12px; cursor:pointer;}
.stats-open-btn:hover{background:var(--border);}
.stats-panel{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:18px 20px; margin-top:24px;}
.stats-panel-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:6px;}
.stats-title{font-size:17px; font-weight:700; margin:0;}
.stats-privacy{font-size:11.5px; color:var(--text-dim); margin-bottom:14px;}
.stats-filters{display:flex; flex-wrap:wrap; align-items:center; gap:14px; margin-bottom:16px; padding-bottom:14px; border-bottom:1px solid var(--border);}
.stats-filters label{display:flex; align-items:center; gap:6px; font-size:12px; color:var(--text-muted);}
.stats-filters select{background:var(--bg); border:1px solid var(--border); color:var(--text); border-radius:8px; padding:4px 8px; font-size:12px;}
.stats-export{display:flex; gap:8px; margin-left:auto; flex-wrap:wrap;}
.stats-clear{color:var(--red);}
.stats-cards{display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:14px; margin-bottom:20px;}
.stats-card{
  display:flex; flex-direction:column-reverse; gap:4px;
  background:var(--bg); border:1px solid var(--border); border-radius:12px; padding:16px 18px;
}
.stats-card-num{font-size:26px; font-weight:800; letter-spacing:-0.02em;}
.stats-card-num.teal{color:var(--teal);} .stats-card-num.red{color:var(--red);} .stats-card-num.green{color:var(--green);}
.stats-card-label{font-size:11.5px; color:var(--text-dim); line-height:1.4;}

.stats-chart{margin-bottom:22px;}
.stats-chart-label{font-family:var(--mono); font-size:11px; color:var(--text-dim); text-transform:uppercase; letter-spacing:.05em; margin-bottom:12px;}
.stats-chart-bars{display:flex; align-items:flex-end; gap:6px; height:100px;}
.stats-chart-col{flex:1; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; height:100%; gap:6px;}
.stats-chart-bar{width:100%; max-width:34px; background:var(--brand-amber); border-radius:4px 4px 0 0; min-height:2px;}
.stats-chart-daylabel{font-family:var(--mono); font-size:10px; color:var(--text-dim);}
.stats-breakdown{margin-bottom:16px;}
.stats-bar-row{display:flex; align-items:center; gap:10px; margin-bottom:4px; font-size:12px;}
.stats-bar-label{flex:0 0 160px; color:var(--text-muted); text-align:right;}
.stats-bar-track{flex:1; height:10px; background:var(--surface-2); border-radius:5px; overflow:hidden;}
.stats-bar-fill{height:100%; background:var(--brand-amber); border-radius:5px;}
.stats-bar-fill.red{background:var(--red);} .stats-bar-fill.amber{background:var(--amber);}
.stats-bar-num{flex:0 0 36px; font-family:var(--mono); font-size:11px; color:var(--text);}
.stats-days table, .stats-platforms table{width:100%; border-collapse:collapse; font-size:12px;}
.stats-days th, .stats-platforms th{text-align:left; color:var(--text-dim); font-weight:600; font-size:11px; text-transform:uppercase; letter-spacing:.04em; padding:6px 8px; border-bottom:1px solid var(--border);}
.stats-days td, .stats-platforms td{padding:6px 8px; border-bottom:1px solid var(--surface-2); font-family:var(--mono); font-size:11.5px;}
.stats-platforms{margin-bottom:16px;}
.stats-empty{color:var(--text-dim); font-style:italic; font-size:12.5px;}

.stats-tabs{display:flex; gap:4px; border-bottom:1px solid var(--border); margin-bottom:18px; flex-wrap:wrap;}
.stats-tab{background:none; border:none; padding:9px 14px; font-size:12.5px; font-family:inherit; color:var(--text-dim); cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px;}
.stats-tab:hover{color:var(--text-muted);}
.stats-tab.active{color:var(--text); border-bottom-color:var(--brand-amber); font-weight:600;}
.stats-empty-state{text-align:center; padding:28px 20px; background:var(--bg); border:1px dashed var(--border); border-radius:12px;}
.stats-empty-state-title{font-weight:700; font-size:14px; margin-bottom:6px;}
.stats-empty-state-desc{font-size:12.5px; color:var(--text-dim); line-height:1.6; max-width:440px; margin:0 auto 14px;}
.stats-platform-invite{display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; background:var(--surface); border:1px dashed var(--border); border-radius:8px; padding:10px 14px; margin-bottom:10px; font-size:12.5px; color:var(--text-muted);}
.ext-status{font-family:var(--mono); font-size:10.5px; font-weight:600; text-transform:none; letter-spacing:0;}
.ext-status.connected{color:var(--teal);} .ext-status.absent{color:var(--text-dim);} .ext-status.checking{color:var(--text-dim); opacity:.7;}
.feedback-link{color:var(--amber-text); text-decoration:underline; font-family:var(--sans); font-size:12.5px;}
.feedback-link:hover{opacity:.8;}

/* Responsive */
@media (max-width: 480px){
  h1{font-size:21px;}
  .brand-tag{font-size:10.5px;}
  .stats-row{flex-direction:column;}
  .format-result{flex-direction:column; align-items:stretch;}
  .bar-track{width:100%;}

  /* --- Passe ergonomie mobile (backlog V7) --- */
  /* Cibles tactiles ≥ 40px de haut sur tous les boutons d'action : les
     boutons compacts du desktop sont difficiles à toucher au pouce. */
  .mask-btn, .tool-btn, .customize-btn, .stats-open-btn, button#analyzeBtn, button#waitlistBtn{
    min-height:40px; padding-top:8px; padding-bottom:8px;
  }
  /* Sommaire collant : défilement horizontal d'une ligne plutôt que
     retour à la ligne (le sticky sur 3 lignes mangeait l'écran). */
  .summary-bar{flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none;}
  .summary-bar::-webkit-scrollbar{display:none;}
  /* Cockpit : donut au-dessus, légende en dessous, tout centré. */
  .cockpit{flex-direction:column; align-items:center; text-align:center;}
  /* Cartes de stats en pleine largeur, filtres empilés, export en colonne. */
  .stats-card{flex:1 1 100%;}
  .stats-filters{flex-direction:column; align-items:stretch; gap:10px;}
  .stats-filters label{justify-content:space-between;}
  .stats-export{margin-left:0; flex-direction:column;}
  .stats-export .tool-btn{width:100%;}
  /* Barres de répartition : libellés au-dessus de la barre (160px de
     libellé + barre ne tiennent pas côte à côte sur petit écran). */
  .stats-bar-row{flex-wrap:wrap;}
  .stats-bar-label{flex:1 1 100%; text-align:left; margin-bottom:2px;}
  /* Tableau par jour : défilement horizontal si besoin plutôt qu'écrasement. */
  .stats-days, .stats-platforms{overflow-x:auto;}
  /* Zone de saisie un peu plus haute : le clavier virtuel réduit déjà
     l'espace visible, un textarea trop bas devient inconfortable. */
  textarea{min-height:200px; font-size:16px;} /* 16px = pas de zoom auto iOS au focus */
  /* Le header passe en colonne si les deux blocs ne tiennent pas. */
  header{flex-direction:column; align-items:flex-start;}
}

/* Accessibilité mouvement */
@media (prefers-reduced-motion: reduce){
  *{transition:none !important; animation:none !important;}
}
/* --- V6 : langue, données sensibles, optimisations --- */
.locale-picker { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.locale-picker-label { font-size: 11px; color: var(--text-dim); white-space: nowrap; }
.locale-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); padding: 3px 10px; border-radius: 12px; font-size: 11px; cursor: pointer; font-family: inherit; }
.locale-btn.active { background: var(--brand-amber); color: var(--brand-ink); border-color: var(--brand-amber); font-weight: 600; }

.sensitive-section { margin-top: 18px; }
.sensitive-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--red-dim); border: 1px solid var(--red-border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.sensitive-item-text b { color: var(--red); }
.sensitive-snippet { font-family: 'JetBrains Mono', monospace; color: var(--text-dim); font-size: 11.5px; margin-top: 3px; }
.mask-btn { flex-shrink: 0; background: var(--bg); border: 1px solid var(--border); color: inherit; padding: 5px 11px; border-radius: 8px; font-size: 11.5px; cursor: pointer; font-family: inherit; margin-top: 6px; }
.mask-btn:hover { background: var(--surface-2); }
.mask-btn:disabled { opacity: .5; cursor: default; }

/* Flag doute — apprentissage adaptatif (M0, 02/08/2026) */
.exceptions-list { margin: 10px 0 18px; }
.exception-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; margin-bottom: 6px; font-size: 13px; }
.exceptions-list .empty-note { color: var(--text-dim); font-size: 13px; }
.sensitive-item-collapsed { background: var(--surface-2); border-color: var(--border); }
.sensitive-item-collapsed .sensitive-item-text { color: var(--text-dim); }
.uncollapse-btn { flex-shrink: 0; background: var(--bg); border: 1px solid var(--border); color: inherit; padding: 5px 11px; border-radius: 8px; font-size: 11.5px; cursor: pointer; font-family: inherit; }
.uncollapse-btn:hover { background: var(--surface-2); }
.exception-suggestion { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--amber-dim); border: 1px solid var(--amber-border); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; font-size: 12.5px; }
.exception-suggestion-yes, .exception-suggestion-no { flex-shrink: 0; border-radius: 8px; padding: 5px 11px; font-size: 11.5px; cursor: pointer; font-family: inherit; }
.exception-suggestion-yes { background: var(--brand-amber); color: var(--brand-ink); border: none; font-weight: 700; }
.exception-suggestion-no { background: var(--bg); border: 1px solid var(--border); color: inherit; }

/* --- V6.1 : sommaire cliquable, surlignage sensible dans le diff --- */
.summary-chip { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); padding: 8px 15px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--sans); transition: background .12s ease, border-color .12s ease, transform .1s ease; }
.summary-chip:hover { background: var(--border); }
.summary-chip:active { transform: scale(.97); }
.summary-chip.summary-alert { background: var(--red-dim); border-color: var(--red-border); color: var(--red); font-weight: 700; }
.sensitive-mark { background: rgba(220, 38, 38, .12); border-bottom: 1px dashed var(--red); border-radius: 3px; padding: 0 3px; cursor: pointer; }
.sensitive-mark:hover { background: rgba(220, 38, 38, .22); }
.dot-sensitive { background: var(--red); }
.dot-noise { background: var(--text-dim); }

/* --- V6.2 : accordéon alerte, alignements, hiérarchie --- */
.accordion-alert > summary { color: var(--red); font-weight: 700; }
.accordion-alert > summary:hover { color: var(--red-hover); }
.clarity-item { display: flex; gap: 10px; align-items: flex-start; }
.clarity-item .clarity-icon { flex: 0 0 16px; }

/* --- V6.3 : design épuré, chevrons, sticky, troncature, actions --- */

/* Accordéons en cartes, chevron explicite */
details.accordion { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0; margin-top: 12px; }
details.accordion > summary { display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer; user-select: none; list-style: none; }
details.accordion > summary::-webkit-details-marker { display: none; }
details.accordion > summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 1.5px solid var(--text-dim); border-bottom: 1.5px solid var(--text-dim); transform: rotate(45deg); transition: transform .15s; flex-shrink: 0; }
details.accordion[open] > summary::after { transform: rotate(225deg); }
details.accordion > summary:hover { background: var(--surface-2); border-radius: 12px; }
details.accordion .accordion-body { padding: 4px 16px 16px; }

/* Pastilles de section — une couleur par famille, monochrome sinon */
.sec-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-neutral { background: var(--text-dim); }
.dot-amber { background: var(--amber); }
.dot-teal { background: var(--teal); }
.dot-green { background: var(--green); }

/* Aide contextuelle "?" — tooltip custom (pas de délai natif du title=) */
.help { position:relative; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--border); color: var(--text-dim); font-size: 10px; display: inline-flex; align-items: center; justify-content: center; margin-left: 6px; cursor: help; flex-shrink: 0; font-weight: 400; }
.help:hover, .help:focus-visible { color: var(--text); border-color: var(--text-dim); }
.help::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(3px);
  background: var(--text); border: 1px solid var(--text); color: var(--bg);
  font-size: 11.5px; font-weight: 400; font-family: var(--sans); line-height: 1.45;
  text-transform: none; letter-spacing: normal;
  padding: 8px 10px; border-radius: 8px; width: max-content; max-width: 240px;
  white-space: normal; text-align: left;
  opacity: 0; pointer-events: none; z-index: 30;
  box-shadow: 0 6px 20px rgba(20,22,30,.18);
  transition: opacity .08s ease, transform .08s ease;
}
.help:hover::after, .help:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); transition-delay: .05s; }
@media (max-width:480px){ .help::after{ left:auto; right:-8px; transform:translateY(3px);} .help:hover::after,.help:focus-visible::after{ transform:translateY(0);} }

/* Sommaire collant pendant le scroll — règle unique (l'ancien doublon avec
   V6.1 provoquait un affichage instable en colonne au lieu d'une ligne). */
.summary-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  position: sticky; top: 0; z-index: 15;
  background: var(--bg); margin: 16px 0 20px; padding: 12px 0;
  border-bottom: 1px solid transparent;
}
.summary-chip { flex-shrink: 0; padding: 6px 11px; font-size: 12px; }
.summary-bar:empty { display: none; margin: 0; padding: 0; }
/* Léger décroché visuel une fois collé en haut, pour bien signaler l'état sticky */
.summary-bar::before {
  content: ''; position: absolute; left: -20px; right: -20px; bottom: 0; top: 0;
  background: var(--bg); z-index: -1;
}

/* Troncature façon journal : fondu + chevron/bandeau déroulant animé.
   Classe générique réutilisée sur l'aperçu ET les 4 autres panneaux
   (signaux, bonnes pratiques, observations, optimisations) — jamais sur
   les données sensibles, qui restent toujours entièrement visibles. */
.trunc-wrap { position: relative; }
.trunc-wrap.cappable { overflow: hidden; transition: max-height .35s cubic-bezier(.4,0,.2,1); }
.trunc-wrap.cappable::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 64px;
  background: linear-gradient(to bottom, transparent 0%, var(--surface) 85%);
  pointer-events: none; transition: opacity .2s ease;
}
.trunc-wrap.cappable.expanded::after { opacity: 0; }
/* Aperçu à 2 lignes : hauteur = 2 lignes nettes (16px de padding + 2×26px)
   + une petite zone réservée au fondu/bouton, pour ne jamais recouvrir de
   texte lisible (seul un aperçu de la 3e ligne s'estompe dans cette zone). */
.trunc-wrap.trunc-tight.cappable::after { height: 40px; }
.trunc-wrap.trunc-tight .trunc-expand-toggle { padding: 4px 10px; font-size: 10.5px; bottom: 6px; }

.trunc-expand-toggle {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  background: var(--bg); border: 1px solid var(--border); color: var(--text-muted);
  padding: 6px 14px; border-radius: 20px; font-size: 11.5px; font-family: var(--sans);
  cursor: pointer; z-index: 2; box-shadow: 0 4px 14px rgba(20,22,30,.14);
  transition: background .12s ease, color .12s ease, transform .12s ease;
}
.trunc-expand-toggle:hover { background: var(--surface-2); color: var(--text); }
.trunc-expand-toggle:active { transform: translateX(-50%) scale(.96); }
.trunc-expand-toggle .chevron {
  width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .25s ease; margin-top: -3px;
}
.trunc-wrap.expanded .trunc-expand-toggle {
  /* Une fois déplié, plus rien ne justifie de flotter par-dessus le texte
     (ce n'était acceptable qu'en collapsed, où le bouton recouvre la zone
     de fondu, pas du texte net). On repasse en flux normal, sous le contenu. */
  position: static; transform: none; width: max-content; margin: 10px auto 0;
}
.trunc-wrap.expanded .trunc-expand-toggle .chevron { transform: rotate(225deg); margin-top: 3px; }

/* Barre d'outils de l'aperçu + boutons d'action */
.diff-toolbar { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.tool-btn { background: var(--bg); border: 1px solid var(--border); color: inherit; padding: 5px 12px; border-radius: 8px; font-size: 12px; cursor: pointer; font-family: inherit; }
.tool-btn:hover { background: var(--surface-2); }
.tool-btn:disabled { opacity: .5; cursor: default; }
.tool-btn-primary { background: var(--brand-amber); border-color: var(--brand-amber); color: var(--brand-ink); font-weight: 700; }
.tool-btn-primary:hover { background: var(--amber-text); border-color: var(--amber-text); color: var(--brand-paper); }

.license-box{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:18px 20px; margin:14px 0 32px;}
.license-status{display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:13.5px;}
.license-dot{width:8px; height:8px; border-radius:50%; background:var(--teal, #2E9E8F); flex-shrink:0;}
.license-form{display:flex; gap:10px; flex-wrap:wrap;}
.license-form input{flex:1; min-width:200px; background:var(--bg); border:1px solid var(--border); border-radius:8px; padding:9px 12px; font-family:var(--mono); font-size:13px; color:inherit;}
.license-form input:focus{outline:2px solid var(--brand-amber); outline-offset:1px;}
.license-message{font-size:12.5px; margin:10px 0 0; color:var(--text-dim);}
.license-message.error{color:#D9534F;}
.license-help{font-size:12px; color:var(--text-dim); margin:10px 0 0;}
.license-help a{color:var(--amber-text);}

/* Ligne doublon avec bouton Supprimer */
.dupe-row { align-items: center; }
.dupe-row .dupe-del { margin-left: auto; flex-shrink: 0; }
.dupe-excerpt { color: var(--text-dim); font-style: italic; }

/* Légende des couleurs — pour un débutant, les pastilles seules ne parlent
   pas. Toujours visible (pas cachée derrière un hover) dès que l'aperçu est
   ouvert, puisque c'est là que les 4 teintes apparaissent ensemble. */
.dot-red { background: var(--red); }
.color-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 12px; padding: 9px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); }
.legend-item .sec-dot { width: 7px; height: 7px; }

/* Sélecteur d'indicateurs — l'utilisateur choisit 3 à 5 chiffres à suivre
   parmi une dizaine de possibles, plutôt qu'un trio fixe imposé à tous. */
.stats-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; gap: 8px; flex-wrap: wrap; }
.stats-head .section-label { margin: 0; }
.customize-btn { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: 12px; padding: 7px 13px; border-radius: 16px; cursor: pointer; font-family: var(--sans); display: inline-flex; align-items: center; gap: 6px; }
.customize-btn:hover { background: var(--brand-paper); border-color: var(--brand-amber); color: var(--amber-text); }
.customize-btn .gear { font-size: 13px; }

.stat-picker { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.stat-picker-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.stat-picker-title { font-size: 12.5px; font-weight: 600; color: var(--text); }
.stat-picker-count { font-family: var(--mono); font-size: 11px; color: var(--text-dim); }
.stat-picker-count.maxed { color: var(--amber); }
.stat-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 14px; }
.stat-pick { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; cursor: pointer; user-select: none; }
.stat-pick input { margin-top: 3px; accent-color: var(--brand-amber); cursor: pointer; }
.stat-pick input:disabled { cursor: not-allowed; }
.stat-pick.disabled { opacity: .45; }
.stat-pick-label { color: var(--text); font-weight: 500; }
.stat-pick-legend { display: block; color: var(--text-dim); font-size: 10.5px; margin-top: 1px; line-height: 1.3; }
.stat-picker-close { margin-top: 12px; }

/* Panneau fusionné : vue d'ensemble (donut) + indicateurs suivis, dans un
   seul conteneur visuel plutôt que deux boîtes empilées avec du vide autour
   du camembert. Un seul fond/bordure pour l'ensemble ; les deux sous-blocs
   (.cockpit et .cockpit-stats) sont posés dedans, séparés par un filet. */
.cockpit-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; }
.cockpit-sep { height: 1px; background: var(--border); margin: 14px 0; }
.cockpit-stats .stats-head { margin-top: 0; }
.cockpit-stats .stats-row { margin-bottom: 0; }

/* Cockpit — vue d'ensemble visuelle en haut des résultats. Un donut SVG
   plutôt qu'une note chiffrée : ce sont des comptages factuels par section,
   jamais un score de qualité synthétique (principe du produit : jamais de
   verdict). Chaque tranche reprend la couleur déjà utilisée par la pastille
   de son accordéon, pour rester cohérent avec le reste de l'interface. */
.cockpit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cockpit-chart { flex-shrink: 0; line-height: 0; }
.cockpit-arc { animation: cockpit-arc-in .4s ease backwards; }
@keyframes cockpit-arc-in { from { opacity: 0; } to { opacity: 1; } }
.cockpit-legend { list-style: none; display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 200px; }
.cockpit-legend-item { display: flex; align-items: center; gap: 8px; background: none; border: none; padding: 3px 0; font-size: 12.5px; color: var(--text-muted); cursor: pointer; font-family: var(--sans); text-align: left; width: 100%; border-radius: 4px; }
.cockpit-legend-item:hover { color: var(--text); }
.cockpit-legend-item:hover .cockpit-legend-dot { transform: scale(1.25); }
.cockpit-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; transition: transform .1s ease; }
.cockpit-legend-count { font-family: var(--mono); font-weight: 700; color: var(--text); min-width: 1.4em; }
.cockpit-legend-label { flex: 1; }

/* Les liens mentions-legales.html / confidentialite.html suivent le style
   normal de .legal-footer-links (content.css) — pas de traitement à part.
   Historique : une règle les rendait quasi invisibles (18/07/2026), retirée
   le 30/07/2026 car contraire à l'obligation légale d'accessibilité facile
   de ces pages (LCEN, RGPD). */

/* Bandeau bêta + modale liste d'attente (Session Bêta, 03/08/2026),
   injectés par beta-banner.js sur toutes les pages publiques. */
.beta-banner {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap; background: var(--brand-amber); color: var(--brand-ink);
  padding: 10px 16px; font-size: 13.5px; font-weight: 600; text-align: center;
}
.beta-banner a { color: inherit; text-decoration: underline; font-weight: 700; }
.beta-banner-dismiss {
  flex-shrink: 0; background: none; border: 1px solid var(--brand-ink);
  color: var(--brand-ink); border-radius: 6px; padding: 3px 10px;
  font-size: 12px; cursor: pointer; opacity: .75;
}
.beta-banner-dismiss:hover { opacity: 1; }

.beta-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.beta-modal {
  position: relative; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px 22px; max-width: 420px;
  width: 100%; box-sizing: border-box;
}
.beta-modal h2 { margin: 0 0 8px; font-size: 19px; }
.beta-modal-lede { color: var(--text-muted); font-size: 13.5px; margin: 0 0 18px; }
.beta-modal-close {
  position: absolute; top: 12px; right: 12px; background: none; border: none;
  font-size: 15px; cursor: pointer; color: var(--text-dim); padding: 4px 8px;
}
.beta-modal-website { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.beta-modal label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.beta-modal input[type="email"] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg); color: var(--text);
  font-family: inherit; font-size: 14px; box-sizing: border-box; margin-bottom: 14px;
}
.beta-modal-consent {
  display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px;
  font-weight: 400; color: var(--text-muted); margin-bottom: 16px; cursor: pointer;
}
.beta-modal-consent input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; }
.beta-modal-consent a { color: inherit; text-decoration: underline; }
.beta-modal button[type="submit"] { width: 100%; }
.beta-modal-status { margin-top: 12px; padding: 8px 10px; border-radius: var(--radius); font-size: 13px; display: none; }
.beta-modal-status.ok { display: block; background: var(--amber-dim); border: 1px solid var(--amber-border); color: var(--amber-text); }
.beta-modal-status.error { display: block; background: var(--red-dim); border: 1px solid var(--red-border); color: var(--red); }
