/* Faro — feuille unique. Couleurs, espacements et tailles : uniquement par ces jetons. */

/* Thème Inchiostro de Kapyko (Squadra/src/client/theme.css) : encre, ardoise, corail, papier ;
   DM Sans (SIL OFL 1.1, public/fonts/OFL-DMSans.txt), servie par le site ; angles nets. */
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/dmsans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/dmsans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --police-texte: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --police-titre: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fond: #f6f5f2;
  --surface: #ffffff;
  --texte: #2a2a33;
  --texte-2: #5f6070;
  --trait: #dddad2;
  --trait-fort: #7e8193;
  --encre: #1c2340;
  --accent: #3a4675;
  --accent-fond: #1c2340;
  --accent-texte: #f6f5f2;
  --majeur: #b3261e;
  --majeur-fond: #faddd6;
  --important-fond: #e2e5f2;
  --message-fond: #ddf0e4;
  --message-texte: #1d5c39;
  --erreur-fond: #faddd6;
  --focus: #3a4675;
  --terre: #e6e3dc;
  --point: #c8452c;
  --signal: #e8644a;
  --ombre: 0 1px 2px rgb(28 35 64 / 8%), 0 4px 12px rgb(28 35 64 / 8%);
  --ombre-forte: 0 2px 4px rgb(28 35 64 / 10%), 0 10px 24px rgb(28 35 64 / 14%);
  --accent-survol: #3a4675;
  /* Bandeaux d'encre (invitation au compte, héros de la page de vente) : sombres dans les deux thèmes */
  --encre-fond: #1c2340;
  --encre-texte: #f6f5f2;
  --encre-texte-2: #c9cde0;
  --encre-trait: #1c2340;
  --encre-lueur: rgb(246 245 242 / 13%);
  --encre-survol: #ffffff;
  --transition: 0.15s ease;

  --r: 4px;
  --r-petit: 3px;
  --gouttiere: 16px;
  --espace-1: 0.25rem;
  --espace-2: 0.5rem;
  --espace-3: 0.75rem;
  --espace-4: 1rem;
  --espace-5: 1.5rem;
  --espace-6: 2.5rem;
  --largeur: 1240px;
  --lecture: 70ch;
  --taille-petit: 0.875rem;
  --taille-texte: 1rem;
  /* Vignettes des cartes (rapport 3:2 ; 4:3 sur téléphone) et de la fiche */
  --vignette-l: 5.25rem;
  --vignette-h: 3.5rem;
  --vignette-fiche: 22rem;
  /* Titres estompés de l'aperçu des vues par rôle */
  --flou-apercu: 1.5px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #12162a;
    --surface: #1c2340;
    --texte: #eceae4;
    --texte-2: #a9aec6;
    --trait: #333c63;
    --trait-fort: #7881ad;
    --encre: #eceae4;
    --accent: #8e98c4;
    --accent-fond: #8e98c4;
    --accent-texte: #1c2340;
    --majeur: #ff9d8a;
    --majeur-fond: #5c2416;
    --important-fond: #2b3563;
    --message-fond: #1d3f2b;
    --message-texte: #ddf0e4;
    --erreur-fond: #5c2416;
    --focus: #8e98c4;
    --terre: #252d50;
    --point: #f07a62;
    --signal: #f07a62;
    --ombre: 0 1px 2px rgb(0 0 0 / 30%), 0 4px 12px rgb(0 0 0 / 25%);
    --ombre-forte: 0 2px 4px rgb(0 0 0 / 35%), 0 10px 24px rgb(0 0 0 / 40%);
    --accent-survol: #a9b2d8;
    --encre-fond: #232b52;
    --encre-texte: #eceae4;
    --encre-texte-2: #b9bed6;
    --encre-trait: #333c63;
    --encre-lueur: rgb(236 234 228 / 10%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--espace-6); }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police-texte);
  font-size: var(--taille-texte);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: 100%; padding-bottom: var(--espace-6); }
main:focus { outline: none; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--police-titre); color: var(--encre); line-height: 1.25; margin: 0; letter-spacing: -0.005em; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.35rem + 1.8vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.6rem); margin-top: var(--espace-6); margin-bottom: var(--espace-3); }
h3 { font-size: 1.15rem; }
p { margin: var(--espace-3) 0; max-width: var(--lecture); }
.discret { color: var(--texte-2); font-size: var(--taille-petit); }
.petit { font-size: var(--taille-petit); }
.visuellement-cache { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.evitement { position: absolute; left: var(--gouttiere); top: -100px; background: var(--surface); padding: var(--espace-2) var(--espace-4); z-index: 10; border-radius: var(--r-petit); }
.evitement:focus { top: var(--espace-2); }
.conteneur { max-width: var(--largeur); margin: 0 auto; padding-inline: max(var(--gouttiere), env(safe-area-inset-left)) max(var(--gouttiere), env(safe-area-inset-right)); }
@media (min-width: 768px) { :root { --gouttiere: 32px; } }

/* En-tête */
.entete { background: var(--surface); border-bottom: 1px solid var(--trait); padding-top: env(safe-area-inset-top); }
.entete-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: var(--espace-1) var(--espace-5); padding-top: var(--espace-2); padding-bottom: var(--espace-2); }
.marque { display: inline-flex; align-items: center; gap: var(--espace-2); min-height: 44px; text-decoration: none; color: var(--encre); }
.marque-icone { width: 34px; height: 34px; }
.marque-nom { font-family: var(--police-titre); font-size: 1.5rem; font-weight: 700; }
.nav-principale, .entete-outils { display: flex; align-items: center; gap: var(--espace-1) var(--espace-4); }
.nav-principale a, .entete-outils a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; color: var(--texte); text-decoration: none; font-weight: 500; box-shadow: inset 0 -2px 0 transparent; }
.nav-principale a[aria-current="page"], .nav-principale a:hover, .entete-outils a[aria-current], .entete-outils a:hover { box-shadow: inset 0 -2px 0 var(--accent); }
.recherche-entete { flex: 1 1 200px; max-width: 320px; margin-inline-start: auto; }
/* Ordinateur : la ligne du haut (sept liens, recherche, compte, langue) tient sur une ligne ; la recherche cède la place */
@media (min-width: 1024px) {
  .entete-ligne { column-gap: var(--espace-4); }
  .nav-principale { column-gap: var(--espace-3); }
  .recherche-entete { flex: 1 1 140px; max-width: 280px; }
}
.recherche-entete input { width: 100%; text-overflow: ellipsis; }
.loupe { display: none !important; }
.loupe svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.entete-outils .langue { font-size: var(--taille-petit); color: var(--texte-2); }
/* Rubriques : une rangée qui défile ; le bord s'estompe pour montrer qu'il y a une suite */
.rubriques-nav { display: flex; gap: var(--espace-2); overflow-x: auto; padding-bottom: var(--espace-3); scrollbar-width: none; -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--gouttiere)), transparent); mask-image: linear-gradient(to right, #000 calc(100% - var(--gouttiere)), transparent); }
[dir="rtl"] .rubriques-nav { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - var(--gouttiere)), transparent); mask-image: linear-gradient(to left, #000 calc(100% - var(--gouttiere)), transparent); }
.rubriques-nav::-webkit-scrollbar, .nav-principale::-webkit-scrollbar { display: none; }
.libelle-court { display: none; }
.rubriques-nav a { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 36px; font-size: var(--taille-petit); text-decoration: none; color: var(--texte); background: var(--fond); border: 1px solid var(--trait); border-radius: var(--r-petit); padding: 0 var(--espace-3); white-space: nowrap; }
.rubriques-nav a[aria-current="page"] { background: var(--accent-fond); border-color: var(--accent-fond); color: var(--accent-texte); }
.rubriques-nav a:hover { border-color: var(--accent); }
/* Ordinateur : les onze rubriques tiennent sur une ligne et la remplissent (aucune cachée à droite). */
@media (min-width: 1024px) { .rubriques-nav { gap: 6px; } .rubriques-nav a { flex: 1 1 auto; padding: 0 6px; } }
@media (max-width: 760px) {
  /* Téléphone : marque et compte en haut, sections sur une rangée, puis la recherche */
  .entete-ligne { gap: 0 var(--espace-4); padding-bottom: var(--espace-2); }
  .marque { order: 1; }
  .entete-outils { order: 2; margin-inline-start: auto; }
  .nav-principale { order: 3; flex: 1 1 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; gap: var(--espace-4); }
  .nav-principale a { font-size: 0.9375rem; }
  .nav-principale .libelle-long { display: none; }
  .nav-principale .libelle-court { display: inline; }
  .recherche-entete { order: 4; max-width: none; flex-basis: 100%; margin-top: var(--espace-1); }
  /* La recherche se cache derrière la loupe : l'en-tête garde deux rangées au lieu de trois */
  .loupe { display: inline-flex !important; justify-content: center; min-width: 44px; }
  .entete:not(.cherche) .recherche-entete { display: none; }
  .rubriques-nav a { min-height: 44px; }
}

/* Formulaires */
input:not([type]), input[type="search"], input[type="email"], input[type="text"], input[type="number"], input[type="url"], input[type="date"], input[type="password"], select, textarea {
  font: inherit; color: var(--texte); background: var(--surface); border: 1px solid var(--trait-fort);
  border-radius: var(--r-petit); padding: var(--espace-2) var(--espace-3); min-height: 44px; max-width: 100%;
}
textarea { width: 100%; min-height: 7rem; resize: vertical; }
input[type="file"] { font: inherit; color: var(--texte); max-width: 100%; min-height: 44px; }
label { font-weight: 500; }
button, .bouton {
  font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: var(--espace-2);
  min-height: 44px; padding: var(--espace-2) var(--espace-4); border-radius: var(--r-petit);
  background: var(--accent-fond); color: var(--accent-texte); border: 1px solid var(--accent-fond); text-decoration: none;
}
button, .bouton { transition: background-color var(--transition), border-color var(--transition), transform var(--transition); }
button:hover:not([disabled], .lien, .secondaire, .danger, .atlas-bouton), .bouton:hover:not(.secondaire, .bouton-apple) { background: var(--accent-survol); border-color: var(--accent-survol); }
button:active:not([disabled], .lien), .bouton:active { transform: translateY(1px); }
button.secondaire:hover, .bouton.secondaire:hover { border-color: var(--encre); }
button.secondaire, .bouton.secondaire { background: transparent; color: var(--encre); border-color: var(--trait-fort); }
button.lien { background: none; border: 0; color: var(--accent); min-height: 0; padding: 0; font-weight: 500; text-decoration: underline; }
button.danger { background: transparent; color: var(--majeur); border-color: var(--majeur); }
.admin-supprimer-lien { color: var(--majeur); font-size: var(--taille-petit); white-space: nowrap; }
/* Formulaire de suppression : une ligne sous le compte, montrée seulement quand on clique « Supprimer » */
.ligne-supprimer { display: none; }
.ligne-supprimer:target { display: table-row; }
.ligne-supprimer td, .admin-comptes .ligne-supprimer td { background: var(--surface); border-inline-start: 3px solid var(--majeur); white-space: normal; }
.admin-supprimer { display: grid; gap: var(--espace-1); max-width: 34rem; }
.admin-supprimer p { margin: 0; white-space: normal; }
.admin-supprimer input:not([type]) { max-width: 22rem; }
button[disabled] { opacity: 0.5; cursor: not-allowed; }
.bouton-apple { background: #000; color: #fff; border-color: #000; }
@media (prefers-color-scheme: dark) { .bouton-apple { background: #fff; color: #000; border-color: #fff; } }
.formulaire { display: grid; gap: var(--espace-3); max-width: 560px; }
.formulaire fieldset { border: 1px solid var(--trait); border-radius: var(--r); padding: var(--espace-3) var(--espace-4); margin: 0; }
.formulaire legend { font-weight: 600; padding: 0 var(--espace-1); }
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--espace-1) var(--espace-4); }
.case { display: flex; gap: var(--espace-2); align-items: flex-start; font-weight: 400; padding: var(--espace-1) 0; }
.case input { margin-top: 0.35em; width: 1.1em; height: 1.1em; accent-color: var(--accent); }
.cases-sous { display: grid; padding-inline-start: var(--espace-5); border-inline-start: 1px solid var(--trait); margin-inline-start: 0.5em; }
.case-sous { font-size: var(--taille-petit); color: var(--texte-2); padding: 0; }
.ligne { display: flex; flex-wrap: wrap; gap: var(--espace-2); align-items: center; }
.ligne input[type="search"] { flex: 1 1 220px; }
.filtres { display: flex; flex-wrap: wrap; gap: var(--espace-3); align-items: flex-end; margin: var(--espace-4) 0; }
.filtres div { display: grid; gap: var(--espace-1); }
.ou { color: var(--texte-2); }

/* Messages */
.message, .erreur { padding: var(--espace-3) var(--espace-4); border-radius: var(--r-petit); max-width: var(--lecture); }
.message { background: var(--message-fond); color: var(--message-texte); }
.erreur { background: var(--erreur-fond); color: var(--majeur); }

/* Intro */
.intro { padding-top: var(--espace-5); }
.intro.etroit { max-width: 640px; }
.chapeau { font-size: 1.125rem; color: var(--texte-2); text-wrap: pretty; }

/* Cartes de nouvelles */
.cartes { display: grid; gap: var(--espace-2); grid-template-columns: minmax(0, 1fr); margin-top: var(--espace-4); }
.carte { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); padding: var(--espace-3) var(--espace-4); box-shadow: var(--ombre); display: flex; flex-direction: column; gap: var(--espace-1); }
/* Toute la carte mène à la fiche (le lien du titre s'étend) ; rubriques et autres liens restent cliquables */
.carte { position: relative; transition: border-color var(--transition), box-shadow var(--transition); }
.carte:hover { border-block-color: var(--trait-fort); border-inline-end-color: var(--trait-fort); box-shadow: var(--ombre-forte); }
.carte-titre a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.carte-meta a { position: relative; z-index: 1; }
.carte:hover .carte-titre a { text-decoration: underline; }
.carte.imp-3 { border-inline-start: 4px solid var(--signal); }
.carte.imp-2 { border-inline-start: 4px solid var(--accent); }
.carte-titre { font-size: 1rem; line-height: 1.3; margin: 0; text-wrap: pretty; }
.carte-titre a { color: var(--encre); text-decoration: none; }
.carte-titre a:hover { text-decoration: underline; }
.carte-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--espace-1) var(--espace-2); font-size: var(--taille-petit); color: var(--texte-2); margin: 0; }
.carte-origine { min-width: 0; }
/* Résumé : un cran plus petit, trois lignes au plus (le texte complet reste dans la fiche) */
.carte-resume { margin: 0; font-size: 0.9375rem; line-height: 1.45; color: var(--texte-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
/* Téléphone : le résumé suit le titre ; rubriques et source ferment la carte */
@media (max-width: 759px) { .carte-meta { order: 1; } :root { --vignette-l: 4rem; --vignette-h: 3rem; } }
/* Une fiche par ligne : sur un écran large, titre et résumé à gauche, rubriques et source à droite */
@media (min-width: 760px) {
  .carte { display: grid; grid-template-columns: minmax(0, 1fr) 14rem; grid-template-rows: auto 1fr; grid-template-areas: "titre meta" "resume meta"; gap: var(--espace-1) var(--espace-5); align-items: start; }
  .carte-titre { grid-area: titre; }
  .carte-meta { grid-area: meta; align-content: flex-start; }
  .carte-origine { flex-basis: 100%; }
  .carte-resume { grid-area: resume; }
}
/* Vignettes : l'image de la source (servie par Faro) ou l'illustration de la rubrique, décorative.
   Ordinateur : une colonne étroite au début de la carte ; téléphone : une petite image à côté du titre. */
.carte-vignette { grid-area: vignette; display: grid; place-items: center; inline-size: var(--vignette-l); block-size: var(--vignette-h); overflow: hidden; border-radius: var(--r-petit); background: var(--important-fond); }
.carte-vignette img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.illu::before { content: ""; inline-size: 50%; block-size: 60%; background: var(--accent); -webkit-mask: var(--illu) center / contain no-repeat; mask: var(--illu) center / contain no-repeat; opacity: 0.85; }
.illu-cyber { --illu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.3-7 10-4-1.7-7-5.5-7-10V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.illu-vuln { --illu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 20h20z'/%3E%3Cpath d='M12 9v5M12 17v.5'/%3E%3C/svg%3E"); }
.illu-cloud { --illu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 18h10a4 4 0 0 0 .5-8A6 6 0 0 0 6 11.5 3.3 3.3 0 0 0 7 18z'/%3E%3C/svg%3E"); }
.illu-ia { --illu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='6' width='12' height='12' rx='2'/%3E%3Cpath d='M9 2v4M15 2v4M9 18v4M15 18v4M2 9h4M2 15h4M18 9h4M18 15h4M10 10h4v4h-4z'/%3E%3C/svg%3E"); }
.illu-regl { --illu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M6 21h12M4 7h16M7 7l-3 7a3 3 0 0 0 6 0zM17 7l-3 7a3 3 0 0 0 6 0z'/%3E%3C/svg%3E"); }
.illu-fourn { --illu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V8l7-5 7 5v13M9 21v-6h6v6'/%3E%3C/svg%3E"); }
.illu-gouv { --illu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3C/svg%3E"); }
.illu-infra { --illu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='7' rx='1'/%3E%3Crect x='3' y='13' width='18' height='7' rx='1'/%3E%3Cpath d='M7 7.5h.01M7 16.5h.01'/%3E%3C/svg%3E"); }
.illu-dev { --illu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7l-5 5 5 5M16 7l5 5-5 5M14 4l-4 16'/%3E%3C/svg%3E"); }
.illu-talents { --illu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2 20c0-3.9 3.1-6 7-6s7 2.1 7 6M16 4.5a3.5 3.5 0 0 1 0 7M18 14c2.4.6 4 2.6 4 6'/%3E%3C/svg%3E"); }
.illu-public { --illu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M4 10h16L12 4zM6 10v8M10 10v8M14 10v8M18 10v8'/%3E%3C/svg%3E"); }
.illu-defaut { --illu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='1'/%3E%3Cpath d='M7 9h10M7 13h10M7 17h6'/%3E%3C/svg%3E"); }
@media (max-width: 759px) {
  .carte { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "titre vignette" "resume resume" "meta meta"; column-gap: var(--espace-3); align-items: start; }
  .carte-titre { grid-area: titre; }
  .carte-resume { grid-area: resume; }
  .carte-meta { grid-area: meta; }
}
@media (min-width: 760px) {
  .carte { grid-template-columns: var(--vignette-l) minmax(0, 1fr) 14rem; grid-template-areas: "vignette titre meta" "vignette resume meta"; column-gap: var(--espace-4); }
}
.fiche-vignette { margin: var(--espace-4) 0 var(--espace-3); max-inline-size: var(--vignette-fiche); }
.fiche-vignette img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); background: var(--important-fond); }
.fiche-vignette figcaption { margin-top: var(--espace-1); font-size: var(--taille-petit); color: var(--texte-2); }

/* Tableaux de bord (La semaine TI, Mon tableau de bord) : tuiles, grille de blocs, graphiques SVG */
.tdb-tuiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--espace-2); margin-top: var(--espace-4); }
@media (min-width: 640px) { .tdb-tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--espace-3); } }
@media (max-width: 639px) { .tdb-tuile { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: var(--espace-3); } .tdb-tuile-ecart { grid-column: 1 / -1; } }
.tdb-tuile { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); padding: var(--espace-3) var(--espace-4); box-shadow: var(--ombre); }
.tdb-tuile p { margin: 0; }
.tdb-tuile-libelle { font-size: var(--taille-petit); color: var(--texte-2); font-weight: 500; }
.tdb-tuile-valeur { font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); font-weight: 700; color: var(--encre); line-height: 1.2; font-variant-numeric: tabular-nums; }
.tdb-tuile-valeur a { color: inherit; text-decoration-thickness: 1px; }
.tdb-tuile-ecart { font-size: var(--taille-petit); font-weight: 600; color: var(--texte); }
.tdb-tuile-ecart .discret { font-weight: 400; }
.tdb-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--espace-4); margin-top: var(--espace-4); }
@media (min-width: 760px) { .tdb-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tdb-large { grid-column: 1 / -1; } }
.tdb-bloc { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); padding: var(--espace-4); box-shadow: var(--ombre); min-inline-size: 0; }
.tdb-bloc h2 { margin: 0 0 var(--espace-3); font-size: 1.15rem; }
.tdb-bloc .petit { margin-bottom: 0; }
.tdb-bloc .vide { padding: var(--espace-2) 0; }
.tdb-bloc .cartes { margin-top: var(--espace-2); }
.veille-decision { background: var(--accent-fond); color: var(--accent-texte); border-radius: var(--r); padding: var(--espace-4) var(--espace-5); margin: var(--espace-4) 0; }
.veille-decision h2 { margin: 0 0 var(--espace-2); font-size: 1.15rem; color: inherit; }
.veille-decision p { margin: 0 0 var(--espace-2); max-width: var(--lecture); }
.veille-decision a { color: inherit; }
.veille-bloc { margin: var(--espace-5) 0; }
.veille-bloc h2 { font-size: 1.15rem; margin: 0 0 var(--espace-2); }
.veille-points { margin: 0; padding-inline-start: 1.2em; display: grid; gap: var(--espace-3); }
.veille-points p { margin: 0; max-width: var(--lecture); }
.veille-points .etiquette { display: inline-block; margin-bottom: var(--espace-1); }
.veille-appuis { margin-top: var(--espace-1) !important; }
.veille-radar { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--espace-3); }
.veille-radar > div { background: var(--surface); border: 1px solid var(--trait); border-top-width: 4px; border-radius: var(--r); padding: var(--espace-3); }
.veille-radar h3 { margin: 0 0 var(--espace-2); font-size: 1rem; }
.veille-radar ul { margin: 0; padding-inline-start: 1.1em; display: grid; gap: var(--espace-2); }
.veille-radar p { margin: var(--espace-1) 0 0; }
.radar-adopter { border-top-color: var(--message-texte) !important; }
.radar-evaluer { border-top-color: var(--accent) !important; }
.radar-surveiller { border-top-color: var(--trait-fort) !important; }
.radar-eviter { border-top-color: var(--majeur) !important; }
.veille-sources { margin: var(--espace-5) 0 var(--espace-3); }
.veille-sources ol { padding-inline-start: 1.4em; }
.grille-secteurs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--espace-3); margin: var(--espace-4) 0; }
.grille-secteurs li { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); padding: var(--espace-3) var(--espace-4); }
.grille-secteurs h2 { font-size: 1.05rem; margin: 0 0 var(--espace-1); }
.grille-secteurs p { margin: 0 0 var(--espace-1); }
.tdb-sommaire h3 { font-size: 1rem; margin: var(--espace-4) 0 var(--espace-2); }
.sommaire-points { margin: 0; padding-inline-start: 1.2em; display: grid; gap: var(--espace-2); }
.sommaire-points p { margin: 0; max-width: var(--lecture); }
.sommaire-points .petit { margin-top: var(--espace-1); }
.graphe { margin: 0; }
.graphe-titre { font-size: var(--taille-petit); color: var(--texte-2); margin-bottom: var(--espace-2); }
.graphe-svg { display: block; overflow: visible; font-family: var(--police-texte); font-size: var(--taille-petit); }
.graphe-libelle { fill: var(--texte); font-weight: 500; }
.graphe-valeur, .graphe-jour { fill: var(--texte-2); font-variant-numeric: tabular-nums; }
.graphe-jour { font-size: 0.75rem; }
.graphe-fond { fill: var(--important-fond); }
.graphe-barre { fill: var(--accent); }
.graphe-precedente { fill: var(--trait-fort); opacity: 0.55; }
.graphe-avant { stroke: var(--encre); stroke-width: 2; }
.graphe-axe { stroke: var(--trait); stroke-width: 1; }
.graphe-legende { display: flex; flex-wrap: wrap; align-items: center; gap: var(--espace-1) var(--espace-2); margin: var(--espace-2) 0 0; font-size: 0.8125rem; color: var(--texte-2); }
.graphe-legende span { display: inline-block; inline-size: 0.9em; block-size: 0.6em; border-radius: 2px; }
.graphe-legende span + span, .graphe-legende span:not(:first-child) { margin-inline-start: var(--espace-2); }
.legende-barre { background: var(--accent); }
.legende-precedente { background: var(--trait-fort); opacity: 0.55; }
.legende-avant { inline-size: 2px !important; block-size: 1em !important; background: var(--encre); }
.graphe-donnees { margin-top: var(--espace-2); font-size: var(--taille-petit); }
.graphe-donnees summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--accent); font-weight: 500; }
.graphe-donnees table { inline-size: 100%; border-collapse: collapse; }
.graphe-donnees th, .graphe-donnees td { text-align: start; padding: var(--espace-1) var(--espace-2); border-bottom: 1px solid var(--trait); font-weight: 400; }
.graphe-donnees thead th { font-weight: 600; color: var(--texte-2); }
.graphe-donnees .nombre { text-align: end; font-variant-numeric: tabular-nums; }
.tdb-echeances, .tdb-cves, .tdb-suivis { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--espace-2); }
.tdb-echeances li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--espace-2); font-size: 0.9375rem; }
.tdb-echeances time { color: var(--texte-2); font-size: var(--taille-petit); font-variant-numeric: tabular-nums; padding-top: 0.1em; }
.tdb-cves li { display: grid; gap: 0; font-size: 0.9375rem; line-height: 1.4; }
.tdb-suivis { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--espace-3) var(--espace-5); }
.tdb-suivis > li { border-top: 1px solid var(--trait); padding-top: var(--espace-2); }
.tdb-suivi-nom { margin: 0; font-weight: 600; }
.tdb-suivis ul { margin: var(--espace-1) 0 0; padding-inline-start: 1.1em; font-size: var(--taille-petit); display: grid; gap: var(--espace-1); }
.tdb-verrou { border: 1px dashed var(--trait-fort); border-radius: var(--r); padding: var(--espace-3) var(--espace-4); color: var(--texte-2); background: repeating-linear-gradient(135deg, transparent 0 10px, var(--important-fond) 10px 11px); }
.tdb-verrou p { margin: 0; }
@media (max-width: 759px) { .tdb-echeances li { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* Filtres des listes (la une, rubriques, Mon fil) : une ligne compacte sur un écran large ; sur
   téléphone, repliés derrière « Filtres (n) » (case à cocher sans nom : marche sans JavaScript). */
.filtres-liste { margin: var(--espace-4) 0 0; font-size: var(--taille-petit); }
.filtres-liste fieldset { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.filtres-bouton { display: none; }
.filtres-corps { display: flex; flex-wrap: wrap; align-items: center; gap: var(--espace-2); }
.filtres-liste .filtres-importance { display: inline-flex; border: 1px solid var(--trait-fort); border-radius: var(--r-petit); overflow: hidden; }
.filtres-importance label { position: relative; display: inline-flex; font-weight: 500; }
.filtres-importance input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.filtres-importance span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--espace-3); color: var(--texte); }
.filtres-importance label + label span { border-inline-start: 1px solid var(--trait-fort); }
.filtres-importance input:checked + span { background: var(--accent-fond); color: var(--accent-texte); }
.filtres-importance input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: -3px; }
.filtres-champ { display: inline-flex; align-items: center; gap: var(--espace-2); }
.filtres-champ label { color: var(--texte-2); }
.filtres-champ select { padding-block: var(--espace-1); max-inline-size: 13rem; }
.filtres-canada { display: inline-flex; align-items: center; gap: var(--espace-2); min-height: 44px; padding-inline: var(--espace-1); font-weight: 500; cursor: pointer; }
.filtres-canada input, .filtres-rubriques input { inline-size: 1.1em; block-size: 1.1em; margin: 0; accent-color: var(--accent); }
.filtres-rubriques { position: relative; }
.filtres-rubriques summary { display: inline-flex; align-items: center; gap: var(--espace-2); min-height: 44px; padding: 0 var(--espace-3); border: 1px solid var(--trait-fort); border-radius: var(--r-petit); background: var(--surface); cursor: pointer; font-weight: 500; list-style: none; }
.filtres-rubriques summary::-webkit-details-marker { display: none; }
.filtres-rubriques summary::after { content: ""; inline-size: 0.45em; block-size: 0.45em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-25%) rotate(45deg); }
.filtres-rubriques[open] summary::after { transform: translateY(25%) rotate(-135deg); }
.filtres-rubriques[data-choisies] summary { border-color: var(--accent); color: var(--accent); }
.filtres-rubriques fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 0 var(--espace-4); padding: var(--espace-2) var(--espace-3); }
.filtres-rubriques fieldset label { display: flex; align-items: center; gap: var(--espace-2); min-height: 44px; font-weight: 400; cursor: pointer; white-space: nowrap; }
.filtres-actions { display: inline-flex; align-items: center; gap: var(--espace-3); }
.filtres-actions button { min-height: 44px; padding-block: 0; font-size: var(--taille-petit); }
.filtres-bilan { margin: var(--espace-4) 0 0; font-weight: 600; color: var(--encre); }
/* Barre de filtres compacte, à la taille des pastilles de sous-thème (32 px à la souris, 44 px au doigt) */
.filtres-importance span, .filtres-canada, .filtres-rubriques summary, .filtres-rubriques fieldset label, .filtres-actions button, .filtres-bouton { min-height: 32px; }
.filtres-liste select { min-height: 32px; padding-block: 0; }
.filtres-importance span, .filtres-rubriques summary { padding-inline: var(--espace-3); }
@media (min-width: 760px) {
  /* Écran large : le premier choix de chaque liste dit ce qu'elle filtre ; l'étiquette reste pour les lecteurs d'écran */
  .filtres-champ label { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .filtres-rubriques fieldset { position: absolute; inset-block-start: calc(100% + var(--espace-1)); inset-inline-start: 0; z-index: 5; inline-size: max-content; grid-template-columns: repeat(2, max-content); background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); box-shadow: var(--ombre-forte); }
}
@media (max-width: 759px) {
  .filtres-bouton { display: inline-flex; align-items: center; gap: var(--espace-2); min-height: 44px; padding: 0 var(--espace-4); border: 1px solid var(--trait-fort); border-radius: var(--r-petit); background: var(--surface); color: var(--encre); font-weight: 600; cursor: pointer; }
  .filtres-bouton svg { inline-size: 1.1em; block-size: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .filtres-bascule:focus-visible + .filtres-bouton { outline: 3px solid var(--focus); outline-offset: 2px; }
  .filtres-bascule:checked + .filtres-bouton { border-color: var(--accent); }
  .filtres-corps { display: none; flex-direction: column; align-items: stretch; margin-top: var(--espace-3); padding: var(--espace-3) var(--espace-4); background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); }
  .filtres-bascule:checked ~ .filtres-corps { display: flex; }
  .filtres-importance { align-self: flex-start; }
  .filtres-champ { justify-content: space-between; }
  .filtres-champ select { flex: 1; max-inline-size: 60%; }
  .filtres-rubriques summary { inline-size: 100%; justify-content: space-between; }
  .filtres-rubriques fieldset { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 0; }
  .filtres-actions { justify-content: space-between; }
}
.etiquette { position: relative; font-size: 0.8rem; text-decoration: none; color: var(--texte); background: var(--important-fond); border-radius: var(--r-petit); padding: 0.1rem var(--espace-2); }
.badge { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--texte); background: var(--important-fond); border-radius: var(--r-petit); padding: 0.1rem var(--espace-2); }
.badge-majeur { color: var(--majeur); background: var(--majeur-fond); }
.vide { color: var(--texte-2); padding: var(--espace-5) 0; }
.etat-vide { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); padding: var(--espace-4) var(--espace-5); margin-top: var(--espace-5); max-width: var(--lecture); }
.etat-vide h2 { margin-top: 0; font-size: 1.2rem; }
.etat-vide-liens { display: flex; flex-wrap: wrap; align-items: center; gap: var(--espace-1) var(--espace-4); color: var(--texte-2); }
.resultats-titre { font-size: 1.1rem; font-weight: 500; color: var(--texte-2); margin-top: var(--espace-5); }
.recherche-page { display: grid; gap: var(--espace-2); margin-top: var(--espace-4); max-width: 760px; }
.recherche-page .discret { margin: 0; }
/* Raccourcis dans une longue page (mois du calendrier, décennies de l'histoire) */
.sauts { display: flex; gap: var(--espace-2); overflow-x: auto; scrollbar-width: none; margin: var(--espace-4) 0 0; padding-block: 2px; }
.sauts::-webkit-scrollbar { display: none; }
.sauts a { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--espace-3); white-space: nowrap; font-size: var(--taille-petit); font-variant-numeric: tabular-nums; text-decoration: none; color: var(--texte); background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-petit); }
.sauts a:hover { border-color: var(--accent); }
.titre-mois::first-letter { text-transform: uppercase; }
.pagination { margin-top: var(--espace-5); }
.encart { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); padding: var(--espace-4) var(--espace-5); margin-top: var(--espace-6); }
.encart h2 { margin-top: 0; }

/* La une : manchette (date, fraîcheur, rôles), invitation au compte, première nouvelle en évidence */
.manchette { display: grid; gap: var(--espace-4) var(--espace-6); align-items: center; padding-top: var(--espace-4); }
.manchette h1 { font-size: clamp(1.9rem, 1.4rem + 2.6vw, 3rem); letter-spacing: -0.02em; line-height: 1.1; }
.manchette .chapeau { margin-bottom: 0; }
.surtitre { display: flex; flex-wrap: wrap; align-items: center; gap: var(--espace-1) var(--espace-4); margin: 0 0 var(--espace-2); font-size: var(--taille-petit); color: var(--texte-2); }
@media (max-width: 420px) { .surtitre { column-gap: var(--espace-3); font-size: 0.8125rem; } }
.surtitre-lien { font-weight: 600; }
.surtitre time { font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--encre); }
.surtitre-vif { display: inline-flex; align-items: center; gap: var(--espace-2); }
.surtitre-vif::before, .depuis-visite::before, .pastille-nouveau::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.surtitre-vif::before { animation: pouls 2.4s ease-in-out infinite; }
@keyframes pouls { 50% { opacity: 0.35; } }
.depuis-visite { display: flex; align-items: center; gap: var(--espace-2); margin: var(--espace-3) 0 0; font-weight: 600; color: var(--encre); }
.depuis-visite[hidden] { display: none; }
.pastille-nouveau { display: inline-flex; align-items: center; gap: var(--espace-1); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--majeur); }
.adhesion { position: relative; overflow: hidden; --focus: var(--encre-texte); background: var(--encre-fond); color: var(--encre-texte); border: 1px solid var(--encre-trait); border-radius: var(--r); padding: var(--espace-4) var(--espace-5); box-shadow: var(--ombre); }
/* Le faisceau du phare, en filigrane */
.adhesion::before, .heros::before { content: ""; position: absolute; inset-block-start: -40%; inset-inline-end: -10%; width: 80%; aspect-ratio: 1; pointer-events: none; background: conic-gradient(from 200deg at 100% 0%, transparent 0deg, var(--encre-lueur) 14deg, transparent 34deg, transparent 50deg, var(--encre-lueur) 62deg, transparent 80deg); }
.adhesion > *, .heros > * { position: relative; }
.adhesion h2 { margin: 0 0 var(--espace-1); font-size: 1.25rem; color: inherit; }
.adhesion p { margin: 0 0 var(--espace-2); color: var(--encre-texte-2); }
.adhesion .actions { margin: var(--espace-3) 0 0; }
.adhesion a:not(.bouton), .heros a:not(.bouton) { color: var(--encre-texte); }
.adhesion .bouton:not(.secondaire), .heros .bouton:not(.secondaire) { background: var(--encre-texte); color: var(--encre-fond); border-color: var(--encre-texte); }
.adhesion .bouton.secondaire, .heros .bouton.secondaire { color: var(--encre-texte); border-color: var(--encre-texte-2); }
.adhesion .bouton.secondaire:hover, .heros .bouton.secondaire:hover { border-color: var(--encre-texte); }
.adhesion .bouton:not(.secondaire):hover, .heros .bouton:not(.secondaire):hover { background: var(--encre-survol); border-color: var(--encre-survol); }
.coches { list-style: none; padding: 0; margin: var(--espace-2) 0; display: grid; gap: var(--espace-1); }
.coches li { position: relative; padding-inline-start: 1.6em; }
.coches li::before { content: ""; position: absolute; inset-inline-start: 0.3em; top: 0.3em; width: 0.4em; height: 0.75em; border: solid var(--signal); border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* Rôles de la une : quatre puces et « Tous les rôles », sur téléphone aussi */
/* Quatre rôles d'emblée, les autres sous « Tous les rôles » (details : marche sans JavaScript) */
/* Vue par rôle sans Pro : après l'aperçu, quelques titres estompés (ni liens ni texte lu) */
.apercu-suite { margin-top: var(--espace-2); }
.apercu-titres { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--espace-2); user-select: none; -webkit-user-select: none; pointer-events: none; }
.apercu-titres li { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); padding: var(--espace-3) var(--espace-4); font-weight: 600; line-height: 1.3; color: var(--texte-2); filter: blur(var(--flou-apercu)); opacity: 0.8; }
.apercu-titres li:nth-child(2) { opacity: 0.6; }
.apercu-titres li:nth-child(3) { opacity: 0.4; }
.apercu-titres li:nth-child(4) { opacity: 0.25; }
.apercu-suite + .encart { margin-top: var(--espace-4); }
/* Invitation compacte dans les listes (rubriques, recherche) : même encre que celle de la une */
.adhesion-liste { padding: var(--espace-3) var(--espace-4); box-shadow: none; }
.adhesion-liste h2 { font-size: 1.0625rem; }
.adhesion-liste p { margin: 0; }
.adhesion-liste .actions { margin-top: var(--espace-3); }
@media (min-width: 760px) {
  .adhesion-liste { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--espace-5); align-items: center; }
  .adhesion-liste > h2, .adhesion-liste > p:not(.actions) { grid-column: 1; }
  .adhesion-liste .actions { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
}
@media (min-width: 900px) {
  .manchette-visiteur { grid-template-columns: minmax(0, 1fr) 25rem; }
  .adhesion-manchette > p:not(.actions) { display: none; }
  .adhesion-manchette { font-size: 0.9375rem; }
  .adhesion-fil { display: none; }
}
@media (max-width: 899px) { .adhesion-manchette { display: none; } }

/* Fiche */
.fiche-detail { max-width: 760px; padding-top: var(--espace-4); }
.fiche-detail h1 { margin: var(--espace-2) 0 var(--espace-3); }
/* Fil d'Ariane : en haut du contenu ; la page courante, sans lien, se coupe sur une ligne (le titre suit) */
.fil-ariane { font-size: var(--taille-petit); color: var(--texte-2); padding-top: var(--espace-4); }
.fil-ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--espace-2); }
.fil-ariane li { display: flex; align-items: center; gap: var(--espace-2); min-width: 0; }
.fil-ariane li:last-child { flex: 1 1 6rem; }
.fil-ariane li + li::before { content: "/"; content: "/" / ""; color: var(--texte-2); }
.fil-ariane a { white-space: nowrap; }
.fil-ariane [aria-current] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fil-ariane + .intro, .fil-ariane + .fiche-detail { padding-top: var(--espace-2); }
.resume { font-size: 1.15rem; }
.titre-original { border-inline-start: 3px solid var(--trait-fort); padding-inline-start: var(--espace-3); }
.sources-fiche { padding-inline-start: var(--espace-5); }
.sources-fiche li { margin-bottom: var(--espace-2); }
.entites { display: grid; grid-template-columns: max-content 1fr; gap: var(--espace-1) var(--espace-4); margin: var(--espace-5) 0; }
.entites dt { font-weight: 600; }
.entites dd { margin: 0; }
.droits { margin-top: var(--espace-6); }
.admin-fiche { margin-top: var(--espace-5); border: 1px dashed var(--trait-fort); border-radius: var(--r); padding: var(--espace-3); }
.admin-fiche form { display: flex; flex-wrap: wrap; gap: var(--espace-3); align-items: center; margin-top: var(--espace-3); }

/* Onglets */
.onglets { display: flex; flex-wrap: wrap; gap: var(--espace-2); margin: var(--espace-4) 0; }
.onglets a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; color: var(--texte); border: 1px solid var(--trait-fort); border-radius: var(--r-petit); padding: 0 var(--espace-4); }
.onglets a:hover { border-color: var(--encre); }
.onglets a[aria-current="page"] { background: var(--accent-fond); color: var(--accent-texte); border-color: var(--accent-fond); }
.roles-une-titre { font-size: var(--taille-petit); color: var(--texte-2); margin: var(--espace-4) 0 0; }
.roles-une { margin-top: var(--espace-2); }

/* Histoire */
.decennie { scroll-margin-top: var(--espace-2); }
.decennie h2 { position: sticky; top: 0; background: var(--fond); padding: var(--espace-2) 0; z-index: 1; }
.ligne-temps { list-style: none; padding: 0; margin: 0; border-inline-start: 2px solid var(--trait-fort); }
.evenement { display: grid; grid-template-columns: 9rem 1fr; gap: var(--espace-1) var(--espace-4); padding: var(--espace-3) 0 var(--espace-3) var(--espace-4); position: relative; }
.evenement::before { content: ""; position: absolute; left: -7px; top: 1.15rem; width: 12px; height: 12px; border-radius: 50%; background: var(--trait-fort); }
.evenement.imp-3::before { background: var(--point); width: 14px; height: 14px; left: -8px; }
.evenement.imp-2::before { background: var(--encre); }
.evenement time { font-variant-numeric: tabular-nums; color: var(--texte-2); font-size: var(--taille-petit); padding-top: 0.2rem; }
.evenement h3 { font-size: 1.05rem; }
.evenement h3 a { color: var(--encre); text-decoration: none; }
.evenement h3 a:hover { text-decoration: underline; }
.evenement p { margin: var(--espace-1) 0 0; }
@media (max-width: 560px) { .evenement { grid-template-columns: 1fr; } }
.precedent-suivant { display: flex; justify-content: space-between; gap: var(--espace-4); margin-top: var(--espace-6); }
/* Ce jour-là */
.jour-evenements { display: grid; gap: var(--espace-4); max-width: var(--lecture); }
.jour-evenement { border-inline-start: 4px solid var(--trait-fort); padding-inline-start: var(--espace-4); }
.jour-evenement.imp-3 { border-inline-start-color: var(--signal); }
.jour-evenement.imp-2 { border-inline-start-color: var(--accent); }
.jour-evenement h3 a { color: var(--encre); text-decoration: none; }
.jour-evenement h3 a:hover { text-decoration: underline; }
.jour-evenement p { margin: var(--espace-1) 0 0; }

/* Pro */
.comparaison { display: grid; gap: var(--espace-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin-top: var(--espace-5); align-items: start; }
.offre { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); padding: var(--espace-5); }
.offre h2 { margin-top: 0; }
.offre-pro { border: 2px solid var(--accent); }
.offre ul { padding-inline-start: var(--espace-5); }
.plans { display: grid; gap: var(--espace-3); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.plan { border: 1px solid var(--trait); border-radius: var(--r-petit); padding: var(--espace-4); }
.plan h3 { text-transform: capitalize; }
.prix { font-size: 1.6rem; font-weight: 700; color: var(--encre); margin: var(--espace-2) 0; }
.prix .discret { font-size: var(--taille-petit); font-weight: 400; }

/* Compte */
.bloc { border-top: 1px solid var(--trait); margin-top: var(--espace-6); }
.liste-actions { list-style: none; padding: 0; max-width: 560px; }
.liste-actions li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--espace-2) var(--espace-3); padding: var(--espace-2) 0; border-bottom: 1px solid var(--trait); }
.liste-actions-liens { display: flex; flex-wrap: wrap; gap: var(--espace-2); }
.liste-actions-liens .bouton { font-weight: 500; font-size: var(--taille-petit); }
form.danger { margin-top: var(--espace-5); }

/* Textes longs */
.texte-long { max-width: var(--lecture); padding-top: var(--espace-5); }
.texte-long li { margin-bottom: var(--espace-2); }
.liste-sources li { margin-bottom: var(--espace-1); }

/* Admin */
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--espace-3); margin-top: var(--espace-4); }
.tuile { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); padding: var(--espace-3) var(--espace-4); }
.tuile-valeur { font-size: 1.6rem; font-weight: 700; margin: 0; color: var(--encre); font-variant-numeric: tabular-nums; }
.tuile-nom { margin: 0; color: var(--texte-2); font-size: var(--taille-petit); }
.actions { display: flex; flex-wrap: wrap; gap: var(--espace-3); }
.tableau-defilant { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: var(--taille-petit); }
th, td { text-align: start; padding: var(--espace-2); border-bottom: 1px solid var(--trait); vertical-align: top; }
tr.inactive { opacity: 0.6; }
meter { width: 100%; max-width: 560px; height: 1.2rem; }
pre { white-space: pre-wrap; font-size: var(--taille-petit); background: var(--surface); padding: var(--espace-3); border-radius: var(--r-petit); }
.liste-admin li { margin-bottom: var(--espace-1); }
/* Admin : résumé, sommaire collant, thèmes, liste des comptes */
.tuiles-resume { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.tuile-lien { display: block; text-decoration: none; color: inherit; transition: border-color var(--transition); }
.tuile-lien:hover { border-color: var(--trait-fort); }
.tuile-detail { margin: var(--espace-1) 0 0; font-size: var(--taille-petit); color: var(--texte-2); }
.tuile-alerte { border-color: var(--majeur); background: var(--majeur-fond); }
.tuile-alerte .tuile-valeur { color: var(--majeur); }
.tuile-alerte .tuile-nom, .tuile-alerte .tuile-detail { color: var(--texte); }
.admin-sommaire { position: sticky; top: 0; z-index: 1; background: var(--fond); padding: var(--espace-2) 0; margin-bottom: 0; border-bottom: 1px solid var(--trait); }
.admin-groupe { scroll-margin-top: calc(var(--espace-6) + var(--espace-5)); }
.admin-section { margin-top: var(--espace-5); }
.admin-section[id] { scroll-margin-top: calc(var(--espace-6) + var(--espace-5)); }
.admin-section h3 { margin-bottom: var(--espace-2); }
.admin-section details > summary { cursor: pointer; margin: var(--espace-2) 0; }
.admin-recherche { margin: var(--espace-3) 0; }
.admin-comptes th[scope="row"] { font-weight: 400; min-width: 16ch; overflow-wrap: anywhere; }
.admin-comptes td { white-space: nowrap; }
.statut { display: inline-block; font-size: 0.8rem; white-space: nowrap; border-radius: var(--r-petit); padding: 0 var(--espace-2); background: var(--important-fond); color: var(--texte); }
.statut-pro, .statut-equipe, .statut-free { background: var(--message-fond); color: var(--message-texte); }
.statut-retard { background: var(--majeur-fond); color: var(--majeur); }

/* Pied */
.pied { border-top: 1px solid var(--trait); background: var(--surface); padding: var(--espace-5) 0 calc(var(--espace-5) + env(safe-area-inset-bottom)); font-size: var(--taille-petit); }
.pied-grille { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--espace-3); }
.pied nav { display: flex; flex-wrap: wrap; gap: var(--espace-2) var(--espace-4); }
.pied nav a { display: inline-flex; align-items: center; }
.pied a { color: var(--texte-2); }
.pied-marque { margin: 0; color: var(--texte-2); }

/* Passage d'une page à l'autre en fondu (navigateurs qui le permettent) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.18s; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print { .entete, .pied, .fil-ariane, .encart, .admin-fiche { display: none; } body { background: #fff; color: #000; } }

/* Page /etat */
.etat-liste { list-style: none; padding: 0; margin: 0 auto var(--espace-5); max-width: var(--lecture); display: grid; gap: var(--espace-3); }
.etat-liste li { display: flex; gap: var(--espace-4); align-items: flex-start; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); padding: var(--espace-4); }
.etat-liste h2 { font-size: 1rem; margin: 0 0 var(--espace-1); }
.etat-liste p { margin: 0; color: var(--texte-2); }
.etat-pastille { flex: none; min-width: 6.5rem; text-align: center; font-size: var(--taille-petit); font-weight: 700; border-radius: var(--r-petit); padding: var(--espace-1) var(--espace-2); background: var(--message-fond); color: var(--message-texte); }
.etat-degrade .etat-pastille { background: transparent; color: var(--texte); box-shadow: inset 0 0 0 2px var(--signal); }
.etat-arret .etat-pastille { background: var(--majeur-fond); color: var(--majeur); }

/* Bêta : signalement, commentaires et listes de l'admin */
.signalement { margin-top: var(--espace-5); border-top: 1px solid var(--trait); padding-top: var(--espace-3); }
.signalement summary { cursor: pointer; color: var(--texte-2); font-size: var(--taille-petit); }
.liste-admin { list-style: none; padding: 0; display: grid; gap: var(--espace-3); }
.liste-admin li { border: 1px solid var(--trait); border-radius: var(--r); padding: var(--espace-3); background: var(--surface); }
.liste-admin li.traite { opacity: .6; }
.liste-admin p { margin: 0 0 var(--espace-1); }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Fournisseurs */
.grille-fournisseurs { list-style: none; padding: 0; display: grid; gap: var(--espace-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.grille-fournisseurs li { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); padding: var(--espace-4); }
.grille-fournisseurs h2 { font-size: 1.1rem; margin: 0 0 var(--espace-1); }
.grille-fournisseurs p { margin: 0 0 var(--espace-2); }
.grille-fournisseurs .etiquette { display: inline-block; margin: 0 var(--espace-1) var(--espace-1) 0; }

/* Infolettre (pied de page et page) */
.infolettre-form { flex: 1 1 100%; max-width: 34rem; }
.infolettre-form label { display: block; font-weight: 600; margin-bottom: var(--espace-2); }
.infolettre-form .ligne { display: flex; gap: var(--espace-2); flex-wrap: wrap; }
.infolettre-form input[type=email] { flex: 1 1 10rem; min-width: 0; }
.infolettre-form .discret { margin: var(--espace-2) 0 0; }
.liste-avantages { padding-inline-start: 1.2rem; margin: 0 0 var(--espace-4); }
.liste-avantages li { margin-bottom: var(--espace-2); }
.copiable { margin: var(--espace-3) 0; }
.copiable label { display: block; font-weight: 600; margin-bottom: var(--espace-1); }
.copiable textarea { width: 100%; font-size: var(--taille-petit); }

/* Page de vente */
.heros { position: relative; overflow: hidden; --focus: var(--encre-texte); display: grid; gap: var(--espace-5) var(--espace-6); align-items: center; margin-top: var(--espace-5); padding: var(--espace-5) var(--espace-4); background: var(--encre-fond); color: var(--encre-texte); border: 1px solid var(--encre-trait); border-radius: var(--r); box-shadow: var(--ombre); }
.heros::before { inset-block-start: -30%; width: 90%; transform-origin: 100% 0; animation: faisceau 1.4s ease-out both; }
@keyframes faisceau { from { opacity: 0; transform: rotate(-22deg); } }
.heros h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 var(--espace-3); color: inherit; }
.heros .surtitre { color: var(--encre-texte-2); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.heros .chapeau, .heros-rassure { color: var(--encre-texte-2); }
.heros-rassure { margin: 0; font-size: var(--taille-petit); }
.heros-apercu { background: var(--encre-lueur); border: 1px solid var(--encre-lueur); border-radius: var(--r); padding: var(--espace-4); }
.heros-apercu h2 { display: flex; align-items: center; gap: var(--espace-2); margin: 0 0 var(--espace-2); font-size: var(--taille-petit); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--encre-texte-2); }
.heros-apercu h2::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); animation: pouls 2.4s ease-in-out infinite; }
.heros-apercu ol { list-style: none; padding: 0; margin: 0; counter-reset: rang; }
.heros-apercu li { counter-increment: rang; display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: var(--espace-2); padding: var(--espace-2) 0; border-block-end: 1px solid var(--encre-lueur); }
.heros-apercu li::before { content: counter(rang); font-weight: 700; color: var(--signal); font-variant-numeric: tabular-nums; }
.heros-apercu li a { font-weight: 600; line-height: 1.35; text-decoration: none; }
.heros-apercu li a:hover { text-decoration: underline; }
.heros-apercu p { margin: var(--espace-3) 0 0; font-size: var(--taille-petit); }
@media (min-width: 900px) {
  .heros { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); padding: var(--espace-6); }
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--espace-2) var(--espace-4); margin: var(--espace-4) 0; }
.chiffres { list-style: none; padding: 0; margin: var(--espace-3) 0 0; display: grid; gap: var(--espace-3); grid-template-columns: repeat(3, minmax(0, 1fr)); color: var(--texte-2); font-size: var(--taille-petit); line-height: 1.4; }
.chiffres li { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); padding: var(--espace-3); overflow-wrap: anywhere; }
.chiffres strong { display: block; font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem); line-height: 1.2; color: var(--encre); font-variant-numeric: tabular-nums; }
.etapes { counter-reset: etape; }
.etapes li { counter-increment: etape; }
.etapes li::before { content: counter(etape); display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; margin-bottom: var(--espace-2); border-radius: 50%; background: var(--accent-fond); color: var(--accent-texte); font-weight: 700; }
.grille-roles li { display: flex; flex-direction: column; }
.grille-roles .grille-roles-lien { margin-top: auto; padding-top: var(--espace-3); font-size: var(--taille-petit); font-weight: 600; color: inherit; }
.fin-appel { margin-top: var(--espace-6); padding: var(--espace-5); text-align: center; }
.fin-appel h2 { font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.6rem); }
.fin-appel p { margin-inline: auto; }
.fin-appel .actions { justify-content: center; }
.adhesion-fiche { max-width: 760px; margin-top: var(--espace-6); }
.offre-bientot { margin-top: var(--espace-4); font-weight: 600; color: var(--encre); }
.offre .actions { margin-bottom: 0; }
.encart-nouveau { margin-top: var(--espace-5); }
.encart-nouveau h2 { font-size: 1.15rem; }
.encart-infolettre { margin: var(--espace-4) 0; }
.encart-infolettre label { font-size: 1.0625rem; }
.etapes, .grille-roles { list-style: none; padding: 0; display: grid; gap: var(--espace-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.etapes li, .grille-roles li { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); padding: var(--espace-4); }
.etapes h3, .grille-roles h3 { margin: 0 0 var(--espace-2); font-size: 1.05rem; }
.etapes p, .grille-roles p { margin: 0; color: var(--texte-2); }
.apercu-brief { max-width: 38rem; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); padding: var(--espace-4); }
.apercu-marque { font-weight: 700; margin: 0 0 var(--espace-2); }
.apercu-brief h3 { margin: 0 0 var(--espace-3); }
.apercu-fiche { margin-bottom: var(--espace-3); }
.apercu-fiche p { margin: 0 0 var(--espace-1); }
.faq details { border-bottom: 1px solid var(--trait); padding: var(--espace-1) 0; }
.faq details[open] { padding-bottom: var(--espace-3); }
.faq summary { cursor: pointer; font-weight: 600; padding: var(--espace-2) 0; }
.faq details p { margin: var(--espace-2) 0 0; color: var(--texte-2); }

/* Calendrier des échéances */
/* Sous-onglets de « Moi » : une rangée commune à toutes les pages personnelles ; elle défile au téléphone */
.onglets-moi { margin: var(--espace-3) 0 var(--espace-2); }
.onglets-moi ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--espace-2); }
.onglets-moi a { display: inline-flex; align-items: center; min-height: 40px; white-space: nowrap; text-decoration: none; color: var(--texte); border: 1px solid var(--trait-fort); border-radius: var(--r-petit); padding: 0 var(--espace-4); }
.onglets-moi a:hover { border-color: var(--encre); }
.onglets-moi a[aria-current="page"] { background: var(--accent-fond); color: var(--accent-texte); border-color: var(--accent-fond); }
.onglets-moi + .intro { padding-top: var(--espace-2); }
@media (max-width: 760px) {
  .onglets-moi { margin-inline: calc(-1 * var(--gouttiere)); }
  .onglets-moi ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-inline: var(--gouttiere); -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--gouttiere)), transparent); mask-image: linear-gradient(to right, #000 calc(100% - var(--gouttiere)), transparent); }
  .onglets-moi ul::-webkit-scrollbar { display: none; }
  .onglets-moi li { flex: none; }
  .onglets-moi a { min-height: 44px; padding: 0 var(--espace-3); }
}
.onglets-petits a { min-height: 32px; padding: 0 var(--espace-3); font-size: var(--taille-petit); }
.echeances { list-style: none; padding: 0; margin: 0; }
.echeance { display: grid; grid-template-columns: minmax(7rem, max-content) 1fr; gap: var(--espace-1) var(--espace-4); padding: var(--espace-3) 0; border-block-end: 1px solid var(--trait); border-inline-start: 4px solid var(--trait-fort); padding-inline-start: var(--espace-3); }
.echeance p { margin: 0 0 var(--espace-1); }
.echeance-date { font-weight: 600; color: var(--texte-2); }
.echeance-titre { font-weight: 600; }
.echeance-quand { white-space: nowrap; font-weight: 500; font-size: 0.75rem; color: var(--texte-2); border: 1px solid var(--trait-fort); border-radius: 999px; padding: 0 var(--espace-2); margin-inline-start: var(--espace-1); vertical-align: 0.1em; }
.bloc:has(> .visuellement-cache:first-child) { border-top: 0; margin-top: var(--espace-4); }
.bloc[id] { scroll-margin-top: var(--espace-2); }
.cat-fin-support { border-inline-start-color: var(--signal); }
.cat-correctifs { border-inline-start-color: var(--accent); }
.cat-reglementaire { border-inline-start-color: var(--message-texte); }
.cat-conferences { border-inline-start-color: var(--trait-fort); }
.mois-nav { display: flex; justify-content: space-between; align-items: center; gap: var(--espace-3); flex-wrap: wrap; }
.mois-nav h2 { margin: 0; }
.mois-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.mois { list-style: none; padding: 0; margin: var(--espace-4) 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.mois .entete-jours { display: contents; }
.mois .entete-jours span { font-size: var(--taille-petit); color: var(--texte-2); text-align: center; padding: var(--espace-1); }
.jour { background: var(--surface); min-height: 5.5rem; padding: var(--espace-1); border: 1px solid var(--trait); border-radius: var(--r-petit); overflow: hidden; }
.jour.vide-jour { background: transparent; border-color: transparent; }
.jour.aujourdhui { outline: 2px solid var(--accent); }
.jour-num { margin: 0; font-size: var(--taille-petit); color: var(--texte-2); }
.jour ul { list-style: none; padding: 0; margin: var(--espace-1) 0 0; }
.jour li { font-size: 0.75rem; line-height: 1.3; border-inline-start: 3px solid var(--trait-fort); padding-inline-start: 4px; margin-block-end: 2px; overflow-wrap: anywhere; }
.jour li a { color: var(--texte); text-decoration: none; display: block; }
.jour li a:hover, .jour li a:focus-visible { color: var(--encre); text-decoration: underline; }
.echeance { scroll-margin-top: var(--espace-6); }
.echeance:target { background: var(--surface); outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--r-petit); }
#contenu[aria-busy="true"] .mois { opacity: 0.6; }
.jour li.cat-fin-support { border-inline-start-color: var(--signal); }
.jour li.cat-correctifs { border-inline-start-color: var(--accent); }
.jour li.cat-reglementaire { border-inline-start-color: var(--message-texte); }
.copiable input[readonly] { width: 100%; max-width: 40rem; font-family: ui-monospace, monospace; font-size: var(--taille-petit); }
@media (max-width: 640px) {
  /* Sur téléphone, la grille cède la place à la liste détaillée qui la suit. */
  .mois { display: none; }
  .echeance { grid-template-columns: 1fr; }
  .mois-nav h2 { order: -1; flex-basis: 100%; }
}

/* Carte de l'histoire, façon Atlas du temps : carte, panneau, ligne du temps en bas, plein écran */
.atlas { --atlas-de: 0%; --atlas-a: 100%; display: grid; grid-template-rows: auto 1fr auto auto; gap: var(--espace-2); margin: var(--espace-4) 0; background: var(--fond); }
.atlas-barre { display: flex; gap: var(--espace-2); align-items: center; min-width: 0; }
.atlas-sujets { display: flex; gap: var(--espace-2); overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding-block: 2px; }
.atlas-sujets::-webkit-scrollbar { display: none; }
.atlas-sujets a { flex: none; display: inline-flex; align-items: center; min-height: 36px; white-space: nowrap; text-decoration: none; color: var(--texte); border: 1px solid var(--trait-fort); border-radius: 999px; padding: 0 var(--espace-3); font-size: var(--taille-petit); }
.atlas-sujets a[aria-current] { background: var(--accent-fond); color: var(--accent-texte); border-color: var(--accent-fond); }
.atlas-sujets a.atlas-wt { padding: 0 var(--espace-2); border-color: var(--trait); --wt-a: #C0603A; --wt-e: #241E1A; --wt-t: #F3EDE3; }
.atlas-wt svg { width: 26px; height: 26px; display: block; }
.atlas-wt .wt-a { fill: none; stroke: var(--wt-a); }
.atlas-wt .wt-af { fill: var(--wt-a); }
.atlas-wt .wt-e { fill: var(--wt-e); }
.atlas-wt .wt-t { fill: var(--wt-t); stroke: var(--wt-a); }
.atlas-sujets a.atlas-wt:hover { border-color: var(--wt-a); }
@media (prefers-color-scheme: dark) { .atlas-sujets a.atlas-wt { --wt-a: #DA8058; --wt-e: #F2EBE1; --wt-t: #2A231E; } }
.atlas-bouton { flex: none; min-width: 44px; min-height: 44px; border: 1px solid var(--trait-fort); border-radius: var(--r); background: var(--surface); color: var(--texte); font: inherit; font-size: var(--taille-petit); padding: 0 var(--espace-3); cursor: pointer; }
.atlas-bouton:hover { border-color: var(--encre); }
.atlas-bouton[aria-pressed="true"] { background: var(--accent-fond); color: var(--accent-texte); border-color: var(--accent-fond); }
.atlas-corps { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--espace-2); min-height: 0; }
.atlas-carte { position: relative; min-height: 0; border: 1px solid var(--trait); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.atlas-carte svg { display: block; width: 100%; height: auto; touch-action: none; user-select: none; }
/* Sur un écran étroit, la boîte est moins haute : la carte la remplit mieux et la page défile encore autour */
.atlas-actif .atlas-carte svg { height: clamp(220px, min(52vh, 56vw), 620px); cursor: grab; }
.atlas-actif .atlas-carte svg:active { cursor: grabbing; }
.atlas .mer { fill: var(--surface); }
.atlas .terre { fill: var(--terre); stroke: none; }
.atlas .point .zone { fill: transparent; stroke: none; }
.atlas .point circle:not(.zone) { fill: var(--point); stroke: var(--surface); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: opacity .2s; }
.atlas .point.imp-3 circle:not(.zone) { fill: var(--majeur); }
.atlas .point:hover circle:not(.zone), .atlas .point:focus circle:not(.zone), .atlas .point.choisi circle:not(.zone) { fill: var(--encre); stroke-width: 3; }
.atlas .point.cache { display: none; }
.atlas-zoom { position: absolute; inset-inline-end: var(--espace-2); inset-block-start: var(--espace-2); display: flex; flex-direction: column; gap: var(--espace-1); }
.atlas-zoom .atlas-bouton { font-size: 1.1rem; padding: 0; box-shadow: var(--ombre); }
.atlas-aide { position: absolute; inset-inline-start: var(--espace-2); inset-block-end: var(--espace-1); margin: 0; font-size: 0.75rem; color: var(--texte-2); background: var(--surface); padding: 2px var(--espace-2); border-radius: var(--r-petit); opacity: .9; }
.atlas-panneau { min-height: 0; overflow-y: auto; max-height: 22rem; border: 1px solid var(--trait); border-radius: var(--r); background: var(--surface); padding: var(--espace-3); }
.atlas-compte { font-size: 1rem; margin: 0 0 var(--espace-2); }
.atlas-liste { list-style: none; margin: 0; padding: 0; }
.atlas-liste li { border-block-end: 1px solid var(--trait); }
.atlas-liste a { display: block; padding: var(--espace-3) 0; text-decoration: none; color: var(--texte); }
.atlas-liste a:hover .atlas-titre, .atlas-liste a:focus .atlas-titre { text-decoration: underline; }
.atlas-date { color: var(--texte-2); font-size: var(--taille-petit); font-variant-numeric: tabular-nums; }
.atlas-titre { font-weight: 600; }
.atlas-sans-lieu { font-size: 0.75rem; color: var(--texte-2); border: 1px solid var(--trait); border-radius: 999px; padding: 0 var(--espace-2); white-space: nowrap; }
.atlas-fiche h2 { font-size: 1.25rem; margin: var(--espace-1) 0 var(--espace-2); }
.atlas-fiche:focus { outline: none; }
.atlas-retour { margin-block-end: var(--espace-2); }
.atlas-liens { display: flex; flex-wrap: wrap; gap: var(--espace-2) var(--espace-4); }
.atlas-temps { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 0 var(--espace-3); align-items: center; }
.atlas-lecture { grid-row: 1 / span 2; }
.atlas-frise { position: relative; height: 56px; }
.atlas-densite { position: absolute; inset: 0 0 16px; width: 100%; height: 40px; }
.atlas-densite rect { fill: var(--accent); }
.atlas-densite rect.hors { fill: var(--trait-fort); opacity: .45; }
.atlas-frise::after { content: ""; position: absolute; inset-inline-start: var(--atlas-de); inset-inline-end: calc(100% - var(--atlas-a)); bottom: 14px; height: 4px; background: var(--accent); border-radius: 2px; pointer-events: none; }
.atlas-frise::before { content: ""; position: absolute; inset-inline: 0; bottom: 14px; height: 4px; background: var(--trait); border-radius: 2px; }
.atlas-frise input[type="range"] { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: 32px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; min-height: 0; border: 0; padding: 0; }
.atlas-frise input[type="range"]::-webkit-slider-runnable-track { background: none; height: 32px; }
.atlas-frise input[type="range"]::-moz-range-track { background: none; }
.atlas-frise input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; margin-top: 5px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); cursor: ew-resize; }
.atlas-frise input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); cursor: ew-resize; }
.atlas-frise input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--focus); outline-offset: 2px; }
.atlas-periode { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; }
/* Date précise ou période : seulement en plein écran (la page a déjà ses filtres) */
.atlas-dates { display: none; }
.atlas.atlas-plein-ecran .atlas-dates { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--espace-1) var(--espace-2); margin-top: var(--espace-1); font-size: var(--taille-petit); }
.atlas-dates input { width: 9.5rem; min-height: 32px; padding: 0 var(--espace-2); font: inherit; font-variant-numeric: tabular-nums; }
.atlas-dates input[aria-invalid="true"] { border-color: var(--majeur); }
.atlas-dates-aide { margin: 0; color: var(--texte-2); flex-basis: 100%; }
.atlas-dates-aide.erreur { color: var(--majeur); }
.atlas-credit { margin: 0; font-size: 0.75rem; }
@media (min-width: 900px) {
  .atlas-corps { grid-template-columns: minmax(0, 1fr) 20rem; }
  .atlas-panneau { max-height: none; height: clamp(260px, 52vh, 620px); }
}
/* Plein écran : la section remplit la hauteur visible (dvh, repli en vh), à l'abri des encoches et de
   la barre d'accueil (safe-area), sans débordement horizontal (API du navigateur, ou classe sur iPhone) */
.atlas.atlas-plein-ecran {
  position: fixed; inset: 0; z-index: 1000; margin: 0; width: auto; height: 100vh; height: 100dvh;
  grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden; overscroll-behavior: contain;
  padding: max(var(--espace-2), env(safe-area-inset-top)) max(var(--espace-2), env(safe-area-inset-right)) max(var(--espace-2), env(safe-area-inset-bottom)) max(var(--espace-2), env(safe-area-inset-left));
}
.atlas:fullscreen { background: var(--fond); }
/* La légende et l'aide restent sur la page : en plein écran, la place va à la carte */
.atlas.atlas-plein-ecran .atlas-credit, .atlas.atlas-plein-ecran .atlas-aide { display: none; }
.atlas.atlas-plein-ecran .atlas-corps { min-height: 0; grid-template-rows: minmax(0, 1fr) auto; }
.atlas.atlas-plein-ecran .atlas-carte { min-height: 0; height: 100%; }
.atlas.atlas-plein-ecran .atlas-carte svg { height: 100%; }
/* Téléphone en hauteur : la carte prend le reste, le panneau garde deux ou trois lignes et défile */
.atlas.atlas-plein-ecran .atlas-panneau { max-height: clamp(7.5rem, 26dvh, 16rem); }
.atlas.atlas-plein-ecran .atlas-temps { padding-block-start: var(--espace-1); }
/* Téléphone en largeur (peu de hauteur) : le panneau passe à côté de la carte */
@media (orientation: landscape) and (max-height: 540px) {
  .atlas.atlas-plein-ecran .atlas-corps { grid-template-columns: minmax(0, 1fr) minmax(11rem, 36%); grid-template-rows: minmax(0, 1fr); }
  .atlas.atlas-plein-ecran .atlas-panneau { max-height: none; height: 100%; }
}
.atlas-page-pleine, .atlas-page-pleine body { overflow: hidden; }
@media (min-width: 900px) {
  .atlas.atlas-plein-ecran .atlas-corps { grid-template-rows: minmax(0, 1fr); }
  .atlas.atlas-plein-ecran .atlas-panneau { max-height: none; height: 100%; }
}

/* Doigt : chaque cible atteint 44 px (les étiquettes gardent leur taille, leur zone s'étend) */
@media (pointer: coarse), (max-width: 760px) {
  .evitement { padding-block: var(--espace-3); }
  .onglets a, .onglets-petits a, .sauts a, .atlas-sujets a, .rubriques-nav a { min-height: 44px; }
  .filtres-importance span, .filtres-canada, .filtres-rubriques summary, .filtres-rubriques fieldset label, .filtres-actions button, .filtres-bouton, .filtres-liste select { min-height: 44px; }
  .pied nav { gap: 0 var(--espace-4); }
  .pied nav a { min-width: 44px; }
  .pied nav a, .fil-ariane a, .etat-vide-liens a, .atlas-liens a, .precedent-suivant a, .actions a:not(.bouton), button.lien { display: inline-flex; align-items: center; min-height: 44px; }
  .faq summary { padding: var(--espace-3) 0; }
  .etiquette::after { content: ""; position: absolute; inset: -9px -2px; }
  /* Liens seuls sur leur ligne (titres de liste, liens d'appoint) : zone de toucher de 44 px, sans changer la mise en page */
  .surtitre-lien, .lien-atlas, .evenement h3 a, .grille-fournisseurs h2 a, .grille-roles-lien a { position: relative; }
  .surtitre-lien::after, .lien-atlas::after, .evenement h3 a::after, .grille-fournisseurs h2 a::after, .grille-roles-lien a::after { content: ""; position: absolute; inset: -12px 0; }
  .carte-meta { row-gap: var(--espace-2); }
}

/* Teams et Slack (compte Pro) : chaque case et chaque bouton fait au moins 44 px */
.liste-webhooks { list-style: none; padding: 0; margin: 0 0 var(--espace-4); max-width: 560px; }
.webhook { padding: var(--espace-3) 0; border-bottom: 1px solid var(--trait); }
.webhook h3 { margin: 0 0 var(--espace-1); font-size: 1rem; }
.webhook p { margin: 0 0 var(--espace-2); }
.webhook .ligne form { margin: 0; }
.webhooks .case { min-height: 44px; align-items: center; }
.webhooks .case input { margin-top: 0; }
.webhooks details summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--accent); font-weight: 500; }
.webhooks details .formulaire { margin-top: var(--espace-2); }
.decennie-tout { margin: var(--espace-3) 0 var(--espace-5); }
