/* ==========================================================================
   mon-metier.com — feuille de styles
   Charte issue du logo : marine, vert sarcelle, accent corail.
   --accent pilote tous les CTA → remplacer par var(--gold) pour la variante dorée.
   ========================================================================== */

:root {
  --navy:        #1C3D5A;
  --navy-dark:   #15314a;
  --teal:        #2E8B7F;
  --teal-mid:    #5BA8A0;
  --teal-soft:   #CDE7E2;
  --coral:       #F0654A;
  --coral-dark:  #d8512f;
  --gold:        #B8935A;

  --accent:          var(--coral);
  --accent-dark:     var(--coral-dark);
  --accent-contrast: #ffffff;

  --bg:        #EEF1F4;
  --surface:   #ffffff;
  --line:      rgba(13, 35, 56, .10);
  --text:      #1C2A3A;
  --muted:     #5f6b78;
  --muted-2:   #6b7886;
  --ink:       #233140;

  --radius:    10px;
  --radius-lg: 14px;
  --maxw:      1180px;
  --shadow:    0 1px 2px rgba(13,35,56,.04), 0 2px 8px rgba(13,35,56,.05);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; color: var(--navy); font-weight: 700; }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy);
  color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Accessibilité : focus clavier visible + contenu réservé aux lecteurs d'écran */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 2px;
}
.map path:focus-visible { outline: 2px solid var(--navy); outline-offset: -1px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius);
  font-weight: 600; border: 1px solid transparent; cursor: pointer;
  background: #fff; color: var(--navy); line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn--accent { background: var(--accent); color: var(--accent-contrast); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline { background: #fff; border-color: var(--line); color: var(--navy); }
.btn.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Header ----------------------------------------------------------------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand__ico { width: 40px; height: 40px; flex: none; }
.brand__ico svg { width: 100%; height: 100%; display: block; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.18; }
.brand__name { font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.brand__tag { font-size: .72rem; color: var(--muted); max-width: 290px; }
.brand--footer .brand__name { color: var(--navy); }
.brand__logo { height: 54px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a { color: #3a4654; font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: 7px; }
.main-nav a svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.main-nav a:hover { color: var(--navy); text-decoration: none; }
.main-nav a:hover svg, .main-nav a.is-active svg { color: var(--teal); }
.main-nav a.is-active { color: var(--navy); }
.nav-cta { color: #fff !important; display: inline-flex; align-items: center; gap: 7px; }
.nav-cta svg { width: 17px; height: 17px; color: #fff; }
.nav-cta:hover { color: #fff !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); display: block; }

/* Hero ------------------------------------------------------------------- */
.hero {
  background: linear-gradient(125deg, var(--navy-dark) 0%, var(--navy) 38%, var(--teal) 115%);
  color: #fff; text-align: center;
  padding: 36px 20px 40px;
}
.hero h1 { color: #fff; font-size: 2.2rem; margin: 0 0 10px; }
.hero p { color: #cbdae0; font-size: 1.05rem; margin: 0 auto 18px; max-width: 640px; }
.search {
  display: flex; align-items: center; gap: 8px;
  max-width: 620px; margin: 0 auto; background: #fff;
  border-radius: 32px; padding: 7px 7px 7px 22px;
}
.search input {
  flex: 1; border: 0; font-size: 1rem; color: var(--text);
  background: transparent; padding: 8px 0; font-family: inherit;
}
.search button {
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--accent); color: #fff; cursor: pointer;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
}
.search button:hover { background: var(--accent-dark); }
.hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-top: 22px; }
.hero-links a {
  color: #eaf2f4; font-size: .9rem; font-weight: 600;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.20);
  padding: 7px 15px; border-radius: 20px; transition: background .12s;
}
.hero-links a:hover { background: rgba(255,255,255,.22); color: #fff; text-decoration: none; }

/* Sections --------------------------------------------------------------- */
.section { padding: 26px 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section__head h2 { font-size: 1.5rem; margin: 0; }
.section__head a { color: var(--accent-dark); font-weight: 600; }

/* Dashboard grid (accueil) ---------------------------------------------- */
.dashboard {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: -34px; position: relative; z-index: 2;
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 13px 16px; box-shadow: var(--shadow);
  position: relative;
}
.card__title { font-size: 1.05rem; margin: 0; }
.card__sub { color: var(--muted-2); font-size: .85rem; margin: 2px 0 12px; }
.card--map { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.card--map .map { flex: 1; }
.card--wide { grid-column: span 2; }
.card--tall { grid-row: span 2; }

/* Palmarès list ---------------------------------------------------------- */
.rank { list-style: none; margin: 0; padding: 0; }
.rank li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem;
}
.rank li:last-child { border-bottom: 0; }
.rank__num {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.rank__name { flex: 1; color: var(--text); }
.rank__name:hover { color: var(--accent-dark); }
.rank__val { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Map -------------------------------------------------------------------- */
.map { position: relative; width: 100%; min-height: 360px; }
.map svg { width: 100%; height: auto; }
.map path { stroke: #fff; stroke-width: .4; cursor: pointer; transition: opacity .12s; }
.map path:hover { opacity: .8; }
.map path.no-data { fill: #d8dde3; }
.map-tip {
  position: absolute; opacity: 0; pointer-events: none; z-index: 5;
  background: var(--navy); color: #fff; font-size: .8rem; line-height: 1.4;
  padding: 6px 9px; border-radius: 6px; transition: opacity .1s;
}
.legend { display: flex; align-items: center; gap: 4px; font-size: .75rem; color: var(--muted); margin-top: 8px; }
.legend__bar { height: 9px; flex: 1; border-radius: 3px;
  background: linear-gradient(90deg, #FEF0D9, #FDCC8A, #FC8D59, #E34A33, #B30000); }

/* Stats ------------------------------------------------------------------ */
.stat__val { font-size: 1.7rem; font-weight: 700; color: var(--teal); }
.stat__lbl { color: var(--muted); font-size: .85rem; margin-bottom: 14px; }

/* Mini bar/line charts (placeholders SVG) ------------------------------- */
.chart { width: 100%; height: auto; }
.chart--map path { transition: opacity .12s; }
.chart--map a:hover path, .chart--map path:hover { opacity: .72; cursor: pointer; }
.chart-legend { display: flex; gap: 14px; font-size: .78rem; color: var(--muted); margin: 2px 0 6px; }
.chart-legend i { width: 10px; height: 3px; border-radius: 2px; display: inline-block; vertical-align: middle; margin-right: 4px; }

/* Range slider (statique, démo) ----------------------------------------- */
.slider { margin: 12px 0 18px; }
.slider__lbl { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-bottom: 9px; }
.slider__track { position: relative; height: 4px; background: #e2e6ec; border-radius: 3px; }
.slider__fill { position: absolute; top: 0; height: 4px; background: var(--teal-mid); border-radius: 3px; }
.slider__knob { position: absolute; top: -5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); margin-left: -7px; }
.slider__val { display: flex; justify-content: space-between; font-size: .82rem; color: var(--navy); margin-top: 8px; }

/* Generic content cards grid (métiers, guides, actus) ------------------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px;
}
.tile h3 { font-size: 1.1rem; margin: 0; }
.tile .badge { align-self: flex-start; }
/* Illustration en bannière (Gemini) : flush au haut de la carte, coins arrondis */
.tile__imgwrap { display: block; margin: -18px -18px 0; }
.tile__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--teal-soft); }
.article-hero__img { display: block; width: 100%; max-height: 360px; object-fit: cover;
  border-radius: var(--radius-lg); margin-top: 18px; }
.tile__meta { color: var(--muted-2); font-size: .82rem; }
.tile__foot { margin-top: auto; padding-top: 10px; }
/* Pagination numérotée (chaque page accessible en 1 clic) */
.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin-top: 28px; }
.pager__pg, .pager__nav { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--navy); font-weight: 600; font-size: .92rem; line-height: 1; text-decoration: none; }
.pager__pg:hover, .pager__nav:hover { background: var(--teal-soft); border-color: var(--teal-soft); color: var(--navy); text-decoration: none; }
.pager__pg.is-current { background: var(--navy); border-color: var(--navy); color: #fff; cursor: default; }
.pager__gap { padding: 0 4px; color: var(--muted); }
/* Tuile avec photo de fond + voile dégradé + texte clair (cartes palmarès) */
.tile--photo {
  position: relative; overflow: hidden; min-height: 184px; justify-content: flex-end;
  background-image: linear-gradient(180deg, rgba(16,34,52,.28) 0%, rgba(16,34,52,.72) 55%, rgba(16,34,52,.90) 100%), var(--card-bg, none);
  background-size: cover; background-position: center; background-color: var(--navy);
  border-color: transparent; color: #fff;
}
.tile--photo h3 a { color: #fff; }
.tile--photo h3 a:hover { color: #fff; }
.tile--photo p { color: rgba(255,255,255,.9); }
.tile--photo:hover { box-shadow: 0 14px 30px rgba(13,35,56,.26); }

.badge {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  background: var(--teal-soft); color: #14584e; padding: 3px 10px; border-radius: 20px;
}
.badge--rome { background: #e6eef5; color: var(--navy); font-variant-numeric: tabular-nums; }

/* Page header band (pages internes) ------------------------------------- */
.page-head { background: var(--navy); color: #fff; padding: 22px 0; }
.page-head h1 { color: #fff; margin: 0 0 6px; font-size: 1.9rem; }
.page-head p { color: #cbdae0; margin: 0; }
.page-head p a { color: #fff; text-decoration: underline; }
.page-head p a:hover { color: #fff; text-decoration: none; }
.breadcrumb { font-size: .82rem; color: #aebfcc; margin-bottom: 12px; }
.breadcrumb a { color: #cbdae0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "\203A"; color: #7e93a4; }

/* Métier page ------------------------------------------------------------ */
.metier-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; align-items: start; }
.salaire-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 15px; box-shadow: var(--shadow); }
.salaire-offres { margin: 4px 0 16px; padding: 12px 14px; background: #f6f9fb; border: 1px solid var(--line); border-radius: var(--radius); }
/* Résumé d'une offre d'emploi (extrait de la description) : 2 lignes max */
.offre-resume { margin: 6px 0 1px; color: var(--ink); font-size: .9rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.salaire-box .big { font-size: 2rem; font-weight: 700; color: var(--teal); }
.fourchette { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-size: .9rem; }
.fourchette__bar { position: relative; flex: 1; height: 8px; background: #e2e6ec; border-radius: 5px; }
.fourchette__seg { position: absolute; height: 8px; background: var(--teal-mid); border-radius: 5px; }
.note-fallback {
  display: flex; gap: 8px; background: #fff7ed; border: 1px solid #f6d9b8;
  color: #8a5a1a; padding: 10px 12px; border-radius: var(--radius); font-size: .85rem; margin-top: 12px;
}
.def-list { display: grid; gap: 10px; margin: 0; padding: 0; }
.def-list li { list-style: none; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #eef2f6; border-radius: 20px; padding: 6px 14px; font-size: .88rem; color: var(--navy); }
a.chip:hover { background: #dde6ee; text-decoration: none; }

/* Tables (palmarès) ------------------------------------------------------ */
.table-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 18px; }
.field label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.field select, .field input {
  padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: .95rem; background: #fff; color: var(--text);
}
/* Conteneur de tableau défilable : évite le débordement horizontal de la page en mobile */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .ranking { min-width: 640px; }
.ranking { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.ranking th, .ranking td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.ranking th { background: #f5f7f9; font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.ranking tr:last-child td { border-bottom: 0; }
.ranking td.num { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 8px; background: var(--teal-mid); border-radius: 5px; }
.bar-wrap { background: #eef2f6; border-radius: 5px; min-width: 80px; }

/* Barres « salaire par catégorie » (âge, taille d'entreprise…) — label · barre · valeur. */
.salbars { display: grid; gap: 8px; margin: 8px 0 4px; }
.salbar-row { display: grid; grid-template-columns: 132px 1fr 88px; align-items: center; gap: 12px; }
.salbar-row .bar-wrap { height: 13px; }
.salbar-row .bar { height: 13px; background: var(--teal); }
.salbar-lbl { font-size: .9rem; color: var(--ink); }
.salbar-val { text-align: right; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .salbar-row { grid-template-columns: 104px 1fr 66px; gap: 8px; } .salbar-lbl { font-size: .82rem; } }

/* Compétences & savoirs (fiche métier) : mise en page éditoriale sur deux
   colonnes (flux journal), titres de groupe soulignés d'un filet, puces fines. */
.comp-cols { columns: 2; column-gap: 40px; margin: 16px 0 4px; }
.comp-group { break-inside: avoid; margin: 0 0 20px; }
.comp-group h3 { font-size: .95rem; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--teal-soft); color: var(--navy); }
.comp-group--savoir h3 { border-bottom-color: #EADFC9; }
.comp-group ul { list-style: none; margin: 0; padding: 0; }
.comp-group li { padding: 4px 0 4px 14px; position: relative; font-size: .92rem; line-height: 1.5; color: var(--ink); }
.comp-group li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--teal-mid); }
.comp-group--savoir li::before { background: var(--gold); }
.chip--soft { background: var(--teal-soft); color: var(--navy); }

/* Repères chiffrés d'un palmarès : rangée sobre, chiffres forts, filet latéral */
.stats-row { display: flex; flex-wrap: wrap; gap: 14px 46px; margin: 2px 0 24px; }
.stats-row > div { padding-left: 14px; border-left: 3px solid var(--teal-soft); }

/* Encadré « analyse des chiffres » -------------------------------------- */
.analyse { background: var(--teal-soft, #CDE7E2); border: 1px solid rgba(46,139,127,.28);
  border-left: 4px solid var(--teal); border-radius: var(--radius); padding: 16px 18px; margin: 22px 0; }
.analyse h2, .analyse h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--navy); }
.analyse p { margin: 0 0 10px; color: var(--ink); font-size: .95rem; line-height: 1.6; }
.analyse p:last-child { margin-bottom: 0; }
.analyse strong { color: var(--navy); }

/* Article (guide / actu) ------------------------------------------------- */
.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-size: 1.4rem; margin: 1.6rem 0 .6rem; }
.prose p { margin: 0 0 1.1rem; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 32px; padding: 28px 0 0; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 28px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer__h { font-size: .95rem; margin: 0 0 6px; color: var(--navy); }
.site-footer a { color: var(--muted); }
.site-footer__bottom { border-top: 1px solid var(--line); margin-top: 28px; padding: 16px 0; }

/* === Accueil (refonte maquette) ======================================== */
.hero--home { text-align: left; padding: 40px 20px 44px; position: relative; }
.hero--home .hero__inner { position: relative; z-index: 2; }
/* couche de fond qui rogne UNIQUEMENT le filigrane France (pas le menu d'autocomplétion, qui doit pouvoir déborder sous le hero) */
.hero__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.hero--home h1 { font-size: 2.7rem; line-height: 1.12; max-width: 720px; margin: 0 0 14px; }
.hero--home p { margin: 0 0 18px; max-width: 600px; }
.hero__map { position: absolute; top: 50%; right: 3%; width: 460px; height: 460px; transform: translateY(-50%);
  background: url('/assets/img/france-hero.svg') no-repeat center / contain; opacity: .12; pointer-events: none; }

.hero-search { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 16px;
  padding: 8px 8px 8px 18px; max-width: 760px; box-shadow: 0 14px 34px rgba(0,0,0,.20); }
.hero-search__ico { width: 22px; height: 22px; color: var(--muted); flex: none; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 1.05rem; padding: 12px 6px; background: transparent; color: var(--ink); }
/* l'autocomplete JS enveloppe l'input dans un <div.ac-wrap> : il doit remplir la barre pour pousser le CTA tout à droite */
.hero-search .ac-wrap { flex: 1 1 auto; min-width: 0; display: flex; }
/* Recherche universelle : libellé de type coloré dans le menu d'autocomplétion */
.ac-menu li[data-type] .small { font-weight: 600; white-space: nowrap; }
.ac-menu li[data-type="metier"] .small { color: var(--teal); }
.ac-menu li[data-type="commune"] .small { color: var(--muted); }
.ac-menu li[data-type="departement"] .small,
.ac-menu li[data-type="region"]      .small { color: var(--gold); }
.hero-search button { flex: none; width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--accent);
  color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.hero-search button svg { width: 22px; height: 22px; }
.hero-search button:hover { background: var(--accent-dark); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.hero-chip { display: inline-flex; align-items: center; gap: 8px; color: #eaf2f4; font-size: .9rem; font-weight: 600;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); padding: 9px 16px; border-radius: 24px; transition: background .12s; }
.hero-chip svg { width: 17px; height: 17px; opacity: .9; }
.hero-chip:hover { background: rgba(255,255,255,.18); color: #fff; text-decoration: none; }

.explore-title { font-size: 1.7rem; color: var(--navy); max-width: 300px; margin: 0 0 14px; }
.explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.explore-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.explore-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(13,35,56,.10); text-decoration: none; }
.explore-card__ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 12px; }
.explore-card__ico svg { width: 28px; height: 28px; }
.explore-card__ico--teal { background: var(--teal-soft); color: var(--teal); }
.explore-card__ico--blue { background: #e3ecf6; color: #3a6ea5; }
.explore-card h3 { margin: 0 0 8px; font-size: 1.2rem; color: var(--navy); }
.explore-card p { margin: 0 0 12px; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.explore-card__link { color: var(--teal); font-weight: 700; font-size: .95rem; }

/* Variante : photo de fond + voile dégradé sombre + texte clair (cartes « explorer ») */
.explore-card--photo {
  background-image: linear-gradient(180deg, rgba(16,34,52,.55) 0%, rgba(16,34,52,.88) 100%), var(--card-bg, none);
  background-size: cover; background-position: center; background-color: var(--navy);
  border-color: transparent; color: #fff; min-height: 250px;
  display: flex; flex-direction: column;
}
.explore-card--photo h3 { color: #fff; }
.explore-card--photo p { color: rgba(255,255,255,.92); }
.explore-card--photo .explore-card__link { color: #fff; margin-top: auto; }
.explore-card--photo .explore-card__ico { background: rgba(255,255,255,.18); color: #fff; }
.explore-card--photo:hover { box-shadow: 0 16px 34px rgba(13,35,56,.28); }

.kpi-band { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 22px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 16px 22px; margin: 20px 0; }
.kpi-band__head { display: flex; align-items: center; gap: 14px; }
.kpi-band__ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); flex: none; }
.kpi-band__head strong { display: block; font-size: 1.1rem; color: var(--navy); margin-bottom: 2px; }
.kpi__val { font-size: 1.7rem; font-weight: 800; color: var(--teal); line-height: 1.1; }
.kpi__lbl { font-size: .9rem; color: var(--ink); margin-top: 3px; }
.kpi__src { font-size: .76rem; color: var(--muted-2); margin-top: 2px; }
.sources-box { background: #f3f6f9; border-radius: 12px; padding: 13px 16px; }
.sources-box__t { font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.sources-box a { display: block; font-size: .9rem; color: var(--navy); padding: 2px 0; }

.home-map-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: stretch; }
.card--mapwide .map { min-height: 420px; }
/* Colonne droite : deux classements empilés qui remplissent la hauteur de la carte (bas alignés) */
.palm-stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.palm-stack > .card { flex: 1 1 0; display: flex; flex-direction: column; }
.palm-stack > .card .rank { margin-bottom: 6px; }
.palm-stack > .card .tile__foot { margin-top: auto; }
.legend--steps { display: flex; flex-wrap: wrap; gap: 5px 16px; font-size: .82rem; color: var(--muted); margin-top: 8px; }
.legend--steps > span { display: inline-flex; align-items: center; gap: 6px; }
.legend__sw { width: 16px; height: 11px; border-radius: 2px; display: inline-block; }
.rank--bars li { display: grid; grid-template-columns: auto 1.4fr 2fr auto; align-items: center; gap: 10px; }
.rank--bars .rank__bar { height: 8px; background: #f1e8e3; border-radius: 5px; overflow: hidden; }
.rank--bars .rank__bar span { display: block; height: 100%; background: var(--accent); border-radius: 5px; }
.home-charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.home-charts .card { padding: 14px 16px; }

@media (max-width: 980px) {
  .hero--home h1 { font-size: 2.1rem; }
  .hero__map { display: none; }
  .explore-grid, .home-charts { grid-template-columns: 1fr; }
  .home-map-row { grid-template-columns: 1fr; }
  .palm-stack > .card { flex: none; }
  .kpi-band { grid-template-columns: 1fr 1fr; }
  .kpi-band__head { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .kpi-band { grid-template-columns: 1fr; } }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 980px) {
  .dashboard { grid-template-columns: repeat(2, 1fr); }
  .card--map { grid-column: 1 / -1; grid-row: auto; }
  .card--tall { grid-row: auto; }
  .card--wide { grid-column: auto; }
  .metier-layout { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .comp-cols { columns: 1; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px; z-index: 30;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 6px 20px 14px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 12px; justify-content: center; }
  .brand__tag { display: none; }
  .site-header { position: relative; }
  .hero h1 { font-size: 1.7rem; }
  .dashboard { grid-template-columns: 1fr; margin-top: -20px; }
  .card--map, .card--wide { grid-column: auto; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ============================================================
   Style « magazine » — pages de découverte (comparateur, listes)
   Éditorial : kicker, gros titre, une-à-la-une, liste à filets fins.
   ============================================================ */
.mag-kicker{font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:var(--teal);font-weight:800;margin:0 0 8px}
.mag-h2{font-size:1.45rem;line-height:1.12;letter-spacing:-.015em;color:var(--navy);margin:38px 0 4px}
.mag-h2:first-child{margin-top:0}
.mag-dek{color:var(--muted);margin:0 0 16px;max-width:62ch}

/* Une à la une : deux métiers face à face, sans carte (filets seulement) */
.mag-feature{display:block;text-decoration:none;color:inherit;border-top:2px solid var(--navy);border-bottom:1px solid var(--line);padding:18px 0 22px;margin:0 0 10px}
.mag-feature__k{font-size:.68rem;letter-spacing:.16em;text-transform:uppercase;color:var(--coral);font-weight:800}
.mag-feature__pair{display:flex;flex-wrap:wrap;align-items:baseline;gap:.35em .6em;margin:6px 0 8px}
.mag-feature__pair b{font-size:1.9rem;line-height:1.05;font-weight:800;color:var(--navy);letter-spacing:-.02em}
.mag-feature__pair em{font-style:italic;font-weight:400;color:var(--muted);font-size:1.15rem}
.mag-feature__cta{color:var(--teal);font-weight:700;font-size:.95rem}
.mag-feature:hover .mag-feature__pair b{color:var(--teal)}
.mag-feature:hover .mag-feature__cta{text-decoration:underline}

/* Liste éditoriale en colonnes, filets fins */
.mag-list{list-style:none;margin:0;padding:0}
@media(min-width:720px){.mag-list--2{column-count:2;column-gap:52px}}
.mag-item{display:flex;align-items:baseline;gap:16px;padding:15px 0;border-top:1px solid var(--line);text-decoration:none;color:var(--text);break-inside:avoid}
.mag-item__num{font-weight:800;color:var(--teal-mid);min-width:1.7em;font-variant-numeric:tabular-nums;font-size:.98rem}
.mag-item__body{flex:1;min-width:0}
.mag-item__title{font-size:1.1rem;line-height:1.28;font-weight:700;color:var(--navy)}
.mag-item__title .m-or{font-weight:400;font-style:italic;color:var(--muted);margin:0 .25em}
.mag-item__dek{color:var(--muted);font-size:.88rem;margin-top:3px;line-height:1.4}
.mag-item__arrow{color:var(--line-strong,#9aa7b4);align-self:center;transition:transform .15s,color .15s}
.mag-item:hover .mag-item__title{color:var(--teal)}
.mag-item:hover .mag-item__arrow{transform:translateX(4px);color:var(--teal)}
.mag-foot{color:var(--muted);font-size:.85rem;margin-top:24px;border-top:1px solid var(--line);padding-top:14px}

/* --- Face-à-face « versus » (comparateur de métiers) --- */
.vs{margin:6px 0 4px}
.vs-head{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:14px;padding:2px 0 16px;border-bottom:2px solid var(--navy)}
.vs-head__m{font-size:1.2rem;font-weight:800;color:var(--navy);line-height:1.15;letter-spacing:-.01em;text-decoration:none}
.vs-head__m:first-child{text-align:right}.vs-head__m:last-child{text-align:left}
.vs-head__m:hover{color:var(--teal);text-decoration:underline}
.vs-head__vs{font-size:.66rem;font-weight:800;letter-spacing:.12em;color:#fff;background:var(--coral);border-radius:999px;padding:5px 11px;text-transform:uppercase;white-space:nowrap}
.vs-row{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:14px;padding:14px 0;border-top:1px solid var(--line)}
.vs-crit{font-size:.68rem;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);text-align:center;font-weight:700;line-height:1.25;width:11em}
.vs-val{font-size:1.06rem;color:var(--ink);font-variant-numeric:tabular-nums;line-height:1.25}
.vs-val:first-child{text-align:right}.vs-val:last-child{text-align:left}
.vs-val--win{color:var(--teal);font-weight:800}
.vs-mark{font-size:.6em;vertical-align:.15em;color:var(--teal)}
@media(max-width:600px){
  .vs-head__m{font-size:1rem}
  .vs-crit{width:auto;font-size:.6rem}
  .vs-val{font-size:.92rem}
  .vs-row,.vs-head{gap:8px}
}

/* Barres de proportion (critères chiffrés du face-à-face) : deux jauges miroir depuis le centre */
.vs-row{padding-bottom:9px}
.vs-bar{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:7px 0 3px}
.vs-bar__cell{height:5px;border-radius:3px;background:var(--line);display:flex;overflow:hidden}
.vs-bar__cell--l{justify-content:flex-end}
.vs-bar__cell i{display:block;height:100%;background:var(--teal-mid);border-radius:3px}
.vs-bar__cell--l i{border-radius:3px 0 0 3px}
.vs-bar__cell--r i{border-radius:0 3px 3px 0}
.vs-bar__cell i.win{background:var(--teal)}
.vs-crit-mid{width:11em}
@media(max-width:600px){.vs-crit-mid{width:auto}.vs-bar{gap:8px}}
