:root {
  --primary: #FF7066;
  --primary-hover: #F5564B;
  --primary-soft: #FFE9E5;
  --primary-faint: #FFF5F2;
  --secondary: #6B5BFF;
  --secondary-soft: #EEEAFF;
  --bg: #FFFAF7;
  --surface: #FFFFFF;
  --text: #1A1F36;
  --text-soft: #5E6479;
  --text-faint: #98A0AE;
  --border: #F1E6DF;
  --border-soft: #F8EFEA;
  --success: #2DBC8F;
  --success-soft: #E0F5EE;
  --warning: #FFB95E;
  --warning-soft: #FFF3DE;
  --danger: #EF5350;
  --danger-soft: #FFE5E1;
  --shadow-sm: 0 2px 4px rgba(15,15,30,.04);
  --shadow: 0 4px 16px rgba(15,15,30,.06), 0 1px 2px rgba(15,15,30,.04);
  --shadow-lg: 0 24px 48px -16px rgba(15,15,30,.12), 0 4px 12px rgba(15,15,30,.06);
  --shadow-glow: 0 0 0 1px var(--primary-soft), 0 12px 24px -8px rgba(255,112,102,.25);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 1200px 600px at 80% -10%, var(--primary-soft) 0%, transparent 70%),
    radial-gradient(ellipse 1000px 600px at -10% 110%, var(--secondary-soft) 0%, transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
}
.serif { font-family: 'Fraunces', serif; }
a { color: inherit; }

/* ============ NAV ============ */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,250,247,0.8);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 26px;
  color: var(--primary); letter-spacing: -0.02em; text-decoration: none;
  display: flex; align-items: center; gap: 6px;
}
.logo span.dot { color: var(--secondary); }
.nav-links { display: flex; gap: 4px; }
.nav-link {
  padding: 8px 14px; border-radius: 10px;
  color: var(--text-soft); text-decoration: none; font-weight: 500; font-size: 14.5px;
  transition: all .15s;
}
.nav-link:hover { background: var(--primary-soft); color: var(--text); }
.nav-link.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #FF9A8E);
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .15s;
}
.avatar:hover { transform: scale(1.05); }

/* ============ MAIN ============ */
main { max-width: 1240px; margin: 0 auto; padding: 48px 32px 96px; }

/* BREADCRUMB */
.breadcrumb {
  display: flex; align-items: center; gap: 8px; font-size: 13.5px;
  color: var(--text-soft); margin-bottom: 20px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb i { width: 14px; height: 14px; color: var(--text-faint); }

/* ============ HERO ============ */
.hero-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  position: relative; overflow: hidden;
}
.hero-card::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
  opacity: 0.55;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-soft); color: var(--primary);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; margin-bottom: 14px;
}
.hero-eyebrow i { width: 14px; height: 14px; }
.hero-school {
  font-size: 14.5px; color: var(--text-soft); margin-bottom: 6px;
  font-weight: 500;
}
.hero-title {
  font-family: 'Fraunces', serif; font-size: 42px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 14px;
  max-width: 760px;
}
.hero-title em { font-style: italic; color: var(--primary); font-weight: 600; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  background: var(--bg); border: 1px solid var(--border-soft);
  color: var(--text-soft);
}
.badge i { width: 13px; height: 13px; }
.badge.public { background: var(--success-soft); color: var(--success); border-color: transparent; }
.badge.prive { background: var(--secondary-soft); color: var(--secondary); border-color: transparent; }
.badge.selective { background: var(--warning-soft); color: #C77D24; border-color: transparent; }
.badge.bac-general { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.badge.bac-techno { background: var(--secondary-soft); color: var(--secondary); border-color: transparent; }
.badge.bac-pro { background: #FFE7D9; color: #C36926; border-color: transparent; }
.hero-meta {
  display: flex; gap: 24px; margin-top: 24px; padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-size: 13.5px; color: var(--text-soft); flex-wrap: wrap;
}
.hero-meta-item { display: flex; align-items: center; gap: 8px; }
.hero-meta-item i { width: 16px; height: 16px; stroke-width: 2; color: var(--text-faint); }
.hero-meta-item strong { color: var(--text); font-weight: 600; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: white;
  padding: 12px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: all .15s; margin-top: 20px;
  box-shadow: 0 8px 16px -6px rgba(255,112,102,.4);
}
.hero-cta:hover { background: var(--primary-hover); transform: translateY(-1px); }
.hero-cta i { width: 16px; height: 16px; }

/* ============ CATEGORIE DISPLAY (badge qualitatif grand format) ============ */
.categorie-display {
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  margin-bottom: 40px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}
.categorie-display::after {
  content: ''; position: absolute; bottom: -100px; right: -50px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, currentColor 0%, transparent 70%);
  opacity: 0.04; pointer-events: none;
}
.categorie-display .categorie-icon-wrap {
  width: 84px; height: 84px; border-radius: 22px;
  background: rgba(255,255,255,0.55);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 24px -10px currentColor;
}
.categorie-display .categorie-icon-wrap i { width: 42px; height: 42px; stroke-width: 2; }
.categorie-display .categorie-text { min-width: 0; }
.categorie-display .categorie-label {
  font-family: 'Fraunces', serif;
  font-size: 36px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.05;
  margin-bottom: 4px;
}
.categorie-display .categorie-sub {
  font-size: 15px; font-weight: 600;
  opacity: 0.78;
  margin-bottom: 10px;
}
.categorie-display .categorie-description {
  font-size: 14.5px; line-height: 1.55;
  color: var(--text);
  opacity: 0.85;
  max-width: 560px;
}
.categorie-display .categorie-source {
  margin-top: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500;
  color: var(--text-soft);
  background: rgba(255,255,255,0.55);
  padding: 6px 12px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.categorie-display .categorie-source i { width: 13px; height: 13px; }

/* Indisponible : style discret */
.categorie-display.indisponible {
  background: linear-gradient(135deg, #F1F2F5, #FFFFFF);
}

/* Bloc "chances" sans profil : invitation à agir (au lieu d'un mur "Indisponible") */
.categorie-display.chances-cta {
  flex-direction: row; align-items: flex-start; text-align: left; gap: 22px;
  background: linear-gradient(135deg, #FFE9E5 0%, #FFFFFF 100%) !important;
}
.chances-cta .cta-ic {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px; background: #fff;
  display: flex; align-items: center; justify-content: center; color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.chances-cta .cta-ic i { width: 28px; height: 28px; }
.chances-cta .cta-title {
  font-family: 'Fraunces', serif; font-size: 23px; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.chances-cta .cta-text { font-size: 15px; line-height: 1.55; color: var(--text-soft); max-width: 580px; }
.chances-cta .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.chances-cta .cta-btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px;
  padding: 12px 20px; border-radius: 12px; text-decoration: none; transition: transform .15s;
}
.chances-cta .cta-btn i { width: 17px; height: 17px; }
.chances-cta .cta-btn.primary { background: var(--primary); color: #fff; }
.chances-cta .cta-btn.ghost { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
.chances-cta .cta-btn:hover { transform: translateY(-1px); }

/* ============ POURQUOI CETTE CATÉGORIE (raisons concrètes + citations PDF) ============ */
.raisons-section {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 36px 40px;
  margin-top: -24px; margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}
.raisons-section .raisons-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 6px;
}
.raisons-section .raisons-header i {
  width: 22px; height: 22px; color: var(--primary); stroke-width: 2;
}
.raisons-section h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--text);
  margin: 0;
}
.raisons-section .raisons-subtitle {
  font-size: 13.5px; color: var(--text-soft);
  margin-bottom: 22px; line-height: 1.55;
}
.raisons-list {
  display: flex; flex-direction: column; gap: 14px;
}
.raison-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-left-width: 3px;
  transition: box-shadow .15s;
}
.raison-card:hover { box-shadow: var(--shadow-sm); }
.raison-card .raison-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; align-self: flex-start;
}
.raison-card .raison-icon i { width: 20px; height: 20px; stroke-width: 2; }
.raison-card .raison-titre {
  font-size: 15px; font-weight: 600;
  color: var(--text);
  margin-bottom: 4px; line-height: 1.35;
}
.raison-card .raison-desc {
  font-size: 14px; color: var(--text-soft);
  line-height: 1.6;
}

/* Variantes par type — gradient retiré, simple fond bg + border-left coloré */
.raison-card.positif { border-left-color: var(--success); }
.raison-card.positif .raison-icon { background: var(--success-soft); color: var(--success); }

.raison-card.attention { border-left-color: var(--warning); }
.raison-card.attention .raison-icon { background: var(--warning-soft); color: #C77A00; }

.raison-card.negatif { border-left-color: var(--danger); }
.raison-card.negatif .raison-icon { background: var(--danger-soft); color: var(--danger); }

.raison-card.info { border-left-color: var(--secondary); }
.raison-card.info .raison-icon { background: var(--secondary-soft); color: var(--secondary); }

/* Blockquote citation PDF */
.raison-card .raison-quote {
  margin-top: 12px;
  padding: 12px 16px 12px 18px;
  background: rgba(255,255,255,0.6);
  border-left: 3px solid var(--primary);
  border-radius: 0 10px 10px 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px; line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
}
.raison-card .raison-quote::before {
  content: '"'; font-size: 28px; line-height: 0;
  vertical-align: -8px; color: var(--primary);
  margin-right: 4px; font-style: normal;
}
.raison-card .raison-quote::after {
  content: '"'; font-size: 28px; line-height: 0;
  vertical-align: -8px; color: var(--primary);
  margin-left: 4px; font-style: normal;
}
.raison-card .raison-source {
  margin-top: 10px;
  font-size: 12px; color: var(--text-faint);
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.raison-card .raison-source i { width: 12px; height: 12px; }
.raison-card .raison-source a {
  color: var(--primary); font-weight: 600;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.raison-card .raison-source a:hover { text-decoration: underline; }

/* ============ PROBA DETAIL TOGGLE (panel dépliable, sans afficher le % final) ============ */
.proba-tech-toggle {
  background: var(--surface); color: var(--text-soft);
  border: 1px solid var(--border);
  padding: 10px 16px; border-radius: 12px;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .15s;
  font-family: inherit;
  flex-shrink: 0;
  align-self: center;
}
.proba-tech-toggle:hover { border-color: var(--primary); color: var(--primary); }
.proba-tech-toggle i { width: 15px; height: 15px; transition: transform .2s; }
.proba-tech-toggle.open i { transform: rotate(180deg); }

.proba-tech-detail {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: -24px; margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.proba-tech-detail.open { display: block; }
.proba-tech-detail .tech-intro {
  font-size: 13.5px; color: var(--text-soft);
  margin-bottom: 16px; line-height: 1.55;
}
.proba-tech-detail-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.proba-tech-item {
  background: var(--bg);
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
}
.proba-tech-item .lbl {
  font-size: 11.5px; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-soft); margin-bottom: 6px;
  font-weight: 600;
}
.proba-tech-item .val {
  font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600;
  color: var(--text); letter-spacing: -0.01em;
}

/* ============ (Legacy) PROBA BLOCK — conservé pour compat ============ */
.proba-block {
  background: linear-gradient(135deg, var(--primary) 0%, #FF8E84 60%, var(--secondary) 140%);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 32px;
  color: white;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.proba-block::after {
  content: ''; position: absolute; bottom: -100px; right: -50px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 70%);
  pointer-events: none;
}
.proba-grid {
  display: grid; grid-template-columns: auto 1fr auto; gap: 32px;
  align-items: center; position: relative; z-index: 1;
}
.proba-large {
  font-family: 'Fraunces', serif;
  font-size: 96px; font-weight: 600; line-height: 1;
  letter-spacing: -0.04em;
}
.proba-large small { font-size: 36px; font-weight: 500; opacity: .85; }
.proba-info { padding-left: 8px; }
.proba-category {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.2); padding: 6px 12px;
  border-radius: 999px; font-size: 12.5px; font-weight: 600;
  margin-bottom: 10px; backdrop-filter: blur(8px);
}
.proba-category i { width: 14px; height: 14px; }
.proba-headline {
  font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600;
  letter-spacing: -0.01em; margin-bottom: 8px; line-height: 1.25;
}
.proba-breakdown {
  font-size: 14px; opacity: .9; line-height: 1.55;
}
.proba-breakdown strong { font-weight: 700; }
.proba-toggle {
  background: rgba(255,255,255,.15);
  color: white; border: 1px solid rgba(255,255,255,.25);
  padding: 10px 16px; border-radius: 12px;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .15s; backdrop-filter: blur(8px);
  font-family: inherit;
}
.proba-toggle:hover { background: rgba(255,255,255,.25); }
.proba-toggle i { width: 15px; height: 15px; transition: transform .2s; }
.proba-toggle.open i { transform: rotate(180deg); }
.proba-detail {
  display: none; margin-top: 24px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: 13.5px; line-height: 1.6; opacity: .92;
  position: relative; z-index: 1;
}
.proba-detail.open { display: block; }
.proba-detail-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.proba-detail-item {
  background: rgba(255,255,255,.12); border-radius: 12px;
  padding: 14px 16px; backdrop-filter: blur(8px);
}
.proba-detail-item .lbl {
  font-size: 11.5px; text-transform: uppercase;
  letter-spacing: 0.05em; opacity: .8; margin-bottom: 4px;
}
.proba-detail-item .val {
  font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600;
}

.proba-login-prompt {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 28px 32px; margin-bottom: 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  box-shadow: var(--shadow-sm);
}
.proba-login-prompt .icon-wrap {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.proba-login-prompt .icon-wrap i { width: 26px; height: 26px; }
.proba-login-prompt .text-wrap { flex: 1; }
.proba-login-prompt h3 {
  font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600;
  margin-bottom: 4px;
}
.proba-login-prompt p { color: var(--text-soft); font-size: 14px; }

/* ============ SECTIONS ============ */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin: 72px 0 20px;
}
.section-title {
  font-family: 'Fraunces', serif; font-size: 26px; font-weight: 600;
  letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px;
}
.section-title i { width: 20px; height: 20px; color: var(--primary); }
.section-link {
  color: var(--text-soft); font-size: 14px; text-decoration: none;
  font-weight: 500; display: flex; align-items: center; gap: 4px;
}
.section-link:hover { color: var(--primary); }

/* ============ STATS KPI ============ */
.stats {
  /* Passage à un grid plus aéré : 6 sur écran XL, 3 par défaut */
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 26px 22px; border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm); transition: border-color .2s;
  position: relative; overflow: hidden;
}
.stat-card:hover { border-color: var(--primary-soft); }
.stat-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.stat-icon i { width: 18px; height: 18px; }
.stat-icon.peach { background: var(--primary-soft); color: var(--primary); }
.stat-icon.purple { background: var(--secondary-soft); color: var(--secondary); }
.stat-icon.green { background: var(--success-soft); color: var(--success); }
.stat-icon.yellow { background: var(--warning-soft); color: var(--warning); }
.stat-icon.red { background: var(--danger-soft); color: var(--danger); }
.stat-icon.gray { background: #EEF1F6; color: var(--text-soft); }
.stat-label {
  font-size: 11.5px; color: var(--text-soft); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500;
}
.stat-value {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 26px; letter-spacing: -0.02em; line-height: 1.1;
}
.stat-value small { font-size: 15px; font-weight: 500; color: var(--text-soft); }
.stat-sub { font-size: 12px; color: var(--text-soft); margin-top: 6px; line-height: 1.35; }

/* ============ CARDS GENERIC ============ */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}
.card-title {
  font-family: 'Fraunces', serif; font-size: 18px; font-weight: 600;
  letter-spacing: -0.01em; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.card-title i { width: 18px; height: 18px; color: var(--text-faint); }
.card-subtitle {
  font-size: 13.5px; color: var(--text-soft); margin-bottom: 18px;
}

/* TWO-COL */
.two-col {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px;
  margin-bottom: 20px;
}
.two-col.equal { grid-template-columns: 1fr 1fr; }

/* CHART CONTAINERS */
.chart-wrap {
  position: relative; height: 280px;
}
.chart-wrap.tall { height: 360px; }
.chart-wrap.small { height: 220px; }

/* CASCADE */
.cascade-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}
.cascade-step {
  text-align: center; padding: 10px 8px;
  background: var(--bg); border-radius: 10px;
}
.cascade-step .num {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 22px; letter-spacing: -0.02em; line-height: 1;
}
.cascade-step .lbl {
  font-size: 11px; color: var(--text-soft); margin-top: 4px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.cascade-step.s1 .num { color: var(--text); }
.cascade-step.s2 .num { color: var(--warning); }
.cascade-step.s3 .num { color: var(--secondary); }
.cascade-step.s4 .num { color: var(--primary); }

/* MENTIONS */
.mentions-stats {
  display: flex; justify-content: space-around; gap: 12px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  font-size: 12.5px;
}
.mentions-stat { text-align: center; }
.mentions-stat .val {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 18px;
  color: var(--primary);
}
.mentions-stat .lbl {
  color: var(--text-soft); margin-top: 2px;
}

/* CRITERES PONDERES */
.poids-list {
  display: flex; flex-direction: column; gap: 14px; margin-top: 16px;
}
.poids-row {
  display: flex; align-items: center; gap: 14px;
}
.poids-name {
  flex: 0 0 200px; font-size: 13.5px; font-weight: 500;
}
.poids-bar-wrap {
  flex: 1; background: var(--bg); border-radius: 999px;
  height: 14px; overflow: hidden; border: 1px solid var(--border-soft);
}
.poids-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--primary), #FF9A8E);
  border-radius: 999px; transition: width .6s ease-out;
}
.poids-bar-fill.alt {
  background: linear-gradient(90deg, var(--secondary), #9C8FFF);
}
.poids-val {
  flex: 0 0 50px; text-align: right;
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 16px;
  color: var(--primary);
}

/* CRITERES DETAIL ACCORDION */
.criteria-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.criteria-item {
  background: var(--bg); border-radius: 12px;
  border: 1px solid var(--border-soft);
  overflow: hidden;
  transition: all .2s;
}
.criteria-item:hover { border-color: var(--primary-soft); }
.criteria-head {
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; gap: 14px;
}
.criteria-head .lhs { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.criteria-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; flex-shrink: 0;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.criteria-pill.essentiel { background: var(--danger-soft); color: var(--danger); }
.criteria-pill.tres-important { background: #FFD9C9; color: #C24F1A; }
.criteria-pill.important { background: var(--warning-soft); color: #C77D24; }
.criteria-pill.complementaire { background: #E9ECF2; color: var(--text-soft); }
.criteria-name {
  font-size: 14.5px; font-weight: 600; line-height: 1.3;
}
.criteria-field {
  font-size: 12px; color: var(--text-soft); margin-top: 2px;
}
.criteria-chevron {
  width: 22px; height: 22px; color: var(--text-faint);
  flex-shrink: 0; transition: transform .2s;
}
.criteria-item.open .criteria-chevron { transform: rotate(180deg); }
.criteria-body {
  display: none; padding: 0 18px 16px;
  font-size: 13.5px; color: var(--text-soft); line-height: 1.6;
  border-top: 1px solid var(--border-soft);
}
.criteria-item.open .criteria-body { display: block; padding-top: 14px; }

/* PROFIL LLM — gradient atténué, fond surface + accent doux */
.profil-llm-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.profil-llm-card::before {
  content: ''; position: absolute; top: -120px; right: -80px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}
.llm-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-soft); color: var(--primary);
  padding: 5px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.llm-pill i { width: 13px; height: 13px; }
.llm-resume {
  font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500;
  line-height: 1.35; letter-spacing: -0.01em; margin-bottom: 24px;
  position: relative; z-index: 1;
  max-width: 720px;
}
.llm-resume em { font-style: italic; color: var(--primary); }
.llm-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  position: relative; z-index: 1;
}
.llm-block {
  background: var(--surface); border-radius: 14px;
  border: 1px solid var(--border-soft);
  padding: 18px 20px;
}
.llm-block.full { grid-column: 1 / -1; }
.llm-block h4 {
  font-family: 'Fraunces', serif; font-size: 15.5px; font-weight: 600;
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.llm-block h4 i { width: 16px; height: 16px; color: var(--text-faint); }
.llm-block h4.green i { color: var(--success); }
.llm-block h4.red i { color: var(--danger); }
.llm-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13.5px; color: var(--text-soft); line-height: 1.45;
}
.llm-list li {
  display: flex; align-items: flex-start; gap: 8px;
  padding-left: 0;
}
.llm-list li i { width: 14px; height: 14px; color: var(--success); flex-shrink: 0; margin-top: 3px; }
.llm-list.red li i { color: var(--danger); }
.llm-meta-row {
  display: flex; align-items: center; gap: 14px;
  font-size: 12.5px; color: var(--text-soft);
  margin-top: 6px;
}
.llm-meta-row strong { color: var(--text); font-weight: 600; }
.llm-rating {
  display: inline-flex; gap: 2px;
}
.llm-rating .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border);
}
.llm-rating .dot.on { background: var(--primary); }

/* DOUBLETTES */
.doublette-list {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 16px;
}
.doublette-row {
  display: flex; align-items: center; gap: 14px;
}
.doublette-name {
  flex: 0 0 240px;
  font-size: 13px; font-weight: 500; line-height: 1.3;
}
.doublette-bar-wrap {
  flex: 1; background: var(--bg); border-radius: 8px;
  height: 22px; overflow: hidden; position: relative;
  border: 1px solid var(--border-soft);
}
.doublette-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--primary) 0%, #FF9A8E 100%);
  border-radius: 8px; transition: width .6s ease-out;
  position: relative;
}
.doublette-val {
  flex: 0 0 70px; text-align: right;
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 15px; color: var(--primary);
}

/* PDF EXTRAITS */
.pdf-card {
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border-soft); padding: 24px 28px;
  box-shadow: var(--shadow-sm); position: relative;
}
.pdf-card-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.pdf-card-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--secondary-soft); color: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pdf-card-icon i { width: 18px; height: 18px; }
.pdf-card-head h3 {
  font-family: 'Fraunces', serif; font-size: 17px; font-weight: 600;
  letter-spacing: -0.01em;
}
.pdf-quote {
  font-size: 14px; color: var(--text-soft); line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding-left: 16px;
  border-left: 3px solid var(--primary-soft);
}
.pdf-source {
  display: flex; align-items: center; gap: 6px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  font-size: 12px; color: var(--text-faint);
}
.pdf-source a { color: var(--primary); font-weight: 600; text-decoration: none; }
.pdf-source a:hover { text-decoration: underline; }
.pdf-source i { width: 13px; height: 13px; }

/* GEO MAP */
.geo-card {
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border-soft); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.geo-head {
  padding: 24px 28px 18px;
}
.map-canvas {
  height: 320px; width: 100%;
  border-top: 1px solid var(--border-soft);
}
.geo-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border-soft);
}
.geo-meta-item {
  background: var(--surface); padding: 16px 20px;
}
.geo-meta-item .lbl {
  font-size: 11.5px; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500;
  margin-bottom: 4px;
}
.geo-meta-item .val {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 20px; letter-spacing: -0.01em;
}

/* PRESTIGE — gradient violet remplacé par fond surface + bordure violette discrète */
.prestige-card {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-lg);
  border: 1px solid var(--secondary-soft);
  padding: 36px 40px; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.prestige-card::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--secondary-soft) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}
.prestige-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--secondary-soft); color: var(--secondary);
  padding: 5px 12px;
  border-radius: 999px; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 14px;
  position: relative; z-index: 1;
}
.prestige-pill i { width: 13px; height: 13px; }
.prestige-title {
  font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600;
  margin-bottom: 4px; letter-spacing: -0.01em;
  position: relative; z-index: 1;
}
.prestige-sub { font-size: 14px; color: var(--text-soft); margin-bottom: 24px; position: relative; z-index: 1; }
.prestige-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  position: relative; z-index: 1;
}
.prestige-stat {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 14px; padding: 18px 20px;
}
.prestige-stat .lbl {
  font-size: 11px; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 6px; font-weight: 600;
}
.prestige-stat .val {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 26px;
  color: var(--secondary);
  letter-spacing: -0.02em; line-height: 1;
}

/* ============ ÉVOLUTION 5 ANS (sparklines SVG + table + tendance) ============ */
.evol-section {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  margin-top: 16px;
}
.evol-section::before {
  content: ''; position: absolute; top: -120px; right: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
  opacity: 0.4; pointer-events: none;
}
.evol-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  position: relative; z-index: 1;
  margin-bottom: 6px;
}
.evol-head h2 {
  font-family: 'Fraunces', serif; font-size: 26px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.evol-head h2 i { width: 22px; height: 22px; color: var(--primary); }
.evol-head h2 em { font-style: italic; color: var(--primary); font-weight: 600; }
.evol-subtitle {
  font-size: 13.5px; color: var(--text-soft);
  margin-bottom: 22px; position: relative; z-index: 1;
  line-height: 1.55;
}
.evol-trend-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
}
.evol-trend-badge i { width: 15px; height: 15px; }
.evol-trend-badge.t-forte-hausse { background: var(--primary-soft); color: var(--primary); }
.evol-trend-badge.t-hausse { background: var(--warning-soft); color: #C77D24; }
.evol-trend-badge.t-stable { background: var(--bg); color: var(--text-soft); border: 1px solid var(--border-soft); }
.evol-trend-badge.t-baisse { background: var(--success-soft); color: #1e8e6c; }
.evol-trend-badge.t-forte-baisse { background: var(--success-soft); color: var(--success); }

.evol-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  position: relative; z-index: 1;
  margin-bottom: 24px;
}
.evol-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.evol-card:hover {
  border-color: var(--primary-soft);
  box-shadow: var(--shadow-sm);
}
.evol-card-title {
  font-size: 11.5px; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 600;
}
.evol-card-value-row {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.evol-card-value {
  font-family: 'Fraunces', serif;
  font-size: 28px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1;
  color: var(--primary);
}
.evol-card-value small { font-size: 16px; font-weight: 500; color: var(--text-soft); }
.evol-card-delta {
  font-size: 12.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 8px; border-radius: 999px;
}
.evol-card-delta.positive { background: var(--success-soft); color: #1e8e6c; }
.evol-card-delta.negative { background: var(--danger-soft); color: var(--danger); }
.evol-card-delta.neutral { background: var(--bg); color: var(--text-soft); border: 1px solid var(--border-soft); }
.evol-spark {
  width: 100%; height: 64px; margin-top: 4px;
  overflow: visible;
}
.evol-spark .sp-area { fill: var(--primary); fill-opacity: 0.13; }
.evol-spark .sp-line {
  fill: none; stroke: var(--primary); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.evol-spark .sp-point {
  fill: var(--surface); stroke: var(--primary); stroke-width: 2;
}
.evol-spark .sp-point.last {
  fill: var(--primary); stroke: var(--surface); stroke-width: 2;
  filter: drop-shadow(0 2px 4px rgba(255,112,102,0.4));
}
.evol-spark .sp-x-label {
  font: 600 9px 'Inter', sans-serif; fill: var(--text-faint);
}
.evol-spark .sp-tooltip-bg {
  fill: var(--text); rx: 4; ry: 4;
}
.evol-spark .sp-tooltip-txt {
  font: 600 9px 'Inter', sans-serif; fill: #FFF;
}
/* Variantes couleur par card */
.evol-card.purple .evol-card-value { color: var(--secondary); }
.evol-card.purple .evol-spark .sp-line { stroke: var(--secondary); }
.evol-card.purple .evol-spark .sp-area { fill: var(--secondary); }
.evol-card.purple .evol-spark .sp-point { stroke: var(--secondary); }
.evol-card.purple .evol-spark .sp-point.last { fill: var(--secondary); }
.evol-card.green .evol-card-value { color: var(--success); }
.evol-card.green .evol-spark .sp-line { stroke: var(--success); }
.evol-card.green .evol-spark .sp-area { fill: var(--success); }
.evol-card.green .evol-spark .sp-point { stroke: var(--success); }
.evol-card.green .evol-spark .sp-point.last { fill: var(--success); }
.evol-card.warning .evol-card-value { color: var(--warning); }
.evol-card.warning .evol-spark .sp-line { stroke: var(--warning); }
.evol-card.warning .evol-spark .sp-area { fill: var(--warning); }
.evol-card.warning .evol-spark .sp-point { stroke: var(--warning); }
.evol-card.warning .evol-spark .sp-point.last { fill: var(--warning); }

.evol-card-empty {
  font-size: 13px; color: var(--text-faint); font-style: italic;
  padding: 18px 0 6px; text-align: center;
}

/* Tableau collapsible */
.evol-table-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); color: var(--text-soft);
  border: 1px solid var(--border);
  padding: 9px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .15s; font-family: inherit;
  margin-bottom: 8px;
}
.evol-table-toggle:hover { border-color: var(--primary); color: var(--primary); }
.evol-table-toggle i { width: 14px; height: 14px; transition: transform .2s; }
.evol-table-toggle.open i { transform: rotate(180deg); }

.evol-table-wrap {
  display: none;
  margin-top: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
  position: relative; z-index: 1;
}
.evol-table-wrap.open { display: block; }
.evol-table {
  width: 100%; border-collapse: collapse;
  font-size: 13.5px;
}
.evol-table th, .evol-table td {
  text-align: right; padding: 10px 14px;
  border-bottom: 1px solid var(--border-soft);
}
.evol-table th:first-child, .evol-table td:first-child {
  text-align: left; font-weight: 600;
  background: var(--bg);
}
.evol-table th {
  background: var(--bg); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-soft); font-weight: 600;
}
.evol-table tr:nth-child(even) td:not(:first-child) { background: rgba(255,250,247,0.5); }
.evol-table tr:last-child td { border-bottom: none; }
.evol-table td.null { color: var(--text-faint); font-style: italic; }

.evol-interpretation {
  margin-top: 22px; padding: 16px 20px;
  background: var(--primary-faint);
  border-left: 3px solid var(--primary);
  border-radius: 0 12px 12px 0;
  font-size: 14px; line-height: 1.6;
  color: var(--text);
  position: relative; z-index: 1;
}
.evol-interpretation strong { color: var(--primary); font-weight: 600; }
.evol-interpretation .evol-int-icon {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; margin-right: 4px;
}
.evol-interpretation .evol-int-icon i { width: 15px; height: 15px; }

/* HISTORICAL */
.historical-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border-soft); margin-top: 18px;
  border-radius: 12px; overflow: hidden;
}
.historical-meta-item {
  background: var(--surface); padding: 14px 18px;
}
.historical-meta-item .yr {
  font-size: 12px; color: var(--text-soft); font-weight: 600;
}
.historical-meta-item .val {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 18px; margin-top: 4px;
}

/* CTA FINAL — gradient secondary retiré, simple fond surface */
.cta-final {
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft); padding: 48px 36px;
  box-shadow: var(--shadow-sm); margin-top: 56px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-final::before {
  content: ''; position: absolute; top: -60%; left: -10%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}
.cta-final h2 {
  font-family: 'Fraunces', serif; font-size: 28px; font-weight: 600;
  letter-spacing: -0.02em; margin-bottom: 10px; position: relative; z-index: 1;
}
.cta-final h2 em { font-style: italic; color: var(--primary); }
.cta-final p {
  color: var(--text-soft); margin-bottom: 28px; font-size: 15.5px;
  position: relative; z-index: 1;
}
.cta-buttons {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px;
  font-size: 14.5px; font-weight: 600; text-decoration: none;
  transition: all .15s; border: 1px solid transparent; cursor: pointer;
  font-family: inherit;
}
.btn i { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 8px 16px -6px rgba(255,112,102,.4); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--secondary); color: white; }
.btn-secondary:hover { background: #5A4BE6; transform: translateY(-1px); }
.btn-outline {
  background: var(--surface); color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* MISC */
.empty-note {
  font-size: 13.5px; color: var(--text-faint); font-style: italic;
  padding: 24px; text-align: center;
  background: var(--bg); border-radius: 12px;
}

.fade-in { animation: fade-in 0.6s ease-out both; }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.10s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.20s; }

/* Grid items must be allowed to shrink below canvas/text intrinsic width. */
.two-col > *, .llm-grid > *, .llm-list li > span, .chart-wrap { min-width: 0; }
.llm-block, .hero-title, .raison-body, .card-title { overflow-wrap: anywhere; }
.chart-wrap canvas { max-width: 100%; }
.dora-score-section > div > div { min-width: 0 !important; }

/* RESPONSIVE */
@media (max-width: 1200px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .two-col, .two-col.equal { grid-template-columns: 1fr; }
  .llm-grid { grid-template-columns: 1fr; }
  .prestige-grid { grid-template-columns: repeat(2, 1fr); }
  .proba-grid { grid-template-columns: 1fr; text-align: center; }
  .proba-info { padding-left: 0; }
  .proba-detail-grid { grid-template-columns: 1fr 1fr; }
  .categorie-display { grid-template-columns: 1fr; text-align: center; }
  .categorie-display .categorie-icon-wrap { margin: 0 auto; }
  .proba-tech-detail-grid { grid-template-columns: 1fr 1fr; }
  .evol-table { font-size: 12.5px; }
  .evol-table th, .evol-table td { padding: 8px 10px; }
}
@media (max-width: 640px) {
  main { padding: 28px 16px 64px; }
  .section-header { margin: 48px 0 16px; }
  .nav-inner { padding: 14px 16px; }
  .nav-links { display: none; }
  .hero-card, .proba-block, .profil-llm-card, .prestige-card,
  .categorie-display, .proba-tech-detail, .raisons-section, .cta-final { padding: 28px; }
  .raison-card { grid-template-columns: 32px 1fr; gap: 12px; padding: 14px; }
  .raison-card .raison-icon { width: 32px; height: 32px; border-radius: 8px; }
  .raison-card .raison-icon i { width: 18px; height: 18px; }
  .raison-card .raison-quote { font-size: 13.5px; padding: 10px 14px; }
  .evol-section { padding: 28px 22px; }
  .evol-grid { grid-template-columns: 1fr; }
  .evol-table-wrap { overflow-x: auto; }
  .evol-table { min-width: 540px; }
  .hero-title { font-size: 28px; }
  .proba-large { font-size: 64px; }
  .proba-large small { font-size: 24px; }
  .categorie-display .categorie-label { font-size: 28px; }
  .categorie-display .categorie-icon-wrap { width: 64px; height: 64px; border-radius: 18px; }
  .categorie-display .categorie-icon-wrap i { width: 32px; height: 32px; }
  .proba-tech-detail-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cascade-stats { grid-template-columns: 1fr 1fr; }
  .poids-name { flex: 0 0 130px; font-size: 12px; }
  .doublette-name { flex: 0 0 130px; font-size: 12px; }
  .historical-meta { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .mentions-stats { gap: 8px; flex-wrap: wrap; }
  .proba-login-prompt { flex-direction: column; align-items: stretch; }
  .llm-list li, .llm-meta-row { min-width: 0; overflow-wrap: anywhere; flex-wrap: wrap; }
  .dora-score-section > div { flex-direction: column; align-items: stretch !important; }
  .dora-score-section > div > div:first-child { align-self: center; }
  .geo-meta { grid-template-columns: 1fr; }
}

.admission-reference { padding: 16px 22px; margin: 20px 0; border: 1px solid var(--border-soft); border-radius: 16px; background: var(--surface, #fff); color: var(--text-soft); font-size: 13px; line-height: 1.6; }
.admission-reference summary { cursor: pointer; color: var(--text); font-weight: 600; min-height: 24px; }
.admission-reference p { margin: 12px 0; }
.formation-closed { margin: 20px 0; padding: 16px 20px; border-left: 4px solid var(--accent, #ff7066); border-radius: 8px; background: var(--surface, #fff); font-size: 14px; line-height: 1.6; }
.formation-closed p { margin: 8px 0 0; }
