@charset "UTF-8";
/* ============================================================
   CanadaPlus — Feuille de style globale (TOUTES les pages)
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap");
/* ── Variables ─────────────────────────────────────────── */
:root {
  --red: #C0392B;
  --red-dark: #96261F;
  --red-light: #FDECEA;
  --gold: #F5C518;
  --gold-light: #FFF0A0;
  --gold-dark: #C9960C;
  --green: #1a5c2a;
  --green-light: #EAF3DE;
  --amber: #854F0B;
  --amber-light: #FFF3CD;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #ADB5BD;
  --gray-600: #6C757D;
  --gray-700: #495057;
  --gray-800: #343A40;
  --gray-900: #212529;
  --white: #ffffff;
  --bg: #F0F4F8;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 12px rgba(0, 0, 0, .08);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, .12);
  --transition: all .18s ease;
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  /* surface colors used by cards/inputs */
  --surface: #ffffff;
  --surface-alt: #F8F9FA;
  --border: #E9ECEF;
  --text: #212529;
  --text-muted: #6C757D;
  --header-bg-from: #96261F;
  --header-bg-to: #e84635;
}

/* ══════════════════════════════════════════════════════════
   MODE SOMBRE — Refonte complète (palette Midnight Slate)
   ══════════════════════════════════════════════════════════ */
[data-theme=dark] {
  /* Arrière-plans */
  --bg: #0d1117; /* fond global — noir bleu profond */
  --surface: #161b22; /* cartes, modales */
  --surface-alt: #1c2128; /* en-têtes de cartes, sections */
  /* Bordures */
  --border: #30363d; /* séparations subtiles */
  /* Textes */
  --text: #e6edf3; /* texte principal — blanc doux */
  --text-muted: #8b949e; /* texte secondaire */
  /* Surcharges des grises */
  --white: #161b22;
  --gray-50: #1c2128;
  --gray-100: #21262d;
  --gray-200: #30363d;
  --gray-300: #3d444d;
  --gray-400: #545d68;
  --gray-600: #848d97;
  --gray-700: #adbac7;
  --gray-800: #cdd9e5;
  --gray-900: #e6edf3;
  /* Ombres portées — plus prononcées en sombre */
  --shadow: 0 2px 16px rgba(0, 0, 0, .6);
  --shadow-md: 0 6px 32px rgba(0, 0, 0, .7);
  /* Couleurs d'état — adaptées sombre */
  --red: #e05252; /* rouge légèrement éclairci pour lisibilité */
  --red-dark: #f07070;
  --red-light: rgba(224, 82, 82, .15);
  --green: #3fb950; /* vert GitHub dark */
  --green-light: rgba(63, 185, 80, .12);
  --amber: #e3b341; /* or GitHub dark */
  --amber-light: rgba(227, 179, 65, .12);
  /* Header */
  --header-bg-from: #1a0a09;
  --header-bg-to: #6b1a12;
}

/* ── Reset ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  font-size: 1rem;
  transition: background 0.25s, color 0.25s;
  overflow-x: hidden;
}

/* ══════════════════════════════════════════════════════════
   HEADER — Redesign moderne
   ══════════════════════════════════════════════════════════ */
.site-header {
  background: linear-gradient(135deg, #1a0a09 0%, #7b1c14 45%, #c0392b 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.06);
  /* Liseré doré fin en bas du header */
}
.site-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 197, 24, 0.6) 30%, rgba(245, 197, 24, 0.9) 50%, rgba(245, 197, 24, 0.6) 70%, transparent 100%);
}

[data-theme=dark] .site-header {
  background: linear-gradient(135deg, #0d0608 0%, #3d0e0a 45%, #6b1a12 100%);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.04);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}
.header-logo:hover {
  opacity: 0.85;
}

.header-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  border: none;
  outline: none;
  box-shadow: none;
}

.site-nav {
  flex: 1;
  display: flex;
  gap: 0.15rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.775rem;
  font-weight: 500;
  font-family: var(--font-head);
  padding: 0.38rem 0.65rem;
  border-radius: 6px;
  transition: background 0.16s, color 0.16s;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  letter-spacing: 0.01em;
  /* indicateur actif en bas */
}
.site-nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: #f5c518;
  border-radius: 2px;
  transition: left 0.2s ease, right 0.2s ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.site-nav a.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 600;
}
.site-nav a.active::after {
  left: 20%;
  right: 20%;
}

/* Lien NCLC — masqué sur desktop */
.nav-nclc-mobile {
  display: none !important;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  margin-left: auto;
}

.btn-theme {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-theme:hover {
  background: rgba(255, 255, 255, 0.28);
}

.btn-theme svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-theme-label {
  white-space: nowrap;
}

.lang-select {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: var(--font-body);
}

.lang-select option {
  color: #212529;
  background: #fff;
}

.header-stripe {
  height: 4px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0, rgba(255, 255, 255, 0.3) 30%, transparent 30%, transparent 60%, rgba(255, 255, 255, 0.15) 60%);
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.page-title {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.card-header {
  padding: 0.8rem 1.1rem;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gray-800);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ── Section labels ─────────────────────────────────────── */
.section-label {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-dark);
  margin: 2.2rem 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--red-light), transparent);
  border-radius: 2px;
}

/* ── Step badge ─────────────────────────────────────────── */
.step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-head);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(192, 57, 43, 0.3);
}

/* ── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 0.63rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
  margin-left: 5px;
  vertical-align: middle;
  font-family: var(--font-head);
  letter-spacing: 0.03em;
}

.badge-req {
  background: var(--red-light);
  color: var(--red-dark);
}

.badge-opt {
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.badge-ok {
  background: var(--green-light);
  color: var(--green);
}

.badge-warn {
  background: var(--amber-light);
  color: var(--amber);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 3px 10px rgba(192, 57, 43, 0.3);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface);
}

/* ── Form elements ─────────────────────────────────────── */
select,
input[type=number],
input[type=text],
input[type=date],
input[type=email],
input[type=tel],
textarea {
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-400);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
  /* Empêche le débordement sur tous les écrans */
  box-sizing: border-box;
  max-width: 100%;
}

select:hover,
input[type=number]:hover,
input[type=text]:hover,
input[type=date]:hover {
  border-color: var(--gray-600);
}

select:focus,
input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.13);
}

/* Mode sombre : bordure moins agressive */
[data-theme=dark] select,
[data-theme=dark] input[type=number],
[data-theme=dark] input[type=text],
[data-theme=dark] input[type=date] {
  border-color: var(--border);
  background: var(--surface-alt);
  box-shadow: none;
}

[data-theme=dark] select:hover,
[data-theme=dark] input[type=number]:hover,
[data-theme=dark] input[type=text]:hover,
[data-theme=dark] input[type=date]:hover {
  border-color: var(--gray-400);
}

input[type=checkbox] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--red);
}

/* ── Info boxes ─────────────────────────────────────────── */
.info-box {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.83rem;
  line-height: 1.55;
  margin: 0.75rem 0;
}

.info-box.green {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  color: var(--green);
}

.info-box.red {
  background: var(--red-light);
  border-left: 4px solid var(--red);
  color: var(--red-dark);
}

.info-box.amber {
  background: var(--amber-light);
  border-left: 4px solid var(--amber);
  color: var(--amber);
}

.info-box.blue {
  background: var(--surface-alt);
  border-left: 4px solid #185FA5;
  color: var(--text);
}

/* ── Action row ─────────────────────────────────────────── */
.action-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════
   FOOTER — Redesign riche
   ══════════════════════════════════════════════════════════ */
.site-footer {
  background: linear-gradient(160deg, #0d1117 0%, #161b22 60%, #1c1218 100%);
  color: rgba(255, 255, 255, 0.65);
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
  /* Grille décorative subtile */
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* Vague de transition */
.footer-wave {
  line-height: 0;
  color: var(--bg);
  position: relative;
  z-index: 1;
}
.footer-wave svg {
  display: block;
  width: 100%;
  height: 50px;
}

/* Grille 4 colonnes */
.footer-main {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem 2rem;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem 3rem;
  align-items: start;
}

/* Colonne marque */
.footer-logo {
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.92;
  border-radius: 8px;
}

.footer-tagline {
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
  max-width: 300px;
  margin-bottom: 1.2rem;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-head);
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  padding: 0.25rem 0.65rem;
}
.footer-badge svg {
  opacity: 0.7;
  flex-shrink: 0;
}

/* Colonnes liens */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.footer-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.65rem;
  font-family: var(--font-head);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  padding: 0.28rem 0;
  transition: color 0.18s ease, gap 0.18s ease;
}
.footer-link svg {
  opacity: 0.5;
  flex-shrink: 0;
  transition: opacity 0.18s ease;
}
.footer-link:hover {
  color: #f5c518;
  gap: 0.6rem;
}
.footer-link:hover svg {
  opacity: 0.9;
}

.footer-link--ext {
  color: rgba(255, 255, 255, 0.45);
}
.footer-link--ext:hover {
  color: var(--red);
}

/* Barre du bas */
.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.1rem 2rem;
}

.footer-bottom-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer-legal {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
}
.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.18s;
}
.footer-bottom-links a:hover {
  color: #f5c518;
}

.footer-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-tagline {
    max-width: 100%;
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .footer-wave svg {
    height: 30px;
  }
}
/* ══════════════════════════════════════════════════════════
   BOUTON FLOTTANT — Contact (orbe pilule)
   ══════════════════════════════════════════════════════════ */
@keyframes fab-pop-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* Conteneur fixe */
.fab-contact {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  z-index: 9999;
}

/* ── Bouton principal — pilule flottante ─────────────── */
.fab-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  background: linear-gradient(135deg, #1a1a2e 0%, var(--red) 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(192, 57, 43, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.fab-trigger svg {
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.fab-trigger .fab-contact-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.fab-trigger:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(192, 57, 43, 0.45);
  background: linear-gradient(135deg, #16213e 0%, #a93226 100%);
}
.fab-trigger:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(192, 57, 43, 0.3);
}

.fab-trigger-label {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}

/* Icônes alternance open/close */
.fab-icon-contact {
  opacity: 1;
}

.fab-icon-close {
  opacity: 0;
  position: absolute;
}

.fab-open .fab-icon-contact {
  opacity: 0;
}

.fab-open .fab-icon-close {
  opacity: 1;
  position: static;
}

/* ── Options — pilules secondaires ──────────────────── */
.fab-options {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fab-options[aria-hidden=false] {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.fab-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fab-pop-in 0.25s ease both;
}
.fab-pill:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  color: #fff;
  text-decoration: none;
}
.fab-pill:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fab-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  flex-shrink: 0;
}

.fab-pill--wa {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  animation-delay: 0.06s;
}

.fab-pill--mail {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  animation-delay: 0s;
}

/* ── Overflow global — inputs/selects sur mobile ───────── */
@media (max-width: 768px) {
  /* Empêche TOUT débordement horizontal sur la page.
     overflow-x: clip (et non hidden) — évite de créer un contexte de scroll
     sur body, ce qui casserait position:fixed sur iOS/Android. */
  html, body {
    overflow-x: clip;
  }
  /* Tous les champs de formulaire restent dans leur conteneur */
  select,
  input[type=text],
  input[type=number],
  input[type=date],
  input[type=email],
  input[type=tel],
  textarea {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 0.85rem !important;
  }
  /* Les lignes de formulaire (label + input) passent en colonne */
  .budget-row,
  .form-row,
  .input-row,
  .field-row,
  .nclc-test-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.4rem !important;
  }
  /* Les conteneurs flex/grid de formulaires s'adaptent */
  .budget-section,
  .budget-group,
  .checklist-form,
  .form-group {
    overflow-x: hidden;
  }
}
@media (max-width: 768px) {
  .fab-contact {
    bottom: 1.2rem;
    right: 1rem;
  }
  .fab-pill {
    padding: 0.6rem 1.1rem;
    font-size: 0.82rem;
  }
  /* Bouton principal → cercle icône seule */
  .fab-trigger {
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
  .fab-trigger-label {
    display: none;
  }
}
/* ═══════════════════════════════════════════════════════
   INDEX — Hero, Countdown, Nav cards
   ═══════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════
   HERO — Redesign moderne
   ══════════════════════════════════════════════════════ */
@keyframes orb-float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-18px) scale(1.05);
  }
}
@keyframes leaf-drift {
  0% {
    transform: translateY(0) rotate(-12deg) scale(1);
    opacity: 0.18;
  }
  50% {
    transform: translateY(-22px) rotate(6deg) scale(1.08);
    opacity: 0.28;
  }
  100% {
    transform: translateY(0) rotate(-12deg) scale(1);
    opacity: 0.18;
  }
}
@keyframes hero-fadein {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes cd-pulse {
  0% {
    opacity: 1;
    text-shadow: 0 0 18px rgba(245, 197, 24, 0.55), 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  45% {
    opacity: 0.25;
    text-shadow: 0 0 30px rgba(245, 197, 24, 0.9), 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  100% {
    opacity: 1;
    text-shadow: 0 0 18px rgba(245, 197, 24, 0.55), 0 2px 8px rgba(0, 0, 0, 0.3);
  }
}
/* ══════════════════════════════════════════════════════
   HERO — Layout 2 colonnes redesigné
   ══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b0e1a 0%, #13050a 55%, #7b1c14 100%);
  color: #fff;
  padding: 0;
}

/* Grille décorative en pointillés */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* Halos de lumière subtils */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-glow--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(192, 57, 43, 0.4) 0%, transparent 70%);
  top: -150px;
  right: -100px;
}

.hero-glow--2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.2) 0%, transparent 70%);
  bottom: -100px;
  left: -50px;
}

/* Motifs décoratifs avions / boussole */
.hero-motif {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
}

.hero-motif--plane1 {
  width: 220px;
  height: 220px;
  top: 12%;
  left: 3%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 60 L55 20 L90 38 L55 45 Z'/%3E%3Cpath d='M35 50 L30 75 L50 65'/%3E%3Cpath d='M65 30 L80 18 L85 28'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transform: rotate(-15deg);
  animation: motif-drift 18s ease-in-out infinite;
}

.hero-motif--plane2 {
  width: 140px;
  height: 140px;
  bottom: 15%;
  right: 5%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 60 L55 20 L90 38 L55 45 Z'/%3E%3Cpath d='M35 50 L30 75 L50 65'/%3E%3Cpath d='M65 30 L80 18 L85 28'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transform: rotate(20deg);
  opacity: 0.05;
  animation: motif-drift 22s ease-in-out infinite reverse;
}

/* SVG boussole partagé — défini une fois */
.hero-motif--compass {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 46%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='white' stroke-width='1.5'%3E%3Ccircle cx='50' cy='50' r='45'/%3E%3Ccircle cx='50' cy='50' r='36'/%3E%3Cline x1='50' y1='5' x2='50' y2='16'/%3E%3Cline x1='50' y1='84' x2='50' y2='95'/%3E%3Cline x1='5' y1='50' x2='16' y2='50'/%3E%3Cline x1='84' y1='50' x2='95' y2='50'/%3E%3Cline x1='18' y1='18' x2='25' y2='25'/%3E%3Cline x1='75' y1='75' x2='82' y2='82'/%3E%3Cline x1='82' y1='18' x2='75' y2='25'/%3E%3Cline x1='18' y1='82' x2='25' y2='75'/%3E%3Cpolygon points='50,16 54,44 50,50 46,44' fill='rgba(245,197,24,.7)' stroke='none'/%3E%3Cpolygon points='50,84 54,56 50,50 46,56' fill='rgba(255,255,255,.25)' stroke='none'/%3E%3Ccircle cx='50' cy='50' r='4' fill='rgba(245,197,24,.5)' stroke='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  animation: motif-spin 50s linear infinite;
  opacity: 0.08;
}

.hero-motif--compass2 {
  width: 120px;
  height: 120px;
  top: 8%;
  right: 2%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='white' stroke-width='1.5'%3E%3Ccircle cx='50' cy='50' r='45'/%3E%3Ccircle cx='50' cy='50' r='36'/%3E%3Cline x1='50' y1='5' x2='50' y2='16'/%3E%3Cline x1='50' y1='84' x2='50' y2='95'/%3E%3Cline x1='5' y1='50' x2='16' y2='50'/%3E%3Cline x1='84' y1='50' x2='95' y2='50'/%3E%3Cline x1='18' y1='18' x2='25' y2='25'/%3E%3Cline x1='75' y1='75' x2='82' y2='82'/%3E%3Cline x1='82' y1='18' x2='75' y2='25'/%3E%3Cline x1='18' y1='82' x2='25' y2='75'/%3E%3Cpolygon points='50,16 54,44 50,50 46,44' fill='rgba(245,197,24,.7)' stroke='none'/%3E%3Cpolygon points='50,84 54,56 50,50 46,56' fill='rgba(255,255,255,.25)' stroke='none'/%3E%3Ccircle cx='50' cy='50' r='4' fill='rgba(245,197,24,.5)' stroke='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  animation: motif-spin 35s linear infinite reverse;
  opacity: 0.07;
}

.hero-motif--compass3 {
  width: 90px;
  height: 90px;
  bottom: 10%;
  left: 20%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='white' stroke-width='1.5'%3E%3Ccircle cx='50' cy='50' r='45'/%3E%3Ccircle cx='50' cy='50' r='36'/%3E%3Cline x1='50' y1='5' x2='50' y2='16'/%3E%3Cline x1='50' y1='84' x2='50' y2='95'/%3E%3Cline x1='5' y1='50' x2='16' y2='50'/%3E%3Cline x1='84' y1='50' x2='95' y2='50'/%3E%3Cline x1='18' y1='18' x2='25' y2='25'/%3E%3Cline x1='75' y1='75' x2='82' y2='82'/%3E%3Cline x1='82' y1='18' x2='75' y2='25'/%3E%3Cline x1='18' y1='82' x2='25' y2='75'/%3E%3Cpolygon points='50,16 54,44 50,50 46,44' fill='rgba(245,197,24,.7)' stroke='none'/%3E%3Cpolygon points='50,84 54,56 50,50 46,56' fill='rgba(255,255,255,.25)' stroke='none'/%3E%3Ccircle cx='50' cy='50' r='4' fill='rgba(245,197,24,.5)' stroke='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  animation: motif-spin 28s linear infinite;
  opacity: 0.05;
}

/* Route de vol pointillée en arc */
.hero-motif--route {
  width: 340px;
  height: 180px;
  bottom: 5%;
  left: 5%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 180' fill='none'%3E%3Cpath d='M10 160 Q80 20 200 60 Q270 90 330 30' stroke='white' stroke-width='1.5' stroke-dasharray='8 6' opacity='.35'/%3E%3Ccircle cx='10' cy='160' r='4' fill='rgba(245,197,24,.7)'/%3E%3Ccircle cx='330' cy='30' r='4' fill='rgba(245,197,24,.7)'/%3E%3Cpolygon points='326,26 334,30 326,34' fill='white' opacity='.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.18;
  animation: motif-drift 12s ease-in-out infinite;
}

/* Constellation — étoiles scintillantes */
.hero-motif--stars {
  width: 260px;
  height: 200px;
  top: 15%;
  right: 8%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 200' fill='white'%3E%3Ccircle cx='30'  cy='40'  r='2.2' opacity='.6'/%3E%3Ccircle cx='80'  cy='15'  r='1.5' opacity='.4'/%3E%3Ccircle cx='140' cy='55'  r='2.8' opacity='.7'/%3E%3Ccircle cx='200' cy='20'  r='1.8' opacity='.45'/%3E%3Ccircle cx='240' cy='80'  r='2'   opacity='.55'/%3E%3Ccircle cx='110' cy='120' r='1.6' opacity='.4'/%3E%3Ccircle cx='60'  cy='160' r='2.4' opacity='.6'/%3E%3Ccircle cx='190' cy='150' r='1.9' opacity='.5'/%3E%3Ccircle cx='230' cy='175' r='1.4' opacity='.35'/%3E%3Cline x1='30' y1='40' x2='80' y2='15'   stroke='white' stroke-width='.6' opacity='.15'/%3E%3Cline x1='80' y1='15' x2='140' y2='55'  stroke='white' stroke-width='.6' opacity='.15'/%3E%3Cline x1='140' y1='55' x2='200' y2='20' stroke='white' stroke-width='.6' opacity='.15'/%3E%3Cline x1='200' y1='20' x2='240' y2='80' stroke='white' stroke-width='.6' opacity='.15'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.6;
  animation: stars-twinkle 6s ease-in-out infinite;
}

@keyframes stars-twinkle {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.04);
  }
}
@keyframes motif-drift {
  0%, 100% {
    transform: translateY(0) rotate(-15deg);
  }
  50% {
    transform: translateY(-14px) rotate(-12deg);
  }
}
@keyframes motif-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/* Disposition 2 colonnes */
.hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2.5rem 4rem;
}

/* Colonne gauche */
.hero-left {
  animation: hero-fadein 0.7s ease both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f5c518;
  background: rgba(245, 197, 24, 0.1);
  border: 1px solid rgba(245, 197, 24, 0.35);
  border-radius: 50px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.4rem;
  font-family: var(--font-head);
}

.hero-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f5c518;
  box-shadow: 0 0 8px rgba(245, 197, 24, 0.7);
  box-shadow: 0 0 8px rgba(245, 197, 24, 0.8);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.2rem;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.hero-title-accent {
  background: linear-gradient(90deg, #f5c518 0%, #ff6b35 60%, #e74c3c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 400px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.hero-cta--primary {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: #fff;
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.45);
}
.hero-cta--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(192, 57, 43, 0.55);
}

.hero-cta--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-cta--secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Colonne droite — countdown */
.hero-right {
  animation: hero-fadein 0.7s ease 0.15s both;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

/* Responsive hero */
@media (max-width: 860px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3.5rem 1rem 3rem;
    text-align: center;
  }
  .hero-right {
    width: 100%;
  }
  .hero-ctas {
    justify-content: center;
    display: none;
  }
  .hero-glow--1 {
    width: 300px;
    height: 300px;
  }
  .hero-motif--plane1,
  .hero-motif--plane2 {
    display: none;
  }
  .hero-motif--compass {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 55%;
    opacity: 0.07;
  }
  .hero-motif--compass2 {
    width: 80px;
    height: 80px;
    top: 5%;
    right: 2%;
  }
  .hero-motif--compass3 {
    width: 60px;
    height: 60px;
    bottom: 8%;
    left: 5%;
  }
  .hero-motif--route {
    display: none;
  }
  .hero-motif--stars {
    display: none;
  }
}
@media (max-width: 480px) {
  .hero-split {
    padding: 2.5rem 1rem 2rem;
  }
  .hero-cta {
    padding: 0.7rem 1.2rem;
    font-size: 0.82rem;
  }
}
/* Compte à rebours */
.countdown-wrapper {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 1.6rem 2rem 1.4rem;
  max-width: 420px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  backdrop-filter: blur(12px);
  animation: hero-fadein 0.8s ease 0.2s both;
}

.countdown-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
  color: rgba(255, 255, 255, 0.55);
}

.countdown-title {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.countdown-date-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}

.countdown-date-row label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-head);
}

.countdown-date-row input[type=date] {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  color: #fff;
  padding: 0.45rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.countdown-date-row input[type=date]:hover, .countdown-date-row input[type=date]:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  outline: none;
}

.countdown-date-row input[type=date]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.7rem 0.9rem 0.5rem;
  min-width: 72px;
}

.cd-sep {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1;
  margin-bottom: 1.2rem;
  user-select: none;
}

.cd-num {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  display: block;
  color: #f5c518;
  text-shadow: 0 0 18px rgba(245, 197, 24, 0.55), 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.cd-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.4rem;
  display: block;
}

.countdown-grid.cd-urgent .cd-num {
  color: #ff6b6b;
  animation: cd-pulse 1.2s ease-in-out infinite;
}

.countdown-grid.cd-urgent .cd-unit {
  border-color: rgba(255, 107, 107, 0.3);
  background: rgba(255, 107, 107, 0.08);
}

.countdown-message {
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-head);
  color: #f5c518;
  text-align: center;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-shadow: 0 0 12px rgba(245, 197, 24, 0.35);
}

@media (max-width: 480px) {
  .hero {
    padding: 3.5rem 1rem 2.5rem;
  }
  .hero-leaf {
    display: none;
  }
  .cd-unit {
    min-width: 58px;
    padding: 0.55rem 0.6rem 0.4rem;
  }
  .cd-num {
    font-size: 2rem;
  }
  .cd-sep {
    font-size: 1.5rem;
    margin-bottom: 0.9rem;
  }
  .countdown-wrapper {
    padding: 1.2rem 1rem 1rem;
    border-radius: 16px;
  }
  .countdown-grid {
    justify-content: center;
    width: 100%;
  }
}
/* ── Barre de statistiques ─────────────────────────────── */
.stats-bar {
  background: linear-gradient(135deg, #0f1923 0%, #1a2535 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.9rem 1.5rem;
}

.stats-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-head);
  font-weight: 500;
}
.stat-item strong {
  color: #f5c518;
  font-weight: 800;
}
.stat-item svg {
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.stat-sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .stats-bar-inner {
    gap: 0.5rem 1rem;
  }
  .stat-sep {
    display: none;
  }
  .stat-item {
    font-size: 0.75rem;
  }
}
/* ── Grille navigation ─────────────────────────────────── */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.nav-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.4rem 1.3rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
  position: relative;
  overflow: hidden;
}

.nav-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-color, var(--red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: transparent;
}

.nav-card:hover::after {
  transform: scaleX(1);
}

/* En-tête : icône + titre sur même ligne, centré */
.nav-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
}

/* Image de la carte de navigation */
.nav-card-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
  padding: 0.3rem 0.4rem;
  flex-shrink: 0;
  width: 48px;
  height: 40px;
}

.nav-card-img {
  max-width: 40px;
  max-height: 32px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.nav-card-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.nav-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted, #6c757d);
  line-height: 1.5;
  flex: 1;
}

.nav-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--card-color, var(--red));
  padding: 0.42rem 0.9rem;
  border: 1.5px solid var(--card-color, var(--red));
  border-radius: 8px;
  transition: all 0.22s ease;
  white-space: nowrap;
  margin-top: auto;
}

.nav-card:hover .nav-card-cta {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ── Section À propos ──────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.about-item {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.3rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Icône + titre sur la même ligne */
.about-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.about-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--about-bg, #FDECEA);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-icon svg {
  width: 18px;
  height: 18px;
  color: var(--about-color, var(--red));
  stroke-width: 2;
}

.about-item h3 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.about-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════
   CALCULATEUR 67 POINTS
   ═══════════════════════════════════════════════════════ */
.gauge-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem 1.2rem;
  background: linear-gradient(135deg, var(--header-bg-from) 0%, var(--red) 60%, var(--header-bg-to) 100%);
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow-md);
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
  position: sticky;
  top: 78px;
  z-index: 89;
}

.gauge-svg {
  width: 160px;
  height: 160px;
}

.gauge-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 14;
}

.gauge-fill {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.4s ease, stroke 0.4s ease;
}

.gauge-text-score {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  fill: #ffffff;
}

.gauge-text-max {
  font-size: 0.8rem;
  fill: rgba(255, 255, 255, 0.75);
  font-family: var(--font-body);
}

.progress-bar-wrap {
  width: 100%;
  max-width: 340px;
  margin: 0.6rem auto 0;
}

.progress-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease, background 0.4s;
}

.progress-bar-marker {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 14px;
  background: rgba(255, 255, 255, 0.7);
  left: 67%;
}

.progress-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 3px;
}

.admit-badge {
  display: inline-block;
  padding: 0.45rem 1.2rem;
  border-radius: 99px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 0.8rem;
  transition: var(--transition);
}

.admit-badge.non {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.admit-badge.oui {
  background: #FFD700;
  color: #1a3a0a;
  border: none;
}

.factor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.factor-header {
  padding: 0.75rem 1.1rem;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.factor-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.factor-score {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
}

.factor-body {
  padding: 0.9rem 1.1rem;
  /* évite le débordement horizontal des enfants */
  min-width: 0;
  overflow: hidden;
}

.factor-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
  min-width: 0;
}

.factor-row:last-child {
  margin-bottom: 0;
}

.factor-row label {
  flex: 1 1 160px;
  min-width: 0;
  font-size: 0.85rem;
  color: var(--text);
}

.factor-row select {
  flex: 1 1 220px; /* grandit et rétrécit librement */
  min-width: 0; /* permet la réduction en dessous de 220 px */
  max-width: 100%;
  box-sizing: border-box;
}

.adapt-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.75rem;
  margin-top: 0.5rem;
}

.adapt-check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.83rem;
  color: var(--text);
}

.recap-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.recap-table th,
.recap-table td {
  padding: 0.55rem 0.8rem;
  text-align: left;
  font-size: 0.83rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.recap-table th {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--surface-alt);
}

.recap-table tr:last-child td {
  border-bottom: none;
}

.score-cell {
  font-weight: 700;
  color: var(--red);
}

/* ═══════════════════════════════════════════════════════
   CALCULATEUR CRS
   ═══════════════════════════════════════════════════════ */
.crs-score-hero {
  background: linear-gradient(135deg, var(--header-bg-from), var(--red));
  color: #fff;
  border-radius: var(--radius);
  padding: 1.4rem 1.8rem;
  text-align: center;
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 78px;
  z-index: 89;
  transition: background 0.4s ease;
}

.crs-score-hero.score-green {
  background: linear-gradient(135deg, #145226, #1a7a38);
}

.crs-score-hero.score-gold {
  background: linear-gradient(135deg, #8a6800, #f5c518 50%, #e6a800);
  box-shadow: 0 4px 24px rgba(245, 197, 24, 0.45), 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: gold-shine 2.8s ease-in-out infinite;
}

@keyframes gold-shine {
  0% {
    box-shadow: 0 4px 24px rgba(245, 197, 24, 0.45), 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 4px 40px rgba(245, 197, 24, 0.8), 0 0 60px rgba(245, 197, 24, 0.3);
  }
  100% {
    box-shadow: 0 4px 24px rgba(245, 197, 24, 0.45), 0 2px 8px rgba(0, 0, 0, 0.2);
  }
}
.crs-main-score {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.crs-main-label {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 0.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-head);
}

.crs-sub-scores {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.crs-sub {
  text-align: center;
}

.crs-sub-num {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
}

.crs-sub-lbl {
  font-size: 0.65rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.crs-bar-wrap {
  width: 100%;
  max-width: 500px;
  margin: 0.9rem auto 0;
}

.crs-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.crs-bar-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.crs-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  opacity: 0.7;
  margin-top: 3px;
}

.recap-section-title {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0.55rem 0.8rem;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.recap-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.8rem;
  font-size: 0.83rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.recap-row:last-child {
  border-bottom: none;
}

.recap-val {
  font-weight: 700;
  color: var(--red);
  font-family: var(--font-head);
}

.recap-total-row {
  background: var(--surface-alt);
  padding: 0.7rem 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid var(--border);
}

.recap-total-lbl {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.recap-total-val {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--red);
}

.recap-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.8rem;
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-700);
  font-family: var(--font-head);
}
.recap-subtotal-row .recap-val {
  color: var(--gray-900);
  font-weight: 700;
  font-size: 0.85rem;
}

[data-theme=dark] .recap-subtotal-row {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--gray-400);
}
[data-theme=dark] .recap-subtotal-row .recap-val {
  color: var(--gray-50);
}

/* ── Maxima contextuels dans les labels de section ── */
.section-max {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-600);
  font-family: var(--font-body);
  letter-spacing: 0;
}

/* ── Badge info (bleu neutre) ── */
.badge-info {
  background: #e8f0fe;
  color: #1a56db;
  border: 1px solid #b8d0fb;
  padding: 0.15em 0.55em;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

[data-theme=dark] .badge-info {
  background: rgba(26, 86, 219, 0.18);
  color: #93b4f8;
  border-color: rgba(26, 86, 219, 0.35);
}

/* ── Lien officiel Canada.ca ──────────────────────────── */
.official-ref-block {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
}
.official-ref-block .official-ref-ico {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 0.15rem;
}
.official-ref-block .official-ref-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-600);
  margin-bottom: 0.25rem;
}
.official-ref-block .official-ref-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  transition: opacity 0.18s;
}
.official-ref-block .official-ref-link:hover {
  opacity: 0.75;
  text-decoration: underline;
}

[data-theme=dark] .official-ref-block {
  background: var(--surface);
  border-color: rgba(192, 57, 43, 0.4);
}

.official-ref-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  text-decoration: none;
}
.official-ref-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* ── Bonus français automatique (Section D, calculateur CRS) ── */
.factor-row-auto {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem;
}

.fr-auto-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  flex: 1;
}

.fr-auto-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  background: var(--green-light);
  border: 1px solid rgba(26, 92, 42, 0.25);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  width: fit-content;
}

.fr-auto-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  padding: 0.45rem 0.65rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

[data-theme=dark] .fr-auto-tag {
  color: #5cb87b;
  background: rgba(26, 92, 42, 0.3);
  border-color: rgba(92, 184, 123, 0.3);
}

[data-theme=dark] .fr-auto-val {
  background: var(--surface);
  border-color: var(--border);
  color: var(--gray-200);
}

/* ═══════════════════════════════════════════════════════
   BUDGET
   ═══════════════════════════════════════════════════════ */
.currency-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.5rem;
  border: 1px solid var(--border);
  flex-wrap: nowrap;
  overflow-x: auto;
}

.currency-bar button {
  flex: 1;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  font-family: var(--font-body);
  white-space: nowrap;
  min-width: 60px;
}

.currency-bar button.active {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 8px rgba(192, 57, 43, 0.3);
}

.currency-bar button:hover:not(.active) {
  background: var(--surface-alt);
  color: var(--text);
}

.famille-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
}

.famille-item label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.famille-item .fval {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 4px;
}

.famille-note {
  padding: 0.6rem 1rem;
  background: var(--green-light);
  font-size: 0.78rem;
  color: var(--green);
}

.age-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0.8rem 0 0;
}

.age-item label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.age-item input {
  width: 60px;
  text-align: center;
}

.sub-section {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  padding: 0.5rem 1rem;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-head);
}

.line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
}

.line:last-child {
  border-bottom: none;
}

.line-check {
  padding-top: 2px;
}

.line-check input[type=checkbox] {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: var(--red);
}

.line-info {
  flex: 1;
  min-width: 0;
}

.line-name {
  font-size: 0.9rem;
  color: var(--text);
}

.line-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.line-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  min-width: 110px;
}

.line-amount {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.line-amount.muted {
  color: var(--gray-400);
}

.line-amount--fonds {
  color: var(--red);
  font-weight: 800;
  font-size: 1.05rem;
}

.line-detail {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
  text-align: right;
}

.total-box {
  background: linear-gradient(135deg, var(--header-bg-from) 0%, var(--red) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.total-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  opacity: 0.85;
  padding: 3px 0;
}

.grand-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.grand-label {
  font-size: 1rem;
  font-weight: 600;
}

.grand-amount {
  font-size: 1.5rem;
  font-weight: 700;
}

/* ── Fiches informatives (centres médicaux, lieux d'examen) ─── */
.info-centre-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.icc-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
}

.icc-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
  padding: 0.25rem 0.3rem;
  flex-shrink: 0;
  width: 40px;
  height: 34px;
}

.icc-icon-img {
  max-width: 34px;
  max-height: 28px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.icc-icon {
  width: 22px;
  height: 22px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}

.icc-org {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.icc-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.icc-body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* Bloc générique (British Council) */
.icc-block {
  flex: 1 1 200px;
  min-width: 0;
}

.icc-block-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.35rem;
}

.icc-address {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.icc-tarif-grid {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.icc-tarif-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.icc-tarif-row strong {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.icc-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
}
.icc-link:hover {
  text-decoration: underline;
}

/* Bloc centre médical (IOM) */
.icc-centre-block {
  flex: 1 1 240px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
  padding: 0.85rem 1rem;
  background: var(--gray-50);
}

.icc-centre-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.icc-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 0.65rem;
  margin-bottom: 0.25rem;
}

.icc-hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.1rem 0;
}

.icc-contact-row {
  display: block;
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
  padding: 0.1rem 0;
  text-decoration: none;
}
.icc-contact-row.icc-mail {
  color: var(--red);
}
.icc-contact-row.icc-mail:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .icc-body {
    flex-direction: column;
    gap: 0.85rem;
  }
  .icc-tarif-row {
    flex-direction: column;
    gap: 0;
  }
  .icc-tarif-row strong {
    font-size: 0.88rem;
  }
}
/* ── Fin fiches info ──────────────────────────────────────── */
.fonds-box {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--green);
}

.fonds-box strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0.3rem;
}

.note-box {
  margin-top: 1.25rem;
  background: var(--surface-alt);
  border-radius: var(--radius);
  border-left: 4px solid var(--red);
  padding: 1rem;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.6;
}

.note-box strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--red-dark);
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════
   CHECKLIST
   ═══════════════════════════════════════════════════════ */
.progress-header {
  background: linear-gradient(135deg, var(--header-bg-from) 0%, var(--red) 60%, var(--header-bg-to) 100%);
  border: none;
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem 0.9rem;
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 78px;
  z-index: 89;
  transition: background 0.4s ease;
}

.progress-header.score-green {
  background: linear-gradient(135deg, #145226, #1a7a38);
}

.progress-header.score-gold {
  background: linear-gradient(135deg, #7a5c00, #c49a00);
}

.progress-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.progress-percent {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  transition: color 0.3s;
}

.progress-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0.3rem 0 0.8rem;
}

.prog-track {
  height: 12px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 7px;
  overflow: hidden;
}

.prog-fill {
  height: 100%;
  border-radius: 7px;
  transition: width 0.45s ease, background 0.45s;
}

.prog-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}

.prog-stat {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

.prog-stat strong {
  font-family: var(--font-head);
  color: #fff;
}

.checklist-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.checklist-group-header {
  padding: 0.7rem 1.1rem;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.checklist-group-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.checklist-group-count {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.cl-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.cl-item:last-child {
  border-bottom: none;
}

.cl-item:hover {
  background: var(--surface-alt);
}

.cl-item.done {
  background: var(--green-light);
}

.cl-item.done .cl-name {
  text-decoration: line-through;
  opacity: 0.65;
}

.cl-check {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: var(--transition);
}

.cl-item.done .cl-check {
  background: var(--green);
  border-color: var(--green);
}

.cl-check-mark {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  display: none;
}

.cl-item.done .cl-check-mark {
  display: block;
}

.cl-info {
  flex: 1;
}

.cl-name {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
}

.cl-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.45;
}

.cl-badges {
  margin-top: 4px;
}

.checklist-reset {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-body);
  transition: var(--transition);
}

.checklist-reset:hover {
  background: var(--red-light);
  border-color: var(--red);
  color: var(--red-dark);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
/* ── Hamburger button ─────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  transition: var(--transition);
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Nav overlay sombre ───────────────────────────────────── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 98;
}

.nav-overlay.open {
  display: block;
}

/* ═══════════════════════════════════════════════════════
   TIROIR DE NAVIGATION MOBILE
   ═══════════════════════════════════════════════════════ */
/* ── Overlay sombre ── */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 199;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.drawer-overlay.drawer-overlay-open {
  display: block;
  animation: drawerFadeIn 0.22s ease;
}

@keyframes drawerFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* ── Tiroir principal ── */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(88vw, 340px);
  height: 100dvh;
  height: 100vh;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  box-shadow: 6px 0 32px rgba(0, 0, 0, 0.28);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.mobile-drawer.drawer-open {
  transform: translateX(0);
}

/* ── En-tête du tiroir ── */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.85rem;
  background: linear-gradient(135deg, var(--header-bg-from) 0%, var(--red) 100%);
  flex-shrink: 0;
}

.drawer-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.drawer-logo img {
  height: 36px;
  width: 36px;
  object-fit: contain;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.drawer-logo-text {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.drawer-close {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s;
  flex-shrink: 0;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.32);
}

.drawer-close svg {
  width: 16px;
  height: 16px;
}

/* ── Corps défilant ── */
.mobile-drawer > *:not(.drawer-header):not(.drawer-footer) {
  overflow-y: auto;
}

/* scrollzone */
.drawer-body-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ── Section avec label ── */
.drawer-section {
  padding: 0.9rem 0.8rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.drawer-section:last-of-type {
  border-bottom: none;
}

.drawer-section-label {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.55rem;
  padding-left: 0.3rem;
}

/* ── Liens de navigation ── */
.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  position: relative;
}

.drawer-nav-item:hover {
  background: var(--gray-100);
  color: var(--red);
}

.drawer-nav-active {
  background: var(--red-light);
  color: var(--red);
}

.drawer-nav-active .drawer-nav-icon {
  color: var(--red);
}

/* Animations spécifiques aux icônes du tiroir */
@keyframes drawer-icon-clock {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(15deg);
  }
}
@keyframes drawer-icon-spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes drawer-icon-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.18);
  }
}
@keyframes drawer-icon-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
/* Icône ITA/horloge : trotteuse animée */
.drawer-anim-clock svg {
  animation: drawer-icon-clock 2s ease-in-out infinite;
  transform-origin: center;
}

/* Icône CRS/boussole : rotation lente */
.drawer-anim-spin svg {
  animation: drawer-icon-spin-slow 8s linear infinite;
}

/* Icône budget : battement */
.drawer-anim-pulse svg {
  animation: drawer-icon-pulse 2.2s ease-in-out infinite;
}

/* Icône dossier/checklist : rebond subtil */
.drawer-anim-bounce svg {
  animation: drawer-icon-bounce 2.5s ease-in-out infinite;
}

/* Pause des animations si préfère-les-réduites */
@media (prefers-reduced-motion: reduce) {
  .drawer-anim-clock svg,
  .drawer-anim-spin svg,
  .drawer-anim-pulse svg,
  .drawer-anim-bounce svg {
    animation: none;
  }
}
.drawer-nav-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}

.drawer-nav-active .drawer-nav-icon {
  background: rgba(192, 57, 43, 0.12);
  color: var(--red);
}

.drawer-nav-item:hover .drawer-nav-icon {
  background: rgba(192, 57, 43, 0.1);
  color: var(--red);
}

.drawer-nav-icon svg {
  width: 15px;
  height: 15px;
}

.drawer-nav-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.drawer-nav-label {
  flex: 1;
  min-width: 0;
}

.drawer-nav-arrow {
  width: 11px;
  height: 11px;
  color: var(--gray-400);
  flex-shrink: 0;
  opacity: 0.6;
}

/* ── Boutons d'outils ── */
.drawer-tool-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 0.12rem;
}

.drawer-tool-btn:hover {
  background: var(--gray-100);
  color: var(--red);
}

.drawer-tool-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}

.drawer-tool-btn:hover .drawer-tool-icon {
  background: rgba(192, 57, 43, 0.1);
  color: var(--red);
}

.drawer-tool-icon svg {
  width: 14px;
  height: 14px;
}

.drawer-kbd {
  margin-left: auto;
  font-size: 0.68rem;
  font-family: var(--font-body);
  color: var(--text-muted);
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  white-space: nowrap;
}

/* ── Sélecteur de langue ── */
.drawer-lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem 0.7rem;
}

.drawer-lang-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.drawer-lang-pills {
  display: flex;
  gap: 0.3rem;
}

.drawer-lang-pill {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.drawer-lang-pill.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.drawer-lang-pill:not(.active):hover {
  border-color: var(--red);
  color: var(--red);
}

/* ── Pied du tiroir ── */
.drawer-footer {
  margin-top: auto;
  flex-shrink: 0;
  padding: 0.85rem 0.9rem;
  border-top: 1px solid var(--border);
  background: var(--gray-50);
}

.drawer-official-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: rgba(192, 57, 43, 0.07);
  border: 1px solid rgba(192, 57, 43, 0.2);
  text-decoration: none;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.18s;
  margin-bottom: 0.6rem;
}

.drawer-official-link:hover {
  background: rgba(192, 57, 43, 0.13);
}

.drawer-official-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.drawer-legal {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

/* ── Dark mode overrides ── */
/* Le tiroir conserve un fond clair : textes toujours noirs et lisibles */
[data-theme=dark] .mobile-drawer {
  background: #f8f9fa;
}

[data-theme=dark] .drawer-header {
  background: linear-gradient(135deg, #1a1a2e 0%, var(--red) 100%);
}

[data-theme=dark] .drawer-footer {
  background: #f1f3f5;
  border-top-color: #dee2e6;
}

[data-theme=dark] .drawer-section-title {
  color: #495057;
}

[data-theme=dark] .drawer-nav-item {
  color: #212529;
}

[data-theme=dark] .drawer-nav-icon,
[data-theme=dark] .drawer-tool-icon {
  background: #e9ecef;
  color: #495057;
}

[data-theme=dark] .drawer-nav-item:hover,
[data-theme=dark] .drawer-tool-btn:hover {
  background: #f1f3f5;
}

[data-theme=dark] .drawer-nav-active {
  background: var(--red-light);
  color: var(--red);
}

[data-theme=dark] .drawer-nav-active .drawer-nav-icon {
  background: rgba(192, 57, 43, 0.12);
  color: var(--red);
}

[data-theme=dark] .drawer-nav-arrow {
  color: #adb5bd;
}

[data-theme=dark] .drawer-tool-btn {
  color: #212529;
}

[data-theme=dark] .drawer-lang-label {
  color: #495057;
}

[data-theme=dark] .drawer-lang-pill {
  border-color: #ced4da;
  color: #495057;
}

[data-theme=dark] .drawer-lang-pill:not(.active):hover {
  border-color: var(--red);
  color: var(--red);
}

[data-theme=dark] .drawer-kbd {
  background: #e9ecef;
  border-color: #ced4da;
  color: #495057;
}

[data-theme=dark] .drawer-official-link {
  background: rgba(192, 57, 43, 0.07);
  border-color: rgba(192, 57, 43, 0.25);
  color: var(--red);
}

[data-theme=dark] .drawer-legal {
  color: #6c757d;
}

[data-theme=dark] .nav-nclc-mobile {
  background: rgba(192, 57, 43, 0.1) !important;
  border-color: rgba(192, 57, 43, 0.35) !important;
  color: var(--red) !important;
}

/* ── Grille 2 colonnes dans les modales (collapse mobile) ─── */
.modal-2col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* ── Search button & overlay ─────────────────────────────── */
.btn-search {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-search:hover {
  background: rgba(255, 255, 255, 0.28);
}

.btn-search svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
}

.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 1rem 2rem;
}

.search-overlay.open {
  display: flex;
}

.search-box {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 580px;
  overflow: hidden;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.search-input-wrap svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text);
  font-family: var(--font-body);
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: var(--transition);
  flex-shrink: 0;
}

.search-close:hover {
  background: var(--surface-alt);
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--surface-alt);
}

.search-result-icon {
  width: 34px;
  height: 34px;
  background: var(--red-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 700;
  overflow: hidden;
}
.search-result-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.search-result-title {
  font-weight: 600;
  font-size: 0.87rem;
  margin-bottom: 0.1rem;
}

.search-result-desc {
  font-size: 0.77rem;
  color: var(--text-muted);
}

.search-empty {
  padding: 1.5rem 1.1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.search-hint {
  padding: 0.6rem 1.1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* ── Responsive ≤ 900px : tiroir de navigation ────────────── */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }
  /* Le nav devient un tiroir latéral */
  .site-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 82vw;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(160deg, var(--header-bg-from), var(--red));
    z-index: 99;
    padding: 5rem 0.8rem 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
    /* reset des propriétés flex desktop */
    flex: none;
    min-width: 0;
  }
  /* Quand le tiroir est ouvert : affichage en colonne */
  .site-nav.nav-open {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.2rem;
  }
  /* Liens en blocs pleins dans le tiroir */
  .site-nav a {
    display: block;
    font-size: 0.92rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    width: 100%;
    white-space: normal;
    word-break: break-word;
    flex-shrink: unset;
  }
  /* Lien NCLC affiché uniquement dans le tiroir mobile */
  .nav-nclc-mobile {
    display: block !important;
    margin-top: 0.6rem;
    padding: 0.85rem 1rem !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    color: #ffffff !important;
    text-align: center;
    letter-spacing: 0.03em;
  }
  .nav-nclc-mobile::before {
    content: "⟶  ";
    opacity: 0.75;
  }
  .nav-nclc-mobile:hover {
    background: rgba(255, 255, 255, 0.28) !important;
  }
}
/* ── Responsive ≤ 700px : mise en page mobile ─────────────── */
@media (max-width: 700px) {
  /* Header */
  .header-inner {
    padding: 0.6rem 0.9rem;
    gap: 0.5rem;
  }
  .header-logo img {
    height: 38px;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  .btn-theme {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
  }
  /* Texte général */
  .page-title {
    font-size: 1.25rem;
  }
  .page-subtitle {
    font-size: 0.82rem;
  }
  .container {
    padding: 1.2rem 0.9rem 3rem;
  }
  /* Grilles de contenu */
  .about-grid {
    grid-template-columns: 1fr;
  }
  .nav-grid {
    grid-template-columns: 1fr 1fr;
  }
  .famille-grid {
    grid-template-columns: 1fr;
  }
  .adapt-checks {
    grid-template-columns: 1fr;
  }
  /* Budget — disposition mobile */
  .grand-amount {
    font-size: 1.2rem;
  }
  .line {
    flex-wrap: wrap;
    gap: 0.3rem 0.5rem;
  }
  .line-info {
    flex: 1 1 100%;
    min-width: 0;
  }
  .line-right {
    flex: 0 0 100%;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    min-width: 0;
    border-top: 1px solid var(--gray-100);
    padding-top: 0.35rem;
  }
  .line-amount {
    font-size: 0.92rem;
    white-space: normal;
    word-break: break-all;
  }
  .line-detail {
    text-align: right;
    font-size: 0.7rem;
  }
  /* Lignes de facteurs — toutes pages */
  .factor-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }
  .factor-row label {
    flex: none;
    min-width: 0;
    width: 100%;
  }
  .factor-row select {
    flex: none;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .factor-row-auto {
    flex-direction: column;
    align-items: stretch;
  }
  .fr-auto-wrap {
    width: 100%;
  }
  /* CRS */
  .crs-main-score {
    font-size: 2.6rem;
  }
  .crs-sub-scores {
    gap: 0.75rem;
  }
  .crs-bar-wrap {
    max-width: 100%;
  }
  /* Tableaux récapitulatifs — anti-débordement */
  .recap-table th,
  .recap-table td {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    font-size: 0.78rem;
    padding: 0.45rem 0.6rem;
  }
  /* Guide — tableaux défilants */
  .detail-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .detail-table {
    min-width: 480px;
  }
  /* Cartes d'accueil — CTA transformé en bouton pleine largeur */
  .nav-card {
    display: flex;
    flex-direction: column;
  }
  .nav-card-cta {
    display: block;
    width: 100%;
    margin-top: auto;
    padding: 0.75rem 1rem;
    background: var(--red);
    color: #fff !important;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-head);
    letter-spacing: 0.02em;
    box-shadow: 0 3px 10px rgba(192, 57, 43, 0.28);
    transition: background 0.18s ease;
    box-sizing: border-box;
    text-decoration: none;
  }
  .nav-card-cta:hover {
    background: var(--red-dark);
  }
  .nav-card-cta .cta-arrow {
    display: none;
  }
  /* Guide — grille et onglets */
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .lang-test-grid {
    grid-template-columns: 1fr;
  }
  .filter-tab {
    font-size: 0.72rem;
    padding: 0.35rem 0.65rem;
  }
  /* Modales plein écran */
  .modal-box {
    margin: 0;
    border-radius: 0;
    max-width: 100% !important;
    min-height: 100vh;
  }
  .modal-overlay {
    padding: 0;
    align-items: flex-start;
  }
  .modal-head-titles h2 {
    font-size: 0.95rem;
  }
  .modal-2col-grid {
    grid-template-columns: 1fr !important;
    gap: 0.6rem;
  }
  /* Recherche */
  .search-overlay {
    padding: 2rem 0.75rem 2rem;
  }
}
/* ── Responsive ≤ 500px : très petits écrans ──────────────── */
@media (max-width: 500px) {
  /* Header compact */
  .header-inner {
    padding: 0.5rem 0.7rem;
    gap: 0.35rem;
  }
  .header-logo img {
    height: 34px;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  .btn-search span {
    display: none;
  }
  /* icône seule sur très petit écran */
  .btn-theme .btn-theme-label {
    display: none;
  }
  /* Grilles sur une colonne */
  .nav-grid {
    grid-template-columns: 1fr;
  }
  .crs-sub-scores {
    gap: 0.5rem;
  }
  /* Barre sticky budget */
  .sticky-score-bar {
    padding: 0.45rem 0.75rem;
    gap: 0.4rem;
    width: calc(100% - 1.4rem);
  }
  .sticky-score-value {
    font-size: 1rem;
  }
  .sticky-score-label {
    font-size: 0.68rem;
  }
  .sticky-score-sub {
    display: none;
  }
  /* Blocs de score sticky — décalage réduit (header ~68px sur xs) */
  .gauge-wrapper {
    top: 68px;
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
  }
  .crs-score-hero {
    top: 68px;
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
    padding: 0.9rem 1rem;
  }
  .crs-main-score {
    font-size: 2.1rem;
  }
  .sticky-score-bar {
    top: 68px;
  }
  .progress-header {
    top: 68px;
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
  }
  .progress-percent {
    font-size: 2.4rem;
  }
  /* Modales — padding réduit */
  .modal-head {
    padding: 0.9rem 1rem;
  }
  .modal-prog-wrap {
    padding: 0.45rem 1rem;
  }
}
/* ═══════════════════════════════════════════════════════
   MODAL — Vérificateur lettre de référence
   ═══════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 1.5rem 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  margin: auto;
  overflow: hidden;
}

.modal-box > div:last-child {
  overflow-y: auto;
  flex: 1;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(135deg, var(--header-bg-from), var(--red));
  color: #fff;
}

.modal-head-titles {
  flex: 1;
}

.modal-head-titles h2 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
}

.modal-head-titles p {
  font-size: 0.8rem;
  opacity: 0.82;
}

.modal-close {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.modal-prog-wrap {
  background: var(--surface-alt);
  padding: 0.55rem 1.4rem;
  border-bottom: 1px solid var(--border);
}

.modal-prog-track {
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
}

.modal-prog-fill {
  height: 100%;
  background: var(--green);
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0%;
}

.modal-prog-label {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  font-family: var(--font-head);
  font-weight: 600;
}

.modal-body {
  padding-bottom: 1rem;
}

.modal-section-title {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--red-dark);
  padding: 0.9rem 1.4rem 0.35rem;
  border-top: 1px solid var(--border);
  margin-top: 0.1rem;
}

.modal-section-title:first-child {
  border-top: none;
  margin-top: 0;
}

.modal-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 1.4rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.modal-item:last-child {
  border-bottom: none;
}

.modal-item:hover {
  background: var(--surface-alt);
}

.modal-item.done {
  background: var(--green-light);
}

.modal-item.done .modal-item-text {
  text-decoration: line-through;
  opacity: 0.65;
}

.modal-check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: var(--transition);
}

.modal-item.done .modal-check {
  background: var(--green);
  border-color: var(--green);
}

.modal-check-mark {
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  display: none;
}

.modal-item.done .modal-check-mark {
  display: block;
}

.modal-item-text {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.45;
}

/* ═══════════════════════════════════════════════════════
   GUIDE EDE & TESTS DE LANGUE
   ═══════════════════════════════════════════════════════ */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filter-tab {
  padding: 0.42rem 0.95rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-head);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.filter-tab:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.filter-tab.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 2px 8px rgba(192, 57, 43, 0.3);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: var(--transition);
}

.guide-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.guide-card.hidden {
  display: none;
}

.guide-card-cat {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  font-family: var(--font-head);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
  width: fit-content;
}

.guide-card-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.guide-card-org {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: -0.15rem;
}

.guide-card-target {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.45;
}

/* Header icône + titre sur la même ligne */
.guide-card-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

/* Logo image (WES) */
.guide-card-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  flex-shrink: 0;
}

.guide-card-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Icône SVG (autres cartes) — sans bordure */
.guide-card-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--red);
}
.guide-card-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.guide-card-cost {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--red);
  margin-top: 0.15rem;
}

.guide-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-head);
  cursor: pointer;
  transition: var(--transition);
  margin-top: auto;
  width: 100%;
  letter-spacing: 0.03em;
}

.guide-card-cta:hover {
  background: var(--red-dark);
  transform: none;
}

.guide-detail {
  display: none;
}

.guide-detail.visible {
  display: block;
}

.guide-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.9rem;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-head);
  color: #111;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1rem;
}

.guide-detail-back:hover {
  background: #1e6e32;
  border-color: #1e6e32;
  color: #fff;
}

.detail-hero {
  background: linear-gradient(135deg, var(--header-bg-from), var(--red));
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-md);
}

.detail-hero h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.detail-hero-sub {
  font-size: 0.82rem;
  opacity: 0.82;
}

.detail-hero-cost {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.18);
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow);
  margin-bottom: 0.75rem;
}

.detail-section-title {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--red-dark);
  margin: 0 0 0.75rem;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

.detail-table th {
  background: var(--surface-alt);
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.detail-table td {
  padding: 0.48rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}

.detail-table tr:last-child td {
  border-bottom: none;
}

.detail-table .price-cell {
  font-weight: 700;
  color: var(--red);
  text-align: right;
  white-space: nowrap;
}

.detail-list {
  padding-left: 1.2rem;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.75;
  margin: 0;
}

/* Rangée bouton portail + lien officiel */
.detail-portal-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

/* Bouton principal — accès direct au portail */
.detail-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  box-shadow: 0 3px 12px rgba(192, 57, 43, 0.3);
}
.detail-portal-btn svg {
  flex-shrink: 0;
}
.detail-portal-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.4);
  color: #fff;
  text-decoration: none;
}

.detail-external {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--red);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 600;
  font-family: var(--font-head);
}

.detail-external:hover {
  text-decoration: underline;
}

.amber-alert {
  background: var(--amber-light);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.8rem 1rem;
  font-size: 0.82rem;
  color: var(--amber);
  margin: 0.75rem 0;
  line-height: 1.55;
}

.amber-alert strong {
  font-family: var(--font-head);
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lang-test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.lang-test-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

/* Header : image à gauche, titre+sous-titre à droite */
.lang-test-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.lang-test-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
  padding: 0.35rem 0.45rem;
  flex-shrink: 0;
  width: 52px;
  height: 44px;
}

.lang-test-logo {
  max-width: 44px;
  max-height: 36px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lang-test-name {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

.lang-test-lang {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: var(--font-head);
  margin-bottom: 0;
}

.lang-test-body {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.lang-test-body strong {
  color: var(--text);
}

/* ═══════════════════════════════════════════════════════
   BARRE STICKY — Score / Total visible en permanence
   ═══════════════════════════════════════════════════════ */
.sticky-score-bar {
  position: sticky;
  top: 78px;
  z-index: 89;
  background: linear-gradient(135deg, var(--header-bg-from), var(--red));
  color: #fff;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.22);
  font-family: var(--font-head);
  flex-wrap: wrap;
  border-radius: var(--radius);
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 3rem);
}

.sticky-score-label {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.88;
  white-space: nowrap;
}

.sticky-score-value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.sticky-score-sub {
  font-size: 0.72rem;
  opacity: 0.75;
  white-space: nowrap;
}

.sticky-score-badge {
  padding: 0.28rem 0.75rem;
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

.sticky-score-badge.ok {
  background: rgba(26, 92, 42, 0.55);
  border-color: rgba(26, 92, 42, 0.7);
}

.sticky-score-badge.fail {
  background: rgba(192, 57, 43, 0.45);
  border-color: rgba(192, 57, 43, 0.6);
}

.sticky-score-left {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.sticky-score-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════
   TABLEAUX EN CARTES — Responsive ≤ 768px
   (guide.html : épreuves, tarifs, centres d'examen)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* 0. Tous les éléments du tableau passent en mode bloc */
  .detail-table,
  .detail-table tbody,
  .detail-table tbody tr,
  .detail-table td {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  /* Supprimer le scroll horizontal du wrapper */
  .detail-table-wrap {
    overflow: hidden !important;
  }
  /* 1. En-tête masqué */
  .detail-table thead {
    display: none;
  }
  /* 2. Chaque <tr> → carte indépendante */
  .detail-table tbody tr {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.9rem;
    padding: 0.1rem 0;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
  }
  /* 3. Chaque <td> → bloc avec étiquette au-dessus */
  .detail-table td {
    padding: 0.5rem 0.9rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.84rem;
    word-break: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
    white-space: normal;
  }
  .detail-table td:last-child {
    border-bottom: none;
  }
  /* 4. Étiquette via ::before */
  .detail-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-head);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.22rem;
  }
  /* 5. Cellule prix */
  .detail-table .price-cell {
    color: var(--red) !important;
    font-weight: 700;
    white-space: normal !important;
    text-align: left !important;
  }
  /* 6. Cellule inscription → bouton rouge pleine largeur */
  .detail-table td.cell-register {
    padding-top: 0.6rem;
    padding-bottom: 0.8rem;
  }
  .detail-table td.cell-register a {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem;
    background: var(--red);
    color: #fff !important;
    border-radius: var(--radius-sm);
    text-align: center;
    text-decoration: none !important;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    box-shadow: 0 3px 10px rgba(192, 57, 43, 0.3);
    transition: background 0.18s ease;
    box-sizing: border-box;
  }
  .detail-table td.cell-register a:hover {
    background: var(--red-dark);
  }
}
/* ═══════════════════════════════════════════════════════════
   CALCULATEUR NCLC — guide.html
   ═══════════════════════════════════════════════════════════ */
/* Layout dashboard : inputs à gauche, résultats à droite */
.nclc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-top: 0.5rem;
}

/* ── Panneau inputs ──────────────────────────────────────── */
.nclc-inputs-panel {
  background: var(--surface);
}

.nclc-inputs-body {
  padding: 1.2rem 1.3rem 1.4rem;
}

.nclc-test-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.nclc-select {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.18s;
  flex-shrink: 0;
}
.nclc-select:focus {
  outline: none;
  border-color: var(--red);
}

.nclc-divider {
  height: 1px;
  background: var(--border);
  margin: 0.85rem 0;
}

.nclc-field-group {
  margin-bottom: 0.85rem;
}

.nclc-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.nclc-max-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--gray-100);
  border-radius: 99px;
  padding: 0.1rem 0.5rem;
  font-family: var(--font-head);
  letter-spacing: 0.02em;
}

.nclc-input {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.18s, box-shadow 0.18s;
  box-sizing: border-box;
}
.nclc-input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}
.nclc-input::placeholder {
  color: var(--gray-400);
  font-size: 0.88rem;
}

.nclc-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.22rem;
  padding-left: 0.1rem;
}

.nclc-level-select {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.18s, box-shadow 0.18s;
  box-sizing: border-box;
  cursor: pointer;
}
.nclc-level-select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}
.nclc-level-select.invalid {
  border-color: var(--red);
  background: var(--red-light);
}

/* États de validation */
.nclc-input.valid {
  border-color: var(--green);
  background: var(--green-light);
}
.nclc-input.valid:focus {
  box-shadow: 0 0 0 3px rgba(26, 92, 42, 0.12);
}

.nclc-input.invalid {
  border-color: var(--red);
  background: var(--red-light);
}
.nclc-input.invalid:focus {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.nclc-error-msg {
  font-size: 0.72rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--red-dark);
  margin-top: 0.2rem;
  min-height: 0.9rem;
  padding-left: 0.1rem;
}

/* ══════════════════════════════════════════════════════════
   CARTES — CENTRES DE PRÉPARATION
   ══════════════════════════════════════════════════════════ */
/* ── Badge "Partenaire Recommandé" ───────────────────────── */
.centres-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  align-self: center;
  padding: 0.22rem 0.7rem;
  background: linear-gradient(90deg, #b8860b, #f5c518, #b8860b);
  background-size: 200% 100%;
  animation: badge-shimmer 3s linear infinite;
  color: #1a1200;
  border: none;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  box-shadow: 0 1px 8px rgba(245, 197, 24, 0.35);
  margin-bottom: 0.55rem;
}
.centres-badge::before {
  content: "★";
  font-size: 0.7rem;
}

@keyframes badge-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.centres-badge-inline {
  align-self: center;
  margin-bottom: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Carte dans la grille — redesignée */
.centres-card {
  position: relative;
  border: 2px solid rgba(245, 197, 24, 0.45);
  background: var(--surface);
  overflow: hidden;
  /* coin doré supérieur droit */
}
.centres-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: conic-gradient(from 225deg at 100% 0%, rgba(245, 197, 24, 0.18), transparent 45%);
  pointer-events: none;
}
.centres-card:hover {
  border-color: rgba(245, 197, 24, 0.8);
  box-shadow: 0 6px 28px rgba(245, 197, 24, 0.18), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.centres-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--gray-900);
  margin-bottom: 0.15rem;
}

/* Bouton CTA rouge "VOIR LES CENTRES" */
.centres-cta {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  margin-top: 0.8rem;
}
.centres-cta:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(192, 57, 43, 0.35);
}
.centres-cta:active {
  transform: translateY(0);
}

/* ── Grille des cartes partenaires ───────────────────────── */
.centre-partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 280px));
  gap: 1.4rem;
}

/* Carte individuelle d'un centre partenaire — redesignée */
.centre-partner-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--surface);
  border: 2px solid rgba(245, 197, 24, 0.3);
  border-radius: 14px;
  box-shadow: var(--shadow), 0 0 0 0 rgba(245, 197, 24, 0);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.18s, border-color 0.25s;
  position: relative;
  /* subtle top gold strip */
}
.centre-partner-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #f5c518 40%, #f5c518 60%, transparent);
}
.centre-partner-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16), 0 0 0 3px rgba(245, 197, 24, 0.15);
  border-color: rgba(245, 197, 24, 0.7);
  transform: translateY(-4px);
}

.centre-partner-name {
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text);
  padding: 0.85rem 1rem 0.6rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, var(--gray-100), var(--surface));
}

.centre-partner-logo-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 1.2rem;
  background: #fff;
  min-height: 150px;
}

.centre-partner-logo {
  width: 100%;
  max-width: 185px;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.2s;
}
.centre-partner-card:hover .centre-partner-logo {
  transform: scale(1.03);
}

/* Bouton "Voir les détails" dans la partner card */
.centre-partner-cta {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--red);
  color: #fff;
  border: none;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s;
}
.centre-partner-cta:hover {
  background: var(--red-dark);
}

/* ── Fiche détail partenaire (Bright Future) ─────────────── */
/* Hero redesigné */
.bf-detail-hero {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-alt) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1.4rem;
}

.bf-detail-hero-inner {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 1.5rem 1.8rem;
  flex-wrap: wrap;
}

.bf-detail-logo-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.bf-hero-logo {
  height: 68px;
  width: auto;
  object-fit: contain;
  display: block;
}

.bf-detail-hero-text {
  flex: 1;
  min-width: 200px;
}

.bf-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.75rem;
  background: linear-gradient(90deg, #b8860b, #f5c518, #b8860b);
  background-size: 200% 100%;
  animation: badge-shimmer 3s linear infinite;
  color: #1a1200;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  box-shadow: 0 1px 8px rgba(245, 197, 24, 0.3);
  margin-bottom: 0.4rem;
}
.bf-detail-badge::before {
  content: "★";
  font-size: 0.7rem;
}

.bf-tag {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  background: var(--red-light);
  color: var(--red);
  border: 1px solid rgba(192, 57, 43, 0.2);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-head);
  letter-spacing: 0.04em;
}

.bf-flyer-wrap {
  border-top: 1px solid var(--border);
  padding: 1rem 1.8rem;
  display: flex;
  justify-content: center;
  background: var(--gray-100);
}

.bf-flyer-img {
  max-width: 380px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

/* Bandeau objectif */
.bf-objective-banner {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: linear-gradient(135deg, #1a5c2a, #228b3b);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  margin-bottom: 0.4rem;
  box-shadow: 0 3px 16px rgba(26, 92, 42, 0.3);
}

.bf-objective-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bf-objective-icon svg {
  color: #fff;
}

.bf-objective-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
}

.bf-objective-sub {
  font-size: 0.83rem;
  opacity: 0.85;
}

/* Grille Pack Nabil */
.bf-pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 0.6rem;
}

.bf-pack-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.bf-pack-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

.bf-pack-item-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bf-pack-item-icon svg {
  width: 19px;
  height: 19px;
  color: var(--green);
}

.bf-pack-item-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.bf-pack-item-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Grille tarifs */
.bf-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 0.6rem;
}

.bf-pricing-card {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem 1.4rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform 0.18s, box-shadow 0.18s;
}
.bf-pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.bf-pricing-card--featured {
  border-color: var(--red);
  background: linear-gradient(145deg, var(--surface) 60%, rgba(192, 57, 43, 0.05));
  box-shadow: 0 4px 24px rgba(192, 57, 43, 0.15);
}

.bf-pricing-featured-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.18rem 0.8rem;
  border-radius: 50px;
  white-space: nowrap;
}

.bf-pricing-icon {
  width: 52px;
  height: 52px;
  background: var(--gray-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
}
.bf-pricing-icon svg {
  color: var(--red);
}

.bf-pricing-label {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bf-pricing-price {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 2rem;
  color: var(--green);
  line-height: 1;
  margin: 0.2rem 0;
}
.bf-pricing-price span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 0.2rem;
}

.bf-pricing-duration {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.bf-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.bf-pricing-features li {
  font-size: 0.82rem;
  color: var(--text);
  padding-left: 1.2rem;
  position: relative;
}
.bf-pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 0.8rem;
}

/* Grille infrastructure */
.bf-infra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-top: 0.6rem;
}

.bf-infra-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
}

.bf-infra-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bf-infra-icon svg {
  width: 20px;
  height: 20px;
}

.bf-infra-icon--blue {
  background: rgba(30, 100, 200, 0.1);
}
.bf-infra-icon--blue svg {
  color: #1e64c8;
}

.bf-infra-icon--gold {
  background: rgba(245, 197, 24, 0.12);
}
.bf-infra-icon--gold svg {
  color: #b8860b;
}

.bf-infra-icon--green {
  background: var(--green-light);
}
.bf-infra-icon--green svg {
  color: var(--green);
}

.bf-infra-text {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  font-family: var(--font-head);
}

/* Legacy (kept for compat) */
.bf-hero-inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

/* Table des tarifs */
.bf-tarif-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}
.bf-tarif-table thead tr {
  background: var(--gray-100);
  border-bottom: 2px solid var(--border);
}
.bf-tarif-table th {
  padding: 0.7rem 1rem;
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: left;
}
.bf-tarif-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.bf-tarif-table tbody tr:last-child td {
  border-bottom: none;
}
.bf-tarif-table tbody tr:hover {
  background: var(--surface-alt);
}

.bf-tarif-price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--green);
  white-space: nowrap;
}

/* Grille des localisations */
.bf-locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 0.8rem;
}

.bf-location-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
}

.bf-location-city {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 0.35rem;
}

.bf-location-address {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
  padding-left: 1.55rem;
}

.bf-location-details {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left: 1.55rem;
}
.bf-location-details li {
  font-size: 0.82rem;
  color: var(--text);
  padding: 0.18rem 0;
  position: relative;
}
.bf-location-details li::before {
  content: "—";
  position: absolute;
  left: -1.1rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Grille des modalités */
.bf-modalities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 0.8rem;
}

.bf-modality-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.bf-modality-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--red-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bf-modality-icon svg {
  width: 19px;
  height: 19px;
  color: var(--red);
}

.bf-modality-title {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.bf-modality-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Note de bas de fiche */
.centre-card-note {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.centre-card-note strong {
  color: var(--text);
}

/* ── Responsive ≤ 700px ──────────────────────────────────── */
@media (max-width: 700px) {
  .centre-partners-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .bf-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .bf-hero-logo {
    height: 54px;
  }
  .bf-locations-grid,
  .bf-modalities-grid {
    grid-template-columns: 1fr;
  }
  .bf-tarif-table {
    font-size: 0.8rem;
  }
  .bf-tarif-table th, .bf-tarif-table td {
    padding: 0.55rem 0.7rem;
  }
}
/* Carte d'accès au calculateur */
.nclc-access-card {
  border: 2px solid var(--red-light);
  background: linear-gradient(135deg, var(--surface) 60%, var(--red-light));
}

.nclc-access-btn {
  background: var(--red) !important;
  color: #fff !important;
  border: none;
}
.nclc-access-btn:hover {
  background: var(--red-dark) !important;
}

.nclc-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.nclc-btn-calc {
  flex: 1;
  padding: 0.65rem 1rem;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s;
  letter-spacing: 0.02em;
}
.nclc-btn-calc:hover {
  background: var(--red-dark);
}

.nclc-btn-reset {
  padding: 0.65rem 1rem;
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.nclc-btn-reset:hover {
  background: var(--gray-200);
  color: var(--text);
}

/* ── Panneau résultats ───────────────────────────────────── */
.nclc-results-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

/* État vide */
.nclc-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  gap: 0.8rem;
  flex: 1;
}

.nclc-placeholder-icon svg {
  width: 44px;
  height: 44px;
  color: var(--gray-300);
}

/* Badge admissibilité */
.nclc-admit-badge {
  padding: 0.85rem 1.1rem;
  font-size: 0.88rem;
  font-family: var(--font-head);
  border-radius: var(--radius) var(--radius) 0 0;
  line-height: 1.45;
}
.nclc-admit-badge.nclc-admit-ok {
  background: var(--green-light);
  color: var(--green);
  border-bottom: 2px solid var(--green);
}
.nclc-admit-badge.nclc-admit-fail {
  background: var(--red-light);
  color: var(--red-dark);
  border-bottom: 2px solid var(--red);
}

/* Moyenne */
.nclc-avg-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}

.nclc-avg-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

.nclc-avg-value {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}

/* Grille 2×2 des compétences */
.nclc-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  flex: 1;
}

.nclc-comp-card {
  background: var(--surface);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: background 0.18s;
}
.nclc-comp-card.nclc-comp-ok {
  background: var(--green-light);
}
.nclc-comp-card.nclc-comp-ok .nclc-comp-level {
  color: var(--green);
}
.nclc-comp-card.nclc-comp-ok .nclc-comp-status {
  color: var(--green);
}
.nclc-comp-card.nclc-comp-fail {
  background: var(--red-light);
}
.nclc-comp-card.nclc-comp-fail .nclc-comp-level {
  color: var(--red-dark);
}
.nclc-comp-card.nclc-comp-fail .nclc-comp-status {
  color: var(--red-dark);
}

.nclc-comp-name {
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.nclc-comp-level {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.nclc-comp-status {
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--text-muted);
}

/* ── Bloc bonus SGC ──────────────────────────────────────── */
.nclc-bonus-block {
  margin-top: 1.4rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--gray-50);
  overflow: hidden;
}

.nclc-bonus-header {
  padding: 0.55rem 1.1rem;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  background: var(--gray-100);
  border-bottom: 1px solid var(--border);
}

.nclc-bonus-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.1rem;
}

.nclc-bonus-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 5px solid;
  transition: background 0.25s, border-color 0.25s;
}
.nclc-bonus-circle.nclc-bonus-ok {
  background: var(--green-light);
  border-color: var(--green);
}
.nclc-bonus-circle.nclc-bonus-zero {
  background: var(--red-light);
  border-color: var(--red);
}

.nclc-bonus-pts {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
}
.nclc-bonus-ok .nclc-bonus-pts {
  color: var(--green);
}
.nclc-bonus-zero .nclc-bonus-pts {
  color: var(--red);
}

.nclc-bonus-unit {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
}
.nclc-bonus-ok .nclc-bonus-unit {
  color: var(--green);
}
.nclc-bonus-zero .nclc-bonus-unit {
  color: var(--red);
}

.nclc-bonus-info {
  flex: 1;
  min-width: 0;
}

.nclc-bonus-desc {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.45;
}

.nclc-bonus-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 0.45rem 0.7rem;
  background: var(--amber-light);
  border-left: 3px solid var(--amber);
  border-radius: 0 6px 6px 0;
}
.nclc-bonus-hint strong {
  color: var(--amber);
}

[data-theme=dark] .nclc-bonus-block {
  background: var(--gray-800);
  border-color: var(--gray-700);
}

[data-theme=dark] .nclc-bonus-header {
  background: var(--gray-900);
  border-bottom-color: var(--gray-700);
}

[data-theme=dark] .nclc-bonus-circle.nclc-bonus-ok {
  background: rgba(26, 92, 42, 0.25);
}

[data-theme=dark] .nclc-bonus-circle.nclc-bonus-zero {
  background: rgba(192, 57, 43, 0.2);
}

/* ── Fin bloc bonus SGC ──────────────────────────────────── */
.nclc-ref-note {
  padding: 0.7rem 1.1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ══════════════════════════════════════════════════════════
   MODE DUAL — disposition côte à côte
   ══════════════════════════════════════════════════════════ */
.nclc-dual-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nclc-dual-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.nclc-dual-panel {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}

/* En-tête de chaque panneau avec badge de langue */
.nclc-dual-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Badge FR / EN */
.nclc-lang-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 22px;
  border-radius: 4px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.nclc-lang-fr {
  background: #003087;
  color: #ffffff;
}

.nclc-lang-en {
  background: #B22234;
  color: #ffffff;
}

/* Boutons d'action du mode dual (sous les deux panneaux) */
.nclc-dual-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Résultats dual en deux colonnes */
.nclc-dual-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.nclc-dual-result-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.nclc-dual-results-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border);
}

/* ══════════════════════════════════════════════════════════
   TABLES DE RÉFÉRENCE — section anglais
   ══════════════════════════════════════════════════════════ */
.nclc-ref-lang-group {
  margin-bottom: 2.5rem;
}

.nclc-ref-lang-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border);
}

.nclc-ref-sub-table {
  margin-bottom: 1.5rem;
}
.nclc-ref-sub-table .nclc-ref-sub-label {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

/* ══════════════════════════════════════════════════════════
   RACCOURCI MOBILE — Calculateur NCLC (guide.html)
   ══════════════════════════════════════════════════════════ */
/* Masqué sur grand écran, visible uniquement sur mobile */
.nclc-mobile-shortcut {
  display: none;
  margin-bottom: 1.2rem;
}

.nclc-mobile-shortcut-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: var(--red);
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 10px rgba(192, 57, 43, 0.25);
  transition: background 0.18s, box-shadow 0.18s;
}
.nclc-mobile-shortcut-btn:hover {
  background: #a93226;
  box-shadow: 0 4px 14px rgba(192, 57, 43, 0.35);
}
.nclc-mobile-shortcut-btn svg {
  flex-shrink: 0;
}

/* ── Responsive ≤ 768px ──────────────────────────────────── */
@media (max-width: 768px) {
  .nclc-layout {
    grid-template-columns: 1fr;
  }
  /* Sur mobile, résultats en haut */
  .nclc-results-panel {
    order: -1;
  }
  .nclc-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nclc-actions {
    flex-direction: column;
  }
  .nclc-btn-calc,
  .nclc-btn-reset {
    width: 100%;
  }
  .nclc-dual-panels {
    grid-template-columns: 1fr;
  }
  .nclc-dual-results-grid {
    grid-template-columns: 1fr;
  }
  .nclc-mode-grid {
    gap: 1.5rem;
  }
  /* Raccourci NCLC affiché uniquement sur mobile */
  .nclc-mobile-shortcut {
    display: block;
  }
  /* Masquer tout le panneau résultats sur mobile — affiché par JS après calcul */
  .nclc-results-panel {
    display: none;
  }
  /* ── Correction des inputs sur petit écran ─────────────── */
  /* Label du test au-dessus du select, select pleine largeur */
  .nclc-test-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .nclc-select {
    width: 100%;
    flex-shrink: 1;
    box-sizing: border-box;
  }
  /* Panneau body avec padding réduit */
  .nclc-inputs-body {
    padding: 1rem 0.9rem 1.2rem;
  }
  /* Inputs et selects pleine largeur */
  .nclc-input,
  .nclc-level-select {
    font-size: 0.9rem;
  }
  /* Dual : un panel par ligne sur mobile */
  .nclc-dual-panels {
    grid-template-columns: 1fr;
  }
  .nclc-dual-results-grid {
    grid-template-columns: 1fr;
  }
}
/* ══════════════════════════════════════════════════════════
   SÉLECTEUR DE MODE — NCLC (tuiles radio)
   ══════════════════════════════════════════════════════════ */
.nclc-step0 {
  margin-bottom: 0.5rem;
}

.nclc-step0-question {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.1rem;
  text-align: center;
}

/* Conteneur des orbes — alignement horizontal centré */
.nclc-mode-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  margin: 1rem 0 2rem;
}

/* Bouton résumé mobile — remplace les orbes après sélection */
.nclc-mode-summary-btn {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--red);
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 1.25rem;
  gap: 0.75rem;
  box-shadow: 0 3px 10px rgba(192, 57, 43, 0.22);
  transition: background 0.18s;
}
.nclc-mode-summary-btn:hover {
  background: #a93226;
}

.nclc-mode-summary-label {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  flex: 1;
}

.nclc-mode-summary-change {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.88;
  white-space: nowrap;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 99px;
  padding: 0.2rem 0.65rem;
  flex-shrink: 0;
}

/* Cacher les inputs radio natifs */
.nclc-mode-grid input[type=radio] {
  display: none;
}

/* ── Orbe — état par défaut ─────────────────────────── */
.nclc-orb {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.2rem;
  background-color: #ffffff;
  border: 2px solid var(--gray-200, #e9ecef);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  user-select: none;
}
.nclc-orb:hover {
  transform: scale(1.06);
  border-color: var(--red);
  box-shadow: 0 8px 24px rgba(192, 57, 43, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nclc-orb-number {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--gray-800, #343a40);
  letter-spacing: -0.03em;
  transition: color 0.3s ease;
}

.nclc-orb-text {
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500, #868e96);
  line-height: 1;
  transition: color 0.3s ease;
}

/* ── Orbe — état sélectionné ────────────────────────── */
.nclc-mode-grid input[type=radio]:checked + .nclc-orb {
  background-color: #ffffff;
  border-color: var(--red);
  border-width: 3px;
  transform: scale(1.1);
  box-shadow: 0 0 0 6px rgba(192, 57, 43, 0.12), 0 10px 28px rgba(192, 57, 43, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.nclc-mode-grid input[type=radio]:checked + .nclc-orb .nclc-orb-number {
  color: var(--red);
}
.nclc-mode-grid input[type=radio]:checked + .nclc-orb .nclc-orb-text {
  color: var(--red);
}

/* ══════════════════════════════════════════════════════════
   ONGLETS DU MODULE NCLC
   ══════════════════════════════════════════════════════════ */
.nclc-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
  margin-top: 1.2rem;
}

.nclc-tab-btn {
  flex: 1;
  padding: 0.75rem 1.2rem;
  background: var(--surface);
  border: none;
  border-bottom: 3px solid transparent;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-500, #868e96);
  cursor: pointer;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
  letter-spacing: 0.02em;
}
.nclc-tab-btn:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}
.nclc-tab-btn:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}
.nclc-tab-btn:hover:not(.active) {
  background: var(--gray-100);
  color: var(--gray-700, #495057);
}
.nclc-tab-btn.active {
  background: var(--red);
  color: var(--gold);
  border-bottom-color: var(--red);
  font-weight: 800;
}

/* ── Panneaux d'onglets ──────────────────────────────────── */
.nclc-tab-panel {
  animation: fadeInTab 0.2s ease;
}

@keyframes fadeInTab {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ══════════════════════════════════════════════════════════
   TABLES DE RÉFÉRENCE NCLC
   ══════════════════════════════════════════════════════════ */
.nclc-ref-section {
  margin-bottom: 2rem;
}

.nclc-ref-intro {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.nclc-ref-footnote {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.55;
  font-style: italic;
}

/* Wrapper avec scroll horizontal sur mobile */
.nclc-ref-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nclc-ref-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.88rem;
}
.nclc-ref-table thead tr {
  background: var(--red);
  border-bottom: 2px solid #922b21;
}
.nclc-ref-table th {
  padding: 0.75rem 1rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}
.nclc-ref-table th:first-child {
  text-align: left;
}
.nclc-ref-table .nclc-th-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.1rem;
}
.nclc-ref-table td {
  padding: 0.65rem 1rem;
  text-align: center;
  color: #000;
  border-bottom: 1px solid rgba(30, 90, 160, 0.15);
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.nclc-ref-table td:first-child {
  text-align: left;
}
.nclc-ref-table tbody {
  background: #ddeaf8;
}
.nclc-ref-table tbody tr {
  background: transparent;
}
.nclc-ref-table tbody tr:last-child td {
  border-bottom: none;
}
.nclc-ref-table {
  /* Ligne seuil (NCLC 7) */
}
.nclc-ref-table .nclc-row-threshold {
  background: rgba(26, 92, 42, 0.12) !important;
  border-top: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
}
.nclc-ref-table .nclc-row-threshold td {
  font-weight: 600;
}
.nclc-ref-table {
  /* Lignes sous le seuil */
}
.nclc-ref-table .nclc-row-below {
  opacity: 0.85;
}

/* ── Dark mode — tables NCLC ──────────────────────────────── */
[data-theme=dark] .nclc-ref-table {
  background: #fff !important;
}
[data-theme=dark] .nclc-ref-table tbody {
  background: #ddeaf8 !important;
}
[data-theme=dark] .nclc-ref-table tbody tr {
  background: transparent !important;
}
[data-theme=dark] .nclc-ref-table td {
  color: #000 !important;
  border-bottom-color: rgba(30, 90, 160, 0.15);
}
[data-theme=dark] .nclc-ref-table .nclc-row-threshold {
  background: rgba(26, 92, 42, 0.15) !important;
}
[data-theme=dark] .nclc-ref-table .nclc-row-below {
  opacity: 0.85;
}
[data-theme=dark] .nclc-ref-table .nclc-row-below td {
  color: #000 !important;
}

[data-theme=dark] .nclc-badge.nclc-badge-ok {
  background: #1a5c2a;
  color: #fff;
  border: none;
}
[data-theme=dark] .nclc-badge.nclc-badge-fail {
  background: #922b21;
  color: #fff;
  border: none;
}

/* Badges de niveau dans les tables */
.nclc-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.nclc-badge.nclc-badge-ok {
  background: var(--green-light);
  color: var(--green);
}
.nclc-badge.nclc-badge-fail {
  background: var(--red-light);
  color: var(--red-dark);
}

/* ── Responsive ≤ 700px ──────────────────────────────────── */
@media (max-width: 700px) {
  .nclc-tabs {
    margin-top: 0.8rem;
    margin-bottom: 1.2rem;
  }
  .nclc-tab-btn {
    font-size: 0.82rem;
    padding: 0.65rem 0.5rem;
  }
  .nclc-ref-table-wrap {
    border-radius: var(--radius-sm);
  }
}
/* ══════════════════════════════════════════════════════════
   VITRINE TIRAGES ENTRÉE EXPRESS (index.html)
   ══════════════════════════════════════════════════════════ */
.tirages-widget {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.tw-spotlight {
  position: relative;
  background: linear-gradient(135deg, #0c1018 0%, #161c2e 55%, #1a2040 100%);
  padding: 2rem 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tw-badge {
  display: inline-flex;
  align-self: flex-start;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #D4AF37;
  font-size: 0.63rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.22rem 0.75rem;
  border-radius: 99px;
  font-family: var(--font-head);
}

.tw-spotlight-body {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.tw-score-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  flex-shrink: 0;
}

.tw-score-eyebrow {
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-head);
}

.tw-score-line {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.tw-score {
  font-size: 5.5rem;
  font-weight: 900;
  font-family: var(--font-head);
  color: #D4AF37;
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 0 50px rgba(212, 175, 55, 0.4), 0 2px 6px rgba(0, 0, 0, 0.5);
}

.tw-score-sur {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(212, 175, 55, 0.55);
  font-family: var(--font-head);
  letter-spacing: 0.02em;
}

.tw-meta-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  justify-content: center;
  padding-top: 0.5rem;
  flex: 1;
  min-width: 200px;
}

.tw-meta-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tw-meta-row--cat {
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.6rem;
}

.tw-meta-key {
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.38);
  font-family: var(--font-head);
  min-width: 7rem;
  flex-shrink: 0;
}

.tw-meta-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}

.tw-meta-cat {
  font-size: 0.95rem;
  font-weight: 700;
  color: #D4A017;
  line-height: 1.35;
  text-align: center;
}

.tw-actions {
  display: flex;
  align-items: center;
}

.tw-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  color: #D4AF37;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-head);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.tw-toggle-btn .tw-chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.tw-toggle-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.15);
}
.tw-toggle-btn[aria-expanded=true] .tw-chevron {
  transform: rotate(180deg);
}

.tw-historique {
  background: var(--surface);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.tw-table-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) var(--gray-100);
}
.tw-table-wrap::-webkit-scrollbar {
  height: 4px;
}
.tw-table-wrap::-webkit-scrollbar-track {
  background: var(--gray-100);
}
.tw-table-wrap::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 99px;
}

.tw-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.82rem;
  font-family: var(--font-body);
}
.tw-table thead tr {
  background: #0c1018;
}
.tw-table th {
  padding: 0.6rem 1rem;
  text-align: left;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  font-family: var(--font-head);
}
.tw-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.tw-table tbody tr:last-child {
  border-bottom: none;
}
.tw-table tbody tr:hover {
  background: var(--gray-50);
}
.tw-table tbody tr.tw-row-alt {
  background: var(--gray-50);
}
.tw-table tbody tr.tw-row-alt:hover {
  background: var(--gray-100);
}
.tw-table tbody tr.tw-row-top td {
  background: rgba(212, 175, 55, 0.07);
  font-weight: 600;
}
.tw-table tbody tr.tw-row-top .tw-td-score,
.tw-table tbody tr.tw-row-top .tw-td-ronde {
  color: #b8860b;
  font-weight: 800;
}
.tw-table td {
  padding: 0.52rem 1rem;
  color: var(--text);
  vertical-align: middle;
}
.tw-table .tw-td-ronde {
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--gray-700);
  white-space: nowrap;
}
.tw-table .tw-td-date {
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.tw-table .tw-td-cat {
  max-width: 300px;
  line-height: 1.4;
}
.tw-table .tw-td-inv {
  white-space: nowrap;
  text-align: right;
  font-weight: 600;
  color: var(--gray-700);
}
.tw-table .tw-td-score {
  white-space: nowrap;
  text-align: right;
  font-weight: 800;
  font-family: var(--font-head);
  font-size: 0.88rem;
  color: var(--gray-900);
}

.tw-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--gray-50);
}

.tw-compteur {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-head);
  font-weight: 600;
}

.tw-pagination-btns {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.tw-btn-plus {
  padding: 0.45rem 1.1rem;
  background: var(--gray-900);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-head);
  cursor: pointer;
  transition: opacity 0.18s, box-shadow 0.18s;
}
.tw-btn-plus:hover {
  opacity: 0.85;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tw-btn-reduire {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.tw-btn-reduire svg {
  flex-shrink: 0;
}
.tw-btn-reduire:hover {
  color: var(--red);
  border-color: var(--red);
  background: var(--red-light);
}

[data-theme=dark] .tirages-widget {
  border-color: rgba(212, 175, 55, 0.12);
}
[data-theme=dark] .tw-spotlight {
  background: linear-gradient(135deg, #07090f 0%, #0f1220 55%, #111728 100%);
}
[data-theme=dark] .tw-historique {
  background: #1a1e27;
}
[data-theme=dark] .tw-table thead tr {
  background: #07090f;
}
[data-theme=dark] .tw-table tbody tr {
  background: #1a1e27;
  border-color: rgba(255, 255, 255, 0.06);
}
[data-theme=dark] .tw-table tbody tr.tw-row-alt {
  background: #1f2330;
}
[data-theme=dark] .tw-table tbody tr:hover, [data-theme=dark] .tw-table tbody tr.tw-row-alt:hover {
  background: #252a38;
}
[data-theme=dark] .tw-table tbody tr.tw-row-top td {
  background: rgba(212, 175, 55, 0.07);
}
[data-theme=dark] .tw-table td {
  color: #e0e0e0;
}
[data-theme=dark] .tw-table .tw-td-date {
  color: rgba(255, 255, 255, 0.45);
}
[data-theme=dark] .tw-table .tw-td-ronde {
  color: rgba(255, 255, 255, 0.55);
}
[data-theme=dark] .tw-table .tw-td-inv {
  color: rgba(255, 255, 255, 0.65);
}
[data-theme=dark] .tw-table .tw-td-score {
  color: #f0f0f0;
}
[data-theme=dark] .tw-pagination {
  background: #1a1e27;
  border-color: rgba(255, 255, 255, 0.07);
}
[data-theme=dark] .tw-btn-plus {
  background: #d0d0d0;
  color: #111;
}
[data-theme=dark] .tw-btn-reduire {
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.5);
}
[data-theme=dark] .tw-table-wrap {
  scrollbar-color: rgba(255, 255, 255, 0.15) rgba(255, 255, 255, 0.04);
}
[data-theme=dark] .tw-table-wrap::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}
[data-theme=dark] .tw-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
  .tw-spotlight {
    padding: 1.5rem 1.2rem 1.4rem;
    gap: 1.2rem;
  }
  .tw-score {
    font-size: 4rem;
  }
  .tw-score-sur {
    font-size: 0.85rem;
  }
  .tw-meta-key {
    min-width: 5.5rem;
  }
  .tw-spotlight-body {
    gap: 1.25rem;
  }
  .tw-pagination {
    flex-direction: column;
    align-items: stretch;
  }
  .tw-pagination-btns {
    justify-content: flex-end;
  }
}
@media (max-width: 480px) {
  .tw-score {
    font-size: 3.2rem;
  }
  .tw-toggle-btn {
    width: 100%;
    justify-content: center;
  }
  .tw-pagination-btns {
    flex-direction: column;
  }
  .tw-btn-plus, .tw-btn-reduire {
    width: 100%;
    justify-content: center;
  }
}
/* Message d'erreur si fetch échoue */
.tw-erreur {
  padding: 1.5rem 1.4rem;
  background: var(--red-light);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  color: var(--red);
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════
   TIMELINE TRACKER
   ══════════════════════════════════════════════════════════ */
/* ── Alertes & bannières ─────────────────────────────────── */
.tl-erreur {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red-light);
  border-left: 4px solid var(--red);
  color: var(--red);
  font-size: 0.83rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.2rem;
}

.tl-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: var(--amber-light);
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.81rem;
  color: var(--amber);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

/* ── Barre de progression ────────────────────────────────── */
.tl-progress {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow);
}

.tl-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.tl-progress-titre {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
}

.tl-progress-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
  font-family: var(--font-head);
}

.tl-progress-track {
  height: 8px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.tl-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), #2ecc71);
  border-radius: 99px;
  width: 0%;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Séparateurs de section ──────────────────────────────── */
.tl-divider {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1.75rem 0 0.75rem;
}
.tl-divider::before {
  content: "";
  width: 3px;
  height: 1rem;
  background: var(--red);
  border-radius: 2px;
  flex-shrink: 0;
}
.tl-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.tl-divider span {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  white-space: nowrap;
  font-family: var(--font-head);
}

/* ── Wrapper de section ──────────────────────────────────── */
.tl-section {
  margin-bottom: 0.25rem;
}

.tl-section-body {
  /* sur desktop : contenu normal sous le divider */
}

@media (max-width: 600px) {
  .tl-section {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.35rem;
    margin-bottom: 0.2rem;
  }
  .tl-section > .tl-divider {
    /* Pivot vertical : texte de bas en haut */
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin: 0;
    width: 1.3rem;
    flex-shrink: 0;
    align-self: stretch;
    padding: 0.3rem 0;
  }
  .tl-section > .tl-divider::before {
    width: 1rem;
    height: 3px;
    border-radius: 2px;
  }
  .tl-section > .tl-divider::after {
    width: 1px;
    flex: 1;
    height: auto;
  }
  .tl-section > .tl-divider span {
    font-size: 0.56rem;
    letter-spacing: 0.12em;
  }
  .tl-section-body {
    flex: 1;
    min-width: 0;
  }
}
/* ── Piste verticale ─────────────────────────────────────── */
.tl-track {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.15rem;
}
.tl-track::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.7rem;
  bottom: 0.7rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--border), transparent);
  border-radius: 2px;
}

/* ── Ligne d'étape ───────────────────────────────────────── */
.tl-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.32rem 0.75rem 0.32rem 0.4rem;
  border-radius: 8px;
  margin-bottom: 0.18rem;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  min-height: 40px;
}
.tl-row:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.tl-row.tl-row-done {
  background: #f0f8f2;
  border-color: rgba(26, 92, 42, 0.22);
}
.tl-row.tl-row-done .tl-dot {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26, 92, 42, 0.12);
}
.tl-row {
  /* Étapes optionnelles */
}
.tl-row.tl-row-opt {
  border-left: 3px solid #7b68ee;
  background: #f9f8ff;
}
.tl-row {
  /* Accents couleur (bord gauche coloré) */
}
.tl-row.tl-row-ac-blue {
  border-left: 3px solid #3a7fd5;
}
.tl-row.tl-row-ac-green {
  border-left: 3px solid var(--green);
}
.tl-row.tl-row-ac-red {
  border-left: 3px solid var(--red);
}
.tl-row.tl-row-ac-amber {
  border-left: 3px solid var(--amber);
}

/* ── Indicateur (colonne gauche avec le point) ───────────── */
.tl-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.2rem;
  position: relative;
}

.tl-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--gray-300);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.tl-check {
  font-size: 0.5rem;
  color: #fff;
  font-weight: 900;
  line-height: 1;
  display: block;
  margin-top: -1px;
}

/* ── Ligne cliquable ─────────────────────────────────────── */
.tl-row-clickable {
  cursor: pointer;
  user-select: none;
}
.tl-row-clickable:active {
  transform: scale(0.997);
}

/* ── Ligne colorée (fond sombre + texte blanc) ───────────── */
.tl-row-colored {
  border-color: transparent !important;
}
.tl-row-colored .tl-row-label {
  color: #fff;
}
.tl-row-colored .tl-confirmed {
  color: rgba(255, 255, 255, 0.82);
}
.tl-row-colored .tl-motif-text {
  color: #ffb0b0;
}
.tl-row-colored .tl-motif-warn {
  color: #ffd070;
}
.tl-row-colored .tl-chevron {
  color: rgba(255, 255, 255, 0.35);
}
.tl-row-colored .tl-opt-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.tl-row-colored:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.tl-row-colored.tl-row-done {
  filter: brightness(0.9);
}

/* ── Icône ───────────────────────────────────────────────── */
.tl-icon-wrap {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  position: relative;
}
.tl-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tl-icon-done {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 0.52rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ── Contenu textuel ─────────────────────────────────────── */
.tl-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.tl-row-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.tl-confirmed {
  font-size: 0.67rem;
  color: var(--green);
  font-weight: 700;
}

.tl-motif-text {
  font-size: 0.65rem;
  color: var(--red);
  font-weight: 500;
  font-style: italic;
  line-height: 1.3;
}

.tl-motif-warn {
  font-size: 0.63rem;
  color: var(--amber);
  font-weight: 600;
}

/* ── Compteur de jours ───────────────────────────────────── */
.tl-days {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  min-width: 3.6rem;
  text-align: center;
}
.tl-days strong {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  font-family: var(--font-head);
}
.tl-days span {
  font-size: 0.56rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.85;
  white-space: nowrap;
}

/* Sur fond clair (fallback sans couleur) */
.tl-days:not(.tl-days-on-dark) {
  color: #1a5c2a;
}
.tl-days:not(.tl-days-on-dark).tl-days-future {
  color: #0a3f82;
}
.tl-days:not(.tl-days-on-dark).tl-days-today {
  color: var(--red);
}

/* Sur fond sombre */
.tl-days-on-dark {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 7px;
  padding: 0.28rem 0.45rem;
  color: #fff;
}
.tl-days-on-dark.tl-days-future strong {
  color: #a8c8ff;
}
.tl-days-on-dark.tl-days-today strong {
  color: #ffd070;
}

/* ── Chevron ─────────────────────────────────────────────── */
.tl-chevron {
  flex-shrink: 0;
  color: var(--gray-300);
  display: flex;
  align-items: center;
}

/* ── Badge étape optionnelle ─────────────────────────────── */
.tl-opt-badge {
  display: inline-flex;
  align-items: center;
  background: #e8e4ff;
  color: #5040b0;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0.08rem 0.35rem;
  border-radius: 4px;
  font-family: var(--font-head);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   MODALE D'ÉDITION TIMELINE
   ══════════════════════════════════════════════════════════ */
.tl-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  overscroll-behavior: none;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: tl-fade-in 0.15s ease;
}

@keyframes tl-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.tl-modal-box {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 420px;
  animation: tl-slide-up 0.18s ease;
  overflow: hidden;
}

@keyframes tl-slide-up {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.tl-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.1rem 1.1rem 0.8rem;
  border-bottom: 1px solid var(--border);
}

.tl-modal-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-head);
  line-height: 1.35;
  flex: 1;
  margin: 0;
}

.tl-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--gray-300);
  cursor: pointer;
  padding: 0 0 0 0.75rem;
  flex-shrink: 0;
  transition: color 0.15s;
}
.tl-modal-close:hover {
  color: var(--red);
}

.tl-modal-body {
  padding: 1rem 1.1rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tl-modal-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tl-modal-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-head);
}

.tl-modal-input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  background: var(--surface-alt);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tl-modal-input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.tl-modal-err {
  font-size: 0.78rem;
  color: var(--red);
  font-weight: 600;
  background: rgba(192, 57, 43, 0.08);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
}

.tl-modal-footer {
  padding: 0.8rem 1.1rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tl-modal-btn-group {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.tl-modal-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-head);
  transition: all 0.15s;
  border: none;
}

.tl-modal-btn-cancel {
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.tl-modal-btn-cancel:hover {
  background: var(--border);
}

.tl-modal-btn-save {
  background: var(--red);
  color: #fff;
}
.tl-modal-btn-save:hover {
  filter: brightness(1.1);
}

.tl-modal-btn-clear {
  background: none;
  color: var(--gray-300);
  border: none;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  text-decoration: underline;
  align-self: flex-start;
  transition: color 0.15s;
}
.tl-modal-btn-clear:hover {
  color: var(--red);
}

.tl-modal-btn-delete {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(192, 57, 43, 0.1);
  color: var(--red);
  border: 1px solid rgba(192, 57, 43, 0.25);
  align-self: flex-start;
  font-size: 0.78rem;
}
.tl-modal-btn-delete:hover {
  background: rgba(192, 57, 43, 0.2);
}

/* ── Modale de confirmation de suppression ───────────────── */
.tl-confirm-overlay {
  z-index: 2100; /* au-dessus de la modale d'édition */
}

.tl-confirm-box {
  max-width: 360px;
  padding: 0;
  text-align: center;
  overflow: hidden;
}

.tl-confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(192, 57, 43, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto 0.75rem;
  color: var(--red);
}

.tl-confirm-titre {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  font-family: var(--font-head);
  margin: 0 1.2rem 0.5rem;
}

.tl-confirm-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 1.2rem 1.25rem;
}
.tl-confirm-sub strong {
  color: var(--text);
  font-weight: 600;
}

.tl-confirm-btns {
  display: flex;
  border-top: 1px solid var(--border);
}
.tl-confirm-btns .tl-modal-btn {
  flex: 1;
  border-radius: 0;
  padding: 0.85rem;
  font-size: 0.85rem;
}
.tl-confirm-btns .tl-modal-btn:first-child {
  border-right: 1px solid var(--border);
  border-radius: 0 0 0 14px;
}
.tl-confirm-btns .tl-modal-btn:last-child {
  border-radius: 0 0 14px 0;
}

.tl-confirm-oui {
  background: var(--red) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* ── Bouton supprimer (opts) ─────────────────────────────── */
.tl-opt-del {
  background: transparent;
  border: none;
  color: var(--gray-300);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 0.1rem;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.2s;
}
.tl-opt-del:hover {
  color: var(--red);
}

/* ── Groupe ligne + motif ────────────────────────────────── */
.tl-row-group {
  margin-bottom: 0.35rem;
}
.tl-row-group .tl-row {
  margin-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
}

/* ── Champ motif (ADR / Équité) ──────────────────────────── */
.tl-motif-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.5rem 1rem 0.55rem 1rem;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 10px 10px;
  background: var(--surface-alt);
  transition: background 0.2s, border-color 0.2s;
}
.tl-motif-row.tl-motif-ok {
  background: #f0f8f2;
  border-color: rgba(26, 92, 42, 0.22);
}
.tl-motif-row.tl-motif-ok .tl-motif-label {
  color: var(--green);
}
.tl-motif-row.tl-motif-vide {
  background: #fff8f5;
  border-color: rgba(192, 57, 43, 0.2);
}
.tl-motif-row.tl-motif-vide .tl-motif-req {
  color: var(--red);
}

.tl-motif-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--font-head);
  letter-spacing: 0.02em;
}

.tl-motif-req {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--amber);
  background: var(--amber-light);
  padding: 0.05rem 0.35rem;
  border-radius: 3px;
  margin-left: 0.3rem;
  font-family: var(--font-body);
  letter-spacing: 0;
}

.tl-motif-input {
  flex: 1;
  min-width: 180px;
  padding: 0.38rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tl-motif-input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}
.tl-motif-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

/* ── Zone étapes optionnelles ────────────────────────────── */
.tl-opt-zone {
  margin: 0.5rem 0;
}

/* ══════════════════════════════════════════════════════════
   BOUTON + LISTE DÉROULANTE
   ══════════════════════════════════════════════════════════ */
.tl-pool {
  position: relative;
  margin-bottom: 1.25rem;
}

.tl-pool-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.2rem;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-head);
  box-shadow: 0 4px 14px rgba(192, 57, 43, 0.35);
  transition: filter 0.15s, box-shadow 0.15s, transform 0.1s;
  width: 100%;
  justify-content: center;
}
.tl-pool-btn .tl-pool-chevron {
  margin-left: auto;
  transition: transform 0.2s;
}
.tl-pool-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.45);
}
.tl-pool-btn:active {
  transform: scale(0.98);
}
.tl-pool-btn.tl-pool-btn-open .tl-pool-chevron {
  transform: rotate(180deg);
}

.tl-pool-dropdown {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 500;
  max-height: 340px;
  overflow-y: auto;
  animation: tl-fade-in 0.12s ease;
}

.tl-pool-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.6rem 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
  border-bottom: 1px solid var(--border);
}
.tl-pool-item:last-child {
  border-bottom: none;
}
.tl-pool-item:hover {
  background: var(--surface-alt);
}
.tl-pool-item:first-child {
  border-radius: 12px 12px 0 0;
}
.tl-pool-item:last-child {
  border-radius: 0 0 12px 12px;
}

.tl-pool-item-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.tl-pool-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tl-pool-item-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

.tl-pool-prereq-banner {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.75rem;
  margin: 0.4rem 0.4rem 0.2rem;
  background: rgba(245, 197, 24, 0.15);
  border-left: 3px solid var(--gold-dark);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber);
  line-height: 1.35;
}

.tl-pool-item-disabled {
  opacity: 0.38;
  filter: grayscale(60%);
  cursor: not-allowed !important;
  pointer-events: none;
}

.tl-pool-item-badge {
  margin-left: auto;
  padding: 0.15rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  background: #1a5c2a;
  color: #ffffff;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tl-pool-empty {
  padding: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* ── État vide timeline ──────────────────────────────────── */
.tl-empty {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Date à renseigner ───────────────────────────────────── */
.tl-pending {
  font-size: 0.67rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* ── Timeline ────────────────────────────────────────────── */
.tl-timeline {
  margin-bottom: 0.5rem;
}

.tl-opt-add-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  padding: 0.65rem 1rem;
  background: var(--surface-alt);
  border: 1px dashed var(--border);
  border-radius: 10px;
  margin-top: 0.4rem;
}

.tl-opt-add-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
  font-family: var(--font-head);
}

.tl-opt-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--gray-700);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
}
.tl-opt-chip:hover {
  background: var(--gray-900);
  color: #fff;
  border-color: var(--gray-900);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.tl-chip-plus {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  color: var(--green);
  margin-top: -1px;
}
.tl-opt-chip:hover .tl-chip-plus {
  color: #6bff9e;
}

/* ── Widget de branchement / décision ───────────────────── */
.tl-branch {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin: 1rem 0;
  box-shadow: var(--shadow);
}

.tl-branch-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.85rem;
  font-family: var(--font-head);
}

.tl-branch-btns {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tl-branch-btn {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-head);
  transition: filter 0.18s, transform 0.12s, box-shadow 0.18s;
}
.tl-branch-btn strong {
  font-size: 0.86rem;
  display: block;
}
.tl-branch-btn span {
  font-size: 0.73rem;
  opacity: 0.85;
}
.tl-branch-btn:hover {
  filter: brightness(0.92);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.tl-branch-btn:active {
  transform: translateY(0);
}
.tl-branch-btn.tl-bb-green {
  background: var(--green);
  color: #fff;
}
.tl-branch-btn.tl-bb-red {
  background: var(--red);
  color: #fff;
}
.tl-branch-btn.tl-bb-amber {
  background: var(--amber);
  color: #fff;
}

/* ── Bouton d'aide ───────────────────────────────────────── */
.tl-btn-aide {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.85rem;
  border-radius: 99px;
  background: #e8f0fe;
  border: 1px solid #b8d0fb;
  color: #1a56db;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-head);
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.18s, box-shadow 0.18s;
}
.tl-btn-aide span {
  font-size: 0.85rem;
  font-weight: 900;
}
.tl-btn-aide:hover {
  background: #d0e2ff;
  box-shadow: 0 2px 8px rgba(26, 86, 219, 0.18);
}

/* ── Bouton "Modifier ce choix" ──────────────────────────── */
.tl-modifier-wrap {
  margin: 0.3rem 0 0.7rem;
}

.tl-btn-modifier {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #1a56db;
  background: #e8f0fe;
  border: 1px solid #b8d0fb;
  border-radius: 7px;
  cursor: pointer;
  padding: 0.38rem 0.85rem;
  font-family: var(--font-head);
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
}
.tl-btn-modifier:hover {
  background: #d0e2ff;
  color: #1140a8;
  box-shadow: 0 2px 8px rgba(26, 86, 219, 0.18);
}

.tl-modifier-ico {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

/* ── Bouton supprimer (opts) — redesigné ─────────────────── */
.tl-opt-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  background: var(--red-light);
  border: 1px solid rgba(192, 57, 43, 0.25);
  border-radius: 7px;
  color: var(--red);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.tl-opt-del svg {
  display: block;
}
.tl-opt-del:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 2px 8px rgba(192, 57, 43, 0.3);
}

/* ── Texte motif en bleu quand renseigné ─────────────────── */
.tl-motif-ok .tl-motif-input {
  color: #1a56db;
  font-weight: 600;
}

/* ── Pied de page ────────────────────────────────────────── */
.tl-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.tl-btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.77rem;
  color: var(--red);
  background: var(--red-light);
  border: 1px solid rgba(192, 57, 43, 0.3);
  border-radius: 7px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.tl-btn-reset svg {
  flex-shrink: 0;
}
.tl-btn-reset:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 2px 8px rgba(192, 57, 43, 0.25);
}

.tl-lien-retour {
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 700;
  background: var(--green-light);
  border-radius: 7px;
  padding: 0.45rem 1.1rem;
  text-decoration: none;
  border: 1px solid rgba(26, 92, 42, 0.18);
  transition: opacity 0.2s, box-shadow 0.2s;
}
.tl-lien-retour:hover {
  opacity: 0.82;
  box-shadow: 0 2px 8px rgba(26, 92, 42, 0.18);
}

/* ── Modal d'aide ────────────────────────────────────────── */
.tl-aide-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.tl-aide-boite {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tl-aide-entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.tl-aide-titre {
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font-head);
  color: var(--text);
  margin: 0;
}

.tl-aide-fermer {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 7px;
  width: 2rem;
  height: 2rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.18s, color 0.18s;
}
.tl-aide-fermer:hover {
  background: var(--red-light);
  color: var(--red);
  border-color: rgba(192, 57, 43, 0.3);
}

.tl-aide-corps {
  overflow-y: auto;
  padding: 1rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tl-aide-bloc {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.tl-aide-bloc-titre {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.4rem;
}
.tl-aide-bloc-titre strong {
  font-size: 0.86rem;
  font-family: var(--font-head);
  color: var(--text);
}

.tl-aide-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--red);
  color: #fff;
  border-radius: 5px;
  font-size: 0.65rem;
  font-weight: 800;
  font-family: var(--font-head);
  letter-spacing: 0;
}

.tl-aide-texte {
  font-size: 0.81rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  padding-left: 1.6rem;
}

/* ── Mode sombre ─────────────────────────────────────────── */
[data-theme=dark] .tl-progress {
  background: #1e2229;
  border-color: rgba(255, 255, 255, 0.07);
}
[data-theme=dark] .tl-row {
  background: #252a33;
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme=dark] .tl-row:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
[data-theme=dark] .tl-row.tl-row-done {
  background: rgba(26, 92, 42, 0.18);
  border-color: rgba(26, 92, 42, 0.3);
}
[data-theme=dark] .tl-row.tl-row-opt {
  background: rgba(123, 104, 238, 0.12);
}
[data-theme=dark] .tl-dot {
  background: #1e2229;
  border-color: rgba(255, 255, 255, 0.2);
}
[data-theme=dark] .tl-branch {
  background: #1e2229;
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme=dark] .tl-opt-add-bar {
  background: #1e2229;
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme=dark] .tl-opt-chip {
  background: #252a33;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e0e0e0;
}
[data-theme=dark] .tl-opt-chip:hover {
  background: #e0e0e0;
  color: #111;
  border-color: #e0e0e0;
}
[data-theme=dark] .tl-row-date {
  background: #2e333b;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f0f0f0;
}
[data-theme=dark] .tl-motif-row {
  background: #1e2229;
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme=dark] .tl-motif-row.tl-motif-ok {
  background: rgba(26, 92, 42, 0.15);
}
[data-theme=dark] .tl-motif-row.tl-motif-vide {
  background: rgba(192, 57, 43, 0.1);
}
[data-theme=dark] .tl-motif-input {
  background: #2e333b;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f0f0f0;
}
[data-theme=dark] .tl-motif-ok .tl-motif-input {
  color: #6ea8fe;
}
[data-theme=dark] .tl-row-group .tl-row {
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme=dark] .tl-btn-modifier {
  background: rgba(26, 86, 219, 0.18);
  border-color: rgba(26, 86, 219, 0.3);
  color: #6ea8fe;
}
[data-theme=dark] .tl-modal-box {
  background: #1e2229;
}
[data-theme=dark] .tl-modal-input {
  background: #2e333b;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f0f0f0;
}
[data-theme=dark] .tl-btn-aide {
  background: rgba(26, 86, 219, 0.18);
  border-color: rgba(26, 86, 219, 0.3);
  color: #6ea8fe;
}
[data-theme=dark] .tl-opt-del {
  background: rgba(192, 57, 43, 0.18);
  border-color: rgba(192, 57, 43, 0.3);
}
[data-theme=dark] .tl-aide-boite {
  background: #252a33;
}
[data-theme=dark] .tl-aide-bloc {
  background: #1e2229;
  border-color: rgba(255, 255, 255, 0.08);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .tl-row {
    padding: 0.3rem 0.55rem 0.3rem 0.35rem;
    gap: 0.4rem;
  }
  .tl-opt-del {
    flex-shrink: 0;
  }
  .tl-branch-btns {
    flex-direction: column;
  }
  .tl-branch-btn {
    min-width: 0;
  }
  .tl-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .tl-lien-retour {
    text-align: center;
  }
  .tl-track {
    padding-left: 1.2rem;
  }
  .tl-progress-head {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .tl-btn-aide {
    order: -1;
  }
  .tl-aide-boite {
    max-height: 95vh;
  }
  .tl-row-label {
    font-size: 0.75rem;
  }
  .tl-modal-box {
    max-width: 100%;
    border-radius: 10px;
  }
  .tl-days strong {
    font-size: 0.8rem;
  }
}
/* ══════════════════════════════════════════════════════════
   ANIMATIONS DE DÉFILEMENT (Scroll Reveal)
   ══════════════════════════════════════════════════════════ */
/* État initial — éléments invisibles avant l'entrée dans le viewport */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.reveal--left {
  transform: translateX(-36px);
}

.reveal.reveal--right {
  transform: translateX(36px);
}

.reveal.reveal--scale {
  transform: scale(0.93);
}

/* État final — visible */
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Délais en cascade pour les grilles (enfants successifs) */
.reveal-group > *:nth-child(1) {
  transition-delay: 0s;
}

.reveal-group > *:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal-group > *:nth-child(3) {
  transition-delay: 0.2s;
}

.reveal-group > *:nth-child(4) {
  transition-delay: 0.3s;
}

.reveal-group > *:nth-child(5) {
  transition-delay: 0.4s;
}

.reveal-group > *:nth-child(6) {
  transition-delay: 0.5s;
}

/* Désactivé si l'utilisateur préfère les animations réduites */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.reveal--left, .reveal.reveal--right, .reveal.reveal--scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* ============================================================
   CANADABOT — Widget de chat IA
   ============================================================ */
/* Bouton déclencheur */
.cb-trigger {
  position: fixed;
  bottom: 88px;
  left: 20px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(192, 57, 43, 0.45);
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cb-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(192, 57, 43, 0.55);
}
.cb-trigger svg {
  width: 22px;
  height: 22px;
}

.cb-trigger-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.cb-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e74c3c;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* Panneau de chat */
.cb-panel {
  position: fixed;
  bottom: 152px;
  left: 20px;
  width: 340px;
  max-width: calc(100vw - 40px);
  height: 500px;
  max-height: calc(100vh - 180px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  z-index: 998;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.cb-panel.cb-panel-open {
  opacity: 1;
  transform: none;
  pointer-events: all;
}

/* En-tête */
.cb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: var(--red);
  color: #fff;
  flex-shrink: 0;
}

.cb-header-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.cb-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.cb-avatar img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.cb-bot-name {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
}

.cb-bot-status {
  font-size: 0.72rem;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.cb-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ecc71;
  display: inline-block;
  animation: cb-pulse-dot 2s ease-in-out infinite;
}

@keyframes cb-pulse-dot {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
.cb-header-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
}
.cb-header-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

/* Zone messages */
.cb-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.9rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  scroll-behavior: smooth;
}
.cb-messages::-webkit-scrollbar {
  width: 4px;
}
.cb-messages::-webkit-scrollbar-track {
  background: transparent;
}
.cb-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

/* Bulles */
.cb-msg {
  display: flex;
  max-width: 88%;
}
.cb-msg.cb-msg-user {
  align-self: flex-end;
}
.cb-msg.cb-msg-user .cb-bubble {
  background: var(--red);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
}
.cb-msg.cb-msg-bot {
  align-self: flex-start;
}
.cb-msg.cb-msg-bot .cb-bubble {
  background: var(--surface-alt);
  color: var(--text);
  border-radius: 16px 16px 16px 4px;
}

.cb-bubble {
  padding: 0.55rem 0.8rem;
  font-size: 0.83rem;
  line-height: 1.55;
  word-break: break-word;
}
.cb-bubble code {
  background: rgba(0, 0, 0, 0.1);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* Indicateur de frappe */
.cb-typing-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.6rem 0.9rem;
}
.cb-typing-bubble span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: cb-typing 1.2s ease-in-out infinite;
}
.cb-typing-bubble span:nth-child(2) {
  animation-delay: 0.2s;
}
.cb-typing-bubble span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes cb-typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}
/* Suggestions rapides */
.cb-suggestions {
  padding: 0.4rem 0.85rem 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex-shrink: 0;
}

.cb-suggestion-btn {
  background: var(--red-light);
  color: var(--red);
  border: 1px solid rgba(192, 57, 43, 0.2);
  border-radius: 50px;
  padding: 0.3rem 0.7rem;
  font-size: 0.73rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.cb-suggestion-btn:hover {
  background: var(--red);
  color: #fff;
}

/* Zone de saisie */
.cb-input-area {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.cb-input {
  flex: 1;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.55rem 0.8rem;
  font-size: 0.83rem;
  color: var(--text);
  resize: none;
  outline: none;
  font-family: inherit;
  line-height: 1.4;
  transition: border-color 0.15s;
  max-height: 120px;
  overflow-y: auto;
}
.cb-input:focus {
  border-color: var(--red);
}
.cb-input::placeholder {
  color: var(--text-muted);
}

.cb-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}
.cb-send:hover {
  background: #a93226;
}
.cb-send:active {
  transform: scale(0.93);
}
.cb-send svg {
  width: 15px;
  height: 15px;
}

/* Pied de page */
.cb-footer {
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-muted);
  padding: 0.3rem 0.85rem 0.55rem;
  flex-shrink: 0;
}
.cb-footer a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* Dark mode */
[data-theme=dark] .cb-trigger {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}
[data-theme=dark] .cb-panel {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

/* Mobile */
@media (max-width: 480px) {
  .cb-panel {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 18px 18px 0 0;
    height: 70vh;
    max-height: 70vh;
  }
  .cb-trigger {
    bottom: 80px;
    left: 16px;
  }
}
