/* Faroe · blog
   Mise en page : bandeau bleu (en-tête), colonne de lecture sur fond clair, bandeaux bleus pour l'appel à l'action et le pied de page.
   Couleurs et règles reprises du design system Faroe (Brand Book V15) : un seul jaune par visuel, angles droits, filets, chiffres en mono. */

:root {
  --paper: #EFE9DB;
  --navy: #172A33;
  --yellow: #D9A441;
  --yellow-ink: #8A5D18;
  --grey: #8D8574;
  --grid-paper: #D8D0BE;
  --grid-navy: #24404C;

  --surface: var(--paper);
  --ink: var(--navy);
  --signal: var(--yellow);
  --signal-text: var(--yellow-ink);
  --tint: var(--grid-paper);
  --rule: var(--grey);

  --font-sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1120px;
  --measure: 680px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
}
img, svg { max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.wrap {
  max-width: calc(var(--wrap) + 64px);
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); color: var(--navy); padding: 8px 12px; z-index: 20; }

/* Mono : surtitres, légendes, repères */
.mono, .surtitre, .legende {
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.surtitre { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; line-height: 1.3; }
.legende { font-size: 11px; font-weight: 400; letter-spacing: 0.04em; line-height: 1.35; }

/* ---------- En-tête (fond bleu) ---------- */
.band-bleu { background: var(--navy); color: var(--paper); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
}
.logo { display: block; width: 104px; flex: none; }
.logo img { display: block; width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--paper); }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav .lang { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; display: flex; gap: 10px; }
.nav .lang span { opacity: 1; font-weight: 600; }
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  padding: 12px 18px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.band-bleu .btn { color: var(--paper); }
.band-bleu .btn:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.btn-plein { background: var(--paper); color: var(--navy) !important; border-color: var(--paper); }
.btn-plein:hover { background: transparent !important; color: var(--paper) !important; }
@media (max-width: 900px) {
  .nav .nav-ancre { display: none; }
  .nav { gap: 18px; }
}
@media (max-width: 520px) {
  .nav .btn { display: none; }
  .logo { width: 92px; }
}

/* ---------- Index du blog ---------- */
.blog-hero .wrap { padding-block: 56px 64px; display: grid; gap: 40px; align-items: end; }
@media (min-width: 900px) { .blog-hero .wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); padding-block: 72px 80px; } }
.blog-hero h1 {
  margin: 12px 0 0;
  font-weight: 800;
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.blog-hero p { margin: 20px 0 0; font-size: 19px; line-height: 1.55; max-width: 34em; }
.blog-hero .trame { max-width: 460px; justify-self: end; width: 100%; }

.liste { padding-block: 56px 72px; }
.liste-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
.liste-tete h2 { margin: 0; font-size: 15px; }
.cartes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 40px;
  row-gap: 48px;
  margin-top: 40px;
}
@media (min-width: 640px) { .cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .cartes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.carte { display: flex; flex-direction: column; gap: 14px; min-width: 0; text-decoration: none; color: var(--ink); }
.carte .vignette { display: block; aspect-ratio: 1.6; background: var(--paper); border-top: 1px solid var(--rule); padding-top: 18px; }
.carte .vignette svg { display: block; width: 100%; height: 100%; }
.carte h3 { margin: 0; font-weight: 800; font-size: 22px; line-height: 1.22; text-wrap: balance; }
.carte p { margin: 0; font-size: 16px; line-height: 1.55; }
.carte .lire { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-top: auto; }
.carte:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.carte-une { grid-column: 1 / -1; display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .carte-une { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 56px; align-items: start; } }
.carte-une h3 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.15; }
.carte-une p { font-size: 18px; }
.carte-une .vignette { aspect-ratio: 1.9; }
.carte-une .texte { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* ---------- Article ---------- */
.fil { padding-block: 28px 0; }
.fil a { text-decoration: none; }
.fil a:hover { text-decoration: underline; }
.article-tete { padding-block: 28px 8px; }
.article-tete .inner { max-width: 860px; }
.article-tete h1 {
  margin: 14px 0 0;
  font-weight: 800;
  font-size: clamp(32px, 4.6vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.chapo { margin: 22px 0 0; font-size: 20px; line-height: 1.55; max-width: 36em; }
.meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; }

.visuel { margin: 40px 0 8px; }
.selection { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 3vw, 40px); }
.selection figure { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.selection svg { display: block; width: 100%; height: auto; }
.visuel .source { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--rule); }

.corps { max-width: var(--measure); padding-block: 24px 16px; }
.corps > * + * { margin-top: 1.1em; }
.corps p { margin-bottom: 0; }
.corps h2 {
  font-weight: 800;
  font-size: 27px;
  line-height: 1.2;
  margin: 2em 0 0;
  text-wrap: balance;
}
.corps h2 + * { margin-top: 0.7em; }
.corps h3 { font-weight: 800; font-size: 19px; line-height: 1.3; margin: 1.6em 0 0; }
.corps h3 + * { margin-top: 0.4em; }
.corps ul, .corps ol { padding-left: 1.2em; margin-bottom: 0; }
.corps li + li { margin-top: 0.45em; }
.corps li::marker { color: var(--ink); }
.corps strong { font-weight: 800; }
.nobr { white-space: nowrap; }
.corps a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.corps sup { line-height: 0; }
.corps sup a { text-decoration: none; font-family: var(--font-mono); font-size: 11px; font-weight: 600; padding: 0 1px; }
.retenu { color: var(--signal-text); font-weight: 800; }

/* Chiffres clés : trois chiffres, un seul en jaune */
.chiffres { margin: 2.2em 0 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 28px 36px; border-top: 1px solid var(--rule); padding-top: 22px; }
.chiffre { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.chiffre .val { font-family: var(--font-mono); font-weight: 600; font-size: clamp(38px, 5vw, 50px); line-height: 1; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.chiffre .val.retenu { color: var(--signal-text); }
.chiffre .lib { font-size: 15px; line-height: 1.45; }
.chiffres + .legende { margin-top: 14px !important; }

/* Tableau : filets horizontaux, aucune bordure verticale */
.tableau { overflow-x: auto; margin-top: 1.6em !important; }
.tableau table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
@media (max-width: 520px) { .tableau table { font-size: 14px; } .tableau th, .tableau td { padding-right: 10px; } }
.tableau th, .tableau td { text-align: left; vertical-align: top; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--rule); }
.tableau thead th { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid var(--ink); }
.tableau td.mono { font-size: 13px; text-transform: none; font-variant-numeric: tabular-nums; }

/* Encadré : aplat clair */
.encadre { background: var(--tint); padding: 22px 24px; margin-top: 1.8em !important; }
.encadre > * + * { margin-top: 0.6em; }
.encadre .surtitre { display: block; }
.encadre p { margin: 0; }
.encadre ul { margin: 0; }

/* Bandeau de conclusion */
.bandeau { background: var(--navy); color: var(--paper); font-weight: 800; font-size: 20px; line-height: 1.35; padding: 20px 24px; margin-top: 2em !important; }
.bandeau .retenu { color: var(--yellow); }

/* Sources */
.sources { max-width: var(--measure); padding-block: 8px 48px; }
.sources h2 { font-size: 12px; margin: 0 0 12px; border-top: 1px solid var(--rule); padding-top: 14px; }
.sources ol { margin: 0; padding-left: 1.6em; font-size: 14px; line-height: 1.5; }
.sources li + li { margin-top: 6px; }
.sources li::marker { font-family: var(--font-mono); font-size: 12px; }
.sources a { overflow-wrap: anywhere; text-underline-offset: 3px; }

/* Appel à l'action */
.cta .wrap { padding-block: 56px; display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta .wrap { grid-template-columns: minmax(0, 1.4fr) auto; } }
.cta h2 { margin: 10px 0 0; font-weight: 800; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; text-wrap: balance; }
.cta p { margin: 14px 0 0; font-size: 17px; max-width: 36em; }
.cta .btn { justify-self: start; font-size: 16px; padding: 15px 22px; }

/* À lire aussi */
.aussi { padding-block: 56px 72px; }
.aussi .cartes { margin-top: 28px; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--grid-navy); }
.site-footer .wrap { padding-block: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .liens { display: flex; flex-wrap: wrap; gap: 8px 22px; }

@media (prefers-reduced-motion: no-preference) {
  .carte h3, .btn { transition: color .15s ease, background-color .15s ease; }
}

/* ---------- Revue de presse ---------- */
.carte-revue .points { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.carte-revue .points li { padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.45; }

.lignes { border-top: 1px solid var(--rule); margin-top: 8px; }
.cartes + .lignes, .lignes + .cartes { margin-top: 40px; }
.ligne-revue {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 6px 24px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
}
.ligne-revue .titre { font-weight: 800; font-size: 18px; line-height: 1.3; min-width: 0; }
.ligne-revue:hover .titre { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px) {
  .ligne-revue { grid-template-columns: minmax(0, 1fr); }
}

.bande { margin: 36px 0 8px; }
.bande svg { display: block; width: 100%; height: auto; }

.revue { display: grid; gap: 40px; padding-block: 28px 24px; }
@media (min-width: 1000px) {
  .revue { grid-template-columns: 280px minmax(0, 720px); column-gap: 64px; align-items: start; }
  .essentiel { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 24px); }
}
.essentiel { background: var(--tint); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.essentiel h2 { margin: 0; }
.essentiel > ul { margin: 0; padding-left: 1.1em; font-size: 15.5px; line-height: 1.5; }
.essentiel > ul li + li { margin-top: 8px; }
.sommaire { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.sommaire a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-size: 15px; font-weight: 800; }
.sommaire a:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; }

.revue-corps { min-width: 0; }
.theme + .theme { margin-top: 48px; }
.theme { scroll-margin-top: 24px; }
.theme > h2 { margin: 0 0 4px; font-weight: 800; font-size: 26px; line-height: 1.2; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.actu { display: grid; gap: 8px 28px; padding: 20px 0 22px; border-bottom: 1px solid var(--rule); }
@media (min-width: 720px) { .actu { grid-template-columns: 150px minmax(0, 1fr); } }
.actu-meta { margin: 3px 0 0; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 719px) { .actu-meta { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; } }
.actu-corps { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.actu h3 { margin: 0; font-weight: 800; font-size: 19px; line-height: 1.3; text-wrap: balance; }
.actu p { margin: 0; font-size: 16px; line-height: 1.6; }
.actu .impact strong { font-weight: 800; }
.actu .lien a { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; text-underline-offset: 3px; }
.note { margin-top: 28px; max-width: 60em; }
.liste-tete + .lignes { border-top: 0; }
.sommaire a { align-items: baseline; }
.actu p.actu-meta { font-size: 12px; line-height: 1.4; }
@media (max-width: 719px) { .bande { display: none; } }

/* ---------- Illustrations (plans vus du ciel) ---------- */
.carte .vignette { padding-top: 0; border-top: 0; overflow: hidden; background: var(--tint); }
.carte .vignette svg, .tuile svg, .theme-visuel svg, .visuel-dossier .cadre svg { display: block; width: 100%; height: 100%; }
.mosaique { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 520px; width: 100%; justify-self: end; }
.mosaique figure { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mosaique .tuile { aspect-ratio: 1.36; overflow: hidden; background: var(--tint); }
.mosaique .legende { color: var(--paper); }
@media (max-width: 899px) { .mosaique { justify-self: start; max-width: 100%; } }
@media (max-width: 520px) { .mosaique { gap: 10px; } }
.theme-visuel { aspect-ratio: 4.4; overflow: hidden; background: var(--tint); margin-bottom: 16px; }
@media (max-width: 719px) { .theme-visuel { aspect-ratio: 2.6; } }
.semaine { margin: 36px 0 8px; }
.semaine h2 { margin: 0; }
.semaine .chiffres { margin-top: 14px !important; }
.semaine .chiffres + .legende { margin: 14px 0 0; }
.visuel-dossier { margin: 36px 0 8px; display: flex; flex-direction: column; gap: 10px; }
.visuel-dossier .cadre { aspect-ratio: 2.6; overflow: hidden; background: var(--tint); }
@media (max-width: 719px) { .visuel-dossier .cadre { aspect-ratio: 1.6; } }
