/* Styles communs — Observatoire des molécules. Les couleurs viennent de tokens.css. */
@import url("tokens.css");

/* Polices de la charte (OFL, locales) : Barlow pour le texte, Saira Condensed pour les titres */
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-ext-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-ext-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-ext-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Saira Condensed"; src: url("fonts/saira-condensed-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Saira Condensed"; src: url("fonts/saira-condensed-latin-ext-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Saira Condensed"; src: url("fonts/saira-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Saira Condensed"; src: url("fonts/saira-condensed-latin-ext-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Saira Condensed"; src: url("fonts/saira-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Saira Condensed"; src: url("fonts/saira-condensed-latin-ext-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }

html { background: var(--bg); }
body { background: var(--bg); color: var(--text); font-family: var(--font-texte); }

/* ---------- Hiérarchie typographique (voir charte-design.md) ----------
   H1 36 px (--fs-3xl) · H2 28 px (--fs-2xl) · H3 22 px (--fs-xl) · H4 18 px (--fs-lg)
   Corps 16 px, interligne 1,6 · petit texte 14 px · légendes 12 px (jamais moins).
   Graisses : 700 pour H1, 600 pour H2–H4 et les libellés, 400 pour le corps.
   Les pages posent les tailles en tokens ; ces règles donnent le défaut aux titres sans style. */
h1, h2, h3, h4 { font-family: var(--font-titre); line-height: 1.2; letter-spacing: 0; font-weight: 600; }
h1 { font-size: var(--fs-3xl); font-weight: 700; letter-spacing: 0; line-height: 1.12; }
/* Marque (en-tête et pied de page) en titre condensé */
header > a:first-child, footer > p:first-child { font-family: var(--font-titre); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

/* ---------- Surfaces du navigateur dans la palette ---------- */
::selection { background: var(--seq-2); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Lien d'évitement : invisible jusqu'au focus clavier, premier élément de chaque page */
.lien-evitement { position: absolute; left: 12px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: var(--r-ctl); background: var(--btn); color: var(--on-btn); font-weight: 600; text-decoration: none; }
.lien-evitement:focus { top: 12px; }
a { text-underline-offset: .15em; text-decoration-thickness: 1px; }
table, td, th, [data-count], .stat, .kf, .po-stats, .pop-prix, .calc-table, .zoom-info, .om-ax { font-variant-numeric: tabular-nums; }

/* Images : légèrement atténuées en sombre */
[data-theme="dark"] img { filter: brightness(.9); }
[data-theme="dark"] img[src*="logo-"] { filter: brightness(.95) contrast(.95); background: #FFFFFF; border-radius: var(--r-ctl); padding: 4px; }

/* ---------- En-tête : lien « À propos » et bouton thème (petite icône carrée) ---------- */
.site-outils { display: flex; align-items: center; gap: 16px; }
.lien-apropos { color: var(--text); text-decoration: none; font-size: var(--fs-md); font-weight: 500; padding: 10px 0; border-bottom: 3px solid transparent; transition: color .15s, border-color .15s; }
.lien-apropos:hover { color: var(--primary-hover); }
.lien-apropos[aria-current="page"] { color: var(--primary); border-bottom-color: var(--accent); }
.site-controls { display: flex; align-items: center; }
.site-controls .ctl-theme {
  width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); background: var(--tint); border: 0; border-radius: var(--r-ctl); cursor: pointer;
  transition: color .18s, background-color .18s;
}
.site-controls .ctl-theme:hover { color: var(--primary-hover); background: var(--seq-2); }
.site-controls .ctl-theme .ico { width: 18px; height: 18px; display: block; }
@media (max-width: 720px) { .site-outils { width: 100%; justify-content: flex-end; } }

/* ---------- Étiquettes énergie (chronologie, graphes) : teinte pâle + encre de la même teinte ---------- */
.tag-energie { display: inline-block; font-size: var(--fs-xs); font-weight: 600; line-height: 1.4; padding: 1px 7px; border-radius: var(--r-ctl); }
.tag-energie::first-letter { text-transform: uppercase; }
.tag-energie[data-energie="gaz"] { color: var(--energie-gaz-ink); background: var(--energie-gaz-bg); }
.tag-energie[data-energie="elec"] { color: var(--energie-elec-ink); background: var(--energie-elec-bg); }
.tag-energie[data-energie="fuel"] { color: var(--energie-fuel-ink); background: var(--energie-fuel-bg); }
.tag-energie[data-energie="charbon"] { color: var(--energie-charbon-ink); background: var(--energie-charbon-bg); }
.tag-energie[data-energie="commun"] { color: var(--energie-commun-ink); background: var(--energie-commun-bg); }

/* Photos d'illustration : légère désaturation pour rester dans le ton béton de la charte */
img[src*="accueil-hero"], img[src*="-site.jpg"], img[src*="actu-"], img[src*="portrait-"] { filter: saturate(.78); }
[data-theme="dark"] img[src*="accueil-hero"], [data-theme="dark"] img[src*="-site.jpg"], [data-theme="dark"] img[src*="actu-"], [data-theme="dark"] img[src*="portrait-"] { filter: saturate(.72) brightness(.88); }

/* ---------- Mouvement (motion.js) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
header { position: relative; z-index: 20; }
nav a { transition: color .15s, border-color .15s; }
section article { transition: border-color .18s; }
section article:hover { border-color: var(--text-2); }

/* Fond Vanta NET : le seul moment signé du site, sous le contenu, grain discret */
.hero-vanta { position: relative; overflow: hidden; isolation: isolate; }
.hero-vanta > * { position: relative; z-index: 1; }
.hero-vanta canvas { position: absolute !important; inset: 0; z-index: 0; opacity: .55; }
.hero-vanta.vanta-on::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.om-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.om-draw .om-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: om-draw 1.2s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes om-draw { to { stroke-dashoffset: 0; } }
.po-indic { position: absolute; left: 0; bottom: -2px; height: 3px; background: var(--accent); width: 0; pointer-events: none; }
.periode-onglets { position: relative; }
.periode-onglet[aria-selected="true"] { border-top-color: transparent; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .om-progress, .po-indic { display: none; }
  .periode-onglet[aria-selected="true"] { border-top-color: var(--accent); }
}

/* Pied de page : liens légaux (toutes les pages) */
.pied-legal { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--dark-2); font-size: var(--fs-sm); }
.pied-legal a { color: var(--on-dark-2); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.pied-legal a:hover { color: var(--on-dark); }

/* Formulaire « Recevoir le rapport » (accueil) */
.form-label { display: block; margin: 0 0 6px; font-size: var(--fs-sm); font-weight: 600; }
.form-info { margin: 12px 0 0; font-size: var(--fs-xs); line-height: 1.5; color: var(--text-2); }
.form-bandeau .form-info, .form-bandeau .form-msg { flex: 1 1 100%; margin: 0; color: inherit; opacity: .9; }
.form-info a { color: inherit; }
.form-msg { margin: 8px 0 0; font-size: var(--fs-sm); font-weight: 600; min-height: 1.4em; }
.form-msg:empty { min-height: 0; margin: 0; }
.form-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-rapport button[disabled] { opacity: .6; cursor: progress; }

/* Pages simples renvoyées par le serveur (confirmation, suppression d'adresse) */
.page-simple { max-width: 640px; margin: 80px auto; padding: 0 20px; font-family: var(--font-texte); color: var(--text); }
.page-simple p { font-size: var(--fs-md); line-height: 1.6; color: var(--text-2); }
.btn-principal { font: inherit; font-weight: 600; padding: 12px 22px; border: 0; border-radius: var(--r-ctl); background: var(--accent); color: var(--on-accent); cursor: pointer; }

/* Édito de l'accueil : colonne de lecture, texte fourni par la rédaction */
/* édito : encadré blanc à angles droits et ombre légère, texte rouge foncé, gros, centré, en italique (demandes du 12/11/2026) ;
   portraits ronds en bas à droite, à cheval sur l'angle, pour rompre les lignes du cadre */
.edito { padding: 72px 56px 72px; }
.edito-carte { max-width: 1180px; margin: 0 auto; color: var(--text); }
.edito h2 { margin: 0 0 20px; font-size: var(--fs-2xl); color: inherit; }
.edito-titre { margin: 0 0 40px; max-width: 40ch; font-size: var(--fs-2xl); line-height: 1.2; color: inherit; }
/* asymétrie : photo 1/5, texte 4/5 ; la photo passe à droite dans le second bloc */
.edito-bloc { display: grid; grid-template-columns: minmax(150px, 1fr) 4fr; gap: 48px; align-items: start; }
.edito-bloc + .edito-bloc { margin-top: 24px; }
.edito-bloc-inverse { grid-template-columns: 4fr minmax(150px, 1fr); }
.edito-texte p { margin: 0 0 20px; font-size: var(--fs-xl); line-height: 1.55; font-style: italic; }
/* les photos débordent vers l'extérieur pour casser l'alignement des marges (sans sortir de l'écran) */
.edito-photo { --deborde: clamp(32px, calc((100vw - 1180px) / 2 - 8px), 96px); margin: 6px 0 0 calc(-1 * var(--deborde)); }
.edito-bloc-inverse .edito-photo { margin: 6px calc(-1 * var(--deborde)) 0 0; }
.edito-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; filter: grayscale(1); }
.edito-bloc-inverse .edito-photo figcaption { text-align: right; }
.edito-photo figcaption { margin-top: 12px; font-size: var(--fs-md); font-weight: 600; }
.edito-photo figcaption span { display: block; font-size: var(--fs-sm); font-weight: 400; color: var(--text-2); }
/* Mention « données non exhaustives » (Secteurs, Données, Cas concrets) : vigilance en gris foncé, pas en rouge */
.mention-echantillon { margin: 0 0 28px; max-width: 760px; padding: 10px 14px; border-left: 3px solid var(--text-2); background: var(--surface); font-size: var(--fs-sm); line-height: 1.5; color: var(--text); }
.tag-completer { display: inline-block; font-size: var(--fs-xs); font-weight: 600; padding: 2px 7px; border-radius: var(--r-ctl); background: var(--note-amber-bg); color: var(--note-amber-text); border: 1px solid var(--note-amber-line); vertical-align: middle; }
@media (max-width: 720px) { .edito { padding: 48px 16px 64px; } .edito-texte p { font-size: var(--fs-lg); } .edito-bloc, .edito-bloc-inverse { grid-template-columns: 1fr; gap: 20px; } .edito-photo, .edito-bloc-inverse .edito-photo { max-width: 200px; margin: 0; } .edito-bloc-inverse .edito-photo { order: -1; } .edito-bloc-inverse .edito-photo figcaption { text-align: left; } }

/* ---------- menu burger (sous 1200 px, ajouté par site.js) ---------- */
.menu-burger { display: none; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 0; border-radius: var(--r-ctl); background: var(--tint); color: var(--text); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.menu-burger:hover { background: var(--seq-2); color: var(--primary-hover); }
.menu-burger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu-burger .ico { width: 20px; height: 20px; display: block; }
.menu-burger path { transition: transform .2s, opacity .2s; transform-origin: 12px 12px; }
.menu-ouvert .menu-burger .l1 { transform: translateY(5px) rotate(45deg); }
.menu-ouvert .menu-burger .l2 { opacity: 0; }
.menu-ouvert .menu-burger .l3 { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 1200px) {
  header.js-menu { min-height: 72px !important; padding-top: 12px !important; padding-bottom: 12px !important; }
  header.js-menu .menu-burger { display: inline-flex; }
  header.js-menu .site-outils { width: auto; margin-left: auto; }
  header.js-menu > nav { display: none !important; order: 3; width: 100%; flex-direction: column !important; gap: 0 !important; padding: 0 0 12px; }
  header.js-menu.menu-ouvert > nav { display: flex !important; }
  header.js-menu > nav a { padding: 14px 0 !important; border-bottom: 1px solid var(--line) !important; font-size: var(--fs-lg) !important; }
  header.js-menu > nav a:last-child { border-bottom: 0 !important; }
}
@media (max-width: 720px) { header.js-menu .menu-lib { display: none; } header.js-menu .site-outils { gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .menu-burger path { transition: none; } }
/* grand écran : libellés longs (12/11/2026) ; en-tête sur deux rangées : nom et « À propos » en haut, menu dessous sur toute la largeur */
@media (min-width: 1201px) {
  header:has(> nav[aria-label="Navigation principale"]) { row-gap: 0 !important; padding-top: 18px !important; }
  header > nav[aria-label="Navigation principale"] { order: 3; flex: 1 0 100%; justify-content: space-between; gap: 6px 20px !important; margin-top: 10px; border-top: 1px solid var(--line); }
  header > .site-outils { order: 2; }
}
@media (min-width: 1201px) and (max-width: 1360px) { header > nav[aria-label="Navigation principale"] { font-size: var(--fs-sm) !important; } }
/* texte réservé aux lecteurs d'écran */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* marque : symbole « Flux » (logo retenu le 12/11/2026 : trois flux décalés, celui du milieu se coupe et passe au rouge, la transformation) + nom */
.marque { display: inline-flex; align-items: center; gap: 14px; }
.marque-logo { display: block; flex: none; width: 44px; height: 44px; }
.marque-logo .ml-encre { fill: var(--text); }
.marque-logo .ml-accent { fill: var(--accent); }
.marque-logo .ml-gris { fill: var(--text-2); }
.marque-suite { display: block; margin-top: 3px; font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-2); }
/* à partir de 900 px : nom complet sur une seule ligne (moins de vide dans l'en-tête) */
@media (min-width: 900px) { .marque-br { display: none; } .marque-suite { display: inline; margin: 0; font-size: var(--fs-lg); } .marque { white-space: nowrap; } }
/* familles de procédés de l'accueil : tuiles cliquables vers Données disponibles, onglet Technique */
a.procede-tuile { display: block; text-decoration: none; }
a.procede-tuile:hover p:last-child, a.procede-tuile:focus-visible p:last-child { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .marque { gap: 10px; } .marque-logo { width: 32px; height: 32px; } }
/* téléphone : symbole et nom réduits pour garder l'en-tête sur une ligne (À propos, thème, menu) */
@media (max-width: 420px) { .marque { gap: 8px; font-size: var(--fs-md) !important; } .marque-logo { width: 26px; height: 26px; } }
@media (max-width: 430px) { .marque-suite { font-size: var(--fs-xs); max-width: 11em; } }
@media (max-width: 430px) { .marque { letter-spacing: 0.04em !important; } header.js-menu { column-gap: 10px !important; } header.js-menu .site-outils { gap: 8px; } }
@media (max-width: 380px) { .marque { font-size: var(--fs-sm) !important; } .marque-suite { max-width: 9em; } header.js-menu .site-outils { gap: 6px; } header.js-menu .lien-apropos { font-size: var(--fs-sm); } }
/* actualités de l'accueil : carrousel de cartes plus hautes que larges (demande du 12/11/2026) */
.actu-carrousel { position: relative; }
.actu-piste { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; padding: 0 0 12px; }
.actu-piste:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.actu-carte { position: relative; flex: 0 0 clamp(240px, 26vw, 320px); aspect-ratio: 3 / 4; display: flex; flex-direction: column; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.actu-visuel { flex: 1 1 auto; min-height: 0; background: var(--placeholder); }
.actu-visuel img { display: block; width: 100%; height: 100%; object-fit: cover; }
.actu-texte { flex: none; padding: 20px 22px 24px; }
/* toute la carte est cliquable : le lien du titre couvre la carte */
.actu-lien { color: inherit; text-decoration: none; }
.actu-lien::after { content: ""; position: absolute; inset: 0; }
.actu-carte:hover .actu-lien { text-decoration: underline; }
.actu-lien:focus-visible { outline: none; }
.actu-carte:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.actu-nav { display: none; position: absolute; top: calc(50% - 30px); z-index: 2; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--dark); color: var(--on-dark); cursor: pointer; }
.actu-carrousel.defile .actu-nav { display: flex; }
.actu-nav:hover { background: var(--accent); }
.actu-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.actu-prec { left: -22px; }
.actu-suiv { right: -22px; }
@media (max-width: 720px) { .actu-prec { left: -8px; } .actu-suiv { right: -8px; } .actu-carte { flex-basis: 78vw; } }
/* étiquette du type de ressource, posée sur l'image */
.actu-etiquette { position: absolute; top: 16px; left: 16px; z-index: 1; margin: 0; padding: 4px 8px; font-size: var(--fs-xs); font-weight: 600; line-height: 1.3; background: var(--text); color: var(--bg); border-radius: var(--r-ctl); pointer-events: none; }
/* avec JavaScript (classe .boucle) : rail en boucle infinie animé par accueil.js (GSAP), photo pleine carte et titre
   posé dessus, carte active élargie, soulignée d'un contour et d'une ombre (choix de Martin du 16/11, hors charte) */
.boucle .actu-piste { display: block; overflow: hidden; scroll-snap-type: none; padding: 18px 0 44px; touch-action: pan-y; cursor: grab; user-select: none; }
.boucle .actu-piste.glisse { cursor: grabbing; }
.actu-rail { display: flex; gap: 24px; will-change: transform; }
.boucle .actu-carte { flex: none; aspect-ratio: auto; border: 0; box-shadow: 0 10px 24px var(--ombre); transition: box-shadow 0.6s ease; }
.boucle .actu-carte.active { box-shadow: 0 0 0 3px var(--accent), 0 24px 48px var(--ombre); }
.boucle .actu-visuel { position: absolute; inset: 0; }
.boucle .actu-visuel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--voile-photo) 0%, var(--voile-photo) 18%, transparent 62%); }
.boucle .actu-carte img { -webkit-user-drag: none; }
.boucle .actu-texte { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 22px 22px; color: var(--on-dark); }
.boucle .actu-texte p:first-child { color: var(--on-dark-2) !important; }
.boucle .actu-texte p:last-child { font-weight: 700 !important; line-height: 1.25 !important; transition: font-size 0.6s ease; }
.boucle .actu-carte.active .actu-texte { padding: 0 32px 30px; max-width: 46rem; }
.boucle .actu-carte.active .actu-texte p:last-child { font-family: var(--font-titre); font-size: var(--fs-2xl) !important; line-height: 1.1 !important; }
.boucle .actu-carte:focus-within { outline-offset: 4px; }

/* navigation entre fiches (filières, projets, dispositifs, interviews) : lien de retour et précédent / suivant */
.page-retour { display: inline-block; margin: 0 0 24px; font-size: var(--fs-sm); font-weight: 600; }
.page-voisins { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.page-voisin { display: flex; flex-direction: column; gap: 2px; max-width: 48%; font-weight: 600; text-decoration: none; }
.page-voisin span { font-size: var(--fs-xs); font-weight: 500; color: var(--text-2); }
.page-suiv { margin-left: auto; text-align: right; }

/* réserve en bas de page (Données, Projets, Filières) : remplace la mention « Données non exhaustives » (13/11) */
.note-reserve { margin: 40px 0 0; font-size: var(--fs-sm); line-height: 1.6; color: var(--text-2); }
.sect-figure-pbi { margin: 8px 0 0; font-size: var(--fs-sm); font-weight: 600; }
/* page À propos */
.ap-objectifs { margin: 0 0 48px; max-width: 860px; font-size: var(--fs-md); line-height: 1.7; }
.ap-objectifs ul { margin: 8px 0 0; padding-left: 20px; }
.ap-objectifs li + li { margin-top: 6px; }
.ap-colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.ap-col { padding-top: 24px; border-top: 1px solid var(--text); }
.ap-logo img { display: block; height: 40px; width: auto; margin: 0 0 20px; }
.ap-col h2 { margin: 0 0 14px; font-size: var(--fs-2xl); color: var(--primary-2); }
.ap-col h3 { margin: 28px 0 10px; font-size: var(--fs-xl); }
.ap-texte { margin: 0 0 12px; font-size: var(--fs-md); line-height: 1.7; }
.ap-chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 16px 0; padding: 0; list-style: none; }
.ap-chiffres b { display: block; font-family: var(--font-titre); font-size: var(--fs-xl); }
.ap-chiffres span { font-size: var(--fs-sm); color: var(--text-2); }
.ap-auteurs { margin: 0; padding: 0; list-style: none; }
.ap-auteurs li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.ap-nom { margin: 0; font-weight: 600; }
.ap-fonction { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--text-2); }
@media (max-width: 900px) { .ap-colonnes { grid-template-columns: minmax(0, 1fr); } }
