/*
 * Guide des élections FO 2026. Charte d'Utile : rouge FO pour l'action, encre d'imprimerie pour le texte,
 * parallélogramme du logo FO pour les numéros d'étapes. Titres en Fira Sans Extra Condensed, texte en Fira Sans.
 * Mobile d'abord. Contrastes ≥ 4,5:1, cibles d'au moins 44 px, focus toujours visible. Aucun style en ligne (CSP).
 */

@font-face {
    font-family: "Fira Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/fira-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Fira Sans";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/fira-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Fira Sans Extra Condensed";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/fira-sans-extra-condensed-latin-700-normal.woff2") format("woff2");
}

:root {
    --rouge-plein: #c8102e;   /* fond rouge, texte blanc : 5,9:1 */
    --rouge-fonce: #9e0c24;
    --rouge-texte: #b00e29;   /* texte et liens rouges sur fond clair */
    --rouge-pale: #fbe9ec;
    --encre: #231f20;
    --encre-douce: #575152;
    --mur: #f1f1f3;
    --papier: #ffffff;
    --trait: #d5d7db;
    --trait-fort: #848990;
    --vert: #1b6b3a;
    --vert-pale: #e5f3ea;
    --bleu-pale: #e8f0fa;
    --bleu: #1a4f8f;
    --focus: #1a5fb4;
    --ombre: 0 1px 2px rgba(35, 31, 32, .08), 0 4px 14px rgba(35, 31, 32, .06);

    --titre: "Fira Sans Extra Condensed", "Arial Narrow", sans-serif;
    --corps: "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --largeur: 46rem;
    --hauteur-bandeau: 4.25rem;
    color-scheme: only light;
}

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

html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-padding-bottom: var(--hauteur-bandeau); }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--mur);
    color: var(--encre);
    font-family: var(--corps);
    font-size: 1.125rem;
    line-height: 1.55;
    padding-bottom: var(--hauteur-bandeau);
}

h1, h2, h3 { margin: 0; line-height: 1.1; font-family: var(--titre); font-weight: 700; }
p { margin: 0; }
strong { font-weight: 600; }
a { color: var(--rouge-texte); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }

.visuellement-cache {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.evitement {
    position: absolute;
    left: 1rem; top: -4rem;
    z-index: 30;
    padding: .6rem 1rem;
    background: var(--papier);
    color: var(--encre);
    font-weight: 600;
}
.evitement:focus { top: 1rem; }

/* ---------- En-tête : titre à gauche, logo FO à droite ---------- */

.entete { background: var(--papier); border-bottom: 5px solid var(--rouge-plein); }
.entete__dedans {
    max-width: var(--largeur);
    margin: 0 auto;
    padding: .5rem 1rem;
    display: flex;
    align-items: center;
    gap: .9rem;
}
.marque { flex: 1; min-width: 0; min-height: 48px; display: flex; flex-direction: column; justify-content: center; line-height: 1.1; color: var(--encre); text-decoration: none; }
.marque__sur { font-size: .9rem; font-weight: 600; color: var(--encre-douce); }
.marque__titre { font-family: var(--titre); font-weight: 700; font-size: 1.6rem; color: var(--rouge-texte); }
.entete__lien { display: none; color: var(--encre); font-weight: 600; padding: .55rem .2rem; white-space: nowrap; }
.entete__logo { flex: none; display: block; border-radius: .3rem; }
.entete__logo img { display: block; width: 58px; height: auto; }
@media (min-width: 40rem) {
    .entete__lien { display: inline-flex; }
    .entete__logo img { width: 68px; }
}

/* ---------- Écran ---------- */

.principal {
    flex: 1;
    width: 100%;
    max-width: var(--largeur);
    margin: 0 auto;
    padding: 1rem 1rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.principal:focus { outline: none; }

.ecran__entete { display: flex; flex-direction: column; gap: .35rem; }
.sur-titre { color: var(--rouge-texte); font-weight: 600; font-size: 1rem; }
.titre { font-size: clamp(2.2rem, 9vw, 3rem); letter-spacing: -.01em; }
.titre:focus { outline: none; }
.ecran--accueil .titre { font-size: clamp(2.6rem, 11.5vw, 3.8rem); line-height: 1; }
.chapeau { font-size: 1.2rem; }
.note { color: var(--encre-douce); font-size: 1rem; }
.note--compte { margin-top: -.6rem; }
.titre-section { font-size: 1.6rem; margin-top: .5rem; }

/* Navigation : retour et fil d'Ariane */
.navigation { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; font-size: 1rem; }
.retour {
    display: inline-flex; align-items: center;
    min-height: 44px; padding: 0 .9rem;
    border: 2px solid var(--trait); border-radius: 999px;
    background: var(--papier);
    color: var(--encre); font-weight: 600; text-decoration: none;
}
.retour:hover { border-color: var(--rouge-texte); }
.fil { display: flex; flex-wrap: wrap; gap: .1rem .4rem; list-style: none; margin: 0; padding: 0; color: var(--encre-douce); }
.fil li + li::before { content: "›"; margin-right: .4rem; color: var(--trait-fort); }
.fil a { color: var(--encre-douce); }

/* ---------- Boutons ---------- */

.bouton {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    min-height: 48px; padding: .7rem 1.3rem;
    border: 2px solid var(--rouge-plein); border-radius: .6rem;
    background: var(--rouge-plein); color: #fff;
    font: inherit; font-weight: 600; text-decoration: none; text-align: center;
    cursor: pointer;
}
.bouton:hover { background: var(--rouge-fonce); border-color: var(--rouge-fonce); text-decoration: none; }
.bouton--grand { width: 100%; font-size: 1.4rem; min-height: 64px; border-radius: .9rem; font-family: var(--titre); letter-spacing: .01em; }
.bouton--secondaire { background: var(--papier); color: var(--rouge-texte); }
.bouton--secondaire:hover { background: var(--rouge-pale); color: var(--rouge-texte); }
.appel { margin: .25rem 0; }

.portail { display: flex; }
.bouton--portail { flex-direction: column; gap: .1rem; width: 100%; font-size: 1.15rem; }
.portail__adresse { font-weight: 400; font-size: .85rem; opacity: .95; overflow-wrap: anywhere; }
.portail--texte { padding: .8rem 1rem; border: 2px dashed var(--trait-fort); border-radius: .6rem; }

/* ---------- Questions : chaque réponse mène à l'écran suivant ---------- */

.question { display: flex; flex-direction: column; gap: .7rem; }
.question__libelle { font-size: 1.75rem; }
.choix { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.choix__lien {
    position: relative;
    display: flex; flex-direction: column; gap: .15rem;
    min-height: 64px;
    padding: 1rem 3rem 1rem 1.15rem;
    border: 2px solid var(--trait); border-radius: .9rem;
    background: var(--papier);
    box-shadow: var(--ombre);
    color: var(--encre); text-decoration: none;
}
.choix__lien::after {
    content: "";
    position: absolute; right: 1.1rem; top: 50%;
    width: .65rem; height: .65rem;
    border-top: 3px solid var(--rouge-texte); border-right: 3px solid var(--rouge-texte);
    transform: translateY(-50%) rotate(45deg);
}
.choix__lien:hover { border-color: var(--rouge-texte); }
.choix__lien:active, .tuile:active, .bouton:active { transform: scale(.985); }
.choix__libelle { font-weight: 600; font-size: 1.2rem; line-height: 1.3; }
.choix__detail { color: var(--encre-douce); font-size: 1rem; }
.choix__lien--principal { background: var(--rouge-plein); border-color: var(--rouge-plein); color: #fff; }
.choix__lien--principal .choix__detail { color: #fff; opacity: .92; }
.choix__lien--principal::after { border-color: #fff; }
.choix__lien--principal:hover { background: var(--rouge-fonce); border-color: var(--rouge-fonce); }
.etiquette {
    align-self: flex-start;
    margin-top: .25rem; padding: .1rem .55rem;
    border-radius: .3rem;
    background: var(--rouge-pale); color: var(--rouge-texte);
    font-size: .85rem; font-weight: 600;
}

/* ---------- Encadrés ---------- */

.encadre {
    display: flex; flex-direction: column; gap: .6rem;
    padding: 1rem 1.1rem;
    border-left: 5px solid var(--trait-fort); border-radius: .5rem;
    background: var(--papier);
    box-shadow: var(--ombre);
}
.encadre__titre { font-size: 1.5rem; }
.encadre--reponse { border-left-color: var(--rouge-plein); }
.encadre--alerte { border-left-color: var(--rouge-plein); background: var(--rouge-pale); box-shadow: none; }
.encadre--info { border-left-color: var(--bleu); background: var(--bleu-pale); box-shadow: none; }
.encadre--discret { border-left-color: var(--trait); box-shadow: none; background: transparent; padding-left: 1rem; }
.encadre--guide { border-left-color: var(--vert); background: var(--vert-pale); box-shadow: none; }
.encadre--slogan { border-left-color: var(--rouge-plein); align-items: flex-start; }
.slogan { font-family: var(--titre); font-weight: 700; font-size: 1.6rem; color: var(--rouge-texte); line-height: 1.15; }

/* ---------- Compte à rebours : blocs inclinés comme le logo FO ---------- */

.compte {
    display: flex; flex-direction: column; gap: .7rem;
    padding: 1.1rem 1rem 1.2rem;
    border-radius: 1rem;
    background: var(--rouge-plein); color: #fff;
}
.compte:empty { display: none; }
.compte__libelle { font-family: var(--titre); font-weight: 700; font-size: 1.5rem; line-height: 1.1; }
.compte__chiffres { display: flex; gap: .55rem; padding: 0 .3rem; }
.compte__bloc {
    flex: 1 1 0; min-width: 0;
    display: flex; flex-direction: column; align-items: center;
    padding: .45rem .1rem .4rem;
    border-radius: .35rem;
    background: #fff; color: #c8102e;
    transform: skewX(-9deg);
}
.compte__bloc > * { transform: skewX(9deg); }
.compte__nombre { font-family: var(--titre); font-weight: 700; font-size: clamp(2.5rem, 12.5vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.compte__unite { font-size: .85rem; font-weight: 600; color: #231f20; }
.compte__fin { font-size: 1rem; line-height: 1.35; }
@media (max-width: 24rem) {
    .compte__chiffres { gap: .4rem; padding: 0 .15rem; }
    .compte__unite { font-size: .72rem; }
}
.compte--urgent { background: #8f0a20; }
.compte--avant { background: #1a4f8f; }
.compte--avant .compte__bloc { color: #1a4f8f; }
.compte--clos { background: #575152; }
@media (prefers-reduced-motion: no-preference) {
    .compte--urgent .compte__libelle::before { content: ""; display: inline-block; width: .6rem; height: .6rem; margin: 0 .5rem .15rem 0; border-radius: 50%; background: #fff; animation: pulsation 1.4s ease-in-out infinite; }
}
@keyframes pulsation { 50% { opacity: .25; } }

/* ---------- Étapes numérotées (parallélogramme FO) ---------- */

.etapes { list-style: none; counter-reset: etape; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.etape {
    counter-increment: etape;
    position: relative;
    display: flex; flex-direction: column; gap: .5rem;
    padding: 1rem 1.1rem 1.1rem 4rem;
    border-radius: .6rem;
    background: var(--papier);
    box-shadow: var(--ombre);
}
.etape::before {
    content: counter(etape);
    position: absolute; left: 1rem; top: 1rem;
    width: 2.1rem; height: 2.1rem;
    display: grid; place-items: center;
    background: var(--rouge-plein); color: #fff;
    font-family: var(--titre); font-weight: 700; font-size: 1.3rem;
    clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%);
}
.etape__titre { font-size: 1.3rem; }
.etape .question__libelle { font-size: 1.2rem; }

.codes { margin: 0; display: grid; gap: .15rem .9rem; }
.codes dt { font-weight: 600; }
.codes dd { margin: 0 0 .45rem; }
@media (min-width: 40rem) {
    .codes { grid-template-columns: minmax(8rem, max-content) 1fr; }
    .codes dd { margin: 0 0 .35rem; }
}

/* ---------- Contacts ---------- */

.contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.contact { display: flex; flex-direction: column; gap: .35rem; }
.contact__nom { font-weight: 600; }
.contact__note { font-weight: 400; color: var(--encre-douce); }
.contact__actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.pastille {
    display: inline-flex; align-items: center;
    min-height: 44px; padding: .35rem .85rem;
    border: 2px solid var(--trait); border-radius: 999px;
    background: var(--papier);
    color: var(--rouge-texte); font-weight: 600; font-size: .95rem;
    text-decoration: none; overflow-wrap: anywhere;
}
.pastille:hover { border-color: var(--rouge-texte); }
.pastille--tel { background: var(--rouge-plein); border-color: var(--rouge-plein); color: #fff; white-space: nowrap; }
.pastille--tel:hover { background: var(--rouge-fonce); }
.tel { white-space: nowrap; font-weight: 600; }

.groupes-contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.groupe-contacts { padding: 1rem 1.1rem; border-radius: .6rem; background: var(--papier); box-shadow: var(--ombre); display: flex; flex-direction: column; gap: .6rem; }
.groupe-contacts__titre { font-size: 1.25rem; }
.groupe-contacts__titre a { color: var(--encre); text-decoration: none; }
.groupe-contacts__titre a:hover { color: var(--rouge-texte); text-decoration: underline; }

.liens-guides { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }

/* ---------- Union départementale (choix du département) ---------- */

.encadre--ud { border-left-color: var(--rouge-plein); }
.ud { display: flex; flex-direction: column; gap: .3rem; }
.ud__libelle { font-weight: 600; }
.ud__choix {
    width: 100%; min-height: 50px;
    padding: .6rem .9rem;
    border: 2px solid var(--trait-fort); border-radius: .6rem;
    background: var(--papier); color: var(--encre);
    font: inherit;
}
.ud__choix:focus-visible { border-color: var(--focus); }
.ud__resultat { display: flex; flex-direction: column; gap: .4rem; }
.ud__resultat:empty { display: none; }

/* ---------- Partage du guide ---------- */

.encadre--partage { border-left-color: var(--vert); }
.partage { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.partage__large { grid-column: 1 / -1; }
.partage__bouton {
    display: flex; align-items: center; justify-content: center;
    width: 100%; min-height: 48px; padding: .5rem .8rem;
    border: 2px solid var(--trait-fort); border-radius: .6rem;
    background: var(--papier); color: var(--encre);
    font: inherit; font-weight: 600; text-align: center; text-decoration: none;
    cursor: pointer;
}
.partage__bouton:hover { border-color: var(--rouge-texte); color: var(--rouge-texte); }
.partage__bouton--whatsapp { background: #1f7a43; border-color: #1f7a43; color: #fff; }
.partage__bouton--whatsapp:hover { background: #17603a; border-color: #17603a; color: #fff; }
@media (min-width: 40rem) {
    .partage { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Accueil ---------- */

.tuiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .7rem; }
.tuile {
    display: flex; flex-direction: column; gap: .2rem;
    height: 100%; min-height: 5rem;
    padding: .9rem 1rem;
    border: 2px solid var(--trait); border-radius: .9rem;
    background: var(--papier);
    box-shadow: var(--ombre);
    color: var(--encre); text-decoration: none;
}
.tuile:hover { border-color: var(--rouge-texte); }
.tuile__titre { font-family: var(--titre); font-weight: 700; font-size: 1.45rem; color: var(--rouge-texte); }
.tuile__detail { color: var(--encre-douce); font-size: 1rem; }

.essentiel { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.essentiel li { padding: 1rem 1.1rem; border-left: 5px solid var(--rouge-plein); border-radius: .5rem; background: var(--papier); box-shadow: var(--ombre); display: flex; flex-direction: column; gap: .35rem; }
.essentiel__titre { font-size: 1.3rem; }

/* ---------- Recherche d'une administration ---------- */

.recherche { display: flex; flex-direction: column; gap: .3rem; }
.recherche__libelle { font-weight: 600; }
.recherche__aide { color: var(--encre-douce); font-size: .9rem; }
.recherche__champ {
    width: 100%; min-height: 50px;
    padding: .6rem .9rem;
    border: 2px solid var(--trait-fort); border-radius: .6rem;
    background: var(--papier); color: var(--encre);
    font: inherit;
}
.recherche__champ:focus-visible { border-color: var(--focus); }
.recherche__resultat { color: var(--encre-douce); font-size: .95rem; min-height: 1.2em; }

/* ---------- Tableaux ---------- */

.tableau-codes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.tableau-codes li { padding: .75rem 1rem; border-radius: .5rem; background: var(--papier); box-shadow: var(--ombre); display: flex; flex-direction: column; gap: .15rem; }
.tableau-codes__ministere { font-weight: 600; }

.horaires { width: 100%; border-collapse: collapse; background: var(--papier); box-shadow: var(--ombre); border-radius: .6rem; overflow: hidden; }
.horaires th, .horaires td { padding: .7rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--trait); }
.horaires thead th { background: var(--encre); color: var(--papier); font-family: var(--corps); font-size: .9rem; }
.horaires tbody th { font-family: var(--corps); font-weight: 600; font-size: 1rem; }
.adresse { overflow-wrap: anywhere; }
@media (max-width: 40rem) {
    .horaires thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .horaires, .horaires tbody, .horaires tr, .horaires th, .horaires td { display: block; width: 100%; }
    .horaires tr { padding: .4rem 0; border-bottom: 2px solid var(--trait); }
    .horaires th, .horaires td { border: 0; padding: .25rem .9rem; }
    .horaires td::before { content: attr(data-libelle) " : "; color: var(--encre-douce); font-size: .9rem; }
}

/* ---------- Fiche complète (à déplier, imprimable) ---------- */

.fiche { padding: .2rem 1.1rem; border: 2px solid var(--trait); border-radius: .6rem; background: var(--papier); }
.fiche summary { min-height: 48px; display: flex; align-items: center; font-weight: 600; cursor: pointer; color: var(--rouge-texte); }
.fiche[open] { padding-bottom: 1rem; }
.fiche[open] > :not(summary) { margin-top: .8rem; }
.fiche__contenu { margin: 0; }
.fiche__contenu dt { font-family: var(--titre); font-weight: 700; font-size: 1.15rem; margin-top: .8rem; }
.fiche__contenu dd { margin: .25rem 0 0; }
.fiche__contenu ul { margin: 0; padding-left: 1.2rem; }

/* ---------- Votre service (facultatif) : choisit le contact FO du bandeau ---------- */

.service { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; border: 1px dashed var(--trait-fort); border-radius: .7rem; }
.service__titre { font-size: 1.25rem; }
.service__facultatif { font-family: var(--corps); font-size: .9rem; font-weight: 400; color: var(--encre-douce); }
.service .note { margin: 0; }
.service__liste { display: flex; flex-wrap: wrap; gap: .5rem; }
.service__choix {
    min-height: 44px; padding: .45rem .95rem;
    border: 2px solid var(--trait); border-radius: 999px;
    background: var(--papier); color: var(--encre);
    font: inherit; font-size: .95rem; text-align: left; cursor: pointer;
}
.service__choix:hover { border-color: var(--rouge-texte); }
.service__choix[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: var(--papier); font-weight: 600; }
.service__choix[aria-pressed="true"]::before { content: "✓ "; }

/* ---------- Bandeau de la fédération (fixe, en bas) ---------- */

.bandeau-fd {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    min-height: var(--hauteur-bandeau);
    display: flex; align-items: center; justify-content: space-between; gap: .6rem 1rem;
    padding: .55rem max(1rem, calc((100vw - var(--largeur)) / 2 + 1rem)) calc(.55rem + env(safe-area-inset-bottom));
    background: #231f20; color: #fff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .18);
}
.bandeau-fd__texte { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.bandeau-fd__sur { font-size: .85rem; color: #ddd6d7; }
.bandeau-fd__texte strong { font-size: 1.1rem; }
.bandeau-fd__note { font-size: .85rem; color: #ddd6d7; }
.bandeau-fd__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
.bandeau-fd__bouton {
    display: inline-flex; align-items: center;
    min-height: 44px; padding: .3rem .85rem;
    border: 2px solid #fff; border-radius: 999px;
    color: #fff; font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap;
}
.bandeau-fd__bouton:hover { background: rgba(255, 255, 255, .12); }
.bandeau-fd__bouton--appel { background: var(--rouge-plein); border-color: var(--rouge-plein); }
.bandeau-fd__bouton--appel:hover { background: var(--rouge-fonce); border-color: var(--rouge-fonce); }
.bandeau-fd :focus-visible { outline-color: #fff; }
@media (prefers-reduced-motion: no-preference) {
    .bandeau-fd--change { animation: bandeau-change .9s ease-out; }
}
@keyframes bandeau-change { 0% { background: var(--rouge-plein); } 100% { background: #231f20; } }
.bandeau-fd__texte strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
@media (max-width: 34rem) {
    :root { --hauteur-bandeau: 3.9rem; }
    .bandeau-fd { padding-left: .75rem; padding-right: .75rem; gap: .5rem; }
    .bandeau-fd__sur { font-size: .8rem; }
    .bandeau-fd__texte strong { font-size: 1rem; }
    .bandeau-fd__note { display: none; }
    .bandeau-fd__actions { flex-wrap: nowrap; gap: .3rem; }
    .bandeau-fd__bouton { padding: .3rem .65rem; font-size: .95rem; }
    .bandeau-fd__numero { display: none; }
    .bandeau-fd__bouton--appel::after { content: "Appeler"; margin-left: .25rem; }
}

/* Message « lien copié » */
.annonce {
    position: fixed; left: 50%; bottom: calc(var(--hauteur-bandeau) + 1rem); z-index: 25;
    transform: translateX(-50%);
    max-width: calc(100% - 2rem);
    padding: .7rem 1.1rem;
    border-radius: .6rem;
    background: var(--encre); color: var(--papier);
    font-weight: 600;
    opacity: 0; pointer-events: none;
    transition: opacity .2s;
}
.annonce--visible { opacity: 1; }
.annonce:empty { display: none; }

/* ---------- Pied de page ---------- */

.pied { background: var(--papier); border-top: 1px solid var(--trait); color: var(--encre-douce); font-size: .95rem; }
.pied__dedans { max-width: var(--largeur); margin: 0 auto; padding: 1.2rem 1rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; }
.pied__slogan { font-family: var(--titre); font-weight: 700; font-size: 1.25rem; color: var(--rouge-texte); }
.pied a { color: var(--encre-douce); }

@media (min-width: 48rem) {
    body { font-size: 1.09rem; }
    .principal { padding-top: 1.5rem; gap: 1.5rem; }
}

/* ---------- Impression : la fiche, sans navigation ---------- */

@media print {
    :root { --mur: #fff; --ombre: none; }
    body { padding: 0; background: #fff; color: #000; font-size: 11pt; }
    .entete { background: none; color: #000; border-bottom: 2px solid #000; }
    .marque, .entete__lien { color: #000; }
    .compte { background: none !important; color: #000; border: 2px solid #000; }
    .entete__lien, .navigation, .bandeau-fd, .annonce, .question, .bouton, .evitement, .compte__chiffres, .encadre--partage, .encadre--ud, .service { display: none !important; }
    .fiche { border: 0; padding: 0; }
    .fiche summary { display: none; }
    a { color: #000; }
    a[href^="https://"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
