/* ============================================
   La Forge — Feuille de style commune
   Inspirée du design system GRC, palette Forge
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0d;
  --bg2: #070710;
  --card: #13131a;
  --card-hover: #16161e;

  --feu: #ff8c42;
  --feu2: #ffb76b;
  --braise: #c0673d;

  --vert: #5eead4;
  --vert2: #2ecc71;
  --rouge: #e74c3c;
  --ambre: #fbbf4a;

  --texte: #fafaf7;
  --texte2: #9ca3af;
  --texte3: #6b7280;

  --border: rgba(255,255,255,.08);
  --border2: rgba(255,255,255,.06);
  --border3: rgba(255,255,255,.15);
}

/* ===== Mode clair ===== */
body.light {
  --bg: #fafaf7;
  --bg2: #ffffff;
  --card: #ffffff;
  --card-hover: #f7f5f0;
  --texte: #1a1a1f;
  --texte2: #555;
  --texte3: #888;
  --border: rgba(0,0,0,.08);
  --border2: rgba(0,0,0,.04);
  --border3: rgba(0,0,0,.15);
}

/* ===== Mode confort (contraste max, pas d'agrandissement) ===== */
body.confort {
  --texte: #ffffff;
  --texte2: #f3f4f6;
  --texte3: #d1d5db;
}
body.light.confort {
  --texte: #000000;
  --texte2: #111827;
  --texte3: #374151;
}

/* ===== Tailles a11y (A / A+ / A++) ===== */
/* zoom = scale toute la page (supporté Chrome/Safari/Edge/Firefox) */
html { zoom: 1; }
body { font-size: 15px; }
html.size-115, body.size-115 { zoom: 1.15; }
html.size-130, body.size-130 { zoom: 1.30; }

/* ===== Équilibrage typographique des titres et paragraphes longs ===== */
h1, h2, h3, .balance {
  text-wrap: pretty;
  text-wrap: balance;
  -webkit-text-wrap: balance;
  hyphens: auto;
}
p.balance, .lead {
  text-wrap: pretty;
  text-wrap: balance;
}

/* ===== Base ===== */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--texte);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--feu); text-decoration: none; }
a:hover { color: var(--feu2); }
em.italic, .italic { font-family: 'Newsreader', serif; font-style: italic; color: var(--feu); font-weight: 500; }
.mono { font-family: 'JetBrains Mono', monospace; }
.logo-font { font-family: 'Cinzel', serif; font-weight: 500; }

/* ===== Header global ===== */
header.forge-header {
  position: sticky; top: 0; z-index: 100;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10,10,13,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
body.light header.forge-header { background: rgba(250,249,247,.92); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-tile {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--feu), var(--feu2));
  display: flex; align-items: center; justify-content: center;
  color: var(--bg); font-family: 'Cinzel', serif; font-weight: 600; font-size: 20px;
  box-shadow: 0 2px 12px rgba(255,140,66,.25);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: 'Cinzel', serif; font-weight: 500; font-size: 17px; color: var(--texte); letter-spacing: 0.5px; }
.brand-slogan { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 1.5px; color: var(--vert); text-transform: uppercase; margin-top: 3px; }

.header-tools { display: flex; align-items: center; gap: 8px; }

.a11y-group {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; background: var(--card); border-radius: 7px; border: 1px solid var(--border);
}
.a11y-btn {
  padding: 5px 9px;
  background: transparent; border: none;
  color: var(--texte2); cursor: pointer;
  font-family: inherit; font-weight: 500;
  border-radius: 4px;
  transition: all .2s;
  display: inline-flex; align-items: center; justify-content: center;
}
.a11y-btn:nth-child(1) { font-size: 11px; }
.a11y-btn:nth-child(2) { font-size: 13px; }
.a11y-btn:nth-child(3) { font-size: 15px; }
.a11y-btn:hover { background: rgba(255,140,66,.12); color: var(--feu); }
.a11y-btn.active { background: var(--feu); color: var(--bg); font-weight: 600; }

.a11y-divider { width: 1px; height: 18px; background: var(--border3); margin: 0 3px; }

.a11y-btn.confort-btn { font-size: 14px; }
.a11y-btn.confort-btn.active { background: var(--vert); color: var(--bg); }

.icon-btn {
  padding: 7px 11px;
  background: transparent; border: 1px solid var(--border3); border-radius: 7px;
  color: var(--texte2); cursor: pointer; font-size: 13px;
  font-family: inherit;
  transition: all .2s;
  display: inline-flex; align-items: center; gap: 4px;
}
.icon-btn:hover { background: rgba(255,255,255,.04); color: var(--texte); border-color: rgba(255,140,66,.3); }
body.light .icon-btn:hover { background: rgba(0,0,0,.04); }

.btn-logout {
  padding: 7px 14px;
  background: transparent; border: 1px solid var(--border3); border-radius: 7px;
  color: var(--texte3); font-size: 12px; cursor: pointer;
  font-family: inherit; font-weight: 500;
  transition: all .2s;
}
.btn-logout:hover { border-color: var(--rouge); color: var(--rouge); }

/* ===== Boutons communs ===== */
.btn { padding: 11px 22px; font-family: inherit; font-weight: 500; font-size: 14px; border-radius: 24px; cursor: pointer; transition: all .25s; border: 1px solid transparent; letter-spacing: -.1px; display: inline-flex; align-items: center; gap: 8px; }
.btn-feu { background: var(--feu); color: var(--bg); }
.btn-feu:hover { background: var(--feu2); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255,140,66,.3); }
.btn-ghost { background: transparent; color: var(--texte); border-color: var(--border3); }
.btn-ghost:hover { background: rgba(255,255,255,.04); border-color: rgba(255,140,66,.4); }
body.light .btn-ghost:hover { background: rgba(0,0,0,.04); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ===== Inputs ===== */
.input {
  width: 100%;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border3);
  border-radius: 8px;
  color: var(--texte);
  font-size: 15px;
  font-family: inherit;
  transition: all .2s;
}
.input:focus { outline: none; border-color: var(--feu); background: var(--card-hover); }
.input::placeholder { color: var(--texte3); }

/* ===== Cards ===== */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }

/* ===== Layout helpers ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 32px; }
.center-screen { min-height: calc(100vh - 80px); display: flex; align-items: center; justify-content: center; padding: 32px; }

/* (ancien bloc responsive supprimé, remplacé par les media queries détaillées plus bas) */

/* ===== Contraintes typographiques pour titres longs ===== */
.hero-h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1.1;
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
}
.hero-lead {
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--texte2);
  line-height: 1.6;
  max-width: 38ch;
  margin: 0 auto 28px;
  text-wrap: balance;
}
.login-h1 {
  font-size: clamp(24px, 3.5vw, 30px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.15;
  max-width: 16ch;
  margin: 0 auto 8px;
}
.login-lead {
  font-size: clamp(13px, 1.4vw, 14px);
  color: var(--texte2);
  line-height: 1.6;
  max-width: 36ch;
  margin: 0 auto;
  text-wrap: balance;
}

/* ============================================
   Ajustements MODE CLAIR
   ============================================ */

/* Slogan "OUTIL FABRIQUE" : passer du teal à une teinte cuivrée en mode clair */
body.light .brand-slogan { color: var(--braise); }

/* Bouton thème : meilleur contraste en mode clair */
body.light .icon-btn {
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.12);
  color: var(--texte2);
}
body.light .icon-btn:hover {
  background: rgba(255,140,66,.1);
  border-color: var(--feu);
  color: var(--feu);
}

/* Séparateur a11y plus discret en mode clair */
body.light .a11y-divider { background: rgba(0,0,0,.12); }

/* Bouton "A" (taille normale) : meilleur contraste */
body.light .a11y-btn { color: var(--texte2); }
body.light .a11y-btn:hover { background: rgba(255,140,66,.1); color: var(--feu); }

/* Bouton logout : visible en mode clair */
body.light .btn-logout { color: var(--texte3); border-color: rgba(0,0,0,.15); }
body.light .btn-logout:hover { color: var(--rouge); border-color: var(--rouge); }

/* Card : ombre douce en mode clair pour qu'elle se détache du fond */
body.light .card {
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

/* Header en mode clair : ombre douce */
body.light header.forge-header {
  border-bottom-color: rgba(0,0,0,.06);
  box-shadow: 0 1px 4px rgba(0,0,0,.02);
}

/* Input en mode clair */
body.light .input {
  background: #ffffff;
  border-color: rgba(0,0,0,.15);
  color: var(--texte);
}
body.light .input:focus {
  border-color: var(--feu);
  background: #fffbf7;
}

/* Bouton ghost en mode clair */
body.light .btn-ghost {
  color: var(--texte);
  border-color: rgba(0,0,0,.18);
}

/* ============================================
   RESPONSIVE MOBILE (≤ 640px)
   ============================================ */
@media (max-width: 640px) {

  /* Header : on compacte tout */
  header.forge-header {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Logo : plus petit */
  .brand-tile { width: 32px; height: 32px; font-size: 18px; }
  .brand-name { font-size: 15px; }
  .brand-slogan { display: none; }

  /* Barre d'outils header */
  .header-tools { gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

  /* Boutons a11y plus serrés */
  .a11y-group { padding: 2px; }
  .a11y-btn { padding: 4px 6px; min-width: 24px; }
  .a11y-btn:nth-child(1) { font-size: 10px; }
  .a11y-btn:nth-child(2) { font-size: 12px; }
  .a11y-btn:nth-child(3) { font-size: 14px; }
  .a11y-divider { height: 14px; margin: 0 1px; }
  .a11y-btn.confort-btn { font-size: 12px; }

  /* Bouton thème : compact */
  .icon-btn { padding: 5px 8px; font-size: 12px; }

  /* Logout : compact */
  .btn-logout { padding: 5px 10px; font-size: 11px; }

  /* Container et center-screen */
  .container { padding: 16px; }
  .center-screen { padding: 16px; min-height: calc(100vh - 60px); }

  /* Cards : padding réduit */
  .card { padding: 20px; border-radius: 12px; }

  /* Titres : adapter clamp */
  .hero-h1 {
    font-size: clamp(26px, 8vw, 36px);
    max-width: 12ch;
  }
  .login-h1 {
    font-size: clamp(22px, 6vw, 28px);
    max-width: 14ch;
  }

  /* Inputs : plus lisibles au tap */
  .input {
    padding: 14px 14px;
    font-size: 16px;  /* >= 16px évite le zoom auto iOS */
  }

  /* Boutons : plus généreux au tap */
  .btn { padding: 13px 22px; font-size: 14px; }
}

/* ============================================
   TRÈS PETIT ÉCRAN (≤ 380px)
   ============================================ */
@media (max-width: 380px) {

  header.forge-header { padding: 8px 10px; }

  /* Logo encore plus petit */
  .brand-name { font-size: 14px; }

  /* Header tools : on réorganise sur 2 lignes si besoin */
  .header-tools {
    width: 100%;
    justify-content: flex-start;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }

  /* Cards encore plus compactes */
  .card { padding: 16px; }

  .hero-h1 { font-size: 24px; }
  .login-h1 { font-size: 20px; }
}

/* ===== Accents italiques moins agressifs en mode clair ===== */
body.light em.italic, body.light .italic { color: var(--braise); }
body.light h1 em, body.light .hero-h1 em, body.light .greet-h1 em { color: var(--braise); }

/* Le orange vif reste réservé aux CTA et icônes en mode clair */

/* ============================================
   MENU DE NAVIGATION
   ============================================ */
.nav-menu {
  display: flex; gap: 4px;
  margin-left: 24px; margin-right: auto;
}
.nav-link {
  padding: 7px 14px;
  font-size: 13px; font-weight: 500;
  color: var(--texte2);
  text-decoration: none;
  border-radius: 7px;
  transition: all .2s;
  position: relative;
}
.nav-link:hover { color: var(--texte); background: rgba(255,255,255,.04); }
body.light .nav-link:hover { background: rgba(0,0,0,.04); }
.nav-link.active { color: var(--feu); }
.nav-link.active::after {
  content: ''; position: absolute;
  bottom: -2px; left: 14px; right: 14px;
  height: 2px; background: var(--feu);
  border-radius: 1px;
}

/* Badge utilisateur (avatar mini + prénom) */
.user-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px 4px 4px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px;
  margin-right: 4px;
}
.user-avatar-mini {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--feu), var(--feu2));
  display: flex; align-items: center; justify-content: center;
  color: var(--bg); font-family: 'Cinzel', serif; font-weight: 600; font-size: 10px;
  flex-shrink: 0; overflow: hidden;
}
.user-avatar-mini img { width: 100%; height: 100%; object-fit: cover; }
.user-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--texte2);
  letter-spacing: 0.5px;
}

/* Responsive : nav s'adapte ou disparaît */
@media (max-width: 900px) {
  .nav-menu { gap: 0; margin-left: 12px; }
  .nav-link { padding: 6px 10px; font-size: 12px; }
  .nav-link.active::after { left: 10px; right: 10px; }
  .user-name { display: none; }
  .user-badge { padding: 3px; }
}
@media (max-width: 640px) {
  .nav-menu {
    order: 100; width: 100%;
    margin: 8px 0 0; padding-top: 8px;
    border-top: 1px solid var(--border);
    justify-content: space-around;
  }
  .nav-link { flex: 1; text-align: center; padding: 8px 4px; }
  .user-badge { display: none; }
}



/* ========================================================================
   Badge leads non lus — affichage dans .header-tools (Phase 2 mini-CRM)
   ======================================================================== */
.leads-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,140,66,.12);
  border: 1px solid rgba(255,140,66,.32);
  color: var(--feu);
  border-radius: 16px;
  padding: 5px 11px 5px 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  margin-right: 6px;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
  animation: leads-pulse 2.6s ease-in-out infinite;
  white-space: nowrap;
}
.leads-badge:hover {
  background: rgba(255,140,66,.22);
  border-color: rgba(255,140,66,.55);
  transform: translateY(-1px);
}
.leads-badge .ti {
  font-size: 14px;
  line-height: 1;
}
.leads-badge span {
  line-height: 1;
}
body.light .leads-badge {
  background: rgba(255,140,66,.08);
  border-color: rgba(255,140,66,.35);
}
@keyframes leads-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,140,66,.45); }
  50%      { box-shadow: 0 0 0 5px rgba(255,140,66,0);   }
}
@media (max-width: 700px) {
  .leads-badge {
    padding: 4px 9px 4px 7px;
    font-size: 10px;
  }
  .leads-badge .ti { font-size: 12px; }
}

/* ============================================
   NAV_DROPDOWNS_V1 — Dropdowns du nav header
   ============================================ */
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-caret {
  font-size: 9px;
  opacity: 0.6;
  margin-left: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret {
  transform: rotate(180deg);
  opacity: 1;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--card, #13131a);
  border: 1px solid var(--border, rgba(255,255,255,.08));
  border-radius: 12px;
  padding: 6px;
  min-width: 220px;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.18s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--texte2, rgba(255,255,255,0.72));
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.nav-dropdown-link i {
  font-size: 16px;
  color: var(--texte3, rgba(255,255,255,0.45));
  width: 18px;
  text-align: center;
}
.nav-dropdown-link:hover {
  background: rgba(255,140,66,0.08);
  color: var(--texte, #fafaf7);
}
.nav-dropdown-link:hover i {
  color: var(--feu, #ff8c42);
}
.nav-dropdown-link.active {
  background: rgba(255,140,66,0.13);
  color: var(--feu, #ff8c42);
}
.nav-dropdown-link.active i {
  color: var(--feu, #ff8c42);
}

/* Sur mobile/petit écran : nav compacte */
@media (max-width: 900px) {
  .nav-menu {
    flex-wrap: wrap;
    gap: 4px;
  }
  .nav-dropdown-toggle {
    padding: 6px 10px;
    font-size: 13px;
  }
  .nav-dropdown-menu {
    min-width: 200px;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    transform: translateX(-50%) translateY(0);
  }
}

/* ════════════════════════════════════════════════════════════════
   ADMIN_PASTILLE_V1 — Pastille admin compacte (header)
   Visible uniquement pour role=admin
   ════════════════════════════════════════════════════════════════ */
.admin-pastille {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  margin-right: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 140, 66, 0.12), rgba(255, 140, 66, 0.04));
  border: 1px solid rgba(255, 140, 66, 0.35);
  color: #ff8c42;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: all 180ms cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.admin-pastille svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.admin-pastille:hover {
  background: linear-gradient(135deg, rgba(255, 140, 66, 0.25), rgba(255, 140, 66, 0.10));
  border-color: rgba(255, 140, 66, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 140, 66, 0.18);
}
.admin-pastille:hover svg {
  transform: rotate(90deg);
}
.admin-pastille.active {
  background: linear-gradient(135deg, rgba(255, 140, 66, 0.30), rgba(255, 140, 66, 0.15));
  border-color: #ff8c42;
  color: #ffb380;
}
.admin-pastille.active svg {
  transform: rotate(180deg);
}
@media (max-width: 700px) {
  .admin-pastille span { display: none; }
  .admin-pastille { padding: 6px 9px; }
}
/* Fin ADMIN_PASTILLE_V1 */

/* ════════════════════════════════════════════════════════════════
   THREE_FIXES_V1_CSS — Styles pour : badge Nouveau, dropdown Aa
   ════════════════════════════════════════════════════════════════ */

/* ── Fix 1 : badge "Nouveau" propre à côté du label ── */
.shortcut .badge-new {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ff8c42;
  background: rgba(255, 140, 66, 0.12);
  border: 1px solid rgba(255, 140, 66, 0.35);
  border-radius: 999px;
  vertical-align: middle;
  line-height: 1.4;
}

/* ── Fix 2 : dropdown "Aa" — trigger + panel ── */
.a11y-wrap {
  position: relative;
  display: inline-flex;
}
.a11y-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #d4d4d4;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 180ms cubic-bezier(0.4, 0, 0.2, 1);
}
.a11y-trigger-label {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 15px;
  letter-spacing: -0.5px;
  line-height: 1;
}
.a11y-caret {
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.7;
}
.a11y-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  transform: translateY(-1px);
}
.a11y-trigger.open {
  background: rgba(94, 234, 212, 0.10);
  border-color: rgba(94, 234, 212, 0.40);
  color: #5eead4;
}
.a11y-trigger.open .a11y-caret {
  transform: rotate(180deg);
}

.a11y-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  padding: 16px;
  background: #0e0e12;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(94, 234, 212, 0.08);
  z-index: 10000;
  animation: a11yPanelIn 220ms cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes a11yPanelIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.a11y-panel-section { margin-bottom: 14px; }
.a11y-panel-section:last-child { margin-bottom: 0; }
.a11y-panel-label {
  margin: 0 0 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888;
}
.a11y-panel-row {
  display: flex;
  gap: 6px;
}
.a11y-panel-row .a11y-btn {
  flex: 1;
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  color: #d4d4d4;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
}
.a11y-panel-row .a11y-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.a11y-panel-row .a11y-btn.active,
.a11y-panel .a11y-btn.active {
  background: rgba(255, 140, 66, 0.18);
  border-color: #ff8c42;
  color: #ff8c42;
}
.confort-btn-wide {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(94, 234, 212, 0.06);
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 10px;
  color: #5eead4;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
}
.confort-btn-wide:hover {
  background: rgba(94, 234, 212, 0.14);
  border-color: rgba(94, 234, 212, 0.45);
}
.confort-btn-wide.active {
  background: rgba(94, 234, 212, 0.22);
  border-color: #5eead4;
}
.confort-btn-wide .dot { font-size: 14px; }

/* ── Mobile : trigger plus compact ── */
@media (max-width: 700px) {
  .a11y-panel { right: 0; min-width: 220px; }
  .a11y-trigger { padding: 6px 8px 6px 10px; }
}
/* Fin THREE_FIXES_V1_CSS */

/* ════════════════════════════════════════════════════════════════
   CONFORT_INVERSION_V1 — Inversion des couleurs du bouton confort
   - Repos = orange feu doux (CTA "à activer")
   - Activé = vert mint (succès, confort en cours)
   - Surcharge la règle .a11y-panel .a11y-btn.active du THREE_FIXES_V1
   ════════════════════════════════════════════════════════════════ */

.a11y-panel .confort-btn-wide {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
  /* Repos = orange */
  background: rgba(255, 140, 66, 0.06) !important;
  border: 1px solid rgba(255, 140, 66, 0.28) !important;
  color: #ff8c42 !important;
}
.a11y-panel .confort-btn-wide:hover {
  background: rgba(255, 140, 66, 0.14) !important;
  border-color: rgba(255, 140, 66, 0.50) !important;
}
.a11y-panel .confort-btn-wide.active {
  /* Activé = vert mint (succès) */
  background: rgba(94, 234, 212, 0.14) !important;
  border-color: #5eead4 !important;
  color: #5eead4 !important;
}
.a11y-panel .confort-btn-wide.active:hover {
  background: rgba(94, 234, 212, 0.22) !important;
}

/* Le point devient un check discret quand actif */
.confort-btn-wide .dot {
  font-size: 14px;
  transition: transform 220ms ease;
}
.confort-btn-wide.active .dot {
  transform: scale(1.15);
}

/* Affichage conditionnel des labels selon l'état */
.confort-btn-wide .confort-label-on { display: none; }
.confort-btn-wide.active .confort-label-on { display: inline; }
.confort-btn-wide.active .confort-label-off { display: none; }
/* Fin CONFORT_INVERSION_V1 */
