/* ****************************************************************************************************************
   Thème « moderne » (chantier 12, lot 5) : présentation modernisée du site public, selon la maquette du 2026-10-26
   (tools/maquette-site-public/). CSS écrit à la main, sans Sass. Aucun style en ligne dans les vues (CSP stricte).
   Couleurs : celles de l'identité du MS21 (rouge, anthracite), valeurs par défaut du thème ; une autre installation
   pourra les remplacer (chantier 23, lots 3-4).
   Sommaire : 1. réglages  2. bases  3. en-tête et menu  4. boutons, étiquettes, alertes  5. pages  6. accueil
   7. cartes  8. listes et menu latéral  9. rubriques, fiche, classement  10. vidéos et audios  11. formulaires
   12. textes de l'installation  13. pied de page  14. fenêtres  15. écrans moyens et téléphones
   **************************************************************************************************************** */

/* ---- 1. réglages */
@font-face {
    font-family: Overpass;
    src: url('../../../../media/font/overpass-black-webfont.woff2') format('woff2'),
         url('../../../../media/font/overpass-black-webfont.woff') format('woff');
    font-weight: 900;
    font-display: swap;
}

:root {
    --rouge: hsl(0, 60%, 45%);
    --rouge-trait: hsl(0, 55%, 82%);   /* chantier 38, lot 1 (IU-02) : filet des alertes */
    --rouge-trait-2: hsl(0, 50%, 88%); /* filet sous une annonce épinglée */
    --rouge-fonce: hsl(0, 62%, 36%);
    --rouge-pale: hsl(0, 70%, 96%);
    --anthracite: hsl(195, 5%, 20%);
    --anthracite-2: hsl(195, 5%, 28%);
    --texte: hsl(195, 6%, 16%);
    --texte-2: hsl(195, 4%, 36%);
    --fond: #fff;
    --fond-2: hsl(30, 10%, 96%);
    --fond-3: hsl(30, 8%, 92%);
    --trait: hsl(30, 6%, 86%);
    --trait-2: hsl(30, 6%, 78%);
    --court-etiquette: hsl(190, 28%, 88%);
    --court-texte: hsl(190, 40%, 24%);
    --long-etiquette: hsl(50, 60%, 85%);
    --long-texte: hsl(40, 70%, 24%);
    --court-fond: hsl(190, 30%, 97%);  /* fond des cartes « texte court » (bleu, cf. texte d'accueil) */
    --long-fond: hsl(50, 70%, 96%);    /* fond des cartes « texte long » (jaune) */
    --bandeau-fond: #f9392e;
    --titres: Overpass, system-ui, sans-serif;
    --rayon: 12px;
    --ombre: 0 1px 2px rgba(0, 0, 0, .05), 0 6px 18px rgba(0, 0, 0, .05);
    --ombre-forte: 0 2px 4px rgba(0, 0, 0, .06), 0 12px 28px rgba(0, 0, 0, .09);
    --largeur: 1180px;
    --menu-hauteur: 58px;
}

/* ---- 2. bases */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* pied de page en bas de l'écran sur une page courte */
    font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--texte);
    background: var(--fond);
}
body.scrollhidden { overflow: hidden; }
main { flex: 1 0 auto; display: block; }
main:focus { outline: none; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; }
[id] { scroll-margin-top: calc(var(--menu-hauteur) + 16px); } /* ancres sous le menu fixe */
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 2px; border-radius: 3px; }
[hidden] { display: none !important; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.btn-nu { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.aller-contenu { position: absolute; left: -999px; top: 0; z-index: 30; background: #fff; padding: .6rem 1rem; }
.aller-contenu:focus { left: 1rem; }

/* ---- 3. en-tête et menu */
/* barre du compte connecté (revue le 2026-11-11) : nom à gauche, boutons à droite ; une seule ligne sur téléphone */
.barre-connecte { background: #111; color: #e8eaeb; font-size: 14.5px; }
.barre-connecte-in {
    max-width: var(--largeur); margin: 0 auto; padding: 6px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem;
}
.barre-nom { display: flex; align-items: center; gap: .45rem; margin: 0; font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre-nom svg { width: 17px; height: 17px; flex: none; fill: currentColor; opacity: .8; }
.barre-role { margin-left: .2rem; font-size: 12px; font-weight: 700; padding: .05rem .5rem; border-radius: 999px; background: var(--rouge); color: #fff; }
.barre-actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.barre-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 34px; padding: .2rem .85rem;
    border: 1px solid hsla(0, 0%, 100%, .35); border-radius: 999px; color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.barre-btn svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.barre-btn:hover { background: hsla(0, 0%, 100%, .12); border-color: #fff; }
.barre-btn.principal { background: var(--rouge); border-color: var(--rouge); }
.barre-btn.principal:hover { background: var(--rouge-fonce); border-color: var(--rouge-fonce); }
.barre-btn.principal svg { fill: currentColor; stroke: none; }
@media (max-width: 600px) {
    .barre-connecte-in { padding: 6px 10px; }
    .barre-nom { display: none; } /* l'icône « Compte » du menu mène au compte */
    .barre-actions { flex: 1; }
    .barre-btn { flex: 1 1 0; min-height: 40px; }
}

.bandeau { position: relative; overflow: hidden; background: var(--bandeau-fond); color: #fff; }
.bandeau-image { position: absolute; left: 0; top: 0; height: 100%; width: auto; max-width: none; }
.bandeau-in {
    position: relative; max-width: var(--largeur); margin: 0 auto; padding: 0 20px; height: 170px;
    display: flex; align-items: center; justify-content: flex-end; gap: 2.2rem;
}
.marque { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.marque svg { width: 170px; height: auto; display: block; }
.marque #slogan { font: italic 900 21px/1.05 var(--titres); text-transform: uppercase; letter-spacing: .01em; }
.marque #slogan span { display: block; }
.btn-adherent {
    align-self: flex-start; margin-top: 16px; padding: .45rem 1rem; border: 2px solid #fff; border-radius: 999px;
    background: var(--anthracite); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none;
    white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.btn-adherent:hover { background: #fff; color: var(--anthracite); }
/* chantier 32, retouche R2 : bandeau d'un espace (image, nom, logo) ; couleurs dans style-espace_N.html ; les classes de
   composition viennent de Espace::compositionBandeau(), aperçu jumeau dans media/css/admin.css */
.bandeau-espace { --fond-espace: var(--anthracite); --nom-espace: #fff; background-color: var(--fond-espace); }
.bandeau-espace-image { position: absolute; top: 0; height: 100%; width: auto; max-width: 100%; object-fit: cover; } /* entière ; rognée seulement si elle est plus large que l'écran, du côté opposé à sa position */
.image-gauche .bandeau-espace-image { left: 0; object-position: left center; }
.image-centre .bandeau-espace-image { left: 50%; transform: translateX(-50%); }
.image-droite .bandeau-espace-image { right: 0; object-position: right center; }
.bandeau-espace .marque { gap: 20px; min-width: 0; max-width: 100%; color: var(--nom-espace); }
.bandeau-espace.logo-apres .marque { flex-direction: row-reverse; }
/* plaque de la couleur de fond derrière le nom : elle ne se voit que là où il passe sur l'image */
.bandeau-espace.avec-image .marque { max-width: 50%; padding: 12px 18px; border-radius: 10px; background: var(--fond-espace); }
.bandeau-espace.avec-image.nom-droite .marque { max-width: calc(54% - 190px); } /* sa moitié, moins le bouton du compte */
.bandeau-espace .marque.marque-image { position: absolute; inset: 0; max-width: none; padding: 0; background: none; }
.bandeau-espace-logo { display: block; flex: 0 1 auto; min-width: 0; max-width: 260px; max-height: 120px; object-fit: contain; }
.bandeau-espace-logo:not(:only-child) { flex-shrink: 0; max-width: 150px; }
.bandeau-espace-nom { min-width: 0; font: 900 38px/1.1 var(--titres); overflow-wrap: anywhere; text-wrap: balance; }
.bandeau-espace.nom-long .bandeau-espace-nom { font-size: 28px; }
.bandeau-espace .btn-adherent { flex: none; position: relative; }
.bandeau-espace.nom-gauche .bandeau-in { justify-content: flex-start; }
.bandeau-espace.nom-gauche .btn-adherent { margin-left: auto; }
.bandeau-espace.nom-centre .bandeau-in { justify-content: center; padding: 0 180px; } /* centré, bouton du compte posé à droite */
.bandeau-espace.nom-centre .btn-adherent { position: absolute; top: 0; right: 20px; }
@media (max-width: 1080px) {
    .bandeau-espace-nom { font-size: 28px; }
    .bandeau-espace.nom-long .bandeau-espace-nom { font-size: 20px; }
    .bandeau-espace-logo:not(:only-child) { max-width: 84px; }
    .bandeau-espace .marque { gap: 12px; }
}

.menu { position: sticky; top: 0; z-index: 10; background: var(--anthracite); box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.menu-in {
    max-width: var(--largeur); margin: 0 auto; padding: 0 12px; min-height: var(--menu-hauteur);
    display: flex; align-items: center; gap: .5rem;
}
.menu ul { list-style: none; margin: 0; padding: 0; }
#menu-liste { display: flex; flex-wrap: wrap; align-self: stretch; }
#menu-liste > li { display: flex; }
#menu-liste > li > a, .parcourir-btn {
    display: flex; align-items: center; gap: .3rem; padding: 0 13px; color: #fff; text-decoration: none;
    font: inherit; font-size: 15.5px; font-weight: 500; background: none; border: 0; cursor: pointer;
    border-bottom: 3px solid transparent; border-top: 3px solid transparent; /* trait de la page en cours */
}
#menu-liste > li > a:hover, .parcourir-btn:hover { background: var(--anthracite-2); }
#menu-liste > li > a[aria-current="page"], .parcourir-btn.actif { border-bottom-color: var(--rouge); font-weight: 700; }
/* chantier 12, lot 8 : bouton « Parcourir » et son panneau de tuiles (maquette du 2026-11-16) */
.parcourir-btn { gap: .45rem; font-weight: 600; }
.parcourir-btn .grille-ico { width: 18px; height: 18px; fill: currentColor; }
.parcourir-btn .chevron { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.parcourir-btn[aria-expanded="true"] { background: var(--anthracite-2); }
.parcourir-btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.panneau {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: #fff; border-top: 3px solid var(--rouge);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .22); max-height: calc(100vh - var(--menu-hauteur) - 20px); overflow-y: auto;
}
@media (min-width: 761px) { .panneau:not(.ouvert) { display: none; } } /* pas d'attribut hidden : sur téléphone, les tuiles restent dans le menu */
.panneau-in { max-width: var(--largeur); margin: 0 auto; padding: 24px 20px 20px; }
.panneau-groupe + .panneau-groupe { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--fond-3); }
.panneau-titre { margin: 0 0 12px; font: 900 14px/1.2 var(--titres); letter-spacing: .08em; text-transform: uppercase; color: var(--texte-2); }
.menu .lanceur { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 6px; }
.lanceur a {
    display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px 10px; border-radius: 12px;
    color: var(--anthracite); text-align: center; text-decoration: none; font-size: 14.5px; font-weight: 600; line-height: 1.25;
}
.lanceur a:hover { background: var(--fond-2); }
.lanceur a:focus-visible { outline: 3px solid var(--rouge); outline-offset: 0; }
.lanceur img, .lanceur .tuile-picto { width: 60px; height: 60px; padding: 9px; border-radius: 16px; background: var(--anthracite); object-fit: contain; transition: transform .15s; }
.lanceur a:hover img { transform: translateY(-2px); }
.panneau-espaces .lanceur img, .panneau-espaces .lanceur .tuile-picto { background: var(--rouge); }
.lanceur a[aria-current="page"] { background: var(--rouge-pale); color: var(--rouge-fonce); }
.lanceur a[aria-current="page"] img, .lanceur a[aria-current="page"] .tuile-picto { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--rouge); }
.panneau-pied { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--fond-3); }
.panneau-pied a { font-size: 15px; font-weight: 600; color: var(--rouge-fonce); }
.panneau-pied a[aria-current="page"] { font-weight: 800; }
.voile { position: fixed; inset: 0; z-index: 9; background: rgba(20, 24, 26, .45); }
@media (prefers-reduced-motion: reduce) { .lanceur img, .parcourir-btn .chevron { transition: none; } }
.burger, .adh-mobile { display: none; }

.recherche {
    margin-left: auto; display: flex; align-items: center; min-width: 240px;
    background: #fff; border-radius: 999px; padding: 2px 2px 2px 14px;
}
.recherche input {
    flex: 1; min-width: 0; padding: 7px 0; border: 0; outline: 0; background: transparent;
    font: inherit; font-size: 15px; color: var(--texte);
}
.recherche:focus-within { outline: 3px solid var(--rouge); outline-offset: 2px; }
.recherche button {
    display: grid; place-items: center; width: 34px; height: 34px; flex: none;
    border: 0; border-radius: 50%; background: var(--rouge); color: #fff; cursor: pointer;
}
.recherche svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }

#back_top {
    position: fixed; right: 18px; bottom: 18px; z-index: 9; width: 44px; height: 44px;
    display: grid; place-items: center; border-radius: 50%; background: var(--anthracite); color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3); opacity: 0; visibility: hidden; transition: opacity .2s;
}
#back_top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
#back_top:hover { background: var(--rouge); }

/* ---- 4. boutons, étiquettes, alertes */
.btn, .btn-sec {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 42px;
    padding: .55rem 1.1rem; border-radius: 8px; font: inherit; font-weight: 600; font-size: 15.5px; line-height: 1.25;
    text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn { background: var(--rouge); color: #fff; border: 2px solid var(--rouge); }
.btn:hover { background: var(--rouge-fonce); border-color: var(--rouge-fonce); }
.btn-sec { background: #fff; color: var(--anthracite); border: 2px solid var(--trait); }
.btn-sec:hover { border-color: var(--anthracite); }
.btn-sec svg { width: 17px; height: 17px; fill: currentColor; flex: none; }
.btn-grand { min-height: 48px; padding: .7rem 1.4rem; font-size: 16.5px; }
.btn-danger { background: var(--rouge-fonce); border-color: var(--rouge-fonce); }
.poids { font-weight: 400; opacity: .9; font-size: 14px; }
.voir { color: var(--rouge-fonce); font-weight: 600; text-decoration: none; white-space: nowrap; }
.voir:hover { text-decoration: underline; }
.tag {
    display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: 12.5px; font-weight: 700;
    letter-spacing: .02em; line-height: 1.5; white-space: nowrap;
}
.tag.court { background: var(--court-etiquette); color: var(--court-texte); }
.tag.long { background: var(--long-etiquette); color: var(--long-texte); }
.tag.format { background: var(--fond-3); color: var(--anthracite); } /* document Word, Excel… ou rédigé (recette du 2026-11-09) */
.chapo-form { margin: -.3rem 0 1.2rem; color: var(--texte-2); } /* phrase sous le titre d'un formulaire (« Se connecter ») */
/* chantier 20, lot K : temps de lecture estimé, « 8 min de lecture » (horloge en masque, couleur du texte) */
.duree { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.duree::before {
    content: ""; width: 14px; height: 14px; flex: none; background: currentColor; opacity: .8;
    -webkit-mask: url('../image/horloge.svg') center / contain no-repeat; mask: url('../image/horloge.svg') center / contain no-repeat;
}
.reserve {
    display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: 12.5px; font-weight: 700;
    background: var(--anthracite); color: #fff;
}
.alerte {
    margin: 0 0 1.2rem; padding: .8rem 1rem; border-radius: 10px; border: 1px solid var(--rouge-trait);
    background: var(--rouge-pale); color: var(--rouge-fonce); font-weight: 600; font-size: 15.5px;
}
.alerte.succes { border-color: hsl(140, 30%, 75%); background: hsl(140, 40%, 95%); color: hsl(140, 45%, 22%); }
.alerte.attention { border-color: hsl(45, 70%, 70%); background: hsl(48, 90%, 94%); color: hsl(35, 70%, 24%); }

/* ---- 5. pages : conteneur, fil d'Ariane, titre */
.page { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 24px 20px 64px; }
.page-moyenne { max-width: 900px; }
.page-etroite { max-width: 600px; padding-top: 56px; } /* formulaires seuls (connexion, compte) : détachés du menu */
.ariane ol { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; font-size: 14.5px; color: var(--texte-2); }
.ariane li + li::before { content: "›"; margin: 0 .5rem; }
.ariane a { color: var(--rouge-fonce); text-decoration: none; }
.ariane a:hover { text-decoration: underline; }
.page-tete { margin: 0 0 1.8rem; }
.page h1, .principal h1 { margin: 0 0 .5rem; font: 900 38px/1.12 var(--titres); color: var(--anthracite); }
.page-tete h1::after, .principal-tete h1::after {
    content: ""; display: block; width: 56px; height: 4px; margin-top: .6rem; border-radius: 2px; background: var(--rouge);
}
.chapo { margin: .8rem 0 0; font-size: 19px; line-height: 1.55; color: var(--texte-2); max-width: 46rem; }
.surtitre { margin: 0 0 .3rem; font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--rouge-fonce); }
.compte { margin: .6rem 0 0; font-size: 15px; color: var(--texte-2); }
.actions-page { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.page-erreur { padding-top: 56px; text-align: center; }
.page-erreur .chapo { margin-left: auto; margin-right: auto; }
.page-erreur .actions-page { justify-content: center; }
.cadre {
    padding: 28px 30px; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre);
}
.cadre > h1:first-child { font-size: 30px; margin-bottom: 1.2rem; }

/* ---- 6. accueil */
.intro { background: linear-gradient(180deg, var(--fond-2), #fff); }
.intro-in { max-width: var(--largeur); margin: 0 auto; padding: 44px 20px 32px; }
.intro-in::after { content: ""; display: block; clear: both; }
.bloc { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 40px 20px; }
.bloc.gris { max-width: none; background: var(--fond-2); }
.bloc.gris > * { max-width: calc(var(--largeur) - 40px); margin-left: auto; margin-right: auto; }
/* chantier 32, lot 1 (variante B, choix de Loïc du 2026-11-25) : titre en onglet rouge posé sur un filet de toute la largeur */
.bloc-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; border-bottom: 3px solid var(--rouge); }
.bloc h2 { font: 900 28px/1.15 var(--titres); margin: 0; color: var(--anthracite); }
.bloc h2::after { content: ""; display: block; width: 48px; height: 4px; margin-top: .5rem; border-radius: 2px; background: var(--rouge); }
.bloc-tete h2 { display: flex; align-items: center; min-height: 46px; padding: 8px 18px 2px; border-radius: 8px 8px 0 0; background: var(--rouge); color: #fff; font-size: 24px; line-height: 1.15; } /* plus de marge en haut : la police Overpass se dessine un peu haut */
.bloc-tete h2::after { display: none; }
.bloc-tete .voir { padding-bottom: .45rem; }
.tuiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tuile {
    display: flex; gap: 14px; align-items: center; height: 100%; padding: 16px;
    background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); text-decoration: none;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.tuile:hover { border-color: var(--rouge); transform: translateY(-2px); box-shadow: var(--ombre); }
.tuile img, .tuile-picto { width: 64px; height: 64px; flex: none; object-fit: contain; padding: 8px; background: var(--anthracite); border-radius: 12px; }
.tuile-picto { display: block; }
.tuile strong { display: block; font-size: 17.5px; line-height: 1.2; color: var(--anthracite); } /* chantier 28 : titre resserré */
.tuile small { display: block; margin-top: .15rem; font-size: 14.5px; line-height: 1.4; color: var(--texte-2); }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); grid-auto-rows: auto; gap: 24px; } /* chantier 38 (IU-42) : hauteur égale par rangée seulement */
.grille > * { min-width: 0; }
.videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 18px 28px; }
.videos a { display: flex; gap: 16px; align-items: center; text-decoration: none; }
.videos img { width: 160px; aspect-ratio: 16 / 9; flex: none; object-fit: cover; border-radius: 8px; display: block; background: var(--anthracite); }
.videos .v-titre { display: block; font-weight: 600; line-height: 1.35; font-size: 16px; }
.videos a:hover .v-titre { text-decoration: underline; text-decoration-color: var(--rouge); }
.videos time { font-size: 14px; color: var(--texte-2); }
/* chantier 12, lot 8 : accueil, annonces du site et prochains rendez-vous dans les cadres des espaces (titres en Anton),
   audios récents dans la liste compacte des vidéos */
.accueil-annonces, .accueil-agenda { --affiche: Anton, Impact, "Arial Narrow", sans-serif; }
.accueil-annonces { padding-bottom: 8px; }
.accueil-annonces .tdb-cadre { border-top-color: var(--rouge); }
.accueil-agenda .tdb-cadre { padding-bottom: 14px; }
.accueil-agenda .liste-rdv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.accueil-agenda .tdb-frise::before { display: none; } /* frise verticale seulement sur téléphone : à l'horizontale, le trait barrerait les titres */
.accueil-agenda .liste-rdv > .rdv + .rdv { border-left: 1px solid var(--fond-3); padding-left: 22px; }
.accueil-agenda .rdv-tete { align-items: flex-start; }
@media (max-width: 900px) {
    .accueil-agenda .liste-rdv { grid-template-columns: minmax(0, 1fr); }
    .accueil-agenda .liste-rdv > .rdv + .rdv { border-left: 0; padding-left: 0; }
    .accueil-agenda .tdb-frise::before { display: block; }
}
.videos .vignette-audio { display: grid; place-items: center; width: 160px; aspect-ratio: 16 / 9; flex: none; border-radius: 8px; background: var(--anthracite); }
.videos .vignette-audio svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.videos .podcast-tag { display: inline-block; margin-left: .5rem; padding: .05rem .45rem; border-radius: 999px; background: var(--fond-3); font-size: 12.5px; font-weight: 700; color: var(--anthracite); vertical-align: .1em; }

/* ---- 7. cartes d'articles : fond de la couleur de la longueur (court bleu, long jaune), sans liseré */
.carte {
    display: flex; flex-direction: column; padding: 22px 24px 20px;
    background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre);
}
.carte.court, .fiche.court { background: var(--court-fond); }
.carte.long, .fiche.long { background: var(--long-fond); }
.carte .lieu { margin: 0 0 .5rem; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--texte-2); }
.carte .lieu a { text-decoration: none; }
.carte .lieu a:hover { color: var(--rouge-fonce); text-decoration: underline; }
.carte h3 { margin: 0 0 .55rem; font-size: 21px; line-height: 1.3; color: var(--anthracite); }
.carte h3 a { text-decoration: none; }
.carte h3 a:hover { text-decoration: underline; text-decoration-color: var(--rouge); text-underline-offset: 3px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .8rem; margin: 0 0 .9rem; font-size: 14.5px; color: var(--texte-2); }
.vues { font-size: 13.5px; }
.resume { margin: 0 0 1.2rem; font-size: 16.5px; line-height: 1.65; color: var(--texte); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: auto; padding-top: .2rem; }
.grille .partage .txt, .grille-media .partage .txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.grille .partage, .grille-media .partage { padding: .55rem .75rem; }
/* accueil : cartes de même hauteur, textes limités en nombre de lignes */
.grille .carte .lieu, .grille .carte h3, .grille .carte .resume { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.grille .carte .lieu { -webkit-line-clamp: 2; line-clamp: 2; }
.grille .carte h3 { -webkit-line-clamp: 2; line-clamp: 2; }
.grille .carte .resume { -webkit-line-clamp: 4; line-clamp: 4; }
/* chantier 41 : article « Liens » : une ligne par lien (plusieurs liens), cibles de 44 px ; carte atteinte par son ancre */
.carte[id^="article-"] { scroll-margin-top: 6rem; }
.carte:target { outline: 3px solid var(--rouge); outline-offset: 3px; }
.liens-carte { margin: 0 0 1rem; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .15rem; }
.liens-carte .lien-carte { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: .2rem 0; font-weight: 600; color: var(--rouge-fonce); text-decoration: underline; text-decoration-color: var(--trait); text-underline-offset: 3px; overflow-wrap: anywhere; }
.liens-carte .lien-carte:hover { text-decoration-color: var(--rouge); }
.carte .fleche { font-weight: 400; }

/* « À lire aussi » (website/_liens-article du thème) : bouton à flèche, contenus liés en petites cartes cliquables */
details.list-link { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--trait); }
details.list-link > summary {
    display: inline-flex; align-items: center; gap: .45rem; min-height: 38px; padding: .35rem .9rem .35rem .7rem;
    border: 2px solid var(--trait); border-radius: 8px; background: #fff; color: var(--anthracite);
    font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; user-select: none;
}
details.list-link > summary::-webkit-details-marker { display: none; }
details.list-link > summary:hover { border-color: var(--anthracite); }
details.list-link > summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
details.list-link[open] > summary svg { transform: rotate(90deg); }
.lies-nombre {
    min-width: 1.5rem; padding: 0 .4rem; border-radius: 999px; background: var(--fond-3);
    font-size: 12.5px; font-weight: 700; text-align: center; color: var(--texte-2);
}
.lies { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.lies > li { min-width: 0; }
.lie {
    display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .7rem; align-items: center;
    height: 100%; padding: .6rem .8rem; background: #fff; border: 1px solid var(--trait); border-radius: 10px;
    color: var(--texte); text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
a.lie:hover { border-color: var(--rouge); box-shadow: var(--ombre); }
a.lie:hover .lie-titre { color: var(--rouge-fonce); }
.lie-icone {
    grid-row: 1 / span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px;
    background: var(--fond-2); color: var(--anthracite);
}
.lie-icone svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lie-titre { font-weight: 600; font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.lie-type { font-size: 12.5px; color: var(--texte-2); }
.lie-inactif { opacity: .7; }

/* ---- 8. listes d'articles et menu latéral */
.cols { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 40px; align-items: start; }
.cote { position: sticky; top: calc(var(--menu-hauteur) + 16px); max-height: calc(100vh - var(--menu-hauteur) - 32px); overflow: auto; padding: 2px 6px 2px 2px; }
.cote-depliant > summary { display: none; } /* sur ordinateur, le menu latéral est toujours ouvert */
.cote-titre {
    margin: 0 0 .6rem; padding-bottom: .5rem; border-bottom: 2px solid var(--anthracite);
    font: 900 18px var(--titres); text-transform: uppercase; color: var(--anthracite);
}
.cote-cat { border-bottom: 1px solid var(--trait); }
.cote-cat > summary {
    display: flex; align-items: center; gap: .45rem; padding: .65rem .3rem; cursor: pointer; list-style: none;
    font-weight: 700; font-size: 15.5px; color: var(--anthracite); border-radius: 6px;
}
.cote-cat > summary::-webkit-details-marker { display: none; }
.cote-cat > summary:hover { background: var(--fond-2); }
.cote-cat > summary svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--texte-2); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.cote-cat[open] > summary svg { transform: rotate(90deg); }
.cote-cat.courante > summary { color: var(--rouge-fonce); }
.cote-cat ul { list-style: none; margin: 0 0 .7rem 1.05rem; padding: 0 0 0 .6rem; border-left: 2px solid var(--trait); }
.cote-cat li a {
    display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .38rem .6rem;
    border-radius: 6px; font-size: 15px; line-height: 1.35; color: var(--texte-2); text-decoration: none;
}
.cote-cat li a:hover { background: var(--fond-2); color: var(--texte); }
.cote-cat li a[aria-current="page"] {
    background: var(--rouge-pale); color: var(--rouge-fonce); font-weight: 700;
}
.n {
    flex: none; min-width: 1.8rem; padding: 0 .4rem; border-radius: 999px; background: var(--fond-3);
    font-size: 12.5px; font-weight: 600; text-align: center; color: var(--texte-2);
}
a[aria-current="page"] .n { background: #fff; color: var(--rouge-fonce); }
.principal-tete { margin-bottom: 1.4rem; }
/* chantier 39 : menu « Trier » à droite de l'en-tête, centré sur le titre (demande de Loïc du 2026-12-04) ; sous le compte sur téléphone */
.principal-tete:has(.tri) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.5rem; }
.principal-tete:has(.tri) > * { grid-column: 1; }
.principal-tete .tri { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
.tri { display: flex; align-items: center; gap: .6rem; margin: 0; font-size: 15px; color: var(--texte-2); }
@media (max-width: 40rem) {
    .principal-tete:has(.tri) { display: block; }
    .principal-tete .tri { justify-content: flex-end; margin-top: .8rem; }
}
.champ-tri { min-height: 44px; padding: .45rem 2rem .45rem .7rem; border: 1px solid var(--trait-2); border-radius: 8px; background: #fff; font: inherit; color: var(--texte); }
.filtres {
    display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.6rem; padding: 14px 16px;
    background: var(--fond-2); border-radius: var(--rayon);
}
.page > .filtres { max-width: 100%; }
.filtres > div { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.filtre-nom { width: 5.5rem; font-size: 14px; font-weight: 700; color: var(--texte-2); }
.puce { padding: .25rem .85rem; border: 1px solid var(--trait-2); border-radius: 999px; background: #fff; font: inherit; font-size: 14.5px; color: var(--texte); cursor: pointer; }
.puce:hover { border-color: var(--anthracite); }
.puce[aria-pressed="true"] { background: var(--anthracite); border-color: var(--anthracite); color: #fff; }
.liste { display: grid; gap: 22px; }
.liste-vide { color: var(--texte-2); font-style: italic; }

/* ---- 9. rubrique, fiche d'article, recherche, classement, espace adhérent */
.videos-espace { margin-top: 40px; } /* chantier 20 : vidéos d'un espace, sous ses rubriques */
/* chantier 20, lot B : agenda (page Agenda, et en tête de l'onglet d'un espace) */
.agenda-espace { margin-bottom: 40px; }
.liste-evenements { display: grid; gap: 16px; }
.carte-evenement { flex-direction: row; gap: 18px; padding: 20px 22px; }
.carte-evenement.passe { background: var(--fond-2); box-shadow: none; }
.evt-date {
    display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 64px; height: 70px;
    border-radius: 12px; background: var(--rouge); color: #fff; font-size: 13.5px; font-weight: 700; line-height: 1.1; text-transform: uppercase;
}
.evt-date b { font: 900 27px/1 var(--titres); }
.passe .evt-date { background: var(--anthracite-2); }
.evt-corps { flex: 1; min-width: 0; }
.carte-evenement h3 { margin: 0 0 .35rem; font-size: 20px; line-height: 1.3; color: var(--anthracite); overflow-wrap: anywhere; }
.carte-evenement .meta { margin-bottom: .6rem; }
.evt-lieu { font-weight: 600; color: var(--texte); }
.carte-evenement .resume { margin: 0 0 .7rem; }
.evt-suite > summary { display: block; cursor: pointer; list-style: none; }
.evt-suite > summary::-webkit-details-marker { display: none; }
.evt-suite[open] .evt-extrait { display: none; }
.evt-extrait { display: block; margin-bottom: .2rem; }
.evt-plus { display: inline-block; margin-bottom: .7rem; color: var(--rouge-fonce); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.evt-suite[open] .evt-plus { display: none; }
.evt-contact { margin: 0 0 .7rem; font-size: 15.5px; overflow-wrap: anywhere; }
.evt-contact span { font-weight: 600; }
.carte-evenement .actions { margin-top: 0; }
.evt-vide { color: var(--texte-2); font-style: italic; }
.evt-passes { margin-top: 1.2rem; }
.evt-passes .liste-evenements { margin-top: .9rem; }
/* chantier 20, lot C : trésorerie (bouton de l'onglet, page de dépôt) */
.depot-tresorerie { margin: -.6rem 0 1.6rem; }
.formulaire select { display: block; width: 100%; max-width: 22rem; padding: .6rem .8rem; border: 1px solid var(--trait-2); border-radius: 8px; background: #fff; font: inherit; font-size: 16px; color: var(--texte); }
.docs-tresorerie h3 { margin: 1.4rem 0 .4rem; font-size: 1.05rem; }
.formulaire input[type="date"] { display: block; width: 100%; max-width: 14rem; padding: .6rem .8rem; border: 1px solid var(--trait-2); border-radius: 8px; background: #fff; font: inherit; font-size: 16px; color: var(--texte); }
.formulaire input[type="file"] { display: block; width: 100%; padding: .6rem; border: 1px dashed var(--trait-2); border-radius: 8px; background: var(--fond-2); font: inherit; font-size: 15px; }
.formulaire .erreur-champ { display: block; margin-top: .3rem; color: var(--rouge-fonce); font-weight: 600; font-size: 15px; }
.formulaire [aria-invalid="true"] { border-color: var(--rouge); }
.formulaire .actions-form { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.docs-tresorerie { margin-top: 2rem; }
/* chantier 20, lot F : propositions d'événements des membres (bouton de l'agenda, page de proposition) */
.agenda-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0 0 1.2rem; }
.agenda-actions .note { color: var(--texte-2); font-size: 15px; }
.propositions-attente { margin: 0 0 2rem; }
.propositions-attente h2 { margin: 0 0 .6rem; font-size: 1.15rem; }
.propositions-attente .note { margin-top: .5rem; font-size: 14.5px; color: var(--texte-2); }
/* remarque de Loïc du 2026-11-15 : deux cadres bien séparés, titres en Anton comme le tableau de bord de l'espace */
.page-proposition { --affiche: Anton, Impact, "Arial Narrow", sans-serif; }
.page-proposition .tdb-cadre { margin: 0 0 2.2rem; padding: 20px 26px 24px; }
.page-proposition .cadre-nouvelle { border-top-color: var(--rouge); }
.page-proposition .propositions-attente .liste-docs { border-top: 0; }
.page-proposition .propositions-attente .liste-docs li { padding: .9rem 0; }
.page-proposition .propositions-attente .liste-docs li:last-child { border-bottom: 0; }
.page-proposition .doc-titre strong { font-weight: 700; color: var(--anthracite); }
.compte-attente { font-size: 14.5px; color: var(--texte-2); }
.statut-attente { margin-top: .25rem; }
.statut-attente::before { content: ''; display: inline-block; width: .55rem; height: .55rem; margin-right: .45rem; border-radius: 50%; background: hsl(38, 92%, 50%); vertical-align: .05rem; }
.statut-attente { font-size: 14px; font-weight: 600; color: hsl(30, 80%, 30%); }
@media (max-width: 34rem) { .page-proposition .tdb-cadre { padding: 16px 14px 18px; } .page-proposition .tdb-cadre-tete h2 { font-size: 22px; } }
.page-proposition .propositions-attente > .note { margin: .4rem 0 0; padding-top: .8rem; border-top: 1px solid var(--trait); }
.detail-proposition { flex-basis: 100%; } /* recette du 2026-11-13 : détail d'une proposition en attente */
.detail-proposition > summary { display: inline-block; cursor: pointer; color: var(--rouge-fonce); font-size: 15px; font-weight: 600; text-decoration: underline; }
.detail-proposition dl { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .35rem 1rem; margin: .7rem 0 0; font-size: 15px; }
.detail-proposition dt { font-weight: 600; color: var(--anthracite); }
.detail-proposition dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 26rem) { .detail-proposition dl { grid-template-columns: minmax(0, 1fr); gap: .1rem; } .detail-proposition dd { margin-bottom: .45rem; } }
.formulaire .champs-date { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1rem; max-width: 30rem; }
@media (max-width: 26rem) { .formulaire .champs-date { grid-template-columns: minmax(0, 1fr); } }
/* chantier 28 : quand a lieu un événement, façon agenda (interrupteur « Toute la journée », puis Début et Fin) */
.formulaire .plage { max-width: 30rem; margin: 0 0 1rem; border: 1px solid var(--trait-2); border-radius: 8px; background: #fff; }
.formulaire .plage-ligne { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) 7.5rem; gap: .75rem; align-items: center; padding: .55rem .85rem; border-top: 1px solid var(--trait); }
.formulaire .plage-ligne:first-child { border-top: 0; }
.formulaire .plage-ligne > label { margin: 0; font-weight: 600; }
.formulaire .plage-ligne input[type="date"], .formulaire .plage-ligne input[type="time"] { max-width: none; }
.formulaire .plage-ico { width: 1.35rem; height: 1.35rem; fill: none; stroke: var(--texte-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.formulaire .plage-tete .interrupteur { justify-self: end; }
.formulaire .plage-ligne:has(> input[type="time"][hidden]) { grid-template-columns: 3.5rem minmax(0, 1fr); } /* toute la journée : la date prend la place des heures */
.interrupteur { appearance: none; position: relative; flex: none; width: 2.9rem; height: 1.6rem; margin: 0; border: 0; border-radius: 999px; background: var(--trait-2); cursor: pointer; transition: background .15s; }
.interrupteur::before { content: ''; position: absolute; top: .2rem; left: .2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .15s; }
.interrupteur:checked { background: var(--rouge); }
.interrupteur:checked::before { transform: translateX(1.3rem); }
.formulaire input[type="checkbox"].interrupteur { width: 2.9rem; height: 1.6rem; } /* recette du 2026-11-13 : plus fort que la règle des cases à cocher des formulaires */
@media (max-width: 26rem) { .formulaire .plage-ligne { grid-template-columns: 3.6rem minmax(0, 1fr) 6.5rem; gap: .5rem; padding: .5rem .65rem; } .formulaire .plage-ligne:has(> input[type="time"][hidden]) { grid-template-columns: 3.6rem minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .interrupteur, .interrupteur::before { transition: none; } }
.formulaire input[type="time"] { display: block; width: 100%; max-width: 10rem; padding: .6rem .8rem; border: 1px solid var(--trait-2); border-radius: 8px; background: #fff; font: inherit; font-size: 16px; color: var(--texte); }
.formulaire input[type="url"] { display: block; width: 100%; padding: .65rem .8rem; border: 1px solid var(--trait-2); border-radius: 8px; background: #fff; font: inherit; font-size: 16px; color: var(--texte); }
.formulaire .facultatif { font-weight: 400; color: var(--texte-2); }
.formulaire > .note { display: block; margin: -.5rem 0 1.1rem; }
/* chantier 20, lot D : demande d'accès (case de consentement, adresse du compte non modifiable, lien de l'onglet) */
.formulaire .case-consentement label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: 15.5px; }
.formulaire .case-consentement input { flex: none; margin-top: .15rem; }
.formulaire .case-consentement .lien-confidentialite { display: inline-block; margin: .35rem 0 0 1.9rem; font-size: 15px; } /* chantier 20, lot M */
.lien-confidentialite { font-size: 15px; }
.formulaire input[readonly] { background: var(--fond-2); color: var(--texte-2); }
.rejoindre-espace { margin: -.6rem 0 1.6rem; }
.liste-docs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--trait); }
.liste-docs li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: .8rem 0; border-bottom: 1px solid var(--trait); }
.doc-titre { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.doc-titre a { font-weight: 600; }
.doc-titre time { font-size: 14.5px; color: var(--texte-2); }
.doc-actions { display: flex; gap: .5rem; }
.doc-actions form { margin: 0; }
.btn-supprimer { color: var(--rouge-fonce); }
.grille-categories { columns: 3 300px; column-gap: 24px; } /* colonnes de journal : pas de trou entre des cartes de hauteurs différentes */
.categorie { break-inside: avoid; margin-bottom: 24px; padding: 22px 22px 14px; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre); }
.categorie h2 { margin: 0 0 .8rem; padding-bottom: .6rem; border-bottom: 2px solid var(--fond-3); font: 900 21px/1.2 var(--titres); color: var(--anthracite); }
.categorie ul { list-style: none; margin: 0; padding: 0; }
.categorie li a {
    display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .5rem .6rem; margin: 0 -.6rem;
    border-radius: 8px; color: var(--texte); text-decoration: none; font-size: 16px;
}
.categorie li a:hover { background: var(--fond-2); color: var(--rouge-fonce); }
.categorie li + li { border-top: 1px solid var(--fond-3); }

.fiche { padding: 32px 36px; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre); margin-bottom: 1.6rem; }
.fiche h1 { font-size: 34px; margin: .2rem 0 .4rem; }
.fiche .chapo { margin: .6rem 0 1.6rem; color: var(--texte); font-size: 18px; }
.fiche .actions { margin-top: 0; }

.recherche-page { display: flex; gap: .6rem; margin: 0 0 1.6rem; }
.recherche-page input {
    flex: 1; min-width: 0; padding: .6rem .9rem; border: 1px solid var(--trait-2); border-radius: 8px; font: inherit; font-size: 16px;
}
.recherche-page input:focus { outline: 3px solid var(--rouge); outline-offset: 1px; border-color: transparent; }
/* chantier 32, R7 : menu réduit à un espace */
.menu .retour-site a { font-weight: 400; font-size: 15px; opacity: .88; }
/* chantier 32, R5 : recherche dans l'espace, ou dans l'espace et le site */
.portee-recherche { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.6rem; }
.portee-recherche button { min-height: 44px; padding: .4rem 1rem; border: 1px solid #8a8a8a; border-radius: 999px; background: #fff; color: var(--texte); font: inherit; font-weight: 600; cursor: pointer; }
.portee-recherche button[aria-pressed="true"] { background: var(--anthracite); border-color: var(--anthracite); color: #fff; }
.portee-recherche button:focus-visible { outline: 3px solid var(--rouge); outline-offset: 2px; }
.resultats-medias { margin-top: 1.6rem; }
.page-moyenne .compte { margin: 0 0 1rem; font-weight: 600; }

.classement { list-style: none; margin: 0; padding: 0; counter-reset: rang; display: grid; gap: 14px; }
.classement > li {
    counter-increment: rang; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; gap: 1rem; align-items: center;
    padding: 16px 20px; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre);
}
.classement > li::before { content: counter(rang); font: 900 30px/1 var(--titres); color: var(--rouge); text-align: center; }
.classement > li:nth-child(n+4)::before { color: var(--trait-2); }
.classement .lieu { margin: 0 0 .25rem; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--texte-2); }
.classement .lieu a { text-decoration: none; }
.classement h2 { margin: 0 0 .3rem; font-size: 18.5px; line-height: 1.3; }
.classement h2 a { text-decoration: none; }
.classement h2 a:hover { text-decoration: underline; text-decoration-color: var(--rouge); }
.classement .meta { margin: 0; }
.classement-clics { margin: 0; text-align: right; font-size: 13.5px; color: var(--texte-2); line-height: 1.2; }
.classement-clics strong { display: block; font-size: 20px; color: var(--anthracite); }

.choix { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.choix a {
    display: flex; align-items: center; gap: 14px; height: 100%; padding: 20px; font-weight: 600; font-size: 16.5px; text-decoration: none;
    background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre); transition: border-color .15s, transform .15s;
}
.choix a:hover { border-color: var(--rouge); transform: translateY(-2px); }
.choix svg { width: 40px; height: 40px; flex: none; padding: 8px; border-radius: 10px; background: var(--anthracite); fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- 10. vidéos et audios */
.grille-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 20px; } /* chantier 43 : grille plus serrée, quatre cartes par ligne sur un grand écran, deux puis une sur téléphone */
.grille-media > * { min-width: 0; }
.carte-media { padding: 0; overflow: hidden; }
.vignette { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--anthracite); }
/* chantier 43 (retour de Loïc du 2026-12-04) : image posée en absolu dans le cadre ; en flux, Chrome ignore height: 100%
   dans un cadre dimensionné par aspect-ratio et le cadre prenait la hauteur naturelle de l'image (Firefox, lui, recadrait) */
.vignette img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.vignette img[data-lire-audio] { cursor: pointer; }
.vignette .lecture {
    position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
    background: rgba(0, 0, 0, .55); border: 2px solid #fff; transition: background .15s;
}
.vignette .lecture::before { content: ""; position: absolute; left: 22px; top: 16px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #fff; }
.vignette:hover .lecture { background: var(--rouge); }
.carte-corps { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.carte-media h2 { margin: 0 0 .4rem; font-size: 17px; line-height: 1.3; color: var(--anthracite); }
.carte-media .resume { margin-bottom: 1rem; font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.carte-media .meta { margin-bottom: .7rem; font-size: 14px; }
.grille-media .carte-corps { padding: 14px 16px 16px; } /* chantier 43 */
.grille-media .actions { gap: .6rem; }
.grille-media .actions .btn { padding-left: .9rem; padding-right: .9rem; }
.carte-media .actions { margin-top: auto; }
/* chantier 32 : sur les cartes, le bouton de lecture laisse le rouge plein aux titres (demande de Loïc du 2026-11-25) */
.carte .actions .btn, .carte-media .actions .btn { background: #fff; border: 1px solid #d6d6d6; color: var(--rouge-fonce); }
.carte .actions .btn:hover, .carte-media .actions .btn:hover { background: var(--rouge-pale); border-color: var(--rouge-fonce); }
.carte .actions .partage { border-width: 1px; border-color: #d6d6d6; }
.carte .actions .partage:hover { border-color: var(--anthracite); }
.lecteur-audio { flex-wrap: nowrap; }
/* chantier 39 : vidéo ou audio rangé, dans la liste d'une sous-catégorie : vignette à gauche, comme une ligne de la liste ;
   chantier 43 : vignette resserrée, de taille fixe (160 x 90), posée dans la carte au lieu de suivre sa hauteur */
.liste .carte-media { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: start; }
.liste .carte-media .vignette { width: 160px; height: 90px; aspect-ratio: auto; margin: 20px 0 20px 20px; border-radius: 8px; overflow: hidden; }
.liste .carte-media .vignette .lecture { transform: scale(.7); }
@media (max-width: 40rem) {
    .liste .carte-media { grid-template-columns: minmax(0, 1fr); }
    .liste .carte-media .vignette { margin: 18px 18px 0; }
    .liste .lecteur-audio { flex-wrap: wrap; } /* le lecteur sur toute la largeur, « Partager » dessous */
    .liste .lecteur-audio audio { flex-basis: 100%; }
}
.lecteur-audio audio { flex: 1; min-width: 0; height: 42px; }
/* chantier 20, lot J : avec un lien de podcast, le lecteur prend toute la ligne et les boutons passent dessous */
.lecteur-audio:has(audio + .podcast) { flex-wrap: wrap; }
.lecteur-audio:has(audio + .podcast) audio { flex-basis: 100%; }
/* contenu sans image : vignette neutre ; chantier 43 (retour de Loïc du 2026-12-04, remplace le bandeau de 56 px) : même
   hauteur que les miniatures, mais fond gris clair et pictogramme gris, au lieu du grand bloc sombre qui paraissait démesuré
   à côté des cartes illustrées (pictogrammes blancs, assombris par le filtre) */
.vignette.vignette-vide { background: var(--fond-3); }
.vignette-vide::before {
    content: ""; position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; opacity: .4; filter: brightness(0);
    background: no-repeat center / contain url('../image/vignette-video.svg');
}
.vignette-vide.audio::before {
    background-image: url('../image/vignette-audio.svg');
}
/* chantier 20, lot J : audio réduit à l'adresse de son podcast (sans fichier ni miniature) */
.vignette-vide.podcast::before {
    background-image: url('../image/vignette-podcast.svg');
}

/* ---- 11. formulaires (thème, et « Mon compte » : vue de l'administration view/admin/form-member.php) */
.formulaire p { margin: 0 0 1.1rem; }
.formulaire label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: 15.5px; color: var(--anthracite); }
.formulaire input[type="text"], .formulaire input[type="email"], .formulaire input[type="password"], .formulaire textarea {
    display: block; width: 100%; padding: .65rem .8rem; border: 1px solid var(--trait-2); border-radius: 8px;
    background: #fff; font: inherit; font-size: 16px; color: var(--texte);
}
.formulaire textarea { resize: vertical; min-height: 10rem; }
.formulaire input:focus, .formulaire textarea:focus { outline: 3px solid var(--rouge); outline-offset: 1px; border-color: transparent; }
.formulaire input.error { border-color: var(--rouge); }
.formulaire input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--rouge); }
.formulaire .note { font-size: 14.5px; color: var(--texte-2); }
.formulaire .requis { color: var(--rouge-fonce); }
.formulaire button[type="submit"]:not(.btn):not(.btn-sec) {
    display: inline-flex; align-items: center; min-height: 42px; padding: .55rem 1.2rem; border: 2px solid var(--rouge); border-radius: 8px;
    background: var(--rouge); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.formulaire a.bouton { display: inline-flex; align-items: center; min-height: 42px; padding: .55rem 1.1rem; margin-left: .5rem; border: 2px solid var(--trait); border-radius: 8px; color: var(--anthracite); font-weight: 600; text-decoration: none; }
.formulaire a.bouton:hover { border-color: var(--anthracite); }
.formulaire .error-message, .formulaire .form-error { margin: 0 0 1rem; padding: .7rem 1rem; border-radius: 10px; background: var(--rouge-pale); color: var(--rouge-fonce); font-weight: 600; }
.actions-form { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.4rem !important; }
.champs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.miel { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* piège à robots */
.champ-mdp { position: relative; display: block; }
.champ-mdp input { padding-right: 3rem !important; }
.voir-mdp {
    position: absolute; right: 6px; top: 50%; width: 38px; height: 38px; margin-top: -19px; border-radius: 6px;
    background: url('../../../../media/image/picto_show_mdp.svg') center / 22px no-repeat;
}
.voir-mdp.affichemdp { background-image: url('../../../../media/image/picto_hide_mdp.svg'); }
.voir-mdp:hover { background-color: var(--fond-2); }

/* ---- 12. textes de l'installation (instances/<nom>/textes/), repris tels quels */
.texte-site h1 { font: 900 40px/1.12 var(--titres); color: var(--anthracite); margin: 0 0 1.2rem; }
.texte-site h1 span { display: block; font-size: 24px; color: var(--rouge-fonce); margin-top: .25rem; }
.texte-site h1 + img, .texte-site img.figure { float: right; width: 150px; margin: 0 0 1rem 2rem; }
.texte-site h2 { font: 900 22px/1.2 var(--titres); color: var(--anthracite); margin: 0 0 .8rem; }
.texte-site p { margin: 0 0 .8rem; font-size: 17px; line-height: 1.65; }
.texte-site .align-right { text-align: right; font-style: italic; }
.texte-site span.short, .texte-site span.long {
    display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; line-height: 1.5;
}
.texte-site span.short { background: var(--court-etiquette); color: var(--court-texte); }
.texte-site span.long { background: var(--long-etiquette); color: var(--long-texte); }

.texte-page h1 { margin: 0 0 1.4rem; }
.texte-page h1::after { content: ""; display: block; width: 56px; height: 4px; margin-top: .6rem; border-radius: 2px; background: var(--rouge); }
.texte-page h2 { margin: 2rem 0 .8rem; font: 900 24px/1.2 var(--titres); color: var(--anthracite); }
.texte-page p, .texte-page li { font-size: 17.5px; line-height: 1.7; }
.texte-page p { margin: 0 0 1rem; }
.texte-page ul.classique { margin: 0 0 1rem; padding-left: 1.4rem; }
.texte-page ul.classique li { margin: .3rem 0; }
.texte-page a { color: var(--rouge-fonce); text-underline-offset: 3px; }
.list-legal-notices { margin: 0 0 18px; padding: 20px 24px; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre); }
.list-legal-notices h2 { margin: 0 0 .6rem; font-size: 20px; }
.list-legal-notices p { margin: 0; font-size: 16.5px; }
.list-legal-notices p + p { margin-top: .75rem; } /* chantier 20, lot M : plusieurs paragraphes par cadre */
.list-legal-notices span { display: block; margin-top: .6rem; color: var(--texte-2); }

/* ---- 13. pied de page */
.pied { margin-top: 40px; background: var(--anthracite); color: #dfe3e4; }
.pied-in { max-width: var(--largeur); margin: 0 auto; padding: 34px 20px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; font-size: 15px; }
.pied-titre { margin: 0 0 .5rem; font: 900 16px var(--titres); color: #fff; text-transform: uppercase; }
.pied p { margin: 0; line-height: 1.7; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied a { color: #fff; text-decoration: none; line-height: 1.95; }
.pied a:hover { text-decoration: underline; }
.pied-reduit ul { max-width: var(--largeur); margin: 0 auto; padding: 18px 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1.8rem; font-size: 15px; }

/* ---- 14. fenêtres : « Partager » (media/js/message_box.js) et lecture des PDF (media/js/lecteur_pdf.js) */
#cache { position: fixed; inset: 0; z-index: -1; background: rgba(20, 24, 26, .72); opacity: 0; transition: opacity .2s; }
#cache.actif { z-index: 20; opacity: 1; }
#boxwrapper { position: fixed; inset: 0; z-index: -1; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; }
#boxwrapper.openbox { z-index: 21; opacity: 1; pointer-events: auto; }
#box {
    position: relative; display: flex; flex-direction: column; width: min(560px, 92vw); max-height: 92vh; overflow: auto;
    padding: 24px 26px; background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}
#box #content { display: flex; flex-direction: column; }
#box h2 { margin: 0 0 .9rem; font: 900 24px var(--titres); color: var(--anthracite); }
#box form { display: flex; flex-direction: column; }
#box label { margin: .6rem 0 .3rem; font-weight: 600; font-size: 15px; }
#box input[type="text"], #box textarea {
    width: 100%; padding: .6rem .8rem; border: 1px solid var(--trait-2); border-radius: 8px; font: inherit; font-size: 16px;
}
#box input:focus { outline: 3px solid var(--rouge); outline-offset: 1px; border-color: transparent; }
#box .error-field { color: var(--rouge-fonce); font-size: 14px; }
#box .check-field:empty, #box .error-field:empty { display: none; }
#box .button--wrapper { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .7rem; margin-top: 1.4rem; }
#box .button--wrapper button, #box .button--wrapper .button {
    min-height: 42px; padding: .55rem 1.2rem; border: 2px solid var(--rouge); border-radius: 8px; background: var(--rouge);
    color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
#box .button--wrapper button:last-child, #box .button--wrapper .button:last-child { background: #fff; color: var(--anthracite); border-color: var(--trait); }
#closebox { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--fond-2); cursor: pointer; }
#closebox::before { content: "✕"; font-size: 18px; color: var(--anthracite); }

body.sans-defilement { overflow: hidden; }
dialog.lecteur {
    width: min(1200px, 96vw); height: 96vh; max-width: none; max-height: none; padding: 0; border: 0;
    border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); flex-direction: column;
}
dialog.lecteur[open] { display: flex; }
dialog.lecteur::backdrop { background: rgba(20, 24, 26, .72); }
dialog.lecteur iframe { flex: 1; width: 100%; border: 0; background: #525659; }
dialog.lecteur:fullscreen { width: 100vw; height: 100vh; border-radius: 0; }
dialog.lecteur.focus-pdf .raccourci { display: none; }
.lecteur-barre { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 10px 14px; background: var(--anthracite); color: #fff; }
.lecteur-titre { flex: 1; min-width: 12rem; margin: 0; font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lecteur-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
dialog.lecteur .lecteur-btn {
    display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border: 1px solid #6b7275; border-radius: 6px;
    background: transparent; color: #fff; font: inherit; font-size: 14.5px; text-decoration: none; cursor: pointer;
}
dialog.lecteur .lecteur-btn:hover { border-color: #fff; }
dialog.lecteur .lecteur-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
dialog.lecteur .lecteur-btn .poids { color: #cfd4d6; }
dialog.lecteur .lecteur-btn--fermer { background: var(--rouge); border-color: var(--rouge); font-weight: 700; }
dialog.lecteur .lecteur-btn--fermer:hover { border-color: #fff; }
dialog.lecteur .raccourci { margin-left: .55rem; padding-left: .55rem; border-left: 1px solid rgba(255, 255, 255, .5); font-weight: 400; font-size: 13.5px; }
#lecteur-plein .ico-fermer { display: none; }
#lecteur-plein[aria-pressed="true"] .ico-fermer { display: inline; }
#lecteur-plein[aria-pressed="true"] .ico-ouvrir { display: none; }

/* ---- 15. écrans moyens et téléphones */
@media (max-width: 1000px) and (min-width: 761px) {
    .bandeau-in { gap: 1.2rem; }
    .marque #slogan { font-size: 19px; } /* chantier 38 (IU-63) : grand texte, contraste 3:1 sur le rouge */
    .marque svg { width: 130px; }
    #menu-liste > li > a, .parcourir-btn { padding: 0 9px; font-size: 15px; }
    .recherche { min-width: 180px; }
}

@media (max-width: 900px) {
    .cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .cote { position: static; max-height: none; overflow: visible; padding: 0; margin-bottom: 1.4rem; }
    .cote-depliant { border: 1px solid var(--trait); border-radius: var(--rayon); padding: .2rem .9rem; background: #fff; }
    .cote-depliant > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: .7rem 0; font-weight: 700; list-style: none; }
    .cote-depliant > summary::-webkit-details-marker { display: none; }
    .cote-depliant > summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--texte-2); }
    .cote-depliant[open] > summary::after { content: "–"; }
    .cote-depliant .cote-titre { display: none; }
    .texte-site h1 + img, .texte-site img.figure { width: 90px; margin: 0 0 .6rem 1rem; }
}

@media (max-width: 760px) {
    :root { --menu-hauteur: 104px; }
    body { font-size: 16.5px; }
    .bandeau-in { height: 96px; padding: 0 14px; gap: 0; }
    .marque #slogan { display: none; }
    .marque svg { width: 92px; }
    .bandeau-espace .bandeau-in, .bandeau-espace.nom-centre .bandeau-in { padding: 0 10px; }
    .bandeau-espace .marque:not(.marque-image), .bandeau-espace.avec-image .marque:not(.marque-image) { gap: 10px; max-width: 100% !important; }
    .bandeau-espace.avec-image .marque:not(.marque-image) { padding: 6px 10px; border-radius: 8px; }
    .bandeau-espace-logo, .bandeau-espace-logo:not(:only-child) { max-width: 110px; max-height: 64px; }
    .bandeau-espace-nom { font-size: 22px; }
    .bandeau-espace.nom-long .bandeau-espace-nom { font-size: 17px; }
    .btn-adherent { display: none; }
    .menu-in { flex-wrap: wrap; padding: 6px 10px; gap: 6px; min-height: 0; }
    .burger {
        display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .75rem; border: 1px solid #6b7275;
        border-radius: 8px; background: none; color: #fff; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
    }
    .burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: #fff; position: relative; }
    .burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
    .burger span::before { top: -6px; }
    .burger span::after { top: 6px; }
    /* menu ouvert : la croix « Fermer » */
    .burger[aria-expanded="true"] span { background: transparent; }
    .burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
    .burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
    .adh-mobile {
        display: inline-flex; flex-direction: column; align-items: center; gap: 3px; order: 1; margin-left: auto; padding: 2px 4px;
        color: #fff; text-decoration: none; font-size: 11px; font-weight: 600; line-height: 1;
    }
    .adh-mobile svg { width: 22px; height: 22px; fill: currentColor; }
    #menu-liste { display: none; order: 2; width: 100%; flex-direction: column; }
    #menu-liste.ouvert { display: flex; }
    #menu-liste > li { display: block; }
    #menu-liste > li > a {
        width: 100%; padding: 12px 8px; border-top: 0; border-bottom: 1px solid var(--anthracite-2);
    }
    #menu-liste > li > a[aria-current="page"] { border-bottom-color: var(--anthracite-2); box-shadow: inset 4px 0 0 var(--rouge); padding-left: 14px; }
    /* chantier 12, lot 8 : « Menu » ouvre les tuiles en tête, puis les liens simples */
    #menu-liste.ouvert { max-height: calc(100vh - 110px); overflow-y: auto; padding-bottom: 10px; }
    #menu-liste > li.parcourir { order: -1; }
    .parcourir-btn { display: none; }
    .panneau { position: static; display: block; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible; }
    .panneau-in { padding: 12px 2px 6px; }
    .panneau-groupe + .panneau-groupe { margin-top: 12px; padding-top: 12px; border-top-color: var(--anthracite-2); }
    .panneau-titre { color: hsl(0, 0%, 100%, .62); margin-bottom: 6px; }
    .menu .lanceur { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
    .lanceur a { color: #fff; font-size: 13.5px; padding: 10px 4px 8px; }
    .lanceur a:hover { background: var(--anthracite-2); }
    .lanceur img, .lanceur .tuile-picto { width: 54px; height: 54px; background: var(--anthracite-2); }
    .lanceur a[aria-current="page"] { background: var(--anthracite-2); color: #fff; }
    .lanceur a[aria-current="page"] img, .lanceur a[aria-current="page"] .tuile-picto { box-shadow: 0 0 0 2px var(--anthracite), 0 0 0 4px var(--rouge); }
    .panneau-pied { border-top-color: var(--anthracite-2); padding-top: 10px; margin-top: 12px; }
    .panneau-pied a { color: #fff; }
    .voile { display: none !important; }
    .recherche { order: 3; flex: 1 1 100%; min-width: 0; margin: 0 0 4px; }
    .recherche input { font-size: 16px; }
    .intro-in { padding: 24px 16px 18px; }
    .texte-site h1 { font-size: 29px; }
    .texte-site h1 span { font-size: 18px; }
    .texte-site h2 { font-size: 19px; }
    .texte-site p { font-size: 16px; }
    .bloc { padding: 28px 16px; }
    .bloc h2 { font-size: 24px; }
    .bloc-tete { gap: .6rem; }
    .bloc-tete h2 { min-height: 40px; padding: 7px 12px 3px; font-size: 18px; }
    .grille, .videos { grid-template-columns: minmax(0, 1fr); } /* chantier 43 : .grille-media suit sa propre grille (deux colonnes, puis une) */
    .grille-categories { columns: 1; }
    .carte-evenement { gap: 14px; padding: 16px; }
    .evt-date { width: 54px; height: 60px; }
    .evt-date b { font-size: 23px; }
    .grille { grid-auto-rows: auto; gap: 18px; }
    .videos img, .videos .vignette-audio { width: 120px; }
    .videos .v-titre { font-size: 15px; }
    .page { padding: 16px 16px 44px; }
    .page-etroite { padding-top: 28px; }
    .page h1, .principal h1 { font-size: 29px; }
    .cadre > h1:first-child { font-size: 25px; }
    .chapo { font-size: 17.5px; }
    .filtre-nom { width: 100%; }
    .carte { padding: 18px 18px 16px; }
    .carte h3 { font-size: 19px; }
    .carte-media { padding: 0; }
    .liste { gap: 18px; }
    .partage .txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .partage { padding: .55rem .75rem; }
    .cadre { padding: 22px 18px; }
    .fiche { padding: 22px 18px; }
    .fiche h1 { font-size: 27px; }
    .champs-2 { grid-template-columns: minmax(0, 1fr); }
    .classement > li { grid-template-columns: 2.4rem minmax(0, 1fr); padding: 14px; }
    .classement-clics { grid-column: 2; text-align: left; }
    .classement-clics strong { display: inline; font-size: 15px; }
    .recherche-page { flex-direction: column; }
    .pied-in { grid-template-columns: 1fr; gap: 1.4rem; }
}

/* validation d'un accès et « Mes espaces » (ADR-012) */
.case-accord { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.case-accord input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.mes-espaces { margin-top: 2rem; }
.mes-espaces form { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--trait); }
.rejoindre-liens { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* document rédigé en ligne (chantier 20, lot H) : texte nettoyé, sans classe ni style, mis en forme ici */
.document-redige { margin: 0 0 1.8rem; font-size: 17px; line-height: 1.65; max-width: 46rem; overflow-wrap: anywhere; }
.document-redige h2 { font: 800 25px/1.25 var(--titres); margin: 1.6rem 0 .6rem; color: var(--anthracite); }
.document-redige h3 { font: 800 20px/1.3 var(--titres); margin: 1.3rem 0 .5rem; color: var(--anthracite); }
.document-redige h4 { font-size: 17px; margin: 1.1rem 0 .4rem; }
.document-redige p { margin: 0 0 .9rem; }
.document-redige ul, .document-redige ol { margin: 0 0 1rem; padding-left: 1.6rem; }
.document-redige li { margin: .2rem 0; }
.document-redige blockquote { margin: 0 0 1rem; padding: .4rem 1rem; border-left: 4px solid var(--trait-2); color: var(--texte-2); }
.document-redige a { color: var(--rouge-fonce); }
.document-redige hr { border: 0; border-top: 1px solid var(--trait); margin: 1.4rem 0; }
.document-redige table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 1.2rem; font-size: 15.5px; }
.document-redige th, .document-redige td { border: 1px solid var(--trait-2); padding: .45rem .7rem; text-align: left; vertical-align: top; }
.document-redige th { background: var(--fond-2); }
.document-redige caption { text-align: left; font-weight: 700; padding-bottom: .4rem; }

@media print {
    .barre-connecte, .bandeau, .menu, .pied, .ariane, #back_top, #cache, #boxwrapper, .fiche .actions, .list-link, .voir, .aller-contenu { display: none !important; }
    body { background: #fff; }
    .page { padding: 0; max-width: none; }
    .fiche { border: 0; box-shadow: none; padding: 0; margin: 0; }
    .fiche .meta .reserve { display: none; }
    .document-redige { max-width: none; font-size: 12pt; }
    .document-redige table { display: table; overflow: visible; }
    .document-redige tr, .document-redige h2, .document-redige h3 { break-inside: avoid; }
    .document-redige h2, .document-redige h3 { break-after: avoid; }
    .document-redige a::after { content: " (" attr(href) ")"; font-size: 10pt; color: var(--texte-2); }
}
.choix-format { border: 0; padding: 0; margin: 0 0 1rem; }
.choix-format legend { font-weight: 600; font-size: 15.5px; color: var(--anthracite); margin-bottom: .35rem; }
.formulaire .choix-format label { display: flex; gap: 10px; align-items: center; font-weight: 400; margin-bottom: .4rem; }
.choix-format input { width: 20px; height: 20px; flex: none; }

/* onglet d'un espace : tableau de bord (chantier 20, demandé par Loïc le 2026-11-09, inspiré des chartes de la Brigade).
   Bandeau anthracite au pan rouge, cadres à filet épais, titres en Anton (licence OFL, media/font/anton-OFL.txt).
   Ordinateur : annonces et derniers documents à gauche, rendez-vous et trésorerie à droite. Téléphone : annonces,
   rendez-vous, documents, trésorerie. */
@font-face {
    font-family: Anton;
    src: url('../../../../media/font/anton-regular-latin.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
.espace-tdb { --affiche: Anton, Impact, "Arial Narrow", sans-serif; }
.tdb-ico { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--rouge); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* bandeau de l'espace : MIS DE CÔTÉ le 2026-11-09 (demande de Loïc), vue _bandeau-espace.php non incluse ; styles gardés pour le remettre */
.tdb-bandeau { position: relative; overflow: hidden; display: flex; align-items: center; gap: 24px; padding: 34px 36px 30px; border-radius: var(--rayon); background: var(--anthracite); color: #fff; }
.tdb-bandeau::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 30%; background: var(--rouge); clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%);
    background-image: repeating-linear-gradient(-60deg, rgba(0, 0, 0, .09) 0 3px, transparent 3px 11px); }
.tdb-bandeau-texte { position: relative; z-index: 1; flex: 1; min-width: 0; max-width: 680px; }
.tdb-ruban { display: inline-block; margin: 0 0 .9rem; padding: .3rem .75rem .25rem; background: var(--rouge); color: #fff; font: 400 14px/1.2 var(--affiche); letter-spacing: .08em; text-transform: uppercase; }
.tdb-bandeau h1 { margin: 0 0 .7rem; font: 400 clamp(44px, 7vw, 72px)/.95 var(--affiche); letter-spacing: .01em; text-transform: uppercase; color: #fff; text-wrap: balance; }
.tdb-bandeau h1::after { display: none; }
.tdb-phrase { margin: 0 0 1.1rem; max-width: 52ch; font-size: 18px; line-height: 1.5; color: hsl(0, 0%, 100%, .86); }
.tdb-chiffres { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; list-style: none; margin: 0 0 1.3rem; padding: 0; font-size: 15px; color: hsl(0, 0%, 100%, .78); }
.tdb-chiffres b { margin-right: .3rem; font: 400 26px/1 var(--affiche); color: #fff; font-variant-numeric: tabular-nums; }
.tdb-raccourcis { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }
.tdb-btn { display: inline-flex; align-items: center; padding: .6rem 1.05rem; border: 2px solid #fff; border-radius: 6px; color: #fff; font-weight: 700; font-size: 15.5px; text-decoration: none; }
.tdb-btn:hover { background: #fff; color: var(--anthracite); }
.tdb-btn-plein { background: var(--rouge); border-color: var(--rouge); }
.tdb-btn-plein:hover { background: var(--rouge-fonce); border-color: var(--rouge-fonce); color: #fff; }
.tdb-btn-sombre { border-color: var(--anthracite); background: var(--anthracite); }
.tdb-btn-sombre:hover { background: var(--rouge); border-color: var(--rouge); color: #fff; }
/* remarque de Loïc du 2026-11-15 : les actions des cadres (proposer un événement, cahier de comptes, dépôt) sont
   secondaires ; elles ne doivent pas écraser les informations : fond clair, filet fin, texte anthracite */
.tdb-action { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; padding: .5rem .95rem; border: 1px solid var(--trait-2); border-radius: 6px; background: var(--fond-2); color: var(--anthracite); font-weight: 600; font-size: 15px; text-decoration: none; transition: border-color .15s, background .15s; }
.tdb-action:hover { border-color: var(--anthracite); background: var(--fond-3); color: var(--anthracite); }
.tdb-action:focus-visible { outline: 3px solid var(--rouge); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .tdb-action { transition: none; } }
.tdb-btn:has(.tdb-pastille) { flex-wrap: wrap; gap: .3rem .6rem; }
.tdb-btn-texte { white-space: nowrap; }
.tdb-pastille { display: inline-flex; align-items: center; padding: .25rem .55rem; border: 1px solid hsl(38, 80%, 72%); border-radius: 999px; background: hsl(40, 95%, 90%); color: hsl(30, 80%, 26%); font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; } /* remarque du 2026-11-15 : propositions en attente dans le bouton */
.tdb-btn-contour { border-color: var(--anthracite); background: #fff; color: var(--anthracite); } /* recette du 2026-11-13 : second bouton de la trésorerie */
.tdb-btn-contour:hover { background: var(--anthracite); color: #fff; }
.tdb-picto { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 128px; height: 128px; margin-right: 2%; border-radius: 50%; background: var(--rouge); box-shadow: 0 0 0 7px var(--anthracite), 0 0 0 9px hsl(0, 0%, 100%, .35); } /* pictogrammes blancs, comme sur les tuiles de l'accueil */
.tdb-picto img { width: 64%; height: auto; }
@media (max-width: 48rem) {
    .tdb-bandeau { flex-direction: column-reverse; align-items: flex-start; padding: 24px 20px 22px; }
    .tdb-bandeau::before { top: 0; bottom: auto; width: 100%; height: 12px; clip-path: none; }
    .tdb-picto { width: 72px; height: 72px; position: absolute; top: 28px; right: 18px; margin: 0; }
    .tdb-bandeau-texte { padding-right: 84px; }
    .tdb-phrase { font-size: 16.5px; }
}

/* cadres */
.tdb-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 28px; }
.tdb-col { display: grid; gap: 28px; min-width: 0; }
@media (min-width: 62rem) {
    .tdb-grille.deux-colonnes { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
    .tdb-grille:not(.deux-colonnes) .tdb-col-cote { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
}
@media (max-width: 61.99rem) {
    .tdb-grille { display: flex; flex-direction: column; }
    .tdb-col { display: contents; }
    .tdb-zone-annonces { order: 1; } .tdb-zone-rdv { order: 2; } .tdb-zone-recents { order: 3; } .tdb-zone-tresor { order: 4; }
}
.tdb-cadre { min-width: 0; padding: 18px 22px 20px; background: #fff; border: 1px solid var(--trait); border-top: 5px solid var(--anthracite); border-radius: 4px 4px var(--rayon) var(--rayon); box-shadow: var(--ombre); }
.tdb-zone-annonces > .tdb-cadre { border-top-color: var(--rouge); }
.tdb-cadre-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; margin-bottom: .9rem; }
.tdb-cadre-tete h2 { display: flex; align-items: center; gap: .55rem; margin: 0; font: 400 25px/1.1 var(--affiche); letter-spacing: .02em; text-transform: uppercase; color: var(--anthracite); }
.tdb-cadre-tete h2::after { display: none; }
.tdb-cadre-tete a { font-size: 14.5px; font-weight: 600; color: var(--rouge-fonce); }
.tdb-vide { margin: 0; color: var(--texte-2); font-style: italic; }

/* annonces (lot E) : repliables, « À retenir » pour les épinglées */
.liste-annonces { display: grid; gap: 0; border-top: 1px solid var(--fond-3); }
.carte-annonce { border-bottom: 1px solid var(--fond-3); }
.carte-annonce.epinglee { margin: 0 -22px; padding: 0 22px; background: var(--rouge-pale); border-bottom-color: var(--rouge-trait-2); }
.carte-annonce > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; padding: 13px 0; cursor: pointer; list-style: none; }
.carte-annonce > summary::-webkit-details-marker { display: none; }
.carte-annonce > summary::before { content: "▸"; flex: none; color: var(--rouge); transition: transform .15s; }
.carte-annonce[open] > summary::before { transform: rotate(90deg); }
.annonce-titre { flex: 1 1 14rem; min-width: 0; font-weight: 700; font-size: 17px; line-height: 1.35; color: var(--anthracite); overflow-wrap: anywhere; }
.carte-annonce .meta { margin: 0 0 0 auto; font-size: 14px; }
.tag-epinglee { flex: none; padding: .15rem .55rem .1rem; background: var(--rouge); color: #fff; font: 400 12.5px/1.3 var(--affiche); letter-spacing: .07em; text-transform: uppercase; }
.annonce-texte { margin: 0; padding: 0 0 16px 1.2rem; font-size: 16.5px; max-width: none; }
.annonce-texte p:last-child, .annonce-texte ul:last-child, .annonce-texte ol:last-child { margin-bottom: 0; }
.annonces-precedentes { margin-top: 1rem; }
.annonces-precedentes .liste-annonces { margin-top: .8rem; }

/* derniers documents */
.tdb-docs { list-style: none; margin: 0; padding: 0; }
.tdb-docs li { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 0; }
.tdb-docs li + li { border-top: 1px solid var(--fond-3); }
.tdb-format { display: grid; place-items: center; height: 50px; border: 2px solid var(--anthracite); font: 400 12.5px/1 var(--affiche); letter-spacing: .06em; color: var(--anthracite); }
.tdb-format.pdf { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.tdb-doc { display: flex; flex-direction: column; min-width: 0; }
.tdb-doc-titre { font-weight: 700; color: var(--anthracite); text-decoration: none; overflow-wrap: anywhere; }
.tdb-doc-titre:hover { color: var(--rouge-fonce); text-decoration: underline; }
.tdb-doc-meta { font-size: 14px; color: var(--texte-2); }

/* prochains rendez-vous (lots B et F) : frise, le prochain en rouge */
.liste-rdv { list-style: none; margin: 0; padding: 0; }
.tdb-frise { position: relative; }
.tdb-frise::before { content: ""; position: absolute; left: 25px; top: 18px; bottom: 18px; border-left: 2px dashed var(--trait-2); }
.rdv { position: relative; }
.rdv-tete { display: flex; gap: 14px; align-items: center; padding: .55rem 0; }
summary.rdv-tete { cursor: pointer; list-style: none; }
summary.rdv-tete::-webkit-details-marker { display: none; }
.rdv .evt-date { position: relative; width: 52px; height: 56px; border: 2px solid var(--anthracite); border-radius: 0; background: #fff; color: var(--anthracite); font-size: 11.5px; }
.rdv .evt-date b { font: 400 25px/1 var(--affiche); }
.tdb-frise:first-of-type .rdv:first-child .evt-date { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.rdv.passe .evt-date { border-color: var(--trait-2); color: var(--texte-2); }
.rdv-corps { display: flex; flex-direction: column; min-width: 0; }
.rdv-titre { font-weight: 700; color: var(--anthracite); overflow-wrap: anywhere; }
summary.rdv-tete .rdv-titre { text-decoration: underline; text-decoration-color: var(--trait-2); text-underline-offset: 3px; }
.rdv-corps .meta { margin: 0; gap: .1rem .6rem; font-size: 14px; }
.rdv-suite { padding: 0 0 .7rem 66px; font-size: 15px; }
.rdv-suite p { margin: 0 0 .4rem; }
.rdv.passe .rdv-titre { color: var(--texte-2); }
.rdv-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; margin: 1.1rem 0 0; }
.rdv-actions .note { font-size: 14.5px; color: var(--texte-2); }
/* chantier 44 : dépôt et cahier de comptes en tête de la page d'une sous-catégorie « Trésorerie » (trésorerie avec les autres catégories) */
.actions-tresorerie { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.4rem; }
.actions-tresorerie .tdb-action { min-height: 44px; }

/* trésorerie (lots C et I) */
.tdb-solde { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; margin: 0 0 .8rem; }
.tdb-solde b { font: 400 44px/1 var(--affiche); color: var(--anthracite); font-variant-numeric: tabular-nums; }
.tdb-solde span { font-size: 14px; color: var(--texte-2); }
.tdb-ops { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--anthracite); }
.tdb-ops li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--fond-3); font-size: 15px; }
.tdb-ops li span { min-width: 0; overflow-wrap: anywhere; }
.tdb-ops b { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* tous les documents */
.tdb-tous { margin-top: 44px; padding-top: 22px; border-top: 5px solid var(--anthracite); }
.tdb-tous .categorie h3 { margin: 0 0 .8rem; padding-bottom: .6rem; border-bottom: 2px solid var(--fond-3); font: 900 21px/1.2 var(--titres); color: var(--anthracite); }
/* chantier 39 (demande du responsable de la Brigade) : titres des catégories sur fond rouge, en bandeau en haut du cadre */
.categorie > h2, .tdb-tous .categorie > h3 { margin: -22px -22px .9rem; padding: 13px 22px 10px; border: 0; border-radius: var(--rayon) var(--rayon) 0 0; background: var(--rouge); color: #fff; }
@media (prefers-reduced-motion: reduce) { .carte-annonce > summary::before { transition: none; } }

/* cahier de comptes du trésorier (chantier 20, lot I) : tableau sur ordinateur, lignes en cartes sur téléphone */
.page-comptes { max-width: 1100px; }
.page-comptes h2 { margin: 0 0 .8rem; }
.page-comptes section { margin-bottom: 2.2rem; }
.page-comptes .note { display: block; font-size: 14.5px; color: var(--texte-2); }
.depot-tresorerie, .actions-comptes { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.actions-comptes { margin: 1rem 0 0; }
.actions-comptes form { margin: 0; }
.exercices ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 1.4rem; padding: 0; }
.exercices a { display: inline-block; padding: .35rem .9rem; border: 2px solid var(--trait); border-radius: 999px; color: var(--anthracite); text-decoration: none; font-weight: 600; }
.exercices a .note { display: inline; font-weight: 400; }
.exercices a[aria-current="page"] { border-color: var(--anthracite); background: var(--anthracite); color: #fff; }
.exercices a[aria-current="page"] .note { color: #fff; }
.etat-exercice { display: inline-block; margin-left: .5rem; padding: .1rem .7rem; border-radius: 999px; font-size: 14px; font-weight: 700; vertical-align: middle; background: hsl(140, 40%, 92%); color: hsl(140, 45%, 22%); }
.etat-exercice.clos { background: var(--fond-2); color: var(--texte-2); }
.chiffres-comptes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.chiffres-comptes div { padding: 14px 16px; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); }
.chiffres-comptes dt { font-size: 14.5px; color: var(--texte-2); }
.chiffres-comptes dd { margin: .2rem 0 0; font-size: 22px; font-weight: 700; color: var(--anthracite); font-variant-numeric: tabular-nums; }
.chiffres-comptes .solde { border-color: var(--anthracite); }
@media (max-width: 44rem) { .chiffres-comptes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.recette { color: hsl(140, 45%, 26%); }
.depense { color: var(--rouge-fonce); }
.saisie-operation { margin-bottom: 2.2rem; }
.page-comptes details.cadre { padding: 18px 22px; margin-bottom: 1rem; }
.page-comptes details > summary { cursor: pointer; font-weight: 700; font-size: 18px; color: var(--anthracite); }
.page-comptes details[open] > summary { margin-bottom: 1rem; }
.grille-operation { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1.2rem; }
.grille-operation .large { grid-column: 1 / -1; }
@media (max-width: 34rem) { .grille-operation { grid-template-columns: minmax(0, 1fr); } }
.formulaire input[type="number"] { display: block; width: 100%; max-width: 10rem; padding: .6rem .8rem; border: 1px solid var(--trait-2); border-radius: 8px; background: #fff; font: inherit; font-size: 16px; color: var(--texte); }
.formulaire .case { display: flex; gap: .5rem; align-items: center; margin-top: .5rem; font-weight: 400; font-size: 15px; }
.tableau-comptes, .tableau-bilan { width: 100%; border-collapse: collapse; background: #fff; font-variant-numeric: tabular-nums; }
.tableau-comptes th, .tableau-comptes td { padding: .65rem .7rem; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: top; }
.tableau-comptes thead th { font-size: 14.5px; color: var(--texte-2); border-bottom: 2px solid var(--trait-2); }
.tableau-comptes .montant, .tableau-bilan .montant { text-align: right; white-space: nowrap; }
.tableau-comptes .libelle { overflow-wrap: anywhere; }
.actions-ligne { white-space: nowrap; }
.actions-ligne form { display: inline; }
.actions-ligne .btn-sec { padding: .3rem .7rem; font-size: 14.5px; }
@media (max-width: 44rem) {
    .tableau-comptes thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .tableau-comptes, .tableau-comptes tbody, .tableau-comptes tr, .tableau-comptes td { display: block; width: 100%; }
    .tableau-comptes tr { padding: .7rem 0; border-bottom: 1px solid var(--trait); }
    .tableau-comptes td { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; border: 0; text-align: right; }
    .tableau-comptes td::before { content: attr(data-libelle); font-weight: 600; color: var(--texte-2); text-align: left; }
    .tableau-comptes td.libelle { display: block; text-align: left; font-weight: 600; }
    .tableau-comptes td.libelle::before { content: none; }
    .tableau-comptes .actions-ligne { justify-content: flex-start; gap: .5rem; padding-top: .5rem; }
    .tableau-comptes .actions-ligne::before { content: none; }
}
.bilan-comptes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem 2rem; }
.bilan-comptes .tableau-resultat { grid-column: 1 / -1; max-width: 32rem; }
@media (max-width: 44rem) { .bilan-comptes { grid-template-columns: minmax(0, 1fr); } }
.tableau-bilan caption { text-align: left; font-weight: 700; font-size: 17px; color: var(--anthracite); padding-bottom: .4rem; }
.tableau-bilan th, .tableau-bilan td { padding: .45rem .6rem; border-bottom: 1px solid var(--trait); text-align: left; font-weight: 400; }
.tableau-bilan thead th { font-size: 14px; color: var(--texte-2); }
.tableau-bilan tfoot th, .tableau-bilan tfoot td, .tableau-bilan .resultat th, .tableau-bilan .resultat td { font-weight: 700; border-top: 2px solid var(--trait-2); }
.tableau-bilan .vide { color: var(--texte-2); font-style: italic; }
.liste-categories-comptes { list-style: none; margin: 0 0 1rem; padding: 0; }
.liste-categories-comptes li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--trait); }
.liste-categories-comptes form { margin: 0; }
.liste-categories-comptes .note { display: inline; }
.reglages-comptes h3 { margin: 1rem 0 .3rem; font-size: 1rem; }
.ajout-categorie { display: flex; flex-wrap: wrap; gap: 0 1rem; align-items: flex-end; margin-top: 1rem; }
.feuille-bilan .statut-exercice { color: var(--texte-2); }
.actions-bilan { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 0; }
@media print {
    .actions-bilan { display: none !important; }
    .feuille-bilan { border: 0; box-shadow: none; padding: 0; }
    .bilan-comptes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); font-size: 11pt; }
    .tableau-bilan tr { break-inside: avoid; }
}

/* chantier 20, lot O : guide d'utilisation (guide.html), une face par public ; à l'impression, une face par page A4 */
.aide-espace { margin: 2rem 0 0; text-align: center; font-size: 15.5px; }
.guide .actions-guide { display: flex; justify-content: flex-end; margin: 0 0 1rem; }
.guide-face { margin: 0 0 2rem; padding: 26px 28px; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre); }
.guide-face h1 { margin: 0 0 .5rem; font: 900 30px/1.15 var(--titres); color: var(--anthracite); }
.guide-face h1 span { display: block; font-size: 20px; color: var(--rouge); }
.guide-chapo { margin: 0 0 1.2rem; color: var(--texte-2); font-size: 16.5px; }
.guide-blocs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.guide-bloc { padding: 12px 14px; border-radius: 10px; background: var(--fond-2); }
.guide-bloc h2 { margin: 0 0 .35rem; font: 900 17px/1.25 var(--titres); color: var(--anthracite); }
.guide-bloc p { margin: 0; font-size: 15.5px; line-height: 1.5; }
.guide-bloc p + p { margin-top: .45rem; }
.guide-bloc-large { grid-column: 1 / -1; }
/* refonte du 2026-11-16 : à qui s'adresse la rubrique (rôles), en étiquettes */
.guide-bloc .guide-pour { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 .5rem; }
.guide-pour span { padding: 1px 9px; border-radius: 999px; background: var(--rouge-pale); color: var(--rouge-fonce); font-size: 13px; font-weight: 700; line-height: 1.6; }
.guide-pied { margin: 1.2rem 0 0; padding-top: .8rem; border-top: 1px solid var(--trait); color: var(--texte-2); font-size: 15px; }
@media (max-width: 720px) {
    .guide-face { padding: 18px 16px; }
    .guide-blocs { grid-template-columns: minmax(0, 1fr); }
    .guide-face h1 { font-size: 25px; }
}
@media print {
    @page { size: A4; margin: 12mm; }
    .guide .actions-guide { display: none !important; }
    .guide-face { margin: 0; padding: 0; border: 0; box-shadow: none; break-after: page; }
    .guide-face:last-child { break-after: auto; }
    .guide-face h1 { font-size: 24pt; }
    .guide-face h1 span { font-size: 15pt; }
    .guide-chapo { font-size: 12pt; margin-bottom: 10pt; }
    .guide-blocs { gap: 9pt 12pt; }
    .guide-bloc { padding: 9pt 10pt; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .guide-bloc h2 { font-size: 13pt; }
    .guide-bloc p, .guide-pied { font-size: 11.5pt; line-height: 1.42; }
    .guide-bloc .guide-pour { margin-bottom: 3pt; }
    .guide-pour span { padding: 0 7px; font-size: 9pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---- 16. chantier 38, lot 1 : accessibilité (propositions validées par Loïc le 2026-12-02) */
/* focus clavier blanc sur le bandeau rouge, le menu anthracite, la barre du compte et le pied (IU-22) ; rouge sur fond clair */
.bandeau :focus-visible, .menu :focus-visible, .barre-connecte :focus-visible, .pied :focus-visible,
.bandeau .recherche:focus-within, .menu .recherche:focus-within { outline-color: #fff; }
.menu .lanceur a:focus-visible { outline-color: var(--rouge); } /* tuiles du panneau « Parcourir », sur fond blanc */
/* titres « Vidéos » et « Audios » de la rubrique d'un espace, au style de « Tous les documents » (IU-03) */
.tdb-tous + .tdb-tous { margin-top: 40px; }
/* tableau de bord d'un espace sur téléphone : cadres à pleine largeur (IU-18) */
@media (max-width: 61.99rem) { .tdb-grille { align-items: stretch; } }
/* cibles de 44 px sur téléphone (IU-34) */
@media (max-width: 760px) {
    .ariane ol { margin-bottom: .6rem; }
    .ariane li { display: flex; align-items: center; }
    .ariane a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }
    .pied a { display: inline-flex; align-items: center; min-height: 44px; line-height: 1.3; }
    .pied-reduit ul { gap: 0 1.4rem; padding: 8px 16px; }
    .grille .carte .lieu, .carte .lieu { display: flex; flex-wrap: wrap; align-items: center; column-gap: .35rem; margin: -10px 0 .1rem; }
    .carte .lieu a { display: inline-flex; align-items: center; min-height: 44px; }
    .recherche { padding: 0 0 0 14px; }
    .recherche button { width: 44px; height: 44px; }
    .burger { min-height: 44px; padding: 0 .9rem; }
    .adh-mobile { justify-content: center; min-height: 44px; min-width: 52px; font-size: 13px; }
    .tdb-cadre-tete a, .bloc-tete .voir { display: inline-flex; align-items: center; min-height: 44px; padding-bottom: 0; }
}

/* ---- 17. chantier 38, lot 2 : accueil (lignes de 70 caractères environ, texte replié) et page introuvable */
.intro-in { display: grid; grid-template-columns: minmax(0, 41rem) auto; column-gap: 3.5rem; justify-content: start; }
.intro-in > * { grid-column: 1; }
.intro-in::after { display: none; }
.intro-in > img.figure { grid-column: 2; grid-row: 1 / span 4; float: none; margin: .4rem 0 0; align-self: start; }
.intro-suite[hidden] { display: none; }
.intro-lire { justify-self: start; margin-top: .4rem; }
.intro-lire[hidden] { display: none; }
.intro-lire svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.intro-lire[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (max-width: 760px) {
    .intro-in { display: block; }
    .intro-in::after { display: block; }
    .intro-in > img.figure { float: right; margin: 0 0 .6rem 1rem; }
}
@media (prefers-reduced-motion: reduce) { .intro-lire svg { transition: none; } }
.page-erreur .recherche-page { max-width: 30rem; margin: 1.6rem auto 0; }

/* ---- 18. chantier 38, lot 3 : trésorerie (classement en deux choix, zone de dépôt, actions écartées) et fenêtre de
   confirmation du thème */
.formulaire input[type="radio"], .formulaire input[type="checkbox"] { accent-color: var(--rouge); }
.classement-choix { border: 0; padding: 0; margin: 0 0 1.2rem; }
.classement-choix legend { padding: 0; margin-bottom: .45rem; font-weight: 600; font-size: 15.5px; color: var(--anthracite); }
.formulaire .classement-choix > label { display: flex; gap: 10px; align-items: center; font-weight: 400; margin: 0 0 .4rem; }
.classement-choix > label input { width: 20px; height: 20px; flex: none; margin: 0; }
.classement-champ { margin: 0 0 .8rem 30px; max-width: 24rem; }
.classement-champ.seul { margin-left: 0; }
.classement-champ[hidden] { display: none; }
.etiquette-champ { display: block; margin-bottom: .4rem; font-weight: 600; font-size: 15.5px; color: var(--anthracite); }
.formulaire .depot {
    position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin: 0; padding: 1rem 1.1rem; cursor: pointer;
    border: 2px dashed var(--trait-2); border-radius: 10px; background: var(--fond-2); font-weight: 400;
}
.formulaire .depot:hover, .formulaire .depot:focus-within, .formulaire .depot.survol { border-color: var(--rouge); background: var(--rouge-pale); }
.formulaire .depot:focus-within { outline: 3px solid var(--rouge); outline-offset: 2px; }
.depot-ico { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--rouge); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.depot .texte { flex: 1 1 12rem; min-width: 0; color: var(--texte-2); font-size: 15.5px; }
.depot .texte strong { color: var(--anthracite); font-weight: 600; }
.depot .btn-sec { pointer-events: none; }
.depot-nom { flex-basis: 100%; color: var(--anthracite); font-weight: 600; overflow-wrap: anywhere; }
.depot-nom:empty { display: none; }
.formulaire .depot input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
@media (hover: none), (max-width: 760px) { .depot .texte { display: none; } } /* écran tactile : rien à glisser, le bouton seul */
.docs-tresorerie .doc-actions { align-items: center; gap: 0; }
.docs-tresorerie .doc-actions form { margin-left: 1.6rem; padding-left: 1.6rem; border-left: 1px solid var(--trait); }
.btn-supprimer { border-color: transparent; background: none; text-decoration: underline; text-underline-offset: 3px; }
.btn-supprimer:hover { border-color: var(--rouge-fonce); text-decoration: none; }
@media (max-width: 600px) {
    .docs-tresorerie .liste-docs li { flex-direction: column; align-items: flex-start; gap: .55rem; }
    .docs-tresorerie .doc-actions form { margin-left: 1rem; padding-left: 1rem; }
}
dialog.confirmation { border: 0; border-radius: var(--rayon); padding: 0; width: min(30rem, calc(100vw - 2rem)); box-shadow: 0 24px 64px rgba(20, 24, 26, .45); color: var(--texte); }
dialog.confirmation::backdrop { background: rgba(20, 24, 26, .6); }
dialog.confirmation h2 { margin: 0; padding: 1.4rem 1.5rem .3rem; font: 900 22px/1.3 var(--titres); color: var(--anthracite); overflow-wrap: anywhere; }
dialog.confirmation p { margin: 0; padding: .3rem 1.5rem 1.2rem; font-size: 16.5px; line-height: 1.55; color: var(--texte-2); }
dialog.confirmation footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; padding: .9rem 1.5rem; border-top: 1px solid var(--trait); background: var(--fond-2); border-radius: 0 0 var(--rayon) var(--rayon); }

/* ---- 19. chantier 38, lot 4 : recherche (intertitres par type, mention du classement, chemin complet des cartes) */
.resultats-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; margin: 2rem 0 1rem; padding-bottom: .5rem; border-bottom: 3px solid var(--rouge); }
.resultats-tete h2 { margin: 0; font: 900 24px/1.2 var(--titres); color: var(--anthracite); }
.resultats-tete .compte { margin: 0; font-size: 14.5px; }
.carte .lieu .lieu-categorie { font-weight: 600; }

/* ---- 20. chantier 38, lot 5 : compte et connexion (« Mon compte » dans la barre, bouton du compte lisible, message) */
.barre-btn.barre-compte svg { fill: currentColor; stroke: none; }
@media (max-width: 600px) { .barre-btn.barre-compte { display: none; } } /* sur téléphone, le bouton du menu y mène déjà */
@media (max-width: 760px) {
    .adh-mobile { flex-direction: row; gap: .4rem; min-height: 44px; padding: 0 .75rem; border: 1px solid #6b7275; border-radius: 8px; font-size: 14px; }
    .adh-mobile svg { width: 18px; height: 18px; }
}
main > .message-page { background: var(--fond-2); padding: 18px max(20px, calc((100% - var(--largeur)) / 2 + 20px)) 0; }
.message-page .alerte { margin: 0; display: flex; align-items: center; gap: .6rem; }
.message-page .alerte svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { main > .message-page { padding: 14px 16px 0; } }

/* ---- 21. chantier 38, lot 6 : bandeau d'un espace sur téléphone (D2, IU-46) : image à gauche, nom à côté, sans pastille
   posée sur l'image (le nom est sur la couleur de fond de l'espace, contraste vérifié dans l'administration) */
@media (max-width: 760px) {
    .bandeau-espace.avec-image { display: flex; align-items: stretch; height: 96px; }
    .bandeau-espace.avec-image .bandeau-espace-image { position: static; transform: none; flex: none; height: 96px; width: auto; max-width: 42%; object-fit: cover; object-position: left center;
        -webkit-mask-image: linear-gradient(90deg, #000 75%, transparent); mask-image: linear-gradient(90deg, #000 75%, transparent); }
    .bandeau-espace.avec-image .bandeau-in { flex: 1; min-width: 0; margin: 0; height: 96px; padding: 0 14px 0 6px; justify-content: flex-start; }
    .bandeau-espace.avec-image .marque:not(.marque-image) { padding: 0; background: none; border-radius: 0; }
    .bandeau-espace.avec-image .bandeau-espace-nom { font-size: 24px; }
}

/* ---- 22. chantier 38, lot 6 : contact (champs facultatifs nommés, erreur sous chaque champ, IU-21) */
.facultatif { font-weight: 400; color: var(--texte-2); }
.formulaire .erreur-champ { display: flex; gap: .4rem; align-items: flex-start; margin: .35rem 0 0; color: var(--rouge-fonce); font-weight: 600; font-size: 15px; }
.formulaire .erreur-champ svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.formulaire [aria-invalid="true"] { border-color: var(--rouge); box-shadow: 0 0 0 1px var(--rouge); }
