/* Project RobinStar — back-office. Une seule feuille de style ; pas de style en ligne sauf couleurs et largeurs calculées. */

/* ---------------------------------------------------------------------------
   Thème : couleurs du logo (rouge profond, rouge vif de l'étoile, blanc)
   --------------------------------------------------------------------------- */
:root {
  --rouge: #a3151d;            /* couleur de marque (boutons, liens) */
  --rouge-fonce: #7a0f15;
  --rouge-vif: #e0161f;        /* l'étoile du logo */
  --rouge-pale: #fdecec;
  --fond: #f6f3f1;
  --surface: #ffffff;
  --surface-2: #faf8f6;
  --texte: #1f1a17;
  --muet: #7a716b;
  --bord: #ebe5e0;
  --bord-fort: #d9d1cb;
  --ok: #2e7d32; --ok-pale: #e8f5e9;
  --alerte: #c62828; --alerte-pale: #fdecea;
  --info: #1e5bb8; --info-pale: #e8f0fc;
  --rayon: 14px; --rayon-petit: 9px;
  --ombre: 0 1px 2px rgba(60, 20, 20, .05), 0 4px 16px rgba(60, 20, 20, .06);
  --ombre-forte: 0 10px 40px rgba(60, 20, 20, .18);
  --anim: .18s cubic-bezier(.4, 0, .2, 1);
  --police: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--police); background: var(--fond); color: var(--texte); -webkit-font-smoothing: antialiased; }
a { color: var(--rouge); text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color var(--anim); }
a:hover { color: var(--rouge-vif); }
h1 { font-size: 1.6rem; font-weight: 750; letter-spacing: -.02em; margin: .2rem 0 1rem; }
h2 { font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 .9rem; }
h3 { font-size: .98rem; margin: 1rem 0 .5rem; }
::selection { background: var(--rouge); color: #fff; }
:focus-visible { outline: 3px solid rgba(224, 22, 31, .35); outline-offset: 2px; border-radius: 6px; }
main { max-width: 1320px; margin: 0 auto; padding: 1.4rem 1.2rem 3rem; animation: apparition .25s ease-out; }
@keyframes apparition { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------------
   En-tête et navigation
   --------------------------------------------------------------------------- */
.barre { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: .6rem 1.4rem;
  background: linear-gradient(120deg, var(--rouge-fonce) 0%, var(--rouge) 55%, #b51a22 100%); color: #fff;
  padding: .55rem 1.2rem; box-shadow: 0 2px 14px rgba(90, 10, 15, .25); }
.barre a { color: #fff; text-decoration: none; }
.marque { display: flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; font-size: 1.02rem; }
.marque img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 2px 8px rgba(0, 0, 0, .25); transition: transform var(--anim); }
.marque:hover img { transform: rotate(-8deg) scale(1.05); }
.marque small { display: block; font-size: .68rem; font-weight: 500; opacity: .75; letter-spacing: .04em; text-transform: uppercase; margin-top: -2px; }
.barre nav { display: flex; gap: .15rem; flex: 1; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.barre nav::-webkit-scrollbar { display: none; }
.barre nav a { position: relative; padding: .45rem .75rem; border-radius: 999px; font-size: .9rem; font-weight: 550; white-space: nowrap; opacity: .82; transition: background var(--anim), opacity var(--anim); }
.barre nav a:hover { background: rgba(255, 255, 255, .12); opacity: 1; }
.barre nav a.actif { background: #fff; color: var(--rouge); opacity: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.moi { display: flex; gap: .7rem; align-items: center; font-size: .86rem; white-space: nowrap; }
.moi > a { display: flex; align-items: center; gap: .45rem; padding: .3rem .7rem .3rem .3rem; border-radius: 999px; background: rgba(255, 255, 255, .12); transition: background var(--anim); }
.moi > a:hover { background: rgba(255, 255, 255, .22); }
.moi .avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--rouge); font-weight: 800; font-size: .78rem; }
.moi .muet { color: #ffd7d9; }
.barre .lien { color: #fff; opacity: .85; text-decoration: none; }
.barre .lien:hover { opacity: 1; text-decoration: underline; }
.pastille { display: inline-block; min-width: 1.2rem; text-align: center; background: var(--rouge-vif); color: #fff; border-radius: 999px; padding: 0 .35rem; font-size: .7rem; font-weight: 800; line-height: 1.2rem; margin-left: .2rem; box-shadow: 0 0 0 2px #fff; }
.barre nav a.actif .pastille { box-shadow: none; }

/* ---------------------------------------------------------------------------
   Mise en page, cartes, tuiles
   --------------------------------------------------------------------------- */
.carte { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.15rem 1.3rem; margin-bottom: 1.1rem; box-shadow: var(--ombre); }
.carte.etroite { max-width: 420px; margin: 3rem auto; }
.carte.vide { text-align: center; padding: 2.5rem 1.5rem; }
.carte.vide p { margin: .4rem 0; }
details.carte > summary { cursor: pointer; list-style: none; }
details.carte > summary::-webkit-details-marker { display: none; }
details.carte > summary::before { content: "›"; display: inline-block; margin-right: .5rem; font-weight: 700; color: var(--rouge); transition: transform var(--anim); }
details.carte[open] > summary::before { transform: rotate(90deg); }
details.carte[open] > summary { margin-bottom: .8rem; }
.titre { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; margin-bottom: .2rem; }
.titre h1 { margin-bottom: .6rem; }
.grille2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 1.1rem; }
.grille2 > .carte { margin-bottom: 0; }
.grille2 + * { margin-top: 1.1rem; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.tuile { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: .95rem 1.1rem; box-shadow: var(--ombre); transition: transform var(--anim), box-shadow var(--anim); }
.tuile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(var(--rouge-vif), var(--rouge)); }
.tuile:hover { transform: translateY(-2px); box-shadow: var(--ombre-forte); }
.tuile b { display: block; font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tuile span { color: var(--muet); font-size: .84rem; }

/* ---------------------------------------------------------------------------
   Tableaux
   --------------------------------------------------------------------------- */
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
th, td { text-align: left; padding: .55rem .65rem; border-bottom: 1px solid var(--bord); vertical-align: top; }
th { font-weight: 650; color: var(--muet); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; background: var(--surface-2); }
tr:first-child th:first-child { border-top-left-radius: var(--rayon-petit); } tr:first-child th:last-child { border-top-right-radius: var(--rayon-petit); }
tbody tr, table tr { transition: background var(--anim); }
table tr:hover > td { background: #fcf7f6; }
tr:last-child > td { border-bottom: 0; }
tr.inactif td { opacity: .5; } tr.a-faire td { background: #fff8ef; } tr.a-relancer td { background: var(--alerte-pale); } tr.deja td { color: var(--muet); }
.defile { overflow: auto; max-height: 480px; border: 1px solid var(--bord); border-radius: var(--rayon-petit); background: var(--surface); }
.defile.haute { max-height: 72vh; }
.defile thead th, .defile th { position: sticky; top: 0; z-index: 1; }
td.nombre { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------------------
   Formulaires
   --------------------------------------------------------------------------- */
label { display: block; margin-bottom: .75rem; font-size: .86rem; font-weight: 550; color: #4a413c; }
label small { font-weight: 400; }
label.case { display: flex; gap: .55rem; align-items: center; font-weight: 450; cursor: pointer; }
input, select, textarea { display: block; width: 100%; margin-top: .3rem; padding: .55rem .7rem; border: 1px solid var(--bord-fort); border-radius: var(--rayon-petit);
  font: inherit; font-weight: 400; color: var(--texte); background: #fff; transition: border-color var(--anim), box-shadow var(--anim), background var(--anim); }
input:hover, select:hover, textarea:hover { border-color: #c4b9b1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rouge); box-shadow: 0 0 0 3px rgba(163, 21, 29, .14); }
input::placeholder, textarea::placeholder { color: #a99f98; }
select { appearance: none; padding-right: 2rem; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237a716b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right .75rem center; }
select[multiple] { background-image: none; padding-right: .7rem; }
select[multiple] option { padding: .25rem .35rem; border-radius: 5px; }
input[type=checkbox], input[type=radio] { width: 1.05rem; height: 1.05rem; display: inline-block; margin: 0; accent-color: var(--rouge); cursor: pointer; flex: none; }
input[type=color] { padding: 2px; height: 2.2rem; width: 3rem; cursor: pointer; }
input[type=search] { padding-left: 2.3rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a716b' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat .75rem center; }
input.court { width: 4.8rem; }
textarea { resize: vertical; min-height: 2.6rem; }
.enligne { display: inline-flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin: 0; }
.enligne select, .enligne input { width: auto; margin: 0; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
fieldset { border: 1px solid var(--bord); border-radius: var(--rayon-petit); margin: 0; padding: .7rem .95rem .3rem; background: var(--surface-2); }
legend { font-weight: 700; font-size: .85rem; padding: 0 .4rem; color: var(--rouge); }
.formulaire button { margin-top: .4rem; }
.cache { display: none !important; }
.depot input { padding: 1.2rem; border: 2px dashed var(--bord-fort); background: var(--surface-2); cursor: pointer; }
.depot input:hover { border-color: var(--rouge); background: var(--rouge-pale); }

/* ---------------------------------------------------------------------------
   Boutons et liens d'action
   --------------------------------------------------------------------------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; background: linear-gradient(180deg, #b3171f, var(--rouge)); color: #fff;
  border: 1px solid var(--rouge-fonce); border-radius: var(--rayon-petit); padding: .55rem 1.1rem; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none;
  box-shadow: 0 1px 2px rgba(122, 15, 21, .25), inset 0 1px 0 rgba(255, 255, 255, .15); transition: transform var(--anim), box-shadow var(--anim), filter var(--anim); }
.bouton:hover { color: #fff; filter: brightness(1.08); box-shadow: 0 4px 14px rgba(163, 21, 29, .3); transform: translateY(-1px); }
.bouton:active { transform: translateY(0); filter: brightness(.95); }
.bouton:disabled { opacity: .55; cursor: wait; transform: none; }
.bouton.second { background: #fff; color: var(--rouge); border-color: var(--bord-fort); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.bouton.second:hover { border-color: var(--rouge); background: var(--rouge-pale); color: var(--rouge); box-shadow: none; }
.bouton.danger, .danger { background: var(--alerte); border-color: #9c1d1d; color: #fff; }
.bouton.petit { padding: .3rem .7rem; font-size: .84rem; }
.lien { background: none; border: 0; color: var(--rouge); cursor: pointer; padding: 0 .2rem; font: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lien:hover { color: var(--rouge-vif); }
.lien.danger { background: none; color: var(--alerte); border: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin-top: .9rem; }
.actions select { width: auto; margin: 0; }
.actions-ligne { white-space: nowrap; }
.ligne-form { display: flex; flex-wrap: wrap; gap: .7rem; align-items: end; }
.ligne-form label { margin: 0; flex: 1; min-width: 160px; }
.ligne-form label.etroit { flex: 0 0 auto; min-width: 0; }
.ligne-form input[name=libelle] { width: auto; display: inline-block; }

/* ---------------------------------------------------------------------------
   Textes, messages, badges, progression
   --------------------------------------------------------------------------- */
.muet { color: var(--muet); } .alerte { color: var(--alerte); font-weight: 650; } .ok { color: var(--ok); font-weight: 650; }
.flash { display: flex; align-items: flex-start; gap: .6rem; padding: .8rem 1rem; border-radius: var(--rayon-petit); margin-bottom: 1rem; border: 1px solid transparent; animation: glisse .3s ease-out; }
.flash::before { font-weight: 800; flex: none; }
.flash.ok { background: var(--ok-pale); color: #1b5e20; border-color: #c8e6c9; } .flash.ok::before { content: "✓"; }
.flash.erreur { background: var(--alerte-pale); color: #a31515; border-color: #f6cfcf; } .flash.erreur::before { content: "!"; }
.flash.info { background: var(--info-pale); color: #174a96; border-color: #cfdcf4; } .flash.info::before { content: "i"; font-style: italic; font-family: Georgia, serif; }
@keyframes glisse { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.badge { display: inline-block; padding: .1rem .55rem; border-radius: 999px; color: #fff; font-size: .74rem; font-weight: 650; background: #777; white-space: nowrap; }
.progres { display: inline-block; width: 120px; height: 8px; background: #efe9e5; border-radius: 999px; overflow: hidden; vertical-align: middle; }
.progres span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #43a047, var(--ok)); transition: width .6s ease-out; }
.avancement { white-space: nowrap; }
.avancement small { margin-left: .3rem; color: var(--muet); }
.ligne-barre { display: grid; grid-template-columns: 170px 1fr 50px; gap: .6rem; align-items: center; margin-bottom: .45rem; font-size: .9rem; }
.ligne-barre .progres { width: 100%; height: 12px; }
.histo { width: 100%; height: auto; } .histo rect { fill: var(--rouge); opacity: .85; transition: opacity var(--anim); } .histo rect:hover { opacity: 1; fill: var(--rouge-vif); } .histo text { font-size: 10px; fill: var(--muet); }
.message { border-left: 3px solid var(--rouge); padding: .45rem .9rem; margin-bottom: .7rem; background: var(--surface-2); border-radius: 0 var(--rayon-petit) var(--rayon-petit) 0; }
.message.lu { border-color: var(--bord-fort); opacity: .7; } .message p { margin: .3rem 0; }
.fil { margin: 0 0 .3rem; }
.danger-zone summary { color: var(--alerte); }
.danger-zone[open] { border-color: #f3c7c7; }

/* ---------------------------------------------------------------------------
   Listes : ciblage
   --------------------------------------------------------------------------- */
.ciblage .filtres { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .9rem; }
.resultat { margin-top: 1.1rem; }
.compteur { font-size: 1.05rem; margin: .2rem 0 .8rem; } .compteur b { font-size: 1.7rem; font-weight: 800; color: var(--rouge); letter-spacing: -.02em; }
.creation { display: grid; grid-template-columns: 2fr 1.5fr 1fr auto; gap: .7rem; align-items: end; margin-top: .9rem; padding: .9rem; background: var(--rouge-pale); border-radius: var(--rayon-petit); }
.creation label { margin: 0; }

/* Fichiers / import */
.correspondance th { min-width: 170px; background: var(--surface-2); position: sticky; top: 0; text-transform: none; letter-spacing: 0; }
.correspondance .entete { font-weight: 700; color: var(--texte); margin-bottom: .3rem; }
.correspondance td { white-space: nowrap; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
progress { width: 100%; height: 8px; accent-color: var(--rouge); border-radius: 999px; }

/* Suggestions (procurations) */
.suggestions { list-style: none; margin: -.4rem 0 .7rem; padding: .25rem; border: 1px solid var(--bord); border-radius: var(--rayon-petit); max-height: 230px; overflow: auto; box-shadow: var(--ombre); background: #fff; }
.suggestions:empty { display: none; }
.suggestions li { padding: .45rem .6rem; cursor: pointer; font-size: .88rem; border-radius: 6px; } .suggestions li:hover { background: var(--rouge-pale); }

/* Cartes géographiques et dialogues */
.carte-geo { height: 460px; border-radius: var(--rayon); margin-bottom: 1rem; border: 1px solid var(--bord); box-shadow: var(--ombre); overflow: hidden; z-index: 0; }
.leaflet-tooltip { border-radius: 8px; border: 0; box-shadow: var(--ombre-forte); font: 13px/1.4 var(--police); padding: .45rem .65rem; }
dialog { border: 0; border-radius: 18px; max-width: 560px; width: 92vw; padding: 1.4rem; box-shadow: var(--ombre-forte); animation: apparition .2s ease-out; }
dialog::backdrop { background: rgba(31, 10, 12, .45); backdrop-filter: blur(3px); }

/* ---------------------------------------------------------------------------
   Résultats électoraux
   --------------------------------------------------------------------------- */
.filtres-resultats { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; }
.filtres-resultats label { flex: 1 1 220px; margin: 0; }
.grille-resultats { display: grid; grid-template-columns: minmax(0, 3fr) minmax(290px, 2fr); gap: 1.1rem; align-items: start; }
.grille-resultats > .carte { position: sticky; top: 80px; }
.carte-geo.grande { height: 580px; margin-bottom: .5rem; }
.legende { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .84rem; margin-bottom: 1rem; }
.legende i, .pastille-couleur { display: inline-block; width: .85rem; height: .85rem; border-radius: 4px; margin-right: .35rem; vertical-align: -1px; border: 1px solid rgba(0, 0, 0, .15); }
.chiffres { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .9rem; }
table.scores td { padding: .3rem .35rem; border: 0; }
td.barre-score { width: 35%; }
td.barre-score span { display: block; height: .75rem; border-radius: 999px; min-width: 2px; transition: width .5s ease-out; }
table.resultats tbody tr { cursor: pointer; }
table.resultats tbody tr:hover > td, table.resultats tr.choisi > td { background: #fff1e6; }
table.resultats th { white-space: nowrap; font-size: .74rem; }
table.resultats td { white-space: nowrap; }

/* ---------------------------------------------------------------------------
   Électeurs, tags, fiche
   --------------------------------------------------------------------------- */
.recherche-electeurs .large input { font-size: 1.05rem; padding-top: .7rem; padding-bottom: .7rem; }
.filtres-ligne { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 .8rem; }
.filtres-ligne .deux { gap: .35rem; }
#etat-recherche { font-size: .82rem; margin-left: .5rem; }
.barre-tags { margin: 0 0 .9rem; padding: .7rem; background: var(--surface-2); border-radius: var(--rayon-petit); }
table.electeurs td { vertical-align: middle; }
td a.nom-electeur { color: inherit; text-decoration: none; } td a.nom-electeur:hover { color: var(--rouge); text-decoration: underline; }
.tag { display: inline-flex; align-items: center; gap: .15rem; padding: .1rem .25rem .1rem .6rem; margin: .1rem .25rem .1rem 0; border-radius: 999px; color: #fff; font-size: .76rem; font-weight: 650;
  white-space: nowrap; text-shadow: 0 0 2px rgba(0, 0, 0, .3); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12); }
.tag button { background: rgba(255, 255, 255, .2); border: 0; color: #fff; cursor: pointer; font-size: .85rem; line-height: 1; width: 1.1rem; height: 1.1rem; border-radius: 50%; padding: 0; opacity: .8; transition: background var(--anim), opacity var(--anim); }
.tag button:hover { opacity: 1; background: rgba(255, 255, 255, .35); }
.tags-gestion .tag { padding-right: .6rem; }
.tags-gestion .enligne input[name=libelle] { width: 14rem; }
.form-tag input[type=color] { width: 2.6rem; height: 2.1rem; padding: 2px; }
.nouveau-tag { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--bord-fort); }
.pagination { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: center; margin-top: 1rem; }
.pagination a { padding: .35rem .8rem; border: 1px solid var(--bord-fort); border-radius: 999px; text-decoration: none; font-size: .88rem; transition: background var(--anim), border-color var(--anim); }
.pagination a:hover { border-color: var(--rouge); background: var(--rouge-pale); }
.pagination span { font-weight: 650; padding: 0 .4rem; }

.grille-fiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 1.1rem; }
.grille-fiche > .carte { margin-bottom: 0; }
.grille-fiche + .carte { margin-top: 1.1rem; }
dl.infos { display: grid; grid-template-columns: 9.5rem 1fr; gap: .45rem .9rem; margin: 0 0 .8rem; font-size: .92rem; }
dl.infos dt { color: var(--muet); font-weight: 550; } dl.infos dd { margin: 0; }
.tags-fiche { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.tags-fiche p { flex-basis: 100%; margin: .3rem 0 0; font-size: .8rem; }
.tag-bascule { border: 1.5px solid var(--c); color: var(--c); background: #fff; border-radius: 999px; padding: .3rem .8rem; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; transition: background var(--anim), color var(--anim), transform var(--anim); }
.tag-bascule:hover { transform: translateY(-1px); }
.tag-bascule.pose { background: var(--c); color: #fff; }
.saisie-passage fieldset.radios { display: flex; flex-wrap: wrap; gap: .2rem 1.3rem; margin-bottom: .9rem; }
.saisie-passage fieldset.radios label { margin: .25rem 0; }

/* Pilotage (tableau de bord) */
.tuile.accent { background: linear-gradient(135deg, #fff, var(--rouge-pale)); }
.tuile.accent b { color: var(--rouge); }
.alerte-carte { border-color: #f3c7c7; background: linear-gradient(180deg, #fff6f5, #fff 60%); }
.alerte-carte h2 { color: var(--alerte); }
.taux { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.taux .progres { width: 90px; }
.taux b { font-variant-numeric: tabular-nums; min-width: 2.6rem; text-align: right; font-size: .86rem; }
.taux small { color: var(--muet); font-size: .76rem; }
.taux.faible .progres span { background: linear-gradient(90deg, #ef5350, var(--alerte)); }
.taux.moyen .progres span { background: linear-gradient(90deg, #ffb74d, #f57c00); }
th.nombre { text-align: right; }

/* Ciblage (Résultats) */
details.explication, details.reglages-ciblage { background: var(--surface-2); border: 1px solid var(--bord); border-radius: var(--rayon-petit); padding: .7rem 1rem; margin: .8rem 0; }
details.explication summary, details.reglages-ciblage summary { cursor: pointer; font-weight: 700; color: var(--rouge); }
details.explication ol { margin: .6rem 0 0; padding-left: 1.3rem; } details.explication li { margin-bottom: .45rem; font-size: .92rem; }
details.explication code { background: #fff; border: 1px solid var(--bord); border-radius: 6px; padding: .1rem .4rem; font-size: .85rem; }
details.reglages-ciblage form { margin-top: .8rem; }
.classement-ciblage td, .classement-ciblage th { white-space: nowrap; }
.classement-ciblage tr.fort > td { background: #f6effa; }
.indice { display: inline-flex; align-items: center; gap: .4rem; }
.indice::before { content: ""; display: inline-block; width: 60px; height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, #6a1b9a calc(var(--v) * 1%), #ece6f2 calc(var(--v) * 1%)); }
.badge.fort { background: #6a1b9a; } .badge.bascule-change { background: #ab47bc; } .badge.bascule-serre { background: #f57c00; }
.camp { display: inline-block; padding: 0 .45rem; border-radius: 6px; font-size: .78rem; font-weight: 650; color: #fff; }
.camp.gauche { background: #c62828; } .camp.centre { background: #f9a825; color: #3b2b00; } .camp.droite { background: #1546a0; }

/* Carte de couverture (tableau de bord) */
.carte-geo.tres-grande { height: 640px; margin-bottom: .5rem; }
.bascule-vue .bouton.actif { background: var(--rouge); color: #fff; border-color: var(--rouge); }
.synthese-couverture { background: rgba(255, 255, 255, .95); border-radius: 12px; padding: .7rem .9rem; box-shadow: var(--ombre-forte); min-width: 180px; font: 13px/1.35 var(--police); }
.synthese-couverture b { display: block; font-size: 1.9rem; font-weight: 800; color: #1b5e20; letter-spacing: -.02em; line-height: 1.1; }
.synthese-couverture span { color: var(--muet); }
.synthese-couverture .progres { display: block; width: 100%; height: 8px; margin: .4rem 0 .3rem; }
.synthese-couverture small { color: var(--muet); }
.legende i.pointilles { background: repeating-linear-gradient(90deg, #8d827a 0 3px, transparent 3px 7px); border: 0; height: 4px; vertical-align: 3px; }
@media (max-width: 720px) { .carte-geo.tres-grande { height: 460px; } }

/* Procurations */
.badge.raison { background: #2e7d32; }
.propositions td, .suivi-proc td { vertical-align: middle; }
.etapes { display: inline-flex; border-radius: 999px; overflow: hidden; border: 1px solid var(--bord-fort); font-size: .76rem; font-weight: 650; }
.etapes span { padding: .2rem .6rem; color: var(--muet); background: #fff; }
.etapes span + span { border-left: 1px solid var(--bord-fort); }
.etapes span.fait { background: var(--ok); color: #fff; }
.statut-proc { font-size: .8rem; font-weight: 650; padding: .1rem .5rem; border-radius: 999px; background: #eee; white-space: nowrap; }
.statut-proc.ouverte { background: #fff3e0; color: #b45f00; } .statut-proc.appariee, .statut-proc.contactee { background: #e3f2fd; color: #0d47a1; }
.statut-proc.faite { background: var(--ok-pale); color: #1b5e20; } .statut-proc.annulee { background: #eee; color: var(--muet); }

/* Signalements */
img.vignette { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; display: block; }
.note-sig { max-width: 340px; white-space: normal; }
table.signalements td { vertical-align: middle; }

/* Mes listes */
table.mes-listes tr.detail-rues td { padding-top: 0; }
table.mes-listes tr:has(+ tr.detail-rues) td { border-bottom: 0; }
table.mes-listes tr.detail-rues:hover > td { background: none; }
.detail-rues summary { cursor: pointer; color: var(--muet); font-size: .83rem; width: max-content; }
.detail-rues summary:hover { color: var(--rouge); }
.rues-avancement { columns: 2 340px; column-gap: 2rem; margin-top: .6rem; }
.rues-avancement .ligne-barre { break-inside: avoid; grid-template-columns: minmax(0, 1fr) 120px 55px; font-size: .84rem; }

/* ---------------------------------------------------------------------------
   Connexion
   --------------------------------------------------------------------------- */
body.ecran-connexion { min-height: 100vh; display: grid; place-items: center;
  background: radial-gradient(circle at 20% 10%, rgba(224, 22, 31, .35), transparent 45%), radial-gradient(circle at 85% 90%, rgba(255, 255, 255, .08), transparent 40%),
              linear-gradient(140deg, #5c0a10, var(--rouge) 60%, #c41b23); }
body.ecran-connexion main { width: 100%; padding: 4.5rem 16px 2rem; }
body.ecran-connexion .flash { max-width: 410px; margin: 0 auto 2.8rem; box-shadow: var(--ombre-forte); }
body.ecran-connexion .carte.etroite { margin-top: 0; border-radius: 22px; box-shadow: 0 25px 70px rgba(40, 0, 5, .45); }
.connexion { max-width: 410px; margin: 0 auto; padding: 2rem 1.8rem 1.6rem; border: 0; border-radius: 22px; box-shadow: 0 25px 70px rgba(40, 0, 5, .45); text-align: left; }
.connexion .logo { display: block; width: 112px; height: 112px; margin: -4.6rem auto .8rem; border-radius: 50%; box-shadow: 0 0 0 5px #fff, 0 10px 30px rgba(60, 0, 5, .35); }
.connexion h1 { text-align: center; margin: 0; font-size: 1.45rem; }
.connexion .sous-titre { text-align: center; color: var(--muet); margin: .2rem 0 1.4rem; font-size: .9rem; }
.connexion .bouton { width: 100%; padding: .7rem; font-size: 1rem; margin-top: .3rem; }
.connexion p { font-size: .86rem; }
.connexion + .pied, .pied { text-align: center; color: rgba(255, 255, 255, .7); font-size: .78rem; margin-top: 1.2rem; }
/* Tableau de bord (accueil) */
.bonjour { text-align: center; font-size: 1.9rem; margin: .4rem 0 1.3rem; }
.tuiles.tuiles-accueil { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tuile small { display: block; color: var(--muet); font-size: .76rem; margin-top: .25rem; }
.tuile small.alerte { color: var(--rouge); }
.decompte { text-align: center; }
.decompte h2 { margin: 0 0 .8rem; }
.compteur { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; max-width: 760px; margin: 0 auto; }
.compteur div { background: linear-gradient(140deg, var(--rouge-fonce), var(--rouge)); color: #fff; border-radius: var(--rayon); padding: .8rem .3rem .6rem; box-shadow: var(--ombre); }
.compteur b { display: block; font-size: 2.3rem; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.compteur span { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.decompte.termine .compteur div { background: var(--surface-2); color: var(--muet); }
p.centre { text-align: center; }
/* Jalons sous le décompte */
.jalons { list-style: none; margin: 1rem auto 0; padding: 0; max-width: 760px; text-align: left; }
.jalons li { display: grid; grid-template-columns: 1fr auto 4.5rem; gap: .8rem; align-items: baseline; padding: .4rem 0; border-bottom: 1px solid var(--bord); font-size: .9rem; }
.jalons li b { font-weight: 600; }
.jalons em { font-style: normal; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; color: var(--muet); }
.jalons em.proche { color: var(--rouge); }
.note-jalons { font-size: .76rem; margin: .5rem 0 0; }
/* Objectifs */
.legende-courbe { font-size: .8rem; color: var(--muet); }
.legende-courbe i { display: inline-block; width: 1.4rem; height: 0; vertical-align: middle; margin: 0 .2rem 0 .7rem; }
.trait-realise { border-top: 2px solid var(--rouge); } .trait-prevu { border-top: 2px dashed #8d827a; }
.grille-objectifs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.objectif { border: 1px solid var(--bord); border-left: 5px solid #bdb3ab; border-radius: var(--rayon-petit); padding: .7rem .9rem; background: var(--surface); }
.objectif.etat-vert { border-left-color: #2e7d32; } .objectif.etat-orange { border-left-color: #ef6c00; } .objectif.etat-rouge { border-left-color: #c62828; }
.objectif h3 { margin: 0 0 .3rem; font-size: .98rem; } .objectif h3 small { font-weight: 450; font-size: .74rem; display: block; }
.objectif .realise { margin: .2rem 0; } .objectif .realise b { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.objectif .pourcent { font-weight: 700; margin-left: .3rem; }
.objectif .progres { position: relative; width: 100%; height: 10px; overflow: visible; }
.objectif .progres i { position: absolute; top: -3px; width: 2px; height: 16px; background: #3b332f; transform: translateX(-1px); }
.objectif .ecart { font-size: .82rem; margin: .45rem 0 .2rem; }
.etat-vert .ecart { color: #2e7d32; } .etat-orange .ecart { color: #b65200; } .etat-rouge .ecart { color: #c62828; }
.courbe-objectif { width: 100%; height: auto; margin-top: .2rem; }
.courbe-objectif .axe { stroke: #d7cfc9; }
.courbe-objectif .graduation { font-size: 9px; fill: #8d827a; }
.courbe-objectif .prevu { fill: none; stroke: #8d827a; stroke-width: 2; stroke-dasharray: 5 4; }
.courbe-objectif .realise { fill: none; stroke: var(--rouge); stroke-width: 2; }
.courbe-objectif circle { fill: var(--rouge); stroke: #fff; stroke-width: 2; }
.courbe-objectif circle:hover { r: 6; }
.activite-semaine h2 small { font-weight: 450; font-size: .78rem; margin-left: .4rem; }
.activite-semaine .tuiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
small.hausse { color: #2e7d32 !important; } small.baisse { color: #c62828 !important; }
input.moyen { width: 8rem; }
@media (max-width: 900px) { .activite-semaine .tuiles { grid-template-columns: repeat(2, 1fr); } }
/* Base de données */
.recherche-base .ligne-recherche { display: grid; grid-template-columns: 1fr minmax(200px, 280px); gap: 0 1rem; }
.recherche-base .large input { font-size: 1.05rem; padding-top: .7rem; padding-bottom: .7rem; }
.filtres-avances summary { cursor: pointer; font-weight: 700; color: var(--rouge); margin-bottom: .6rem; }
.filtres-avances .deux { margin-top: .3rem; }
.filtres-avances .deux input { margin-top: 0; }
.cases-filtres { display: flex; flex-direction: column; justify-content: center; }
.cases-filtres label.case { margin-bottom: .35rem; }
.tags-filtres { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center; margin-top: .3rem; }
.tags-filtres { margin-top: .8rem; padding-top: .8rem; border-top: 1px dashed var(--bord-fort); }
.tags-filtres > p { margin: .2rem 0 .5rem; font-size: .8rem; }
.tags-filtres > p.titre-tags { font-size: .92rem; color: var(--rouge); }
.tags-modes { display: flex; flex-wrap: wrap; gap: .45rem .7rem; }
.tag-mode { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--bord-fort); border-radius: 999px; background: #fff; }
.tag-mode .tag { margin: 0 .25rem 0 0; padding-right: .6rem; }
.tag-mode label { position: relative; margin: 0; cursor: pointer; }
.tag-mode input { position: absolute; opacity: 0; pointer-events: none; }
.tag-mode label span { display: block; padding: .12rem .45rem; border-radius: 999px; font-size: .7rem; font-weight: 750; color: var(--muet); }
.tag-mode label:hover span { background: var(--surface-2); }
.tag-mode input:checked + span { background: #5d5550; color: #fff; }
.tag-mode input[value=et]:checked + span { background: #2e7d32; } .tag-mode input[value=ou]:checked + span { background: #1565c0; } .tag-mode input[value=sans]:checked + span { background: #c62828; }
.tag-mode input:focus-visible + span { outline: 2px solid var(--rouge); }
.tag-mode:has(input[value=et]:checked) { border-color: #2e7d32; } .tag-mode:has(input[value=ou]:checked) { border-color: #1565c0; } .tag-mode:has(input[value=sans]:checked) { border-color: #c62828; }
.resume-recherche p { margin: 0 0 .6rem; font-size: 1.05rem; }
.pastilles-filtres { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-bottom: .6rem; }
.pastille-filtre { display: inline-flex; gap: .3rem; align-items: center; padding: .2rem .65rem; border-radius: 999px; background: var(--rouge-pale); color: var(--rouge); font-size: .8rem; font-weight: 600; text-decoration: none; }
.pastille-filtre:hover { background: var(--rouge); color: #fff; }
#resultats-base.chargement { opacity: .55; transition: opacity .15s; }
table.base th a.tri { color: inherit; text-decoration: none; white-space: nowrap; }
table.base th a.tri.actif, table.base th a.tri:hover { color: var(--rouge); }
table.base td { vertical-align: middle; }
.infos-ligne { white-space: nowrap; } .infos-ligne span[aria-label] { margin-left: .2rem; color: var(--muet); cursor: help; }
.badge.statut-soutien { background: #2e7d32; } .badge.statut-actif { background: #1565c0; } .badge.statut-inactif { background: #9e9e9e; }
.statuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .4rem; }
.statuts label { position: relative; margin: 0; cursor: pointer; }
.statuts input { position: absolute; opacity: 0; pointer-events: none; }
.statuts span { display: flex; flex-direction: column; gap: .1rem; height: 100%; padding: .5rem .6rem; border: 2px solid var(--bord-fort); border-radius: var(--rayon-petit); background: #fff; transition: border-color var(--anim), background var(--anim); }
.statuts small { font-size: .72rem; color: var(--muet); font-weight: 450; }
.statuts label:hover span { border-color: var(--c); }
.statuts input:checked + span { border-color: var(--c); background: var(--c); color: #fff; } .statuts input:checked + span small { color: rgba(255, 255, 255, .85); }
.statuts input:focus-visible + span { outline: 3px solid rgba(163, 21, 29, .35); outline-offset: 2px; }
.statuts .statut-inactif { --c: #9e9e9e; } .statuts .statut-actif { --c: #1565c0; } .statuts .statut-soutien { --c: #2e7d32; }
.badge.contact-porte_a_porte { background: #6d4c41; } .badge.contact-sms { background: #00838f; } .badge.contact-mail { background: #5e35b1; }
.ressenti-points { display: inline-flex; gap: 3px; vertical-align: middle; }
.ressenti-points i { width: .62rem; height: .62rem; border-radius: 50%; background: #e3dcd6; }
.echelle-ressenti { display: grid; grid-template-columns: repeat(6, 1fr); gap: .4rem; }
.echelle-ressenti label { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; gap: .2rem; cursor: pointer; text-align: center; }
.echelle-ressenti input { position: absolute; opacity: 0; pointer-events: none; }
.echelle-ressenti span { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 3px solid var(--c, #bdb3ab); color: var(--c, #8d827a); font-weight: 800; font-size: 1.1rem; background: #fff; transition: transform var(--anim), background var(--anim); }
.echelle-ressenti label:hover span { transform: scale(1.08); }
.echelle-ressenti input:checked + span { background: var(--c, #8d827a); color: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .2); }
.echelle-ressenti input:focus-visible + span { outline: 3px solid rgba(163, 21, 29, .35); outline-offset: 2px; }
.echelle-ressenti small { font-size: .68rem; line-height: 1.15; color: var(--muet); font-weight: 500; }
fieldset.ressenti { margin: .7rem 0; padding-bottom: .6rem; }
.choix-statut label.case, fieldset label.case { margin-bottom: .35rem; }
.ajout-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .7rem; align-items: end; padding-bottom: .8rem; margin-bottom: .8rem; border-bottom: 1px dashed var(--bord-fort); }
.ajout-contact .large { grid-column: 1 / -1; }
.ajout-contact button { grid-column: 1 / -1; justify-self: start; }
.contacts-liste { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; }
.contacts-liste li { position: relative; padding: .55rem 2rem .55rem 0; border-bottom: 1px solid var(--bord); font-size: .9rem; }
.contacts-liste .supprimer-contact { position: absolute; right: 0; top: .5rem; }
.ajout-tag { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--bord-fort); }
.tags-existants { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .4rem; }
button.tag.ajout { border: 0; cursor: pointer; padding: .2rem .65rem; font: inherit; font-size: .78rem; font-weight: 650; opacity: .82; transition: opacity var(--anim), transform var(--anim); }
button.tag.ajout:hover { opacity: 1; transform: translateY(-1px); }
.ajout-tag p.muet { margin: .2rem 0 .4rem; font-size: .8rem; }
.palette-tags { display: flex; flex-wrap: wrap; gap: .35rem; padding: .6rem .7rem; margin-bottom: .6rem; }
.palette-tags label { position: relative; margin: 0; cursor: pointer; }
.palette-tags input { position: absolute; opacity: 0; pointer-events: none; }
.palette-tags span { display: block; width: 1.9rem; height: 1.9rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); transition: transform var(--anim); }
.palette-tags label:hover span { transform: scale(1.12); }
.palette-tags input:checked + span { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #222; transform: scale(1.05); }
.palette-tags input:focus-visible + span { outline: 3px solid rgba(163, 21, 29, .45); outline-offset: 3px; }
details.choix-couleur { position: relative; display: inline-block; }
details.choix-couleur summary { list-style: none; cursor: pointer; }
details.choix-couleur summary::-webkit-details-marker { display: none; }
details.choix-couleur summary span { display: block; width: 2rem; height: 2rem; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--bord-fort); }
details.choix-couleur[open] .palette-tags { position: absolute; z-index: 20; top: 2.4rem; left: 0; width: 19rem; background: #fff; box-shadow: var(--ombre-forte); }
@media (max-width: 720px) {
  .recherche-base .ligne-recherche, .ajout-contact { grid-template-columns: 1fr; }
  .echelle-ressenti { grid-template-columns: repeat(3, 1fr); }
}
/* Fiche ouverte en panneau latéral (Base de données) */
.voile-fiche { position: fixed; inset: 0; z-index: 90; background: rgba(30, 20, 18, .35); animation: apparition .15s ease-out; }
.panneau-fiche { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(980px, 100%); overflow-y: auto; overscroll-behavior: contain;
  background: var(--fond); box-shadow: -12px 0 40px rgba(40, 10, 10, .25); padding: 0 1.2rem 2rem; animation: glisse .2s ease-out; outline: none; }
@keyframes glisse { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.panneau-fiche.chargement .contenu-panneau { opacity: .55; pointer-events: none; transition: opacity .15s; }
.entete-panneau { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 0 -1.2rem 1rem; padding: .6rem 1.2rem; background: var(--fond); border-bottom: 1px solid var(--bord); font-size: .86rem; }
.fermer-panneau { border: 0; background: var(--surface-2); width: 2.3rem; height: 2.3rem; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--texte); }
.fermer-panneau:hover { background: var(--rouge-pale); color: var(--rouge); }
.panneau-fiche .grille-fiche { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.panneau-fiche .grille-fiche + .grille-fiche { margin-top: 1.1rem; }
body.panneau-ouvert { overflow: hidden; }
@media (max-width: 720px) { .panneau-fiche { padding: 0 .8rem 1.5rem; } .entete-panneau { margin: 0 -.8rem 1rem; padding: .6rem .8rem; } }
/* Cartographie */
.grille-reperes { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 1rem; }
.repere { background: var(--surface-2); border-radius: var(--rayon-petit); padding: .8rem 1rem; }
.repere > b { display: block; font-size: 1.8rem; font-weight: 800; line-height: 1.1; color: var(--rouge); font-variant-numeric: tabular-nums; }
.repere > span { display: block; font-weight: 650; font-size: .9rem; }
.repere > small { display: block; color: var(--muet); font-size: .76rem; margin-top: .3rem; }
.curseur-candidat label { font-weight: 650; }
.curseur-candidat input[type=range] { padding: 0; accent-color: var(--rouge); }
table.projection { margin-top: .5rem; font-size: .85rem; }
table.projection td.ok, table.projection td.alerte { white-space: nowrap; }
.badge.fiabilite-bonne { background: #2e7d32; } .badge.fiabilite-moyenne { background: #ef6c00; } .badge.fiabilite-estimee { background: #757575; }
.legende i.hachure { background: repeating-linear-gradient(45deg, rgba(0, 0, 0, .5) 0 2px, transparent 2px 6px); }
@media (max-width: 900px) { .grille-reperes { grid-template-columns: 1fr; } }
.filtres-carte { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin-bottom: .8rem; }
.filtres-carte label { display: flex; flex-direction: column; gap: .2rem; font-weight: 600; font-size: .86rem; min-width: 240px; }
.legende { margin-top: .6rem; }
.legende b { margin-right: .4rem; }
i.puce { display: inline-block; width: .7rem; height: .7rem; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; }
.connexion h2 { font-size: 1.05rem; text-align: center; margin: 0 0 .8rem; }
.connexion .centre { text-align: center; }
.connexion .deux { gap: .5rem; }
.identifiant-cree { text-align: center; font: 700 1.25rem/1.3 ui-monospace, Consolas, monospace; background: var(--surface-2); border-radius: var(--rayon-petit); padding: .6rem; user-select: all; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------------------
   Petits écrans
   --------------------------------------------------------------------------- */
@media (max-width: 1640px) {
  .moi > a span.nom { display: none; }
  .moi > a { padding: .3rem; }
  .barre { gap: .6rem 1rem; }
  .barre nav a { padding: .42rem .6rem; font-size: .87rem; }
}
@media (max-width: 1380px) {
  .marque small { display: none; }
  .barre nav a { padding: .4rem .5rem; font-size: .84rem; }
}
@media (max-width: 1240px) and (min-width: 901px) {
  .marque span { display: none; }
}
@media (max-width: 900px) {
  .grille-resultats { grid-template-columns: 1fr; } .grille-resultats > .carte { position: static; }
  .carte-geo.grande { height: 420px; }
  .barre { flex-wrap: wrap; padding: .5rem 16px; }
  .barre nav { order: 3; flex-basis: 100%; margin: 0 -16px; padding: 0 16px .2rem; }
  .moi { margin-left: auto; }
  .moi > a span.nom { display: none; }
}
@media (max-width: 720px) {
  main { padding: 1rem 16px 2.5rem; }
  h1 { font-size: 1.35rem; }
  .grille2, .grille-fiche { grid-template-columns: 1fr; }
  .creation, .deux { grid-template-columns: 1fr; }
  .carte { padding: .95rem; overflow-x: auto; }
  table { font-size: .84rem; }
  th, td { padding: .45rem .5rem; }
  .marque span { display: none; }
  dl.infos { grid-template-columns: 1fr; gap: .1rem; } dl.infos dt { margin-top: .45rem; }
  .ligne-barre { grid-template-columns: 110px 1fr 44px; }
  .tuiles, .tuiles.tuiles-accueil { grid-template-columns: repeat(2, 1fr); }
  .compteur { gap: .35rem; } .compteur b { font-size: 1.5rem; } .compteur span { font-size: .6rem; letter-spacing: .02em; }
  .bonjour { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .barre, .actions, .pagination { display: none; } body { background: #fff; } .carte { box-shadow: none; } }
.voix-a-gagner { font-size: 1.05rem; margin: .2rem 0 .4rem; } .voix-a-gagner b { color: var(--rouge); }
body.actualisation #carto-haut, body.actualisation #carto-bas, body.actualisation #legende-carte { opacity: .5; transition: opacity .15s; }
