/* ==========================================================================
   transN · Rapport de gestion 2025 · prototype V1
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Couleurs de la charte */
  --vert: #95c11f;
  --vert-fonce: #6b8c12;
  --gris: #6e6e6e;
  --gris-texte: #545454;
  --gris-clair: #b9b9b9;
  --gris-ligne: #e3e3e3;
  --fond: #ffffff;
  --fond-doux: #f4f5f2;

  /* Couleurs des chapitres */
  --c-organes: #95c11f;
  --c-entreprise: #4695d2;
  --c-avant-propos: #e32185;
  --c-activite: #2d368c;
  --c-clientele: #81c8ba;
  --c-prestations: #f08220;
  --c-finances: #95c11f;

  /* Couleur du chapitre en cours (surchargée par body[data-chapitre]) */
  --accent: var(--vert);
  --accent-texte: var(--vert-fonce);
  --accent-doux: #eef5da;

  /* Graphiques */
  --serie-precedente: #8a8a8a;
  --serie-courante: var(--accent-texte);

  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;

  --header-h: 72px;
  --max: 1240px;
  --gouttiere: clamp(20px, 4vw, 56px);
}

body[data-chapitre="organes"]      { --accent: var(--c-organes);      --accent-texte: #6b8c12; --accent-doux: #eef5da; }
body[data-chapitre="entreprise"]   { --accent: var(--c-entreprise);   --accent-texte: #2f78b4; --accent-doux: #e3eff9; }
body[data-chapitre="avant-propos"] { --accent: var(--c-avant-propos); --accent-texte: #c8136f; --accent-doux: #fbe3ef; }
body[data-chapitre="activite"]     { --accent: var(--c-activite);     --accent-texte: #2d368c; --accent-doux: #e6e8f4; }
body[data-chapitre="clientele"]    { --accent: var(--c-clientele);    --accent-texte: #3e8f7f; --accent-doux: #e7f4f1; }
body[data-chapitre="prestations"]  { --accent: var(--c-prestations);  --accent-texte: #c4600a; --accent-doux: #fdeedf; }
body[data-chapitre="finances"]     { --accent: var(--c-finances);     --accent-texte: #6b8c12; --accent-doux: #eef5da; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 330;
  font-size: 17px;
  line-height: 1.62;
  color: var(--gris-texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-texte); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.lien-evitement {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: #222; color: #fff; padding: 10px 16px; border-radius: 4px;
}
.lien-evitement:focus { top: 12px; }

/* ==========================================================================
   En-tête fixe : logo, mention du rapport, pictos de navigation
   ========================================================================== */

.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.entete.defile { border-bottom-color: var(--gris-ligne); box-shadow: 0 6px 24px -18px rgba(0,0,0,.35); }

.entete__inner {
  height: 100%;
  max-width: calc(var(--max) + 2 * var(--gouttiere));
  margin: 0 auto;
  padding: 0 var(--gouttiere);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.marque {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--gris);
  min-width: 0;
}
.marque__logo { width: 92px; height: auto; color: var(--vert); flex: none; }
.marque__logo svg { width: 100%; height: auto; display: block; }
.marque__titre {
  font-size: 13px; line-height: 1.25; letter-spacing: .02em;
  border-left: 1px solid var(--gris-clair); padding-left: 14px;
  white-space: nowrap;
}
.marque__titre strong { display: block; font-weight: 560; color: #333; }

.nav-chapitres { display: flex; align-items: stretch; height: 100%; }
.nav-chapitres ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 2px; }
.nav-chapitres li { display: flex; }
.nav-chapitres a {
  --c: var(--gris);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 100%;
  color: #8d8d8d;
  transition: color .2s;
}
.nav-chapitres a svg { width: 32px; height: 32px; }
.nav-chapitres a::before { /* barre de couleur en haut, comme dans le PDF */
  content: ""; position: absolute; top: 0; left: 8px; right: 8px; height: 4px;
  background: var(--c); transform: scaleY(0); transform-origin: top;
  transition: transform .25s;
}
.nav-chapitres a:hover, .nav-chapitres a:focus-visible { color: var(--c); }
.nav-chapitres a:hover::before { transform: scaleY(.5); }
.nav-chapitres a[aria-current="page"] { color: var(--c); }
.nav-chapitres a[aria-current="page"]::before { transform: scaleY(1); }
.nav-chapitres a[data-c="organes"]      { --c: var(--c-organes); }
.nav-chapitres a[data-c="entreprise"]   { --c: var(--c-entreprise); }
.nav-chapitres a[data-c="avant-propos"] { --c: var(--c-avant-propos); }
.nav-chapitres a[data-c="activite"]     { --c: var(--c-activite); }
.nav-chapitres a[data-c="clientele"]    { --c: var(--c-clientele); }
.nav-chapitres a[data-c="prestations"]  { --c: var(--c-prestations); }
.nav-chapitres a[data-c="finances"]     { --c: var(--c-finances); }
/* Accueil : pictos en couleur, comme sur les pages chiffres-clés du PDF */
body[data-chapitre="accueil"] .nav-chapitres a { color: var(--c); }

/* Infobulle */
.nav-chapitres a .bulle {
  position: absolute; top: calc(100% - 6px); left: 50%;
  transform: translate(-50%, 4px);
  background: #2b2b2b; color: #fff;
  font-size: 12.5px; font-weight: 450; line-height: 1.3; white-space: nowrap;
  padding: 7px 10px; border-radius: 4px;
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
}
.nav-chapitres a:hover .bulle, .nav-chapitres a:focus-visible .bulle { opacity: 1; transform: translate(-50%, 0); }
.nav-chapitres li:last-child a .bulle { left: auto; right: 0; transform: translateY(4px); }
.nav-chapitres li:last-child a:hover .bulle, .nav-chapitres li:last-child a:focus-visible .bulle { transform: none; }

.progression {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--accent); transform-origin: left; transform: scaleX(0);
}

@media screen and (max-width: 900px) {
  :root { --header-h: 64px; }
  .marque { gap: 10px; flex-direction: column; align-items: flex-start; gap: 3px; }
  .marque__logo { width: 70px; }
  .marque__titre { border: 0; padding: 0; font-size: 10.5px; }
  .marque__titre strong { display: inline; font-weight: 500; color: var(--gris); }
  .marque__titre span { display: none; }
  .nav-chapitres a { width: 38px; }
  .nav-chapitres a svg { width: 28px; height: 28px; }
}
@media screen and (max-width: 420px) {
  .nav-chapitres ul { gap: 0; }
  .nav-chapitres a { width: 33px; }
  .nav-chapitres a svg { width: 25px; height: 25px; }
  .marque__logo { width: 60px; }
}
@media screen and (hover: none) { .nav-chapitres a .bulle { display: none; } }

main { padding-top: var(--header-h); }

/* ==========================================================================
   Gabarits communs
   ========================================================================== */

.conteneur { max-width: calc(var(--max) + 2 * var(--gouttiere)); margin: 0 auto; padding: 0 var(--gouttiere); }

.titre-page {
  font-weight: 280; color: var(--gris);
  font-size: clamp(38px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -.015em;
  margin: 0;
}
.trait { display: block; width: 32px; height: 2px; background: var(--accent); margin: 22px 0 0; border: 0; }

h2.titre-section {
  font-weight: 280; color: var(--gris);
  font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.01em;
  margin: 0 0 6px;
}
h3 {
  font-weight: 520; color: var(--accent-texte);
  font-size: 20px; line-height: 1.3; margin: 2.2em 0 .5em;
}
h4 {
  font-weight: 600; color: #3a3a3a; font-size: 16px; margin: 1.8em 0 .3em;
}
p { margin: 0 0 1em; }
.surtitre {
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #3a3a3a;
}

/* Citation en exergue (Bodoni dans le PDF) */
.exergue {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.3vw, 28px); line-height: 1.32;
  color: #2b2b2b; margin: 2em 0; padding: 0;
  border: 0; max-width: 30ch;
}
.exergue--barre { border-left: 3px solid var(--accent); padding-left: 22px; }

/* Encadré de couleur (« En 2025, transN a transporté… ») */
.encart {
  position: relative;
  background: var(--accent); color: #fff;
  padding: 18px 22px; font-size: 18px; line-height: 1.35; font-weight: 400;
  max-width: 320px; margin: 1.6em 0;
}
.encart::after {
  content: ""; position: absolute; left: 28px; bottom: -12px;
  border: 12px solid transparent; border-bottom: 0; border-top-color: var(--accent);
}
body[data-chapitre="clientele"] .encart { background: #5fae9e; }
body[data-chapitre="clientele"] .encart::after { border-top-color: #5fae9e; }

/* Barre de couleur de bas de page */
.barre-pied { height: 32px; background: var(--accent); width: min(620px, 60%); margin-left: auto; }

/* ==========================================================================
   Ouverture de chapitre
   ========================================================================== */

.ouverture {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: stretch;
  border-bottom: 1px solid var(--gris-ligne);
}
.ouverture__texte {
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px var(--gouttiere) 64px max(var(--gouttiere), calc((100vw - var(--max)) / 2));
}
.ouverture__chiffre {
  display: flex; align-items: center; gap: 22px;
  color: var(--accent); margin-bottom: 18px;
}
.ouverture__chiffre svg { width: clamp(76px, 8vw, 112px); height: auto; }
.ouverture__chiffre span {
  font-size: clamp(84px, 10vw, 140px); font-weight: 250; line-height: .9; letter-spacing: -.03em;
}
.ouverture h1 {
  font-weight: 330; color: var(--accent-texte);
  font-size: clamp(32px, 3.6vw, 46px); line-height: 1.12; margin: 0;
}
.ouverture__intro { margin-top: 28px; max-width: 46ch; font-size: 18px; }
.ouverture__image { position: relative; overflow: hidden; background: var(--fond-doux); }
.ouverture__image img { width: 100%; height: 100%; object-fit: cover; }
.ouverture__image::after { /* bandeau de couleur du chapitre */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: var(--accent);
}

@media screen and (max-width: 860px) {
  .ouverture { grid-template-columns: 1fr; min-height: 0; }
  .ouverture__image { order: -1; height: 42vh; min-height: 240px; }
  .ouverture__texte { padding: 40px var(--gouttiere) 48px; }
}

/* ==========================================================================
   Mise en page des chapitres : sommaire latéral + contenu
   ========================================================================== */

.chapitre {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px;
  padding-top: 64px; padding-bottom: 40px;
}
.chapitre > * { min-width: 0; }
.sous-nav { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.sous-nav p { margin: 0 0 12px; }
.sous-nav__titre {
  font-size: 22px; font-weight: 350; line-height: 1.2; color: var(--accent-texte);
  opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s;
}
body.titre-cache .sous-nav__titre { opacity: 1; transform: none; }
.sous-nav ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--gris-ligne); }
.sous-nav a {
  display: block; padding: 7px 0 7px 16px; margin-left: -1px;
  border-left: 2px solid transparent;
  color: #777; text-decoration: none; font-size: 14.5px; line-height: 1.35;
  transition: color .2s, border-color .2s;
}
.sous-nav a:hover { color: #333; }
.sous-nav a.actif { color: var(--accent-texte); border-left-color: var(--accent); font-weight: 500; }
.sous-nav .telecharger { margin-top: 28px; font-size: 14px; }

@media screen and (max-width: 1060px) {
  .chapitre { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 32px; }
  .sous-nav {
    position: sticky; top: var(--header-h); z-index: 50;
    margin: 0 calc(-1 * var(--gouttiere)); padding: 0 var(--gouttiere);
    background: rgba(255,255,255,.96); border-bottom: 1px solid var(--gris-ligne);
  }
  .sous-nav p, .sous-nav .telecharger { display: none; }
  .sous-nav ol { display: flex; gap: 4px; overflow-x: auto; border: 0; scrollbar-width: none; }
  .sous-nav ol::-webkit-scrollbar { display: none; }
  .sous-nav a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; padding: 12px 10px; margin: 0; font-size: 14px; }
  .sous-nav a.actif { border-bottom-color: var(--accent); }
}

.section { padding: 8px 0 56px; border-bottom: 1px solid var(--gris-ligne); margin-bottom: 56px; }
.section:last-child { border-bottom: 0; }
.section > h2.titre-section + .trait { margin-bottom: 28px; }

.colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; align-items: start; }
.colonnes--texte-media { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.colonnes > * { min-width: 0; }
@media screen and (max-width: 760px) { .colonnes, .colonnes--texte-media { grid-template-columns: 1fr; } }

.texte { max-width: 68ch; }
.texte-justifie p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

figure { margin: 0; }
.photo { position: relative; overflow: hidden; background: var(--fond-doux); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.photo:hover img { transform: scale(1.03); }
.photos-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photos-duo .photo { aspect-ratio: 1 / 1; }

/* ==========================================================================
   Chiffres et tuiles
   ========================================================================== */

.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 28px 0; }
.tuile {
  background: var(--fond-doux); padding: 22px 22px 20px; border-top: 3px solid var(--accent);
}
.tuile__valeur {
  display: block; color: #2f2f2f;
  font-size: clamp(30px, 3vw, 40px); font-weight: 300; line-height: 1.05; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.tuile__libelle { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.4; color: #5b5b5b; }
.tuile__evolution { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 560; color: #3a3a3a; }
.tuile__evolution .fleche { color: var(--accent-texte); }

/* Anneaux de satisfaction */
.anneaux { display: flex; flex-wrap: wrap; gap: 28px; margin: 24px 0; }
.anneau { display: flex; align-items: center; gap: 16px; }
.anneau svg { width: 112px; height: 112px; transform: rotate(-90deg); }
.anneau circle { fill: none; stroke-width: 10; }
.anneau .fond { stroke: var(--gris-ligne); }
.anneau .valeur { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1.4s cubic-bezier(.2,.7,.2,1); }
.anneau__texte strong { display: block; font-size: 34px; font-weight: 300; color: #2f2f2f; line-height: 1; }
.anneau__texte span { font-size: 14.5px; color: #5b5b5b; }

/* ==========================================================================
   Graphiques
   ========================================================================== */

.graphique { margin: 28px 0 36px; }
.graphique__titre {
  font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #3a3a3a;
  padding-bottom: 8px; border-bottom: 1px solid #9a9a9a; margin: 0 0 6px; max-width: 520px;
}
.graphique__sous-titre { font-size: 13.5px; color: #6a6a6a; margin: 0 0 10px; }
.graphique__note { font-size: 13px; color: #2d368c; margin: 8px 0 0; }
.legende { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0 0 8px; padding: 0; font-size: 13px; color: #444; }
.legende li { display: flex; align-items: center; gap: 7px; }
.legende i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.legende i.ligne { height: 3px; border-radius: 2px; width: 16px; }

.zone-graphique { position: relative; width: 100%; }
.zone-graphique svg { display: block; width: 100%; height: auto; overflow: visible; }
.zone-graphique text { font-family: var(--font); fill: #6a6a6a; font-size: 12px; }
.zone-graphique .axe-libelle { fill: #555; }
.zone-graphique .valeur-libelle { fill: #333; font-size: 11.5px; font-weight: 500; }
.zone-graphique .grille { stroke: #e6e6e6; stroke-width: 1; }
.zone-graphique .ligne-base { stroke: #b5b5b5; stroke-width: 1; }
.zone-graphique .barre { transition: opacity .2s; }
.zone-graphique .barres-groupe { transform-box: fill-box; }
.zone-graphique.anime .barres-groupe { transform: scaleY(0); transform-origin: bottom; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.zone-graphique.anime.horizontal .barres-groupe { transform: scaleX(0); transform-origin: left; }
.zone-graphique.anime.visible .barres-groupe { transform: none; }
.zone-graphique .trace { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.zone-graphique.anime .trace { stroke-dasharray: var(--longueur); stroke-dashoffset: var(--longueur); transition: stroke-dashoffset 1.4s cubic-bezier(.3,.6,.2,1); }
.zone-graphique.anime.visible .trace { stroke-dashoffset: 0; }
.zone-graphique .point { stroke: #fff; stroke-width: 2; }
.zone-graphique .curseur { stroke: #999; stroke-width: 1; stroke-dasharray: 3 3; }
.zone-graphique .cible { fill: transparent; cursor: default; }
.zone-graphique.survol .barre:not(.actif) { opacity: .35; }

.infobulle {
  position: absolute; z-index: 5; pointer-events: none;
  background: #fff; color: #333; border: 1px solid #ddd; border-radius: 6px;
  box-shadow: 0 8px 24px -10px rgba(0,0,0,.3);
  padding: 9px 12px; font-size: 13px; line-height: 1.45; min-width: 150px;
  opacity: 0; transition: opacity .12s;
}
.infobulle.visible { opacity: 1; }
.infobulle strong { display: block; font-weight: 600; margin-bottom: 3px; color: #222; }
.infobulle .ligne-info { display: flex; align-items: center; gap: 7px; justify-content: space-between; }
.infobulle .ligne-info span:first-child { display: flex; align-items: center; gap: 6px; color: #555; }
.infobulle i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.infobulle b { font-weight: 600; font-variant-numeric: tabular-nums; }

details.donnees { margin-top: 8px; font-size: 13.5px; }
details.donnees summary { cursor: pointer; color: #666; display: inline-flex; gap: 6px; align-items: center; }
details.donnees summary:hover { color: #222; }
details.donnees table { margin-top: 10px; }

/* ==========================================================================
   Tableaux financiers
   ========================================================================== */

.tableau-repliable { border-top: 1px solid #cfcfcf; }
.tableau-repliable:last-of-type { border-bottom: 1px solid #cfcfcf; }
.tableau-repliable > summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto 28px; gap: 16px; align-items: center;
  padding: 20px 4px;
}
.tableau-repliable > summary::-webkit-details-marker { display: none; }
.tableau-repliable > summary .nom { font-size: 21px; font-weight: 350; color: #333; }
.tableau-repliable > summary .nom small { display: block; font-size: 13.5px; color: #777; font-weight: 400; margin-top: 2px; }
.tableau-repliable > summary .total { text-align: right; font-variant-numeric: tabular-nums; color: #333; font-size: 15px; }
.tableau-repliable > summary .total small { display: block; font-size: 12px; color: #888; }
.tableau-repliable > summary .plus {
  width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--accent);
  position: relative; transition: transform .25s, background .2s;
}
.tableau-repliable > summary .plus::before, .tableau-repliable > summary .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--accent-texte);
  transform: translate(-50%, -50%);
}
.tableau-repliable > summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s; }
.tableau-repliable[open] > summary .plus { background: var(--accent-doux); }
.tableau-repliable[open] > summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.tableau-repliable > summary:hover .nom { color: var(--accent-texte); }
.tableau-repliable .contenu { padding: 0 0 28px; overflow-x: auto; }
@media screen and (max-width: 600px) {
  .tableau-repliable > summary { grid-template-columns: 1fr 28px; }
  .tableau-repliable > summary .total { display: none; }
}

table.fin {
  width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.35;
  font-variant-numeric: tabular-nums; min-width: 560px;
}
table.fin caption { text-align: left; font-size: 13px; color: #777; padding: 0 0 8px; }
table.fin th, table.fin td { padding: 6px 8px; text-align: right; vertical-align: top; }
table.fin thead th { font-size: 12px; font-weight: 600; letter-spacing: .05em; color: #555; border-bottom: 1px solid #333; }
table.fin th[scope="row"], table.fin td.lib { text-align: left; font-weight: 330; }
table.fin td.note { color: #888; font-size: 12.5px; width: 56px; }
table.fin tr.n0 th, table.fin tr.n0 td { font-weight: 600; color: #2a2a2a; padding-top: 14px; text-transform: uppercase; font-size: 13px; letter-spacing: .02em; }
table.fin tr.n1 th { font-weight: 520; color: #333; padding-left: 8px; }
table.fin tr.n1 td { color: #333; }
table.fin tr.n2 th { padding-left: 24px; color: #5a5a5a; }
table.fin tr.n2 td { color: #5a5a5a; }
table.fin tr.n3 th { padding-left: 40px; color: #777; font-size: 13.5px; }
table.fin tr.n3 td { color: #777; font-size: 13.5px; }
table.fin tr.sous-total th, table.fin tr.sous-total td { font-weight: 600; color: #222; background: var(--accent-doux); }
table.fin tr.total th, table.fin tr.total td { font-weight: 650; color: #111; border-top: 2px solid #333; padding-top: 10px; font-size: 15px; }
table.fin tbody tr:hover th, table.fin tbody tr:hover td { background: #f6f6f6; }
table.fin td.neg { color: inherit; }
table.fin .var { font-size: 12.5px; color: #777; }
table.fin .var.hausse::before { content: "▲ "; color: var(--accent-texte); font-size: 9px; }
table.fin .var.baisse::before { content: "▼ "; color: #9a9a9a; font-size: 9px; }

table.simple { border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
table.simple th, table.simple td { padding: 5px 12px 5px 0; text-align: right; border-bottom: 1px solid #eee; }
table.simple th:first-child, table.simple td:first-child { text-align: left; }
table.simple thead th { color: #333; font-weight: 600; border-bottom: 1px solid #999; }

/* ==========================================================================
   Pied de page et navigation entre chapitres
   ========================================================================== */

.suite { border-top: 1px solid var(--gris-ligne); }
.suite__inner { display: grid; grid-template-columns: 1fr 1fr; }
.suite a {
  --c: var(--gris);
  display: flex; align-items: center; gap: 18px;
  padding: 32px var(--gouttiere); text-decoration: none;
  transition: background .2s;
}
.suite a:hover { background: var(--fond-doux); }
.suite a + a { justify-content: flex-end; text-align: right; border-left: 1px solid var(--gris-ligne); }
.suite a svg { width: 48px; height: 48px; color: var(--c); flex: none; }
.suite a > span { font-size: 21px; font-weight: 330; color: var(--c); line-height: 1.25; }
.suite a:hover > span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.suite .suite__logo { width: 86px; color: var(--vert); flex: none; font-size: 0; }
.suite .suite__logo svg { width: 100%; height: auto; }
.suite a[data-c="organes"]      { --c: #6b8c12; }
.suite a[data-c="entreprise"]   { --c: #2f78b4; }
.suite a[data-c="avant-propos"] { --c: #c8136f; }
.suite a[data-c="activite"]     { --c: #2d368c; }
.suite a[data-c="clientele"]    { --c: #3e8f7f; }
.suite a[data-c="prestations"]  { --c: #c4600a; }
.suite a[data-c="finances"]     { --c: #6b8c12; }
.suite a[data-c="accueil"]      { --c: #6b8c12; }
@media screen and (max-width: 640px) {
  .suite__inner { grid-template-columns: 1fr; }
  .suite a + a { border-left: 0; border-top: 1px solid var(--gris-ligne); }
}

.pied { background: var(--vert); color: #fff; }
.pied__inner { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-end; padding-top: 44px; padding-bottom: 40px; }
.pied__logo { width: 120px; color: #fff; }
.pied p { margin: 0; font-size: 14px; line-height: 1.6; }
.pied strong { font-weight: 600; }
.pied a { color: #fff; }
.pied__devise { font-size: 19px; font-weight: 400; margin-top: 10px !important; }

/* ==========================================================================
   Apparition au défilement
   ========================================================================== */

.revele { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.revele.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .revele { opacity: 1; transform: none; transition: none; }
  .zone-graphique.anime .barres-groupe, .zone-graphique.anime .trace { transform: none !important; stroke-dashoffset: 0 !important; transition: none !important; }
  .photo img { transition: none; }
}

/* ==========================================================================
   Accueil
   ========================================================================== */

/* En-tête masqué tant que le bloc « 25 transN » de la couverture est visible */
body[data-chapitre="accueil"] main { padding-top: 0; }
body[data-chapitre="accueil"] .entete { transform: translateY(-100%); transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .3s; }
body[data-chapitre="accueil"].entete-visible .entete { transform: none; }
body[data-chapitre="accueil"] .entete:focus-within { transform: none; }

/* Couverture : laisse entrevoir ~70 px de la suite */
.couverture {
  position: relative; height: calc(100vh - 70px); height: calc(100svh - 70px); min-height: 480px;
  color: #fff; overflow: hidden; background: #2a3035;
}
.couverture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.couverture::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 38%, rgba(0,0,0,0) 60%, rgba(0,0,0,.5) 100%);
}

/* Bloc « 25 / transN / Rapport de gestion 2025 », avec les deux filets blancs du PDF */
.couverture__texte {
  position: absolute; z-index: 2; left: var(--gouttiere); top: clamp(28px, 7vh, 72px);
  width: clamp(160px, 16vw, 240px);
  container-type: inline-size;
}
.couverture__annee {
  display: block; font-size: 84cqw; font-weight: 600; line-height: .74; letter-spacing: -.035em;
  margin-left: -2.5cqw;
}
.couverture__logo {
  color: #fff; margin-top: 10cqw;
  border-top: max(2px, .8cqw) solid #fff; border-bottom: max(2px, .8cqw) solid #fff;
  padding: 5.6cqw 0 6.8cqw;
}
.couverture__logo svg { display: block; width: 100%; height: auto; }
.couverture__mention {
  margin: 6cqw 0 0; font-size: 6.95cqw; font-weight: 700; letter-spacing: .015em;
  text-transform: uppercase; white-space: nowrap; line-height: 1;
}

.devise {
  background: var(--vert); color: #fff; padding: 12px 18px; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.2;
  position: relative; margin: 0;
}
.devise::after { content: ""; position: absolute; left: 14px; bottom: -10px; border: 10px solid transparent; border-bottom: 0; border-top-color: var(--vert); }
.couverture > .devise { position: absolute; z-index: 2; left: var(--gouttiere); bottom: 40px; }

/* « Découvrir » centré, en gras, avec le trait qui descend */
.defiler {
  position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0,0,0,.55);
  padding: 8px 14px 0;
}
.defiler::after {
  content: ""; width: 2px; height: 56px; background: #fff; border-radius: 2px;
  box-shadow: 0 0 10px rgba(0,0,0,.35);
  animation: defile 2s infinite; transform-origin: top;
}
.defiler:hover { color: var(--vert); }
.defiler:hover::after { background: var(--vert); }
@keyframes defile { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (prefers-reduced-motion: reduce) { .defiler::after { animation: none; } }

.bloc { padding: 96px 0; }
.bloc--doux { background: var(--fond-doux); }
.bloc__entete { margin-bottom: 48px; }

/* Chiffres-clés : deux planches reprenant la composition des pages 3 et 4 du PDF */
.chiffres { overflow: hidden; padding: 40px 0 24px; }
.planche {
  position: relative; aspect-ratio: 1057.3 / 595.3; margin: 0 auto 24px;
  container-type: inline-size;
}
.planche__fond { position: absolute; inset: 0; color: #c9c9c9; pointer-events: none; }
.planche__fond svg { width: 100%; height: 100%; overflow: visible; }
.planche__titre { position: absolute; left: 6.7%; top: 7%; z-index: 1; }
.planche__titre .titre-page { font-size: clamp(32px, 3.9cqw, 60px); }

.planche--2 { margin-top: -9%; }
.pastille { position: absolute; aspect-ratio: 1; container-type: inline-size; }
.pastille__rond {
  position: absolute; inset: 0; border-radius: 50%; background: var(--vert); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 8%;
}
.pastille.gris .pastille__rond { background: #706f6f; }
.pastille__icone { position: absolute; z-index: 2; color: var(--vert); line-height: 0; pointer-events: none; }
.pastille.gris .pastille__icone { color: #706f6f; }
.pastille__icone svg { display: block; width: 100%; height: auto; }
.pastille strong { font-size: 33cqw; font-weight: 600; line-height: .95; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pastille span { font-size: 9.5cqw; line-height: 1.2; margin-top: 3cqw; }
.pastille em { font-style: normal; font-weight: 650; font-size: 7cqw; margin-top: 3cqw; }
.pastille.moyen strong { font-size: 30cqw; }
.pastille.moyen span { font-size: 8cqw; }
.pastille.grand strong { font-size: 30cqw; }
.pastille.grand span { font-size: 6.6cqw; }
.pastille.long strong { font-size: 15.5cqw; }
.pastille.long span { font-size: 6.2cqw; }
/* Le texte du cercle des voyageurs descend sous la foule, comme dans le PDF */
.p-voyageurs .pastille__rond { padding-top: 30%; }
.p-funiculaire .pastille__rond, .p-lignes .pastille__rond, .p-train .pastille__rond, .p-autobus .pastille__rond,
.p-reseau .pastille__rond, .p-collaborateurs .pastille__rond, .p-apprentis .pastille__rond { padding-top: 20%; }
.p-trolleybus .pastille__rond { padding-bottom: 22%; }

@media screen and (max-width: 820px) {
  .chiffres { padding-top: 22px; }
  .planche { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; container-type: normal; }
  .planche__fond { display: none; }
  .planche--2 { margin-top: 0; }
  .planche__titre { position: static; grid-column: 1 / -1; margin-bottom: 8px; }
  .planche__titre .titre-page { font-size: clamp(34px, 9vw, 48px); }
  .pastille { position: relative; left: auto !important; top: auto !important; width: 100% !important; max-width: 190px; justify-self: center; margin: 76px 0 18px; }
  .pastille.grand, .pastille.long { grid-column: 1 / -1; max-width: 270px; }
  .p-trolleybus { margin: 24px 0 70px; }
  .p-voyageurs { order: -1; }
}

/* Sommaire */
.sommaire { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--gris-ligne); border-left: 1px solid var(--gris-ligne); }
.sommaire .carte {
  --c: var(--gris); --ct: var(--gris);
  position: relative; padding: 26px 24px 28px; background: #fff;
  border-right: 1px solid var(--gris-ligne); border-bottom: 1px solid var(--gris-ligne);
  transition: background .25s;
}
.sommaire .carte::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.sommaire .carte:hover::before, .sommaire .carte:focus-within::before { transform: none; }
.sommaire .carte:hover { background: #fcfcfb; }
.sommaire .carte > svg { width: 46px; height: 46px; color: var(--c); display: block; }
.sommaire h3 { margin: 14px 0 10px; font-size: 18px; font-weight: 500; }
.sommaire h3 a { color: var(--ct); text-decoration: none; }
.sommaire h3 a::after { content: ""; position: absolute; inset: 0; } /* toute la carte mène au chapitre */
.sommaire ul { list-style: none; margin: 0; padding: 0; font-size: 13.5px; line-height: 1.45; }
.sommaire li { margin: 0 0 3px; }
.sommaire li a { position: relative; z-index: 1; color: #777; text-decoration: none; }
.sommaire li a:hover, .sommaire li a:focus-visible { color: var(--ct); text-decoration: underline; text-underline-offset: 3px; }
.sommaire .carte[data-c="organes"]      { --c: var(--c-organes);      --ct: #6b8c12; }
.sommaire .carte[data-c="entreprise"]   { --c: var(--c-entreprise);   --ct: #2f78b4; }
.sommaire .carte[data-c="avant-propos"] { --c: var(--c-avant-propos); --ct: #c8136f; }
.sommaire .carte[data-c="activite"]     { --c: var(--c-activite);     --ct: #2d368c; }
.sommaire .carte[data-c="clientele"]    { --c: var(--c-clientele);    --ct: #3e8f7f; }
.sommaire .carte[data-c="prestations"]  { --c: var(--c-prestations);  --ct: #c4600a; }
.sommaire .carte[data-c="finances"]     { --c: var(--c-finances);     --ct: #6b8c12; }
.sommaire .pdf { display: flex; flex-direction: column; justify-content: flex-end; padding: 26px 24px 28px; background: var(--vert); color: #fff; text-decoration: none; border-right: 1px solid var(--gris-ligne); border-bottom: 1px solid var(--gris-ligne); }
.sommaire .pdf:hover { background: var(--vert-fonce); }
.sommaire .pdf strong { font-size: 20px; font-weight: 400; line-height: 1.25; }
.sommaire .pdf span { font-size: 13.5px; opacity: .9; margin-top: 8px; }
@media screen and (max-width: 1000px) { .sommaire { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media screen and (max-width: 520px) { .sommaire { grid-template-columns: 1fr; } }

/* Tableau des chiffres-clés au 31.12 */
.cles { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.cles table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.cles caption { text-align: left; font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #333; padding-bottom: 8px; border-bottom: 1px solid #999; }
.cles th, .cles td { padding: 8px 0; border-bottom: 1px solid #e6e6e6; text-align: right; }
.cles th { text-align: left; font-weight: 330; color: #555; }
.cles tr.titre th { font-weight: 600; color: #333; text-transform: uppercase; font-size: 12.5px; letter-spacing: .05em; padding-top: 16px; }
.cles tr.retrait th { padding-left: 16px; }
.cles tr.fort th, .cles tr.fort td { font-weight: 620; color: #222; }
.cles tr.resultat th, .cles tr.resultat td { font-weight: 650; color: #fff; background: var(--vert); padding: 10px 12px; border: 0; }
@media screen and (max-width: 760px) { .cles { grid-template-columns: 1fr; } }

.bandeau-photo { position: relative; height: min(70vh, 640px); overflow: hidden; }
.bandeau-photo img { width: 100%; height: 100%; object-fit: cover; }
.bandeau-photo .devise { position: absolute; right: var(--gouttiere); bottom: 48px; }

/* Pages en préparation */
.a-venir { padding: 72px 0 96px; }
.a-venir__carte { max-width: 760px; border-left: 3px solid var(--accent); padding: 10px 0 10px 28px; }
.a-venir__carte p { margin: 0; font-size: 22px; font-weight: 300; color: var(--gris); }
.bouton {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 12px;
  background: var(--accent-texte); color: #fff; text-decoration: none; padding: 12px 18px; border-radius: 3px; font-weight: 500; font-size: 15px;
}
.bouton:hover { filter: brightness(1.08); }
.bouton--contour { background: transparent; color: var(--accent-texte); border: 1.5px solid currentColor; }

/* Proposition aux actionnaires */
.resolutions { counter-reset: r; list-style: none; padding: 0; margin: 24px 0; }
.resolutions li { counter-increment: r; display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--gris-ligne); }
.resolutions li::before { content: counter(r); font-size: 34px; font-weight: 260; color: var(--accent-texte); line-height: 1; }
.signatures { display: flex; gap: 48px; flex-wrap: wrap; font-size: 14.5px; margin-top: 20px; }
.signatures strong { display: block; color: #333; font-weight: 560; }

@media print {
  .entete, .sous-nav, .suite, .defiler { display: none !important; }
  main { padding-top: 0; }
  .revele { opacity: 1 !important; transform: none !important; }
  details { open: true; }
}

/* Ajustements petits écrans */
@media screen and (max-width: 900px) {
  .c-voyageurs { order: -1; }
}
@media screen and (max-width: 480px) {
  .entete__inner { padding: 0 10px 0 14px; gap: 8px; }
  .marque__logo { width: 58px; }
  .marque__titre { font-size: 9.5px; }
  .nav-chapitres a { width: 31px; }
  .nav-chapitres a svg { width: 24px; height: 24px; }
  .nav-chapitres a::before { left: 5px; right: 5px; }
}
@media screen and (max-width: 600px) {
  .couverture > .devise { bottom: auto; top: calc(clamp(28px, 7vh, 72px) + 250px); }
}

/* Ouvertures de chapitre : même hauteur partout, proportionnelle à la largeur,
   en laissant toujours voir le début de la suite sous la ligne de flottaison */
.ouverture {
  min-height: 0;
  height: max(320px, min(40vw, calc(100vh - var(--header-h) - 110px)));
  height: max(320px, min(40vw, calc(100svh - var(--header-h) - 110px)));
}
.ouverture__texte { padding-top: 32px; padding-bottom: 48px; overflow: hidden; }
@media screen and (max-width: 860px) {
  .ouverture { height: auto; }
  .ouverture__image { height: min(52vw, 34svh); min-height: 180px; }
  .ouverture__texte { padding-top: 28px; padding-bottom: 28px; }
  .ouverture__chiffre { margin-bottom: 10px; }
  .ouverture__chiffre svg { width: 64px; }
  .ouverture__intro { margin-top: 16px; font-size: 16.5px; }
}
@media screen and (max-width: 860px) {
  .ouverture__texte { min-height: 240px; justify-content: center; }
}
