/* ==========================================================================
   Intranet Aduneo : thème « intra »
   Charte graphique Aduneo (23/10/2026) : Red Hat Display (titres), Rubik (texte), formes arrondies.
   Jetons de couleur : css/tokens.css du thème aduneo (hérité), clair et sombre par light-dark().
   Distinct du site public : fond teinté, en-tête en pilule « logo | Intranet », pied bleu nuit.
   Éléments retenus (canevas « éléments visuels ») : en-têtes A et B, icônes A et B, étiquettes A,
   visuel par défaut B, tutoriel A, Bienvenue A, pages techniques A et B.
   ========================================================================== */

:root {
  /* Rôles propres à l'intranet, posés sur les jetons du site */
  --i-page:        light-dark(#EEF4FA, #07111E);
  --i-carte:       var(--surface, light-dark(#FFFFFF, #0E1B2C));
  --i-ligne:       var(--line, light-dark(#D6E1EE, #25405F));
  --i-encre:       var(--ink, light-dark(#0B1F3A, #E8EEF7));
  --i-encre2:      var(--ink2, light-dark(#3A4D66, #BFCCDC));
  --i-accent:      var(--accent, light-dark(#004C97, #7DB8F7));
  --i-sur-accent:  var(--on-accent, light-dark(#FFFFFF, #07111E));
  --i-teinte:      light-dark(#E6EFF8, #132840);
  --i-nuit:        #0B1F3A;
  --i-action:      #FFA300;
  --i-action-hover:#E69300;
  --i-sur-action:  #0B1F3A;
  --i-titres: 'Red Hat Display', system-ui, sans-serif;
  --i-texte: 'Rubik', system-ui, sans-serif;
  --i-rayon: 28px;
  --i-rayon-s: 20px;
  --i-largeur: 1840px;
  --i-ombre: 0 10px 30px rgba(0, 76, 151, .10);
  /* Profondeur en couches : une ombre de contact nette + une ombre portée diffuse (plus marquée au survol) */
  --i-ombre-1: 0 1px 2px light-dark(rgba(11, 31, 58, .05), rgba(0, 0, 0, .3)), 0 4px 14px -4px light-dark(rgba(0, 76, 151, .08), rgba(0, 0, 0, .35));
  --i-ombre-2: 0 2px 4px light-dark(rgba(11, 31, 58, .05), rgba(0, 0, 0, .3)), 0 18px 40px -10px light-dark(rgba(0, 76, 151, .22), rgba(0, 0, 0, .55));
  --i-reflet: inset 0 1px 0 light-dark(rgba(255, 255, 255, .9), rgba(255, 255, 255, .05));   /* arête haute qui accroche la lumière */
  --i-ligne-douce: light-dark(#E2EAF3, #1C324D);
  /* Mouvement : courbe sans rebond (amortissement critique), rapide à répondre, douce à l'arrivée */
  --i-ressort: cubic-bezier(.2, .8, .2, 1);
  --i-duree: .35s;
  --i-verre: light-dark(rgba(255, 255, 255, .72), rgba(14, 27, 44, .72));
}

/* --- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(1400px 520px at 50% -180px, light-dark(#D7E6F6, #0F2746), transparent 70%) no-repeat, var(--i-page);
  color: var(--i-encre);
  font-family: var(--i-texte);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { max-width: 100%; }
a { color: var(--i-accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-hover, #00366D); }
:focus-visible { outline: 3px solid var(--i-action); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--i-titres); color: var(--i-encre); margin: 0; line-height: 1.15; }
h1 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 300; letter-spacing: -0.02em; }
h2 { font-size: 26px; font-weight: 500; letter-spacing: -0.01em; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
kbd {
  font-family: var(--i-texte); font-size: 12px; font-weight: 500;
  padding: 2px 7px; border-radius: 6px; border: 1px solid var(--i-ligne); background: var(--i-page);
}
.visually-hidden, .sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Lien d'évitement : rogné hors de la vue, sauf quand on y arrive au clavier ; jamais pendant une fenêtre (tutoriel, recherche) */
.lien-evitement {
  position: absolute; left: 16px; top: 16px; z-index: 50;
  width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  padding: 0; border-radius: 999px; background: var(--i-action); color: var(--i-sur-action);
  font-weight: 500; text-decoration: none;
}
.lien-evitement:focus-visible { width: auto; height: auto; clip-path: none; padding: 10px 18px; }
body:has(dialog[open]) .lien-evitement { display: none; }

/* Logos : version bleue en clair, blanche en sombre */
.logo-sombre { display: none; }
:root[data-theme="dark"] .logo-clair { display: none; }
:root[data-theme="dark"] .logo-sombre { display: inline-block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-clair { display: none; }
  :root:not([data-theme="light"]) .logo-sombre { display: inline-block; }
}

/* --- En-tête : rubriques de part et d'autre de l'en-tête B, centré ; pastilles d'outils en haut à droite --- */
body > header {
  position: sticky; top: 0; z-index: 20;
  padding: 14px 24px;
  pointer-events: none;   /* le fond de la barre est transparent : seuls la pastille et les outils captent les clics */
}
body > header > * { pointer-events: auto; }
/* Navigation dans une pastille arrondie, centrée ; colonnes égales de part et d'autre : le logo reste au centre */
.entete__nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  width: fit-content; max-width: 100%; margin: 0 auto; padding: 6px 24px;
  border-radius: 999px; border: 1px solid light-dark(rgba(214, 225, 238, .8), rgba(37, 64, 95, .7));
  box-shadow: var(--i-reflet), var(--i-ombre-2);
  background: var(--i-verre); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
}
.entete__nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
/* Rubriques réparties sur toute la largeur de leur colonne : même marge aux deux bords de la pastille, logo au centre */
.entete__gauche, .entete__droite { justify-content: space-between; flex-wrap: nowrap; }
.entete__nav li > a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  color: var(--i-encre); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap;
}
.entete__nav li > a:hover { background: var(--i-teinte); color: var(--i-accent); }
.entete__nav li > a[aria-current="page"] { background: var(--i-accent); color: var(--i-sur-accent); }

/* Pastille glissante (js/intra.js) : une seule pastille de couleur, qui glisse vers la rubrique survolée ou atteinte au
   clavier, puis revient sur la rubrique active. Sans script : la rubrique active garde son fond (règle ci-dessus). */
.entete__nav { position: relative; }
.entete__nav > ul, .entete__nav > a.entete-b { position: relative; z-index: 1; }
.entete__indicateur {
  position: absolute; left: 0; top: 0; z-index: 0; width: 0; height: 0; opacity: 0;
  border-radius: 999px; background: var(--i-accent); pointer-events: none;
  transition: transform .4s cubic-bezier(.3, 1.25, .5, 1), width .4s cubic-bezier(.3, 1.25, .5, 1), opacity .2s ease;
}
.entete__indicateur.sans-anim { transition: none; }
.avec-indicateur li > a, .avec-indicateur li > a:hover, .avec-indicateur li > a[aria-current="page"] { background: transparent; color: var(--i-encre); transition: color .25s ease; }
.avec-indicateur li > a.sous-indicateur { color: var(--i-sur-accent); }

/* Transition entre les pages (View Transitions entre documents : Chrome, Edge, Safari ; ailleurs, changement de page
   classique). La barre reste en place ; la pastille garde sa position ; seul le contenu se fond et glisse. */
@view-transition { navigation: auto; }
body > header { view-transition-name: entete; }
main { view-transition-name: contenu; }
.avec-indicateur .entete__indicateur { view-transition-name: nav-actif; }
.entete__nav:not(.avec-indicateur) li > a[aria-current="page"] { view-transition-name: nav-actif; }
::view-transition-group(entete) { animation: none; }
::view-transition-old(contenu) { animation: .16s ease-in both intra-sortie; }
::view-transition-new(contenu) { animation: .34s cubic-bezier(.2, .8, .2, 1) both intra-entree; }
::view-transition-group(nav-actif) { animation-duration: .4s; animation-timing-function: cubic-bezier(.3, 1.25, .5, 1); }
@keyframes intra-sortie { to { opacity: 0; transform: translateY(-6px); } }
@keyframes intra-entree { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .entete__indicateur { transition: none; }
}

/* En-tête B dans la barre : lien vers l'accueil */
.entete__nav > a.entete-b { padding: 6px 8px; text-decoration: none; border-radius: 14px; }
.entete__nav > a.entete-b .entete-b__mot { color: var(--i-accent); }

/* Pastilles d'outils (recherche, thème, déconnexion) : comme les pastilles .nav__theme du site */
.entete__outils { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); display: flex; gap: 8px; }
.pastille {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0; border: 1px solid light-dark(rgba(214, 225, 238, .8), rgba(37, 64, 95, .7)); border-radius: 50%;
  background: var(--i-verre); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--i-reflet), var(--i-ombre-1);
  color: var(--i-encre); cursor: pointer;
  transition: transform .18s var(--i-ressort), background-color .2s ease, color .2s ease, box-shadow .25s ease;
}
.pastille:hover { background: var(--i-carte); color: var(--i-accent); }
.pastille[aria-current="page"] { background: var(--i-accent); border-color: var(--i-accent); color: var(--i-sur-accent); }
.pastille .trait { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Soleil ↔ lune (même icône que le site : blocs/theme-icone.html.twig du thème aduneo) */
.theme-icon { flex: none; width: 20px; height: 20px; overflow: visible; }
.theme-icon * { transform-box: view-box; transform-origin: 12px 12px; }
.theme-icon__astre { fill: currentColor; transform: scale(.53); }
.theme-icon__ombre { transform: translate(7px, -7px); }
.theme-icon__rayons { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
:root[data-theme="dark"] .theme-icon__astre { transform: none; }
:root[data-theme="dark"] .theme-icon__ombre { transform: none; }
:root[data-theme="dark"] .theme-icon__rayons { transform: rotate(-90deg) scale(.4); opacity: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon__astre, :root:not([data-theme="light"]) .theme-icon__ombre { transform: none; }
  :root:not([data-theme="light"]) .theme-icon__rayons { transform: rotate(-90deg) scale(.4); opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-off) .theme-icon__astre { transition: transform .5s cubic-bezier(.5, 1.6, .5, 1); }
  html:not(.motion-off) .theme-icon__ombre { transition: transform .5s cubic-bezier(.2, .8, .2, 1) .05s; }
  html:not(.motion-off) .theme-icon__rayons { transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
}

/* Écrans moyens : les pastilles passent au-dessus, pour ne jamais recouvrir les rubriques */
@media (max-width: 1180px) {
  body > header { display: flex; flex-direction: column; }
  .entete__outils { order: -1; position: static; transform: none; justify-content: flex-end; margin-bottom: 6px; }
}
/* Tutoriel sur téléphone : « Ne plus afficher » sur sa ligne, puis Précédent et Suivant côte à côte */
@media (max-width: 480px) {
  #tutoriel .actions { flex-wrap: wrap; }
  #tutoriel .actions form { flex: 1 1 100%; }
  #tutoriel .actions button[data-tutoriel] { flex: 1; }
}

/* --- Contenu ------------------------------------------------------------- */
main {
  flex: 1 0 auto;
  width: 100%; max-width: var(--i-largeur); margin: 0 auto;
  padding: 40px clamp(20px, 3vw, 48px) 72px;
  display: flex; flex-direction: column; gap: 28px;
}
main > h1 + p, main > header p { max-width: 960px; font-size: 18px; font-weight: 300; color: var(--i-encre2); }
main > h1::after {
  content: ""; display: block; width: 64px; height: 3px; border-radius: 999px; background: var(--i-action); margin-top: 22px;
}
main section { display: flex; flex-direction: column; gap: 18px; }
main section > h2, .section-entete h2 { display: flex; align-items: center; gap: 12px; }
main section > h2::before, .section-entete h2::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--i-action); flex: none; }

/* Fil d'Ariane */
nav[aria-label="Fil d'Ariane"] ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--i-encre2); }
nav[aria-label="Fil d'Ariane"] li + li::before { content: "›"; margin-right: 6px; color: var(--i-encre2); }
nav[aria-label="Fil d'Ariane"] a { color: var(--i-encre2); }

/* Filtres */
main form[method="get"] {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px;
  padding: 16px 20px; border-radius: var(--i-rayon); background: var(--i-carte); border: 1px solid var(--i-ligne);
}
main form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; color: var(--i-encre2); }
select, input[type="text"], input[type="search"], input[type="email"], input[type="tel"], input[type="url"] {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--input-line, #6B7F99);
  background: var(--i-carte); color: var(--i-encre); font: inherit; font-size: 15px;
}
button, .bouton, a.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--i-ligne);
  background: var(--i-carte); color: var(--i-encre); font: inherit; font-size: 15px; font-weight: 500;
  text-decoration: none; cursor: pointer;
}
main form button[type="submit"], .bouton-principal, a.bouton-principal {
  background: var(--i-action); border-color: var(--i-action); color: var(--i-sur-action);
}
main form button[type="submit"]:hover, .bouton-principal:hover { background: var(--i-action-hover); }

/* Filtres en pastilles (Actualités) */
main form.filtres { flex-direction: column; align-items: stretch; gap: 10px; }
.pastilles-filtre { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pastilles-filtre__nom { width: 84px; flex: none; font-size: 13px; font-weight: 500; color: var(--i-encre2); }
.pastilles-filtre label { position: relative; display: inline-flex; }
.pastilles-filtre input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pastilles-filtre input + span {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--i-ligne); background: var(--i-page); color: var(--i-encre); font-size: 14px; font-weight: 500;
}
.pastilles-filtre label:hover input:not(:checked) + span { border-color: var(--i-accent); color: var(--i-accent); }
.pastilles-filtre input:checked + span { background: var(--i-accent); border-color: var(--i-accent); color: var(--i-sur-accent); }
.pastilles-filtre input:focus-visible + span { outline: 3px solid var(--i-action); outline-offset: 2px; }
/* Type : chaque pastille prend la couleur de son étiquette (point de couleur, puis aplat quand elle est choisie) */
.pastilles-filtre [data-valeur="actualite"]     { --c: #004C97; --c-sur: #FFFFFF; }
.pastilles-filtre [data-valeur="evenement"]     { --c: #FFA300; --c-sur: #0B1F3A; }
.pastilles-filtre [data-valeur="formation"]     { --c: #80CFEF; --c-sur: #0B1F3A; }
.pastilles-filtre [data-valeur="communication"] { --c: light-dark(#0B1F3A, #E8EEF7); --c-sur: light-dark(#FFFFFF, #07111E); }
.pastilles-filtre [data-valeur="bienvenue"]     { --c: #FFA300; --c-sur: #0B1F3A; }
.pastilles-filtre--type input + span[data-valeur]:not([data-valeur=""])::before {
  content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--c); margin-right: 8px; flex: none;
}
.pastilles-filtre--type input + span[data-valeur="bienvenue"]::before { background: light-dark(#FFF4DE, #2E2A1E); box-shadow: inset 0 0 0 2px #FFA300; }
.pastilles-filtre--type input:checked + span[data-valeur]:not([data-valeur=""]) { background: var(--c); border-color: var(--c); color: var(--c-sur); }
.pastilles-filtre--type input:checked + span[data-valeur="bienvenue"] { background: light-dark(#FFF4DE, #2E2A1E); color: light-dark(#7A4B00, #FFC861); box-shadow: inset 0 0 0 1.5px #FFA300; }
.pastilles-filtre--type input:checked + span[data-valeur]::before { background: var(--c-sur); }
.pastilles-filtre--type input:checked + span[data-valeur="bienvenue"]::before { background: #FFA300; box-shadow: none; }

/* Pagination */
nav[aria-label="Pagination"] ul { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
nav[aria-label="Pagination"] a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--i-ligne); background: var(--i-carte); text-decoration: none; color: var(--i-encre);
}
nav[aria-label="Pagination"] a[aria-current="page"] { background: var(--i-accent); border-color: var(--i-accent); color: var(--i-sur-accent); }

/* --- Étiquettes A : pastilles pleines (types) et teintées (émetteurs) ---- */
.etiquettes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--i-encre2); }
.etiquette {
  display: inline-flex; align-items: center; padding: 4px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 500; line-height: 1.5; white-space: nowrap;
}
.etiquette--actualite     { background: #004C97; color: #FFFFFF; }
.etiquette--evenement     { background: #FFA300; color: #0B1F3A; }
.etiquette--formation     { background: #80CFEF; color: #0B1F3A; }
.etiquette--communication { background: light-dark(#0B1F3A, #E8EEF7); color: light-dark(#FFFFFF, #07111E); }
.etiquette--bienvenue     { background: light-dark(#FFF4DE, #2E2A1E); color: light-dark(#7A4B00, #FFC861); box-shadow: inset 0 0 0 1.5px #FFA300; }
/* Émetteur des publications : neutre, la couleur est réservée au type */
.emetteur                 { background: var(--i-carte); color: var(--i-encre); box-shadow: inset 0 0 0 1px var(--i-ligne); }
.porteur                  { background: light-dark(#E6EFF8, #132840); color: light-dark(#004C97, #A8D0FA); }
.porteur--cse             { background: light-dark(#FFF4DE, #2E2A1E); color: light-dark(#7A4B00, #FFC861); }
.porteur--rse             { background: light-dark(#ECEEF1, #1E2A38); color: light-dark(#3A4D66, #BFCCDC); }
.etiquettes .agence { padding: 3px 12px; border-radius: 999px; border: 1px solid var(--i-ligne); font-size: 13px; line-height: 1.5; }

/* --- Cartes de publication (actualités, événements, formations) --------- */
section > ul:has(> li > article), .cartes {
  list-style: none; display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
section > ul > li > article, .carte {
  height: 100%; display: flex; flex-direction: column; gap: 10px;
  padding: 0 0 22px; border-radius: var(--i-rayon); overflow: hidden;
  background: var(--i-carte); border: 1px solid var(--i-ligne);
}
section > ul > li > article > *:not(.visuel):not(img) { margin-left: 22px; margin-right: 22px; }
section > ul > li > article > :first-child:not(.visuel):not(img) { margin-top: 22px; }
section > ul > li > article h3 { font-size: 20px; font-weight: 500; line-height: 1.25; }
section > ul > li > article h3 a { color: var(--i-encre); text-decoration: none; }
section > ul > li > article h3 a::after { content: ""; position: absolute; inset: 0; } /* carte entièrement cliquable */
section > ul > li > article { position: relative; transition: transform .2s ease, box-shadow .2s ease; }
section > ul > li > article:hover { transform: translateY(-3px); box-shadow: var(--i-ombre); }
section > ul > li > article time { font-size: 14px; color: var(--i-encre2); }
section > ul > li > article > p:last-child { font-size: 15px; font-weight: 300; color: var(--i-encre2); }
section > ul > li > article > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* --- Visuel par défaut B : nuit, cercles, symbole orange ---------------- */
.visuel {
  aspect-ratio: 16 / 9; width: 100%;
  background:
    url(../images/symbole-orange-s-blanc.svg) 52% 66% / 28% auto no-repeat,
    radial-gradient(circle at 18% 36%, #004C97 0 15%, transparent 15.3%),
    radial-gradient(circle at 80% 22%, #80CFEF 0 10%, transparent 10.3%),
    radial-gradient(circle at 86% 74%, transparent 0 6%, #FFA300 6.1% 6.8%, transparent 7%),
    radial-gradient(circle at 26% 80%, transparent 0 5%, #25405F 5.1% 5.6%, transparent 5.8%),
    #0B1F3A;
}

/* --- Icônes A : cartes d'outils avec pastille pleine -------------------- */
.outils, main section > ul:has(.icone) {
  list-style: none; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}
.outils > li, main section > ul:has(.icone) > li { position: relative; }
.outils > li > a, .outils > li > div,
main section > ul:has(.icone) > li > a {
  height: 100%; display: flex; flex-direction: column; gap: 10px;
  padding: 22px; border-radius: var(--i-rayon); background: var(--i-carte); border: 1px solid var(--i-ligne);
  color: var(--i-encre); text-decoration: none;
}
.outils > li > a:hover, main section > ul:has(.icone) > li > a:hover { border-color: var(--i-accent); box-shadow: var(--i-ombre); }
main section > ul:has(.icone) h3 { font-size: 17px; font-weight: 600; }
main section > ul:has(.icone) p { font-size: 14px; color: var(--i-encre2); line-height: 1.45; }
.icone {
  width: 56px; height: 56px; border-radius: 999px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: #004C97; color: #FFFFFF;
}
.icone svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
li:nth-child(4n+4) > a > .icone, li:nth-child(4n+4) > .icone { background: #0B1F3A; }
:root[data-theme="dark"] .icone { background: #7DB8F7; color: #07111E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icone { background: #7DB8F7; color: #07111E; } }
.sans-lien { font-size: 13px; color: var(--i-encre2); }

/* --- Icônes B : lignes teintées avec pastille ronde au trait ------------- */
.liste-b, main section > ul:has(.icone-b) {
  list-style: none; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr));
}
.liste-b > li, main section > ul:has(.icone-b) > li {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 16px;
  padding: 14px 20px 14px 14px; border-radius: 999px; background: var(--i-carte); border: 1px solid var(--i-ligne);
}
.liste-b > li:hover { border-color: var(--i-accent); }
.icone-b {
  grid-row: span 2; width: 52px; height: 52px; border-radius: 999px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--i-page); border: 1px solid var(--i-ligne); color: var(--i-accent);
}
.icone-b svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.liste-b > li > a { font-weight: 500; color: var(--i-encre); text-decoration: none; }
.liste-b > li > a::after { content: ""; position: absolute; inset: 0; border-radius: 999px; }
.liste-b > li > p { grid-column: 2; font-size: 14px; color: var(--i-encre2); line-height: 1.4; }
.liste-b > li > .type {
  grid-column: 3; grid-row: 1 / span 2; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; background: var(--i-teinte); color: var(--i-accent);
}

/* --- Contacts et sections en carte --------------------------------------- */
.bloc, main section:has(> dl:not(.lexique)) {
  padding: 26px 28px; border-radius: var(--i-rayon); background: var(--i-carte); border: 1px solid var(--i-ligne);
}
main section:has(> dl:not(.lexique)) > h2 { font-size: 22px; }
main dl { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0; }
main dl > dt { font-size: 13px; font-weight: 500; color: var(--i-encre2); align-self: center; }
main dl > dd { margin: 0 14px 0 0; padding: 4px 14px; border-radius: 999px; background: var(--i-teinte); font-size: 14px; }
main section:has(> dl:not(.lexique)) > ul, .bloc > ul { display: flex; flex-direction: column; gap: 8px; padding-left: 0; list-style: none; }
main section:has(> dl:not(.lexique)) > ul > li, .bloc > ul > li { position: relative; padding-left: 22px; font-size: 15px; }
main section:has(> dl:not(.lexique)) > ul > li::before, .bloc > ul > li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 999px; background: var(--i-action); }

/* --- Page d'article (publication, avantage) ------------------------------ */
main > article { display: flex; flex-direction: column; gap: 22px; }
main > article > header {
  display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: 32px;
  background: var(--i-carte); border: 1px solid var(--i-ligne);
}
main > article > header > p:first-child:not(.etiquettes) { font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--i-accent); }
main > article > section, main > article > p { max-width: 960px; }
main > article > section { display: flex; flex-direction: column; gap: 10px; }
main > article > section > h2 { font-size: 22px; }
main > article ul { padding-left: 22px; }

/* --- Bienvenue A : carte à photo ronde ----------------------------------- */
.bienvenue {
  position: relative; max-width: 440px; margin: 0; overflow: hidden;
  padding: 32px; border-radius: var(--i-rayon); background: var(--i-carte); border: 1px solid var(--i-ligne);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
}
.bienvenue::before { content: ""; position: absolute; inset: 0 0 auto; height: 120px; background: light-dark(#E6F6FC, #132840); }
.bienvenue::after {
  content: ""; position: absolute; right: 18px; top: 18px; width: 90px; height: 56px;
  background: url(../images/forme-orange.svg) center / contain no-repeat;
}
.bienvenue > * { position: relative; z-index: 1; }
.bienvenue__photo {
  margin-top: 36px; width: 148px; height: 148px; border-radius: 999px; object-fit: cover;
  background: var(--i-ligne); border: 6px solid var(--i-carte); box-shadow: 0 10px 30px rgba(0, 76, 151, .16);
  display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--i-encre2);
}
.bienvenue__nom { font-family: var(--i-titres); font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.bienvenue__poste { font-size: 15px; color: var(--i-encre2); }
.bienvenue__texte { font-size: 15px; color: var(--i-encre2); line-height: 1.55; }

/* --- Tutoriel A : carte claire sur voile ---------------------------------- */
dialog {
  width: min(440px, calc(100vw - 32px)); padding: 28px; border: 0; border-radius: var(--i-rayon);
  background: var(--i-carte); color: var(--i-encre); box-shadow: 0 30px 70px rgba(0, 0, 0, .3);
}
dialog::backdrop { background: rgba(8, 18, 33, .5); }
#tutoriel { display: none; flex-direction: column; gap: 16px; }
#tutoriel[open] { display: flex; }
#tutoriel::before {
  content: ""; display: block; height: 150px; border-radius: 22px;
  background: url(../images/forme-bleu.svg) right -10px bottom -20px / 240px auto no-repeat, light-dark(#EEF4FA, #132840);
}
#tutoriel > h2 { font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--i-accent); font-family: var(--i-texte); }
#tutoriel ol { list-style: none; }
#tutoriel li:not([aria-current]) { display: none; }
#tutoriel li { display: flex; flex-direction: column; gap: 10px; }
#tutoriel h3 { font-size: 24px; font-weight: 600; line-height: 1.25; }
#tutoriel li p { color: var(--i-encre2); }
#tutoriel .progression { display: flex; gap: 6px; }
#tutoriel .progression span { width: 8px; height: 8px; border-radius: 999px; background: var(--i-ligne); }
#tutoriel .progression span[aria-current] { width: 24px; background: var(--i-accent); }
#tutoriel .actions { display: flex; align-items: center; gap: 10px; }
#tutoriel .actions form { margin-right: auto; }
#tutoriel .actions form button { border: 0; background: none; padding: 0 8px; color: var(--i-encre2); font-size: 14px; }
#tutoriel [data-tutoriel="suivant"] { background: var(--i-action); border-color: var(--i-action); color: var(--i-sur-action); }

/* --- Checklist (Documents) --- */
.checklist > p { color: var(--i-encre2); font-size: 15px; }
.checklist[open] { display: flex; flex-direction: column; gap: 14px; }
.checklist summary { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; list-style: none; cursor: pointer; }
.checklist summary::-webkit-details-marker { display: none; }
.checklist summary h2 { display: flex; align-items: center; gap: 12px; font-size: 22px; }
.checklist summary h2::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--i-action); flex: none; }
.checklist summary::after {
  content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--i-encre2); border-bottom: 2px solid var(--i-encre2);
  transform: rotate(45deg); transition: transform .2s ease;
}
.checklist[open] summary::after { transform: rotate(-135deg); }
.checklist--terminee .checklist__avancement { padding: 3px 12px; border-radius: 999px; background: light-dark(#E6F4EC, #12383C); color: light-dark(#1B5E3B, #7DDBA8); letter-spacing: .04em; }
.checklist__avancement { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--i-accent); }
.checklist ul { list-style: none; display: flex; flex-direction: column; gap: 4px; padding: 0; }
.checklist li::before { display: none; }
.checklist li { padding-left: 0 !important; }
.checklist label { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 16px; cursor: pointer; font-size: 15px; }
.checklist label:hover { background: var(--i-teinte); }
.checklist input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--i-accent); cursor: pointer; }
.checklist input:checked + span { color: var(--i-encre2); text-decoration: line-through; text-decoration-color: var(--i-action); }

/* --- Recherche (Ctrl+K) --------------------------------------------------- */
#recherche { width: min(640px, calc(100vw - 32px)); }
#recherche input[type="search"] { width: 100%; }

/* --- Pied : En-tête B (logo et « Intranet » entre deux filets) ------------ */
body > footer {
  margin-top: auto; padding: 40px 24px 32px; background: #0B1F3A; color: #BFCCDC;
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; font-size: 14px;
}
/* En-tête B (barre et pied, même composition) : logo recadré au plus près du dessin, exactement de la largeur
   de la ligne « — INTRANET — » en dessous. Logo 1205,8 × 200,4 (images/logo-aduneo-*-serre.svg) : 150 × 24,9 px. */
.entete-b { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.entete-b img { width: 150px; height: 24.9px; }
.entete-b__mot {
  display: flex; align-items: center; gap: 10px; width: 150px;
  font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; line-height: 1; color: #80CFEF;
}
.entete-b__mot::before, .entete-b__mot::after { content: ""; flex: 1; height: 2px; border-radius: 999px; background: #FFA300; }
.entete-b__mot::after { margin-left: -.24em; }   /* compense l'espacement après la dernière lettre : mot bien centré */
body > footer ul { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
body > footer a { color: #FFFFFF; }
body > footer p:last-child { font-size: 12px; letter-spacing: .1em; }

/* --- Pages techniques ----------------------------------------------------- */
/* A : page introuvable, grande forme en filigrane */
.page-erreur main { position: relative; justify-content: center; min-height: 60vh; }
.page-erreur main::before {
  content: "404"; font-family: var(--i-titres); font-size: clamp(90px, 14vw, 160px); font-weight: 300;
  letter-spacing: -0.04em; line-height: 1; color: var(--i-accent);
}
.page-erreur main::after {
  content: ""; position: absolute; right: -90px; top: 10%; width: min(560px, 60vw); aspect-ratio: 662 / 393;
  background: url(../images/forme-bleu.svg) center / contain no-repeat; opacity: .14; pointer-events: none;
}
.page-erreur main > h1::after { display: none; }
.page-erreur main ul, .page-acces main ul { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.page-erreur main ul a, .page-acces main a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--i-ligne); background: var(--i-carte); color: var(--i-encre); font-weight: 500; text-decoration: none;
}
.page-erreur main ul li:first-child a { background: var(--i-action); border-color: var(--i-action); color: var(--i-sur-action); }

/* B : accès réservé et déconnexion, fond nuit, logo blanc, En-tête B */
.page-acces { background: #0B1F3A; color: #FFFFFF; }
.page-acces > header { display: none; }
.page-acces main { align-items: center; justify-content: center; text-align: center; max-width: 620px; min-height: 80vh; }
.page-acces main::before {
  content: ""; width: 220px; height: 50px; background: url(../images/logo-aduneo-blanc.svg) center / contain no-repeat;
}
.page-acces main > h1 { color: #FFFFFF; font-size: 40px; }
.page-acces main > h1::after { margin: 22px auto 0; }
.page-acces main p { color: #BFCCDC; font-size: 17px; }
.page-acces main a { background: var(--i-action); border-color: var(--i-action); color: var(--i-sur-action); }
.page-acces main p a { background: none; border: 0; padding: 0; min-height: 0; color: #7DB8F7; text-decoration: underline; }
.page-acces > footer { background: transparent; }

/* --- Petits écrans --------------------------------------------------------- */
@media (max-width: 760px) {
  body > header { position: static; padding: 10px 16px; }
  .entete__nav { grid-template-columns: minmax(0, 1fr); gap: 8px; justify-items: center; width: 100%; border-radius: 28px; padding: 12px; }
  .entete__nav > a.entete-b { order: -1; }
  .entete__nav ul { justify-content: center; flex-wrap: wrap; }
  main { padding: 28px 16px 56px; }
  main > article > header { padding: 24px; }
  .liste-b > li, main section > ul:has(.icone-b) > li { border-radius: var(--i-rayon); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
:root.motion-off * { transition: none !important; animation: none !important; }

/* Conteneur de la liste des documents (Graph) : ses sections se placent comme celles de la page */
[data-documents-api] { display: flex; flex-direction: column; gap: 28px; }

/* Éléments masqués par les filtres : l'attribut hidden l'emporte sur les display des listes */
[hidden] { display: none !important; }
#tutoriel [data-tutoriel="compteur"] { font-size: 14px; font-weight: 500; color: var(--i-accent); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* --- Accueil : titre de section et lien « tout voir » -------------------- */
.section-entete { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.section-entete h2 { margin: 0; }
.section-entete a { font-weight: 500; white-space: nowrap; }
.section-entete a::after { content: " →"; }
.checklist[hidden] { display: none !important; }
/* Dernières actualités (3 à 5) : toutes sur une ligne en grand écran, jamais une carte seule sur sa ligne (pas d'attribut style : CSP) */
main section > ul.recentes { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  main section > ul.recentes { grid-template-columns: repeat(3, 1fr); }
  main section > ul.recentes--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  main section > ul.recentes--4 { grid-template-columns: repeat(4, 1fr); }
  main section > ul.recentes--5 { grid-template-columns: repeat(5, 1fr); }
}

/* ==========================================================================
   Finitions : profondeur, matière et mouvement (principes « fluid interfaces »)
   - Surfaces : filet doux + ombre en couches + arête haute ; au survol, la carte se soulève (ombre plus diffuse).
   - Réponse immédiate : chaque élément cliquable s'enfonce légèrement dès l'appui (:active), sans attendre le relâché.
   - Une seule courbe de mouvement (--i-ressort, sans rebond) ; mouvement réduit et transparence réduite respectés.
   ========================================================================== */

/* Surfaces */
section > ul > li > article, .carte,
.outils > li > a, .outils > li > div, main section > ul:has(.icone) > li > a,
.liste-b > li, main section > ul:has(.icone-b) > li,
.bloc, main section:has(> dl:not(.lexique)), main form[method="get"], main > article > header, .fiche {
  border-color: var(--i-ligne-douce);
  box-shadow: var(--i-reflet), var(--i-ombre-1);
}

/* Cartes cliquables : soulèvement au survol, enfoncement à l'appui */
section > ul > li > article,
.outils > li > a, main section > ul:has(.icone) > li > a,
.liste-b > li {
  transition: transform var(--i-duree) var(--i-ressort), box-shadow var(--i-duree) var(--i-ressort), border-color .2s ease;
}
section > ul > li > article:hover,
.outils > li > a:hover, main section > ul:has(.icone) > li > a:hover,
.liste-b > li:hover {
  transform: translateY(-3px); box-shadow: var(--i-reflet), var(--i-ombre-2);
  border-color: light-dark(#C5D6EA, #2C4C72);
}
section > ul > li > article:active,
.outils > li > a:active, main section > ul:has(.icone) > li > a:active,
.liste-b > li:active {
  transform: translateY(-1px) scale(.985); transition-duration: .1s;
}
/* L'icône d'outil réagit avec sa carte */
.icone { transition: transform var(--i-duree) var(--i-ressort); }
main section > ul:has(.icone) > li > a:hover .icone { transform: scale(1.06); }
.icone-b { transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.liste-b > li:hover .icone-b { background: var(--i-accent); border-color: var(--i-accent); color: var(--i-sur-accent); }

/* Visuel des cartes : plus bas que l'image d'article, léger zoom au survol (rogné par la carte) */
section > ul > li > article > .visuel { aspect-ratio: 2 / 1; }
section > ul > li > article > .visuel, section > ul > li > article > img { transition: transform .6s var(--i-ressort); }
section > ul > li > article:hover > .visuel, section > ul > li > article:hover > img { transform: scale(1.035); }

/* Boutons et pastilles : réponse à l'appui */
button, .bouton, a.bouton { transition: transform .18s var(--i-ressort), background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .25s ease; }
button:hover, .bouton:hover { border-color: light-dark(#B9CCE3, #34567E); box-shadow: var(--i-ombre-1); }
button:active, .bouton:active, .pastille:active { transform: scale(.96); transition-duration: .08s; }
.pastille:hover { box-shadow: var(--i-reflet), var(--i-ombre-2); }
.entete__nav li > a:active { transform: scale(.97); }
.entete__nav li > a { transition: transform .15s var(--i-ressort), color .25s ease; }

/* Filtres en pastilles : rangée sans cadre lourd, pastilles qui répondent */
main form.filtres { padding: 18px 22px; gap: 12px; }
.pastilles-filtre input + span { transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s var(--i-ressort); background: var(--i-carte); }
.pastilles-filtre label:active input + span { transform: scale(.95); }
.pastilles-filtre__nom { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

/* Titres de page : chapô plus aéré */
main > h1 + p { font-size: 19px; line-height: 1.55; }

/* Blocs côte à côte (Contacts, Agences) */
.grille-blocs { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); align-items: start; }
.grille-blocs > .bloc { display: flex; flex-direction: column; gap: 16px; height: 100%; }
.grille-blocs > .bloc > h2 { display: flex; align-items: center; gap: 12px; font-size: 22px; }
.grille-blocs > .bloc > h2::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--i-action); flex: none; }
.grille-blocs > .bloc > p:last-child { margin-top: auto; padding-top: 4px; font-size: 15px; color: var(--i-encre2); }
main dl > dd { background: var(--i-page); box-shadow: inset 0 0 0 1px var(--i-ligne-douce); }

/* Page de publication : en-tête, puis texte et fiche pratique côte à côte (fiche à droite, collante) */
main > article > header { padding: clamp(28px, 4vw, 48px); }
main > article > header > p:not(.etiquettes) { max-width: 820px; font-size: 19px; font-weight: 300; color: var(--i-encre2); }
.article__corps { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .article__corps { grid-template-columns: minmax(0, 1fr) 380px; } }
.article__texte { grid-row: 1; display: flex; flex-direction: column; gap: 18px; max-width: 760px; font-size: 18px; line-height: 1.7; }
.article__texte > figure { margin: 0; }
.article__texte > figure img { width: 100%; height: auto; border-radius: var(--i-rayon); }
.fiche {
  position: sticky; top: 110px; display: flex; flex-direction: column; gap: 18px;
  padding: 24px; border-radius: var(--i-rayon); background: var(--i-carte); border: 1px solid var(--i-ligne-douce);
}
@media (max-width: 999px) { .article__texte { grid-row: 2; } .fiche { position: static; } }
.fiche dl { flex-direction: column; flex-wrap: nowrap; gap: 0; }
.fiche dl > dt { align-self: stretch; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding-top: 12px; border-top: 1px solid var(--i-ligne-douce); }
.fiche dl > dt:first-child { padding-top: 0; border-top: 0; }
.fiche dl > dd { margin: 2px 0 12px; padding: 0; background: none; box-shadow: none; font-size: 16px; }
.fiche .actions { flex-direction: column; }
.fiche .actions .bouton { width: 100%; }
.lien-retour { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; }
.lien-retour::before { content: "←"; transition: transform .25s var(--i-ressort); }
.lien-retour:hover::before { transform: translateX(-4px); }

/* Checklist : cases rondes, barre de progression */
.checklist summary { row-gap: 10px; }
.checklist__barre { order: 5; flex: 1 1 100%; height: 6px; border-radius: 999px; background: var(--i-teinte); overflow: hidden; }
.checklist__barre > span {
  display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #004C97, #80CFEF);
  transform-origin: left; transform: scaleX(var(--avancement, 0)); transition: transform .5s var(--i-ressort);
}
.checklist--terminee .checklist__barre > span { background: light-dark(#1B5E3B, #7DDBA8); }
.checklist input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 999px;
  border: 2px solid var(--input-line, #6B7F99); background: var(--i-carte); display: grid; place-content: center;
  transition: background-color .2s ease, border-color .2s ease, transform .15s var(--i-ressort);
}
.checklist input[type="checkbox"]::after {
  content: ""; width: 10px; height: 6px; margin-top: -2px; border-left: 2px solid #FFFFFF; border-bottom: 2px solid #FFFFFF;
  transform: rotate(-45deg) scale(0); transition: transform .25s var(--i-ressort);
}
.checklist input[type="checkbox"]:checked { background: var(--i-accent); border-color: var(--i-accent); }
:root[data-theme="dark"] .checklist input[type="checkbox"]::after { border-color: #07111E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .checklist input[type="checkbox"]::after { border-color: #07111E; } }
.checklist input[type="checkbox"]:checked::after { transform: rotate(-45deg) scale(1); }
.checklist label:active input[type="checkbox"] { transform: scale(.88); }
.checklist label { align-items: center; transition: background-color .2s ease; }
.checklist input:checked + span { transition: color .3s ease; }

/* Fenêtres (tutoriel, recherche) : la matière arrive (échelle + flou du voile), et repart par le même chemin */
dialog { box-shadow: var(--i-reflet), 0 40px 90px -20px rgba(4, 12, 24, .45); }
dialog::backdrop { background: rgba(8, 18, 33, .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: intra-fenetre .4s var(--i-ressort); }
  dialog[open]::backdrop { animation: intra-voile .3s ease; }
}
@keyframes intra-fenetre { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes intra-voile { from { opacity: 0; } }

/* Pied : arrondi qui prolonge les formes de la charte */
body > footer { border-radius: 40px 40px 0 0; padding-top: 48px; }

/* Accessibilité : transparence réduite (surfaces pleines), contraste renforcé (filets nets) */
@media (prefers-reduced-transparency: reduce) {
  .entete__nav, .pastille { background: var(--i-carte); -webkit-backdrop-filter: none; backdrop-filter: none; }
  dialog::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(8, 18, 33, .6); }
}
@media (prefers-contrast: more) {
  :root { --i-ligne-douce: var(--i-ligne); --i-verre: var(--i-carte); }
  .entete__nav, .pastille { border-color: var(--i-encre2); }
}

/* ==========================================================================
   Composants des rubriques ajoutées (Affichage, Bien démarrer, L'entreprise, accueil, recherche)
   ========================================================================== */

/* Information manquante : saisie entre crochets dans le CMS (macro « saisie ») — visible pour qu'on la complète */
.a-completer {
  display: inline; padding: 1px 8px; border-radius: 8px; font-size: .92em;
  background: var(--warn-bg, #FFF4DE); color: var(--warn-ink, #7A4B00); box-shadow: inset 0 0 0 1px var(--warn-line, #E69300);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Sommaire de page : pastilles d'ancres */
.sommaire { display: flex; flex-wrap: wrap; gap: 8px; }
.sommaire a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px;
  background: var(--i-carte); border: 1px solid var(--i-ligne-douce); box-shadow: var(--i-ombre-1);
  color: var(--i-encre); font-size: 15px; font-weight: 500; text-decoration: none;
  transition: transform .15s var(--i-ressort), border-color .2s ease, color .2s ease;
}
.sommaire a:hover { border-color: var(--i-accent); color: var(--i-accent); }
.sommaire a:active { transform: scale(.96); }
main section[id] { scroll-margin-top: 120px; }
.section-chapo { max-width: 860px; color: var(--i-encre2); }

/* Fiches : petites cartes d'information (Affichage, valeurs) */
.fiches { list-style: none; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.fiches > li {
  display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border-radius: var(--i-rayon-s);
  background: var(--i-carte); border: 1px solid var(--i-ligne-douce); box-shadow: var(--i-reflet), var(--i-ombre-1);
  scroll-margin-top: 120px;
}
.fiches h3 { font-size: 18px; font-weight: 500; line-height: 1.3; }
.fiches p { font-size: 15px; color: var(--i-encre2); line-height: 1.5; }
.fiches .fiches__valeur { margin-top: auto; padding-top: 6px; color: var(--i-encre); font-weight: 500; }
.fiches a { font-weight: 500; }

/* CSE : élus */
.grille-blocs > .bloc > h3 { font-size: 20px; font-weight: 500; }
.elus { list-style: none; display: flex; flex-direction: column; gap: 0; padding: 0; }
.elus > li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--i-ligne-douce); padding-left: 0 !important; }
.elus > li::before { display: none; }
.elus > li:first-child { border-top: 0; padding-top: 0; }
.elus__nom { font-weight: 500; }
.elus__role { font-size: 14px; color: var(--i-encre2); }

/* Bien démarrer : questions dépliables, lexique en deux colonnes */
.faq { display: flex; flex-direction: column; border-radius: var(--i-rayon); background: var(--i-carte); border: 1px solid var(--i-ligne-douce); box-shadow: var(--i-reflet), var(--i-ombre-1); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--i-ligne-douce); }
.faq summary {
  display: flex; align-items: center; gap: 16px; padding: 18px 26px; cursor: pointer; list-style: none;
  font-weight: 500; transition: background-color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--i-teinte); }
.faq summary::after {
  content: ""; margin-left: auto; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--i-encre2); border-bottom: 2px solid var(--i-encre2);
  transform: rotate(45deg); transition: transform .3s var(--i-ressort);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > p { padding: 0 26px 20px; color: var(--i-encre2); max-width: 900px; }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] > p { animation: intra-deplie .3s var(--i-ressort); }
}
@keyframes intra-deplie { from { opacity: 0; transform: translateY(-4px); } }
.lexique { display: grid; gap: 0 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); margin: 0; }
.lexique > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--i-ligne-douce); }
.lexique dt { font-family: var(--i-titres); font-weight: 500; font-size: 17px; }
.lexique dd { margin: 0; color: var(--i-encre2); font-size: 15px; }
@media (max-width: 520px) { .lexique > div { grid-template-columns: 1fr; gap: 4px; } }

/* L'entreprise : chiffres clés, manifeste */
.chiffres { list-style: none; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.chiffres > li {
  display: flex; flex-direction: column; gap: 6px; padding: 26px; border-radius: var(--i-rayon);
  background: linear-gradient(160deg, #0B1F3A, #004C97); color: #FFFFFF; box-shadow: var(--i-ombre-1);
}
.chiffres__valeur { font-family: var(--i-titres); font-size: 44px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.chiffres__valeur .a-completer { font-family: var(--i-texte); font-size: 15px; }
.chiffres__libelle { font-size: 15px; color: #BFCCDC; }
.manifeste {
  margin: 0; padding: clamp(28px, 4vw, 48px); border-radius: var(--i-rayon); position: relative;
  background: var(--i-carte); border: 1px solid var(--i-ligne-douce); box-shadow: var(--i-reflet), var(--i-ombre-1);
  font-family: var(--i-titres); font-size: clamp(20px, 2vw, 26px); line-height: 1.45;
}
.manifeste::before { content: "«"; position: absolute; left: 22px; top: 2px; font-size: 64px; line-height: 1; color: var(--i-action); }
.manifeste p { padding-left: 28px; }

/* Accueil : incident en cours */
.alerte {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 22px; border-radius: var(--i-rayon-s);
  background: var(--crit-bg, #FDECEA); color: var(--crit-ink, #C62828); border: 1px solid currentColor;
}
.alerte__point { flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 999px; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 20%, transparent); }
.alerte__titre { font-weight: 500; }
.alerte ul { list-style: none; color: var(--i-encre); font-size: 15px; }

/* Accueil : mot de la direction */
.mot-direction {
  position: relative; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
  padding: clamp(28px, 4vw, 44px); border-radius: var(--i-rayon); color: #FFFFFF;
  background: radial-gradient(600px 300px at 100% 0%, rgba(128, 207, 239, .25), transparent 70%), linear-gradient(135deg, #0B1F3A, #00366D);
  box-shadow: var(--i-ombre-2); transition: transform var(--i-duree) var(--i-ressort);
}
.mot-direction:hover { transform: translateY(-2px); }
.mot-direction:active { transform: scale(.99); }
.mot-direction__surtitre { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #FFA300; }
.mot-direction h3 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 400; color: #FFFFFF; max-width: 900px; }
.mot-direction h3 a { color: inherit; text-decoration: none; }
.mot-direction h3 a::after { content: ""; position: absolute; inset: 0; }
.mot-direction > p { max-width: 820px; color: #D7E2EE; font-weight: 300; font-size: 17px; }
.mot-direction .mot-direction__date { font-size: 14px; color: #BFCCDC; }
.mot-direction time { color: inherit; }

/* Accueil : accès rapides */
.rapides, main section > ul.rapides { list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
main section > ul.rapides > li > a {
  flex-direction: row; height: auto;
  display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border-radius: 999px;
  background: var(--i-carte); border: 1px solid var(--i-ligne-douce); box-shadow: var(--i-reflet), var(--i-ombre-1);
  color: var(--i-encre); font-weight: 500; text-decoration: none;
  transition: transform var(--i-duree) var(--i-ressort), box-shadow var(--i-duree) var(--i-ressort);
}
main section > ul.rapides > li > a:hover { transform: translateY(-2px); box-shadow: var(--i-reflet), var(--i-ombre-2); }
main section > ul.rapides > li > a:active { transform: scale(.97); transition-duration: .1s; }
.rapides .icone { width: 44px; height: 44px; }
.rapides .icone svg { width: 22px; height: 22px; }

/* Accueil : agenda à venir */
.agenda { list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.agenda a {
  display: flex; align-items: center; gap: 18px; height: 100%; padding: 14px 20px 14px 14px; border-radius: var(--i-rayon-s);
  background: var(--i-carte); border: 1px solid var(--i-ligne-douce); box-shadow: var(--i-reflet), var(--i-ombre-1);
  color: var(--i-encre); text-decoration: none;
  transition: transform var(--i-duree) var(--i-ressort), box-shadow var(--i-duree) var(--i-ressort);
}
.agenda a:hover { transform: translateY(-2px); box-shadow: var(--i-reflet), var(--i-ombre-2); }
.agenda a:active { transform: scale(.98); transition-duration: .1s; }
.agenda__date {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 64px;
  border-radius: 16px; background: var(--i-teinte); color: var(--i-accent); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
}
.agenda__date > span { font-family: var(--i-titres); font-size: 26px; font-weight: 500; line-height: 1; letter-spacing: 0; }
.agenda__texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.agenda__titre { font-weight: 500; line-height: 1.3; }
.agenda__infos { font-size: 14px; color: var(--i-encre2); }
.agenda .etiquette { flex: none; }
@media (max-width: 520px) { .agenda .etiquette { display: none; } }

/* Recherche : résultats */
#recherche { display: none; flex-direction: column; gap: 14px; }
#recherche[open] { display: flex; }
#recherche > h2 { font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--i-accent); font-family: var(--i-texte); }
#recherche label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--i-encre2); }
#recherche input[type="search"] { min-height: 52px; font-size: 17px; padding: 0 20px; }
.recherche__aide { font-size: 13px; color: var(--i-encre2); }
#recherche [data-resultats] { list-style: none; display: flex; flex-direction: column; gap: 4px; max-height: min(56vh, 520px); overflow-y: auto; margin: 0 -8px; padding: 0 8px; }
#recherche [data-resultats] a {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 16px; text-decoration: none; color: var(--i-encre);
  transition: background-color .15s ease;
}
#recherche [data-resultats] a:hover, #recherche [data-resultats] a:focus-visible { background: var(--i-teinte); outline: none; }
.resultat__rubrique { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--i-accent); }
.resultat__titre { font-weight: 500; }
.resultat__extrait { font-size: 14px; color: var(--i-encre2); line-height: 1.45; }
