/* ============================================================
   AVENIR METIER — DESIGN SYSTEM COMPLET
   style.css — variables, base, layout, composants, navigation, footer
   ============================================================ */

/* ── 1. VARIABLES ─────────────────────────────────────────── */
:root {
  --primary:        #1e6b8c;
  --primary-light:  #2d8fb5;
  --primary-pale:   #e8f4f9;
  --accent:         #e8762b;
  --accent-dark:    #c4601e;
  --dark:           #0d2d3e;
  --dark-deeper:    #061820;
  --text:           #1a2e3a;
  --text-light:     #5a7382;
  --bg:             #ffffff;
  --bg-alt:         #f4f8fb;
  --border:         rgba(30, 107, 140, 0.15);
  --shadow:         rgba(30, 107, 140, 0.10);

  --font-title:     'Playfair Display', Georgia, serif;
  --font-body:      'Inter', system-ui, sans-serif;

  --radius:         6px;
  --radius-lg:      10px;
  --container:      1160px;
  --gap:            2rem;

  /* Secteurs */
  --sante:          #2e8b57;
  --numerique:      #4a6fa5;
  --btp:            #b5651d;
  --commerce:       #8b5e9b;
  --transport:      #d4790a;
  --agriculture:    #5a8a3c;
  --hotellerie:     #c0392b;
  --education:      #2980b9;
  --finance:        #27ae60;
  --droit:          #8e44ad;
  --industrie:      #7f8c8d;
  --services:       #e67e22;
  --communication:  #e91e8c;
}

/* ── 2. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.35rem; }

strong { font-weight: 600; }

/* ── 3. TYPOGRAPHIE ───────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--dark);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.85rem); margin-top: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); margin-top: 1.75rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.05rem; margin-top: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

/* ── 4. LAYOUT ────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-alt); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

/* Layout avec sidebar */
.layout-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* Quand layout-sidebar est dans page-body, la page-body gère déjà le padding vertical */
.page-body .layout-sidebar {
  padding-top: 0;
  padding-bottom: 0;
}

.layout-sidebar .content-main { min-width: 0; order: 1; }
.layout-sidebar .sidebar { order: 2; }

/* ── 5. HEADER & NAVIGATION ───────────────────────────────── */
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 2rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

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

.site-logo-text span {
  color: var(--accent);
}

/* Navigation principale */
.main-nav { display: flex; align-items: center; gap: 0.25rem; }

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  color: rgba(255,255,255,0.88);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
}

.nav-link.active {
  background: rgba(46, 143, 181, 0.25);
  color: #fff;
}

.nav-link svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
  opacity: 0.7;
}

/* Dropdown */
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-item:hover .nav-link svg {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0,0,0,0.14);
  min-width: 220px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, visibility 0.18s, transform 0.18s;
}

.dropdown-wide {
  min-width: 320px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.dropdown a {
  display: block;
  padding: 0.55rem 0.85rem;
  color: var(--text);
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: background 0.12s, color 0.12s;
  text-decoration: none;
}

.dropdown a:hover {
  background: var(--primary-pale);
  color: var(--primary);
  text-decoration: none;
}

.dropdown-label {
  display: block;
  padding: 0.4rem 0.85rem 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  grid-column: 1 / -1;
}

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 6. PAGE BANNER (remplace .hero) ──────────────────────── */
.page-banner {
  background: linear-gradient(135deg, var(--dark-deeper) 0%, var(--dark) 60%, #1a4a61 100%);
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 3rem;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(46,143,181,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.page-banner-content {
  position: relative;
  z-index: 1;
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.page-banner h1 {
  color: #fff;
  margin-bottom: 1rem;
}

.page-intro {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  max-width: 640px;
  line-height: 1.65;
  margin-bottom: 0;
}

/* Banner homepage (plus haute) */
.page-banner-home {
  padding: 5rem 0 4.5rem;
}

.page-banner-home h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 1.25rem;
}

/* ── 7. FIL D'ARIANE ──────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb a:hover { color: rgba(255,255,255,0.9); }

.breadcrumb-sep { opacity: 0.4; }

.breadcrumb-current { color: rgba(255,255,255,0.8); }

/* ── 8. CARTES MÉTIERS ────────────────────────────────────── */
.metier-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.metier-card:hover {
  box-shadow: 0 6px 24px var(--shadow);
  transform: translateY(-2px);
  border-color: rgba(30,107,140,0.3);
}

.metier-card a {
  text-decoration: none;
  color: inherit;
}

.metier-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.metier-card-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

.metier-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.metier-card-salary {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

.metier-card-level {
  font-size: 0.82rem;
  color: var(--text-light);
}

.metier-card-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── 9. BADGES SECTEUR ────────────────────────────────────── */
.secteur-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: #fff;
}

.badge-sante          { background: var(--sante); }
.badge-numerique      { background: var(--numerique); }
.badge-btp            { background: var(--btp); }
.badge-commerce       { background: var(--commerce); }
.badge-transport      { background: var(--transport); }
.badge-agriculture    { background: var(--agriculture); }
.badge-hotellerie     { background: var(--hotellerie); }
.badge-education      { background: var(--education); }
.badge-finance        { background: var(--finance); }
.badge-droit          { background: var(--droit); }
.badge-industrie      { background: var(--industrie); }
.badge-services       { background: var(--services); }
.badge-communication  { background: var(--communication); }

/* ── 10. ENCART CHIFFRES CLES ─────────────────────────────── */
.metier-stats {
  background: var(--primary-pale);
  border: 1px solid rgba(30,107,140,0.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

.stat-value {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ── 11. TABLEAUX SALAIRES ────────────────────────────────── */
.salary-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.salary-table th {
  background: var(--dark);
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.88rem;
}

.salary-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.salary-table tr:nth-child(even) td { background: var(--bg-alt); }
.salary-table tr:last-child td { border-bottom: none; }

.salary-strong {
  font-weight: 600;
  color: var(--primary);
}

/* ── 12. BOXES INFO / HIGHLIGHT ───────────────────────────── */
.info-box {
  background: var(--primary-pale);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.info-box-title {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.highlight-box {
  background: linear-gradient(135deg, #fff5ed 0%, #fef0e0 100%);
  border: 1px solid rgba(232,118,43,0.25);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.highlight-box-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 0.75rem;
}

.highlight-box p { font-size: 0.95rem; }

/* ── 13. LISTES D'ETAPES ──────────────────────────────────── */
.step-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.step-list li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin: 0;
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.step-content strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--dark);
}

/* ── 14. CARTES FORMATIONS & RECONVERSION ─────────────────── */
.formation-card,
.reconv-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.formation-card:hover,
.reconv-card:hover {
  box-shadow: 0 6px 24px var(--shadow);
  transform: translateY(-2px);
  border-color: rgba(30,107,140,0.3);
  text-decoration: none;
  color: inherit;
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ── 15. CARTES SECTEURS ──────────────────────────────────── */
.secteur-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.secteur-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.secteur-card.s-sante::before        { background: var(--sante); }
.secteur-card.s-numerique::before    { background: var(--numerique); }
.secteur-card.s-btp::before          { background: var(--btp); }
.secteur-card.s-commerce::before     { background: var(--commerce); }
.secteur-card.s-transport::before    { background: var(--transport); }
.secteur-card.s-agriculture::before  { background: var(--agriculture); }
.secteur-card.s-hotellerie::before   { background: var(--hotellerie); }
.secteur-card.s-education::before    { background: var(--education); }
.secteur-card.s-finance::before      { background: var(--finance); }
.secteur-card.s-droit::before        { background: var(--droit); }
.secteur-card.s-industrie::before    { background: var(--industrie); }
.secteur-card.s-services::before     { background: var(--services); }
.secteur-card.s-communication::before { background: var(--communication); }

.secteur-card:hover {
  box-shadow: 0 6px 24px var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.secteur-card-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

.secteur-card-count {
  font-size: 0.82rem;
  color: var(--text-light);
}

.secteur-card-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* ── 16. SIDEBAR ──────────────────────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-block {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

.sidebar-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--primary-pale);
}

.sidebar-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar-links li { margin: 0; }

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text);
  padding: 0.3rem 0;
  transition: color 0.15s;
}

.sidebar-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Sommaire sidebar */
.toc-link {
  font-size: 0.88rem;
  color: var(--text-light);
  padding: 0.25rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  margin-left: -0.75rem;
  transition: color 0.15s, border-color 0.15s;
  text-decoration: none;
  display: block;
}

.toc-link:hover {
  color: var(--primary);
  border-color: var(--primary);
  text-decoration: none;
}

/* ── 17. FAQ TOGGLE ───────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.15s;
  font-family: var(--font-body);
}

.faq-question:hover { background: var(--bg-alt); }

.faq-question[aria-expanded="true"] { background: var(--primary-pale); }

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 0.2s;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.75;
}

.faq-answer.open { display: block; }

/* ── 18. BOUTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  text-decoration: none;
  min-height: 44px;
  font-family: var(--font-body);
}

.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(232,118,43,0.35);
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-pale); }

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.btn-white:hover { background: var(--primary-pale); color: var(--primary); }

.btn-sm {
  font-size: 0.88rem;
  padding: 0.55rem 1.1rem;
}

/* ── 19. PROFILE TAGS ─────────────────────────────────────── */
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.profile-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  background: var(--primary-pale);
  color: var(--primary);
  border: 1px solid rgba(30,107,140,0.2);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.profile-tag:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* ── 20. SECTION TITRES ───────────────────────────────────── */
.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 600px;
}

.section-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-header-row h2 { margin: 0; }

.see-all {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

/* ── 21. CTA BANNER ───────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-banner-text h3 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.cta-banner-text p {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  margin: 0;
}

/* ── 22. FOOTER ───────────────────────────────────────────── */
.site-footer {
  background: var(--dark-deeper);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 0.85rem;
  color: rgba(255,255,255,0.55);
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links li { margin: 0; }

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ── 23. RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .layout-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar { order: -1; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  html { font-size: 16px; }

  /* Tables : scroll horizontal sur mobile */
  .salary-table,
  .compare-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav { display: none; }
  .nav-burger { display: flex; }

  /* Nav mobile */
  .main-nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark);
    padding: 1.5rem;
    overflow-y: auto;
    gap: 0.25rem;
    z-index: 99;
  }

  .main-nav.open .nav-link {
    font-size: 1.05rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-radius: 0;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(255,255,255,0.04);
    padding: 0 0 0.5rem;
    display: none;
  }

  .dropdown.open { display: block; }
  .dropdown-wide { grid-template-columns: 1fr; }

  .dropdown a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    padding: 0.5rem 1.5rem;
  }
  .dropdown a:hover { background: rgba(255,255,255,0.06); color: #fff; }

  .dropdown-label { color: rgba(255,255,255,0.3); }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
  }

  .metier-stats {
    grid-template-columns: 1fr 1fr;
  }

  .section { padding: 2.5rem 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .page-banner { padding: 2.5rem 0 2rem; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .metier-stats { grid-template-columns: 1fr; }
  .salary-table { font-size: 0.85rem; }
  .salary-table th, .salary-table td { padding: 0.6rem 0.75rem; }
  .profile-tags { gap: 0.4rem; }
  .layout-sidebar { padding-left: 1rem; padding-right: 1rem; }
  .page-banner > .page-banner-split { padding: 0 1rem; }
}

/* ── 24. BANNER SPLIT (2 colonnes texte + illustration) ─────── */
.page-banner-split {
  display: grid;
  grid-template-columns: 60fr 40fr;
  align-items: center;
  gap: 3rem;
}

/* Quand page-banner-split est enfant direct de page-banner (sans .container) */
.page-banner > .page-banner-split {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.banner-illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-illustration svg {
  max-width: 100%;
  opacity: 0.92;
}

.banner-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  align-self: stretch;
  min-height: 200px;
  max-height: 300px;
}
.banner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.88;
}

/* ── 25. SECTION IMAGE + CONTENU ────────────────────────────── */
.section-with-image {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 2.5rem;
  align-items: center;
}

.section-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.section-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .page-banner-split {
    grid-template-columns: 1fr;
  }
  .banner-illustration {
    display: none;
  }
  .banner-photo { display: none; }
  .section-with-image {
    grid-template-columns: 1fr;
  }
}

/* ── 26. UTILITAIRES ──────────────────────────────────────── */
.text-center { text-align: center; }
.text-light  { color: var(--text-light); }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ── 27. JAUGE TENSION DU MARCHÉ ──────────────────────────── */
.tension-gauge-block {
  background: var(--primary-pale);
  border: 1px solid rgba(30,107,140,0.2);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem 0.75rem;
  margin: 1.5rem 0;
  text-align: center;
}

.tension-gauge-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  margin: 0 0 0.25rem;
}

.tension-gauge-val {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0.25rem 0 0;
}

.tension-gauge-svg {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0.25rem auto 0;
  height: auto;
}

.gauge-needle-group {
  transform-box: view-box;
  transform-origin: 140px 120px;
  transform: rotate(-180deg);
}

/* ── 28. BARRES SALARIALES ────────────────────────────────── */
.stat-bar {
  display: block;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.stat-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: 2px;
  transition: width 1s ease 0.2s;
}

/* ── 29. BARRE DE PROGRESSION DE LECTURE ──────────────────── */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--primary);
  z-index: 200;
  transition: width 0.12s linear;
  pointer-events: none;
}

/* ── 30. SOMMAIRE AUTOMATIQUE ─────────────────────────────── */
.toc-block {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.toc-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  margin: 0 0 0.75rem;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.35rem 1.5rem;
}

.toc-list li a {
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  line-height: 1.5;
}

.toc-list li a::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-pale);
  flex-shrink: 0;
  margin-top: 0.35em;
}

.toc-list li a:hover { color: var(--primary); }
.toc-list li a:hover::before { background: var(--primary); }

/* ── 31. COMPTEURS ANIMÉS ──────────────────────────────────── */
.stat-value[data-original] { font-variant-numeric: tabular-nums; }

/* ── 32. SALARY BAR CHART ─────────────────────────────────── */
.schart-block { background:var(--bg-alt); border:1px solid var(--border); border-radius:var(--radius-lg); padding:1.5rem; margin:1.5rem 0; }
.schart-title { font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:var(--text-light); margin:0 0 1rem; }
.schart-row { margin-bottom:.8rem; }
.schart-label { display:flex; justify-content:space-between; font-size:.85rem; margin-bottom:.3rem; }
.schart-val { color:var(--text-light); font-size:.82rem; }
.schart-track { height:10px; background:rgba(0,0,0,.07); border-radius:5px; overflow:hidden; }
.schart-bar { height:100%; border-radius:5px; width:0; transition:width 1s ease .2s; }

/* ── 33. RADAR COMPÉTENCES ────────────────────────────────── */
.radar-block { background:var(--bg-alt); border:1px solid var(--border); border-radius:var(--radius-lg); padding:1.5rem; margin:2rem 0; display:flex; gap:1.5rem; align-items:center; flex-wrap:wrap; }
.radar-svg { display:block; max-width:220px; width:100%; height:auto; overflow:visible; flex-shrink:0; }
.radar-polygon { transform-box:fill-box; transform-origin:50% 50%; }
.radar-legend { flex:1; min-width:130px; }
.radar-legend-item { display:flex; align-items:center; gap:.5rem; font-size:.82rem; margin-bottom:.4rem; color:var(--text); }
.radar-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
@media (max-width:600px) { .radar-block { flex-direction:column; } .radar-svg { max-width:200px; } }

/* ── 34. STEPPER RECONVERSION ─────────────────────────────── */
.reconv-stepper { display:flex; flex-wrap:wrap; gap:.5rem; margin:1.5rem 0 2rem; }
.stepper-item { display:flex; align-items:center; gap:.4rem; padding:.4rem .85rem; border-radius:2rem; background:var(--bg-alt); border:1px solid var(--border); cursor:pointer; text-decoration:none; font-size:.82rem; font-weight:600; color:var(--text-light); transition:background .2s,color .2s,border-color .2s; white-space:nowrap; }
.stepper-item:hover, .stepper-item.active { background:var(--primary); color:#fff; border-color:var(--primary); }
.stepper-num { display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; border-radius:50%; background:var(--border); font-size:.68rem; font-weight:700; color:var(--text-light); flex-shrink:0; transition:background .2s,color .2s; }
.stepper-item:hover .stepper-num, .stepper-item.active .stepper-num { background:#fff; color:var(--primary); }

/* ── 35. DONUT SECTEUR ────────────────────────────────────── */
.donut-block { background:var(--bg-alt); border:1px solid var(--border); border-radius:var(--radius-lg); padding:1.5rem; margin:1.5rem 0; display:flex; gap:2rem; align-items:center; flex-wrap:wrap; }
.donut-wrap { flex-shrink:0; transform:scale(0); transform-origin:50% 50%; transition:transform .7s cubic-bezier(.34,1.56,.64,1); }
.donut-wrap.visible { transform:scale(1); }
.donut-legend { flex:1; min-width:120px; }
.donut-legend-row { display:flex; align-items:center; gap:.6rem; font-size:.88rem; margin-bottom:.45rem; }
.donut-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.donut-pct { font-weight:700; margin-left:auto; font-size:.82rem; color:var(--text-light); }
@media (max-width:600px) { .donut-block { flex-direction:column; } }

/* ── 36. COMPARATEUR DE SALAIRES ─────────────────────────── */
.salary-cmp-block { background:var(--bg-alt); border:1px solid var(--border); border-radius:var(--radius-lg); padding:1.25rem 1.5rem; margin:1.5rem 0; }
.salary-cmp-title { font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:var(--text-light); margin:0 0 .9rem; }
.salary-cmp-row { display:flex; align-items:center; gap:.6rem; margin-bottom:.45rem; }
.salary-cmp-name { font-size:.8rem; width:140px; flex-shrink:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.salary-cmp-name a { color:var(--text); text-decoration:none; }
.salary-cmp-name a:hover { color:var(--primary); }
.salary-cmp-track { flex:1; height:7px; background:rgba(0,0,0,.07); border-radius:4px; overflow:hidden; }
.salary-cmp-bar { height:100%; border-radius:4px; width:0; background:var(--primary); opacity:.5; transition:width 1s ease .3s; }
.salary-cmp-row.current .salary-cmp-bar { opacity:1; }
.salary-cmp-row.current .salary-cmp-name { font-weight:700; color:var(--primary); }
.salary-cmp-row.current .salary-cmp-name a { color:var(--primary); }
.salary-cmp-num { font-size:.75rem; color:var(--text-light); width:55px; text-align:right; flex-shrink:0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
