/* Espace client Pixir : connexion, création de compte, tableau de bord. Mêmes tokens que le site Pixir. */

:root {
  --encre: #0f1b33; --encre-2: #172542; --texte: #2a3449; --doux: #5a6478;
  --fond: #f5f6fa; --panneau: #ffffff; --bord: #e3e7ef; --bord-fort: #cfd6e3;
  --accent: #ff6b2c; --accent-clair: #ff8a55; --accent-fonce: #c2410c; --accent-fond: #fff0e8; --accent-doux: rgba(255, 107, 44, .16);
  --vert: #15803d; --vert-fond: #e8f7ee; --bleu: #1d4ed8; --bleu-fond: #e8efff; --erreur: #b3261e; --erreur-fond: #fcecea;
  --rayon: 16px; --rayon-l: 24px;
  --ombre-s: 0 1px 2px rgba(15, 27, 51, .06), 0 1px 3px rgba(15, 27, 51, .04);
  --ombre: 0 12px 32px -8px rgba(15, 27, 51, .18), 0 2px 6px rgba(15, 27, 51, .06);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --police-titre: "Bricolage Grotesque", "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --police: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "DM Mono", ui-monospace, Consolas, monospace;
  --logo-sombre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='8 4 50 56'%3E%3Cmask id='m' maskUnits='userSpaceOnUse' x='0' y='0' width='64' height='64'%3E%3Crect width='64' height='64' fill='%23fff'/%3E%3Ccircle cx='50' cy='13' r='10.5' fill='%23000'/%3E%3C/mask%3E%3Cpath mask='url(%23m)' fill='%230f1b33' fill-rule='evenodd' d='M15 6H36A18 18 0 0 1 36 42H20V53A5 5 0 0 1 15 58A5 5 0 0 1 10 53V11A5 5 0 0 1 15 6ZM20 16H36A8 8 0 0 1 36 32H20Z'/%3E%3Ccircle cx='50' cy='13' r='7' fill='%23ff6b2c'/%3E%3C/svg%3E");
  --barre-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--police); color: var(--texte); background: var(--fond); -webkit-font-smoothing: antialiased; min-height: 100vh; }
h1, h2, h3 { font-family: var(--police-titre); color: var(--encre); margin: 0 0 .4em; line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); }
p { margin: 0; }
a { color: var(--encre); }
button { font: inherit; }
.ico { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saut { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--encre); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.saut:focus { top: 12px; }
[hidden] { display: none !important; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); font: 800 1.25rem/1 var(--police-titre); letter-spacing: -.02em; }
.logo-icone { width: 30px; height: 30px; background: var(--logo-sombre) center / contain no-repeat; }

/* Boutons et champs */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 20px; border-radius: 999px; background: var(--accent); color: var(--encre); font-weight: 700; text-decoration: none; border: 1.5px solid var(--accent); cursor: pointer; transition: background .2s, border-color .2s, transform .25s var(--ease), box-shadow .25s; box-shadow: 0 10px 24px -12px rgba(255, 107, 44, .6); }
.bouton:hover { background: var(--accent-clair); border-color: var(--accent-clair); transform: translateY(-1px); }
.bouton:active { transform: none; }
.bouton-contour { background: #fff; border-color: var(--bord-fort); color: var(--encre); box-shadow: none; }
.bouton-contour:hover { background: #fff; border-color: var(--encre); }
.bouton-petit { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.bouton-large { width: 100%; }
.lien { background: none; border: 0; padding: 0; color: var(--encre); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lien-fleche { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--encre); font-weight: 700; cursor: pointer; text-decoration: none; }
.lien-fleche:hover { text-decoration: underline; text-underline-offset: 3px; }
.champ { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.champ label, .champ legend { font-weight: 700; font-size: .95rem; color: var(--encre); }
.champ input, .champ select, .champ textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--bord-fort); background: #fff; font: inherit; color: var(--encre); transition: border-color .2s, box-shadow .2s; }
.champ textarea { min-height: 96px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 4px var(--accent-doux); }
.champ input[aria-invalid="true"], .champ textarea[aria-invalid="true"] { border-color: var(--erreur); }
.champ-erreur { color: var(--erreur); font-weight: 600; font-size: .88rem; }
.champ-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6478' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; }
.case { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--doux); }
.case input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--encre); flex: none; }
.note { font-size: .88rem; color: var(--doux); margin-top: 10px; }
.note:empty { display: none; }
@media (max-width: 480px) { .champ-2 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   La porte : connexion et création de compte
   --------------------------------------------------------------------------- */
.porte { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px 40px; background: radial-gradient(60% 50% at 20% 0%, rgba(255, 107, 44, .1), transparent 70%), radial-gradient(50% 45% at 90% 100%, rgba(29, 78, 216, .08), transparent 70%), var(--fond); }
.porte-carte { width: min(460px, 100%); background: var(--panneau); border: 1px solid var(--bord); border-radius: var(--rayon-l); box-shadow: var(--ombre); padding: clamp(24px, 4vw, 36px); display: grid; gap: 18px; }
.porte-carte h1 { margin: 12px 0 0; }
.porte-texte { color: var(--doux); margin-bottom: 6px; }
.porte-carte form { display: grid; gap: 16px; }
.porte-bas { color: var(--doux); font-size: .95rem; text-align: center; }
.porte-note { font-size: .82rem; color: var(--doux); text-align: center; margin: 14px 0 6px; line-height: 1.45; }
.porte-note a { color: inherit; }
.porte-info { padding: 10px 14px; border-radius: 12px; background: var(--bleu-fond); color: var(--bleu); font-weight: 600; font-size: .92rem; }
.porte-icone { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-fond); color: var(--accent-fonce); display: grid; place-items: center; font-size: 1.4rem; }

/* ---------------------------------------------------------------------------
   L'espace : barre, menu, contenu
   --------------------------------------------------------------------------- */
.espace { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; grid-template-rows: var(--barre-h) 1fr auto; grid-template-areas: "barre barre" "menu contenu" "menu contenu"; }
.barre { grid-area: barre; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 0 20px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--bord); }
.barre-commerce { display: flex; flex-direction: column; line-height: 1.2; margin-left: 8px; padding-left: 16px; border-left: 1px solid var(--bord); min-width: 0; }
.barre-commerce strong { color: var(--encre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre-commerce small { color: var(--doux); font-size: .8rem; }
.barre .bouton { margin-left: auto; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; place-items: center; }
.burger .ico { width: 24px; height: 24px; }
.menu { grid-area: menu; position: sticky; top: var(--barre-h); align-self: start; height: calc(100vh - var(--barre-h)); padding: 20px 12px; display: flex; flex-direction: column; gap: 4px; background: var(--panneau); border-right: 1px solid var(--bord); }
.menu button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 10px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--doux); font-weight: 600; text-align: left; cursor: pointer; transition: background .2s, color .2s; position: relative; }
.menu button .ico { width: 20px; height: 20px; }
.menu button:hover { background: var(--fond); color: var(--encre); }
.menu button[aria-current="page"] { background: var(--encre); color: #fff; }
.pastille { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.contenu { grid-area: contenu; padding: clamp(20px, 3vw, 40px); max-width: 980px; width: 100%; }
.contenu:focus, h1[tabindex="-1"]:focus { outline: none; }
.onglet { display: grid; gap: 18px; animation: onglet-in .35s var(--ease); }
@keyframes onglet-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* La porte pendant que Firebase répond */
.porte-chargement { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 24px 0; color: var(--doux); font-weight: 600; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--bord); border-top-color: var(--accent); animation: tourne .8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* Admin Pixir : un compte par ligne, statut et offre à poser */
.compteur { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: var(--accent-fond); color: var(--accent-fonce); font-size: .8rem; font-weight: 700; vertical-align: middle; }
.admin-compte p { color: var(--doux); font-size: .92rem; }
.admin-compte p a { color: inherit; }
.admin-ligne { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; margin-top: 10px; }
.admin-ligne label { display: grid; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--doux); }
.admin-ligne select { min-height: 40px; padding: 6px 10px; border: 1px solid var(--bord-fort, var(--bord)); border-radius: 10px; background: #fff; font: inherit; color: var(--encre); }
.admin-ok { font-size: .85rem; color: var(--vert, #15803d); font-weight: 600; }

/* Blocs */
.bloc { background: var(--panneau); border: 1px solid var(--bord); border-radius: var(--rayon-l); padding: clamp(18px, 2.5vw, 26px); box-shadow: var(--ombre-s); display: grid; gap: 14px; }
.bloc form { display: grid; gap: 14px; }
.bloc-tete { display: grid; gap: 4px; }
.bloc-titre { font-family: var(--police-titre); font-weight: 800; font-size: 1.15rem; color: var(--encre); letter-spacing: -.01em; }
.bloc-sous { color: var(--doux); font-size: .95rem; }
.bloc-adresse { grid-template-columns: 1fr auto; align-items: center; }
.bloc-action { grid-template-columns: 1fr auto; align-items: center; background: var(--encre); color: #fff; border-color: var(--encre); }
.bloc-action strong { display: block; font-family: var(--police-titre); font-size: 1.1rem; }
.bloc-action p { color: rgba(255, 255, 255, .78); font-size: .95rem; margin-top: 4px; }
.bloc-qr { grid-template-columns: auto 1fr; align-items: center; }
.qr { width: 132px; height: 132px; padding: 8px; border-radius: 14px; background: #fff; border: 1px solid var(--bord); color: var(--encre); }
.qr svg { width: 100%; height: 100%; display: block; }
.ligne-form { display: flex; gap: 10px; }
.ligne-form input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--bord-fort); font: inherit; }
@media (max-width: 640px) { .bloc-adresse, .bloc-action, .bloc-qr { grid-template-columns: 1fr; } .bloc-action .bouton { justify-self: start; } .ligne-form { flex-direction: column; } }

/* Étapes de suivi */
.etat-bloc { background: var(--panneau); border: 1px solid var(--bord); border-radius: var(--rayon-l); padding: clamp(18px, 2.5vw, 26px); box-shadow: var(--ombre-s); }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; }
.etapes::before { content: ""; position: absolute; left: 12px; right: 12px; top: 9px; height: 2px; background: var(--bord); }
.etapes li { position: relative; padding-top: 28px; }
.etape-point { position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--panneau); border: 2px solid var(--bord-fort); }
.etapes li.faite .etape-point { background: var(--vert); border-color: var(--vert); }
.etapes li.faite .etape-point::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.etapes li.en-cours .etape-point { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-doux); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(255, 107, 44, .08); } }
.etapes strong { display: block; color: var(--encre); font-size: .95rem; }
.etapes small { color: var(--doux); font-size: .82rem; }
.etat-texte { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--bord); color: var(--texte); }
.etat-bloc.sans-commande .etat-texte { margin-top: 0; padding-top: 0; border-top: 0; }
.verrou .bouton { justify-self: start; }
@media (max-width: 720px) { .etapes { grid-template-columns: 1fr; gap: 14px; } .etapes::before { left: 9px; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; } .etapes li { padding: 0 0 0 34px; } }

/* Tuiles et stats */
.tuiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tuile { background: var(--panneau); border: 1px solid var(--bord); border-radius: var(--rayon-l); padding: 20px; box-shadow: var(--ombre-s); display: grid; gap: 4px; align-content: start; }
.tuile-kicker { display: inline-flex; align-items: center; gap: 8px; font: 500 .74rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--doux); }
.tuile-chiffre { font-family: var(--police-titre); font-size: 2.2rem; font-weight: 800; color: var(--encre); letter-spacing: -.03em; line-height: 1.1; margin-top: 8px; }
.tuile-legende { color: var(--doux); font-size: .9rem; margin-bottom: 8px; }
.stats-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats-3 > div { padding: 14px; border-radius: 14px; background: var(--fond); display: grid; gap: 2px; }
.stats-3 strong { font-family: var(--police-titre); font-size: 1.6rem; font-weight: 800; color: var(--encre); letter-spacing: -.02em; line-height: 1.1; }
.stats-3 span { color: var(--doux); font-size: .85rem; }
.stats-carte > div { background: var(--panneau); border: 1px solid var(--bord); box-shadow: var(--ombre-s); }
.stats-carte .ico { width: 22px; height: 22px; color: var(--accent-fonce); margin-bottom: 6px; }
.courbe-cadre { position: relative; }
.courbe { width: 100%; height: 160px; display: block; }
.courbe .aire { fill: rgba(255, 107, 44, .12); }
.courbe .trait { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.courbe .grille { stroke: var(--bord); stroke-width: 1; }
.courbe-vide { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 0 16px; text-align: center; color: var(--doux); font-size: .92rem; }
.courbe-vide[hidden] { display: none; }
@media (max-width: 720px) { .stats-3 { grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .stats-3 strong { font-size: 1.3rem; } }
@media (max-width: 480px) { .tuiles { grid-template-columns: 1fr; } .stats-3 { grid-template-columns: 1fr 1fr; } .stats-3 > div:last-child:nth-child(odd) { grid-column: 1 / -1; } .courbe { height: 120px; } }

/* Aperçu de notification */
.apercu { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--fond); border: 1px solid var(--bord); }
.apercu-icone { width: 36px; height: 36px; border-radius: 10px; background: var(--encre); color: #fff; display: grid; place-items: center; flex: none; }
.apercu-tete { display: flex; gap: 8px; align-items: baseline; }
.apercu-tete small { color: var(--doux); font-size: .75rem; }
.apercu-texte { display: block; font-size: .92rem; color: var(--texte); }

/* Listes (notifications, demandes) */
.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.liste li { padding: 14px 16px; border-radius: 14px; background: var(--fond); display: grid; gap: 4px; }
.liste li.vide { color: var(--doux); background: transparent; padding: 4px 0; }
.liste-tete { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.liste-tete strong { color: var(--encre); }
.liste-tete small { color: var(--doux); font-size: .8rem; white-space: nowrap; }
.liste p { color: var(--texte); font-size: .95rem; }
.etiquette { display: inline-block; padding: 3px 9px; border-radius: 999px; font: 500 .7rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.etiquette-ouverte { background: var(--accent-fond); color: var(--accent-fonce); }
.etiquette-traitee { background: var(--vert-fond); color: var(--vert); }
.etiquette-envoyee { background: var(--bleu-fond); color: var(--bleu); }
.liste .code { font-family: var(--mono); background: #fff; border: 1px dashed var(--bord-fort); padding: 2px 8px; border-radius: 6px; }

/* Offres (compte sans commande) */
.bloc-offres { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-doux), var(--ombre-s); }
.offres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.offre { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: var(--rayon); border: 1.5px solid var(--bord); background: var(--fond); position: relative; }
.offre.offre-phare { border-color: var(--encre); background: #fff; }
.offre-badge { position: absolute; top: -11px; left: 14px; padding: 3px 9px; border-radius: 999px; background: var(--encre); color: #fff; font: 500 .68rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.offre-nom { font-family: var(--police-titre); font-weight: 800; font-size: 1.1rem; color: var(--encre); }
.offre-prix { font-family: var(--police-titre); font-weight: 800; font-size: 1.7rem; color: var(--encre); letter-spacing: -.03em; line-height: 1; }
.offre-prix small { font: 600 .85rem/1 var(--police); color: var(--doux); letter-spacing: 0; }
.offre-mise { color: var(--doux); font-size: .88rem; }
.offre ul { margin: 4px 0 6px; padding: 0; list-style: none; display: grid; gap: 4px; font-size: .9rem; color: var(--texte); }
.offre li { display: flex; gap: 8px; align-items: flex-start; }
.offre li .ico { color: var(--vert); margin-top: 4px; }
.offre .bouton { width: 100%; margin-top: auto; }
.offre-total { font-size: .82rem; color: var(--doux); text-align: center; }
@media (max-width: 860px) { .offres { grid-template-columns: 1fr; } }

/* Verrou : onglet sans l'offre correspondante */
.verrou { display: grid; gap: 14px; padding: clamp(18px, 2.5vw, 26px); border-radius: var(--rayon-l); background: var(--panneau); border: 1px dashed var(--bord-fort); }
.verrou-tete { display: flex; gap: 14px; align-items: flex-start; }
.verrou-icone { width: 44px; height: 44px; border-radius: 12px; background: var(--fond); color: var(--doux); display: grid; place-items: center; flex: none; }
.verrou-icone .ico { width: 22px; height: 22px; }
.verrou strong { display: block; font-family: var(--police-titre); font-size: 1.15rem; color: var(--encre); }
.verrou p { color: var(--doux); margin-top: 4px; }
.onglet-contenu { display: grid; gap: 18px; }
.etat-attente { display: inline-flex; align-items: center; gap: 8px; color: var(--doux); font-weight: 600; font-size: .95rem; }
.etat-attente .ico { color: var(--accent-fonce); }

/* En direct */
.point-vif { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 0 rgba(21, 128, 61, .5); animation: vif 2s ease-out infinite; vertical-align: middle; }
.point-vif-grand { width: 14px; height: 14px; }
.tuile-direct.calme .point-vif, .direct-tete.calme .point-vif { animation: none; background: var(--bord-fort); box-shadow: none; }
@keyframes vif { 0% { box-shadow: 0 0 0 0 rgba(21, 128, 61, .45); } 100% { box-shadow: 0 0 0 10px rgba(21, 128, 61, 0); } }
.pastille-vive { background: var(--vert); }
.direct-tete { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; background: var(--panneau); border: 1px solid var(--bord); border-radius: var(--rayon-l); padding: clamp(18px, 2.5vw, 26px); box-shadow: var(--ombre-s); }
.direct-compte { display: flex; align-items: center; gap: 14px; }
.direct-compte strong { font-family: var(--police-titre); font-size: 3rem; font-weight: 800; color: var(--encre); letter-spacing: -.04em; line-height: 1; }
.direct-compte span:last-child { color: var(--doux); font-weight: 600; max-width: 12ch; line-height: 1.25; }
.direct-stats { min-width: 340px; }
.direct-grille { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: start; }
.carte-france { width: 100%; height: auto; display: block; }
.carte-france .terre { fill: #eef1f7; stroke: var(--bord-fort); stroke-width: 1.5; stroke-linejoin: round; }
.carte-france .visite-ancienne { fill: var(--encre); opacity: .45; }
.carte-france .visite-vive { fill: var(--accent); }
.carte-france .halo { fill: none; stroke: var(--accent); stroke-width: 2; opacity: .6; transform-box: fill-box; transform-origin: center; animation: halo 1.8s ease-out infinite; }
@keyframes halo { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(2.2); opacity: 0; } }
.carte-france .ville { font: 600 11px var(--police); fill: var(--texte); paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.liste-visites li { grid-template-columns: auto 1fr; display: grid; gap: 2px 12px; align-items: center; }
.liste-visites .visite-icone { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; background: #fff; border: 1px solid var(--bord); color: var(--encre); display: grid; place-items: center; }
.liste-visites .visite-icone.vive { background: var(--accent-fond); border-color: #ffd9c4; color: var(--accent-fonce); }
.liste-visites .visite-icone .ico { width: 18px; height: 18px; }
.liste-visites .liste-tete { grid-column: 2; }
.liste-visites p { grid-column: 2; font-size: .88rem; color: var(--doux); }
@media (max-width: 860px) { .direct-tete { grid-template-columns: 1fr; } .direct-stats { min-width: 0; } .direct-grille { grid-template-columns: 1fr; } .tuiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .direct-compte strong { font-size: 2.4rem; } }
@media (max-width: 480px) { .tuiles { grid-template-columns: 1fr; } }

/* Téléphone : menu en tiroir */
@media (max-width: 860px) {
  .espace { grid-template-columns: 1fr; grid-template-areas: "barre" "contenu" "contenu"; }
  .burger { display: grid; }
  .barre { padding: 0 12px; gap: 10px; }
  .barre .bouton span { display: none; }
  .barre .bouton { min-width: 44px; padding-inline: 12px; }
  .menu { position: fixed; top: var(--barre-h); left: 0; right: 0; height: auto; z-index: 15; border-right: 0; border-bottom: 1px solid var(--bord); box-shadow: var(--ombre); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .25s; }
  .menu.ouvert { transform: none; opacity: 1; pointer-events: auto; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
