/* =========================================================================
   Observatoire BSTP — Design system
   Palette : indigo (primaire) + orange (accent), façon maquettes Figma.
   ========================================================================= */

:root {
  /* Couleurs de marque */
  --primary:        #1e2a78;   /* indigo profond (héros, footer, sidebar) */
  --primary-600:    #243397;
  --primary-700:    #1a2566;
  --accent:         #f7711c;   /* orange (CTA, highlights) */
  --accent-600:     #e8610d;

  /* Neutres */
  --ink:            #1a2233;   /* texte principal */
  --muted:          #5b6577;   /* texte secondaire */
  --line:           #e6e9f0;   /* bordures */
  --bg:             #ffffff;
  --bg-soft:        #f5f7fb;   /* sections alternées */

  /* Couleurs sectorielles (code couleur des maquettes) */
  --sec-btp:        #f7711c;   /* BTP & Infrastructure */
  --sec-industrie:  #1e2a78;   /* Industrie */
  --sec-tic:        #16a34a;   /* TIC & Services numériques */
  --sec-transport:  #7c3aed;   /* Transport & Logistique */
  --sec-agro:       #eab308;   /* Agroalimentaire */
  --sec-sante:      #e11d48;   /* Santé & Pharmacie */

  /* Statuts */
  --ok:             #16a34a;
  --warn:           #eab308;
  --danger:         #e11d48;

  /* Rayons & ombres */
  --radius:         14px;
  --radius-sm:      10px;
  --shadow:         0 6px 24px rgba(20, 30, 70, .08);
  --shadow-lg:      0 14px 40px rgba(20, 30, 70, .14);
}

/* ---- Base ---------------------------------------------------------------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 42px; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .4px;
  color: var(--accent); background: #fff3e9;
  border: 1px solid #ffd9bd; border-radius: 999px;
  padding: 5px 14px; margin-bottom: 14px; text-transform: none;
}
.section-title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 0 0 10px; }
.section-sub   { color: var(--muted); font-size: 15px; margin: 0; }

/* ---- Boutons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; line-height: 1;
  padding: 12px 20px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent  { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-600); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-light   { background: #fff; color: var(--primary); border-color: var(--line); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-ghost   { background: transparent; color: var(--primary); border-color: var(--line); }

/* ---- Header public ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; gap: 18px;
  min-height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-img { height: 46px; width: auto; display: block; }
/* Pastille claire pour le logo sur fond sombre (footer) */
.brand-chip { display: inline-flex; width: fit-content; background: #fff; border-radius: 12px; padding: 8px 12px; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--accent); color: #fff; font-weight: 900;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.brand-name { font-weight: 800; font-size: 15px; line-height: 1.1; }
.brand-sub  { font-size: 11px; color: var(--muted); }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  font-size: 14px; font-weight: 600; color: var(--muted);
  padding: 8px 12px; border-radius: 8px;
}
.main-nav a:hover { color: var(--primary); background: var(--bg-soft); }
.main-nav a.active { color: var(--primary); }

.header-cta { display: flex; gap: 10px; align-items: center; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: none; font-size: 22px; color: var(--primary); cursor: pointer;
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--primary-700), var(--primary) 55%, var(--primary-600));
  color: #fff; padding: 64px 0;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 900; line-height: 1.1; margin: 0 0 16px; }
.hero h1 .accent { color: var(--accent); }
.hero p.lead { font-size: 16px; color: rgba(255,255,255,.82); margin: 0 0 26px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-badges { display: flex; gap: 22px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.hero-badge i {
  width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.hero-badge b { display: block; font-size: 13px; }
.hero-badge span { color: rgba(255,255,255,.7); font-size: 11px; }
.hero-visual img { border-radius: 16px; box-shadow: var(--shadow-lg); }
.hero-visual--placeholder {
  border-radius: 16px; aspect-ratio: 4/3; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5);
  font-size: 40px;
}

/* ---- Cartes & grilles ---------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ---- Cartes KPI ---------------------------------------------------------- */
.kpi-card { display: flex; flex-direction: column; gap: 6px; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-icon {
  width: 44px; height: 44px; border-radius: 11px; display: flex;
  align-items: center; justify-content: center; font-size: 18px; color: #fff;
}
.kpi-trend { font-size: 12px; font-weight: 700; color: var(--ok); }
.kpi-value { font-size: 30px; font-weight: 900; margin-top: 8px; }
.kpi-label { font-size: 13px; color: var(--muted); }
.kpi-note  { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---- Cartes secteur ------------------------------------------------------ */
.sector-card { display: flex; flex-direction: column; gap: 10px; }
.sector-icon {
  width: 46px; height: 46px; border-radius: 12px; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.sector-card h3 { margin: 4px 0 2px; font-size: 17px; font-weight: 800; }
.sector-card p { margin: 0; font-size: 13px; color: var(--muted); }
.sector-stats { display: flex; justify-content: space-between; font-size: 13px; margin-top: 6px; }
.sector-stats b { color: var(--ink); }
.sector-cta {
  margin-top: 10px; text-align: center; font-size: 13px; font-weight: 700;
  color: var(--primary); background: var(--bg-soft); border-radius: 9px; padding: 10px;
}

/* ---- Bandeau orange (réseau) -------------------------------------------- */
.band {
  background: linear-gradient(120deg, var(--accent), var(--accent-600));
  color: #fff; border-radius: 0;
}
.band .section-title { color: #fff; }

/* ---- Investissement (cartes filière) ------------------------------------ */
.invest-card {
  border-radius: var(--radius); padding: 18px; color: #fff; min-height: 120px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.invest-card .nm { font-size: 13px; font-weight: 700; opacity: .92; }
.invest-card .vl { font-size: 22px; font-weight: 900; }
.invest-card .sub { font-size: 11px; opacity: .8; }

/* ---- Tableau annuaire ---------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table.annuaire { width: 100%; border-collapse: collapse; font-size: 13px; }
table.annuaire th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .4px;
  color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line);
}
table.annuaire td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ent-cell { display: flex; align-items: center; gap: 10px; }
.ent-logo {
  width: 34px; height: 34px; border-radius: 8px; color: #fff; font-weight: 800; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.pill-soft { background: var(--bg-soft); color: var(--muted); }

/* ---- Publications -------------------------------------------------------- */
.pub-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.pub-cover {
  height: 130px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85); font-size: 34px;
}
.pub-body { padding: 16px 18px; }
.pub-tag { font-size: 11px; font-weight: 700; color: var(--muted); }
.pub-body h4 { margin: 6px 0 8px; font-size: 15px; font-weight: 800; }
.pub-body p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.pub-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* ---- Newsletter ---------------------------------------------------------- */
.newsletter {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
  color: #fff; text-align: center;
}
.newsletter-icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 18px;
  background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.newsletter form { display: flex; gap: 10px; max-width: 520px; margin: 18px auto 8px; }
.newsletter input {
  flex: 1; border: none; border-radius: var(--radius-sm); padding: 13px 16px; font-size: 14px;
}
.newsletter .ns-stats { display: flex; justify-content: center; gap: 48px; margin-top: 30px; }
.newsletter .ns-stats b { display: block; font-size: 24px; font-weight: 900; }
.newsletter .ns-stats span { font-size: 12px; color: rgba(255,255,255,.7); }

/* ---- Accès rapide -------------------------------------------------------- */
.quick-card { text-align: center; }
.quick-icon {
  width: 50px; height: 50px; border-radius: 13px; margin: 0 auto 12px; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.quick-card b { display: block; font-size: 15px; }
.quick-card span { font-size: 12px; color: var(--muted); }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: #131a2e; color: #c3cad9; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h5 { color: #fff; font-size: 14px; margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; font-size: 13px; }
.site-footer a:hover { color: #fff; }
.footer-about p { font-size: 13px; color: #9aa4ba; margin: 14px 0 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; color: #c3cad9;
}
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-contact li { display: flex; align-items: flex-start; gap: 9px; }
.footer-contact i { color: var(--accent); margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 36px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: #8a93a8;
}
.footer-bottom a { margin-left: 18px; }

/* ---- Page Statistiques --------------------------------------------------- */
/* Titres de bloc (alignés à gauche) */
.block-head { margin: 0 0 26px; }
.block-title { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; margin: 0 0 4px; }
.block-sub { color: var(--muted); font-size: 14px; margin: 0; }
.chart-title { margin: 0 0 2px; font-size: 15px; font-weight: 800; }
.chart-cap { margin: 0 0 14px; font-size: 12px; color: var(--muted); }
.chart-box { position: relative; height: 240px; }

/* Barre de filtres */
.filter-bar { background: #fff; border-bottom: 1px solid var(--line); padding: 16px 0; }
.filter-bar .container { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.filter-fields { display: flex; gap: 14px; flex-wrap: wrap; }
.filter-fields label { display: flex; flex-direction: column; gap: 5px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.filter-fields select {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 14px;
  font-size: 13px; color: var(--ink); background: #fff; min-width: 150px; cursor: pointer;
}
.filter-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Répartition géographique */
.geo-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; }
.geo-map {
  margin-top: 6px; border-radius: var(--radius-sm); aspect-ratio: 16/10;
  background: var(--bg-soft); border: 1px dashed var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--muted); font-size: 13px;
}
.geo-map i { font-size: 40px; color: var(--primary); opacity: .55; }

/* Listes (top régions / certifications) */
.region-head, .cert-list + .region-head {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.region-head i { color: var(--accent); }
.region-list, .cert-list { list-style: none; margin: 0; padding: 6px 0; }
.region-list li { display: flex; align-items: center; gap: 12px; padding: 11px 18px; }
.region-list li + li, .cert-list li + li { border-top: 1px solid var(--line); }
.region-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.region-meta { display: flex; flex-direction: column; }
.region-meta b { font-size: 13px; }
.region-meta span { font-size: 11px; color: var(--muted); }
.region-val { margin-left: auto; text-align: right; }
.region-val b { font-size: 15px; }
.region-val span { display: block; font-size: 11px; color: var(--muted); }
.cert-list li { display: flex; align-items: center; gap: 11px; padding: 12px 18px; }
.cert-dot { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.cert-nom { font-size: 13px; font-weight: 600; }
.cert-val { margin-left: auto; font-size: 15px; }

/* Tableau comparatif */
table.compare td { font-weight: 600; }
.pill-up { background: #e8f6ee; color: var(--ok); }
.compare-total td { background: var(--bg-soft); border-top: 2px solid var(--line); }

/* Cartes insights */
.insight-card { border-radius: var(--radius); padding: 26px 22px; color: #fff; display: flex; flex-direction: column; gap: 12px; }
.insight-icon {
  width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.insight-card h3 { margin: 0; font-size: 18px; font-weight: 800; }
.insight-card p { margin: 0; font-size: 13px; color: rgba(255,255,255,.88); line-height: 1.5; }
.insight-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto;
  font-size: 12px; font-weight: 700; background: rgba(255,255,255,.16);
  border-radius: 999px; padding: 6px 12px; width: fit-content;
}

/* Centre de téléchargement */
.export-card { padding: 32px; }
.dl-card { display: flex; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.dl-icon { width: 44px; height: 44px; border-radius: 11px; color: #fff; flex: none; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.dl-body { flex: 1; }
.dl-body b { font-size: 14px; }
.dl-body p { margin: 4px 0 12px; font-size: 12px; color: var(--muted); }
.dl-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); }

/* ---- Page Acteurs -------------------------------------------------------- */
/* Stats dans le héros */
.hero-stats { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero-stat {
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); padding: 16px 28px; min-width: 150px;
}
.hero-stat b { display: block; font-size: 28px; font-weight: 900; }
.hero-stat span { font-size: 12px; color: rgba(255,255,255,.75); }

/* Carte de filtres */
.filter-card { padding: 24px; }
.filter-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.filter-card-head h3 { margin: 0; font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.filter-card-head h3 i { color: var(--accent); }
.link-reset { background: none; border: none; color: var(--accent); font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.filter-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.filter-row label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.filter-row select, .filter-row input {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px;
  font-size: 13px; color: var(--ink); background: #fff; width: 100%;
}
.input-icon { position: relative; }
.input-icon i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }
.input-icon input { padding-left: 34px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.chip-group { display: flex; align-items: center; gap: 8px; }
.chip-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip-on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Barre de résultats */
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.results-info { font-size: 14px; color: var(--muted); }
.results-info b { color: var(--ink); font-size: 16px; }
.filtre-actif {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 12px;
  background: #fff3e9; color: var(--accent); border: 1px solid #ffd9bd;
  border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.results-actions { display: flex; align-items: center; gap: 12px; }
.sort-select { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.sort-select select { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; font-size: 13px; color: var(--ink); background: #fff; cursor: pointer; }

/* Lignes acteurs */
.actor-list { display: flex; flex-direction: column; gap: 14px; }
.actor-row {
  display: grid; grid-template-columns: 2.2fr 1.6fr 1.4fr 1.2fr auto; gap: 20px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px;
}
.actor-row:hover { box-shadow: var(--shadow-lg); }
.actor-id { display: flex; gap: 14px; }
.actor-logo { width: 48px; height: 48px; border-radius: 11px; flex: none; color: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.actor-meta b { font-size: 15px; }
.actor-tags { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 5px 0; }
.actor-since { font-size: 11px; color: var(--muted); }
.actor-note { font-size: 12px; color: var(--muted); }
.col-label { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-bottom: 7px; }
.cert-tags { display: flex; flex-direction: column; gap: 4px; }
.cert-tag { font-size: 12px; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.cert-tag i { color: var(--ok); font-size: 11px; }
.actor-loc { display: flex; align-items: flex-start; gap: 8px; }
.actor-loc i { color: var(--accent); margin-top: 3px; }
.actor-loc b { font-size: 13px; }
.actor-loc span { display: block; font-size: 11px; color: var(--muted); }
.perf-val { font-size: 18px; font-weight: 900; color: var(--ok); }
.perf-bar { height: 7px; background: var(--bg-soft); border-radius: 999px; margin-top: 6px; overflow: hidden; }
.perf-bar i { display: block; height: 100%; background: var(--ok); border-radius: 999px; }
.actor-actions { display: flex; flex-direction: column; gap: 8px; }
.act-btn {
  width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line); background: #fff;
  color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.act-btn:hover { border-color: var(--accent); color: var(--accent); }
.act-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.act-primary:hover { background: var(--primary-600); color: #fff; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.page-info { font-size: 13px; color: var(--muted); }
.pager { display: flex; align-items: center; gap: 6px; }
.page-btn {
  min-width: 38px; height: 38px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer;
}
.page-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }
.page-dots { color: var(--muted); padding: 0 4px; }

/* Badges de labélisation */
.label-badge { border-radius: var(--radius); padding: 26px 22px; color: #fff; text-align: center; }
.label-icon { width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.18); margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.label-badge h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; }
.label-badge p { margin: 0 0 16px; font-size: 12px; color: rgba(255,255,255,.85); line-height: 1.5; }
.label-stat { border-top: 1px solid rgba(255,255,255,.22); padding-top: 14px; }
.label-stat b { display: block; font-size: 26px; font-weight: 900; }
.label-stat span { font-size: 11px; color: rgba(255,255,255,.8); }

/* Répartition par secteur */
.repart-card { padding: 20px; }
.repart-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.repart-icon { width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.repart-part { font-size: 24px; font-weight: 900; }
.repart-card h4 { margin: 0 0 14px; font-size: 16px; font-weight: 800; }
.repart-stats { display: flex; flex-direction: column; gap: 8px; }
.repart-stats div { display: flex; justify-content: space-between; font-size: 13px; }
.repart-stats span { color: var(--muted); }
.repart-stats b { color: var(--ink); }

/* ---- Page Inscription ---------------------------------------------------- */
/* Bandeau atouts chevauchant le héros */
.atout-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  margin-top: -56px; position: relative; z-index: 5; padding: 24px 28px;
}
.atout { display: flex; align-items: center; gap: 12px; }
.atout-icon { width: 44px; height: 44px; border-radius: 11px; color: #fff; flex: none; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.atout b { display: block; font-size: 14px; }
.atout span { font-size: 12px; color: var(--muted); }

/* Grille formulaire + aside */
.insc-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 26px; align-items: start; }
.insc-form { padding: 28px; }
.insc-form .block-title { margin-bottom: 4px; }

/* Stepper */
.stepper { display: flex; align-items: center; gap: 6px; margin: 22px 0 26px; }
.step { display: flex; align-items: center; gap: 10px; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: var(--bg-soft); color: var(--muted); font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.step.active .step-num { background: var(--accent); color: #fff; }
.step-meta b { display: block; font-size: 13px; line-height: 1.1; }
.step.active .step-meta b { color: var(--accent); }
.step-meta span { font-size: 11px; color: var(--muted); }
.step-line { flex: 1; height: 2px; background: var(--line); margin: 0 4px; }

/* Champs de formulaire */
.field-label { display: block; font-size: 13px; font-weight: 700; margin: 6px 0 8px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > span { font-size: 13px; font-weight: 700; }
.field input, .field select {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px;
  font-size: 13px; color: var(--ink); background: #fff; width: 100%;
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-grid .field { margin-bottom: 16px; }
.field-hint { font-size: 11px; color: var(--muted); margin: -8px 0 16px; }
.input-eye { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); cursor: pointer; font-size: 13px; }

/* Cartes type de compte */
.type-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.type-card {
  border: 2px solid var(--line); border-radius: var(--radius); padding: 18px;
  cursor: pointer; display: flex; flex-direction: column; gap: 4px; position: relative;
}
.type-card:hover { border-color: #ffd9bd; }
.type-card.selected { border-color: var(--accent); background: #fff8f3; }
.type-card .type-icon { width: 40px; height: 40px; border-radius: 10px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; margin-bottom: 6px; }
.type-card b { font-size: 14px; }
.type-card span { font-size: 12px; color: var(--muted); }

/* Dropzone */
.dropzone {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 26px;
  text-align: center; cursor: pointer; margin-bottom: 20px;
}
.dropzone:hover { border-color: var(--accent); background: #fff8f3; }
.dropzone i { font-size: 26px; color: var(--accent); display: block; margin-bottom: 8px; }
.dropzone b { display: block; font-size: 13px; }
.dropzone span { font-size: 11px; color: var(--muted); }

/* Cases à cocher */
.check-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: 12px; color: var(--muted); cursor: pointer; }
.check-row input { margin-top: 2px; flex: none; width: 16px; height: 16px; accent-color: var(--accent); }
.check-row a { color: var(--accent); font-weight: 600; }
.insc-submit { width: 100%; justify-content: center; padding: 14px; margin-top: 6px; }
.insc-login { text-align: center; font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.insc-login a { color: var(--accent); font-weight: 700; }

/* Aside sécurité / confiance */
.insc-aside { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 86px; }
.secure-card { background: linear-gradient(160deg, var(--primary-700), var(--primary-600)); color: #fff; border: none; }
.secure-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; }
.secure-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.secure-card p { margin: 0 0 18px; font-size: 13px; color: rgba(255,255,255,.82); }
.secure-point { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.secure-point i { color: #4ade80; margin-top: 2px; }
.secure-point b { display: block; font-size: 13px; }
.secure-point span { font-size: 11px; color: rgba(255,255,255,.7); }
.trust-card h4 { margin: 0 0 14px; font-size: 14px; font-weight: 800; }
.trust-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trust-logos span {
  background: var(--bg-soft); border-radius: var(--radius-sm); padding: 12px;
  text-align: center; font-size: 12px; font-weight: 800; color: var(--muted);
}

/* Cartes avantages */
.adv-card { border: 1px solid; border-radius: var(--radius); padding: 24px; }
.adv-icon { width: 48px; height: 48px; border-radius: 12px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 14px; }
.adv-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; }
.adv-card p { margin: 0 0 14px; font-size: 13px; color: var(--muted); line-height: 1.55; }
.adv-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.adv-points li { font-size: 13px; display: flex; align-items: center; gap: 8px; }
.adv-points i { font-size: 12px; }

/* ---- Page Publications --------------------------------------------------- */
.hero--accent { background: linear-gradient(135deg, var(--accent-600), var(--accent) 55%, #f9913f); }
.hero--accent h1 .accent { color: #fff; }

/* Recherche */
.pub-search { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.pub-search .input-icon input { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 12px 12px 36px; font-size: 14px; width: 100%; }
.pub-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; justify-content: center; }

/* Publications phares */
.feat-card { display: flex; gap: 0; padding: 0; overflow: hidden; }
.feat-cover { width: 150px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: rgba(255,255,255,.9); font-size: 40px; position: relative; }
.feat-year { font-size: 13px; font-weight: 800; background: rgba(255,255,255,.2); border-radius: 999px; padding: 4px 12px; }
.feat-body { padding: 20px 22px; }
.feat-tags { display: flex; gap: 8px; margin-bottom: 10px; }
.feat-body h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; line-height: 1.3; }
.feat-body p { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.feat-meta { display: flex; gap: 18px; font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.feat-meta i { color: var(--accent); }
.feat-actions { display: flex; align-items: center; gap: 8px; }

/* Rapports annuels */
.report-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.report-cover { height: 140px; background: linear-gradient(150deg, var(--primary-600), var(--primary)); color: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; font-size: 38px; position: relative; }
.report-badge { position: absolute; top: 12px; right: 12px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; border-radius: 999px; padding: 4px 10px; }
.report-year { position: absolute; bottom: 12px; left: 14px; font-size: 20px; font-weight: 900; color: #fff; }
.report-body { padding: 16px 18px; display: flex; flex-direction: column; flex: 1; }
.report-meta { font-size: 11px; color: var(--muted); }
.report-body h4 { margin: 6px 0 6px; font-size: 15px; font-weight: 800; }
.report-body p { margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.report-foot { font-size: 12px; color: var(--muted); margin-bottom: 12px; margin-top: auto; }
.report-foot i { color: var(--accent); }
.report-btn { width: 100%; justify-content: center; padding: 10px; }

/* Études sectorielles */
.study-card { border-radius: var(--radius); padding: 24px; color: #fff; display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.study-tag { font-size: 11px; font-weight: 700; background: rgba(255,255,255,.2); border-radius: 999px; padding: 5px 12px; width: fit-content; }
.study-card h3 { margin: 4px 0 0; font-size: 18px; font-weight: 800; }
.study-card p { margin: 0; font-size: 13px; color: rgba(255,255,255,.88); flex: 1; }
.study-btn { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: var(--radius-sm); padding: 10px; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.study-btn:hover { background: rgba(255,255,255,.28); }

/* Guides pratiques */
.guide-card { display: flex; gap: 14px; }
.guide-icon { width: 46px; height: 46px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.guide-body h4 { margin: 0 0 6px; font-size: 15px; font-weight: 800; }
.guide-body p { margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.guide-link { font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }

/* Publications académiques */
.acad-card { display: flex; flex-direction: column; }
.acad-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.acad-icon { width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.acad-tags { display: flex; align-items: center; gap: 10px; }
.acad-year { font-size: 12px; color: var(--muted); font-weight: 700; }
.acad-card h4 { margin: 0 0 8px; font-size: 16px; font-weight: 800; line-height: 1.35; }
.acad-card > p { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.acad-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; }
.acad-author { display: flex; align-items: center; gap: 10px; }
.acad-author i { color: var(--accent); }
.acad-author b { font-size: 13px; display: block; }
.acad-author span { font-size: 11px; color: var(--muted); }

/* Cadre juridique */
.legal-card { border-radius: var(--radius); padding: 24px; color: #fff; }
.legal-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; }
.legal-card h4 { margin: 0 0 8px; font-size: 16px; font-weight: 800; }
.legal-card p { margin: 0 0 16px; font-size: 12px; color: rgba(255,255,255,.85); line-height: 1.5; }
.legal-link { font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.18); border-radius: var(--radius-sm); padding: 9px 14px; }
.legal-link:hover { background: rgba(255,255,255,.28); }

/* Besoin d'aide */
.help-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; align-items: start; }
.help-contact { padding: 28px; }
.help-contact h3, .help-form h3 { margin: 0 0 12px; font-size: 18px; font-weight: 800; }
.help-contact p { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.help-line { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.help-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--bg-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 16px; flex: none; }
.help-line b { display: block; font-size: 13px; }
.help-line span { font-size: 12px; color: var(--muted); }
.help-form { padding: 28px; }
.help-form textarea { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px; font-size: 13px; font-family: inherit; color: var(--ink); width: 100%; resize: vertical; }

/* ---- Bouton retour en haut (ascenseur) ----------------------------------- */
.scroll-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 120;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  font-size: 17px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .15s ease;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--accent-600); transform: translateY(-2px); }

/* ---- Page À propos ------------------------------------------------------- */
/* Sous-navigation par ancres */
.about-nav { display: inline-flex; flex-wrap: wrap; gap: 8px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 6px; }
.about-nav a { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.85); padding: 8px 16px; border-radius: 999px; }
.about-nav a:hover { background: rgba(255,255,255,.15); color: #fff; }

/* Historique : encarts */
.about-facts { display: flex; flex-direction: column; gap: 14px; }
.fact-card { border-radius: var(--radius); padding: 26px; color: #fff; text-align: center; }
.fact-year { display: block; font-size: 46px; font-weight: 900; line-height: 1; }
.fact-label { font-size: 13px; color: rgba(255,255,255,.8); }
.fact-mini { display: flex; align-items: center; gap: 13px; padding: 16px 18px; }
.fact-mini i { font-size: 18px; width: 24px; text-align: center; }
.fact-mini b { display: block; font-size: 14px; }
.fact-mini span { font-size: 12px; color: var(--muted); }

/* Mot du Directeur Général (bloc DG à droite) */
.dg-card { display: grid; grid-template-columns: 1fr 230px; gap: 30px; padding: 32px; align-items: center; }
.dg-aside { text-align: center; }
.dg-avatar {
  width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 14px; overflow: hidden;
  background: linear-gradient(150deg, var(--primary-600), var(--accent));
  box-shadow: var(--shadow); border: 3px solid #fff;
}
.dg-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dg-initials { display: none; width: 100%; height: 100%; align-items: center; justify-content: center; color: #fff; font-size: 36px; font-weight: 900; }
.dg-aside b { display: block; font-size: 16px; }
.dg-aside span { font-size: 13px; color: var(--muted); }
.dg-quote { position: relative; }
.dg-mark { font-size: 26px; color: var(--accent); opacity: .35; margin-bottom: 10px; }
.dg-quote p { margin: 0 0 14px; font-size: 15px; color: var(--ink); line-height: 1.7; }
.dg-quote p:first-of-type { font-weight: 600; }

/* Missions */
.mission-card { display: flex; flex-direction: column; gap: 10px; }
.mission-icon { width: 50px; height: 50px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.mission-card h3 { margin: 4px 0 0; font-size: 17px; font-weight: 800; }
.mission-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* Cibles */
.cible-card { padding: 26px; }
.cible-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cible-icon { width: 50px; height: 50px; border-radius: 13px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.cible-head h3 { margin: 0; font-size: 18px; font-weight: 800; }
.cible-head span { font-size: 13px; color: var(--muted); }
.cible-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.cible-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.cible-list i { margin-top: 4px; font-size: 13px; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav, .header-cta { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px; gap: 2px;
  }
  .nav-toggle { display: block; }
  .geo-grid { grid-template-columns: 1fr; }
  .filter-bar .container { align-items: stretch; }
  .filter-row { grid-template-columns: repeat(2, 1fr); }
  .actor-row { grid-template-columns: 1fr 1fr; }
  .actor-id { grid-column: 1 / -1; }
  .actor-actions { flex-direction: row; grid-column: 1 / -1; }
  .atout-strip { grid-template-columns: repeat(2, 1fr); }
  .insc-grid { grid-template-columns: 1fr; }
  .insc-aside { position: static; flex-direction: row; }
  .insc-aside .card { flex: 1; }
  .help-grid { grid-template-columns: 1fr; }
  .dg-card { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter form { flex-direction: column; }
  .newsletter .ns-stats { gap: 24px; }
  .filter-row { grid-template-columns: 1fr; }
  .actor-row { grid-template-columns: 1fr; }
  .atout-strip { grid-template-columns: 1fr; }
  .type-cards, .field-grid { grid-template-columns: 1fr; }
  .insc-aside { flex-direction: column; }
  .feat-card { flex-direction: column; }
  .feat-cover { width: 100%; height: 120px; flex-direction: row; }
  .pub-search { flex-direction: column; align-items: stretch; }
}
