/* 3DS Alumni — feuille de style unique.
   Bleu profond et bleu ciel, typographie sans empattement claire (Nunito Sans, licence OFL, hébergée sur le site). */
@font-face {
  font-family: "Nunito Sans"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("../fonts/nunito-sans-latin-wght-normal.woff2") format("woff2-variations");
  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;
}
@font-face {
  font-family: "Nunito Sans"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("../fonts/nunito-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --fond: #f3f6f9;
  --surface: #ffffff;
  --encre: #18222e;
  --doux: #586574;
  --trait: #dbe2e9;
  --accent: #005386;
  --accent-fonce: #003a5f;
  --accent-pale: #e3eef6;
  --ciel: #2fa8de;
  --nuit: #0b2340;
  --ok: #2f6b3a;
  --ok-pale: #e5f1e6;
  --alerte: #a33a2b;
  --alerte-pale: #f8e7e4;
  --info-pale: #edf1f5;
  --rayon: 10px;
  --ombre: 0 1px 2px rgba(20, 30, 40, .06), 0 4px 16px rgba(20, 30, 40, .05);
  --police: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --titres: var(--police);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Pas de défilement latéral parasite sur téléphone : la page ne « tangue » pas */
html, body { overflow-x: clip; overscroll-behavior-x: none; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 16px/1.6 var(--police); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-fonce); }
h1, h2, h3 { font-family: var(--titres); font-weight: 700; line-height: 1.2; letter-spacing: -.005em; }
h1 { font-weight: 300; letter-spacing: -.015em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: .2em 0 .5em; }
h2 { font-size: 1.45rem; margin: 2em 0 .7em; }
h3 { font-size: 1.15rem; margin: 0 0 .3em; }
h3 a { color: inherit; text-decoration: none; }
h3 a:hover { color: var(--accent); text-decoration: underline; }
code { font-size: .9em; background: var(--info-pale); padding: .1em .35em; border-radius: 4px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.conteneur { width: min(1120px, 100% - 32px); margin-inline: auto; }
.etroit { width: min(760px, 100% - 32px); margin-inline: auto; }
.etroit.petit { width: min(460px, 100% - 32px); }
.page { padding: 32px 0 64px; }
.evitement { position: absolute; left: -9999px; }
.evitement:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.meta { color: var(--doux); font-size: .92rem; }
.chapo { font-size: 1.15rem; color: var(--doux); }
.vide { color: var(--doux); font-style: italic; }
.fil { margin: 0 0 8px; font-size: .92rem; }
.fil a { text-decoration: none; }
.texte { max-width: 70ch; }
.texte p, .texte ul, .texte ol { margin: 0 0 1em; }

/* En-tête */
.entete { background: var(--surface); border-bottom: 1px solid var(--trait); position: sticky; top: 0; z-index: 5; }
.entete-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); }
.logo-marque { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; background: var(--accent); color: #fff; font: 700 .85rem/1 var(--police); letter-spacing: .04em; }
.logo-texte { display: flex; flex-direction: column; line-height: 1.15; }
.logo-texte strong { font-size: 1.1rem; font-weight: 800; color: var(--accent); }
.logo-texte small { color: var(--doux); font-size: .78rem; }
.menu { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.menu ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; color: var(--encre); padding: 8px 10px; border-radius: 6px; font-size: .95rem; }
.menu a:hover { background: var(--fond); }
.menu a[aria-current] { color: var(--accent); font-weight: 600; }
.menu-compte { display: flex; align-items: center; gap: 8px; }
.menu-compte .compte { display: inline-flex; align-items: center; gap: 8px; }
.compte-menu { position: relative; }
.compte-menu summary { list-style: none; cursor: pointer; padding: 6px 8px; border-radius: 6px; font-size: .95rem; color: var(--encre); }
.compte-menu summary::-webkit-details-marker { display: none; }
.compte-menu summary:hover, .compte-menu[open] summary { background: var(--fond); }
.compte-menu summary[aria-current] { color: var(--accent); font-weight: 600; }
.compte-menu .fleche { font-size: .7rem; color: var(--doux); }
.compte-menu__box { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 230px; background: var(--surface); border: 1px solid var(--trait); border-radius: 10px; box-shadow: var(--ombre), 0 10px 30px rgba(11, 35, 64, .12); padding: 6px; display: flex; flex-direction: column; }
.compte-menu__box a, .compte-menu__box button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 6px; font: inherit; font-size: .93rem; color: var(--encre); text-decoration: none; background: none; border: 0; cursor: pointer; }
.compte-menu__box a:hover, .compte-menu__box button:hover { background: var(--fond); color: var(--accent); }
.compte-menu__box form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--trait); }
.menu a.langue { font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--doux); border: 1px solid var(--trait); padding: 5px 8px; }
.menu a.langue:hover { color: var(--accent); }
.lien-admin { font-size: .85rem !important; color: var(--doux) !important; border: 1px solid var(--trait); }
.menu-bouton { display: none; margin-left: auto; background: none; border: 1px solid var(--trait); border-radius: 6px; padding: 8px 12px; font: inherit; cursor: pointer; }

@media (max-width: 900px) {
  .menu-bouton { display: block; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--trait); flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 16px 16px; }
  .menu.ouvert { display: flex; }
  .menu ul { flex-direction: column; }
  .menu-compte { flex-wrap: wrap; border-top: 1px solid var(--trait); padding-top: 12px; }
  .compte-menu { flex-basis: 100%; }
  .compte-menu__box { position: static; box-shadow: none; border: 0; padding: 4px 0 0 12px; min-width: 0; }
  .logo-texte small { display: none; }
}

/* Boutons */
.btn { display: inline-block; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 8px; padding: 10px 18px; font: 600 .95rem/1.2 var(--police); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-fonce); color: #fff; }
.btn-second { background: var(--surface); color: var(--accent); }
.btn-second:hover { background: var(--accent-pale); color: var(--accent-fonce); }
.btn-danger { background: var(--surface); color: var(--alerte); border-color: var(--alerte); }
.btn-danger:hover { background: var(--alerte); color: #fff; }
.btn-petit { padding: 6px 12px; font-size: .88rem; }
.lien-bouton { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
.lien-bouton.danger { color: var(--alerte); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions-ligne { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.actions-ligne form { margin: 0; }

/* Alertes */
.alerte { border-radius: 8px; padding: 12px 16px; margin: 16px 0; background: var(--info-pale); }
.alerte ul { margin: 0; padding-left: 1.2em; }
.alerte-ok { background: var(--ok-pale); color: var(--ok); }
.alerte-erreur { background: var(--alerte-pale); color: var(--alerte); }
.alerte-info { background: var(--info-pale); }

/* Accueil */
.hero { background: linear-gradient(135deg, var(--nuit) 0%, #0f3a63 100%); color: #f2f6fa; padding: 72px 0 64px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -80px; width: 460px; height: 460px; border-radius: 50%; border: 70px solid rgba(47, 168, 222, .10); }
.hero-in { position: relative; z-index: 1; max-width: 760px; margin-left: max(16px, (100% - 1120px) / 2); }
.hero h1 { font-weight: 300; font-size: clamp(2rem, 5vw, 3.1rem); margin: .1em 0 .4em; }
.hero-texte { font-size: 1.12rem; color: #c3d2e0; max-width: 60ch; }
.hero .btn { background: var(--ciel); border-color: var(--ciel); color: var(--nuit); }
.hero .btn:hover { background: #5cbde8; border-color: #5cbde8; }
.hero .btn-second { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.hero .btn-second:hover { background: rgba(255, 255, 255, .1); }
.surtitre { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--ciel); font-weight: 700; margin: 0; }
.hero-chiffre { color: #c3d2e0; margin-top: 24px; }
.hero-chiffre strong { color: #fff; font-size: 1.3rem; }
.bloc { padding: 40px 0 0; }
.bloc:last-of-type { padding-bottom: 64px; }
.bloc-titre { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.bloc-titre h1, .bloc-titre h2 { margin-bottom: .5em; }
.atouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.atouts > div { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 24px; }
.atouts h2 { margin: 0 0 .4em; font-size: 1.25rem; }
.atouts p { margin: 0; color: var(--doux); }
.appel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; background: var(--accent-pale); border-radius: var(--rayon); padding: 32px; }
.appel h2 { margin: 0 0 .3em; }
.appel p { margin: 0; max-width: 60ch; }

/* Cartes */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.liste { display: grid; gap: 12px; }
.carte { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 20px; box-shadow: var(--ombre); }
.carte p { margin: .3em 0; }
.carte-evenement { display: flex; gap: 20px; align-items: flex-start; }
.date-bloc { flex: none; width: 72px; text-align: center; border-radius: 8px; background: var(--accent-pale); color: var(--accent-fonce); padding: 10px 4px; }
.date-bloc span { display: block; font: 300 1.9rem/1 var(--titres); }
.date-bloc small { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.liste-passee .carte { box-shadow: none; opacity: .8; }
.liste-passee .date-bloc { background: var(--info-pale); color: var(--doux); }
.carte-membre { display: flex; gap: 16px; align-items: flex-start; }
.grille-membres { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.pastille { display: inline-block; background: var(--info-pale); color: var(--doux); border-radius: 999px; padding: 2px 10px; font-size: .8rem; text-decoration: none; margin: 2px 0; }
a.pastille:hover { background: var(--accent-pale); color: var(--accent); }
.pastille-ok { background: var(--ok-pale); color: var(--ok); }
.pastille-alerte { background: var(--alerte-pale); color: var(--alerte); }

/* Avatars */
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; font: 600 1.05rem/1 var(--police); color: #fff; vertical-align: middle; }
.avatar.mini { width: 28px; height: 28px; font-size: .7rem; }
.avatar.grand { width: 112px; height: 112px; font-size: 2rem; }
.avatar-initiales.t0 { background: #005386; } .avatar-initiales.t1 { background: #1d7fb3; } .avatar-initiales.t2 { background: #0b2340; }
.avatar-initiales.t3 { background: #3d6b8e; } .avatar-initiales.t4 { background: #127a8a; } .avatar-initiales.t5 { background: #4a5a6b; }

/* Fiches */
.colonnes { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.colonnes-compte { grid-template-columns: minmax(0, 1fr) 280px; }
@media (max-width: 860px) { .colonnes, .colonnes-compte { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.encart { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 24px; }
.colonnes > .encart { position: sticky; top: 92px; }
.encart dl { margin: 0 0 16px; }
.encart dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); margin-top: 12px; }
.encart dd { margin: 2px 0 0; }
.encart-action { border-color: var(--accent); background: var(--accent-pale); margin: 24px 0; }
.encart-action h2 { margin-top: 0; }
.petit-titre { font-size: 1rem; margin: 24px 0 8px; font-family: var(--police); }
.participants { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.participants a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--encre); }
.fiche-entete { display: flex; gap: 24px; align-items: center; margin-bottom: 16px; }
.fiche-entete h1 { margin: 0 0 .1em; }
.fiche-entete p { margin: .2em 0; }
@media (max-width: 560px) { .fiche-entete { flex-direction: column; align-items: flex-start; } }
.fiche { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 24px 0; }
.fiche dt { color: var(--doux); }
.fiche dd { margin: 0; }
@media (max-width: 560px) { .fiche { grid-template-columns: 1fr; gap: 2px; } .fiche dd { margin-bottom: 10px; } }
.liste-simple { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sommaire { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .92rem; }

/* Formulaires */
.formulaire { margin: 0 0 24px; }
fieldset { border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--surface); padding: 20px 24px 8px; margin: 0 0 20px; min-width: 0; }
legend { font-weight: 600; padding: 0 8px; margin-left: -8px; }
.champ { display: block; margin: 0 0 16px; }
.champ > span { display: block; font-size: .92rem; font-weight: 600; margin-bottom: 4px; }
.champ small, .case small { display: block; color: var(--doux); font-size: .84rem; font-weight: 400; margin-top: 4px; }
abbr[title] { text-decoration: none; color: var(--alerte); }
input[type=text], input:not([type]), input[type=email], input[type=password], input[type=url], input[type=tel], input[type=search],
input[type=number], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; color: var(--encre); background: #fff; border: 1px solid #c9c5bc; border-radius: 7px; padding: 9px 11px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-pale); }
.rangee { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.case { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; cursor: pointer; }
.case input { margin-top: 5px; flex: none; accent-color: var(--accent); }
.choix-multiples { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { position: relative; cursor: pointer; }
.puce input { position: absolute; opacity: 0; }
.puce span { display: inline-block; border: 1px solid #c9c5bc; border-radius: 999px; padding: 5px 12px; font-size: .88rem; background: #fff; }
.puce input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.puce input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.photo-ligne { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-bottom: 8px; }
.etapes { padding-left: 1.2em; }
.cle { font-size: 1rem; letter-spacing: .05em; word-break: break-all; }
details.replie > summary { list-style: none; display: inline-block; }
details.replie > summary::-webkit-details-marker { display: none; }
details.replie[open] > summary { margin-bottom: 12px; }
.separe { margin-top: 40px; }

/* Filtres et pagination */
.filtres { display: flex; flex-wrap: wrap; gap: 0 16px; align-items: flex-end; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 16px 20px 0; margin-bottom: 16px; }
.filtres .champ { flex: 1 1 170px; }
.filtres .champ-large { flex: 2 1 260px; }
.filtres .case { flex: 0 0 auto; align-self: center; margin-bottom: 16px; }
.filtres-actions { margin-bottom: 16px; display: flex; gap: 12px; align-items: center; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.pagination a { padding: 6px 12px; border: 1px solid var(--trait); border-radius: 6px; background: var(--surface); text-decoration: none; }
.pagination a[aria-current] { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Back-office */
.admin { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 32px 0 64px; }
.admin-menu { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 92px; align-self: start; }
.admin-menu a { padding: 8px 12px; border-radius: 6px; text-decoration: none; color: var(--encre); }
.admin-menu a:hover { background: var(--surface); }
.admin-menu a[aria-current] { background: var(--accent); color: #fff; }
.admin-contenu { min-width: 0; }
.admin-contenu h1 { margin-top: 0; }
@media (max-width: 800px) {
  .admin { grid-template-columns: 1fr; gap: 16px; }
  .admin-menu { position: static; flex-direction: row; flex-wrap: wrap; }
}
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.chiffres a { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 16px; text-decoration: none; color: var(--doux); font-size: .9rem; }
.chiffres strong { display: block; color: var(--accent); font: 300 2rem/1.2 var(--titres); }
.chiffres a.a-traiter { border-color: var(--accent); background: var(--accent-pale); }
.onglets { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
.onglets a { padding: 6px 12px; border-radius: 999px; text-decoration: none; font-size: .88rem; border: 1px solid var(--trait); background: var(--surface); }
.onglets a[aria-current] { background: var(--accent); color: #fff; border-color: var(--accent); }
.tableau { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); font-size: .94rem; }
.defile { overflow-x: auto; margin-bottom: 16px; }
.tableau th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--doux); background: var(--fond); }
.tableau th, .tableau td { padding: 10px 14px; border-bottom: 1px solid var(--trait); vertical-align: top; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau tr.passe td { color: var(--doux); }
.tableau-serre td { padding: 6px 10px; font-size: .86rem; }
.ligne-alerte td { background: var(--alerte-pale); }
.statut { font-size: .85rem; white-space: nowrap; }
.statut::before { content: "●"; margin-right: 6px; }
.statut-actif::before { color: var(--ok); }
.statut-en_attente::before { color: #c58a1a; }
.statut-a_confirmer::before { color: #b7b2a8; }
.statut-refuse::before, .statut-suspendu::before { color: var(--alerte); }
.journal-smtp { background: var(--nuit); color: #d8dde2; padding: 16px; border-radius: 8px; overflow-x: auto; font-size: .82rem; }

/* Pied de page */
.pied { background: var(--surface); border-top: 1px solid var(--trait); padding: 32px 0 24px; font-size: .92rem; }
.pied-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 48px; }
.pied p { margin: .2em 0; color: var(--doux); }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pied-note { color: var(--doux); font-size: .82rem; margin-top: 24px; }
.menu a.btn, .menu a.btn:hover { color: #fff; background: var(--accent); padding: 6px 12px; }
.menu a.btn:hover { background: var(--accent-fonce); }
.pied .pied-note { margin: 24px auto 0; }
input[type=file] { max-width: 100%; }
.tableau th:first-child { border-top-left-radius: var(--rayon); }
.tableau th:last-child { border-top-right-radius: var(--rayon); }
@media (max-width: 600px) { .tableau { font-size: .86rem; } .tableau th, .tableau td { padding: 8px 10px; } }
.pied { border-top: 3px solid var(--accent); }
.btn { font-weight: 700; }

/* Portrait de la vitrine (accueil) */
.portrait { display: flex; align-items: center; gap: 24px; margin: 0; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 20px 24px; }
.portrait img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex: none; }
.portrait figcaption { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.portrait .surtitre { color: var(--doux); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.portrait strong { font-size: 1.3rem; font-weight: 600; color: var(--encre); }
@media (max-width: 520px) { .portrait { flex-direction: column; text-align: center; } .portrait img { width: 96px; height: 96px; } }
.statut-decede { background: #eceff3; color: #4a5563; }

/* Administration › Trafic (repris de chirurgiemain.fr) */
[data-traffic].is-loading { opacity: .55; transition: opacity .2s; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.head h1 { margin: 0; }
.head__actions { display: flex; flex-wrap: wrap; gap: 4px; }
.btn--sm { padding: 6px 12px; font-size: .85rem; }
.btn--ghost { background: var(--surface); color: var(--accent); }
.btn--ghost:hover { color: #fff; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--trait); text-decoration: none; font-size: .88rem; font-weight: 600; color: var(--encre); }
.tabs a[aria-current] { background: var(--accent); color: #fff; border-color: var(--accent); }
.card { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 16px 20px; margin-bottom: 20px; min-width: 0; }
.card h2 { font-size: 1.05rem; margin: 0 0 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.grid > .card { margin: 0; }
.hint { color: var(--doux); font-size: .88rem; }
.muted { color: var(--doux); }
.num { text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.is-error { color: #a8323e; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 14px 18px; }
.stat b { display: block; font: 300 1.9rem/1.15 var(--titres); color: var(--accent); }
.stat span { color: var(--doux); font-size: .85rem; }
.stat--bot b { color: #8a6d0b; }
.stat--rdv b { color: #2e7d5b; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: -1px; }
.sw--user { background: var(--accent); }
.sw--visit { background: var(--ciel); }
.legend { font-weight: 400; font-size: .8rem; color: var(--doux); }
.histo { width: 100%; height: auto; display: block; }
.histo .b-vues { fill: var(--accent); }
.histo .b-visiteurs { fill: var(--ciel); }
.histo text { font-size: 10px; fill: var(--doux); }
.hbar { vertical-align: middle; margin-right: 6px; }
.hbar .hbar-fond { fill: #e8edf2; }
.hbar .hbar-plein { fill: var(--accent); }
.hbar--bg { margin-right: 8px; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--doux); border-bottom: 1px solid var(--trait); padding: 6px 8px; }
.table td { padding: 5px 8px; border-bottom: 1px solid var(--trait); }
.table tr:last-child td { border-bottom: 0; }
.ellipsis { max-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px 14px; align-items: end; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--doux); }
.filters select { font: inherit; font-size: .88rem; padding: 6px 8px; border: 1px solid var(--trait); border-radius: 6px; background: var(--surface); color: var(--encre); min-width: 0; }
.filters select.is-on { border-color: var(--accent); background: var(--accent-pale); }
.filters__clear { font-size: .88rem; }
.locate { display: flex; gap: 8px; align-items: center; }
.botchart { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 16px; }
.botchart__plot svg { width: 100%; height: auto; display: block; }
.botchart__pick { display: flex; flex-direction: column; gap: 4px; font-size: .86rem; max-height: 260px; overflow-y: auto; }
.botchart__pick label { display: flex; align-items: center; gap: 2px; cursor: pointer; }
@media (max-width: 760px) { .botchart { grid-template-columns: 1fr; } }
.errs summary { cursor: pointer; text-decoration: underline; }
.errs__box { position: absolute; z-index: 20; right: 16px; max-width: min(640px, 90vw); max-height: 320px; overflow: auto; background: var(--surface); border: 1px solid var(--trait); border-radius: 8px; box-shadow: var(--ombre); padding: 8px; text-align: left; }
.tag { display: inline-block; font-size: .78rem; padding: 1px 7px; border-radius: 999px; background: var(--fond); border: 1px solid var(--trait); }
.tag--bot { background: #fbf3d9; border-color: #ecdca4; }
.tag--warn { background: #fbe4e6; border-color: #efb9bf; color: #8a2430; }
.tag--co { background: var(--accent-pale); border-color: #c4d9ea; }
.log-defile { max-height: calc(100vh - 150px); overflow: auto; margin: 0 -20px; border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.log-defile:has(details[open]) { min-height: 380px; }
.log thead th { position: sticky; top: 0; z-index: 3; background: var(--surface); box-shadow: inset 0 -1px 0 var(--trait); }
.log { table-layout: fixed; min-width: 980px; }
.log td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.log th { white-space: nowrap; position: relative; overflow: visible; }
.log tr.is-suspect td { background: #fdf3f4; }
.log th[data-col=date] { width: 118px; } .log th[data-col=ip] { width: 118px; } .log th[data-col=lieu] { width: 100px; }
.log th[data-col=code] { width: 58px; } .log th[data-col=temps] { width: 66px; } .log th[data-col=provenance] { width: 9%; }
.log-th { display: inline-flex; align-items: center; gap: 4px; }
.facet { position: relative; display: inline-block; }
.facet summary { list-style: none; cursor: pointer; padding: 2px 3px; border-radius: 4px; color: var(--doux); display: flex; }
.facet summary::-webkit-details-marker { display: none; }
.facet.is-on summary, .facet summary:hover { color: #fff; background: var(--accent); }
.facet__box { position: absolute; z-index: 30; top: 22px; left: 0; width: 260px; background: var(--surface); border: 1px solid var(--trait); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 10px; text-transform: none; letter-spacing: 0; font-size: .85rem; color: var(--encre); font-weight: 400; white-space: normal; }
th[data-col=provenance] .facet__box, th[data-col=temps] .facet__box, th[data-col=code] .facet__box { left: auto; right: 0; }
.facet__sort { display: flex; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--trait); margin-bottom: 6px; }
.facet__title { font-weight: 700; margin: 6px 0 4px; }
.facet__box input[type=search] { width: 100%; margin: 0 0 6px; padding: 5px 8px; font: inherit; font-size: .85rem; border: 1px solid var(--trait); border-radius: 6px; }
.facet__opts { max-height: 200px; overflow-y: auto; }
.facet__opts label { display: flex; align-items: center; gap: 6px; margin: 0; padding: 2px 0; }
.facet__opts label span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facet__opts label small { color: var(--doux); }
.facet__actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.log-tools { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; }
.chip { padding: 2px 10px; border-radius: 999px; background: var(--accent-pale); text-decoration: none; }
.colpick { position: relative; }
.colpick summary { list-style: none; }
.colpick__box { position: absolute; right: 0; z-index: 20; background: var(--surface); border: 1px solid var(--trait); border-radius: 8px; box-shadow: var(--ombre); padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; font-size: .86rem; white-space: nowrap; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; font-size: .86rem; margin: 8px 0; }
.pager__pages { display: flex; flex-wrap: wrap; gap: 8px; }
.pager__per select { font: inherit; padding: 2px 4px; }
.rapport-trafic .histo { margin: 4px 0 12px; }
.colonnes-rapport { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; font-size: .9rem; }
.chiffres a .meta { display: block; font-size: .8rem; margin-top: 4px; }
[hidden] { display: none !important; }

/* Accueil des membres connectés : bandeau plus court */
.hero-membre { padding: 44px 0 36px; }
.hero-membre h1 { margin-bottom: .3em; }

/* Chiffres du réseau (accueil des membres) */
.pour-lecteur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-membre .surtitre { margin-bottom: 18px; }
.chiffres-reseau { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 12px; max-width: 1040px; }
.chiffres-reseau li > a, .chiffres-reseau li > strong { display: block; }
.chiffres-reseau li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; }
.chiffres-reseau a { display: block; height: 100%; padding: 14px 16px; color: inherit; text-decoration: none; border-radius: 10px; }
.chiffres-reseau a:hover { background: rgba(255, 255, 255, .08); }
.chiffres-reseau li:not(:has(a)) { padding: 14px 16px; }
.chiffres-reseau strong { display: block; color: #fff; font: 300 1.7rem/1.15 var(--titres); overflow-wrap: anywhere; }
.chiffres-reseau span { display: block; color: #c3d2e0; font-size: .85rem; margin-top: 4px; }
.hero-membre .hero-in { max-width: 1120px; }

/* Annuaire : choix de la vue, table, carte du monde */
.annuaire-titre { align-items: center; flex-wrap: wrap; gap: 12px; }
.annuaire-titre h1 { margin: 0; }
.vues { display: inline-flex; border: 1px solid var(--trait); border-radius: 999px; background: var(--surface); padding: 3px; gap: 2px; }
.vues a { padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--encre); font-size: .9rem; font-weight: 600; }
.vues a[aria-current] { background: var(--accent); color: #fff; }
.table-annuaire { max-height: calc(100vh - 140px); overflow: auto; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--surface); }
.table-annuaire .tableau { border: 0; border-radius: 0; min-width: 900px; }
.table-annuaire thead th { position: sticky; top: 0; z-index: 2; background: var(--fond); box-shadow: inset 0 -1px 0 var(--trait); }
.table-annuaire th a { color: inherit; text-decoration: none; }
.table-annuaire th a:hover { color: var(--accent); }
.table-annuaire td { font-size: .9rem; }
.table-annuaire tbody tr:hover td { background: var(--accent-pale); }
.th-in { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.table-annuaire .facet__box { width: 240px; }
.table-annuaire th:nth-last-child(-n+3) .facet__box { left: auto; right: 0; }
.facet__opts a { display: flex; gap: 8px; justify-content: space-between; padding: 4px 6px; border-radius: 4px; text-decoration: none; color: var(--encre); text-transform: none; letter-spacing: 0; font-size: .86rem; font-weight: 400; }
.facet__opts a:hover, .facet__opts a[aria-current] { background: var(--accent-pale); color: var(--accent); }
.facet__opts a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facet__opts a small { color: var(--doux); }
.facet__tout { font-weight: 600 !important; border-bottom: 1px solid var(--trait); margin-bottom: 4px; }
.carte-monde { position: relative; }
.carte-monde__outils { position: absolute; z-index: 2; top: 12px; right: 12px; display: flex; gap: 6px; }
.carte-monde__outils .btn { min-width: 38px; font-size: 1rem; background: var(--surface); }
.carte-monde__plan { height: min(70vh, 620px); border: 1px solid var(--trait); border-radius: var(--rayon); background: #aad3df; overflow: hidden; cursor: grab; touch-action: none; }
.carte-monde__plan:focus-visible { outline: 3px solid var(--ciel); outline-offset: 2px; }
.carte-monde__plan.glisse { cursor: grabbing; }
.carte-svg { width: 100%; height: 100%; display: block; user-select: none; }
.carte-monde__source { position: absolute; z-index: 2; right: 1px; top: calc(min(70vh, 620px) - 21px); margin: 0; padding: 1px 6px; border-radius: 0 0 var(--rayon) 0; background: rgba(255,255,255,.8); font-size: .72rem; color: var(--doux); }
.carte-monde__source a { color: inherit; }
.bulle { fill: var(--accent); fill-opacity: .9; stroke: #fff; }
.bulle--groupe { fill: #0b6aa5; }
.bulle--ville { fill: #2fa8de; }
.bulle--reste { fill: #5b7a94; fill-opacity: .75; }
.carte-svg a:hover .bulle { fill: var(--accent-fonce); }
.bulle-n { fill: #fff; font-weight: 700; text-anchor: middle; dominant-baseline: central; pointer-events: none; font-family: var(--police); }
.bulle-nom { fill: var(--encre); text-anchor: middle; dominant-baseline: hanging; font-family: var(--police); paint-order: stroke; stroke: #fff; stroke-linejoin: round; pointer-events: none; }
.carte-monde__aide { margin-top: 8px; }
/* Fiche : navigation dans la sélection */
.fiche-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin: 0 0 16px; font-size: .92rem; }
.fiche-nav a { text-decoration: none; }
.fiche-nav__fleches { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.vues-profil { margin: -8px 0 16px; }
/* Mot de passe : bouton afficher / masquer */
.mdp { position: relative; display: block; }
.mdp input { width: 100%; padding-right: 44px; }
.mdp__voir { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; color: var(--doux); cursor: pointer; border-radius: 6px; }
.mdp__voir:hover { color: var(--accent); background: var(--fond); }
.mdp__voir .mdp__barre { display: none; }
.mdp__voir.est-visible .mdp__barre { display: inline; }
.table-annuaire:has(details[open]) { min-height: 360px; }
.ouvrir { text-decoration: none; font-weight: 700; padding: 0 4px; border-radius: 4px; }
.ouvrir:hover { background: var(--accent-pale); }
.stat--alerte b { color: #a8323e; }

.sw--humain { background: var(--accent); } .sw--robot { background: #c9a227; } .sw--fauxnez { background: #d06a32; } .sw--bloque { background: #a8323e; }
.histo .b-humain { fill: var(--accent); } .histo .b-robot { fill: #c9a227; } .histo .b-fauxnez { fill: #d06a32; } .histo .b-bloque { fill: #a8323e; }
.tag--officiel { background: #e3f3ea; border-color: #b5dcc5; color: #22603f; }
.form-ip { display: inline; margin: 0; }
.sens { border: 0; background: none; padding: 0 2px; cursor: pointer; font-size: .9rem; opacity: .35; line-height: 1; }
.sens:hover, .sens--on { opacity: 1; }
.sens--non { color: #2e7d5b; font-size: .8rem; opacity: .7; cursor: help; }

/* Bandeau de consentement (Google Analytics) */
.cookies { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--trait); border-radius: 12px; box-shadow: 0 12px 40px rgba(11, 35, 64, .2); padding: 16px 20px; font-size: .92rem; }
.cookies p { margin: 0 0 10px; }
.cookies__boutons { display: flex; justify-content: flex-end; gap: 8px; margin: 0 !important; }

/* Annuaire › Table : tient dans la largeur, sans défilement horizontal */
.table-annuaire .tableau { min-width: 0; table-layout: auto; font-size: .88rem; }
.table-annuaire .tableau th, .table-annuaire .tableau td { padding: 8px 10px; }
.table-annuaire .tableau th { font-size: .72rem; letter-spacing: .04em; }
.table-annuaire .col-nom a { white-space: nowrap; }
.table-annuaire .col-auj .meta { display: block; font-size: .82rem; }
.table-annuaire .col-fonction, .table-annuaire .col-marque { font-size: .82rem; color: var(--doux); min-width: 110px; }
.table-annuaire td { overflow-wrap: break-word; }
.table-annuaire .col-nom { overflow-wrap: normal; }
@media (max-width: 1100px) { .table-annuaire .col-fonction { display: none; } }
@media (max-width: 900px) { .table-annuaire .col-pays, .table-annuaire .col-marque { display: none; } }
@media (max-width: 640px) { .table-annuaire .col-periode, .table-annuaire .col-ville { display: none; } .table-annuaire .col-nom a { white-space: normal; } }
.table-annuaire { overflow-x: hidden; overflow-y: auto; }

/* Filtres compacts sur petit écran : recherche visible, les autres derrière le bouton « Filtres » */
.filtres-bouton { display: none; }
@media (max-width: 760px) {
  .filtres { padding: 10px 12px 0; gap: 0 10px; }
  .filtres .champ { margin-bottom: 10px; flex-basis: calc(50% - 5px); }
  .filtres .champ > span { font-size: .78rem; margin-bottom: 2px; }
  .filtres input, .filtres select { padding: 7px 9px; font-size: .9rem; }
  .filtres .champ-large { flex: 1 1 calc(100% - 110px); order: 1; }
  .filtres-bouton { display: inline-block; order: 2; align-self: flex-end; margin-bottom: 10px; height: 38px; }
  .filtres .champ:not(.champ-large), .filtres .case { display: none; order: 3; }
  .filtres.ouverts .champ:not(.champ-large) { display: block; }
  .filtres.ouverts .case { display: flex; flex-basis: 100%; margin-bottom: 10px; }
  .filtres-actions { order: 4; margin-bottom: 10px; }
}

/* Annuaire › Frise centrée : l'année sur la ligne, le repère produit d'un côté, les arrivées de l'autre (alternés) */
.frise { list-style: none; margin: 16px 0 0; padding: 0; position: relative; }
.frise::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--trait); }
.frise__annee { --h-an: 34px; display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); align-items: start; padding: 0 0 36px; position: relative; }
.frise__point { grid-column: 2; grid-row: 1; display: flex; justify-content: center; position: relative; z-index: 1; }
.frise__an { display: inline-flex; align-items: center; height: var(--h-an); box-sizing: border-box; background: var(--accent); color: #fff; font: 600 1.05rem/1 var(--titres); padding: 0 12px; border-radius: 999px; box-shadow: 0 0 0 5px var(--fond); }
.frise__jalon { grid-column: 1; grid-row: 1; display: flex; justify-content: flex-end; }
.frise__gens { grid-column: 3; grid-row: 1; }
.frise__annee:nth-child(even) .frise__jalon { grid-column: 3; justify-content: flex-start; }
.frise__annee:nth-child(even) .frise__gens { grid-column: 1; text-align: right; }
.frise__annee:nth-child(even) .frise__membres { justify-items: end; }
.frise__jalon figure { margin: 0; max-width: 320px; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; }
.frise__jalon img { display: block; width: 100%; height: 160px; object-fit: cover; }
.frise__jalon figcaption { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.frise__jalon figcaption strong { font-size: .92rem; color: var(--accent); }
.frise__jalon figcaption small { font-size: .74rem; color: var(--doux); }
/* Libellé « n arrivées » centré sur la pastille de l'année */
.frise__titre { margin: 0 0 8px; min-height: var(--h-an); display: flex; align-items: center; font-size: 1rem; line-height: 1.2; }
.frise__nb { color: var(--doux); font-weight: 600; font-size: .9rem; }
.frise__membres { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.frise__membres a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--trait); border-radius: 10px; text-decoration: none; color: var(--encre); text-align: left; max-width: 100%; }
.frise__membres a:hover { border-color: var(--accent); }
.frise__membres a > span:not(.avatar) { display: flex; flex-direction: column; min-width: 0; }
.frise__membres .avatar.mini { width: 36px; height: 36px; font-size: .78rem; }
.frise__membres strong { font-size: .92rem; }
.frise__membres small { color: var(--doux); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frise__tous { display: inline-block; margin-top: 8px; font-weight: 600; font-size: .9rem; }
@media (max-width: 760px) {
  .frise::before { left: 32px; }
  .frise__annee, .frise__annee:nth-child(even) { grid-template-columns: 64px minmax(0, 1fr); }
  .frise__point { grid-column: 1; grid-row: 1 / span 2; justify-content: center; }
  .frise__annee { --h-an: 28px; }
  .frise__an { font-size: .85rem; padding: 0 8px; }
  .frise__annee .frise__gens, .frise__annee:nth-child(even) .frise__gens { grid-column: 2; grid-row: 1; text-align: left; padding-left: 8px; }
  .frise__annee .frise__jalon, .frise__annee:nth-child(even) .frise__jalon { grid-column: 2; grid-row: 2; justify-content: flex-start; padding: 10px 0 0 8px; }
  .frise__annee:nth-child(even) .frise__membres { justify-items: start; }
}
.filtre-actif { flex-basis: 100%; margin: 0 0 10px; font-size: .9rem; font-weight: 600; color: var(--accent); }
.filtre-actif a { text-decoration: none; margin-left: 6px; }
@media (max-width: 760px) { .vues a { padding: 6px 10px; font-size: .84rem; } }
.compteur-demandes { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: #c62f3e; color: #fff; font-size: .75rem; font-weight: 700; line-height: 1; vertical-align: 1px; }

/* Trafic › « Qui visite ? » : légende filtrante, nombres dans les blocs, blocs cliquables */
.qui-legende { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.qui-legende button { display: inline-flex; align-items: center; gap: 2px; font: inherit; font-size: .85rem; padding: 4px 10px 4px 0; border: 1px solid var(--trait); border-radius: 999px; background: var(--surface); color: var(--encre); cursor: pointer; }
.qui-legende button[aria-pressed=false] { opacity: .45; text-decoration: line-through; }
.qui-legende .muted { margin-left: 4px; font-weight: 600; }
.qui-plan .bloc { cursor: pointer; }
.qui-plan a:hover .bloc { opacity: .82; }
.qui-plan .bloc-n { fill: #fff; font-size: 10px; font-weight: 700; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.qui-plan .axe { font-size: 10px; fill: var(--doux); }
.periodes { margin: 0 0 12px; }
.histo .b-n { fill: #fff; font-size: 10px; font-weight: 700; text-anchor: middle; dominant-baseline: central; pointer-events: none; }

/* Adhésion : deux voies côte à côte (cooptation / demande au bureau), affichage sans JavaScript */
.voies__choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin: 4px 0 16px; }
.voie { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border: 2px solid var(--trait); border-radius: var(--rayon); background: var(--surface); cursor: pointer; }
.voie input { margin-top: 4px; accent-color: var(--accent); }
.voie span { display: flex; flex-direction: column; gap: 4px; }
.voie small { color: var(--doux); font-size: .88rem; }
.voie:has(input:checked) { border-color: var(--accent); background: var(--accent-pale); }
.voies:has(#voie-cooptation:checked) .voie-bloc--bureau, .voies:has(#voie-bureau:checked) .voie-bloc--cooptation { display: none; }

.appel__voies { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.appel__voies li { background: rgba(255, 255, 255, .6); border: 1px solid var(--trait); border-radius: 10px; padding: 10px 14px; font-size: .95rem; }
.appel__voies strong { display: block; color: var(--accent); }
.appel > div { flex: 1 1 420px; }

/* Bloc « Vous avez travaillé chez Dassault Systèmes ? » : bouton sur la ligne des deux voies, aligné en haut */
.appel > div { flex: 1 1 100%; }
.appel__rangee { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 16px; margin-top: 8px; }
.appel__rangee .appel__voies { flex: 1 1 520px; margin: 0; }
.appel__rangee .btn { flex: 0 0 auto; }

/* Accueil : modèle 3D CATIA V4 sur la droite du bandeau (grand écran seulement) */
.hero-modele { display: none; }
@media (min-width: 900px) {
  .hero--modele .hero-in { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); column-gap: 32px; margin: 0 auto; }
  .hero--modele .hero-in > :not(.hero-modele) { grid-column: 1; }
  .hero-modele { display: flex; flex-direction: column; grid-column: 2; grid-row: 1 / span 6; align-self: center; margin: 0; opacity: 0; transition: opacity .8s; }
  .hero-modele.est-pret { opacity: 1; }
  .hero-modele canvas { width: 100%; aspect-ratio: 1; cursor: grab; touch-action: none; }
  .hero-modele canvas:active { cursor: grabbing; }
  .hero-modele figcaption { text-align: center; font-size: .82rem; color: #c3d2e0; margin-top: 4px; }
  .hero-modele figcaption strong { color: #fff; }
  .hero-modele figcaption span { font-size: .74rem; opacity: .75; }
  .hero::after { opacity: .5; }
}

/* Annuaire (grand écran) : recherche sur toute la largeur, puis les cinq listes sur une ligne (ville à côté du pays) */
@media (min-width: 761px) {
  form[data-filtre-auto].filtres { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 14px; align-items: end; }
  form[data-filtre-auto] .champ-large, form[data-filtre-auto] .filtre-actif { grid-column: 1 / -1; }
  form[data-filtre-auto] .champ { margin-bottom: 12px; }
  form[data-filtre-auto] .case { grid-column: 1 / span 3; align-self: center; margin-bottom: 14px; }
  form[data-filtre-auto] .filtres-actions { grid-column: 4 / -1; justify-self: end; margin-bottom: 14px; }
}
.frise__jalon figcaption small a { color: inherit; }

/* Frise : visuel typographique quand aucune image libre n'existe pour l'année */
.frise__visuel { height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0 16px; text-align: center;
  background: radial-gradient(circle at 80% 20%, rgba(47, 168, 222, .35), transparent 55%), linear-gradient(135deg, var(--nuit), #0f3a63); color: #fff; }
.frise__visuel span { font: 300 clamp(1.4rem, 3vw, 2.1rem)/1.1 var(--titres); letter-spacing: .02em; }
.frise__visuel small { color: #9fc3e0; font-size: .8rem; letter-spacing: .2em; }
.frise__annee--decennie { --h-an: 42px; }
.frise__annee--decennie .frise__an { font-size: 1.35rem; padding: 0 16px; background: var(--nuit); }
@media (max-width: 760px) { .frise__annee--decennie { --h-an: 32px; } .frise__annee--decennie .frise__an { font-size: 1rem; padding: 0 9px; } }

/* Tableau de bord admin : bloc Fréquentation */
.rapport-entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.rapport-entete p { margin: 0; }
.rapport-entete strong { color: var(--encre); }
.legende-histo { font-size: .82rem; color: var(--doux); display: flex; align-items: center; gap: 6px; }
.legende-histo span { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.legende-histo .pastille-vues { background: var(--accent); }
.legende-histo .pastille-visiteurs { background: var(--ciel); margin-left: 8px; }
.legende-histo a { margin-left: 12px; }
.rapport-trafic .histo { max-height: 220px; }
.colonnes-rapport h3 { font-size: .95rem; color: var(--doux); font-weight: 600; margin: 4px 0 10px; }
.barres-rapport { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.barres-rapport a { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; border-radius: 6px; text-decoration: none; color: var(--encre); overflow: hidden; }
.barres-rapport a:hover { background: var(--accent-pale); }
.barres-rapport .br-nom, .barres-rapport .br-n { position: relative; z-index: 1; }
.barres-rapport .br-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barres-rapport .br-n { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--accent); }
.barres-rapport .br-barre { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent-pale); border-left: 3px solid var(--accent); border-radius: 6px; }
.barres-rapport a:hover .br-barre { background: transparent; }
.chiffres + .encart, .chiffres + .chiffres { margin-top: 16px; }
/* Demandes en attente : accepter / refuser directement */
.boutons-demande { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.boutons-demande form { margin: 0; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ok:hover { background: #24552d; border-color: #24552d; }
.actions-demande .lien-examiner { font-size: .85rem; }
td .boutons-demande { margin-top: 6px; }
.courbe-trafic .l-vues { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; pointer-events: none; }
.courbe-trafic .p-vues { fill: var(--surface); stroke: var(--accent); stroke-width: 2; pointer-events: none; }
.courbe-trafic .n-vues { font-size: 11px; font-weight: 600; fill: var(--accent); pointer-events: none; }
.courbe-trafic .zone-clic { fill: transparent; }
.courbe-trafic a:hover .b-visiteurs { fill: var(--accent-fonce); }
.courbe-trafic a:hover .zone-clic { fill: rgba(0, 83, 134, .05); }
.legende-histo .pastille-vues { height: 3px !important; width: 14px !important; }
/* Administration › Modèles 3D */
.interrupteur { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 0; cursor: pointer; font: inherit; font-size: .85rem; color: var(--doux); }
.interrupteur span { position: relative; width: 36px; height: 20px; border-radius: 10px; background: var(--trait); transition: background .15s; flex: none; }
.interrupteur span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: left .15s; }
.interrupteur[aria-checked="true"] { color: var(--ok); font-weight: 600; }
.interrupteur[aria-checked="true"] span { background: var(--ok); }
.interrupteur[aria-checked="true"] span::after { left: 18px; }
.tableau-modeles tr.inactif td:nth-child(2) strong { color: var(--doux); }
.actions-modele { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.actions-modele form { margin: 0; }
.actions-modele details[open] { flex-basis: 100%; }
.actions-modele details .formulaire { margin-top: 8px; min-width: min(560px, 80vw); }
.grille-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 16px; }
.encart > h2:first-child { margin-top: 0; }
.form-lien-connexion { margin: 4px 0 0; font-size: .82rem; }


.btn-icone { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--trait); border-radius: 8px; background: var(--surface); color: var(--accent); cursor: pointer; list-style: none; }
.btn-icone::-webkit-details-marker { display: none; }
.btn-icone:hover { background: var(--accent-pale); border-color: var(--accent); }
.btn-icone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fenetre-modele { width: min(640px, 92vw); padding: 0; border: 0; border-radius: 14px; background: radial-gradient(circle at 40% 40%, #1d4a75, var(--nuit)); overflow: hidden; }
.fenetre-modele::backdrop { background: rgba(5, 15, 30, .6); }
.fenetre-modele .scene .hero-modele { display: block; margin: 0; opacity: 0; transition: opacity .5s; }
.fenetre-modele .scene .hero-modele.est-pret { opacity: 1; }
.fenetre-modele canvas { display: block; width: 100%; aspect-ratio: 1; cursor: grab; touch-action: none; }
.fenetre-modele .fermer { position: absolute; top: 8px; right: 10px; z-index: 1; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.fenetre-modele .fermer:hover { background: rgba(255, 255, 255, .25); }
.actions-modele { flex-wrap: nowrap; }
.btn-icone-danger { color: var(--alerte); }
.btn-icone-danger:hover { background: var(--alerte-pale); border-color: var(--alerte); }
.tableau-modeles td:last-child { width: 1%; white-space: nowrap; }
.fenetre-edition { width: min(640px, 94vw); border: 0; border-radius: 14px; padding: 24px; box-shadow: var(--ombre); }
.fenetre-edition::backdrop { background: rgba(5, 15, 30, .5); }
.fenetre-edition h2 { margin: 0 0 16px; font-size: 1.2rem; }
.fenetre-edition .actions-ligne { display: flex; gap: 8px; flex-wrap: wrap; }

/* Administration › Stockage */
.stock-entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 14px; }
.stock-total { margin: 0; font-size: 1.05rem; }
.stock-total strong { font-size: 1.6rem; color: var(--accent); }
.stock-alerte { color: var(--alerte); font-weight: 700; }
.stock-quota { display: flex; align-items: center; gap: 8px; margin: 0; }
.stock-quota input { width: 7em; padding: 5px 8px; }
.stock-barre { display: flex; height: 18px; border-radius: 9px; overflow: hidden; background: var(--fond); border: 1px solid var(--trait); margin-bottom: 18px; }
.stock-barre .seg { width: 0; min-width: 0; }
.stock-barre .seg + .seg { box-shadow: inset 1px 0 0 rgba(255,255,255,.7); }
.pastille-seg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 0; }
.seg-1 { background: #005386; } .seg-2 { background: #2fa8de; } .seg-3 { background: #0b2340; } .seg-4 { background: #7fb3d5; }
.seg-5 { background: #5b7a94; } .seg-6 { background: #a3c4dc; } .seg-7 { background: #2f6b3a; } .seg-8 { background: #c08a2e; }
.seg-9 { background: #8c6bb1; } .seg-10 { background: #a33a2b; } .seg-11 { background: #b9c9d6; }
.tableau-stock .nombre { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tableau-stock tfoot th { text-align: left; }
.tableau-stock tfoot th.nombre { text-align: right; }
.stock-purge { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--trait); max-width: 560px; }
.stock-purge h3 { margin: 0 0 10px; }
.stock-purge fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.stock-purge legend { font-weight: 600; margin-bottom: 8px; }
.stock-purge .case { margin-bottom: 6px; }
#trafic { margin-top: 24px; }
@media (max-width: 640px) { .tableau-stock .col-desc { display: none; } .tableau-stock td strong { font-weight: 600; } }

/* Invitations (inviter.php, bandeau de l'inscription) */
.invitation-bandeau { display: flex; gap: 12px; align-items: center; }
.invitation-bandeau .avatar { flex: none; }
.parrain-fixe { display: block; padding: 10px 0 2px; }
.partage { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 16px 18px 6px; margin-bottom: 24px; }
.partage input[readonly], .partage textarea[readonly] { background: var(--fond); }
.btn-linkedin { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.btn-linkedin:hover { background: #004182; border-color: #004182; color: #fff; }
.actions-cellule { white-space: nowrap; }
.actions-cellule form { display: inline-block; margin: 2px 4px 2px 0; }
.appel-inviter { margin: 0 0 12px; }
.encart-confirmer { border-width: 2px; }

/* Récapitulatif (Administration) */
.recap-etat { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.recap-etat p { margin: 0; }
.recap-liste { margin: 0; padding-left: 18px; }
.recap-liste li { margin: 2px 0; }
.recap-sans { color: var(--doux); font-style: italic; }
.partage .actions-ligne { margin-bottom: 18px; }
.champ input[readonly] { background: var(--fond); color: var(--doux); }
.recap-liste { list-style: none; padding: 0; display: grid; gap: 6px; }
.recap-liste li { display: flex; align-items: center; gap: 8px; margin: 0; }
.recap-liste .avatar.mini { width: 28px; height: 28px; font-size: .7rem; flex: none; }
/* Fenêtres : aperçu d'e-mail, rapport d'envoi */
.fenetre-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.fenetre-tete h2 { margin: 0; }
.fenetre-tete .fermer { border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--doux); padding: 0 4px; }
.fenetre-large { width: min(920px, 94vw); }
.fenetre-mail { width: min(720px, 96vw); padding: 16px; }
.fenetre-mail iframe { display: block; width: 100%; height: min(78vh, 900px); border: 1px solid var(--trait); border-radius: 10px; background: #f3f6f9; }
/* Éditeur visuel (actualités) */
.editeur { border: 1px solid var(--trait); border-radius: 10px; background: var(--surface); overflow: hidden; }
.editeur:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-pale); }
.editeur__barre { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-bottom: 1px solid var(--trait); background: var(--fond); }
.editeur__barre button { min-width: 34px; height: 32px; padding: 0 8px; border: 1px solid transparent; border-radius: 6px; background: none; font: 700 .9rem/1 var(--police); color: var(--encre); cursor: pointer; }
.editeur__barre button:nth-child(2) { font-style: italic; }
.editeur__barre button:hover { background: var(--surface); border-color: var(--trait); }
.editeur__barre button[aria-pressed="true"] { background: var(--accent-pale); border-color: var(--accent); color: var(--accent); }
.editeur__zone { min-height: 240px; max-height: 60vh; overflow-y: auto; padding: 12px 14px; line-height: 1.6; outline: none; }
.editeur__zone p { margin: 0 0 .8em; }
.editeur__zone h3 { margin: .6em 0 .4em; font-size: 1.1rem; }
.editeur__zone a { color: var(--accent); }
.profils-vus .br-nom { display: inline-flex; align-items: center; gap: 6px; }
.profils-vus .avatar.mini { width: 22px; height: 22px; font-size: .6rem; flex: none; }
.logo-image { display: block; height: 42px; width: auto; max-width: 160px; object-fit: contain; }
.apercu-logo img { display: block; height: 56px; width: auto; background: var(--surface); border: 1px solid var(--trait); border-radius: 8px; padding: 6px; }
.rangee-couleurs input[type="color"] { width: 100%; height: 44px; padding: 4px; border: 1px solid var(--trait); border-radius: 8px; background: var(--surface); cursor: pointer; }

/* Cartes : légère montée et ombre au survol (souris seulement) */
.carte-actu, .carte-evenement, .carte-membre, .carte-offre, .frise__membres a, .frise__jalon figure {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
@media (hover: hover) {
  .carte-actu:hover, .carte-evenement:hover, .carte-membre:hover, .carte-offre:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(11, 35, 64, .13); border-color: color-mix(in srgb, var(--accent) 35%, var(--trait)); }
  .frise__membres a:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(11, 35, 64, .12); }
  .frise__jalon figure:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 12px 28px rgba(11, 35, 64, .15); }
}

/* Frise : les images apparaissent en glissant depuis leur côté quand elles arrivent à l'écran (site.js ajoute la classe
   « apparitions » seulement si le navigateur sait l'observer : sans script, tout reste visible) */
.apparitions .frise__jalon figure:not(.visible) { opacity: 0; transform: translateX(-36px) scale(.96); }
.apparitions .frise__annee:nth-child(even) .frise__jalon figure:not(.visible) { transform: translateX(36px) scale(.96); }
.apparitions .frise__jalon figure { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1), box-shadow .22s ease; }
@media (max-width: 760px) {
  .apparitions .frise__jalon figure:not(.visible), .apparitions .frise__annee:nth-child(even) .frise__jalon figure:not(.visible) { transform: translateY(28px) scale(.97); }
}
@media (prefers-reduced-motion: reduce) {
  .carte-actu, .carte-evenement, .carte-membre, .carte-offre, .frise__membres a, .frise__jalon figure { transition: none !important; transform: none !important; }
  .apparitions .frise__jalon figure:not(.visible) { opacity: 1; }
}
