/*
 * Front public Sortonzici.
 *
 * Application directe de DESIGN.md, sans build : le serveur n'a pas Node, et
 * une feuille écrite à la main reste lisible et modifiable par la personne
 * suivante.
 *
 * Les trois partis pris de la charte sont tenus littéralement : fond crème et
 * non blanc, rayons larges, et la couleur sert à trier — l'orange ne porte que
 * l'action, jamais la décoration.
 */

/*
 * Les polices, servies par nous.
 *
 * Elles venaient de fonts.googleapis.com : chaque visite envoyait alors
 * l'adresse IP du visiteur à Google, avant tout consentement et sans que rien
 * dans le service ne l'exige. C'est un transfert qu'on ne peut pas écrire
 * honnêtement dans une politique de confidentialité — et le corriger coûtait
 * moins cher que le déclarer.
 *
 * Deux fichiers par famille, latin et latin étendu : le service est en
 * français, embarquer le cyrillique et le grec triplerait le poids pour
 * personne. Ce sont des polices VARIABLES — un même fichier porte toutes les
 * graisses, d'où une seule déclaration par jeu de caractères, et 212 Ko au
 * lieu de 644.
 *
 * `font-display: swap` : le texte s'affiche tout de suite dans la police de
 * repli, puis bascule. Une page vide en attendant une police est une page
 * cassée pour qui a une connexion lente.
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url(/fonts/nunito-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url(/fonts/nunito-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --primary: #D24418;
  --primary-hover: #B33A13;
  --primary-bright: #F26430;
  --accent: #FFB627;
  --accent-soft: #FFEDE4;
  --ink: #1F2430;
  --ink-muted: #5C6474;
  --surface: #FFFFFF;
  --bg: #FFF8F3;
  --line: #EDE0D6;
  --night: #171A24;
  --success: #1B7F55;

  /* Le même orange, mais en texte : sur fond sombre il devra s'éclaircir,
     alors qu'en fond il devra rester tel quel — sans quoi le blanc posé
     dessus cesserait d'être lisible. Deux usages, deux jetons. */
  --primary-ink: var(--primary);

  /* Les teintes de message et le dégradé de bord, nommés plutôt qu'écrits
     dans la règle : le mode nuit doit pouvoir les reprendre, et une couleur
     en dur y reste claire. */
  --tint-ok: #E7F4EE;
  --tint-ok-ink: #14603F;
  --tint-ko: #FBEAEA;
  --tint-ko-ink: #8E1D22;
  --tint-warm: #FFE0D0;
  --bg-fade: rgba(255, 248, 243, 0);

  --cat-musique: #6D28D9;
  --cat-famille: #0F766E;
  --cat-patrimoine: #A1560A;
  --cat-sport: #1D4ED8;
  --cat-marche: #4D7C0F;
  --cat-spectacle: #BE185D;
  /* Le spectacle vivant, détaché des arts visuels : une teinte voisine sans
     être jumelle — la parenté se voit, la confusion non. */
  --cat-scene: #9D174D;
  --cat-nature: #15803D;
  --cat-cinema: #BA231C;
  --cat-gastronomie: #6E6B0C;
  --cat-savoirs: #A21CAF;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-full: 9999px;

  /* Trois niveaux d'élévation, pas davantage. */
  --shadow-1: 0 2px 12px rgba(31, 36, 48, .06);
  --shadow-2: 0 8px 28px rgba(31, 36, 48, .12);
}

/*
 * ---------- Le mode nuit ----------
 *
 * Trois réglages, deux thèmes : « jour », « nuit », et « auto » qui suit le
 * système. L'attribut `data-theme` porte le choix, rendu par le serveur ;
 * `data-resolved` porte ce que ce choix donne ici et maintenant, écrit par un
 * court script dans l'en-tête — c'est lui qui traduit « auto » en regardant
 * la préférence du système.
 *
 * D'où les deux sélecteurs sur une même règle : sans script, un choix
 * explicite de nuit s'applique quand même, et « auto » reste au jour. Une
 * seule palette pour les deux, parce qu'un rang recopié finit par diverger.
 *
 * Seuls les jetons changent. Aucune règle de mise en page ne connaît le
 * thème : si une couleur est écrite en dur quelque part, c'est là qu'il faut
 * la nommer, pas ici qu'il faut la rattraper.
 */
:root[data-theme="nuit"],
:root[data-resolved="nuit"] {
  /* Les champs, les ascenseurs et les cases à cocher du navigateur suivent
     ce mot-clé ; sans lui ils restent blancs au milieu d'une page sombre. */
  color-scheme: dark;

  --ink: #ECEEF4;
  --ink-muted: #A2AAB9;
  --surface: #1B1E28;
  --bg: #12141B;
  --bg-fade: rgba(18, 20, 27, 0);
  --line: #2C3140;
  --night: #0C0E14;

  /* L'orange de fond ne bouge pas : le blanc posé dessus doit rester lisible.
     Celui du texte s'éclaircit, sans quoi un lien orange sur fond nuit passe
     sous le seuil de contraste. */
  --primary-ink: #FF7A4D;
  --accent-soft: #33231C;
  --success: #34A97A;

  --tint-ok: #16281F;
  --tint-ok-ink: #7BD6AC;
  --tint-ko: #2C1A1B;
  --tint-ko-ink: #F09A9E;
  --tint-warm: #3A241A;

  /* Les couleurs de catégorie servent de texte et de filet sur les cartes :
     posées sur un fond sombre, les versions du jour deviennent illisibles. */
  --cat-musique: #A78BFA;
  --cat-famille: #2DD4BF;
  --cat-patrimoine: #E0A458;
  --cat-sport: #93B4FF;
  --cat-marche: #A3D14A;
  --cat-spectacle: #F472B6;
  --cat-scene: #EC6EA0;
  --cat-nature: #4ADE80;
  --cat-cinema: #FF8A7E;
  --cat-gastronomie: #D6D24A;
  --cat-savoirs: #E879F9;

  /* Une ombre claire ne se voit pas sur du sombre : c'est l'obscurité qui
     porte l'élévation ici. */
  --shadow-1: 0 2px 12px rgba(0, 0, 0, .45);
  --shadow-2: 0 8px 28px rgba(0, 0, 0, .6);
}

/* Le logo suit le thème : son mot-clé est en encre sombre, invisible sur un
   fond de nuit. La variante dessinée pour fond sombre prend le relais — et
   c'est bien la même règle que les couleurs ci-dessus, sauf qu'ici ce n'est
   pas un jeton qui change, c'est le fichier. */
.logo-nuit { display: none; }
:root[data-theme="nuit"] .logo-jour,
:root[data-resolved="nuit"] .logo-jour { display: none; }
:root[data-theme="nuit"] .logo-nuit,
:root[data-resolved="nuit"] .logo-nuit { display: block; }

/* Le papier d'un code QR reste blanc quel que soit le thème : un lecteur
   attend des modules sombres sur fond clair, et l'inverse ne se scanne pas. */

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

/*
 * `[hidden]` doit gagner, toujours.
 *
 * La feuille du navigateur pose `[hidden] { display: none }`, et **n'importe
 * quelle règle de classe l'emporte dessus** : une simple `display: flex` sur un
 * bloc suffit à le rendre visible alors que le HTML le déclare masqué et que le
 * script croit l'avoir caché.
 *
 * Le défaut s'est produit deux fois. La barre d'enregistrement d'un livret, qui
 * portait sa propre parade locale. Puis, le 8 septembre 2026, le rappel de fiche
 * de la page contact : `.contact-choisie` était en `display: flex`, si bien que
 * le bouton « Changer » restait à l'écran sur un motif qui ne cherche aucune
 * fiche — un geste sans objet, sous une question qui n'appelait pas de fiche.
 * Le script le masquait pourtant, correctement, depuis le début.
 *
 * Une règle globale plutôt qu'une parade par composant : la seconde a montré
 * qu'on ne pense pas à l'écrire, et son absence ne produit aucune erreur —
 * seulement un élément qui refuse de disparaître.
 */
[hidden] { display: none !important; }
body, h1, h2, h3, p, figure, ul, li { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Nunito porte les titres et les boutons : ses terminaisons arrondies sont le
   principal vecteur du caractère souriant, jamais sous 16 px. */
h1, h2, h3, .nu { font-family: Nunito, system-ui, sans-serif; }
h1 { font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; }
h2 { font-size: 19px; font-weight: 700; line-height: 1.3; }

a { color: inherit; text-decoration: none; }

/* ---------- Ossature ---------- */

/*
 * `clip` et non `hidden` : `hidden` ferait de .wrap un conteneur de
 * défilement, ce qui casserait `position: sticky` et l'ancrage au défilement.
 * `clip` coupe sans rien de tout cela, et l'axe vertical reste libre.
 *
 * Le motif : plusieurs rangs débordent volontairement dans la marge
 * (`margin: 0 -24px`) pour aller jusqu'au bord du contenu. Il suffit qu'un
 * appelant neutralise une seule des deux marges pour que la page entière
 * gagne une barre de défilement horizontale — c'est arrivé.
 */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; overflow-x: clip; }

/*
 * Et le même filet sur la page entière, pour ce qui vit hors de la colonne.
 * `clip` et non `hidden`, toujours : `hidden` ferait du corps un conteneur de
 * défilement et l'en-tête cesserait de coller au haut de l'écran.
 *
 * C'est un filet, pas une solution : un débordement latéral reste un défaut à
 * corriger à sa source. Mais il se rate à l'œil sur un grand écran et se paie
 * sur un téléphone, où toute la page glisse de huit pixels.
 */
body { overflow-x: clip; }

/*
 * L'en-tête tient toute la largeur de la fenêtre, et lui seul : posé dans
 * `.wrap`, son fond s'arrêtait à la colonne et son ombre en dessinait les
 * quatre côtés — un encadré flottant au milieu de l'écran dès le premier
 * geste de défilement. Ce qui suit le défilement doit couvrir ce qui passe
 * dessous, d'un bord à l'autre.
 */
.topbar {
  /* Seize pixels ne suffisaient pas : sur les pages sans rang de catégories,
     le titre venait se coller au filet et la page paraissait tronquée par le
     haut. L'en-tête a besoin de respirer sous lui pour se lire comme un
     en-tête et non comme la première ligne du contenu. */
  margin-bottom: 30px;
  background: var(--bg);
  /* L'en-tête suit le défilement : la recherche et le tri par envie sont les
     deux gestes qu'on refait sans cesse, et remonter pour les atteindre est
     un coût qu'on paie à chaque fois. */
  position: sticky;
  top: 0;
  z-index: 40;
}

/* Le contenu, lui, reste aligné sur la colonne du reste de la page. */
.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  /* Marge symétrique. Elle valait 14 px en haut et 0 en bas : la barre
     paraissait posée trop bas dans son propre cadre, et le filet passait au
     ras des contrôles. Sur les pages qui portent le rang de catégories, c'est
     lui qui fournit sa propre respiration — d'où la reprise plus bas. */
  padding: 14px 24px;
}

/* Le rang de catégories apporte déjà sa marge basse : la doubler creuserait
   un vide entre le tri et ce qu'il trie. */
.topbar-inner:has(.topbar-cats) { padding-bottom: 0; }

/*
 * Le filet ferme l'en-tête sur toute la largeur, en permanence.
 *
 * Il n'apparaissait qu'au défilement, ou d'emblée quand le rang de catégories
 * était présent. Le raisonnement d'origine — sans rang, l'en-tête n'a rien à
 * fermer — se tenait page par page mais pas d'une page à l'autre : la même
 * barre gagnait ou perdait sa bordure selon l'endroit où l'on se trouvait, et
 * un élément d'interface qui change de forme sans que l'utilisateur ait rien
 * fait se lit comme un défaut, pas comme une intention.
 *
 * L'ombre, elle, reste réservée au défilement : elle dit qu'on passe DESSOUS,
 * ce qui est une information et non une décoration.
 */
.topbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
  pointer-events: none;
}
.topbar.is-stuck { box-shadow: 0 6px 18px rgba(31, 36, 48, .05); }

.topbar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
}

.brand { flex-shrink: 0; }
.brand img { height: 52px; width: auto; }

/* ---------- Recherche ---------- */

.topbar-search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.search-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(210, 68, 24, .12);
}
.search-field svg {
  width: 17px; height: 17px;
  stroke: var(--ink-muted);
  fill: none; stroke-width: 1.9;
  flex-shrink: 0;
}
.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 0;
}
.search-field input::placeholder { color: var(--ink-muted); }
.search-field input:focus { outline: none; }
/* La croix native de Safari doublonne avec notre bouton d'effacement. */
.search-field input::-webkit-search-cancel-button { display: none; }

.search-clear {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-muted);
  font-size: 13px;
}
.search-clear:hover { background: var(--accent-soft); color: var(--ink); }

/* ---------- Lieu et compte ---------- */

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-muted);
  white-space: nowrap;
}
.loc svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.loc-login {
  font-weight: 600;
  color: var(--ink);
  padding: 0 6px;
}
.loc-login:hover { color: var(--primary-ink); }

.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  -webkit-text-fill-color: #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-family: Nunito, sans-serif;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.avatar:hover { background: var(--primary-hover); color: #fff; }

/* ---------- Menu du compte ---------- */

/*
 * La pastille menait droit au compte, ce qui laissait la déconnexion
 * introuvable — il fallait savoir qu'elle était au bas d'une page de
 * réglages. Elle ouvre maintenant les quatre destinations du compte.
 */
.account-menu { position: relative; }
.account-menu > summary { cursor: pointer; list-style: none; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu[open] > summary { background: var(--primary-hover); }

.account-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 25;
  min-width: 232px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: 8px;
  display: grid;
  gap: 1px;
}

/* Qui est connecté : sur un poste partagé, la seule initiale ne le dit pas. */
.account-menu-who {
  padding: 8px 12px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 5px;
  line-height: 1.35;
}
.account-menu-who strong { display: block; font-size: 14px; }
.account-menu-who span {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-menu-panel a,
.account-menu-panel button {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: var(--r-sm);
  padding: 9px 12px;
  cursor: pointer;
}
.account-menu-panel a:hover,
.account-menu-panel button:hover { background: var(--accent-soft); }

/* Un filet entre les sorties et les outils : les intitulés de famille ont
   disparu, la séparation reste. */
.account-menu-sep { border: 0; border-top: 1px solid var(--line); margin: 5px 0; }

/* Quitter n'est pas une destination comme les autres. */
.account-menu-panel form { border-top: 1px solid var(--line); margin-top: 5px; padding-top: 5px; }
.account-menu-panel button { color: var(--ink-muted); }

/* ---------- Catégories ---------- */

/*
 * Le rang de catégories défile horizontalement sur écran étroit et passe à la
 * ligne sur écran large.
 *
 * Un défilement horizontal se manipule au doigt ou au trackpad ; à la souris,
 * il n'existe pratiquement pas — pas de barre visible, pas de molette
 * latérale, et ce qui dépasse reste hors d'atteinte. Sur un écran assez large
 * pour tout montrer, laisser passer à la ligne coûte quelques pixels de
 * hauteur et rend les huit catégories accessibles d'un clic.
 */
.topbar-cats {
  display: flex;
  gap: 8px;
  padding: 12px 24px 14px;
  margin: 0 -24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: 24px;
  overscroll-behavior-x: contain;
  /* Le filet de séparation est porté par `.topbar::after`, qui va d'un bord à
     l'autre de la fenêtre — ici il se serait arrêté à la colonne. */
  /* Barre native masquée : elle épaissit le rang d'un trait gris sous des
     pastilles arrondies, et les boutons de défilement font le travail. */
  scrollbar-width: none;
}
.topbar-cats::-webkit-scrollbar { display: none; }

/*
 * Le rang reste sur une ligne. Le défilement à la souris étant impraticable
 * sans commande visible, deux boutons apparaissent aux extrémités dès que le
 * contenu déborde — et seulement du côté où il reste quelque chose à voir.
 */
.rail { position: relative; }

.rail-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 30px;
  height: 30px;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-muted);
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(31, 36, 48, .10);
  font-size: 11px;
  line-height: 1;
  padding: 0;
  opacity: 0;
  transition: opacity .15s ease, color .12s ease, background .12s ease;
}
.rail-btn.is-shown { display: grid; }
/* Discret au repos, franc au survol : le rang reste calme tant qu'on ne s'y
   intéresse pas. */
.rail:hover .rail-btn.is-shown,
.rail-btn.is-shown:focus-visible { opacity: 1; }
.rail-btn:hover { background: var(--accent-soft); color: var(--ink); }

.rail-prev { left: 0; }
.rail-next { right: 0; }

/*
 * Le bouton se centre sur les pastilles, pas sur le bloc : les deux rangs sont
 * rembourrés plus bas que haut, et le centre du bloc tombe donc sous le centre
 * des pastilles. Le décalage vaut la moitié de l'écart entre les deux
 * rembourrages — 1 px pour les catégories (12 en haut, 14 en bas), 6 px pour
 * les repères (4 en haut, 16 en bas).
 */
.rail:has(.topbar-cats) .rail-btn { top: calc(50% - 1px); }
.rail:has(.chips) .rail-btn { top: calc(50% - 6px); }

/*
 * Le dégradé déborde de la colonne, parce que la zone qui défile en déborde.
 *
 * Le rang prend vingt-quatre pixels de plus que la colonne de chaque côté
 * (`margin: 0 -24px`), pour que les pastilles puissent glisser jusqu'au bord
 * de l'écran. Le dégradé, lui, s'arrêtait au bord de la colonne : une pastille
 * à moitié sortie restait visible dans cette gouttière, à gauche de la flèche
 * de retour — « imo », dernières lettres de Patrimoine, posées là comme un
 * défaut d'affichage.
 *
 * Il part donc de −24 px et reste opaque sur ses trente-deux premiers pixels :
 * la gouttière est couverte pour de bon, et le fondu ne commence qu'une fois
 * la colonne rejointe.
 *
 * Il s'arrête au bas des pastilles : plus bas, il déborderait sur le filet qui
 * ferme l'en-tête.
 */
.rail::before, .rail::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 14px;
  width: 96px;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity .18s ease;
}
.rail::before {
  left: -24px;
  background: linear-gradient(90deg, var(--bg) 0, var(--bg) 32px, var(--bg-fade) 100%);
}
.rail::after {
  right: -24px;
  background: linear-gradient(270deg, var(--bg) 0, var(--bg) 32px, var(--bg-fade) 100%);
}
.rail.can-prev::before, .rail.can-next::after { opacity: 1; }

/*
 * La gouttière est prise à droite, et à droite seulement.
 *
 * À gauche, la rangée doit s'aligner sur le reste de la page. Un rang de
 * repères en retrait de quarante pixels se lit comme un bloc mal posé — et
 * c'est le premier repère qu'on regarde, celui qui donne l'alignement de
 * l'œil. La flèche de retour n'a d'ailleurs pas besoin de place réservée :
 * elle n'existe qu'une fois qu'on a défilé, et ce qu'elle survole est ce
 * qu'on vient de voir. Le dégradé suffit à le dire.
 *
 * À droite, la place doit être réservée pour de bon : c'est là que la
 * dernière pastille finissait sous le chevron, libellé coupé au milieu. Un
 * `padding` sur la zone qui défile ne la réserverait qu'en fin de course, et
 * `scroll-padding` n'agit que sur le défilement programmé — d'où la gouttière
 * sur le conteneur.
 *
 * Elle est posée dès que le rang déborde, sans attendre qu'une flèche
 * s'affiche : la faire apparaître et disparaître au fil du défilement ferait
 * sautiller toute la rangée.
 */
.rail.is-scrollable { padding-right: 38px; }

@media (hover: none) {
  /* Au doigt, le geste suffit : les boutons ne feraient qu'encombrer. */
  .rail-btn { display: none !important; }
}

.cat {
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  height: 36px;
  padding: 0 15px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: background .12s ease, border-color .12s ease;
}
.cat:hover { background: var(--accent-soft); color: var(--ink); }
.cat.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.cat.on:hover { background: var(--primary-hover); color: #fff; }

.cat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
/* Sur fond orange, la pastille de couleur devient illisible : elle passe en
   blanc, la catégorie étant de toute façon nommée juste à côté. */
.cat.on .cat-dot { background: rgba(255, 255, 255, .85) !important; }

@media (max-width: 860px) {
  /* La recherche passe sous le logo : la comprimer en dessous de 200 px la
     rendrait inutilisable, et le lieu compte davantage sur la première ligne.

     La première ligne, elle, ne se replie PAS : logo, lieu et compte doivent y
     tenir ensemble. Sans `flex-wrap: nowrap`, le logo occupait la ligne seul et
     renvoyait les deux autres en dessous — trois lignes d'en-tête sur un écran
     qui en a déjà peu. */
  .topbar-row { flex-wrap: wrap; gap: 10px; min-height: 0; }
  /* Douze pixels sous la recherche, pas quatre : collée au filet, elle se
     lisait comme la dernière ligne du contenu plutôt que comme le dernier
     geste de l'en-tête. */
  .topbar-search { order: 3; flex-basis: 100%; padding-bottom: 12px; }
  .topbar-actions { flex-wrap: nowrap; min-width: 0; }
  .brand img { height: 42px; }
}

@media (max-width: 640px) {
  /* Vingt-quatre pixels de marge coûtent un septième d'un écran de 360 :
     la carte y perd plus que la respiration n'y gagne. */
  .wrap { padding: 0 16px; }

  .topbar-inner { padding: 10px 16px 0; }

  /* Le rail de catégories rejoint les bords de l'écran. Coupé à l'aplomb de
     la marge, le dernier repère ressemble à la fin de la liste ; coupé au
     bord, il dit qu'il reste à faire défiler. */
  .topbar-cats {
    margin-inline: -16px;
    padding-inline: 16px;
    scroll-padding-inline: 16px;
  }
  /* Les rangs de pastilles empruntent la même gouttière que l'en-tête. Elle
     valait vingt-quatre pixels quand la colonne en faisait autant ; la colonne
     est passée à seize, eux non — huit pixels dépassaient de chaque côté, et
     la page entière défilait latéralement. */
  .chips {
    margin-inline: -16px;
    padding-inline: 16px;
    scroll-padding-inline: 16px;
  }
  .chips-wrap { margin-inline: 0; padding-inline: 0; }
  .rail::before { left: -16px; }
  .rail::after { right: -16px; }

  /* Les flèches n'ont plus lieu d'être là où le doigt fait le travail —
     ni la gouttière qui leur était réservée. */
  .rail-btn { display: none !important; }
  .rail.is-scrollable { padding-right: 0; }
}

@media (max-width: 480px) {
  /* Le logo doit pouvoir céder du terrain : à 360 px, logo, commune et
     compte ne tiennent la ligne que si l'un des trois accepte de rétrécir. */
  .brand { min-width: 0; }
  .brand img { height: 36px; }

  /* Le rayon quitte la pastille, le nom de la commune reste entier.
     Tronquer la chaîne entière donnait « Nantes · 3… » : ni la commune, ni le
     rayon. Retirer la moitié la moins utile — le rayon est rappelé dans le
     panneau qui s'ouvre — laisse une pastille qui dit quelque chose. */
  .loc-minutes { display: none; }
  .loc-text { max-width: none; }



  /* Sous le pouce, une cible de trente pixels se rate. */
  .place-picker > summary { padding: 9px 12px; }
  .topbar-actions { gap: 8px; }
}

.screen-head { padding: 2px 0 18px; }
.screen-head p { color: var(--ink-muted); font-size: 14px; margin-top: 4px; }

/* ---------- Chips ---------- */

/* Scrollables horizontalement sur mobile, jamais repliées dans un menu :
   elles sont la traduction directe de la couche d'enrichissement. */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  /* Le rang ne s'arrête jamais au milieu d'un libellé. « proximity » et non
     « mandatory » : on aligne ce qui est presque aligné, sans retenir le
     doigt.
     Le rembourrage doit être déclaré au défilement, sinon le point d'accroche
     tombe vingt-quatre pixels trop loin et le premier repère est rogné dès le
     chargement. */
  scroll-snap-type: x proximity;
  scroll-padding-left: 24px;
  overscroll-behavior-x: contain;
  padding: 4px 24px 16px;
  margin: 0 -24px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }



.chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-radius: var(--r-full);
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--ink);
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.chip:hover { background: var(--tint-warm); }
.chip.on { background: var(--primary); color: #fff; }
.chip.on:hover { background: var(--primary-hover); }

/* ---------- Grille de cartes ---------- */

.feed {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  padding-bottom: 56px;
}
@media (min-width: 760px) { .feed { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .feed { grid-template-columns: repeat(3, 1fr); } }

/* Le composant central. Densité volontairement basse : une carte doit
   respirer, l'objectif est le plaisir de parcourir. */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  /* La vignette et le bandeau vont bord à bord ; seul le texte est rentré. */
  padding: 0 0 16px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.card > *:not(.thumb):not(.card-band) { margin-inline: 16px; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }

.thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* L'absence de visuel est le cas normal côté lieux : l'aplat n'est pas un
   pis-aller, c'est un rendu à part entière. */
.thumb-fallback { font-size: 34px; line-height: 1; opacity: .85; }

.card-title { font-family: Nunito, sans-serif; font-weight: 700; font-size: 17px; line-height: 1.3; }
.card-meta { font-size: 13px; color: var(--ink-muted); }

.tag {
  align-self: flex-start;
  display: inline-block;
  border-radius: var(--r-sm);
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
}

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.badge {
  display: inline-block;
  border-radius: var(--r-full);
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 700;
}
.b-free { background: var(--success); color: #fff; }
.b-dist { background: var(--line); color: var(--ink); }
.b-soon { background: var(--accent); color: var(--ink); }
.b-attr { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
/* La forme se distingue des autres étiquettes : elle dit ce qu'on y fait,
   pas comment c'est. Le liseré de catégorie la rattache au bandeau. */
.b-forme {
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cat) 45%, transparent);
}

/* ---------- Fiche ---------- */

.detail { max-width: 760px; margin: 0 auto; padding-bottom: 64px; }
.detail .hero {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--accent-soft);
  aspect-ratio: 16 / 8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.detail .hero img { width: 100%; height: 100%; object-fit: cover; }
.detail h1 { font-size: 30px; margin: 10px 0; }

.facts {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 18px 20px;
  margin: 20px 0;
  display: grid;
  gap: 12px;
}
.fact { display: flex; gap: 12px; align-items: baseline; }
.fact dt { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); min-width: 92px; }
.fact dd { margin: 0; }

.prose { font-size: 16px; line-height: 1.65; }
.prose p + p { margin-top: 14px; }

/* Tout élément cliquable est en pilule : aucun angle droit. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: Nunito, sans-serif;
  font-weight: 700;
  font-size: 16px;
  height: 50px;
  padding: 0 24px;
  border-radius: var(--r-full);
  background: var(--primary);
  color: #fff;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--primary-hover); color: #fff; }
.btn-2 { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
/* La couleur du texte doit être redite : `.btn:hover` la force en blanc, et
   sans cette ligne le libellé du bouton secondaire disparaissait sur son fond
   pâle dès le survol. */
.btn-2:hover { background: var(--accent-soft); color: var(--ink); border-color: var(--primary); }

.empty {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 36px 28px;
  text-align: center;
  color: var(--ink-muted);
}

/* Attribution des sources : obligatoire dès qu'une page affiche de la donnée
   ODbL ou DATAtourisme. */
.attribution {
  border-top: 1px solid var(--line);
  padding: 20px 0 40px;
  font-size: 12px;
  color: var(--ink-muted);
}

/* ---------- Sélecteur de commune ---------- */

.place-picker { position: relative; }

.place-picker > summary {
  cursor: pointer;
  list-style: none;
  border-radius: var(--r-full);
  padding: 7px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: background .12s ease;
}
.place-picker > summary::-webkit-details-marker { display: none; }
.place-picker > summary:hover { background: var(--accent-soft); }
.place-picker[open] > summary { background: var(--accent-soft); }

.place-picker-caret { font-size: 10px; opacity: .6; margin-left: 2px; }

.place-picker-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  width: min(300px, calc(100vw - 40px));
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: 18px;
  display: grid;
  gap: 8px;
}

.place-picker-panel label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.place-picker-panel select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 12px;
}
.place-picker-panel select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }

.place-picker-panel .btn { margin-top: 6px; height: 44px; }
.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; }

.place-picker-note { font-size: 13px; color: var(--ink-muted); margin-top: 4px; line-height: 1.5; }
.place-picker-note a { color: var(--primary-ink); font-weight: 600; }

/* ---------- Champ à suggestions ---------- */

.combo { position: relative; }

.combo-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.combo-input {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 12px;
}
.combo-input:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }

/* La croix de remise à zéro : sans elle, retaper une commune demande de
   sélectionner tout le texte d'abord, et sur un téléphone ce geste rate une
   fois sur deux. La place réservée à droite du champ est constante, sinon le
   texte saute quand elle apparaît. */
.combo:has(.combo-clear:not([hidden])) .combo-input { padding-right: 44px; }

.combo-clear {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  /* Quarante pixels de large : au doigt, une cible de trente-quatre se rate
     une fois sur trois, et la rater ici rouvre le clavier sans rien effacer. */
  width: 40px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
  border-radius: var(--r-md);
}
.combo-clear:hover { color: var(--ink); }
.combo-clear:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }

/* Le département, dans la liste : c'est lui qui distingue Allonnes (72) de
   Allonnes (49), et il doit se lire sans voler la vedette au nom. */
.combo-item em { font-style: normal; color: var(--ink-muted); }

.combo-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  max-height: 264px;
  overflow-y: auto;
}

.combo-item {
  padding: 9px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 15px;
  line-height: 1.3;
}
.combo-item.is-active { background: var(--accent-soft); }

/* ---------- Distinction événement / lieu ---------- */

/*
 * La charte réserve la couleur aux catégories : une nature n'en est pas une,
 * et lui donner une teinte brouillerait le tri par catégorie. La distinction
 * passe donc par la forme et par la date — l'événement porte un cartouche de
 * date, le lieu n'en a pas.
 */

.thumb { position: relative; }

.thumb-date {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 46px;
  padding: 6px 8px 5px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  line-height: 1;
}
.thumb-date-day {
  font-family: Nunito, sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-ink);
}
.thumb-date-month {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 2px;
}

.card-kind {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 2px 0 3px;
  margin-right: 6px;
}
.card-kind-event { color: var(--primary-ink); }
.card-kind-place { color: var(--ink-muted); }

/* Un liseré discret double le signal pour qui ne distingue pas les teintes. */
.card-event { border-left: 3px solid var(--primary); }
.card-place { border-left: 3px solid var(--line); }

/* ---------- Grille d'horaires ---------- */

.fact-hours { align-items: flex-start; }

/* La grille prend la largeur restante : sans cela le tableau se tasse
   contre l'intitulé. */
.fact-hours dd { flex: 1; min-width: 0; }

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
/* Filet entre toutes les lignes, sauf la première — y compris à la jonction
   de deux saisons, où `tr + tr` ne s'applique pas. */
.hours th, .hours td { border-top: 1px solid var(--line); }
.hours tbody:first-child tr:first-child th,
.hours tbody:first-child tr:first-child td { border-top: 0; }

.hours th {
  text-align: left;
  font-weight: 600;
  padding: 7px 16px 7px 0;
  vertical-align: top;
  white-space: normal;
}
.hours td {
  padding: 7px 0;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  vertical-align: top;
}

/* En-tête de saison : c'est un intitulé de bloc, pas une ligne d'horaire. */
.hours-season th {
  padding: 12px 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.hours tbody:first-child .hours-season th { padding-top: 0; }

.hours-days {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Commentaire laissé par le contributeur : « dernière admission 45 min
   avant fermeture ». Il précise l'horaire, il ne le remplace pas. */
.hours-note {
  display: block;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-muted);
  white-space: normal;
}

/* Valeur non interprétée : lisible, mais visiblement brute. */
.hours-raw {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.6;
}

@media (max-width: 520px) {
  /*
   * Les faits s'empilent : l'étiquette au-dessus, la réponse en dessous.
   *
   * Quatre-vingt-douze pixels réservés au libellé, c'est le quart d'un écran
   * de trois cent soixante — et ce quart est pris à la réponse. « Du 28 au 30
   * août, tous les jours » passait sur trois lignes dans ce qui restait,
   * pendant que la colonne de gauche portait « 2026 » et du vide.
   *
   * La règle existait déjà pour la seule ligne des horaires ; elle vaut pour
   * toutes, et cesse d'être un cas particulier.
   */
  /* `.facts .fact` et non `.fact` : `.fact-where` centre ses enfants, ce qui
     n'avait pas d'effet tant que la ligne était horizontale et qui, une fois
     empilée, plantait « OÙ » au milieu de la carte pendant que « QUAND »
     restait à gauche. Il faut peser plus lourd qu'elle pour la corriger. */
  .facts .fact { flex-direction: column; align-items: stretch; gap: 4px; }
  .fact dt { min-width: 0; }

  /*
   * La grille d'horaires s'empile elle aussi : la date au-dessus, les créneaux
   * en dessous.
   *
   * Deux colonnes dans trois cents pixels donnaient « Du 19 au 20 / septembre,
   * tous / les jours » sur trois lignes à gauche pendant que « 9h30 – 13h et
   * 14h – 18h » tenait sur une seule à droite : le regard devait remonter
   * pour rattacher l'horaire à sa date. Empilés, ils se lisent dans l'ordre où
   * on les pense.
   *
   * Le filet passe alors sur la date, qui ouvre chaque bloc.
   */
  .hours tr { display: block; }
  .hours th, .hours td { display: block; width: auto; }
  .hours th { padding: 9px 0 1px; }
  .hours td {
    padding: 0 0 9px;
    text-align: left;
    white-space: normal;
    border-top: 0;
  }
  .hours tbody:first-child tr:first-child th { padding-top: 0; }
  .hours-season th { padding: 14px 0 2px; }
  .hours tbody:first-child .hours-season th { padding-top: 0; }
}

/* Une plage cliquable garde la couleur du texte : dix lignes de dates en
   orange feraient un mur de liens là où l'on vient lire des dates. Le geste
   se découvre au survol, et le repère de mise au point reste entier. */
.dates-link { color: inherit; text-decoration: none; }
.dates-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Dates repliées ---------- */

.more-dates { margin-top: 8px; }
.more-dates > summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-ink);
  list-style: none;
  padding: 4px 0;
}
.more-dates > summary::-webkit-details-marker { display: none; }
.more-dates > summary::before { content: '▾ '; font-size: 11px; }
.more-dates[open] > summary::before { content: '▴ '; }
.more-dates > summary:hover { color: var(--primary-hover); }

/* ---------- Pagination ---------- */

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 0 40px;
}
.pager-link {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.pager-link:hover { background: var(--accent-soft); color: var(--ink); }
.pager-link.is-disabled { opacity: .4; pointer-events: none; }
.pager-status { font-size: 14px; color: var(--ink-muted); }

/* ---------- Tags et chips cliquables ---------- */

/*
 * Le rang qui reste dans la colonne : il passe à la ligne au lieu de défiler,
 * et rend les DEUX marges négatives que `.chips` emprunte au conteneur.
 *
 * N'en rendre qu'une — `padding-left:0;margin-left:0`, motif recopié à quatre
 * endroits — laisse vingt-quatre pixels dépasser à droite et donne à la page
 * entière une barre de défilement horizontale. C'est le composant qui doit
 * porter la règle, pas chaque appelant.
 */
.chips-wrap {
  flex-wrap: wrap;
  overflow: visible;
  margin-inline: 0;
  padding-inline: 0;
}

/* Un élément cliquable doit se voir tel : la charte interdit l'angle droit,
   pas le retour visuel. */
.chip-link { transition: background .12s ease, transform .12s ease; }
.chip-link:hover { background: var(--primary); color: #fff; }
.chip-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.tag-link { display: inline-block; align-self: flex-start; padding: 0; background: none !important; }
.tag-link > span {
  display: inline-block;
  border-radius: var(--r-sm);
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  transition: opacity .12s ease;
}
.tag-link:hover > span { opacity: .82; }
.tag-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--r-sm); }

a.tag-link.tag { padding: 0; }

/* ---------- Texte de description ---------- */

.prose p + p,
.prose ul + p,
.prose p + ul { margin-top: 14px; }

.prose strong { font-weight: 700; }

.prose ul {
  list-style: none;
  padding-left: 2px;
}
.prose ul li {
  position: relative;
  padding-left: 20px;
  margin-top: 6px;
}
/* Puce en orange : c'est le seul endroit du texte courant où la couleur
   d'action sert de repère de lecture, pas d'appel à cliquer. */
.prose ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ---------- Retour des gestes ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.signal-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 60;
  background: var(--night);
  color: #fff;
  border-radius: var(--r-full);
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-2);
  opacity: 1;
  transition: opacity .3s ease, transform .3s ease;
}
.signal-toast.is-out { opacity: 0; transform: translateX(-50%) translateY(8px); }

/* Le geste doit se voir instantanément, avant même la réponse du serveur. */
.card .chip[aria-pressed] { transition: background .12s ease, color .12s ease; }

.signal-group {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 2px;
}
.signal-group form { flex: 1; }
.signal-group .chip { width: 100%; justify-content: center; }

/* Liens dans les descriptions : reconnaissables sans crier, la couleur
   d'action restant réservée aux boutons du produit. */
.prose a {
  color: var(--primary-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose a:hover { color: var(--primary-ink); }

/* ---------- Suggestions de recherche ---------- */

.topbar-search { position: relative; }

.suggest-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  max-height: 340px;
  overflow-y: auto;
}

.suggest-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.suggest-item.is-active { background: var(--accent-soft); }

.suggest-label { font-size: 15px; font-weight: 600; line-height: 1.3; }
.suggest-detail { font-size: 13px; color: var(--ink-muted); }

/* Une commune ne se visite pas comme une sortie : elle déplace le fil. Le
   liseré orange dit que le geste n'est pas le même. */
.suggest-commune { border-left: 3px solid var(--primary); }
.suggest-commune .suggest-label::after {
  content: ' →';
  color: var(--primary-ink);
  font-weight: 700;
}

.sort-note { font-size: 13px; color: var(--ink-muted); }
.sort-note a { color: var(--primary-ink); font-weight: 600; }

/* Séparateur entre deux familles de filtres. */
.chips-sep {
  flex: 0 0 auto;
  align-self: center;
  width: 1px;
  height: 20px;
  background: var(--line);
  margin: 0 4px;
}

/* ---------- Écrans d'authentification ---------- */

.auth-card {
  max-width: 420px;
  margin: 32px auto 72px;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
  padding: 36px 32px 30px;
}
.auth-card h1 { font-size: 26px; }

.auth-lead { color: var(--ink-muted); margin-top: 10px; line-height: 1.55; }

.auth-form { display: grid; gap: 8px; margin-top: 22px; }

.auth-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 15px;
  margin-bottom: 6px;
}
.auth-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(210, 68, 24, .12);
}

.auth-primary { width: 100%; margin-top: 6px; }

.auth-code {
  font-family: ui-monospace, SFMono-Regular, monospace !important;
  font-size: 22px !important;
  letter-spacing: .22em;
  text-align: center;
}

.auth-hint {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-top: 4px;
}
.auth-hint a { color: var(--primary-ink); font-weight: 600; }

.auth-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 14px !important;
  font-weight: 400 !important;
  margin: 2px 0 8px;
}
.auth-check input { width: 16px; height: 16px; accent-color: var(--primary); margin: 0 !important; }

/* Le mot de passe est disponible sans être proposé : un repli, pas un champ
   de plus à remplir. */
/*
 * Le repli du mot de passe se présente comme une seconde action, pas comme un
 * dépliant. Un chevron et un filet en font une section de réglages qu'on
 * n'ouvre pas ; centré et souligné au survol, c'est l'autre façon d'entrer.
 */
.auth-alt { margin-top: 18px; text-align: center; }
.auth-alt > summary {
  cursor: pointer;
  list-style: none;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-ink);
  padding: 8px 4px;
}
.auth-alt > summary::-webkit-details-marker { display: none; }
.auth-alt > summary:hover { text-decoration: underline; }
.auth-alt[open] > summary { color: var(--ink-muted); }
.auth-alt > form { text-align: left; }

/* L'intitulé et son recours sur la même ligne : le recours se cherche au
   moment où l'on bute sur le champ, pas au bas de la page. */
.auth-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.auth-label-row a { font-size: 13px; font-weight: 600; color: var(--primary-ink); }
.auth-label-row a:hover { text-decoration: underline; }

.auth-error {
  background: var(--tint-ko);
  color: var(--tint-ko-ink);
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin-top: 18px;
  font-size: 14px;
}

.auth-sent {
  background: var(--accent-soft);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-top: 22px;
  line-height: 1.55;
}
.auth-sent p + p { margin-top: 8px; }
.auth-sent strong { font-size: 16px; }

.auth-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-muted);
}
.auth-footer a { color: var(--primary-ink); font-weight: 600; }

/* ---------- Emporter sur le téléphone ---------- */

.qr {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.qr > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 6px 0;
}
.qr > summary::-webkit-details-marker { display: none; }
.qr > summary:hover { color: var(--ink); }
.qr > summary svg {
  width: 17px; height: 17px;
  stroke: currentColor; fill: none; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

.qr-body {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  max-width: 430px;
}
.qr-body img {
  flex-shrink: 0;
  border-radius: var(--r-md);
  /* Filet plutôt qu'ombre : le code a besoin d'une limite nette entre sa zone
     de silence blanche et le fond crème, pas d'un dégradé. */
  border: 1px solid var(--line);
}
.qr-body p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* Scanner l'écran qu'on tient déjà dans la main n'a pas de sens. */
@media (max-width: 700px) {
  .qr { display: none; }
}

/* ---------- Le geste sur la fiche ---------- */

/*
 * Le même geste que sur la carte, à l'endroit où la décision se prend
 * réellement : après avoir lu. Plus grand qu'en liste, parce qu'ici il n'y a
 * qu'une sortie et que rien ne lui dispute la place.
 */
.detail-signals {
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.detail-signals-ask {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.signal-group-lg { display: flex; gap: 10px; flex-wrap: wrap; }
.signal-group-lg .chip { height: 42px; padding: 0 20px; font-size: 15px; }

/*
 * Le rattachement à une série.
 *
 * La fiche datée périra, la série vit dix ans : ce lien est le seul chemin
 * qui mène de l'occurrence vers la page qui capitalise. Il se lit en gris —
 * c'est une note de bas de fiche, pas un appel à l'action — mais le titre
 * porte la couleur de marque, parce qu'il faut savoir qu'on peut le suivre.
 */
.detail-series {
  margin-top: 20px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.55;
}
.detail-series a {
  color: var(--primary-ink);
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent);
  text-underline-offset: 3px;
}
.detail-series a:hover {
  color: var(--primary-hover);
  text-decoration-color: currentColor;
}

/* Ce qui n'a pas de sens dans l'application installée : le réglage d'ouverture
   en nouvel onglet, neutralisé faute d'onglets. Un choix sans effet apprend à
   se méfier des autres. */
:root[data-standalone] [data-hors-pwa] { display: none; }

/* « Vous gérez ce lieu ? » : discret, en bas de fiche. La question ne concerne
   qu'une personne sur mille, et elle ne doit pas disputer la place aux gestes
   qui concernent tout le monde. */
/* La reprise de fiche par son exploitant : un encart, pas une note de bas de
   page. C'est la seule porte par laquelle un lieu cesse d'être décrit de
   l'extérieur — elle ne peut pas ressembler à une mention légale. */
.outing-claim {
  margin-top: 32px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: var(--r-md);
  background: var(--surface);
}
.outing-claim p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-muted); }
.outing-claim strong { color: var(--ink); }
.outing-claim .btn { margin-top: 14px; }

/* ---------- Le bas de fiche ---------- */

/* Le sous-titre d'un bloc de bas de fiche : il porte la contrainte — quel
   jour, autour de quel lieu — que le titre laisse implicite. Sans lui,
   « Le même jour » ne dit pas lequel. */
.alentours-sous {
  margin: -8px 0 14px;
  font-size: 14px;
  color: var(--ink-muted);
}

/* La programmation d'un lieu : une liste, pas des cartes.

   C'est la décision de fond de ce bas de page. Ici on ne choisit pas une
   ambiance, on lit un calendrier — la date passe devant, le titre suit. Et
   trois grilles de vignettes à la suite feraient un mur que personne ne
   parcourt. */
.prog {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.prog-ligne {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.prog-ligne:first-child { border-top: 0; }
.prog-ligne:hover { background: var(--bg); }

.prog-date {
  flex-shrink: 0;
  width: 96px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary-ink);
}

.prog-titre { font-size: 14.5px; font-weight: 600; line-height: 1.35; }

.prog-tout {
  display: block;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-ink);
  text-decoration: none;
}

@media (max-width: 560px) {
  /* Sous 560 px, la date en colonne laisse au titre une largeur qui le coupe
     en quatre lignes. Elle passe au-dessus, où elle joue le rôle d'intertitre. */
  .prog-ligne { display: block; }
  .prog-date { width: auto; display: block; margin-bottom: 3px; }
}

/* L'encart d'abonnement. Un liseré plutôt qu'un aplat : c'est une proposition,
   pas une interruption — et il arrive après trois blocs qui ont déjà rendu
   service. */
.abo {
  max-width: 1100px;
  margin: 8px auto 0;
  background: var(--surface);
  border-radius: var(--r-lg);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-1);
  padding: 22px;
}

.abo h2 { font-size: 18px; margin-bottom: 6px; }
.abo > p { color: var(--ink-muted); font-size: 14px; max-width: 60ch; }

.abo-champ {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.abo-champ input {
  flex: 1;
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 17px;
  font: inherit;
  font-size: 15px;
  background: var(--surface);
  color: var(--ink);
}

.abo-fin, .abo-ko, .abo-ok { font-size: 12.5px; margin-top: 10px; }
.abo-fin { color: var(--ink-muted); }
.abo-ko { color: var(--error); }
.abo-ok { font-size: 14px; margin: 0; color: var(--success); font-weight: 600; }

/* ---------- Nous écrire ---------- */

.contact { max-width: 680px; }
.contact-raccourcis { display: grid; gap: 9px; margin: 18px 0 24px; }
.contact-raccourci {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 15px;
}
.contact-raccourci:hover { border-color: var(--primary); }
.contact-raccourci-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  flex-shrink: 0;
}
.contact-raccourci strong { display: block; font-size: 14px; }
.contact-raccourci span span { font-size: 12.5px; color: var(--ink-muted); }

.contact-form {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 22px;
}
.contact-motifs { display: grid; gap: 8px; margin-top: 6px; }
.contact-body { min-height: 130px; resize: vertical; font-family: inherit; }

/* Une zone de texte a la hauteur d'un champ tant qu'on ne la lui donne pas :
   sur la demande de revendication, l'aide en trois lignes se retrouvait coupée
   dans une boîte de deux. */
textarea.acct-input { min-height: 120px; resize: vertical; font-family: inherit; line-height: 1.55; }
.claim-text { min-height: 130px; }

/* Le champ conditionnel se détache : il apparaît en cours de saisie, et sans
   marque il passerait pour un champ qu'on avait sauté. */
.contact-reference {
  border-left: 3px solid var(--primary);
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-top: 16px;
}

/*
 * Le piège à robots.
 *
 * Ni `display: none` ni `visibility: hidden` : certains robots les repèrent et
 * sautent le champ. Sorti de l'écran et retiré de l'ordre de tabulation, il
 * reste un champ ordinaire pour qui lit le HTML — et invisible pour qui lit la
 * page, synthèse vocale comprise, grâce à l'`aria-hidden` du gabarit.
 */
.contact-piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* La recherche de fiche : la liste se pose sous le champ, dans la boîte du
   bloc conditionnel — d'où le `position: relative` ici et nulle part ailleurs. */
.contact-search { position: relative; }
.contact-search .suggest-list { top: calc(100% + 4px); }

/* La fiche retenue, à la place du champ : montrer les deux laisserait croire
   qu'on peut encore taper par-dessus. */
.contact-choisie {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
  /* Le bloc suit immédiatement le champ de recherche : sans marge, la pastille
     « Changer » se colle à sa bordure et se lit comme un morceau du champ. */
  margin-top: 10px;
}
.contact-choisie .chip { cursor: pointer; font-weight: 500; }
.contact-hint { margin-top: 8px; }

.contact-rgpd { font-size: 13px; color: var(--ink-muted); margin: 18px 0 4px; line-height: 1.55; }
.h-captcha { margin-top: 18px; }

/* L'accusé de réception remplace le formulaire : le laisser dessous inviterait
   à réécrire le même message. */
.contact-ok {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 30px 24px;
  text-align: center;
  margin-top: 18px;
}
.contact-ok-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: rgba(27, 127, 85, .13);
  color: var(--success);
  font-size: 26px;
}
.contact-ok strong { font-family: Nunito, system-ui, sans-serif; font-size: 19px; display: block; }
.contact-ok p { color: var(--ink-muted); margin: 8px 0 18px; font-size: 14px; }

/* ---------- Les clés d'API ---------- */

/*
 * Le dessin d'un champ, hors accordéon.
 *
 * La règle des champs ne visait que ceux des accordéons (`.rel-privacy`) : un
 * champ posé dans une carte d'écran arrivait avec le dessin du système, au
 * milieu de boutons et de cartes soignés. Il se lit alors comme un défaut.
 */
.acct-input,
.acct-card input[type="text"],
.acct-card input[type="email"],
.acct-card input[type="password"],
.acct-card select {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 11px 14px;
}
.acct-input:focus,
.acct-card input:focus,
.acct-card select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(210, 68, 24, .12);
}

/* Le secret, une fois et une seule : le bloc est fait pour être lu puis
   copié, pas pour rester à l'écran. */
.api-secret { border: 1px solid var(--primary); }
.api-secret strong { display: block; font-size: 15px; }
.api-secret p { font-size: 13.5px; color: var(--ink-muted); margin: 4px 0 12px; }
.api-secret code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  background: var(--accent-soft);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 12px;
  word-break: break-all;
}

.api-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.api-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-bottom: 8px;
}
.api-table td { border-top: 1px solid var(--line); padding: 11px 12px 11px 0; vertical-align: middle; }
.api-table code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--ink-muted); }
.api-table tr.is-revoked { opacity: .55; }

.api-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
  background: var(--night);
  color: #E8EAF0;
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin: 10px 0 14px;
  overflow-x: auto;
}

/* ---------- Explorer par envie ---------- */

/*
 * Les tuiles de catégories, posées après la première journée du fil.
 *
 * Larges et discrètes : elles ne doivent pas concurrencer les cartes de
 * sorties, qui sont le produit. La couleur ne sert qu'à l'aplat du
 * pictogramme — douze tuiles pleine couleur feraient un nuancier, et le fil
 * qui suit paraîtrait fade.
 */
/* Le fil se termine par une gouttière de 56 px sous ses cartes : la section
   qui suit n'a pas à en rajouter une seconde. On la remonte, et le titre de
   journée suivant reprend la sienne. */
.envies { margin: -18px 0 6px; }
.envies + .feed-section .day-head { margin-top: 30px; }
.envies h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.envies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 11px;
}
.envie {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 15px;
}
.envie:hover { border-color: var(--c); box-shadow: var(--shadow-1); }
.envie.on { border-color: var(--c); background: var(--accent-soft); }
.envie-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  flex-shrink: 0;
  color: var(--c);
  /* L'aplat reprend la teinte de la catégorie, très pâle : c'est un repère,
     pas un appel. */
  background: color-mix(in srgb, var(--c) 13%, var(--surface));
}
.envie-mark svg { width: 20px; height: 20px; }
.envie-texte { min-width: 0; }
.envie-texte strong { display: block; font-family: Nunito, system-ui, sans-serif; font-size: 14.5px; }
.envie-texte > span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-muted);
  /* Une seule ligne : la phrase complète ferait varier la hauteur des tuiles
     d'une ligne à l'autre, et la grille perdrait son alignement. */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Sortir à plusieurs ---------- */

.plan-lead { color: var(--ink-muted); margin-top: 8px; line-height: 1.55; }
.plan-back { font-size: 14px; color: var(--ink-muted); margin-bottom: 6px; }
.plan-back a:hover { color: var(--primary-ink); }

.plan-new {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 20px;
  margin-top: 22px;
  display: grid;
  gap: 16px;
}
.plan-new-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .plan-new-row { grid-template-columns: 1fr; } }

.plan-new label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.plan-new label span { font-weight: 400; color: var(--ink-muted); }
.plan-new input[type="date"],
.plan-new input[type="text"] {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 11px 13px;
}
.plan-new input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(210, 68, 24, .12);
}

/* Le dessin des pastilles de personne vit plus bas, en un seul endroit : il
   était écrit ici ET là, et la seconde écriture gagnait sans que la première
   disparaisse — d'où « Vous » en cercle bordé et les autres en case à cocher
   flottante, pour une seule et même chose. */

.plan-section { margin-top: 34px; }

/* Le déclencheur du calendrier : le même dessin qu'un champ, parce que c'en
   est un — ce qu'il ouvre ne change pas ce qu'il est. */
.plan-date { position: relative; }
.plan-date > summary.inp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 11px 13px;
  cursor: pointer;
  list-style: none;
}
.plan-date > summary.inp::-webkit-details-marker { display: none; }
.plan-date > summary.inp > span:first-child { display: flex; align-items: center; gap: 9px; }
.plan-date > summary.inp svg { fill: none; stroke: currentColor; stroke-width: 1.7; }
.plan-date[open] > summary.inp { border-color: var(--primary); }

.plan-count {
  background: var(--accent-soft);
  border-radius: var(--r-md);
  padding: 12px 15px;
  font-size: 13.5px;
  text-align: center;
}

/* L'aide au bout de la ligne : un pictogramme discret, pas un bouton. Sous le
   libellé, elle se lisait comme une troisième ligne de texte. */
.plan-cross { align-items: center; }
.plan-cross-help {
  margin-left: auto;
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  flex-shrink: 0;
  cursor: help;
}
.plan-cross-help svg { fill: none; stroke: currentColor; stroke-width: 1.7; }

/* Un projet en carte : une ligne de texte gris ne disait pas qu'on pouvait
   l'ouvrir, ni où en était la décision. */
.plan-card {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 16px 18px;
}
.plan-card:hover { box-shadow: var(--shadow-2); }
.plan-card-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  flex-shrink: 0;
}
.plan-card-date b { font-family: Nunito, sans-serif; font-size: 17px; font-weight: 800; line-height: 1; }
.plan-card-date span { font-size: 9px; font-weight: 700; color: var(--ink-muted); letter-spacing: .05em; }
.plan-card-main { flex: 1; min-width: 160px; }
.plan-card-main strong { font-family: Nunito, sans-serif; font-size: 16px; display: block; }
.plan-card-meta { font-size: 13px; color: var(--ink-muted); }
.plan-card-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  padding: 5px 11px;
  background: var(--accent-soft);
  color: var(--ink-muted);
}
.plan-card-tag.is-waiting { background: var(--accent); color: #4A3000; }
.plan-card-tag.is-done { background: var(--success); color: #fff; }
.plan-card-caret { color: var(--ink-muted); font-size: 18px; }

.plan-list { display: grid; gap: 11px; margin-top: 12px; }
.plan-list-past { opacity: .62; }

.plan-who { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.plan-who-chip {
  background: var(--accent-soft);
  border-radius: var(--r-full);
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 600;
}

.plan-note {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.plan-flash {
  background: var(--tint-ok);
  color: var(--tint-ok-ink);
  border-radius: var(--r-md);
  padding: 11px 16px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 14px;
}

.plan-decided {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  border-left: 4px solid var(--primary);
}
.plan-decided-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary-ink);
}
.plan-decided a { font-weight: 700; }
.plan-decided a:hover { color: var(--primary-ink); }
.plan-decided button {
  margin-left: auto;
  font: inherit;
  font-size: 13px;
  color: var(--ink-muted);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
}

.plan-top { list-style: none; padding: 0; margin: 12px 0 0; counter-reset: plan; display: grid; gap: 8px; }

.plan-candidate {
  counter-increment: plan;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 14px 18px;
}
/* Le rang est une information : c'est l'ordre du groupe, il se lit d'un coup. */
.plan-candidate::before {
  content: counter(plan);
  font-family: Nunito, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-muted);
  min-width: 20px;
  text-align: center;
}
.plan-candidate-main { min-width: 0; }
.plan-candidate-title { font-weight: 700; line-height: 1.3; }
.plan-candidate-title:hover { color: var(--primary-ink); }
.plan-candidate-meta { font-size: 13px; color: var(--ink-muted); margin-top: 3px; }
.plan-candidate-tally { font-size: 13px; color: var(--ink-muted); margin-top: 5px; }

.plan-vote { display: flex; gap: 6px; }
.plan-vote .chip { height: 34px; padding: 0 13px; font-size: 13px; }

.plan-pick { grid-column: 2 / -1; }
.plan-pick button {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  background: none;
  border: 0;
  padding: 4px 0 0;
  cursor: pointer;
  text-decoration: underline;
}
.plan-pick button:hover { color: var(--primary-ink); }

@media (max-width: 560px) {
  /* Le vote passe sous le titre : à trois colonnes, l'intitulé se réduit à
     deux mots et la proposition n'est plus reconnaissable. */
  .plan-candidate { grid-template-columns: auto 1fr; }
  .plan-vote { grid-column: 2; }
}

.plan-rest { margin-top: 16px; }
.plan-rest > summary {
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 6px 0;
}
.plan-rest > summary::-webkit-details-marker { display: none; }
.plan-rest > summary::before { content: '▸ '; font-size: 11px; }
.plan-rest[open] > summary::before { content: '▾ '; }
.plan-rest > summary:hover { color: var(--primary-ink); }

.plan-empty {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.plan-empty a { color: var(--primary-ink); font-weight: 600; }

/* Le module sans proches : une invitation, pas un formulaire désactivé. Le
   bloc garde la carte pour rester à sa place dans la page, mais y range un
   seul geste — celui qui débloque tout le reste. */
.plan-new-empty { justify-items: start; }
.plan-new-empty .plan-empty { margin-top: 0; }

/* ---------- Itinéraire ---------- */

.directions { position: relative; margin: 18px 0 4px; }

.directions > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-full);
  background: var(--primary);
  color: #fff;
  font-family: Nunito, sans-serif;
  font-size: 15px;
  font-weight: 700;
  transition: background .12s ease;
}
.directions > summary::-webkit-details-marker { display: none; }
.directions > summary:hover { background: var(--primary-hover); }
.directions > summary svg {
  width: 17px; height: 17px;
  stroke: currentColor; fill: none; stroke-width: 1.9;
}
.directions-caret { font-size: 10px; opacity: .75; }
.directions[open] .directions-caret { transform: rotate(180deg); }

.directions-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 20;
  min-width: 190px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: 8px;
  display: grid;
  gap: 1px;
}

.directions-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 600;
}
.directions-panel a:hover { background: var(--accent-soft); }
.directions-panel a span { color: var(--ink-muted); font-size: 12px; }

/* ---------- L'adresse et son itinéraire ---------- */

.fact-where { flex-wrap: wrap; align-items: center; }
.fact-where dd { display: grid; gap: 2px; }
.fact-where-main { font-weight: 600; }
.fact-where-sub { color: var(--ink-muted); font-size: 14px; }

/* Sur la ligne, et non dessous : c'est là qu'on le cherche, au moment où l'on
   lit où c'est. Il se pousse à droite tant que la place le permet. */
.fact-where .directions { margin: 0 0 0 auto; }
.fact-where .directions > summary { height: 38px; padding: 0 16px; font-size: 14px; }
.fact-where .directions-panel { left: auto; right: 0; }

@media (max-width: 560px) {
  /* Sous le pouce, le bouton reprend la ligne entière plutôt que de comprimer
     l'adresse à deux mots. */
  .fact-where .directions { margin: 10px 0 0; width: 100%; }
  .fact-where .directions > summary { width: 100%; justify-content: center; }
  .fact-where .directions-panel { left: 0; right: auto; }
}

/* La catégorie de la fiche mène quelque part : elle doit se comporter comme
   un lien, sans changer d'apparence — c'est déjà une étiquette pleine. */
.tag-link { display: inline-block; }
.tag-link:hover span { filter: brightness(1.12); }

/* ---------- Relief de la carte ---------- */

/*
 * Le temps de trajet, sur la vignette.
 *
 * Il vivait dans la rangée d'attributs, avec exactement le même poids
 * typographique que « En plein air ». Le fait qui distingue le produit de tous
 * les agendas concurrents ne peut pas se lire comme un attribut de décor.
 */
.thumb-travel {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: var(--night);
  color: #fff;
  border-radius: var(--r-full);
  padding: 5px 12px;
  font-family: Nunito, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(23, 26, 36, .28);
}

/*
 * La catégorie en bandeau plein.
 *
 * Posée en petite étiquette dans un coin, la couleur ne servait qu'à décorer.
 * En bandeau, elle trie : dans une grille de vingt-quatre cartes, on repère
 * une teinte avant de lire un mot — et c'est le seul emploi de la couleur que
 * la charte autorise.
 */
.card-band {
  display: block;
  background: var(--cat);
  padding: 6px 16px 7px;
  font-family: Nunito, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #fff;
}
.card-band-link:hover { filter: brightness(1.1); }

.card-title { margin-top: 2px; }

/* Le pictogramme de repli occupe la vignette au lieu de flotter au milieu
   d'un aplat vide. */
.thumb-fallback { font-size: 38px; opacity: .55; }

/* ---------- Le fil, par jour ---------- */

/*
 * Le fil se lit par journée. Une liste de vingt-quatre cartes triées par score
 * ne dit pas quand sortir ; « aujourd'hui, demain, quand vous voulez » est un
 * rythme de lecture, et les lieux permanents deviennent une rubrique assumée
 * plutôt qu'un fond de panier en fin de liste.
 */
.day-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 34px 0 14px;
}
.feed + .day-head, .screen-head + .day-head { margin-top: 6px; }

.day-head h2 {
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}
.day-head span { font-size: 13.5px; color: var(--ink-muted); white-space: nowrap; }

/* Un filet qui prend la place restante : il sépare sans peser. */
.day-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- Fil d'Ariane ---------- */

/*
 * Il dit deux choses : d'où l'on vient, et à quoi cette page appartient. La
 * seconde compte davantage — arrivé par un moteur de recherche, on n'a pas
 * de « d'où l'on vient », mais on a besoin de savoir qu'il existe une page
 * « Musique à Nantes » au-dessus de celle qu'on lit.
 */
.crumbs { margin: 0 0 14px; }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-muted);
}
.crumbs li { display: flex; align-items: baseline; gap: 6px; }
.crumbs li + li::before { content: '›'; opacity: .55; }
.crumbs a { color: var(--ink-muted); }
.crumbs a:hover { color: var(--primary-ink); text-decoration: underline; }
/* La page où l'on est n'est pas un lien, et se lit comme telle. */
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

@media (max-width: 560px) {
  /* Sur un écran étroit, seul le dernier chemin de retour compte : les
     maillons intermédiaires prendraient deux lignes pour rien. */
  .crumbs li:not(:nth-last-child(-n+2)) { display: none; }
  .crumbs li:nth-last-child(2)::before { content: '‹'; }
}

/* ---------- Du style dans la grille ---------- */

/*
 * Trois défauts se voyaient d'un coup d'œil sur une grille pleine.
 *
 * Les vignettes de repli étaient toutes le même aplat pêche — et la moitié du
 * fond de carte n'a pas de visuel, ce qui donnait un mur beige. Les émojis ne
 * s'accordaient ni entre eux ni avec la charte : un 🎭 d'Apple, un de Windows
 * et un d'Android n'ont ni la même graisse ni la même palette, et aucun ne
 * peut prendre la couleur de sa catégorie. Enfin, vingt-quatre cartes de
 * taille rigoureusement égale ne disaient plus laquelle était la meilleure
 * réponse.
 *
 * Les trois corrections tiennent avec ce que la carte porte déjà : la teinte
 * de sa catégorie, passée en variable `--cat`. Aucune couleur nouvelle, aucune
 * décoration qui ne trie pas.
 */

/* La gouttière de la charte est à 20 px ; la grille en était restée à 16. Le
   rang respire un peu plus qu'il ne descend. */
.feed { gap: 22px 20px; }

.card { --cat: var(--primary); }

/*
 * Le texte de la carte tient dans un bloc.
 *
 * La carte n'a plus que trois enfants — vignette, bandeau, texte — ce qui la
 * rend indifférente au nombre de lignes qu'elle contient. Le bloc prend la
 * hauteur restante, les badges s'y poussent en bas comme avant.
 */
.card-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  min-width: 0;
}

/* Un badge ne s'étire jamais à la hauteur de sa rangée : il garde la sienne,
   même quand un voisin passe sur deux lignes. */
.badges { align-items: center; }

/*
 * L'aplat de repli, teinté par la catégorie.
 *
 * Un dégradé de coin, une trame diagonale très pâle et un fond mêlé de blanc :
 * trois couches qui ne dépassent jamais 22 % de la teinte, pour que le
 * pictogramme et la pastille de date restent lisibles par-dessus. La première
 * déclaration reste l'aplat d'origine — les navigateurs sans `color-mix`
 * gardent exactement le rendu d'avant.
 */
.thumb-empty {
  background: var(--accent-soft);
  background:
    radial-gradient(128% 108% at 78% 4%,
      color-mix(in srgb, var(--cat) 20%, transparent) 0%, transparent 62%),
    repeating-linear-gradient(-45deg,
      color-mix(in srgb, var(--cat) 8%, transparent) 0 1.5px,
      transparent 1.5px 11px),
    color-mix(in srgb, var(--cat) 6%, var(--surface));
}

.thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cat);
  opacity: 1;
  transition: transform .35s cubic-bezier(.2, .7, .3, 1);
}
.cat-icon { width: 46px; height: 46px; opacity: .8; }

/* La vignette bouge à peine au survol : de quoi rendre la carte vivante sous
   le curseur, pas de quoi faire tanguer la grille. */
.thumb img { transition: transform .45s cubic-bezier(.2, .7, .3, 1); }
.card:hover .thumb img { transform: scale(1.045); }
.card:hover .thumb-fallback { transform: scale(1.07); }

@media (prefers-reduced-motion: reduce) {
  .card, .thumb img, .thumb-fallback { transition: none; }
  .card:hover { transform: none; }
  .card:hover .thumb img, .card:hover .thumb-fallback { transform: none; }
}

/* Le clavier doit voir où il est : la vignette est un lien, et c'était le seul
   de la carte à ne rien montrer au focus. */
.card a:focus-visible {
  outline: 3px solid var(--cat);
  outline-offset: -3px;
  border-radius: var(--r-sm);
}

/*
 * Le liseré de gauche prend la teinte de la catégorie.
 *
 * Il était orange sur tous les événements : la charte réserve l'orange à
 * l'action, et un trait décoratif de la couleur des boutons apprend au regard
 * à ne plus la chercher. La distinction événement / lieu ne se perd pas —
 * l'événement porte un cartouche de date, le lieu n'en a pas, et le liseré
 * gris continue de le doubler.
 */
.card-event { border-left-color: var(--cat); }

/* ---------- Une tête de fil ---------- */

/*
 * La première carte du premier jour passe en double largeur, visuel à gauche.
 *
 * Un classement dont la meilleure réponse a exactement la taille de la
 * douzième ne se lit plus comme un classement : le rang du haut se donne la
 * place de le dire. La place gagnée n'est pas de l'agrandissement — elle sert
 * un résumé et deux attributs de plus.
 */
@media (min-width: 760px) {
  /*
   * Trois enfants, deux rangées, aucune arithmétique.
   *
   * La version précédente comptait les rangées du contenu pour que la vignette
   * descende jusqu'en bas. C'était faux deux fois : `grid-row: 1 / -1` ne
   * descend jusqu'en bas que si les rangées sont explicites, et surtout la
   * carte de tête est plus courte que ses voisines — la grille l'étirait à la
   * hauteur du rang, et l'étirement se répartissait sur toutes les rangées.
   * Le bandeau devenait un pavé vert de deux centimètres, les badges des
   * ovales démesurés. Le bloc de texte règle les deux : le bandeau garde sa
   * rangée, le texte prend la seconde, et l'étirement n'a plus qu'un endroit
   * où aller.
   */
  .feed > .card-lead {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(0, 43%) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 0;
    padding: 0;
  }

  /*
   * La vignette tient toute la hauteur — mais elle la SUIT, elle ne la dicte
   * pas.
   *
   * Sans l'image en position absolue, sa hauteur intrinsèque poussait la
   * ligne : une photo en portrait à quarante-trois pour cent de la largeur
   * imposait six cent quarante pixels de carte pour trois cents pixels de
   * texte, et le bloc centré flottait au milieu d'un vide. C'est le contenu
   * qui doit donner l'assise, l'image le remplit.
   *
   * Un plancher tout de même : une tête de fil qui ferait la hauteur de son
   * seul titre ne se distinguerait plus des cartes ordinaires, et la double
   * largeur passerait pour une erreur.
   */
  .card-lead > .thumb {
    grid-area: 1 / 1 / -1 / 2;
    aspect-ratio: auto;
    min-height: 340px;
  }
  .card-lead > .thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .card-lead > .card-band { grid-area: 1 / 2 / 2 / 3; }

  /* Le texte se centre sur la hauteur restante — ce qui ne se voit plus que
     lorsque le plancher de la vignette dépasse le contenu, et c'était tout le
     problème : centré dans une hauteur dictée par une photo en portrait, le
     bloc flottait. Les badges ne se poussent pas en bas, ils font partie du
     bloc qu'on centre. */
  /* Sélecteur aussi précis que celui du rentré commun (`.card > *:not(…)`),
     sans quoi les 16 px de base l'emporteraient sur les 22 d'ici. */
  .feed > .card-lead > .card-body {
    grid-area: 2 / 2 / 3 / 3;
    justify-content: center;
    margin-inline: 22px;
    padding-block: 18px;
  }
  .card-lead .badges { margin-top: 0; padding-top: 2px; }

  .card-lead .card-title { font-size: 22px; line-height: 1.25; }
  .card-lead .card-meta { font-size: 14px; }
  .card-lead .cat-icon { width: 68px; height: 68px; }
  .card-lead .thumb-date { top: 14px; left: 14px; }
  .card-lead .thumb-travel { right: 14px; bottom: 14px; font-size: 13px; }
}

/* Un filet de la couleur de la catégorie sous le résumé : il rattache le bloc
   de texte à son bandeau, à l'autre bout de la carte. */
.card-summary {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-muted);
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--cat) 22%, transparent);
}

/*
 * Deux lignes, coupées net, sur les cartes ordinaires.
 *
 * Les résumés vont de cent à cent quatre-vingts caractères : laissés libres,
 * ils donnent des cartes de trois hauteurs différentes sur la même rangée, et
 * la grille se met à ressembler à un empilement. La carte de tête, elle, a la
 * place de dérouler sa phrase entière.
 */
.card-summary-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

/* ---------- Le repli de la fiche suit celui des cartes ---------- */

.detail .hero-empty {
  background: var(--accent-soft);
  background:
    radial-gradient(120% 120% at 82% 0%,
      color-mix(in srgb, var(--cat) 20%, transparent) 0%, transparent 60%),
    repeating-linear-gradient(-45deg,
      color-mix(in srgb, var(--cat) 8%, transparent) 0 2px,
      transparent 2px 14px),
    color-mix(in srgb, var(--cat) 6%, var(--surface));
}
.detail .hero .cat-icon { width: 84px; height: 84px; }
/* Sans photo, un bandeau court de la couleur de la catégorie (maquette 54) :
   le motif de 180 px repoussait le titre et les dates hors du premier écran,
   pour ne rien montrer. */
.garder-gestes .garder-calendrier { flex: 1 1 100%; justify-content: center; }
.detail .hero.hero-empty { aspect-ratio: auto; height: 72px; border-radius: var(--r-lg, 18px); margin-bottom: 14px; }
.detail .hero.hero-empty .cat-icon { width: 32px; height: 32px; }

/* ---------- Sortir avec vos proches ---------- */
/*
   La page a une hiérarchie explicite : un bloc sombre qui porte l'action
   principale, les demandes reçues juste dessous, le cercle ensuite, et les
   réglages repliés. La version précédente était uniformément crème — rien n'y
   avait plus de poids que le reste, donc rien ne guidait.
*/
.rel-page { max-width: 680px; }
.rel-lede { color: var(--ink-muted); margin-top: 8px; line-height: 1.6; }

/* Un retrait doit être expliqué par un fond, sinon c'est un décalage.

   La variante neutre portait le même rembourrage que les autres sans aucun
   fond : le texte partait seize points à droite du titre et du bouton, et rien
   ne disait pourquoi. On la traite comme les deux autres — un aplat doux et un
   liseré — et le retrait redevient la marge d'un encart. */
.rel-flash {
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin: 18px 0;
  font-weight: 600;
  background: var(--accent-soft);
  border-left: 3px solid var(--line);
}
.rel-flash-ok,
.rel-flash-ko { border-left-color: transparent; }
.rel-flash-ok { background: var(--tint-ok); color: var(--tint-ok-ink); }
.rel-flash-ko { background: var(--tint-ko); color: var(--tint-ko-ink); font-weight: 500; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--accent-soft); color: var(--ink); border-color: var(--primary); }

/* Le seul fond sombre du site public, réservé à l'action qui débloque tout
   le module : sans relation, « sortir à plusieurs » n'a rien à croiser. */
.rel-invite {
  background: var(--night, #171A24);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 22px;
  margin-top: 26px;
}
.rel-invite h2 { font-size: 19px; margin: 0 0 6px; }
.rel-invite > p { color: #B9BFCB; font-size: 14px; line-height: 1.55; margin-bottom: 14px; }

.rel-link {
  background: rgba(255, 255, 255, .09);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.rel-link span {
  flex: 1;
  min-width: 180px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rel-invite-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.rel-invite-actions .btn-ghost { border-color: rgba(255, 255, 255, .25); color: #fff; }
.rel-invite-actions .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.rel-qr summary { list-style: none; display: inline-flex; }
.rel-qr summary::-webkit-details-marker { display: none; }
.rel-qr img { display: block; margin-top: 12px; background: #fff; border-radius: var(--r-md); padding: 10px; }

.rel-code { margin-top: 15px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); }
.rel-code summary { font-size: 13px; color: #8F96A3; cursor: pointer; }
.rel-code summary span { color: #fff; font-weight: 600; text-decoration: underline; }
.rel-code form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.rel-code input {
  flex: 1;
  min-width: 150px;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border-radius: var(--r-md);
  padding: 11px 14px;
}
.rel-code input::placeholder { color: #6F7686; }

.rel-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--primary);
  /* La lettre est blanche sur un aplat de couleur, et elle le reste : le
     `-webkit-text-fill-color` accompagne `color` parce qu'un ancêtre qui pose
     l'un sans l'autre — un dégradé de texte, une réinitialisation de
     formulaire sur `summary` — laisse la lettre reprendre la teinte du
     corps, et l'on obtient un T gris sur un rond orange. */
  color: #fff;
  -webkit-text-fill-color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
  letter-spacing: .02em;
  flex-shrink: 0;
  object-fit: cover;
  overflow: hidden;
}
.rel-avatar-sm { width: 30px; height: 30px; font-size: 12px; }

.rel-request {
  background: var(--surface);
  border: 1px solid var(--accent, #FFB627);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  margin-top: 16px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.rel-request > div:first-of-type { flex: 1; min-width: 170px; }
.rel-request strong { display: block; }
.rel-request span { color: var(--ink-muted); font-size: 13px; }
.rel-request-actions { display: flex; gap: 8px; }

.rel-circle { margin-top: 30px; }
.rel-circle-head { display: flex; align-items: baseline; gap: 10px; }
.rel-circle-head h2 { font-size: 20px; }
.rel-circle-head span { color: var(--ink-muted); font-size: 13px; }
.rel-note { color: var(--ink-muted); font-size: 13.5px; line-height: 1.55; margin-top: 6px; }
.rel-pending { margin-top: 18px; }

.rel-person {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  margin-top: 12px;
  display: flex; gap: 13px; align-items: flex-start; flex-wrap: wrap;
}
.rel-person-body { flex: 1; min-width: 190px; }
.rel-person-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rel-person-meta { color: var(--ink-muted); font-size: 13px; margin-top: 2px; }

/* Le rôle devient un badge sur la personne, ce qui supprime le menu
   « à quel titre ? » posé avant qu'on ait pu comprendre la différence. */
.rel-badge {
  border-radius: var(--r-sm);
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: var(--line);
  color: var(--ink-muted);
}
.rel-badge.on { background: var(--primary); color: #fff; }

.rel-shared { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.rel-shared > span:first-child { font-size: 12px; color: var(--ink-muted); }
.rel-shared .chip { font-size: 12px; padding: 4px 10px; }

.rel-person-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rel-person-actions .btn { height: 36px; padding: 0 12px; font-size: 13px; }
.rel-remove:hover { border-color: var(--error, #C0272D); color: var(--error, #C0272D); background: transparent; }

.rel-empty {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 30px 24px;
  margin-top: 26px;
  text-align: center;
}
.rel-empty-mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--primary-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 27px; font-weight: 700;
  margin: 0 auto 16px;
}
.rel-empty h2 { font-size: 19px; }
.rel-empty p { color: var(--ink-muted); line-height: 1.6; margin-top: 8px; }

.rel-privacy {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin-top: 28px;
}
.rel-privacy summary { cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.rel-privacy summary span { color: var(--ink-muted); font-size: 13px; }
.rel-privacy form { margin-top: 14px; }
.rel-choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.rel-choice input { accent-color: var(--primary); width: 17px; height: 17px; margin-top: 3px; }
.rel-choice span span { display: block; color: var(--ink-muted); font-size: 13.5px; line-height: 1.5; }

.rel-foot { margin-top: 22px; color: var(--ink-muted); font-size: 13px; }

@media (max-width: 560px) {
  .rel-person-actions { width: 100%; }
}

/* ---------- Fil d'Ariane ---------- */
/*
   Réservé aux pages de compte : elles forment une arborescence dont on ne
   voyait la profondeur nulle part. Le catalogue s'en passe — un fil est utile
   dans une hiérarchie, pas dans une liste qu'on parcourt à plat.
*/
.crumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary-ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.crumbs-sep { color: var(--line); }

/* ---------- Mon compte ---------- */
/*
   Un compte doit d'abord montrer ce qu'on y a mis, et seulement ensuite ce
   qu'on y règle. D'où l'ordre : identité, portée, contenu, puis les réglages
   repliés — au lieu d'un mur de champs où rien n'appartient à personne.
*/
.acct { max-width: 680px; }

.acct-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.acct-avatar { width: 52px; height: 52px; font-size: 21px; }
.acct-head h1 { margin: 0; }
.acct-head p { color: var(--ink-muted); font-size: 13.5px; margin-top: 2px; }

/* Le titre seul, sur les pages sœurs du compte : ni photo ni salutation. Elles
   savent qui est là — on vient d'ouvrir un menu à son nom — et la bande les
   repoussait d'une centaine de pixels sur un téléphone. */
.acct-head-plain { margin-bottom: 18px; }

.acct-block { margin-top: 32px; }
.acct-block > h2 { font-size: 20px; }
.acct-pile {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 18px 0 10px;
}

.acct-outing {
  display: flex;
  gap: 13px;
  align-items: center;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 13px 15px;
  margin-top: 9px;
  text-decoration: none;
  color: inherit;
}
.acct-outing:hover { background: var(--accent-soft); }
.acct-outing-mark {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.acct-outing-mark .cat-icon { width: 22px; height: 22px; }
.acct-outing strong { display: block; font-size: 15px; }
.acct-outing-meta { display: block; color: var(--ink-muted); font-size: 13px; margin-top: 2px; }

.chip-off { background: var(--line); color: var(--ink-muted); }

/*
 * La carte du compte : un fond, un rayon, une gouttière, une fois.
 *
 * Trois blocs la portaient chacun avec ses propres valeurs — 14/16 ici, 16/18
 * là — et un quatrième ne la portait pas du tout, si bien que « Vos envies »
 * flottait sans support entre deux cartes.
 */
.acct-card, .acct-empty, .acct-circle {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin-top: 12px;
}

.acct-circle {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.acct-circle > div { flex: 1; min-width: 160px; }
.acct-faces { display: flex; }
.acct-faces .rel-avatar { margin-right: -10px; border: 2px solid var(--surface); }

/* Le détail chiffré des poids : administrateur uniquement. */
.acct-raw { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.acct-raw summary { cursor: pointer; font-size: 14px; }
.acct-raw summary span { display: block; color: var(--ink-muted); font-size: 12.5px; }
.acct-raw table { width: 100%; margin-top: 12px; font-size: 13px; border-collapse: collapse; }
.acct-raw th, .acct-raw td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.acct-raw th { color: var(--ink-muted); font-weight: 600; }

.acct-settings-title { margin-top: 36px; font-size: 20px; }
.acct-field { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }

/* La mention accessoire d'un libellé — « facultatif », « pour un office de
   tourisme » — entre parenthèses et en gris. Sans elles, « Ce que vous leur
   dites facultatif » se lit comme une phrase, et une phrase qui n'en est pas
   une fait relire deux fois. Les parenthèses sont posées par le style et non
   écrites douze fois dans les gabarits : douze copies, c'est onze occasions
   d'en oublier une. */
.acct-field > span,
.acct-details > summary > span {
  font-weight: 400;
  color: var(--ink-muted);
}
.acct-field > span::before,
.acct-details > summary > span::before { content: '('; }
.acct-field > span::after,
.acct-details > summary > span::after { content: ')'; }
/* Tous les champs d'un accordéon, pas seulement ceux de type « text » : le
   mot de passe demandé pour désactiver la double authentification arrivait
   avec le dessin du système, à côté de champs habillés — un champ nu au
   milieu d'un formulaire soigné se lit comme un défaut, et sur cet écran-là il
   inquiète. */
.rel-privacy input[type="text"],
.rel-privacy input[type="password"],
.rel-privacy input[type="email"],
.rel-privacy input[type="number"],
.rel-privacy input[type="url"],
.rel-privacy select {
  width: 100%;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 11px 14px;
  background: var(--surface);
}
.acct-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; cursor: pointer; }
.acct-check input { accent-color: var(--primary); width: 17px; height: 17px; margin-top: 3px; flex: none; }
/* `flex: none` : à côté d'un long texte, la case se faisait écraser — elle
   rapetissait d'une ligne à l'autre dans une même liste. */
.acct-check span span { display: block; color: var(--ink-muted); font-size: 13.5px; line-height: 1.5; margin-top: 2px; }
.rel-privacy .btn { margin-top: 16px; }

/* ---------- Sortir à plusieurs ---------- */
/*
   L'état vide montre le résultat au lieu d'expliquer un empêchement : un
   exemple grisé dit en un coup d'œil ce qu'une phrase mettait trois lignes à
   ne pas dire.
*/
.plan-demo { text-align: left; }
.plan-demo .rel-empty-mark { margin: 0 0 14px; }
.plan-demo h2 { font-size: 19px; }
.plan-demo > p { color: var(--ink-muted); line-height: 1.6; }

.plan-demo-card {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-top: 4px;
  opacity: .72;
}
.plan-demo-card strong { display: block; font-size: 15px; }
.plan-demo-card > span:nth-child(2) { flex: 1; min-width: 0; }
.plan-demo-trips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; font-size: 12.5px; color: var(--ink-muted); }
.plan-demo-score { text-align: center; flex-shrink: 0; }
.plan-demo-score b { display: block; font-size: 19px; font-weight: 800; }
.plan-demo-score span { font-size: 11px; color: var(--ink-muted); }
.plan-demo-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Les participants se choisissent par visages : on reconnaît quelqu'un avant
   de lire son nom. */
/* Le `fieldset` est un BLOC : il contient la rangée de pastilles, les
   raccourcis et leur note, qui se suivent verticalement. En `flex`, ces trois
   blocs se mettaient côte à côte, la rangée devenait une colonne étroite, et
   le prénom passait sous l'avatar — d'où des ronds à la place des pastilles. */
.plan-people { display: block; border: 0; padding: 0; margin: 0; }
.plan-people legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.plan-people-row { display: flex; gap: 9px; flex-wrap: wrap; }

/*
 * Toutes les règles de la pastille passent par `.plan-people-row`, et c'est
 * délibéré.
 *
 * `.plan-new label` l'emporterait sinon : une pastille de participant EST un
 * `<label>`, et la règle qui met les libellés de champs en bloc la reprenait —
 * l'avatar passait au-dessus du prénom, et la pastille devenait un rond. La
 * parade était un sélecteur en deux classes sur la règle de BASE seulement.
 *
 * Cette parade en a créé une autre, invisible : la base pesait alors plus
 * lourd que ses propres états. `.plan-person-self` et la pastille cochée
 * n'avaient plus aucun effet — « Vous » perdait son fond sombre, ses initiales
 * blanches devenaient blanches sur blanc, et une personne cochée ne s'allumait
 * pas. Trois défauts d'affichage pour une seule cause.
 *
 * Le même poids pour tout le monde, l'ordre d'écriture décide : c'est la
 * cascade telle qu'on l'attend.
 */
.plan-people-row .plan-person {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 5px 15px 5px 5px;
  cursor: pointer;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.plan-people-row .rel-avatar { width: 30px; height: 30px; font-size: 13px; flex-shrink: 0; }
/* Le prénom ne se replie pas : c'est ce repli qui transformait la pastille en
   rond avec une étiquette dessous. */
.plan-people-row .plan-person > span { white-space: nowrap; }
.plan-people-row .plan-person span { font-weight: 600; color: inherit; }

/* La case native disparaît : c'est la pastille entière qui est le bouton, et
   une case flottant sur un avatar se lisait comme un défaut d'affichage. */
.plan-people-row .plan-person input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.plan-people-row .plan-person-mark {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .24);
  font-size: 11px;
  opacity: 0;
}
.plan-people-row .plan-person:has(input:checked) {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.plan-people-row .plan-person:has(input:checked) .plan-person-mark { opacity: 1; }
.plan-people-row .plan-person:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }

/* « Vous » : présent, jamais retirable — le projet est le vôtre. La teinte
   sombre le distingue d'un choix sans le faire passer pour désactivé. */
.plan-people-row .plan-person-self { background: var(--night); border-color: var(--night); color: #fff; cursor: default; }
.plan-people-row .plan-person-self .rel-avatar { background: rgba(255, 255, 255, .2); }

.plan-people-row .plan-person-add { border-style: dashed; color: var(--ink-muted); }
.plan-people-row .plan-person-add:hover { border-color: var(--primary); color: var(--primary-ink); }
.plan-people-row .plan-person-plus {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--primary-ink);
  font-size: 17px;
  font-weight: 700;
}

.plan-shortcuts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.plan-shortcuts .chip { cursor: pointer; border: 1px solid var(--line); }
.plan-shortcut-note { font-size: 12.5px; color: var(--ink-muted); }

/* État des réponses et trajets, sur la sélection de groupe. */
.plan-who { display: flex; gap: 8px; flex-wrap: wrap; }
.plan-who-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 13px 4px 4px;
  font-size: 13px;
  color: var(--ink-muted);
  background: var(--surface);
}
.plan-who-chip .rel-avatar { width: 28px; height: 28px; font-size: 13px; }
.plan-who-chip.on { color: var(--ink); border-color: var(--success); }

.plan-relance {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--r-lg);
  padding: 13px 16px;
  margin-top: 14px;
}
.plan-relance > div { flex: 1; min-width: 190px; }
.plan-relance strong { display: block; font-size: 14px; }
.plan-relance span { color: var(--ink-muted); font-size: 13px; }

.plan-trips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; color: var(--ink-muted); }
.plan-trips span { background: var(--line); border-radius: 999px; padding: 2px 9px; }

/* La colonne de l'espace personnel : une seule largeur pour compte,
   relations, sorties à plusieurs et sécurité. Elles en avaient quatre
   différentes, sans qu'aucune raison ne les distingue. */
.account-shell { max-width: 680px; }

/* La sortie retenue : le seul bloc sombre de la page. C'est l'aboutissement
   du parcours, il mérite d'être traité comme tel plutôt que comme un bandeau
   de confirmation de plus. */
.plan-decided {
  background: var(--night);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 22px;
  margin-top: 18px;
}
.plan-decided-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.plan-decided-title {
  display: block;
  font-family: var(--font-title, inherit);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-top: 6px;
  text-decoration: none;
}
.plan-decided-title:hover { text-decoration: underline; }
.plan-decided-when { color: #B9BFCB; font-size: 14px; margin-top: 5px; }

.plan-decided-trips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.plan-decided-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8F96A3; }
.plan-decided-trips > span:not(.plan-decided-label) {
  background: rgba(255, 255, 255, .09);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 13px;
}

.plan-decided-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.plan-decided-actions .btn-ghost { border-color: rgba(255, 255, 255, .25); color: #fff; }
.plan-decided-actions .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.plan-decided-effect {
  font-size: 12.5px;
  color: #8F96A3;
  line-height: 1.55;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.plan-decided-undo {
  margin-top: 10px;
  background: none;
  border: 0;
  color: #B9BFCB;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.plan-decided-undo:hover { color: #fff; }

/* La suite du fil : un lien qui fonctionne seul, que le défilement continu
   se contente d'actionner à sa place quand le compte le demande. */
.feed-more { display: flex; justify-content: center; margin: 26px 0 8px; }
.feed-more.is-loading .btn { opacity: .5; pointer-events: none; }

/* La pause du défilement continu.

   Tous les trois chargements, le fil rend la main : un défilement réellement
   infini repousse son bas aussi vite qu'on l'approche, et le pied de page
   devient inatteignable. Le bouton reprend alors du poids — c'est le seul
   chemin vers la suite, il ne doit plus se lire comme un lien de secours. */
.feed-more.is-manual .btn {
  border-color: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
}
.feed-more.is-manual .btn:hover { background: var(--accent-soft); }
.feed-end { text-align: center; color: var(--ink-muted); font-size: 13.5px; margin: 26px 0 8px; }

/* La pastille « + » de l'état vide mène où elle le suggère. Un signe d'action
   qui ne fait rien apprend à ne plus cliquer. */
a.rel-empty-mark { text-decoration: none; transition: background .12s ease, transform .12s ease; }
a.rel-empty-mark:hover { background: var(--primary); color: #fff; transform: scale(1.04); }

/* D'où part-on, et jusqu'où : deux données du projet, plus une déduction
   silencieuse depuis le compte de l'organisateur. */
/* Une colonne : « d'où » et « jusqu'où » sont deux réponses à la même
   question, et les mettre côte à côte serrait le curseur dans une demi-colonne
   où ses bornes passaient à la ligne. */
.plan-where { display: grid; gap: 16px; }

/* Le point de départ, avec sa pastille de lieu et la mention qui dit d'où
   vient la valeur — c'est la commune du compte tant qu'on n'en change pas. */
.plan-origin { position: relative; display: flex; align-items: center; }
.plan-origin > svg {
  position: absolute;
  left: 14px;
  fill: none;
  stroke: var(--ink-muted);
  stroke-width: 1.7;
  pointer-events: none;
  z-index: 1;
}
.plan-origin select, .plan-origin .combo-input { padding-left: 38px; }
/* Le champ à suggestions remplace le <select> par un bloc à lui : sans cette
   ligne, ce bloc est un élément de flex dimensionné sur son contenu, et le
   champ n'occupait qu'une fraction de la ligne — le nom de commune s'y
   trouvait serré entre le pictogramme et la mention de droite. */
.plan-origin .combo { flex: 1; min-width: 0; }
/* Et il ne passe pas sous « votre commune » : une commune au nom long s'y
   glissait dessous, deux textes gris l'un sur l'autre. */
.plan-origin select, .plan-origin .combo-input { padding-right: 116px; }
.plan-origin-note {
  position: absolute;
  right: 14px;
  font-size: 12.5px;
  color: var(--ink-muted);
  pointer-events: none;
}

/* Le curseur sur une seule ligne, la valeur au bout, en orange : c'est elle
   qu'on lit en déplaçant le pouce, pas les bornes. */
.plan-range { flex-wrap: nowrap; }
.plan-range output {
  order: 4;
  color: var(--primary-ink);
  font-family: Nunito, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 800;
}
@media (max-width: 480px) { .plan-range { flex-wrap: wrap; } }
.plan-where label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.plan-where select {
  width: 100%;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 11px 14px;
  background: var(--surface);
}
.plan-cross { margin-top: 4px; }

/* Activation de la double authentification : on scanne, on ne recopie pas.
   Trente-deux caractères saisis à la main sur un téléphone font abandonner
   l'activation — et une activation abandonnée, c'est un compte non protégé. */
.tfa-scan { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin-top: 18px; }
.tfa-qr {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 11px;
  line-height: 0;
  flex-shrink: 0;
}
.tfa-qr svg { width: 148px; height: 148px; display: block; }
.tfa-scan > div:last-child { flex: 1; min-width: 210px; }
.tfa-scan p { color: var(--ink-muted); font-size: 13.5px; margin-top: 3px; }
.tfa-manual { margin-top: 12px; }
.tfa-manual summary { cursor: pointer; font-size: 13.5px; color: var(--primary-ink); font-weight: 600; }
.tfa-manual code {
  display: block;
  margin-top: 10px;
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 11px 13px;
  font-size: 14px;
  letter-spacing: .04em;
  word-break: break-all;
}
.tfa-reset {
  margin-top: 12px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: underline;
  cursor: pointer;
}
.tfa-reset:hover { color: var(--error); }

/* Mes sorties : trois onglets, en ancres.
   « J'y vais » et « déjà fait » ne se lisent pas dans le même mouvement —
   l'un prépare, l'autre se souvient. Les empiler oblige à faire défiler ce
   qu'on ne cherche pas pour atteindre ce qu'on cherche. */
.acct-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.acct-tabs .chip { text-decoration: none; }

/* Sans :target actif, la première pile est visible : une page ouverte sans
   ancre ne doit pas paraître vide. */
/*
 * Les piles du compte, et pourquoi l'ancre ratait sa cible.
 *
 * `display: none` sur les panneaux non visés est ce qui fait fonctionner les
 * onglets sans script — mais au moment où le navigateur calcule où sauter, le
 * panneau visé est encore masqué : il mesure zéro, la page est plus courte
 * qu'elle ne le sera, et l'arrivée tombe à côté. La marge de défilement n'y
 * pouvait rien, elle corrigeait une position déjà fausse.
 *
 * On garde `display: none`, qui est la seule façon d'obtenir des onglets sans
 * script, et l'on corrige le saut APRÈS coup : `anchor-offset.js` refait
 * défiler une fois la règle `:target` appliquée et la page à sa hauteur
 * définitive. Sans script, le panneau s'affiche quand même — on arrive
 * seulement un peu haut, ce qui se lit.
 */
/* La carte des sorties : les onglets en haut, la pile dessous, un seul
   support. Le rang d'onglets flottait sur le fond de page entre deux blocs
   portés. */
.acct-sorties .acct-tabs { margin: 0 0 12px; }
.acct-sorties .acct-pane { padding: 0; }

.acct-pane { display: none; }
.acct-pane:first-of-type { display: block; }
.acct-pane:target { display: block; }
.acct-block:has(.acct-pane:target) .acct-pane:first-of-type { display: none; }
.acct-block:has(.acct-pane:target) .acct-pane:target { display: block; }

.acct-outing-cat {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.acct-outing > span:nth-child(2) { flex: 1; min-width: 0; }
.acct-outing-trip {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: right;
}

/* Déclarer un goût que le moteur n'a pas vu, ou retirer celui qu'il a mal lu. */
.acct-add { align-items: center; }
.acct-add form { display: contents; }
.chip-add { border: 1px dashed var(--line); background: transparent; color: var(--ink-muted); cursor: pointer; }
.chip-add:hover { border-style: solid; border-color: var(--primary); color: var(--primary-ink); background: var(--accent-soft); }
.chip-owned { display: inline-flex; align-items: center; gap: 6px; }
.chip-owned button {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; font-size: 15px; line-height: 1; color: var(--ink-muted);
}
.chip-owned button:hover { color: var(--error); }

/* Le rayon est une grandeur continue qu'on ajuste, pas une liste de six
   valeurs entre lesquelles choisir. */
.acct-range { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.acct-range input[type="range"] { flex: 1; min-width: 160px; accent-color: var(--primary); }
.acct-range span { font-size: 12px; color: var(--ink-muted); flex-shrink: 0; }
.acct-range output { font-weight: 700; font-size: 15px; flex-shrink: 0; min-width: 62px; text-align: right; }

/* ---------- Sécurité ---------- */
/*
   L'état d'abord, les gestes ensuite. La page ne disait ni si la double
   authentification était active, ni combien de codes restaient, ni quelle
   adresse ouvre le compte — c'est-à-dire rien de ce qu'on vient y vérifier.
*/
.sec-step {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 22px 0 10px;
}

.sec-verify { display: flex; gap: 10px; flex-wrap: wrap; }
.sec-verify input {
  flex: 0 0 150px;
  font: inherit;
  font-family: ui-monospace, monospace;
  font-size: 19px;
  letter-spacing: .3em;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 11px 14px;
}

/* Les codes de secours : la seule chose qui rende l'accès quand le téléphone
   est perdu. Ils s'affichent une fois, et l'activation attend qu'on ait dit
   les avoir mis à l'abri. */
.sec-codes-box {
  background: var(--accent-soft);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-top: 12px;
}
.sec-codes-box > p { font-size: 14px; line-height: 1.6; }
.sec-codes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 8px;
  margin: 14px 0;
}
.sec-codes code {
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 9px 11px;
  font-size: 14px;
  letter-spacing: .06em;
  text-align: center;
}
.sec-confirm { margin-top: 16px; }
.sec-confirm .btn { margin-top: 14px; }

.sec-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }


/* Deux actions côte à côte, dont une enveloppée dans un formulaire : sans
   `display: contents`, le formulaire devient l'élément de la rangée et son
   bouton se désaligne du lien voisin. */
.acct-data-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.acct-data-actions form { display: contents; }
.acct-danger { color: var(--error); }
.acct-danger:hover { border-color: var(--error); color: var(--error); background: transparent; }

/* L'accordéon visé depuis le bandeau s'ouvre à l'arrivée. */
.rel-privacy:target { box-shadow: 0 0 0 2px var(--primary); }

/* ---------- Inscription ---------- */
/*
   Deux colonnes : le formulaire, et ce que le compte apporte. Une inscription
   sans contrepartie visible est une inscription abandonnée.
*/
.signup { display: grid; grid-template-columns: 1.35fr 1fr; gap: 34px; max-width: 1000px; margin: 0 auto; padding-bottom: 64px; }
@media (max-width: 820px) { .signup { grid-template-columns: 1fr; } }

.signup-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 22px;
  margin-top: 20px;
}
.signup-card input[type="text"],
.signup-card input[type="email"],
.signup-card select {
  width: 100%;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  background: var(--surface);
}
.signup-hint { color: var(--ink-muted); font-size: 13px; line-height: 1.5; margin-top: 6px; }

/* Le compteur : la pièce maîtresse de l'écran. */
.signup-reach {
  background: var(--accent-soft);
  border-radius: var(--r-md);
  padding: 13px 15px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.55;
}

.signup-digest { margin-top: 18px; }
.signup-submit { width: 100%; margin-top: 20px; }
.signup-nopass { text-align: center; }
.signup-foot { margin-top: 18px; color: var(--ink-muted); font-size: 14px; }
.signup-foot a { color: var(--primary-ink); font-weight: 600; }

.signup-why { padding-top: 62px; }
.signup-why h2 { font-size: 18px; margin-bottom: 14px; }
.signup-benefit { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.signup-benefit-mark {
  width: 34px; height: 34px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--primary-ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.signup-benefit-mark svg { width: 19px; height: 19px; }
.signup-benefit strong { display: block; font-size: 15px; }
.signup-benefit p { color: var(--ink-muted); font-size: 13.5px; line-height: 1.5; margin-top: 2px; }
.signup-model {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 22px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* L'écran de confirmation : trois issues plutôt qu'une impasse. */
.check-mail { text-align: center; padding-top: 30px; }
.check-mail-mark { margin: 0 auto 18px; font-size: 24px; }
.check-mail h1 { font-size: 25px; }
.check-mail > p { color: var(--ink-muted); line-height: 1.6; margin-top: 10px; }
.check-mail form { margin-top: 20px; }
.check-mail .signup-hint { margin-top: 16px; }
.check-mail .signup-hint a { color: var(--primary-ink); font-weight: 600; }

/* ---------- Parcours d'accueil ---------- */
/*
   Quatre écrans, chacun sautable. « Passer » est présent partout et au même
   endroit : un parcours qu'on ne peut pas quitter est un parcours qu'on
   abandonne en fermant l'onglet, ce qui coûte l'inscription entière.
*/
.onboarding { max-width: 620px; text-align: left; }
.onboarding h1 { font-size: 26px; margin-top: 6px; }

.onboarding-progress {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.onboarding-bar {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  margin-top: 8px;
  overflow: hidden;
}
.onboarding-bar i { display: block; height: 100%; background: var(--primary); border-radius: 999px; }

.onboarding-form { margin-top: 22px; }
.onboarding-list { display: grid; gap: 10px; }

.onboarding-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 15px 18px;
  background: var(--surface);
  cursor: pointer;
}
.onboarding-choice input { accent-color: var(--primary); width: 18px; height: 18px; flex-shrink: 0; }
.onboarding-choice strong { display: block; font-size: 15.5px; }
.onboarding-choice span span { color: var(--ink-muted); font-size: 13.5px; }
.onboarding-choice:has(input:checked) { border-color: var(--primary); background: var(--accent-soft); }

.onboarding-ages { border: 0; padding: 0; margin-top: 16px; }
.onboarding-ages legend, .onboarding-family legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.onboarding-family { border: 0; padding: 0; margin-bottom: 18px; }

/* Une pastille qui se coche : la case reste dans le flux pour le clavier, mais
   c'est la pastille entière qui répond au clic. */
.chip-pick { cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.chip-pick input { accent-color: var(--primary); margin: 0; }
.chip-pick:has(input:checked) { background: var(--primary); color: #fff; }

.onboarding-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.onboarding-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 12px;
  background: var(--surface);
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}
.onboarding-tile input { position: absolute; opacity: 0; pointer-events: none; }
.onboarding-tile-mark { color: var(--tile); }
.onboarding-tile .cat-icon { width: 26px; height: 26px; }
.onboarding-tile:has(input:checked) { background: var(--tile); border-color: var(--tile); color: #fff; }
.onboarding-tile:has(input:checked) .onboarding-tile-mark { color: #fff; }
.onboarding-tile:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }

.onboarding-reach {
  background: var(--accent-soft);
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
}

.onboarding-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.onboarding-skip { margin-top: 14px; text-align: center; }
.onboarding-skip button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 14px; color: var(--ink-muted); text-decoration: underline;
}
.onboarding-skip button:hover { color: var(--ink); }

.onboarding-done { text-align: center; }
.onboarding-done .onboarding-progress { text-align: left; }
.onboarding-done .onboarding-actions { justify-content: center; }
.onboarding-mark { margin: 18px auto 16px; }
.onboarding-mark-ok { background: rgba(27, 127, 85, .13); color: var(--success); }
.onboarding-recap { margin-top: 26px; text-align: left; }
.onboarding-recap h2 { font-size: 16px; margin-bottom: 10px; }
.onboarding-foot { margin-top: 20px; }

/* ---------- Pied de page ---------- */
/*
   Deux natures s'y mêlent : des colonnes calculées — communes, envies — qui se
   déduisent de ce qui est publié, et des colonnes éditoriales tenues au
   back-office. Les premières ne se saisissent pas à la main : une liste tenue
   à la main finit fausse dès la première ouverture de territoire.
*/
.site-footer { background: var(--night); color: #B9BFCB; margin-top: 60px; }
.site-footer-in {
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px 24px 34px;
  display: grid;
  /* Cinq colonnes depuis « Par département » (29/09). */
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 30px;
}
@media (max-width: 900px) { .site-footer-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer-in { grid-template-columns: 1fr; gap: 26px; } }

.site-footer-brand p { font-size: 14px; line-height: 1.6; margin-top: 14px; }
/* Plus de filtre sur le logo du pied : `brightness(0) invert(1)` blanchissait
   tout, orange compris. C'est la variante dessinée pour fond sombre qui y est
   servie. */
.site-footer-inline { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; }
.site-footer-inline a { color: #fff; font-size: 14px; text-decoration: none; }
.site-footer-inline a:hover { text-decoration: underline; }

.site-footer-col { display: flex; flex-direction: column; gap: 11px; }
.site-footer-col h2 {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8F96A3;
  margin-bottom: 3px;
}
.site-footer-col a { color: #fff; font-size: 14.5px; text-decoration: none; }
.site-footer-col a:hover { color: var(--accent); }

.site-footer-legal {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
}
.site-footer-legal a { color: #B9BFCB; text-decoration: none; }
.site-footer-legal a:hover { color: #fff; }
.site-footer-legal span { color: #6F7686; }
/* Deux lignes, alignées à gauche — et non plus la propriété à gauche, les
   liens poussés à droite.

   Cette disposition tenait tant que les liens tenaient sur la même ligne. Ils
   sont passés à huit, plus les préférences de suivi : à eux seuls ils occupent
   environ 1 050 points pour 1 052 disponibles dans le conteneur. La ligne
   cassait donc systématiquement, et la poussée à droite laissait la mention de
   propriété seule en haut à gauche face à un bloc dense — deux masses qui ne
   s'équilibraient plus.

   Alignés au même bord, ils se lisent comme ce qu'ils sont : une signature,
   puis un sommaire. Et la disposition ne dépend plus du nombre de liens. */
.site-footer-legal nav {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
}

/* L'attribution n'est pas une mention de courtoisie : les licences ODbL et
   ouverte l'exigent. */
.site-footer-sources {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 16px 24px 26px;
  max-width: 1100px;
  margin: 0 auto;
  font-size: 12.5px;
  color: #6F7686;
  line-height: 1.6;
}
.site-footer-sources a { color: #8F96A3; }

/* ---------- Page éditoriale ---------- */
.page { max-width: 680px; }
.page-body { margin-top: 22px; line-height: 1.7; overflow-x: auto; }
.page-body h2 { font-size: 20px; margin: 28px 0 10px; }
.page-body h3 { font-size: 17px; margin: 22px 0 8px; }
.page-body p { margin-bottom: 14px; }
/* Les puces reviennent : la remise à zéro du haut de feuille retire les
   marqueurs de TOUTES les listes — juste pour les rangs de pastilles et les
   menus, qui n'en veulent pas. Dans une page rédigée, une liste sans puce
   devient une suite de paragraphes indentés, et l'on ne voit plus qu'on
   énumère. */
.page-body ul, .page-body ol { margin: 0 0 14px 22px; }
.page-body ul { list-style: disc; }
.page-body ol { list-style: decimal; }
.page-body li { padding-left: 2px; }
.page-body li { margin-bottom: 6px; }
.page-body a { color: var(--primary-ink); }
.page-body strong { font-weight: 600; color: var(--ink); }

/* Un tableau dans une page rédigée : la politique de confidentialité en a un —
   « ce que nous faisons » face à « pourquoi c'est permis » — et c'est la forme
   juste pour cette question-là. Il défile dans sa propre boîte : sur un
   téléphone, un tableau à deux colonnes de texte déborde, et c'est la page
   entière qui se met à glisser. */
.page-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 18px;
  font-size: 14.5px;
}
.page-body thead th {
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--line);
  padding: 8px 12px 8px 0;
}
.page-body td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px 10px 0;
  vertical-align: top;
}
.page-body td:last-child { color: var(--ink-muted); }
/* Du code dans une page rédigée : la page API en montre — un en-tête HTTP, les
   deux lignes du widget. C'est du texte à recopier exactement, et il doit se
   distinguer de la prose qui l'entoure sans devenir un encadré de plus.

   Le bloc défile pour lui-même : sur un téléphone, une ligne de code ne se
   replie pas, et sans cette boîte c'est la page entière qui glisse. */
.page-body pre {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin: 4px 0 18px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.6;
}

.page-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
}

/* Le code au fil du texte — un nom de paramètre, un slug — se marque par un
   fond léger ; dans un bloc, le fond est déjà là et le redoubler ferait une
   tache dans une tache. */
.page-body :not(pre) > code {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 1px 5px;
}

.page-body pre code { background: none; border: 0; padding: 0; }

/* Une colonne de tableau qui ne porte que des mots-clés : elle ne s'atténue
   pas comme un commentaire, on la lit pour la recopier. */
.page-body td:last-child code { color: var(--ink); }

.page-updated { margin-top: 28px; color: var(--ink-muted); font-size: 13px; }

/* Un état vide garde la carte : sans elle, il se lit comme un morceau de page
   manquant plutôt que comme un état. */
.acct-empty strong { display: block; font-size: 15px; }

/* Entrée dans le compte, pour un visiteur : même rond que la pastille de
   compte en face.
   « S'inscrire » plutôt que « Se connecter » — pour quelqu'un qui arrive du
   référencement, c'est l'action utile, il n'a pas de compte à ouvrir. Et un
   pictogramme plutôt qu'un libellé : sur un écran de 360 px, le libellé
   renvoyait la pastille de lieu à la ligne suivante. */
.loc-signup { text-decoration: none; }
.loc-signup svg { width: 19px; height: 19px; stroke: currentColor; fill: none; }

/* Les pastilles d'un questionnaire se replient : alignées sur une seule ligne,
   les dernières sortent de l'écran et paraissent ne pas exister. */
.onboarding-family .chips,
.onboarding-ages .chips { flex-wrap: wrap; overflow: visible; padding-left: 0; margin-left: 0; }

/* Le curseur de rayon sur écran étroit : les bornes cèdent, la valeur reste.
   Repliées, elles passaient à la ligne et faisaient croire à un champ de
   plus. */
@media (max-width: 560px) {
  .acct-range { flex-wrap: nowrap; }
  .acct-range span { display: none; }
  .acct-range output { min-width: 70px; }
}

/* Le curseur du panneau de lieu : même réglage que sur le compte, donc même
   forme. Deux commandes différentes pour une même grandeur la feraient lire
   comme deux réglages. */
.picker-range { margin-bottom: 4px; }
.picker-range output { min-width: 62px; font-weight: 700; }

/* ---------- Carte ---------- */

/*
 * Le cadre d'OpenStreetMap. Un rapport de trois pour deux : plus haut, il
 * pousse hors de l'écran ce qui suit ; plus plat, on ne voit plus le quartier
 * autour du point, qui est tout ce qu'on vient y chercher.
 */
.map { margin: 20px 0; position: relative; }
.map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 380px;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--line);
}
.map figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-muted);
}
.map figcaption a { color: var(--primary-ink); font-weight: 600; text-decoration: none; }
.map figcaption a:hover { text-decoration: underline; }
/* La mention de licence passe en dernier et cède la ligne en premier. */
.map-credit { margin-left: auto; }
.map-approx { flex-basis: 100%; }

@media (max-width: 520px) {
  .map iframe { aspect-ratio: 4 / 3; }
  .map-credit { margin-left: 0; }
}

/* ---------- L'aperçu ---------- */

/*
 * Le raccourci sur la carte. Discret : il accompagne les badges, il ne les
 * concurrence pas — la carte entière mène déjà à la fiche, l'aperçu n'est
 * qu'un chemin plus court, pas l'action principale.
 */
.card-peek {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 3px 9px;
  border-radius: var(--radius-full, 999px);
  border: 1px dashed var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
}
.card-peek svg { fill: none; stroke: currentColor; stroke-width: 1.7; }
.card-peek:hover { border-style: solid; border-color: var(--primary); color: var(--primary-ink); background: var(--accent-soft); }
.card-peek:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/*
 * La couche. Elle s'arrête à 92 % de la hauteur : une modale qui touche les
 * deux bords ne se distingue plus d'une page, et l'on ne sait plus si l'on est
 * parti ou resté.
 */
.preview-layer {
  width: min(560px, calc(100vw - 32px));
  max-height: 92svh;
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-2);
  /* La couche ne défile plus elle-même : c'est le contenu qui glisse sous un
     pied fixe. Sans `hidden`, la barre de défilement du navigateur venait se
     poser par-dessus les coins arrondis et le bouton de fermeture. */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* Le plan supérieur d'un <dialog> modal passe déjà au-dessus de tout ; ce
   `z-index` est le filet du cas où il n'y serait pas — un navigateur ancien,
   une ouverture qui a échoué — pour que la couche ne se retrouve jamais SOUS
   l'en-tête, où elle paraît bloquée. */
/*
 * La petite carte d'une fiche.
 *
 * `touch-action: pan-y` est tout le mécanisme des « deux doigts » : le
 * navigateur garde le défilement vertical à un doigt, et rend le pincement et
 * le déplacement à la carte. Sans lui, un pincement zoome la page entière —
 * c'est ce qui se passait avec le cadre d'OpenStreetMap, qu'aucun voile ne
 * pouvait corriger.
 */
.map-mini {
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 380px;
  border-radius: var(--r-lg);
  background: var(--line);
  touch-action: pan-y;
  z-index: 0;
}

.map-mini-note {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: var(--r-full);
  background: rgba(23, 26, 36, .82);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 500;
}
.map-mini.is-hinted .map-mini-note { opacity: 1; }

.preview-layer { z-index: 60; }
.preview-layer::backdrop { background: rgba(26, 22, 20, .55); }

.preview-close {
  /* Posé sur la couche, plus dans le flux : en `sticky` avec une marge
     négative, il glissait avec le contenu et se retrouvait au-dessus de la
     barre de défilement. */
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.preview-close:hover { background: var(--accent-soft); }

.preview-loading { padding: 40px 20px; text-align: center; color: var(--ink-muted); }

.preview-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.preview-band {
  padding: 7px 20px;
  background: var(--cat);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/*
 * Le contenu défile, le pied ne bouge pas.
 *
 * `min-height: 0` sur les deux : sans lui, un élément flexible refuse de
 * descendre sous la taille de son contenu, la couche grandit au-delà de
 * l'écran et c'est la page entière qui se met à défiler — exactement ce qu'on
 * voulait éviter.
 */
/* Le conteneur que le script insère compte autant que les deux autres : sans
   `min-height: 0` sur CHAQUE maillon, la chaîne se rompt à celui qui manque,
   l'article reprend sa hauteur naturelle, et la couche coupe son contenu sans
   qu'aucune barre n'apparaisse. C'est ce qui s'est passé. */
.preview-slot { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.preview { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }

.preview-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.preview-foot {
  flex: 0 0 auto;
  display: grid;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.preview-body { padding: 18px 20px 20px; display: grid; gap: 12px; }
.preview-title { font-size: 21px; line-height: 1.25; }
.preview-meta { font-size: 14px; color: var(--ink-muted); line-height: 1.6; }
.preview-meta strong { color: var(--ink); font-weight: 600; }
.preview-more { color: var(--ink-muted); }
.preview-lede { font-size: 15px; line-height: 1.6; }
.preview-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.preview-open { justify-self: start; }
/* Dans le pied, les deux boutons partagent la largeur : « voir la fiche »
   d'abord, parce que c'est la suite la plus probable du regard. */
.preview-foot .preview-actions .preview-open { flex: 1 1 auto; text-align: center; }

@media (max-width: 520px) {
  /* Sur un téléphone, la couche part du bas : c'est le geste du pouce, et
     elle laisse voir le fil au-dessus, ce qui dit qu'on n'a pas quitté. */
  .preview-layer {
    width: 100%;
    max-width: none;
    margin: auto 0 0;
    max-height: 88svh;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .preview-open { justify-self: stretch; text-align: center; }
}

/*
 * La date précise, dans le rang des raccourcis.
 *
 * Un champ natif : le sélecteur du système connaît la langue, les jours
 * fériés du calendrier local et le geste du pouce mieux qu'un calendrier
 * réécrit, et il ne coûte pas une ligne de script.
 */
.chip-date { display: inline-flex; align-items: center; gap: 6px; padding-right: 4px; }
.chip-date input[type="date"] {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  padding: 0;
  min-width: 108px;
}
.chip-date input[type="date"]:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.chip-date button {
  border: 0;
  background: var(--line);
  color: var(--ink);
  border-radius: var(--radius-full, 999px);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  cursor: pointer;
}
.chip-date button:hover { background: var(--primary); color: #fff; }
.chip-date.on button { background: rgba(255, 255, 255, .25); color: #fff; }

/* Intertitre de forme sur une page de catégorie. Discret : il sépare, il ne
   concurrence pas le titre de la page. */
.landing-forme {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 28px 0 12px;
}
.landing-forme:first-of-type { margin-top: 8px; }

/* « Dans le même esprit » : la colonne de la fiche est étroite, la grille des
   cartes ne l'est pas — la section reprend la largeur du fil. */
.similar { max-width: 1100px; margin: 40px auto 0; padding-bottom: 56px; }
.similar > h2 { font-size: 20px; margin-bottom: 14px; }

/* La confirmation d'un réglage enregistré sans rechargement. Elle s'efface
   seule : un message qui reste devient un élément d'interface, et l'on finit
   par ne plus le voir. */
.live-note {
  display: inline-block;
  margin-left: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
  opacity: 0;
  transition: opacity .18s ease;
}
.live-note.is-shown { opacity: 1; }

/* ---------- Mon agenda ---------- */

.cal-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 22px 0 14px;
  font-size: 17px;
}
.cal-head strong { min-width: 190px; text-align: center; text-transform: capitalize; }
.cal-nav {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
}
.cal-nav:hover { border-color: var(--primary); color: var(--primary-ink); }

.cal { background: var(--surface); border-radius: var(--r-lg); padding: 12px; }
.cal-row, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-days {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-bottom: 6px;
  text-align: center;
}

.cal-cell {
  min-height: 84px;
  border-radius: var(--r-sm, 8px);
  background: var(--bg);
  padding: 5px 5px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}
/* Les jours des mois voisins restent lisibles mais s'effacent : les masquer
   ferait un calendrier troué, les afficher pleins ferait croire au mois. */
.cal-cell.is-out { opacity: .38; }
.cal-cell.is-today { outline: 2px solid var(--primary); outline-offset: -2px; }
.cal-num { font-size: 12px; font-weight: 700; color: var(--ink-muted); }
.cal-cell.is-today .cal-num { color: var(--primary-ink); }

/* Le titre est coupé, jamais replié : une case qui grandit avec son contenu
   donne des semaines de hauteurs différentes, et le mois cesse de se lire
   d'un coup d'œil. */
.cal-item {
  display: block;
  font-size: 11.5px;
  line-height: 1.3;
  padding: 2px 5px;
  border-radius: 5px;
  border-left: 3px solid var(--cat);
  background: var(--accent-soft);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-item:hover { background: var(--cat); color: #fff; }

.cal-day { margin-top: 18px; }
.cal-day h3 {
  font-size: 14px;
  text-transform: capitalize;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

@media (max-width: 620px) {
  /* Sept colonnes dans trois cents pixels donnent des cases de quarante : le
     titre n'y tient pas. On garde la grille comme repère — les jours occupés
     se voient — et le détail dessous porte le texte. */
  .cal-cell { min-height: 46px; }
  .cal-item { font-size: 0; padding: 0; height: 5px; border-left: 0; background: var(--cat); }
}

/* La photo et son champ, côte à côte : la vignette dit tout de suite ce que
   le réglage produit. */
.acct-photo { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 6px; }
.acct-photo > div { flex: 1; min-width: 0; }
.acct-photo input[type="file"] { font-size: 13px; max-width: 100%; }

/* La couche de confirmation. Étroite : elle pose une question, elle ne
   présente pas un écran. */
.confirm-layer {
  width: min(420px, calc(100vw - 32px));
  padding: 22px 24px 20px;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-2);
}
.confirm-layer::backdrop { background: rgba(26, 22, 20, .55); }
.confirm-layer h2 { font-size: 18px; line-height: 1.3; }
.confirm-layer p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--ink-muted); }
/* « Annuler » à gauche, l'action à droite : le pouce arrive en dernier sur ce
   qui engage, jamais sur ce qui défait par inadvertance. */
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.rel-badge-note { font-size: 12px; color: var(--ink-muted); }

/* Le contexte d'arrivée sur les pages d'entrée : une note, pas une alerte —
   rien ne s'est mal passé, on explique d'où l'on vient. */
.auth-note {
  background: var(--accent-soft);
  border-left: 3px solid var(--primary);
  border-radius: var(--r-sm, 8px);
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.55;
}

/* La vignette de photo est le bouton. Le pictogramme n'apparaît qu'au survol
   et à la mise au point : affiché en permanence, il salit une photo qu'on
   vient de choisir. */
.acct-photo-drop {
  position: relative;
  display: inline-block;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
}
.acct-photo-drop .rel-avatar { width: 56px; height: 56px; font-size: 19px; }
.acct-photo-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(26, 22, 20, .55);
  color: #fff;
  opacity: 0;
  transition: opacity .15s ease;
}
.acct-photo-mark svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.acct-photo-drop:hover .acct-photo-mark,
.acct-photo-drop:focus-within .acct-photo-mark { opacity: 1; }
.acct-photo-drop:focus-within { outline: 2px solid var(--primary); outline-offset: 3px; }
.acct-photo-name { display: block; font-weight: 600; color: var(--ink); }

/* La pastille de la page compte mène au réglage de la photo. */
.acct-avatar-link { position: relative; display: inline-block; border-radius: 50%; flex-shrink: 0; }
.acct-avatar-link .rel-avatar { width: 58px; height: 58px; font-size: 20px; }
.acct-avatar-link:hover .acct-photo-mark,
.acct-avatar-link:focus-visible .acct-photo-mark { opacity: 1; }
.acct-avatar-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/*
 * Une ancre ne doit pas s'arrêter sous l'en-tête collant.
 *
 * Le navigateur amène la cible en haut de la fenêtre, sans savoir qu'une barre
 * y flotte : on cliquait « À venir » et les trois premières lignes passaient
 * dessous. `scroll-margin-top` lui donne la hauteur à laisser.
 */
/*
 * Toute cible d'ancre, pas seulement celles du compte.
 *
 * Le navigateur amène la cible en haut de la fenêtre sans savoir qu'une barre y
 * flotte : le titre visé passait dessous, quel que soit l'écran. La règle vaut
 * donc partout où l'on peut atterrir — un identifiant sur un élément est
 * précisément ce qui en fait une destination.
 *
 * Cent pixels : la hauteur de l'en-tête avec son rang de catégories, plus une
 * respiration. Un peu trop vaut mieux qu'un peu trop peu — arriver légèrement
 * au-dessus se lit, arriver dessous se cherche.
 */
/*
 * `[data-anchor-scroll]` en faisait partie depuis le début — sauf ici.
 *
 * Le script amène la SECTION plutôt que la cible ; mais la marge de défilement
 * ne visait que `:target` et les deux classes d'ancre, donc la section arrivait
 * sans elle, collée sous l'en-tête. Corriger le script sans corriger le
 * sélecteur revenait à déplacer le défaut d'un cran.
 */
:target,
[data-anchor-scroll],
.acct-anchor,
.anchor { scroll-margin-top: var(--anchor-offset, 170px); }

/* Un point d'arrivée invisible : il ne sert qu'à recevoir le défilement. */
.anchor { display: block; height: 0; }

/* Partager : un geste secondaire, à côté des réactions et non au-dessus. */
.detail-share { margin-top: 18px; }
.detail-share .btn { display: inline-flex; align-items: center; gap: 8px; }
.detail-share svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.preview-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 520px) { .preview-actions .btn { flex: 1; text-align: center; } }

/* ---------- La vue carte ---------- */

/* La bascule liste / carte : deux liens, pas un bouton — la carte a une
   adresse, elle se partage et se met en favori. */
/* La bascule vit dans le rang de réglages, pas au-dessus : isolée sur sa
   propre ligne, elle créait deux respirations là où il en fallait une, et le
   contenu descendait d'autant. */
.view-switch { display: inline-flex; align-items: center; margin-right: 6px; }
.view-switch .seg {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.view-switch a {
  padding: 5px 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
}
.view-switch a.on { background: var(--primary); color: #fff; }
.view-switch a:not(.on):hover { color: var(--ink); }

.map-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
  margin: 16px 0 48px;
}
#map-canvas {
  height: calc(100vh - 260px);
  min-height: 460px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  z-index: 1;
}

.map-side {
  max-height: calc(100vh - 260px);
  overflow: auto;
  display: grid;
  gap: 8px;
  align-content: start;
}
.map-side-head { font-size: 13px; color: var(--ink-muted); }
.map-side-empty { font-size: 14px; color: var(--ink-muted); padding: 14px 2px; }

.map-item {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--c, var(--primary));
  border-radius: var(--r-md, 14px);
  padding: 9px 12px;
  text-decoration: none;
  color: inherit;
}
.map-item:hover { border-color: var(--primary); box-shadow: var(--shadow-1); }
.map-item-cat {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--c, var(--primary));
}
.map-item strong { display: block; font-family: Nunito, sans-serif; font-size: 14.5px; line-height: 1.25; margin: 2px 0 3px; }
.map-item > span { font-size: 12.5px; color: var(--ink-muted); }

/* L'épingle porte la couleur de sa catégorie, la même que dans le fil : une
   carte qui invente sa légende oblige à l'apprendre. */
.map-pin i {
  display: block;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}
.map-pin:hover i { transform: scale(1.25); }
.map-pin i { transition: transform .12s ease; }
/*
 * La grappe et son compte.
 *
 * Les dimensions sont posées ICI et non laissées à `iconSize` : Leaflet écrit
 * une largeur et une hauteur en style en ligne, mais la bordure de trois
 * pixels s'y ajoute — la boîte fait alors quarante-huit pixels pour un
 * contenu centré sur quarante-deux, et le chiffre part vers le haut à gauche.
 * `box-sizing` et un centrage explicite règlent les deux.
 */
/* « Me localiser » : posé parmi les commandes de Leaflet, il doit leur
   ressembler — une commande orpheline se lit comme un défaut d'affichage. */
.map-locate {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(0, 0, 0, .2);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-locate:hover { background: var(--accent-soft); }
.map-locate.is-busy { opacity: .55; cursor: progress; }

.map-cluster {
  box-sizing: border-box;
  width: 42px !important;
  height: 42px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(210, 68, 24, .92);
  border: 3px solid rgba(255, 255, 255, .85);
  color: #fff;
  font-family: Nunito, sans-serif;
  font-weight: 800;
  font-size: 14px;
  /* Sans quoi l'interligne du corps de page décale le chiffre vers le bas. */
  line-height: 1;
  box-shadow: 0 3px 9px rgba(0, 0, 0, .25);
}
.map-cluster span { display: block; }
.map-cluster.is-big { font-size: 13px; }

.map-pop { display: block; color: inherit; min-width: 180px; }
.map-pop a { color: inherit; text-decoration: none; }
.map-pop a:hover strong { text-decoration: underline; }
.map-pop-open {
  display: inline-block !important;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary-ink) !important;
}
.map-pop-cat { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.map-pop strong { display: block; font-family: Nunito, sans-serif; font-size: 15px; line-height: 1.25; margin: 2px 0 4px; }
.map-pop span { display: block; font-size: 12.5px; color: var(--ink-muted); }

@media (max-width: 900px) {
  /* Sur téléphone la liste passe sous la carte : deux colonnes de 170 px ne
     montrent ni l'une ni l'autre. */
  .map-screen { grid-template-columns: 1fr; }
  #map-canvas { height: 58vh; min-height: 0; }
  .map-side { max-height: none; overflow: visible; }
}

/* Le recadrage. La fenêtre est ronde parce que la vignette l'est : un carré
   ferait choisir un cadrage qui ne correspond pas à ce qu'on verra. */
.acct-crop { margin: 12px 0 4px; }
.acct-crop-stage {
  position: relative;
  max-width: 280px;
  border-radius: var(--r-md, 14px);
  overflow: hidden;
  background: var(--line);
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.acct-crop-stage img { display: block; width: 100%; }
.acct-crop-window {
  position: absolute;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 9999px rgba(26, 22, 20, .48);
  pointer-events: none;
}
.acct-crop input[type="range"] { width: 100%; max-width: 280px; }

/* ---------- Le bandeau de recherche ---------- */

/*
 * Trois lignes, dans l'ordre des questions : quand, quoi, et ce qui est déjà
 * coché. Le rang unique de treize pastilles qu'il remplace mêlait « Gratuit »,
 * « En plein air » et « Entre amis » sans rien annoncer.
 */
.searchbar {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 20px 22px;
  margin-bottom: 26px;
}
.searchbar-head { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.searchbar-head > div { flex: 1; min-width: 220px; }
.searchbar-head h1 { font-size: 26px; }
.searchbar-head p { color: var(--ink-muted); font-size: 14px; margin-top: 4px; }
.searchbar-head strong { color: var(--ink); }

.searchbar-when {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.searchbar-sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }

/* La pastille de filtre : le même objet partout — rang de dates, panneau,
   groupes. Trois dessins pour une même action apprendraient trois gestes. */
.fchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  list-style: none;
}
.fchip::-webkit-details-marker { display: none; }
.fchip svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.fchip:hover { border-color: var(--primary); color: var(--primary-ink); }
.fchip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.fchip.on:hover { background: var(--primary-hover); color: #fff; }
.fchip-caret { font-size: 10px; opacity: .7; }

/* Ce qui est coché, en sombre : la ligne se distingue au premier coup d'œil
   des réglages disponibles, qui sont clairs. */
.searchbar-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.fchip-active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--night, #171A24);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.fchip-active span { opacity: .6; font-size: 15px; line-height: 1; }
.fchip-active:hover span { opacity: 1; }
.searchbar-clear { font-size: 13px; font-weight: 600; color: var(--primary-ink); text-decoration: underline; }

/* ---------- Les panneaux ---------- */

/* Un `<details>` et non une couche en JavaScript : il s'ouvre au clavier et
   sans script, comme le sélecteur de commune et le menu du compte. */
/*
 * Une vraie modale, et non un panneau posé sous son bouton.
 *
 * Le panneau vivait dans le rang de réglages, qui défile horizontalement sur
 * les écrans étroits : un conteneur qui défile ROGNE ce qui en sort, et le
 * panneau se retrouvait coupé au tiers, illisible. Le sortir du flux règle le
 * problème à toutes les tailles au lieu de le déplacer.
 */
.fpanel { position: static; }
/*
 * Le bouton passe SOUS le fond, et c'est le contraire de ce que j'avais fait.
 *
 * Le remonter au-dessus le gardait cliquable — mais il flottait alors sur le
 * voile sombre, à côté d'une modale ouverte : deux plans concurrents pour un
 * seul écran, et l'on ne savait plus lequel était actif. Fermer se fait par la
 * croix, par le fond, ou par Échap : trois chemins suffisent.
 */

/* Le fond : il assombrit la page et se clique pour fermer. Le `<summary>`
   au-dessus reste actionnable, ce qui donne la seconde façon de fermer. */
.fpanel[open]::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(26, 22, 20, .5);
}
.fpanel-body {
  position: fixed;
  z-index: 60;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(460px, calc(100vw - 32px));
  max-height: min(82vh, 640px);
  /*
   * Trois parties : l'en-tête et le pied restent, le milieu défile.
   *
   * Tout faire défiler d'un bloc emportait le titre — on ne savait plus dans
   * quel panneau on était — et le bouton de confirmation, qui dit combien de
   * sorties on vient de retenir. `overflow: hidden` sur le cadre clôt au
   * passage les angles arrondis, que le fond de l'en-tête débordait.
   */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: 20px 22px 18px;
  /* La barre de défilement du système est large et grise : dans une modale
     claire aux angles arrondis, elle se lit comme un défaut d'affichage. */
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.fpanel-body::-webkit-scrollbar { width: 8px; }
.fpanel-body::-webkit-scrollbar-track { background: transparent; }
.fpanel-body::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
  border: 2px solid var(--surface);
}
.fpanel-body::-webkit-scrollbar-thumb:hover { background: var(--ink-muted); }

/* L'en-tête du panneau reste visible : dans une liste de sept groupes, savoir
   ce qu'on règle et pouvoir fermer ne doit pas demander de remonter. */
/*
 * L'en-tête du panneau reste visible en défilant. Les marges négatives le
 * font aller d'un bord à l'autre — sinon le contenu passe dans la gouttière
 * derrière lui — et le rembourrage latéral les rattrape, faute de quoi le
 * fond blanc dépasse des angles arrondis du panneau.
 */
.fpanel-head { flex: 0 0 auto; padding-bottom: 12px; }

/* Le seul morceau qui défile. Les gouttières négatives lui rendent la largeur
   du panneau, pour que la barre de défilement colle au bord. */
.fpanel-scroll {
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  margin-inline: -22px;
  padding-inline: 22px;
}

/*
 * La barre de défilement des couches — panneaux et aperçu.
 *
 * Fine et aux couleurs de la page : celle du système, large et grise,
 * traverse la carte de haut en bas et se voit avant le contenu. Le dessin est
 * écrit ici pour les deux zones : il l'était en double, et la seconde copie
 * avait déjà pris du retard sur la première.
 */
.fpanel-scroll, .preview-scroll {
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.fpanel-scroll::-webkit-scrollbar,
.preview-scroll::-webkit-scrollbar { width: 8px; }
.fpanel-scroll::-webkit-scrollbar-track,
.preview-scroll::-webkit-scrollbar-track { background: transparent; }
.fpanel-scroll::-webkit-scrollbar-thumb,
.preview-scroll::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: var(--r-full);
  border: 2px solid var(--surface);
}
.fpanel-scroll::-webkit-scrollbar-thumb:hover,
.preview-scroll::-webkit-scrollbar-thumb:hover { background: var(--ink-muted); }
.fpanel-foot { flex: 0 0 auto; }
.fpanel-body-date { width: min(340px, calc(100vw - 32px)); }

.cal-nav-mini {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
}
a.cal-nav-mini:hover { background: var(--accent-soft); color: var(--primary-ink); }
.cal-nav-mini.is-off { opacity: .25; }
.cal-month { display: flex; align-items: center; justify-content: space-between; }
.fpanel-head { display: flex; align-items: center; justify-content: space-between; }
.fpanel-head strong { font-family: Nunito, sans-serif; font-size: 17px; }
.fpanel-close { font-size: 22px; line-height: 1; color: var(--ink-muted); text-decoration: none; }

.fgroup + .fgroup { margin-top: 16px; }
.fgroup-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.fgroup-note { font-size: 12.5px; color: var(--ink-muted); margin-bottom: 8px; line-height: 1.45; }
.fgroup-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.fgroup-chips .fchip { padding: 6px 13px; font-size: 13.5px; }

.fpanel-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* Le calendrier du panneau de date. */
.cal-month { text-align: center; font-weight: 700; text-transform: capitalize; margin-bottom: 10px; }
.cal-mini { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-mini-head { text-align: center; font-size: 11px; font-weight: 700; color: var(--ink-muted); padding-bottom: 4px; }
/* Le même dessin, que le jour soit un lien — dans le fil — ou un bouton —
   dans un formulaire. Sans la remise à zéro, le bouton arrivait avec le cadre
   et le fond gris du système, et le calendrier du formulaire ne ressemblait
   plus à celui des filtres. */
.cal-mini-day {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 0;
  background: none;
  padding: 0;
  font-family: inherit;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
button.cal-mini-day { cursor: pointer; }
a.cal-mini-day:hover,
button.cal-mini-day:hover { background: var(--accent-soft); }
.cal-mini-day.on { background: var(--primary); color: #fff; }
/* Un jour déjà retenu s'assombrit au survol au lieu de pâlir : la règle
   générale le repeignait en clair, si bien qu'il paraissait se désélectionner
   sous le curseur — l'inverse de ce qu'un survol annonce. */
a.cal-mini-day.on:hover,
button.cal-mini-day.on:hover { background: var(--primary-hover); color: #fff; }
.cal-mini-day.is-off { color: var(--ink-muted); opacity: .35; }
.cal-exact { display: flex; gap: 8px; margin-top: 14px; }
.cal-exact input { flex: 1; min-width: 0; }

@media (max-width: 720px) {
  .searchbar { padding: 16px; border-radius: var(--r-md, 14px); }
  .searchbar-head h1 { font-size: 22px; }
  /* Le rang défile plutôt que de se replier : trois lignes de pastilles
     repoussent le fil sous l'écran. */
  .searchbar-when { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .searchbar-when::-webkit-scrollbar { display: none; }
  /* Sur téléphone la modale part du bas : c'est le geste du pouce, et elle
     laisse voir la page au-dessus, ce qui dit qu'on n'a pas quitté. */
  .fpanel-body {
    left: 0; right: 0; bottom: 0; top: auto;
    transform: none;
    width: auto;
    max-height: 82vh;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
}

/*
 * Le rang de réglages colle sous l'en-tête.
 *
 * C'est le bloc qu'on revient chercher — changer de date, ouvrir les filtres,
 * basculer sur la carte —, et remonter la page pour l'atteindre est un coût
 * payé à chaque fois, qui augmente avec la longueur du fil.
 *
 * `--anchor-offset` est mesuré au chargement par `anchor-offset.js` : la
 * hauteur de l'en-tête varie selon la page et la largeur, et une valeur écrite
 * en dur laisserait le rang passer dessous ou flotter en dessous.
 */
/*
 * Le rang N'EST PLUS COLLANT, et j'y renonce délibérément.
 *
 * Un élément collant ne tient que dans la boîte de son parent : celui-ci est
 * la carte de recherche, qui s'en va au premier défilement — le rang partait
 * avec elle. Le forcer demandait de le sortir de la carte, et son `z-index`
 * enfermait au passage les modales dans un plan situé sous l'en-tête. Trois
 * défauts pour un confort.
 *
 * Une barre condensée au défilement reste souhaitable, mais c'est un autre
 * objet : un bandeau rendu à part, hors de la carte, qui n'a pas à partager
 * son plan ni sa boîte. À construire, pas à bricoler ici.
 */
.searchbar-when {
  padding-top: 4px;
}
.searchbar-head .view-switch { margin-right: 0; }

/*
 * Un rang collant qui porte un `z-index` crée un CONTEXTE D'EMPILEMENT : tout
 * ce qu'il contient est enfermé dans son plan, et la modale — pourtant à 60 —
 * se retrouvait sous l'en-tête, qui est à 40. Le `z-index` d'un enfant ne le
 * fait pas sortir de la boîte de son parent.
 *
 * On remonte donc le RANG ENTIER quand un panneau y est ouvert, et lui seul le
 * temps de l'ouverture : le laisser au-dessus en permanence le ferait passer
 * devant l'en-tête au défilement, ce qu'on venait d'éviter.
 */


/* Le retour en haut. Il n'apparaît qu'une fois qu'on a assez descendu pour
   que remonter coûte : affiché en permanence, il occupe un coin pour rien. */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--night, #171A24);
  color: #fff;
  border: 0;
  font-size: 19px;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.to-top.is-shown { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--primary); }

@media (max-width: 720px) {
  .searchbar-when { margin-inline: -16px; padding-inline: 16px; }
  .to-top { right: 14px; bottom: 14px; }
}

/* Les jours qui deviennent une fin de période : ils se distinguent sans crier,
   parce que ce n'est pas encore une sélection. */
.cal-mini-day.is-after:hover { background: var(--accent-soft); outline: 1px dashed var(--primary); }

/* La borne de départ, tant que la période n'est pas fermée : un cerne plutôt
   qu'un aplat, pour dire « en cours » et non « retenu ». */
.cal-mini-day.is-start { box-shadow: inset 0 0 0 2px var(--primary); }
/* Un bouton qui n'a rien à appliquer le montre au lieu d'échouer en silence. */
.btn.is-off { opacity: .45; pointer-events: none; }

/* La description d'une catégorie, sous son titre. */
.searchbar-desc { font-size: 14.5px; line-height: 1.55; color: var(--ink-muted); margin-top: 6px; }

/* ---------- Consentement ---------- */

/* Un bandeau bas plutôt qu'une couche modale : il informe, il ne prend pas la
   page en otage — et « tout refuser » a le même poids que « tout accepter ». */
.consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  background: var(--night, #171A24);
  color: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .25);
}
.consent-in {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.consent-text { flex: 1; min-width: 260px; font-size: 14px; line-height: 1.55; color: #C9CEDA; }
.consent-text strong { color: #fff; display: block; }
.consent-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.consent-detail { color: #C9CEDA; font-size: 13.5px; text-decoration: underline; }
.consent-detail:hover { color: #fff; }

@media (max-width: 620px) {
  .consent-in { padding: 14px 16px; }
  .consent-actions { width: 100%; }
  .consent-actions form { flex: 1; }
  .consent-actions .btn { width: 100%; }
}

/* La mention d'un outil exempté ou à CMP propre : il ne passe pas par la case,
   et le taire laisserait croire que la décocher l'arrête. */
.consent-mode { display: block; font-size: 12.5px; color: var(--ink-muted); margin-top: 4px; }

/* L'en-tête commun aux pages du compte : la même bande partout, pour qu'on
   sache toujours dans quel compte on se trouve. */
.acct-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.acct-head h1 { font-size: 26px; line-height: 1.2; }
.acct-head p { color: var(--ink-muted); font-size: 14px; margin-top: 2px; }

/* ---------- Les pages d'erreur ---------- */

/* Elles reprennent le gabarit public, en-tête et pied compris : une page
   d'erreur qui perd la navigation est une impasse — et une 404 est ici un cas
   normal, pas un accident. */
.erreur { max-width: 1100px; margin: 32px auto 0; padding-bottom: 56px; }

.erreur-tete { display: flex; align-items: center; gap: 16px; }

.erreur-rond {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--primary-ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.erreur-rond svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.erreur-rond-ko { background: rgba(210, 68, 24, .12); }

.erreur-code {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.erreur-tete h1 { font-size: 25px; line-height: 1.2; margin-top: 2px; }

.erreur-dit { color: var(--ink-muted); margin-top: 14px; max-width: 58ch; }

.erreur-feed { margin-top: 24px; }

.erreur-liens { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 24px; }

/* Un volet replié dans un formulaire de compte.

   La liste des communes d'un territoire fait deux cent sept cases : dépliée
   d'office, elle enterre les quatre champs qui la suivent alors qu'elle ne sert
   qu'à une poignée de widgets. Repliée et nommée, elle se trouve quand on la
   cherche. */
.acct-details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  margin: 16px 0;
}
.acct-details > summary {
  cursor: pointer;
  padding: 13px 16px;
  font-size: 13.5px;
  font-weight: 600;
  list-style: none;
}
.acct-details > summary::-webkit-details-marker { display: none; }
.acct-details > summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 8px;
  color: var(--primary-ink);
  transition: transform .15s ease;
}
.acct-details[open] > summary::before { transform: rotate(90deg); }
.acct-details > summary span { font-weight: 400; color: var(--ink-muted); }
/*
 * Le contenu d'un accordéon respire de 16 px — SAUF les champs et les boutons.
 *
 * `padding-inline` sur un `<input>` s'ajoute à son padding intérieur : le texte
 * commençait à vingt-huit pixels du bord pendant que le champ, lui, gardait sa
 * pleine largeur. Le bouton, même chose, s'élargissait de trente-deux pixels
 * et cessait d'être aligné sur les champs au-dessus.
 *
 * Une marge extérieure fait ce que le padding prétendait faire.
 */
.acct-details > *:not(summary) { padding-inline: 16px; }

/* `padding-bottom` sur le dernier enfant creuse l'espace du bas — sauf quand ce
   dernier enfant est un bouton : là, c'est le bouton qui grossit de seize
   pixels et devient une pastille deux fois trop haute. Une marge fait ce que le
   padding prétendait faire. */
.acct-details > *:last-child:not(button):not(.btn):not(input):not(textarea):not(select) {
  padding-bottom: 16px;
}
.acct-details > button:last-child,
.acct-details > .btn:last-child,
.acct-details > input:last-child,
.acct-details > textarea:last-child,
.acct-details > select:last-child {
  margin-bottom: 16px;
}

.acct-details > input,
.acct-details > textarea,
.acct-details > select,
.acct-details > button,
.acct-details > .btn {
  padding-inline: 12px;
  margin-inline: 16px;
  width: calc(100% - 32px);
}

/* Un bouton ne prend pas toute la largeur : il garde la sienne, aligné à
   gauche sur les champs. */
.acct-details > button,
.acct-details > .btn {
  padding-inline: 18px;
  width: auto;
}

/* ---------- Choisir des communes dans une liste de deux cent sept ----------

   Le champ de recherche est posé par le script : sans lui la liste entière
   défile, ce qui marche — mais un champ de recherche qui ne filtre rien est un
   piège. */

.cpick-chercher {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 9px 12px;
  margin-bottom: 8px;
  background: var(--surface);
  color: var(--ink-muted);
}
.cpick-chercher:focus-within { border-color: var(--primary); }
.cpick-chercher input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
}
/* La croix native de `type="search"` sur WebKit : gardée, elle vide le filtre
   d'un geste. */
.cpick-chercher input::-webkit-search-cancel-button { cursor: pointer; }

.cpick-compte { font-size: 12.5px; color: var(--ink-muted); margin-bottom: 8px; }
.cpick-vide { font-size: 13px; color: var(--ink-muted); padding: 4px 2px; }

/* La liste défile plutôt que de s'étendre : deux cent sept communes en pastilles
   font une page à elles seules. */
.acct-communes {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
}

/* Le bouton « Copier » d'un bloc de code.

   Deux lignes et cent caractères de clé se sélectionnent mal à la souris, et un
   caractère manquant donne un widget qui ne s'affiche pas — sans rien dire de
   pourquoi. Le bouton est posé par le script : sans lui, la sélection à la main
   fonctionne toujours. */
.copie-boite { position: relative; }
.copie-boite pre { margin-bottom: 0; }

.copie {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 13px;
  cursor: pointer;
  opacity: .82;
}
.copie:hover { opacity: 1; border-color: var(--primary); color: var(--primary-ink); }
.copie.is-done { border-color: var(--success); color: var(--success); opacity: 1; }

/* Un espace sous le bloc, que la boîte lui a repris. */
.copie-boite + * { margin-top: 18px; }

/* Le widget de démonstration : un cadre, dit comme tel. */
.demo-widget {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  margin: 18px 0;
  background: var(--surface);
}
.demo-widget-note { font-size: 13px; color: var(--ink-muted); margin-bottom: 10px; }

/* Un raccourci qui n'est pas un lien : même forme, sans l'appel au clic.
   Proposer à un visiteur sans compte un raccourci qui le mènerait à l'écran de
   connexion est pire que ne rien lui proposer. */
.contact-raccourci-mute { cursor: default; }
.contact-raccourci-mute strong { color: var(--ink); }

/* ---------- Sortir à plusieurs : trois étapes ---------- */

/* Le formulaire posait six questions à plat, toutes au même niveau : rien ne
   disait lesquelles comptent, et il se lisait comme un questionnaire
   administratif alors qu'il organise une sortie entre amis. */
.plan-etape { margin-top: 28px; }
.plan-etape:first-of-type { margin-top: 8px; }

.plan-etape-tete { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }

.plan-etape-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--primary-ink);
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transform: translateY(3px);
}

.plan-etape-tete h2 { font-size: 16px; font-weight: 700; }
.plan-etape-tete h2 span { font-size: 13px; font-weight: 400; color: var(--ink-muted); }

/* Le corps est décalé sous le numéro : c'est ce retrait qui fait lire trois
   groupes plutôt que neuf champs. */
.plan-etape-corps { padding-left: 32px; }

/* Sous 560 px, le retrait mange une colonne de texte pour un gain de lecture
   nul — l'écran est déjà une colonne. */
@media (max-width: 560px) { .plan-etape-corps { padding-left: 0; } }

/* La première étape n'a plus de titre à elle : celui de l'étape le porte. */
.plan-etape .plan-people { border: 0; padding: 0; margin: 0; }
.plan-etape .plan-people legend { display: none; }

/* ---------- L'écran d'accord OAuth ---------- */

/* Une page à part, étroite et sans distraction : on y prend une décision, et
   la seule chose qui compte est de savoir ce qu'on accorde. */
.oauth { max-width: 560px; margin: 40px auto 0; padding-bottom: 56px; }

.oauth-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 28px 26px;
}

.oauth-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.oauth-card h1 { font-size: 22px; margin-top: 6px; }
.oauth-uri { font-size: 13px; color: var(--ink-muted); margin-top: 2px; word-break: break-all; }

.oauth-dit { margin-top: 20px; color: var(--ink-muted); font-size: 14.5px; }
.oauth-dit-non { margin-top: 22px; }

.oauth-liste { margin: 10px 0 0 20px; list-style: disc; font-size: 14px; }
.oauth-liste li { margin-top: 6px; }
.oauth-liste strong { font-weight: 600; color: var(--ink); }

/* Ce qui n'est PAS accordé se lit en retrait : c'est une rassurance, pas une
   offre — et la mettre au même poids que la première liste ferait hésiter sur
   ce qu'on accorde vraiment. */
.oauth-liste-non { color: var(--ink-muted); }

.oauth-actions { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.oauth-actions .btn { flex: 1; justify-content: center; }

.oauth-fin { margin-top: 20px; font-size: 12.5px; color: var(--ink-muted); line-height: 1.6; }

/* Une ligne d'objet avec son geste au bout : un connecteur autorisé, une clé,
   un appareil. Le geste à droite, jamais dessous — sous la ligne, il se lit
   comme une action sur toute la liste. */
.acct-row {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.acct-row:first-child { border-top: 0; padding-top: 0; }
.acct-row strong { display: block; font-size: 14.5px; }

/* Les permissions demandées, une case par ligne. */
.oauth-portees { display: grid; gap: 9px; margin-top: 18px; }

.oauth-portee {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 15px;
  cursor: pointer;
  background: var(--surface);
}
.oauth-portee input { margin-top: 3px; flex-shrink: 0; accent-color: var(--primary); }
.oauth-portee strong { display: block; font-size: 14px; font-weight: 600; }
.oauth-portee > span > span { display: block; font-size: 12.5px; color: var(--ink-muted); margin-top: 3px; }

/* Ce qui ÉCRIT se distingue de ce qui lit : un liseré, et un mot. Les mettre
   au même poids reviendrait à dire que consulter et agir se valent. */
.oauth-portee-ecrit { border-left: 3px solid var(--accent); }

.oauth-marque {
  display: inline-block;
  margin-left: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--primary-ink);
  background: var(--accent-soft);
  border-radius: var(--r-full);
  padding: 2px 8px;
  vertical-align: 1px;
}

/* Supprimer une sortie à plusieurs : en bas, en retrait, et sans bouton plein.

   Un geste irréversible ne se met pas dans le flux des autres — il s'y
   cliquerait par erreur. Un lien souligné le rend trouvable quand on le
   cherche, et invisible quand on ne le cherche pas. */
.plan-supprimer { margin: 40px 0 24px; text-align: center; }

.plan-supprimer button {
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: underline;
  cursor: pointer;
  padding: 6px;
}
.plan-supprimer button:hover { color: var(--error); }

/* ---------- L'éditeur de livret ---------- */

.lv-etat {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.lv-etat a { color: var(--primary-ink); font-weight: 600; word-break: break-all; }

.lv-manque { background: #FFF6E6; border-radius: var(--r-md); padding: 12px 14px; }

/* ---------- L'éditeur : une rubrique = une ligne ----------

   L'écran montrait la même liste deux fois — « Vos rubriques » pour ranger et
   allumer, « Le contenu » pour remplir. Le rang, l'interrupteur, le titre et le
   contenu vivent maintenant dans le même objet, qu'on déplie sur place. */

.lv-onglets {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  margin: 18px 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.lv-onglets::-webkit-scrollbar { display: none; }
.lv-onglet {
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 11px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.lv-onglet[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--primary); }
.lv-onglet span {
  background: var(--bg);
  border-radius: var(--r-full);
  padding: 1px 7px;
  font-size: 11px;
  margin-left: 5px;
}

/* La jauge : elle dit l'avancement, la liste dit où. Le bandeau qui énumérait
   les rubriques vides répétait ce que les pastilles disent déjà. */
.lv-jauge { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.lv-jauge-barre {
  flex: 0 1 240px;
  height: 7px;
  border-radius: var(--r-full);
  background: var(--bg);
  overflow: hidden;
}
.lv-jauge-barre i { display: block; height: 100%; background: var(--success); border-radius: var(--r-full); }

.lv-groupe-titre {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 22px 0 8px;
}

/* Les accordéons de l'onglet « L'établissement » : mêmes marges que les cartes
   qu'ils remplacent, pour que la colonne ne change pas de rythme au milieu. */
[data-panneau="etab"] > .acct-details { margin-top: 10px; }

.lv-sous {
  font-family: var(--font-title, inherit);
  font-size: 15px;
  font-weight: 800;
  margin: 22px 0 2px;
}
.lv-sous:first-child { margin-top: 0; }

/* La liste respire sous la phrase qui l'introduit : les rangs se collaient au
   paragraphe, et le premier se lisait comme sa suite. */
[data-lv-ordre] { margin-top: 12px; }

.lv-rub {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 7px;
  background: var(--surface);
}
.lv-rub-tete { display: flex; gap: 11px; align-items: center; padding: 10px 12px; }
.lv-rub-tete[data-lv-plier] { cursor: pointer; }
.lv-rub-off { background: var(--bg); }
.lv-rub-off .lv-rub-ic,
.lv-rub-off .lv-rub-txt { opacity: .5; }

.lv-rub-ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--primary-ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
/* Le même jeu d'icônes que le livret public, à la même taille : l'hébergeur
   doit reconnaître dans sa liste ce que son client voit sur sa grille. */
.lv-svg { width: 18px; height: 18px; display: block; }

.lv-rub-txt { flex: 1; min-width: 0; }
.lv-rub-txt strong { display: block; font-size: 13.5px; }
/* Le résumé tient sur une ligne et se lit en entier. Il portait l'aide
   complète, tronquée à deux lignes : la phrase se coupait au milieu, ce qui
   coûte l'attention sans rien apprendre. L'aide entière vit dans le panneau
   déplié, qui a la place. */
.lv-rub-txt span {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.45;
}

.lv-rub-aide { margin-bottom: 10px; }

/* Un point plutôt qu'un mot : « rempli » et « se remplit seul » n'appellent
   aucune action, et quatre pastilles grises noyaient la seule qui compte. */
.lv-point { width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.lv-point-auto { background: #C4CBD4; }

.lv-chev { color: var(--ink-muted); font-size: 11px; flex-shrink: 0; transition: transform .15s ease; }
.lv-rub-ouvert > .lv-rub-tete .lv-chev { transform: rotate(90deg); }

.lv-rub-corps { display: none; padding: 4px 14px 16px 54px; border-top: 1px solid var(--line); }
.lv-rub-ouvert .lv-rub-corps { display: block; }

@media (max-width: 560px) {
  /* Le retrait de 54 px alignait le contenu sous le titre ; sur un téléphone,
     il ne laisse plus la place d'écrire. */
  .lv-rub-corps { padding-left: 14px; }
}

/* La barre d'enregistrement : elle remplace les treize boutons, et elle dit
   s'il y a quelque chose à enregistrer. Collante, parce qu'une liste de treize
   rubriques dépasse l'écran et qu'un bouton tout en bas ne se trouve pas. */
.lv-barre-save {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-md);
  padding: 10px 14px;
  margin-top: 16px;
  font-size: 13px;
}
/* La parade locale a été remplacée par la règle globale `[hidden]`, en tête
   de cette feuille : c'est la deuxième fois que le défaut se produisait. */

.lv-barre-save span { color: #B9C0CC; }
.lv-barre-save .lv-sale { color: var(--accent); font-weight: 700; }
.lv-barre-save .btn { margin-left: auto; }

/* L'aperçu : une iframe du VRAI livret, pas une reconstitution. Deux rendus du
   même objet finissent toujours par diverger, et c'est l'aperçu qui aurait tort
   au pire moment. Masqué sous 1100 px : un aperçu de téléphone sur un téléphone
   n'a pas de sens. */
.lv-duo { display: block; }
.lv-colonne { min-width: 0; }
.lv-apercu { display: none; }

@media (min-width: 1100px) {
  .lv-duo { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }

  /* Sous l'en-tête, qui suit le défilement : collé à 16 px du haut, l'aperçu
     passait dessous et se faisait recouvrir. La hauteur est mesurée par le
     script — la barre change de taille selon qu'elle porte le rang de
     catégories. */
  .lv-apercu { display: block; position: sticky; top: var(--lv-haut, 96px); }
}

.lv-tel {
  border: 8px solid var(--ink);
  border-radius: 26px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 8px 26px rgba(31, 36, 48, .16);
}
.lv-tel-barre { display: block; height: 16px; background: var(--ink); }
.lv-tel iframe { display: block; width: 100%; height: 480px; border: 0; }

.lv-couv-vu {
  width: 112px;
  height: 56px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}
.lv-couv-vu img { width: 100%; height: 100%; object-fit: cover; }

/* Un rang de rubrique : les flèches, l'icône, le nom, l'état, l'interrupteur. */
.lv-rang {
  display: flex;
  gap: 11px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 12px;
  margin-bottom: 7px;
  background: var(--surface);
}
.lv-rang-off { opacity: .55; background: var(--bg); }

.lv-fleches { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.lv-fleches button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-sm);
  width: 26px;
  height: 20px;
  font-size: 9px;
  color: var(--ink-muted);
  cursor: pointer;
  line-height: 1;
}
.lv-fleches button:hover { border-color: var(--primary); color: var(--primary-ink); }

.lv-rang-ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--primary-ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.lv-rang-txt { flex: 1; min-width: 0; }
.lv-rang-txt strong { display: block; font-size: 13.5px; }
.lv-rang-txt span {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
  /* L'aide tient sur deux lignes : entière, elle noierait la liste ; absente,
     l'hébergeur ne saurait pas à quoi sert « Bon à savoir ». */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lv-etiq { flex-shrink: 0; }

/* L'interrupteur : plus lisible qu'une case à cocher pour dire « ça s'affiche
   ou non », et assez grand pour un pouce. */
.lv-bascule { position: relative; flex-shrink: 0; cursor: pointer; }
.lv-bascule input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lv-bascule span {
  display: block;
  width: 40px;
  height: 23px;
  border-radius: var(--r-full);
  background: var(--line);
  position: relative;
  transition: background .15s ease;
}
.lv-bascule span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  transition: transform .15s ease;
}
.lv-bascule input:checked + span { background: var(--success); }
.lv-bascule input:checked + span::after { transform: translateX(17px); }
.lv-bascule input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

/* La palette : huit teintes, une seule cochée. */
.lv-palette { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 8px; }
.lv-teinte { cursor: pointer; }
.lv-teinte input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lv-teinte span {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 2px #fff;
}
.lv-teinte input:checked + span { border-color: var(--ink); }
.lv-teinte input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Le logo dans l'éditeur : l'aperçu à côté du champ, pas au-dessus. On juge un
   logo en le voyant tel qu'il sera, pas en lisant le nom du fichier. */
.lv-logo-champ { display: flex; gap: 14px; align-items: flex-start; margin-top: 8px; }
.lv-logo-champ > div { min-width: 0; }
.lv-logo-champ input[type="file"] { max-width: 100%; }
.lv-logo-vu {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--primary-ink);
  flex-shrink: 0;
  overflow: hidden;
}
.lv-logo-vu img { width: 100%; height: 100%; object-fit: contain; }

.lv-etat-gestes { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }

.lv-logo-rond { border-radius: 50%; }
.lv-logo-rond img { object-fit: cover; }

/* Une paire question / réponse. Le liseré les groupe : sans lui, six champs
   d'affilée ne disent plus lequel répond à lequel. */
.lv-faq-bloc {
  border-left: 3px solid var(--line);
  padding-left: 12px;
  margin-bottom: 12px;
}
.lv-faq-bloc .acct-input + .acct-input { margin-top: 6px; }

/* Une ligne de carte : le libellé large, le prix étroit, sur la même ligne.
   L'un sous l'autre, on saisit une ligne sur deux au mauvais endroit. */
.lv-tarif-bloc {
  display: grid;
  grid-template-columns: 1fr 100px 30px;
  gap: 6px;
  align-items: start;
  margin-bottom: 8px;
}

/* ---------- le répéteur ----------

   Autant de lignes qu'on veut, plutôt que trois cases d'avance : trois cases
   suggèrent un quota, on en remplit trois et on s'arrête là. */

.repet { margin-top: 6px; }

/* Une ligne de liste : le champ, et sa croix. Même géométrie que la carte du
   minibar, sans la colonne du prix. */
.lv-ligne-bloc {
  display: grid;
  grid-template-columns: 1fr 30px;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}

.repet-ajout { margin-top: 2px; }

/* La croix reste discrète : c'est une porte de sortie, pas une invitation. Elle
   ne s'allume qu'au survol de sa ligne. */
.repet-suppr {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  background: none;
  justify-self: center;
  color: var(--ink-muted);
  font-size: 20px;
  line-height: 1;
  width: 30px;
  height: 34px;
  cursor: pointer;
  opacity: .35;
  transition: opacity .12s ease, color .12s ease;
}
[data-repet-item]:hover .repet-suppr,
[data-repet-item]:focus-within .repet-suppr { opacity: 1; }
.repet-suppr:hover { color: var(--primary); }

/* Le bloc question / réponse porte sa croix en haut à droite : il fait deux
   lignes de haut, et une croix centrée verticalement flotterait au milieu du
   texte de la réponse. */
.lv-faq-bloc { position: relative; padding-right: 34px; }
.lv-faq-bloc .repet-suppr { position: absolute; top: 2px; right: 0; }

/* Une ligne d'inventaire : la pièce, l'objet (le plus large), la quantité. */
.lv-inv-bloc {
  display: grid;
  grid-template-columns: 140px 1fr 70px 30px;
  gap: 6px;
  align-items: start;
  margin-bottom: 8px;
}

/* L'inventaire, pièce par pièce : un bloc par pièce, son nom en tête, ses
   objets dessous, qu'on glisse par la poignée. */
.inv { display: grid; gap: 12px; margin-top: 6px; }
.inv-piece { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 8px; background: var(--surface); }
.inv-piece-tete { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.inv-piece-nom.acct-input { font-weight: 800; flex: 1; min-width: 0; }
.inv-piece-n { font-size: 12.5px; color: var(--ink-muted); white-space: nowrap; }
.inv-lignes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.inv-ligne { display: grid; grid-template-columns: 18px minmax(0, 1fr) 70px auto 30px; gap: 6px; align-items: center; border-radius: 10px; }
.inv-ligne.inv-tire { opacity: .45; background: var(--accent-soft); }
.inv-poignee { cursor: grab; color: var(--ink-muted); font-size: 14px; letter-spacing: -2px; text-align: center; user-select: none; }
.inv-poignee:active { cursor: grabbing; }
.inv-fleches { display: inline-flex; flex-direction: column; }
.inv-fleches button { border: 0; background: none; color: var(--ink-muted); font-size: 10px; line-height: 1; padding: 2px 4px; cursor: pointer; }
.inv-fleches button:hover { color: var(--primary); }
.inv-ligne:first-child [data-inv-monter], .inv-ligne:last-child [data-inv-descendre] { visibility: hidden; }
.inv-ajout { font-size: 13.5px; margin: 8px 0 2px; text-decoration: none; }
.inv-ajout-piece { justify-self: start; }
@media (pointer: coarse) { .inv-poignee { display: none; } .inv-ligne { grid-template-columns: minmax(0, 1fr) 64px auto 30px; } .inv-fleches button { font-size: 13px; padding: 4px 6px; } }

/* Un bon plan : trois champs l'un sous l'autre, la croix en haut à droite —
   comme le bloc question / réponse, pour la même raison. */
.lv-plan-bloc { position: relative; padding-right: 34px; margin-bottom: 10px; }
.lv-plan-bloc .acct-input + .acct-input { margin-top: 6px; }
.lv-plan-bloc .repet-suppr { position: absolute; top: 2px; right: 0; }

@media (max-width: 460px) {
  /* Trois colonnes ne tiennent pas sur un téléphone : le prix passe sous le
     libellé, la croix garde sa place à droite plutôt que d'aller occuper une
     ligne entière — où elle ressemblerait à un bouton principal. */
  .lv-tarif-bloc { grid-template-columns: 1fr 30px; }
  .lv-tarif-bloc .repet-suppr { grid-row: span 2; align-self: center; }
  .lv-inv-bloc { grid-template-columns: 1fr 64px 30px; }
  .lv-inv-bloc > :nth-child(1) { grid-column: 1 / 3; }
  .lv-inv-bloc > :nth-child(4) { grid-row: 1 / 3; grid-column: 3; align-self: center; }
}

/* ---------- La mise en route ---------- */

.mr-invite { background: var(--accent-soft); border-radius: var(--r-md); padding: 14px 16px; }
.mr-invite .btn { margin-left: 8px; vertical-align: middle; }

/* Le chemin parcouru : les étapes faites portent leur coche, sinon on ne sait
   pas si l'on avance ou si l'on tourne. */
.mr-etapes { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.mr-etape {
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--r-full);
  padding: 6px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-muted);
  text-decoration: none;
}
.mr-etape-faite { background: #E4F1E9; border-color: #C9E4D5; color: var(--success); }
.mr-etape-on { background: var(--primary); border-color: var(--primary); color: #fff; }

.mr-jauge { height: 6px; border-radius: var(--r-full); background: var(--line); overflow: hidden; }
.mr-jauge i { display: block; height: 100%; background: var(--success); transition: width .2s ease; }
.mr-jauge-note { font-size: 12.5px; color: var(--ink-muted); margin: 6px 0 4px; }

.mr-carte { margin-top: 16px; }
.mr-question { font-size: 21px; line-height: 1.25; }
.mr-pourquoi { font-size: 14px; color: var(--ink-muted); margin-top: 8px; max-width: 62ch; }

/* L'exemple est en retrait et gris : c'est un modèle à lire, pas un champ à
   remplir — le confondre avec le formulaire ferait recopier l'exemple. */
.mr-exemple {
  background: var(--bg);
  border-left: 3px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 15px;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.6;
}
.mr-exemple b {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink);
  margin-bottom: 5px;
}

.mr-sous { font-size: 13.5px; font-weight: 700; margin-top: 20px; }
.mr-gestes { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 22px; }
.mr-sortie { margin-top: 14px; font-size: 12.5px; }
.mr-sortie a { color: var(--ink-muted); text-decoration: underline; }

/* Un mot reçu. Une note basse porte un liseré : dans une liste de vingt, c'est
   celle-là qu'il faut voir en premier — et c'est la seule qu'on puisse encore
   rattraper. */
.mot { margin-bottom: 10px; }
.mot-alerte { border-left: 3px solid var(--accent); }
.mot-tete { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.mot-tete strong { display: block; font-size: 14.5px; }
.mot-note { font-size: 12.5px; color: var(--ink-muted); white-space: nowrap; }
.mot-etoiles { color: var(--primary); letter-spacing: 1px; display: block; font-size: 14px; }
.mot-texte { margin-top: 10px; font-size: 14.5px; line-height: 1.6; white-space: pre-line; }

/* ---------- La fréquentation d'un livret ---------- */

.freq-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
@media (max-width: 560px) { .freq-chiffres { grid-template-columns: 1fr; } }

.freq-chiffre {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 16px 18px;
}
.freq-chiffre b { display: block; font-size: 27px; font-weight: 800; line-height: 1.1; }
.freq-chiffre span { font-size: 12.5px; color: var(--ink-muted); }

/* Une barre par mois plutôt qu'une courbe : douze valeurs se comparent mieux
   alignées qu'en pente, et une barre se lit sans axe. */
.freq-mois { display: flex; gap: 12px; align-items: center; padding: 7px 0; }
.freq-mois-nom { flex-shrink: 0; width: 108px; font-size: 12.5px; color: var(--ink-muted); }
.freq-mois-n { flex-shrink: 0; width: 46px; text-align: right; font-size: 13px; font-weight: 700; }
.freq-barre { flex: 1; height: 9px; border-radius: var(--r-full); background: var(--bg); overflow: hidden; }
.freq-barre i { display: block; height: 100%; background: var(--primary); border-radius: var(--r-full); }

/* Le verdict d'une rubrique, collé à sa fréquentation. « Lue 40 fois » et
   « n'a pas servi 6 fois » ne veulent rien dire l'un sans l'autre : c'est leur
   rapport qui désigne le texte à réécrire. */
.freq-verdict { flex-shrink: 0; display: flex; gap: 6px; font-size: 11.5px; }
.freq-verdict b {
  border-radius: var(--r-full);
  padding: 1px 8px;
  font-weight: 700;
}
.freq-verdict .oui { background: #E4F3EC; color: #1B7F55; }
.freq-verdict .non { background: #FEF3E2; color: #B45309; }

/* Un conseil : l'observation à gauche, le geste à droite. Sans le bouton, ce
   serait un reproche — c'est le geste qui en fait un conseil. */
.freq-conseil {
  display: flex;
  gap: 14px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 13px 0;
}
.freq-conseil:first-child { border-top: 0; padding-top: 0; }
.freq-conseil > div { flex: 1; min-width: 0; }
.freq-conseil strong { display: block; font-size: 14px; }
.freq-conseil p { font-size: 13px; color: var(--ink-muted); margin-top: 3px; line-height: 1.5; }
.freq-conseil .btn { flex-shrink: 0; }

@media (max-width: 520px) {
  .freq-conseil { flex-direction: column; align-items: flex-start; }
}

.freq-dit { border-top: 1px solid var(--line); padding: 12px 0; }
.freq-dit:first-child { border-top: 0; padding-top: 0; }
.freq-mois-nom .lv-svg,
.freq-dit-ou .lv-svg,
.acct-details > summary .lv-svg {
  display: inline-block;
  vertical-align: -3px;
  margin-right: 4px;
}

.freq-dit-ou { display: block; font-size: 12.5px; font-weight: 700; }
.freq-dit-ou i { font-style: normal; font-weight: 400; color: var(--ink-muted); margin-left: 6px; }
.freq-dit p { margin-top: 4px; font-size: 14px; line-height: 1.55; }

/* Le livret de démonstration, dans un cadre de téléphone : il se lit sur un
   téléphone, et le montrer en pleine largeur donnerait une idée fausse de sa
   densité. */
.demo-livret { margin: 20px 0 26px; }

.demo-tel {
  width: 320px;
  max-width: 100%;
  margin: 0 auto;
  border: 9px solid var(--night, #171A24);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(31, 36, 48, .18);
  background: #fff;
}
.demo-tel iframe { display: block; width: 100%; height: 560px; border: 0; }

/* L'original français au-dessus de sa traduction. En gris et en petit : il est
   là pour comparer, pas pour être relu — et sans lui, on corrige une phrase
   sans savoir ce qu'elle devait dire. */
.lv-vo {
  border-left: 3px solid var(--line);
  padding-left: 10px;
  margin-bottom: 6px;
  font-style: italic;
}

/* L'état d'une langue : une pastille, puis la phrase. Sur une seule ligne, la
   pastille et le texte se collaient — « Pas encore traduite La traduction
   part… » se lisait comme une phrase cassée. */
.lv-langue-etat p + p { margin-top: 8px; font-size: 13.5px; color: var(--ink-muted); line-height: 1.55; }

/* ---------- le champ de fichier ----------

   Chaque navigateur dessine son propre « Parcourir… / Aucun fichier choisi »,
   dans sa police et sa taille : au milieu d'un formulaire qui, deux lignes plus
   bas, sait à quoi il ressemble, ça passe pour un morceau oublié.

   Le champ natif reste dans un `<label>` : le clic, le clavier et le
   glisser-déposer fonctionnent sans une ligne de script. On ne fait que le
   rendre invisible et poser un bouton par-dessus. */

.acct-fichier {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  cursor: pointer;
}
.acct-fichier input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.acct-fichier-btn {
  border-radius: var(--r-full);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  white-space: nowrap;
}
.acct-fichier:hover .acct-fichier-btn { box-shadow: inset 0 0 0 1px var(--primary); color: var(--primary-ink); }

/* Le contour de mise au point vient du champ masqué : sans cette règle, une
   navigation au clavier traverse le formulaire sans qu'on voie où l'on est. */
.acct-fichier input:focus-visible + .acct-fichier-btn {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.acct-fichier-nom { font-size: 12.5px; color: var(--ink-muted); }
.acct-fichier-pris { color: var(--ink); font-weight: 600; }

/* Le compte de caractères. Discret, aligné à droite sous son champ : c'est un
   repère, pas une consigne. Il rougit quand la limite est atteinte — le moment
   où la touche cesse de répondre. */
.acct-compteur {
  font-size: 11.5px;
  color: var(--ink-muted);
  text-align: right;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.acct-compteur-plein { color: var(--primary); font-weight: 700; }

/* ---------- les rubriques inventées ----------

   La banque d'icônes : le même jeu que les rubriques du catalogue, en grille.
   Une image déposée serait la seule du livret à ne pas suivre la couleur de
   l'établissement, et la seule à pouvoir arriver de travers. */

.lv-icones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.lv-icone { cursor: pointer; }
.lv-icone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lv-icone span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink-muted);
  box-shadow: inset 0 0 0 1px var(--line);
}
.lv-icone input:checked + span {
  background: var(--accent-soft);
  color: var(--primary-ink);
  box-shadow: inset 0 0 0 2px var(--primary);
}
.lv-icone input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

.lv-ajout { margin-top: 14px; }

/* Le retrait vit au pied de la rubrique dépliée, discret : c'est une sortie,
   pas une invitation. */
.lv-rub-pied { padding: 0 14px 14px 54px; }
.lv-rub:not(.lv-rub-ouvert) .lv-rub-pied { display: none; }
.lv-rub-retirer {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 12.5px;
  color: var(--ink-muted);
  text-decoration: underline;
  cursor: pointer;
}
.lv-rub-retirer:hover { color: var(--primary); }

@media (max-width: 560px) {
  .lv-rub-pied { padding-left: 14px; }
}

/* ---------- l'annonce, côté hébergeur ---------- */

.lv-annonce-etat { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.lv-annonce-etat > div { flex: 1; min-width: 0; }
.lv-annonce-etat strong { display: block; font-size: 14px; }
.lv-annonce-etat span { font-size: 13px; color: var(--ink-muted); }
.lv-annonce-etat-urgence { box-shadow: inset 3px 0 0 #B3261E; }
.lv-annonce-etat-avertissement { box-shadow: inset 3px 0 0 #C98A00; }

.lv-annonce-form { margin-bottom: 14px; }

/* Les trois tons : le mot, dans sa couleur, coché comme un bouton. Ce n'est pas
   décoratif — c'est ce qui rappelle qu'une urgence n'est pas une information
   plus rouge. */
.lv-tons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.lv-ton { cursor: pointer; }
.lv-ton input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lv-ton span {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 700;
  background: var(--surface);
  color: var(--ink-muted);
}
.lv-ton input:checked + span { box-shadow: inset 0 0 0 2px currentColor; }
.lv-ton input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.lv-ton-information input:checked + span { color: var(--eta-sombre, #1B4457); }
.lv-ton-avertissement input:checked + span { color: #8A6000; }
.lv-ton-urgence input:checked + span { color: #B3261E; }

/* Un mot dont le nom a été effacé au bout d'un mois : on le dit, plutôt que de
   laisser un blanc qu'on prendrait pour un défaut d'affichage. */
.mot-anonyme { color: var(--ink-muted); font-weight: 400; font-style: italic; }

/* ---------- les avis sur un lieu ----------

   Sous le contenu de la source et jamais à sa place : une fiche dit ce que la
   source publie, les avis disent ce que des visiteurs en ont pensé. Mélanger
   les deux ferait passer une opinion pour un fait. */

.avis-bloc { margin-top: 34px; }
.avis-bloc > h2 { display: flex; align-items: center; gap: 9px; }
.avis-n {
  font-size: 12px;
  font-weight: 700;
  background: var(--bg);
  border-radius: var(--r-full);
  padding: 2px 9px;
  color: var(--ink-muted);
}

.avis {
  display: flex;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.avis-mien { background: var(--accent-soft); border-radius: var(--r-md); padding: 15px; margin-top: 12px; }
.avis-mien + .avis { border-top: 0; }

.avis-pastille {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--primary-ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.avis-mien .avis-pastille { background: #fff; }

.avis-corps { flex: 1; min-width: 0; }
.avis-qui { font-size: 13.5px; font-weight: 700; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.avis-qui span { font-weight: 400; color: var(--ink-muted); font-size: 12.5px; }
.avis-txt { margin-top: 4px; line-height: 1.6; white-space: pre-line; }
.avis-motif { font-size: 13px; color: var(--ink-muted); margin-top: 7px; padding-left: 11px; border-left: 3px solid var(--line); }

.avis-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.avis-photos img {
  width: 150px;
  height: 112px;
  object-fit: cover;
  border-radius: var(--r-sm);
  display: block;
}
.avis-photo-mienne { display: inline-block; position: relative; }
.avis-photo-mienne em {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(23, 26, 36, .8);
  color: #fff;
  border-radius: var(--r-full);
  padding: 2px 8px;
}

.avis-pied { margin-top: 8px; font-size: 12.5px; }
.avis-vide { color: var(--ink-muted); margin-top: 14px; }

.avis-etat { border-radius: var(--r-md); padding: 12px 14px; margin: 14px 0; font-size: 13.5px; line-height: 1.5; }
.avis-ok { background: #E4F3EC; color: #12603F; }
.avis-attente { background: #FFF4E2; color: #6B4A05; }
.avis-refus { background: #FDECE8; color: #8A1D17; }

.avis-ecrire {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-top: 18px;
  background: var(--surface);
}
.avis-ecrire > summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}

.avis-licence { align-items: flex-start; margin-top: 14px; }
.avis-licence span { font-size: 12.5px; line-height: 1.5; }

.outing-signaler { margin-top: 26px; }


/* Le piège à robots : un champ que personne ne voit, qu'un script remplit.

   La même règle existe dans livret.css, et ce n'est pas un oubli : les pages
   de livret ne chargent pas cette feuille. Le nom de classe, lui, est commun —
   il l'était déjà pour l'œil, il l'est maintenant pour le code, après qu'un
   champ nu s'est affiché en haut d'un formulaire de signalement parce que sa
   seule règle vivait dans l'autre feuille. */
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- signaler ---------- */

.signaler-lien {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 12.5px;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.signaler-lien:hover { color: var(--ink); }
.signaler-recu { font-size: 12.5px; color: var(--ok, #12603F); font-weight: 600; }

.outing-signaler { margin: 14px 0 4px; text-align: right; }

/* ---------- la modale ----------

   L'élément <dialog> natif : pile d'affichage, fond, fermeture à Échap et
   piège au clavier sont donnés. On ne dessine que la boîte. */

.modale {
  /* Aligné à gauche, explicitement : la modale vit dans le DOM à l'endroit du
     lien qui l'ouvre, et hérite donc de son alignement — le lien de
     signalement étant à droite, tout le formulaire l'était aussi. Un élément
     sorti du flux visuel doit reposer ses propres règles de texte. */
  text-align: left;
  width: min(520px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 48px));
  padding: 0;
  border: 0;
  border-radius: var(--r-lg, 16px);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(23, 26, 36, .22);
  overflow: hidden;
}
.modale::backdrop { background: rgba(23, 26, 36, .45); }

.modale-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.modale-tete h2 { margin: 0; font-size: 16px; }

.modale-fermer {
  background: none;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 0 4px;
  border-radius: var(--r-sm);
}
.modale-fermer:hover { color: var(--ink); background: var(--bg); }

.modale-corps { padding: 16px 18px 18px; overflow-y: auto; }

.modale-pied {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

@media (max-width: 560px) {
  .modale { width: 100vw; max-width: 100vw; max-height: 92vh; border-radius: var(--r-lg, 16px) var(--r-lg, 16px) 0 0; margin-bottom: 0; }
  .modale-pied { flex-direction: column-reverse; }
  .modale-pied .btn { width: 100%; }
}

/* ---------- le rappel d'un jour choisi ----------

   Dans le bloc des dates, parce que c'est là que les dates sont déjà écrites.
   Le rappel est une date qu'on pose, pas un réglage qu'on active : c'est la
   seule formulation qui reste vraie quand un événement dure quatre mois. */

.rappel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-weight: 400;
}

.rappel-question {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
}

.rappel-jours { display: flex; flex-wrap: wrap; gap: 7px; }
.rappel-jours form { margin: 0; }

.rappel-jour {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-full);
  padding: 6px 13px;
  font: inherit;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.rappel-jour:hover { border-color: var(--primary-ink); }
.rappel-jour[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.rappel-champ { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0; }
.rappel-champ input[type="date"] {
  font: inherit;
  font-size: 14px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
}

.rappel-etat {
  margin: 0;
  border-radius: var(--r-sm);
  padding: 8px 11px;
  font-size: 13px;
  line-height: 1.5;
}
.rappel-auto { background: var(--accent-soft); color: var(--ink); }
.rappel-arme { background: var(--tint-ok); color: var(--tint-ok-ink); }
.rappel-vide { background: var(--tint-warm); color: var(--ink); }

.rappel-retirer { display: inline; margin: 0; }
.rappel-retirer button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 12.5px;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  opacity: .8;
}

/* Les sorties de l'agenda qui attendent qu'on dise quel jour. Avant le
   calendrier : c'est une décision en attente, pas une consultation. */

.agenda-decider {
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--surface);
  padding: 18px 20px;
  margin: 18px 0 24px;
}
.agenda-decider > h2 {
  font-size: 17px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.agenda-decider > h2 span {
  font-size: 12px;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-full);
  padding: 1px 8px;
}
.agenda-decider > p { font-size: 13.5px; color: var(--ink-muted); margin: 7px 0 0; }

.agenda-attente {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 14px;
}
.agenda-attente > a { font-weight: 700; }
.agenda-attente .rappel { border-top: 0; padding-top: 8px; margin-top: 6px; }

/* Le jour retenu, dans la grille : un calendrier qui ne montre pas le
   rendez-vous qu'on a posé ment par omission. */
.cal-item.is-rappel { font-weight: 700; }
.cal-item.is-rappel::before { content: "🔔 "; font-size: .85em; }


/* ---------- iOS : les champs à seize pixels ----------

   Safari mobile ZOOME la page dès qu'un champ de moins de seize pixels reçoit
   le focus. On touche le sélecteur de commune, la page grossit, la mise en
   page saute, et il faut pincer pour revenir — à chaque champ, sur chaque
   écran. Ce n'est pas un réglage de goût : c'est le comportement du système,
   et le seul moyen de l'éviter est de ne pas descendre sous seize.

   Seulement sur petit écran : la typographie du bureau, elle, est réglée. */
@media (max-width: 760px) {
  .combo-input,
  .acct-input,
  .acct-card input[type="text"],
  .acct-card input[type="email"],
  .acct-card input[type="password"],
  .acct-card select,
  .search-field input,
  input[type="date"],
  input[type="search"],
  textarea {
    font-size: 16px;
  }
}

/* ---------- en savoir plus, quand la fiche est courte ----------

   Une fiche de lieu sur deux n'offre aucun lien vers quoi que ce soit : elle
   vient d'un fonds cartographique et donne un nom, un point, une catégorie.
   Le bloc ne change pas de contenu selon les fiches, il change de POIDS — il
   occupe la place que le vide laisse. */

.plus {
  margin: 26px 0 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  padding: 16px 18px;
}
.plus-appuye { border-left: 3px solid var(--primary); }

.plus-titre {
  font-family: Nunito, sans-serif;
  font-weight: 800;
  font-size: 15px;
  margin: 0 0 3px;
}
.plus-note { margin: 0; font-size: 13.5px; color: var(--ink-muted); line-height: 1.55; }

.plus-boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
  align-items: center;
}

.plus-bouton,
.plus-ia > summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.plus-ia > summary::-webkit-details-marker { display: none; }
.plus-bouton:hover,
.plus-ia > summary:hover { border-color: var(--primary); color: var(--primary-ink); }

.plus-glyphe {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  flex: 0 0 auto;
}

.plus-caret { font-size: 9px; opacity: .75; }
.plus-ia[open] .plus-caret { transform: rotate(180deg); }

/* Le même repli natif que l'itinéraire : quatre assistants côte à côte
   feraient une rangée qui demande un choix de plus. */
.plus-ia { position: relative; }
.plus-ia-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 20;
  min-width: 180px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: 8px;
  display: grid;
  gap: 1px;
}
.plus-ia-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 14.5px;
  font-weight: 600;
}
.plus-ia-panel a:hover { background: var(--accent-soft); }
.plus-ia-panel a span { color: var(--ink-muted); font-size: 12px; }

.plus-caveat { margin: 11px 0 0; font-size: 12px; color: var(--ink-muted); line-height: 1.5; }

/* La fiche complète n'a pas besoin qu'on la double : une ligne suffit. */
.plus-discret {
  margin: 22px 0 4px;
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* Huit pixels de part et d'autre du point médian : à six, les deux liens
     soulignés se touchaient presque et formaient un seul mot à l'œil. */
  gap: 8px;
}
.plus-discret > a { color: var(--primary-ink); text-decoration: underline; text-underline-offset: 2px; }
.plus-sep { color: var(--ink-muted); opacity: .7; }
.plus-discret .plus-ia > summary {
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 400;
  color: var(--primary-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 480px) {
  .plus-boutons > * { flex: 1 1 100%; justify-content: center; }
  .plus-ia-panel { left: 0; right: 0; }
}

/* ---------- la fiche, remise dans l'ordre ----------

   Une fiche répond à quatre questions dans cet ordre : est-ce que ça me dit,
   est-ce que je peux, comment j'y vais, et après. L'ordre précédent les
   mélangeait — la carte, qui répond à la troisième, passait avant la
   description, qui répond à la première. */

/* La barre de décision : quatre réponses, une grille. */
.decision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 18px 0 22px;
}
.decision > div { background: var(--bg); padding: 12px 15px; }

.decision dt {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.decision dd {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.decision dd small {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-muted);
  margin-top: 1px;
}
.decision dd a { color: var(--primary-ink); font-weight: 600; }

/* Le temps de trajet occupe une case entière : c'est ce que le produit sait
   faire et que personne d'autre ne fait. */
.dec-trajet dd { color: var(--primary-ink); }

/* Une case qu'on ne sait pas remplir le DIT : un blanc se lit comme un oubli
   du service, « Non indiqué » dit que la source ne l'a pas donné. */
.dec-absent { font-weight: 400; color: var(--ink-muted); font-size: 13.5px; }
.dec-gratuit { color: var(--success); }

.detail-avec {
  font-size: 15px;
  margin: 0 0 18px;
}
.detail-avec span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-right: 6px;
}

/* Un titre transforme une décoration en information : six pastilles grises
   sans intitulé ne se lisaient pas, alors qu'elles portent les signaux qui
   décident. */
.savoir { margin: 26px 0 4px; }
.savoir > h2 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 9px;
}
.chip-fort {
  border-color: var(--success) !important;
  color: var(--success) !important;
  font-weight: 700;
}

.y-aller, .quand-detail, .garder { margin-top: 30px; }
.y-aller > h2, .quand-detail > h2, .garder > h2 {
  font-size: 17px;
  margin: 0 0 12px;
}

.y-aller-adresse { display: grid; gap: 2px; margin-bottom: 12px; font-size: 15px; }
.y-aller-adresse span { color: var(--ink-muted); font-size: 14px; }
.y-aller-horaires { margin-bottom: 14px; }

/* Aimer, partager, emporter : trois gestes pour une même intention — ne pas
   perdre cette sortie. Trois encadrés successifs les faisaient passer pour
   trois fonctionnalités sans rapport. */
.garder {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  padding: 18px 20px;
}
.garder-gestes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.garder-gestes .qr { margin: 0; }
.garder-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.5;
}

@media (max-width: 560px) {
  .decision { grid-template-columns: repeat(2, 1fr); }
  .garder-gestes > * { flex: 1 1 100%; }
  .garder-gestes .signal-group { display: flex; gap: 8px; }
  .garder-gestes .signal-group form { flex: 1; }
}

/* ---------- compléter une fiche de lieu ----------

   Quatre-vingt-dix-sept pour cent des lieux n'ont pas d'horaires, et ce sont
   les gens qui y vont qui les connaissent. Le bloc ne propose pas « suggérer
   une modification » : il nomme ce qui MANQUE, champ par champ. */

.completer {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 18px 20px;
}
.completer > h2 { font-size: 16px; margin: 0 0 4px; }
.completer-lede { font-size: 13.5px; color: var(--ink-muted); line-height: 1.55; margin: 0 0 12px; }

.completer-champ {
  border-top: 1px solid var(--line);
  padding: 2px 0;
}
.completer-champ > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
}
.completer-champ > summary::-webkit-details-marker { display: none; }

.completer-quoi { font-size: 14.5px; font-weight: 600; }
.completer-quoi small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-muted); }

.completer-ajouter {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: Nunito, sans-serif;
  color: var(--primary-ink);
}
.completer-champ > summary:hover .completer-ajouter { border-color: var(--primary); background: var(--accent-soft); }
.completer-champ[open] > summary .completer-ajouter { background: var(--accent-soft); }

.completer-champ form { padding: 4px 0 16px; }

.completer-etat {
  border-radius: var(--r-sm);
  padding: 11px 13px;
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 14px;
}
.completer-ok { background: var(--tint-ok); color: var(--tint-ok-ink); }
.completer-attente { background: var(--tint-warm); color: var(--ink); }
.completer-ko { background: var(--tint-ko); color: var(--tint-ko-ink); }

/* La provenance affichée : c'est elle qui protège d'une contribution fausse
   mais plausible, bien plus que l'automatisme. Elle dit d'où vient
   l'information et donne de quoi la contester. */
.completer-provenance {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* ---------- retouches d'assise de la fiche ---------- */

/* Ce qui manque se demande à qui peut y répondre, en une ligne discrète — et
   non par une case « Non indiqué » qui remplirait la barre de vide sur les
   fiches les plus pauvres, c'est-à-dire celles qui ont le moins à montrer. */
.decision-manque {
  margin: -12px 0 20px;
  font-size: 13px;
  color: var(--ink-muted);
}
.decision-manque a { color: var(--primary-ink); }

/* L'itinéraire sur la ligne de l'adresse : c'est là qu'on le cherche, au
   moment où l'on lit où c'est. */
.y-aller-ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.y-aller-ligne .y-aller-adresse { margin: 0; flex: 1 1 200px; }
.y-aller-ligne .directions { margin: 0 0 0 auto; }
.y-aller-ligne .directions > summary { height: 38px; padding: 0 16px; font-size: 14px; }
.y-aller-ligne .directions-panel { left: auto; right: 0; }

/* Quatre gestes pour une même intention prennent la même forme.

   Quatre formes différentes se lisaient comme quatre fonctionnalités sans
   rapport — et elles ne s'alignaient même pas : les deux pastilles de signal
   faisaient quarante-deux pixels de haut sous un filet et un retrait propres à
   leur groupe, les deux boutons trente-huit sans filet. La rangée penchait.

   Une seule silhouette, donc, et un seul repère de base. Ce qui distingue
   encore les deux natures est la couleur, pas la taille : « J'aime » se remplit
   quand il est posé, les autres restent cerclés. */
.garder-gestes .signal-group,
.garder-gestes .signal-group-lg {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
  gap: 8px;
}

.garder-gestes .chip,
.garder-gestes .signal-group-lg .chip,
.garder-gestes .btn,
.qr-bouton > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--r-full);
  font-family: Nunito, sans-serif;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.garder-gestes .chip:hover,
.garder-gestes .btn:hover,
.qr-bouton > summary:hover { border-color: var(--primary); color: var(--primary-ink); }

/* Les deux avis se remplissent, les deux actions restent cerclées.

   La même taille pour les quatre, mais pas le même poids : « J'aime » et « Pas
   pour moi » forment une paire — on choisit l'un OU l'autre — tandis que
   partager et emporter sont des gestes sans état. Le fond tiède les fait
   ressortir sans crier, et la bordure transparente leur garde exactement la
   même métrique que les autres. */
.garder-gestes .chip,
.garder-gestes .signal-group-lg .chip {
  background: var(--accent-soft);
  border-color: transparent;
}
.garder-gestes .chip:hover { background: var(--tint-warm); border-color: transparent; color: var(--ink); }

/* Posé : il se remplit franchement. C'est le seul des quatre qui porte un état. */
.garder-gestes .chip.on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.garder-gestes .chip.on:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }

/* Le panneau du code QR flotte au lieu de pousser.

   Ouvert, le `<details>` grandissait dans la rangée et faisait passer son
   propre bouton à la ligne : le geste déplaçait ce qu'on venait de cliquer.
   Posé en absolu, comme le panneau d'itinéraire, il se déplie par-dessus et la
   rangée ne bouge pas. */
.qr-bouton { margin: 0; border-top: 0; padding-top: 0; position: relative; }
.qr-bouton > summary { list-style: none; }
.qr-bouton > summary::-webkit-details-marker { display: none; }
.qr-bouton .qr-body {
  position: absolute;
  margin-top: 0;
  left: 0;
  top: calc(100% + 8px);
  z-index: 20;
  width: max-content;
  max-width: min(420px, calc(100vw - 48px));
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: 14px;
}
.qr-bouton > summary svg,
.garder-gestes .btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }


/* Les sorties de secours sur une seule ligne : trois liens discrets à trois
   alignements différents faisaient un désordre visible pour un usage rare. */
.secours {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 20px;
}
.secours .plus-discret { margin: 0; }
.secours .signaler { margin: 0; padding: 0; }
.secours .signaler > summary { font-size: 13px; }
.secours .plus { flex: 1 1 100%; }

/* Quarante pixels de marge et cinquante-six de fond entre deux sections
   faisaient quatre-vingt-seize pixels de vide — assez pour croire la page
   finie. */
.similar { margin-top: 34px; padding-bottom: 10px; }
.similar:last-of-type { padding-bottom: 40px; }

@media (max-width: 560px) {
  .y-aller-ligne .directions { margin: 0; width: 100%; }
  .y-aller-ligne .directions > summary { width: 100%; justify-content: center; }
  .y-aller-ligne .directions-panel { left: 0; right: auto; }
}

/* Le crédit photo, sur l'image.

   Il n'est pas décoratif : c'est la seule contrepartie que le photographe
   reçoive, et une image sans son crédit est une image qu'on n'a pas le droit
   de montrer. Posé en bas à droite, sur un voile assez sombre pour rester
   lisible sur n'importe quelle photo. */
.hero { position: relative; }
.hero-credit {
  position: absolute;
  right: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  background: rgba(23, 26, 36, .62);
  color: #fff;
  font-size: 10.5px;
  line-height: 1.4;
  padding: 3px 8px;
  border-radius: var(--r-full);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   L'espace diffuseur.

   Peu de classes neuves : les écrans réutilisent `acct-*` et `rel-*`, qui
   savent déjà faire une carte, une liste de membres et un bandeau d'état. Ne
   restent ici que trois formes qui n'existaient nulle part — le candidat au
   doublon, la tuile de chiffre, la barre de comparaison.
   --------------------------------------------------------------------------- */

.diff-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 22px; }

/* Le candidat au doublon : le score à gauche, parce que c'est lui qu'on lit
   d'abord, et les deux gestes à droite — reprendre, ou aller voir. */
.diff-doublon {
  display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.diff-doublon:last-child { border-bottom: 0; }
.diff-doublon .score {
  font-weight: 700; font-size: 18px; color: var(--primary-ink);
  min-width: 46px; text-align: center; line-height: 1.15;
}
.diff-doublon .score small { display: block; font-size: 10px; letter-spacing: .05em; color: var(--ink-muted); }
.diff-doublon .quoi { flex: 1 1 200px; font-size: 14.5px; }
.diff-doublon .quoi small { display: block; color: var(--ink-muted); font-size: 12.5px; margin-top: 2px; }
.diff-doublon-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.diff-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 20px; }
.diff-kpi { border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px 15px; background: var(--surface); }
.diff-kpi .n { display: block; font-weight: 700; font-size: 24px; letter-spacing: -.02em; line-height: 1.1; }
.diff-kpi .l { display: block; font-size: 12px; color: var(--ink-muted); margin-top: 3px; }
.diff-kpi .d { display: block; font-size: 11.5px; color: var(--ink-muted); margin-top: 3px; }

.diff-barre { display: grid; grid-template-columns: 1fr 44px; gap: 4px 10px; align-items: center; padding: 7px 0; }
.diff-barre .t { grid-column: 1; font-size: 13.5px; }
.diff-barre .piste { grid-column: 1; height: 6px; border-radius: var(--r-full); background: var(--line); overflow: hidden; }
.diff-barre .piste > span { display: block; height: 100%; background: var(--primary); border-radius: var(--r-full); }
.diff-barre .v { grid-column: 2; grid-row: 1 / 3; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-muted); font-size: 13px; }

/* « Publié par » sous la fiche : discret, mais lisible — c'est une mention de
   transparence, pas une signature décorative. */
.outing-diffuseur { font-size: 13.5px; color: var(--ink-muted); margin: 18px 0 0; }
.outing-diffuseur strong { color: var(--ink); font-weight: 600; }
.outing-diffuseur span {
  display: inline-block; margin-left: 6px; font-size: 11.5px;
  border: 1px solid var(--line); border-radius: var(--r-full); padding: 1px 8px;
}

/* La recherche dans les registres publics, sur la demande d'accès diffuseur.

   Encadrée et sur fond doux : c'est une aide au remplissage, pas un champ du
   formulaire. Sans cette distinction on la remplit en croyant répondre à une
   question, et on s'étonne que rien ne soit envoyé. */
.diff-registre {
  margin: 18px 0 6px;
  padding: 14px 16px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.diff-registre .acct-field { margin-top: 0; }
.diff-registre-etat { margin: 8px 0 0; font-size: 13px; color: var(--ink-muted); }
.diff-registre-liste { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.diff-registre-choix {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  cursor: pointer;
}
.diff-registre-choix:hover,
.diff-registre-choix:focus-visible { border-color: var(--primary); }
.diff-registre-choix strong { display: block; font-size: 14.5px; font-weight: 600; }
.diff-registre-choix small { display: block; font-size: 12.5px; color: var(--ink-muted); margin-top: 1px; }

/* Le passage entre le programme à venir et ce qui est terminé. Un lien discret
   et non un onglet : ce n'est pas une moitié de l'agenda, c'est une archive
   qu'on va chercher. */
.diff-filtre { margin: 0 0 12px; font-size: 13.5px; }

/* Un bouton d'envoi a besoin d'air, quoi qu'il suive et où qu'il soit.

   Cette règle a été écrite quatre fois et corrigée trois fois, chaque fois
   parce qu'elle énumérait quelque chose. D'abord ce qui PRÉCÈDE le bouton — un
   champ, puis un select, puis une case à cocher — et elle ratait la note
   explicative glissée entre le champ et le bouton, sur l'écran des clés d'API.
   Ensuite ce qui le CONTIENT — `.acct-card`, puis `.acct-details` — et elle
   ratait `.acct-block`, puis le formulaire de dépôt d'événement.

   Le défaut n'a jamais été dans le voisin ni dans le conteneur : il est dans
   l'enchaînement. Un bouton collé à ce qui le précède se lit comme la suite de
   cet élément, pas comme le geste qui l'achève.

   On vise donc le bouton lui-même, enfant direct d'un formulaire, dans tout
   l'espace du compte et du diffuseur — qui partagent le même gabarit. Plus
   rien à énumérer, et rien à rajouter au prochain écran.

   `.btn` est en `inline-flex` : sa marge ne fusionne pas avec celle de son
   voisin, elle s'y ajoute. Les notes portant déjà une marge basse, dix-huit
   points restent justes sans devenir un trou. */
.account-shell form > .btn { margin-top: 18px; }

/* Sauf quand le bouton EST le formulaire.

   Trente formulaires de ces écrans n'ont qu'une action — révoquer une clé,
   supprimer un agenda, basculer un réglage — et rien au-dessus d'elle. Leur
   bouton suit immédiatement le jeton anti-CSRF, qui est un champ CACHÉ : il
   n'y a rien à espacer, et la marge les décalerait tous sans raison.

   Le sélecteur le dit exactement : un bouton dont le voisin immédiat est
   invisible n'a personne dont se détacher. C'est plus sûr qu'une classe à
   poser à la main sur trente gabarits, qu'on oublierait sur le trente et
   unième. */
.account-shell form > input[type="hidden"] + .btn { margin-top: 0; }

/* ---------------------------------------------------------------------------
   L'emplacement publicitaire du fil.

   Quatre signaux d'identification, parce qu'un seul se rate : la marque
   colorée, le fond distinct, le filet à gauche, et le nom de l'annonceur.
   L'article 20 de la LCEN exige que la publicité soit IDENTIFIABLE — un mot en
   gris clair sous un titre ne l'est pas.

   L'encart ne prend jamais la forme exacte d'une carte : c'est ce qui empêche
   de s'y tromper, et cela vaut plus que l'homogénéité de la grille.
   --------------------------------------------------------------------------- */
.pub {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: var(--r-md);
  background: var(--bg);
  padding: 12px 14px;
}
.pub-marque {
  margin: 0 0 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--primary-ink);
}
.pub-marque span {
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink-muted);
  font-size: 12px;
  margin-left: 6px;
}
.pub-lien { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.pub-image { flex-shrink: 0; width: 76px; height: 76px; border-radius: var(--r-sm); overflow: hidden; background: var(--accent-soft); }
.pub-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-txt { min-width: 0; }
.pub-txt strong { display: block; font-size: 15px; line-height: 1.3; }
.pub-txt small { display: block; font-size: 13px; color: var(--ink-muted); margin-top: 3px; }

/* Une annonce sans fiche : encore plus éloignée de la carte, parce qu'elle ne
   décrit pas une sortie et ne doit pas en avoir l'air. */
.pub-annonce { border-left-color: var(--ink-muted); }
.pub-lien-annonce .pub-image { width: 100%; height: 120px; }
.pub-lien-annonce { display: block; }
.pub-lien-annonce .pub-txt { margin-top: 10px; }

.pub-adsense { border-left-color: var(--ink-muted); }

/*
 * Un emplacement qui ne reçoit rien disparaît.
 *
 * AdSense pose `data-ad-status="unfilled"` sur le `<ins>` quand il n'a pas
 * d'annonce à servir — un site en attente de validation, un créneau invendu,
 * un visiteur pour qui rien n'est enchéri. Sans cette règle, il restait un
 * grand cadre vide barré de « PUBLICITÉ », et **un trou se remarque plus
 * qu'une publicité** : la page annonce une réclame et n'en montre aucune, ce
 * qui est à la fois laid et légèrement malhonnête.
 *
 * `:has()` fait le travail sans JavaScript sur tous les navigateurs à jour ;
 * `js/pub.js` reprend la main sur les autres. Les deux visent le MÊME état, il
 * n'y a donc pas deux règles à tenir d'accord.
 */
.pub-adsense:has(> ins[data-ad-status="unfilled"]),
.pub-adsense.pub-vide { display: none; }

/*
 * Et tant que Google n'a pas tranché, rien ne se voit (maquette 54).
 *
 * Avant consentement — la plupart des visiteurs —, le script de la régie ne
 * part pas et l'attribut n'est jamais posé : Google, lui, a parfois déjà
 * réservé la hauteur de l'annonce. Il restait un cadre « Publicité » vide de
 * 450 px au milieu d'une fiche, et une case blanche dans une journée du fil.
 *
 * On ne masque pas (`display: none`) : un emplacement sans largeur ne se
 * remplit jamais. On l'efface — ni cadre, ni mention, ni hauteur — en lui
 * laissant sa largeur. Dès que l'annonce est « filled », ces règles cessent de
 * s'appliquer et l'encart paraît, mention comprise. Dans la grille du fil,
 * l'emplacement en attente occupe toute la ligne, à hauteur nulle, pour ne pas
 * creuser une case entre deux cartes.
 */
.pub-adsense:not(:has(> ins[data-ad-status="filled"])) {
  border-color: transparent;
  background: transparent;
  padding: 0;
  margin-block: 0;
  min-height: 0;
}
.pub-adsense:not(:has(> ins[data-ad-status="filled"])) > .pub-marque { display: none; }
.pub-adsense:not(:has(> ins[data-ad-status="filled"])) > ins { height: 0 !important; min-height: 0 !important; overflow: hidden; }
.pub-in-feed:not(:has(> ins[data-ad-status="filled"])) { grid-column: 1 / -1; }

/*
 * L'encart « in-feed » prend la place d'UNE CARTE, et non toute la largeur.
 *
 * C'est le sens même du format : une annonce native se range dans le flux
 * comme un élément du flux. En bande pleine largeur, ce n'était plus du
 * in-feed mais une bannière posée entre deux rangées — et le gabarit dessiné
 * dans AdSense, calé sur la forme d'une carte, s'y étirait sur mille pixels.
 *
 * Sur téléphone, la grille n'a qu'une colonne : la bande et la carte y ont de
 * toute façon la même largeur.
 */
.pub-in-feed { grid-column: auto; }

/* Les blocs de la régie : mêmes marques que les annonces locales, et de l'air
   autour. Une publicité collée à un titre se lit comme le début du contenu. */
.pub-in-article { margin: 26px 0; }
.pub-display,
.pub-multiplex { margin: 32px 0 8px; }
.pub-multiplex { border-left-color: var(--line); }

/* Dans le fil, le bloc occupe la largeur d'une rangée de cartes. */
.feed .pub { margin: 4px 0; }

/* Les formules d'une activité : un menu de liens, pas un paragraphe.

   Le prix aligné à droite se compare d'un coup d'œil — c'est le geste qu'on
   fait devant une carte : on lit la colonne des prix, puis on remonte au nom. */
.formules { margin-top: 26px; }
.formules-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.formules-liste li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.formules-liste a {
  flex: 1;
  color: var(--primary-ink);
  font-weight: 600;
  text-decoration: none;
}
.formules-liste a:hover { text-decoration: underline; }
.formules-prix { white-space: nowrap; font-variant-numeric: tabular-nums; }
.formules-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Une bannière de partenaire : contenue, jamais débordante.

   Les formats vont du 120×600 au 1200×1200 ; sans borne, une bannière carrée
   d'affiche occuperait un écran entier de téléphone. */
/* La marge est portée par la VARIANTE, pas par `.pub`.

   Dans le fil, `.pub` est une cellule de grille : l'espacement vient du `gap`,
   et lui donner une marge décalerait toute la rangée. Sur une fiche, elle est
   un bloc dans le flux normal — sans marge, elle colle au texte qui la
   précède, ce qui donne l'impression que la mention légale fait partie de
   l'encart. */
/* Le champ de fichier, habillé.

   Le contrôle natif — « Choisir un fichier · Aucun fichier choisi » — arrive
   avec les bordures grises du système, à côté de champs arrondis et souples.
   Il ne se remplace pas : on le laisse en place, et on habille le BOUTON qu'il
   contient, seul morceau que le navigateur accepte de styler.

   Le champ garde sa hauteur automatique : forcer celle des autres champs
   couperait le nom du fichier une fois choisi. */
.acct-input[type="file"] {
  padding: 8px 10px;
  line-height: 1.4;
  cursor: pointer;
}
.acct-input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  margin-right: 12px;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--r-full);
  background: var(--accent-soft);
  color: var(--primary-ink);
  transition: background .15s ease;
}
.acct-input[type="file"]::file-selector-button:hover {
  background: var(--primary);
  color: #fff;
}

.pub-banniere {
  text-align: center;
  margin: 22px 0;
}
.pub-banniere img {
  max-width: 100%;
  height: auto;
  max-height: 320px;
  width: auto;
  border-radius: var(--r-sm);
  /* `text-align` centre du contenu EN LIGNE ; la feuille met les images en
     bloc, et un bloc s'aligne à gauche quoi qu'en dise le parent. D'où les
     marges automatiques — le libellé « Publicité » était bien centré, l'image
     non, et la cause n'était pas là où on la cherchait. */
  margin-inline: auto;
}

/* L'emprunt de compte se voit, en permanence et sur toutes les pages.

   Oublier qu'on n'est pas chez soi et écrire un avis, supprimer une fiche ou
   changer un réglage au nom de quelqu'un d'autre est l'accident qui arrive
   vraiment — et il ne se répare pas d'un clic. La bannière est donc en haut,
   pleine largeur, dans une couleur qui n'existe nulle part ailleurs sur le
   site : on ne la confond avec aucun bandeau d'information. */
.emprunt {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: #7A2E00;
  color: #FFF3EA;
  font-size: 13.5px;
  line-height: 1.4;
  text-align: center;
}
.emprunt strong { color: #fff; }
.emprunt .btn { background: #fff; color: #7A2E00; }
.emprunt .btn:hover { background: #FFE6D5; color: #7A2E00; }

/* Le choix multiple de communes : des étiquettes, pas une liste déroulante.

   Le formulaire portait un `select multiple` de 2 430 lignes hautes de six. On
   n'y trouvait rien, un clic malheureux effaçait toute la sélection, et rien ne
   disait ce qui restait retenu une fois la liste refermée. */
.picker-choix {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
}
.picker-vide { color: var(--ink-muted); font-size: 13.5px; }
.picker-puce {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--accent-soft);
  color: var(--ink);
}
.picker-puce:hover { border-color: var(--primary); color: var(--primary-ink); }
.picker-puce span:last-child { color: var(--ink-muted); font-weight: 400; }

/* Neuf départements : on les voit tous d'un coup, et on en coche plusieurs
   sans risquer d'en perdre. */
.picker-cases { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.picker-case {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  cursor: pointer;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.picker-case:has(input:checked) {
  border-color: var(--primary);
  background: var(--accent-soft);
  color: var(--primary-ink);
  font-weight: 700;
}

/* ---------- La cloche des notifications ---------- */

/*
 * Un lien, pas un menu : la liste est une page, avec sa pagination et ses
 * réglages. Un panneau déroulant en montrerait cinq et finirait par un « voir
 * tout » qui mène au même endroit.
 */
.cloche {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  color: var(--ink-muted);
  flex: none;
}
.cloche:hover { background: var(--accent-soft); color: var(--ink); }
.cloche svg { width: 21px; height: 21px; }
.cloche:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Le compte ne paraît que s'il y a quelque chose : un « 0 » permanent finit
   par ne plus rien vouloir dire. */
.cloche-compte {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 17px;
  padding: 0 4px;
  border-radius: var(--r-full);
  background: var(--primary);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---------- Sortir à plusieurs (maquette 52) ---------- */
.sp-etapes { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sp-etapes li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.sp-etapes li > span { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--surface); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.sp-etapes strong { font-size: 15px; }
.sp-etapes p { margin: 2px 0 0; font-size: 14px; color: var(--ink-muted); }
.sp-nouvelle { margin-bottom: 8px; }
.sp-nouvelle > summary { list-style: none; cursor: pointer; display: flex; justify-content: center; width: 100%; }
.sp-nouvelle > summary::-webkit-details-marker { display: none; }
.sp-nouvelle[open] > summary { margin-bottom: 12px; }
.sp-progres { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.sp-progres-n { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-muted); }
.sp-progres-traits { display: flex; gap: 5px; }
.sp-progres-traits i { flex: 1; height: 5px; border-radius: 5px; background: var(--line); }
.sp-progres-traits i.fait { background: var(--primary); }
.sp-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.sp-nav .btn { flex: 1 1 auto; justify-content: center; }
.sp-nav .btn.btn-2 { flex: 0 0 auto; }
.sp-a-voter .plan-card { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); background: color-mix(in srgb, var(--primary) 5%, var(--surface)); }
.plan-card-tag.sp-voter { background: var(--primary); color: #fff; }
.sp-retenue { color: var(--success); font-weight: 700; }
.sp-passees { margin-top: 18px; }
@media (max-width: 520px) { .plan-card-caret { display: none; } }
.sp-passees > summary { cursor: pointer; font-weight: 800; color: var(--ink-muted); margin-bottom: 10px; }

/* ---------- Inviter, Mes relations (maquette 51) ---------- */
.rl-inviter { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 22px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 18px); }
.rl-inviter p { margin: 0; color: var(--ink-muted); max-width: 44ch; font-size: 15px; }
.rl-inviter-titre { font-family: var(--font-display, inherit); font-size: 21px; line-height: 1.2; }
.rl-visages { display: flex; align-items: center; }
.rl-visages .avatar { width: 48px; height: 48px; font-size: 16px; }
.rl-plus { width: 48px; height: 48px; border-radius: 50%; margin-left: -10px; display: grid; place-items: center; background: var(--accent-soft, #FFEDE4); color: var(--primary); font-size: 24px; font-weight: 700; border: 2px dashed color-mix(in srgb, var(--primary) 45%, transparent); }
.rl-envoyer { align-self: stretch; justify-content: center; }
.rl-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-self: stretch; }
.rl-deux .btn, .rl-qr > summary { width: 100%; justify-content: center; }
.rl-qr > summary { list-style: none; cursor: pointer; }
.rl-qr > summary::-webkit-details-marker { display: none; }
.rl-qr img { display: block; margin: 10px auto 0; background: #fff; border-radius: 10px; }
.rl-code { align-self: stretch; text-align: left; border-top: 1px solid var(--line); padding-top: 10px; }
.rl-code > summary { cursor: pointer; font-size: 14px; color: var(--ink-muted); }
.rl-code > summary span { font-weight: 800; color: var(--primary); }
.rl-code form { display: flex; gap: 8px; margin-top: 10px; }
.rl-code .acct-input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .08em; }
.rl-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rl-tete h1 { margin: 0; }
.rl-inviter-lien { font-weight: 800; white-space: nowrap; }
.rl-demande { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px; margin-bottom: 12px; border-radius: 14px; background: var(--accent-soft, #FFF1E9); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); }
.rl-demande > div:not(.rl-oui-non) { flex: 1 1 180px; display: flex; flex-direction: column; }
.rl-demande > div span { font-size: 13.5px; color: var(--ink-muted); }
.rl-oui-non { display: flex; gap: 8px; }
.rl-oui-non form { margin: 0; }
.rl-groupe { margin-top: 18px; }
.rl-liste { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 18px); overflow: hidden; }
.rl-personne + .rl-personne { border-top: 1px solid var(--line); }
.rl-personne > summary, .rl-attente { display: flex; align-items: center; gap: 12px; padding: 12px 14px; list-style: none; }
.rl-personne > summary { cursor: pointer; }
.rl-personne > summary::-webkit-details-marker { display: none; }
.rl-personne .avatar { flex: none; }
.rl-quoi { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rl-quoi strong { font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rl-quoi > span { font-size: 13.5px; color: var(--ink-muted); }
.rl-quoi .rl-gouts { color: #7A4A72; font-weight: 700; font-size: 13px; }
.rl-plus-geste { font-weight: 800; color: var(--ink-muted); padding: 4px 6px; border-radius: 8px; }
.rl-personne[open] .rl-plus-geste { background: var(--line); }
.rl-panneau { padding: 4px 14px 16px; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.rl-panneau-titre { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-muted); }
.rl-rangs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.rl-rangs form { margin: 0; }
.rl-rangs button { width: 100%; border: 0; background: none; font: inherit; font-weight: 800; font-size: 14px; padding: 8px 4px; border-radius: 9px; color: var(--ink-muted); cursor: pointer; }
.rl-rangs button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); cursor: default; }
.rl-panneau .acct-hint { margin: 0; }
.rl-panneau > .btn { justify-content: center; }
.rl-retirer { margin: 0; text-align: center; }
.rl-retirer .linkish { color: #B23A12; font-weight: 800; }
.rl-attente { opacity: .8; }
.rl-attente form { margin: 0; }
.rl-annuler, .linkish.rl-annuler { font-weight: 800; color: var(--primary); text-decoration: none; }
.rl-proposer { display: flex; justify-content: center; margin: 16px 0 0; }
.rl-inviter-replie { margin-top: 14px; }
.rl-inviter-replie > summary { list-style: none; cursor: pointer; display: flex; justify-content: center; padding: 11px 16px; border: 1.5px dashed var(--line); border-radius: 99px; font-weight: 800; }
.rl-inviter-replie > summary::-webkit-details-marker { display: none; }
.rl-inviter-replie[open] > summary { margin-bottom: 12px; }

/* ---------- API et widgets (maquette 50) ---------- */
.pg-nb.pg-nb-doux { background: var(--line); color: var(--ink-muted); }
.pg-onglets a[aria-selected="true"] .pg-nb.pg-nb-doux { background: rgba(255,255,255,.18); color: inherit; }
.api-quota { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; font-size: 14px; color: var(--ink-muted); margin: -4px 0 0; }
.api-quota strong { color: var(--ink); }
.api-quota a { font-weight: 800; margin-left: auto; }
.api-intro { margin: 0 0 12px; }
.api-vide { display: flex; flex-direction: column; gap: 3px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: 14px; color: var(--ink-muted); margin-bottom: 12px; }
.api-vide strong { color: var(--ink); font-size: 15px; }
.api-liste { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 18px); overflow: hidden; margin-bottom: 12px; }
.api-ligne { display: flex; align-items: center; gap: 12px; padding: 13px 16px; }
.api-ligne + .api-ligne { border-top: 1px solid var(--line); }
.api-ligne-quoi { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.api-ligne-quoi strong { font-size: 15px; }
.api-ligne-quoi > span { font-size: 13.5px; color: var(--ink-muted); overflow-wrap: anywhere; }
.api-ligne form { margin: 0; }
.api-geste, .linkish.api-geste { font-weight: 800; font-size: 14px; white-space: nowrap; color: var(--primary); text-decoration: none; }
.api-revoquee { opacity: .6; }
.api-portees { display: flex; flex-wrap: wrap; gap: 4px; }
.api-widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 18px); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.api-widget-tete { display: flex; align-items: flex-start; gap: 10px; }
.api-pill-ouvert { background: #FBEFD6; color: #8A5A00; }
.api-code-court { white-space: pre; overflow-x: auto; font-size: 12px; margin: 0; }
.api-gestes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.api-gestes form { margin: 0; }
.api-plus > summary, .api-aide > summary { cursor: pointer; font-weight: 800; font-size: 14px; color: var(--ink-muted); }
.api-plus[open] > summary { margin-bottom: 8px; }
.api-aide { margin-top: 14px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.api-aide[open] > summary { margin-bottom: 8px; }
.api-nouveau > summary { list-style: none; cursor: pointer; display: flex; justify-content: center; padding: 11px 16px; border: 1.5px dashed var(--line); border-radius: 99px; font-weight: 800; }
.api-nouveau > summary::-webkit-details-marker { display: none; }
.api-nouveau[open] > summary { margin-bottom: 10px; }
.api-licence { margin-top: 12px; font-size: 13px; color: var(--ink-muted); }

/* ---------- La porte unique : connexion et inscription (maquette 56) ---------- */
.auth-card.en { display: flex; flex-direction: column; gap: 14px; }
.en h1 { margin: 0; font-size: 28px; line-height: 1.15; }
.en-lede { margin: 0; color: var(--ink-muted); font-size: 15.5px; }
.en-centre { text-align: center; }
.en-carte { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.en-carte > label:not(.acct-check):not(.auth-check) { font-weight: 800; font-size: 14px; }
.en-carte .btn { justify-content: center; }
.en-note { margin: 0; font-size: 13px; color: var(--ink-muted); }
.en-captcha { min-height: 78px; }
.en-carte .en-note { text-align: center; }
.en-benef { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.en-benef div { display: flex; gap: 8px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; font-size: 13px; font-weight: 800; line-height: 1.25; }
.en-benef i { flex: 0 0 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft, #FFEDE4); color: var(--primary); }
.en-benef i svg { width: 16px; height: 16px; }
.en-contexte { display: flex; gap: 10px; align-items: center; padding: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.en-contexte img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.en-contexte div { display: flex; flex-direction: column; min-width: 0; }
.en-contexte span { font-size: 13px; color: var(--ink-muted); }
.en-contexte strong { font-size: 14.5px; line-height: 1.25; }
.en-rond { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; align-self: center; background: var(--accent-soft, #FFEDE4); color: var(--primary); }
.en-rond svg { width: 28px; height: 28px; }
.en-mail { display: flex; flex-direction: column; gap: 8px; }
.en-mail form { margin: 0; display: flex; }
.en-mail .btn { justify-content: center; }
.en-mail form .btn { flex: 1; }
.en-cgu a { text-decoration: underline; text-underline-offset: 2px; color: inherit; font-weight: 700; }
.en-sep { display: flex; align-items: center; gap: 10px; color: var(--ink-muted); font-size: 13px; }
.en-sep::before, .en-sep::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.en-code-champ { text-align: center; font-size: 26px !important; font-weight: 800; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.en-etapes { display: flex; gap: 5px; }
.en-etapes i { flex: 1; height: 5px; border-radius: 5px; background: var(--line); }
.en-etapes i.fait { background: var(--primary); }
.en-compte { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--ink-muted); }
.en-compte b { color: var(--ink); overflow-wrap: anywhere; }
.en-compte a { margin-left: auto; font-weight: 800; }
.en-portee { margin: 0; background: var(--accent-soft, #FFF1E9); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.en-facultatif { font-weight: 600; color: var(--ink-muted); }

/* ---------- Mon agenda (maquette 57) ---------- */
.ag-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ag-tete h1 { margin: 0; }
.ag-vue { display: flex; padding: 3px; gap: 3px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.ag-vue a { padding: 6px 14px; border-radius: 9px; font-weight: 800; font-size: 14px; color: var(--ink-muted); text-decoration: none; }
.ag-vue a[aria-current="page"] { background: var(--ink); color: var(--surface); }
.ag-rappel { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: #FBEFD6; color: #5C3D00; font-size: 14.5px; margin: 0 0 6px; text-decoration: none; }
.ag-rappel b { color: #3F2A00; }
.ag-rappel-geste { margin-left: auto; font-weight: 800; white-space: nowrap; }
.ag-ic { display: grid; place-items: center; flex: none; }
.ag-ic svg { width: 20px; height: 20px; }
h2.ag-titre, .ag-titre { font-family: inherit; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin: 20px 0 8px; }
.ag-liste { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 18px); overflow: hidden; }
.ag-l { display: flex; align-items: flex-start; gap: 12px; padding: 11px 12px; }
.ag-l + .ag-l { border-top: 1px solid var(--line); }
.ag-vignette { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; flex: none; }
.ag-vignette-vide { display: grid; place-items: center; background: color-mix(in srgb, var(--cat) 14%, var(--surface)); color: var(--cat); }
.ag-vignette-vide svg { width: 26px; height: 26px; }
.ag-l-quoi { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ag-l-quoi a { color: inherit; text-decoration: none; }
.ag-l-quoi strong { font-size: 15px; line-height: 1.25; }
.ag-l-quoi > span { font-size: 13px; color: var(--ink-muted); }
.ag-puce, .ag-choix > summary { align-self: flex-start; margin-top: 4px; font-size: 12px; font-weight: 800; color: #8A5A00; background: #FBEFD6; border-radius: 99px; padding: 3px 9px; }
.ag-puce.ok, .ag-choix > summary.ok { color: #1D6B45; background: #E3F1E8; }
.ag-choix > summary { list-style: none; cursor: pointer; display: inline-block; }
.ag-choix > summary::-webkit-details-marker { display: none; }
.ag-feuille { margin-top: 10px; padding: 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.ag-feuille-t { margin: 0; font-weight: 800; font-size: 15px; }
.ag-feuille-s { margin: 0; font-size: 13px; color: var(--ink-muted); }
.ag-jours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ag-jours form { margin: 0; }
.ag-jours button { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 2px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-weight: 800; font-size: 13px; color: var(--ink); cursor: pointer; }
.ag-jours button small { font-weight: 700; color: var(--ink-muted); font-size: 11px; }
.ag-jours button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.ag-jours button[aria-pressed="true"] small { color: inherit; opacity: .8; }
.ag-sans { font-size: 13px; color: var(--ink-muted); }
.ag-passees { margin-top: 18px; }
.ag-passees > summary { cursor: pointer; font-weight: 800; color: var(--ink-muted); margin-bottom: 10px; }
.ag-export { margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.ag-export > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.ag-export > summary::-webkit-details-marker { display: none; }
.ag-export-quoi { flex: 1; display: flex; flex-direction: column; }
.ag-export-quoi span { font-size: 13px; color: var(--ink-muted); }
.ag-export-corps { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.ag-export-corps .btn { justify-content: center; }
.ag-export-corps form { margin: 0; }
.ag-cal .cal-grid { gap: 4px; }
.ag-c { aspect-ratio: 1; border-radius: 10px; display: flex; flex-direction: column; align-items: center; padding-top: 6px; gap: 4px; font-size: 13px; font-weight: 700; background: var(--bg); color: var(--ink); text-decoration: none; }
.ag-c.hors { opacity: .35; }
.ag-c.auj { box-shadow: inset 0 0 0 2px var(--primary); }
.ag-c.choisi { background: var(--ink); color: var(--surface); }
.ag-c i { display: flex; gap: 2px; }
.ag-c i b { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.ag-c i b.long { background: #C0266D; }
.ag-c.choisi i b { background: var(--surface); }
.ag-leg { display: flex; gap: 14px; font-size: 12px; color: var(--ink-muted); margin: 10px 4px 0; }
.ag-leg b { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-right: 5px; }
.ag-leg b.leg-long { background: #C0266D; }

/* ---------- Mise en avant (maquette 55) ---------- */

.ma-etapes { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
.ma-etapes-n { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-muted); }
.ma-etapes-traits { display: flex; gap: 5px; }
.ma-etapes-traits i { flex: 1; height: 5px; border-radius: 5px; background: var(--line); }
.ma-etapes-traits i.fait { background: var(--primary); }
.ma-segments { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 14px; }
.ma-segments span { text-align: center; font-weight: 800; font-size: 14px; padding: 9px 4px; border-radius: 9px; color: var(--ink-muted); }
.ma-segments span.oui { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.ma-q { font-family: var(--font-display, inherit); font-size: 21px; margin: 0 0 4px; }
.ma-sous { margin: 0 0 14px; color: var(--ink-muted); font-size: 14.5px; }
.ma-fiches { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.ma-fiche { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; }
.ma-fiche.oui { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent); }
.ma-fiche img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }
.ma-fiche div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ma-fiche strong { font-size: 15px; line-height: 1.25; }
.ma-fiche span { font-size: 13px; color: var(--ink-muted); }
.ma-fiche .ma-rond { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.ma-fiche.oui .ma-rond { border-color: var(--primary); background: radial-gradient(circle, var(--primary) 45%, transparent 50%); }
.ma-grise { opacity: .55; }
.ma-apercu { background: var(--bg); border: 1px dashed var(--line); border-radius: 16px; padding: 12px; margin-bottom: 16px; }
.ma-apercu-t { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 8px; }
.ma-apercu .pub { margin: 0; }
.ma-bas { display: flex; gap: 8px; margin-top: 8px; }
.ma-bas .btn { flex: 1; justify-content: center; white-space: nowrap; }
.ma-bas .btn.btn-2 { flex: 0 0 auto; padding-inline: 16px; }
.ma-bas .btn { min-width: 0; }
.ma-champ { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ma-champ label { font-weight: 800; font-size: 14px; }
.ma-portee { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 16px; }
.ma-portee-l { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; color: var(--ink-muted); }
.ma-portee-l b { color: var(--ink); }
.ma-prix { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.ma-prix strong { font-size: 24px; }
.ma-prix span { color: var(--ink-muted); font-size: 13.5px; }
.ma-paliers { display: flex; gap: 4px; margin-top: 8px; }
.ma-paliers i { flex: 1; height: 6px; border-radius: 6px; background: var(--line); }
.ma-paliers i.oui { background: var(--primary); }
.ma-paliers-l { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-muted); }
.ma-puces { display: flex; flex-wrap: wrap; gap: 6px; }
.ma-puces span { padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 800; font-size: 14px; }
.ma-puces span.oui { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.ma-pas { display: flex; align-items: center; gap: 10px; }
.ma-pas > span { font-weight: 700; color: var(--ink-muted); }
.ma-recap { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 14px; }
.ma-recap-l { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; font-size: 14.5px; }
.ma-recap-l + .ma-recap-l { border-top: 1px solid var(--line); }
.ma-recap-l span { color: var(--ink-muted); }
.ma-recap-l b { text-align: right; }
.ma-recap-total { background: var(--bg); }
.ma-recap-total b { font-size: 18px; }
.ma-rassure { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--ok-soft, #E3F1E8); color: #14502F; font-size: 14px; margin-bottom: 14px; }
.ma-camp { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.ma-camp-tete { display: flex; gap: 12px; align-items: center; }
.ma-camp-tete img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.ma-camp-tete div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ma-camp-tete strong { font-size: 15px; line-height: 1.25; }
.ma-camp-tete span { font-size: 13px; color: var(--ink-muted); }
.ma-frise { display: flex; align-items: center; gap: 0; }
.ma-frise span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: var(--ink-muted); text-align: center; position: relative; }
.ma-frise span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--line); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); z-index: 1; }
.ma-frise span.fait::before { background: var(--success); box-shadow: 0 0 0 1px var(--success); }
.ma-frise span.ici::before { background: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.ma-frise span.fait, .ma-frise span.ici { color: var(--ink); }
.ma-frise span + span::after { content: ""; position: absolute; top: 7px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.ma-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ma-chiffres div { background: var(--bg); border-radius: 10px; padding: 8px; text-align: center; }
.ma-chiffres b { display: block; font-size: 18px; }
.ma-chiffres span { font-size: 11.5px; color: var(--ink-muted); }
.ma-exemple { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8A5A00; background: #FBEFD6; padding: 3px 8px; border-radius: 99px; margin-bottom: 10px; }
.ma-plus { list-style: none; cursor: pointer; font-weight: 800; color: var(--ink-muted); }

.ma-segments label, .ma-puces label { position: relative; cursor: pointer; }
.ma-segments input, .ma-puces input, .ma-fiche input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ma-segments span { display: block; text-align: center; font-weight: 800; font-size: 14px; padding: 9px 4px; border-radius: 9px; color: var(--ink-muted); }
.ma-segments input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.ma-segments input:focus-visible + span, .ma-puces input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.ma-puces span { display: inline-block; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 800; font-size: 14px; }
.ma-puces input:checked + span { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.ma-puces { margin-bottom: 14px; }
.ma-fiche { cursor: pointer; position: relative; }
.ma-fiche:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent); }
.ma-fiche:has(input:checked) .ma-rond { border-color: var(--primary); background: radial-gradient(circle, var(--primary) 45%, transparent 50%); }
.ma-fiche-quoi { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ma-fiche-quoi strong { font-size: 15px; line-height: 1.25; }
.ma-fiche-quoi span { font-size: 13px; color: var(--ink-muted); }
.ma-fiche-vide { width: 64px; height: 64px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; flex: none; font-weight: 800; color: var(--ink-muted); }
.ma-vide { margin: 0 0 12px; color: var(--ink-muted); font-size: 14.5px; }
.ma-annonce { display: flex; flex-direction: column; margin-bottom: 14px; }
.ma-apercu [hidden] { display: none !important; }
.ma-prix small { font-size: 14px; font-weight: 700; }
.ma-pas input { width: 70px; text-align: center; font-weight: 800; font-size: 18px; }
.ma-pas-b { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 20px; font-weight: 800; cursor: pointer; color: var(--ink); }
.ma-pas { margin-bottom: 14px; }
.ma-recap-alerte { background: #FBEFD6; color: #5C3D00; }
.ma-etape { display: flex; flex-direction: column; }
.ma-etape + .ma-etape { margin-top: 26px; }
.ma-pas-a-pas .ma-etape + .ma-etape { margin-top: 0; }
.ma-plus > summary { cursor: pointer; font-weight: 800; color: var(--ink-muted); font-size: 14px; margin: 4px 0 8px; }
.ma-tarifs { margin-top: 4px; }
.ma-envoyer { justify-content: center; }

.ma-nouvelle { display: flex; justify-content: center; margin: 4px 0 18px; }
.ma-camp-chaude { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.ma-camp-neuve { box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent); }
.ma-camp form { margin: 0; }
.ma-regler { width: 100%; justify-content: center; }
.ma-camp-note { margin: 0; text-align: center; }
.ma-achete { margin-top: 18px; }

/* ---------- Espace diffuseur (maquette 50) ---------- */
.df-org-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.df-org-tete h2 { margin: 0; font-size: 21px; line-height: 1.2; }
.df-org-tete > div > span { font-size: 14px; color: var(--ink-muted); }
.df-org-logo { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--surface); display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; }
.df-ok { color: var(--success); }
.df-attente { color: #8A5A00; }
.df-agenda { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 18px); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.df-agenda-tete h3 { margin: 0; font-size: 17px; }
.df-agenda-tete h3 a { color: inherit; text-decoration: none; }
.df-agenda-tete span { font-size: 13.5px; color: var(--ink-muted); }
.df-vide { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft, #FFF1E9); font-size: 14px; color: var(--ink-muted); }
.df-vide strong { color: var(--ink); font-size: 15px; }
.df-fiches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.df-fiches li { display: flex; flex-direction: column; padding: 8px 0; border-top: 1px solid var(--line); }
.df-fiches li:first-child { border-top: 0; padding-top: 0; }
.df-fiches a { font-weight: 700; color: inherit; }
.df-fiches span { font-size: 12.5px; color: var(--ink-muted); }
.df-gestes { display: flex; gap: 8px; flex-wrap: wrap; }
.df-gestes .btn { flex: 1 1 140px; justify-content: center; white-space: nowrap; }
.df-liens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.df-liens a { text-align: center; padding: 8px 4px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-weight: 800; font-size: 13.5px; color: inherit; text-decoration: none; }
.df-creer > summary { list-style: none; cursor: pointer; display: flex; justify-content: center; padding: 11px 16px; border: 1.5px dashed var(--line); border-radius: 99px; font-weight: 800; }
.df-creer > summary::-webkit-details-marker { display: none; }
.df-creer[open] > summary { margin-bottom: 10px; }
.df-promo { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; }
.df-promo > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.df-promo strong { font-size: 15px; }
.df-promo span span { font-size: 13.5px; color: var(--ink-muted); }
.df-promo-ic { width: 36px; height: 36px; border-radius: 10px; background: #FFEDE4; color: #B23A12; display: grid; place-items: center; flex: none; }
.df-promo-ic svg { width: 19px; height: 19px; }
.df-fleche { font-weight: 800; color: var(--ink-muted); font-size: 18px; }

/* ---------- Sécurité (maquette 50) ---------- */
.sec-bandeau { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; margin: 0 0 14px; }
.sec-bandeau > div { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; }
.sec-bandeau strong { font-size: 15.5px; }
.sec-bandeau span { font-size: 14px; }
.sec-bandeau-ok { background: #E3F1E8; color: #14502F; }
.sec-bandeau-attention { background: #FBEFD6; color: #5C3D00; }
.sec-bandeau-ic { width: 36px; height: 36px; border-radius: 10px; background: #fff; display: grid; place-items: center; flex: none; }
.sec-bandeau-ic svg { width: 19px; height: 19px; }
.sec-rangs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 18px); overflow: hidden; }
.sec-rang { display: flex; align-items: center; gap: 12px; padding: 13px 16px; }
.sec-rang + .sec-rang { border-top: 1px solid var(--line); }
.sec-rang-quoi { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sec-rang-quoi strong { font-size: 15px; }
.sec-rang-quoi span { font-size: 13.5px; color: var(--ink-muted); overflow-wrap: anywhere; }
.sec-rang-bientot .sec-rang-quoi strong { color: var(--ink-muted); }
.sec-geste, .linkish.sec-geste { font-weight: 800; font-size: 14px; white-space: nowrap; color: var(--primary); text-decoration: none; }
.sec-rang form { margin: 0; }
/* La ligne qui se déplie : la double authentification et, dedans, la désactiver. */
details.sec-rang { display: block; padding: 0; }
details.sec-rang > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; }
details.sec-rang > summary::-webkit-details-marker { display: none; }
details.sec-rang > summary::after { content: "›"; font-weight: 800; color: var(--ink-muted); transition: transform .15s ease; }
details.sec-rang[open] > summary::after { transform: rotate(90deg); }
.sec-desactiver { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sec-desactiver .acct-input { max-width: 220px; }
.sec-appareil-ic { width: 34px; height: 34px; border-radius: 10px; background: #E6EEF1; color: #2E6E8E; display: grid; place-items: center; flex: none; }
.sec-appareil-ic svg { width: 18px; height: 18px; }
.sec-note { margin-top: 10px; }

/* ---------- En ce moment, dans le fil (maquette 54) ---------- */
/* L'explication du classement, dans une bulle « ? » (maquette 54). La note
   reste dans la page — lecteurs d'écran, pages sans script —, mais cachée
   visuellement et reprise dans la bulle quand on l'ouvre. */
.sb-aide { display: inline-block; position: relative; vertical-align: middle; margin-left: 4px; }
.sb-aide > summary { list-style: none; cursor: pointer; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 11px; font-weight: 800; opacity: .7; }
.sb-aide > summary::-webkit-details-marker { display: none; }
.sb-aide-texte { position: absolute; left: 0; top: 26px; z-index: 20; width: min(280px, 80vw); padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 30px -12px rgba(0,0,0,.3); font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.sb-compte { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-muted); }
.sb-aide-texte.sort-note { display: block; font-size: 13.5px; color: var(--ink); }

.ecm-rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 12px; scrollbar-width: thin; }
.ecm-rail > .card { flex: 0 0 min(80%, 300px); scroll-snap-align: start; }

/* ---------- Mon compte (maquette 49, variante A) ---------- */
.mc-tete p a { font-weight: 800; }
.mc-bloc { margin-top: 22px; }
.acct-block > h2.mc-titre, .mc-titre { font-family: inherit; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 8px; }
.acct-settings-title.mc-titre { margin-top: 26px; font-size: 12px; }
.mc-prochaine { padding: 6px; }
.mc-prochaine .acct-outing { margin: 0; }
.mc-rien { margin: 0; padding: 10px 12px; color: var(--ink-muted); font-size: 14.5px; }
.mc-rien strong { display: block; color: var(--ink); font-size: 15px; }
.mc-pied { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 0; padding: 10px 12px 6px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-muted); }
.mc-pied a { font-weight: 800; white-space: nowrap; }
.mc-tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
@media (min-width: 640px) { .mc-tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mc-tuile { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; min-width: 0; }
.mc-tuile:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.mc-tuile strong { font-size: 15px; line-height: 1.25; }
.mc-etat { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-muted); overflow-wrap: anywhere; }
.mc-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; margin-bottom: 4px; }
.mc-ic svg { width: 18px; height: 18px; }
.mc-bleu { background: #E6EEF1; color: #2E6E8E; }
.mc-ambre { background: #FBEFD6; color: #8A5A00; }
.mc-violet { background: #EDE7F4; color: #5B4287; }
.mc-orange { background: #FFEDE4; color: #B23A12; }
.mc-vert { background: #E3F1E8; color: #1D6B45; }
.mc-ajouter { margin-top: 10px; }
.mc-ajouter > summary { list-style: none; cursor: pointer; display: inline-flex; }
.mc-ajouter > summary::-webkit-details-marker { display: none; }
.mc-ajouter[open] > summary { margin-bottom: 8px; }
/* Les réglages : une carte, une ligne par volet. */
.mc-reglages { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 18px); overflow: hidden; }
.mc-reglages > .rel-privacy { margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.mc-reglages > .rel-privacy + .rel-privacy { border-top: 1px solid var(--line); }
.mc-reglages > .rel-privacy > summary { position: relative; padding-right: 22px; }
.mc-reglages > .rel-privacy > summary::after { content: "›"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--ink-muted); transition: transform .15s ease; }
.mc-reglages > .rel-privacy[open] > summary::after { transform: translateY(-50%) rotate(90deg); }

/* ---------- Mes notifications (maquette 48) ---------- */
.nt-tout-lire { display: flex; justify-content: flex-end; margin: -6px 0 4px; }
.nt-tout-lire .linkish { font-size: 14px; font-weight: 800; }
.pg-onglets { display: flex; gap: 4px; padding: 4px; margin: 14px 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.pg-onglets a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; border-radius: 10px; font-weight: 800; font-size: 15px; color: var(--ink-muted); text-decoration: none; }
.pg-onglets a[aria-selected="true"] { background: var(--ink); color: var(--surface); }
.pg-nb { background: var(--primary); color: #fff; border-radius: 99px; padding: 0 7px; font-size: 12px; line-height: 1.6; }
.nt-jour { font-family: inherit; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin: 18px 0 8px; }
.nt-jour:first-child { margin-top: 0; }
.nt-liste { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 18px); overflow: hidden; }
.nt { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; color: inherit; text-decoration: none; }
.nt + .nt { border-top: 1px solid var(--line); }
.nt:hover { background: var(--bg); }
.nt-neuve { background: color-mix(in srgb, var(--primary) 5%, var(--surface)); }
.nt-ic { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--line); color: var(--ink-muted); }
.nt-ic svg { width: 19px; height: 19px; }
.nt-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nt-txt strong { font-size: 15px; line-height: 1.35; }
.nt-corps { font-size: 14px; color: var(--ink-muted); line-height: 1.45; }
.nt-quand { font-size: 12.5px; color: var(--ink-muted); }
.nt-point { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); margin-top: 6px; }
/* La couleur du sujet : on reconnaît un mot de voyageur avant de le lire. */
.nt-livret .nt-ic, .nt-ic.nt-livret { background: #E6EEF1; color: #2E6E8E; }
.nt-rappel .nt-ic, .nt-ic.nt-rappel { background: #FBEFD6; color: #8A5A00; }
.nt-digest .nt-ic, .nt-ic.nt-digest, .nt-relation .nt-ic, .nt-ic.nt-relation, .nt-diffuseur .nt-ic, .nt-ic.nt-diffuseur { background: #EDE7F4; color: #5B4287; }
.nt-annonce .nt-ic, .nt-ic.nt-annonce, .nt-campagne .nt-ic, .nt-ic.nt-campagne { background: #FFEDE4; color: #B23A12; }
.nt-compte .nt-ic, .nt-ic.nt-compte, .nt-revendication .nt-ic, .nt-ic.nt-revendication { background: #E3F1E8; color: #1D6B45; }
.nt-vide { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 28px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 18px); }
.nt-vide p { margin: 0; color: var(--ink-muted); max-width: 42ch; }
.nt-vide .nt-ic { background: #FBEFD6; color: #8A5A00; }

.nt-appareil { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin: 0 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.nt-appareil .nt-ic { background: #FBEFD6; color: #8A5A00; }
.nt-appareil-quoi { flex: 1 1 180px; display: flex; flex-direction: column; font-size: 14px; color: var(--ink-muted); }
.nt-appareil-quoi strong { color: var(--ink); font-size: 15px; }
.nt-appareil-quoi small { font-size: 12.5px; }
.nt-grille { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 18px); overflow: hidden; border-style: hidden; box-shadow: 0 0 0 1px var(--line); }
.nt-grille thead th { font-size: 12px; font-weight: 800; color: var(--ink-muted); text-align: center; padding: 10px 4px 8px; border-bottom: 1px solid var(--line); }
.nt-grille thead th:first-child { text-align: left; padding-left: 14px; }
.nt-grille thead th:last-child { padding-right: 12px; }
.nt-grille tbody tr + tr { border-top: 1px solid var(--line); }
.nt-grille tbody th { text-align: left; font-weight: inherit; padding: 11px 6px 11px 14px; }
.nt-grille td { text-align: center; padding: 11px 4px; width: 62px; }
.nt-grille td:last-child { padding-right: 12px; }
.nt-grille .lv-bascule { display: inline-block; }
.nt-sujet { display: flex; align-items: flex-start; gap: 10px; }
.nt-sujet .nt-ic { flex-basis: 30px; width: 30px; height: 30px; border-radius: 9px; }
.nt-sujet .nt-ic svg { width: 16px; height: 16px; }
.nt-sujet strong { display: block; font-size: 14.5px; line-height: 1.3; }
.nt-sujet small { display: block; font-size: 12.5px; color: var(--ink-muted); line-height: 1.4; margin-top: 2px; }
.nt-toujours { display: block; font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-muted); margin-top: 2px; }
.nt-grille td.nt-eteint { width: auto; font-size: 13px; color: var(--ink-muted); text-align: right; }
.lv-bascule input:disabled + span { opacity: .55; cursor: not-allowed; }
.nt-bas { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-height: 24px; margin-top: 10px; }
.nt-etat { font-size: 13.5px; font-weight: 800; color: var(--success); }
@media (max-width: 520px) {
  /* Sur téléphone, l'explication d'un sujet tiendrait sur cinq lignes à côté
     de trois interrupteurs : le titre suffit, l'icône dit le reste. */
  .nt-sujet small { display: none; }
  .nt-sujet .nt-ic { display: none; }
  .nt-grille td { width: 52px; padding-inline: 2px; }
  .nt-grille thead th { font-size: 11px; }
}

/* ---------- Le bandeau d'installation ---------- */

/*
 * En bas et non en haut : il ne pousse pas le fil, et le pouce l'atteint sur
 * un téléphone. Il ne paraît que si le navigateur a proposé l'installation —
 * `[hidden]` le tient jusque-là, et la règle globale en tête de cette feuille
 * garantit que `display: flex` ne le contredit pas.
 */
.install {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -12px rgba(23, 26, 36, .35);
}
@media (min-width: 720px) {
  .install { left: auto; right: 20px; bottom: 20px; max-width: 420px; }
}

.install-ic img { display: block; border-radius: var(--r-md); }
.install-txt { display: flex; flex-direction: column; gap: 2px; flex: 1 1 180px; min-width: 0; }
.install-txt strong { font-size: 15px; }
.install-txt span { font-size: 13px; color: var(--ink-muted); line-height: 1.45; }
.install-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* La bannière de consentement occupe déjà le bas de l'écran : les deux
   superposées cacheraient la page. Celle-ci monte au-dessus. */
.consent ~ .install,
body:has(.consent) .install { bottom: 96px; }

/* ---------- « Ce que vos voyageurs ont envoyé » ---------- */

.env-sommaire { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.env-sommaire a {
  display: inline-flex; gap: 7px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r-full, 999px);
  padding: 6px 12px; font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; background: var(--surface);
}
.env-sommaire a:hover { border-color: var(--primary); }
.env-sommaire span { font-weight: 700; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.env-sommaire span.env-chaud { color: var(--primary); }
.env-titre { font-size: 18px; margin: 30px 0 10px; scroll-margin-top: 90px; }
.env-carte.env-regle { opacity: .6; }
.env-photo { display: block; margin-top: 10px; max-width: 320px; }
.env-photo img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.env-ecart { font-size: 14px; margin: 6px 0 0; }
.env-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.env-plan { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.env-plan:first-child { border-top: 0; padding-top: 0; }
.env-plan .acct-outing-meta { display: block; }
.env-plan-compte { font-size: 13.5px; font-variant-numeric: tabular-nums; display: flex; gap: 8px; align-items: center; }
.lv-plan-pdf { margin-top: 6px; font-size: 13px; color: var(--ink-muted); display: flex; flex-direction: column; gap: 4px; }
.lv-plan-pdf input[type="file"] { display: block; margin-top: 4px; font-size: 13px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); text-decoration: underline; cursor: pointer; }

/* ==================== L'atelier du livret (maquette 42) ====================

   Un outil de travail, pas une page de réglages : il sort de la colonne de
   680 pixels des pages du compte. Trois colonnes à partir de 1 100 pixels —
   la liste, la rubrique ouverte, l'aperçu —, et en dessous la liste puis la
   rubrique, un écran à la fois. */

.detail.account-shell.atelier-shell { max-width: 1480px; }
/* Les 20 px de plus ne servent qu'au grand écran à trois colonnes : sur un
   téléphone, ils s'ajoutaient à la marge de la page et mangeaient la liste. */
@media (min-width: 1100px) {
  .detail.account-shell.atelier-shell { padding-left: 20px; padding-right: 20px; }
}

/* Les pastilles d'état (En ligne, Brouillon, un compteur). Elles n'étaient
   définies que dans le CSS du back-office : côté public, 23 d'entre elles
   s'affichaient en texte brut. */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 800; line-height: 1.5; white-space: nowrap; vertical-align: middle; background: var(--line); color: var(--ink-muted); }
.pill-on { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.pill-off { background: var(--line); color: var(--ink-muted); }
.pill-warn { background: var(--primary); color: #fff; }

.at-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 4px 0 16px; }
.at-ident { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.at-nom { font-size: 24px; margin: 0; }
.at-lien { font-size: 13px; color: var(--ink-muted); }
.at-copier { font-size: 13px; }
/* En ligne / hors ligne : à côté du statut qu'il change, pas parmi les outils. */
.at-statut { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; flex-basis: 100%; order: 3; }
.at-hors-ligne { font-size: 13px; color: var(--ink-muted); }
.at-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.at-actions .pill { margin-left: 4px; }

.at-corps { display: block; }

/* La liste */
.at-rail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 18px); padding: 12px 8px; }
.at-jauge { display: flex; flex-direction: column; gap: 5px; padding: 2px 8px 10px; font-size: 13px; color: var(--ink-muted); }
.at-jauge strong { color: var(--ink); }
.at-jauge-barre { height: 5px; background: var(--line); border-radius: 99px; overflow: hidden; }
.at-jauge-barre i { display: block; height: 100%; background: var(--success); }
.at-reprise { display: block; margin: 0 4px 6px; padding: 9px 11px; border-radius: 11px; background: var(--accent-soft, #FFF1E9); font-size: 13px; color: var(--ink); text-decoration: none; }
.at-groupe { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin: 14px 10px 5px; }
.at-liste { display: flex; flex-direction: column; }
.at-ligne {
  display: flex; align-items: center; gap: 9px;
  width: 100%; text-align: left; font: inherit; color: var(--ink);
  background: none; border: 0; border-radius: 11px;
  padding: 7px 8px; cursor: pointer; min-height: 42px;
}
.at-ligne:hover { background: var(--bg, #F6F4F1); }
.at-ligne.at-choisie { background: #E9F0F4; box-shadow: inset 3px 0 0 #2D6E8E; }
.at-ligne:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.at-ligne.at-tiree { opacity: .45; }
.at-ligne.at-eteinte .at-t { color: #9AA1AC; }
.at-ligne-ajout { color: var(--primary); font-weight: 700; font-size: 13.5px; }
.at-poignee { color: #C4C9D1; font-size: 12px; letter-spacing: -2px; cursor: grab; flex: none; }
.at-ic { width: 26px; height: 26px; border-radius: 8px; background: #EEF3F6; color: #1E5470; display: grid; place-items: center; flex: none; }
.at-ic svg { width: 16px; height: 16px; }
.at-ic-grand { width: 36px; height: 36px; border-radius: 11px; }
.at-ic-grand svg { width: 20px; height: 20px; }
.at-t { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-epingle { color: #E0A100; font-size: 12px; }
.at-etat { width: 9px; height: 9px; border-radius: 99px; flex: none; display: inline-block; }
.at-etat.ok { background: #2FA36B; }
.at-etat.vide { background: #F0A43A; }
.at-etat.auto { background: #2D6E8E; }
.at-etat.off { background: #D0D4DA; }
.at-ligne .lv-bascule span { width: 34px; height: 20px; }
.at-ligne .lv-bascule span::after { width: 14px; height: 14px; }
.at-ligne .lv-bascule input:checked + span::after { transform: translateX(14px); }
.at-fleches { display: none; flex-direction: column; }
.at-fleches button { border: 0; background: none; font-size: 9px; line-height: 1; padding: 2px 3px; color: var(--ink-muted); cursor: pointer; }
.at-legende { font-size: 11.5px; color: var(--ink-muted); margin: 16px 10px 4px; line-height: 1.9; }
.at-legende .at-etat { margin: 0 3px 0 8px; }
.at-legende .at-etat:first-child { margin-left: 0; }

/* La rubrique ouverte */
.at-centre { min-width: 0; }
.at-panneau { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 18px); padding: 20px 24px 22px; }
.at-panneau-tete { margin-bottom: 14px; }
.at-panneau-tete h2 { font-size: 21px; margin: 0; }
.at-panneau-titre { display: flex; align-items: center; gap: 12px; }
.at-voir { margin-left: auto; font-size: 13px; font-weight: 600; white-space: nowrap; }
.at-epingler { margin: 12px 0 4px; }
.at-note-eteinte { margin-top: 10px; font-size: 13px; background: #FFF4E5; color: #7A4B10; border-radius: 10px; padding: 8px 12px; }
.at-retour { display: none; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--primary); padding: 0 0 10px; cursor: pointer; }
.at-suite { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.at-save { margin-top: 14px; }

/* L'aperçu */
.at-apercu { display: none; }
.at-onglets { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 3px; margin-bottom: 12px; }
.at-onglets button { flex: 1; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-muted); padding: 6px; border-radius: 8px; cursor: pointer; }
.at-onglets button[aria-selected="true"] { background: #2D6E8E; color: #fff; }

/* « ‹ Mes livrets » : le fil d'Ariane de la barre, sur grand écran seulement. */
.at-mes-livrets { display: none; font-size: 14px; font-weight: 700; color: var(--ink-muted); white-space: nowrap; }
.at-mes-livrets:hover { color: var(--ink); }

@media (min-width: 1100px) {
  /* Pleine largeur (maquette 42) : l'atelier sortait bien de la colonne du
     compte, mais restait dans celle du site — 1 100 pixels, dont 360 pour le
     formulaire, même sur un écran de 1 900. */
  .wrap.wrap-atelier { max-width: 1560px; }

  /* L'intendance en UNE ligne, comme la maquette : le fil d'Ariane, le titre,
     le statut et la rangée d'outils prenaient 200 pixels de haut avant la
     première rubrique. */
  .atelier-shell > .crumbs { display: none; }
  .at-tete {
    flex-wrap: wrap;
    gap: 10px 12px;
    margin: 0 0 14px;
    padding: 10px 10px 10px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
  }
  .at-ident { flex-wrap: nowrap; gap: 12px; white-space: nowrap; }
  .at-mes-livrets { display: inline; }
  .at-tete .at-nom { font-size: 20px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
  .at-tete .at-actions { gap: 4px; }
  .at-tete .at-actions .btn { height: 36px; padding: 0 12px; font-size: 13.5px; }
  .at-tete .at-lien, .at-tete .at-copier, .at-tete .at-hors-ligne { font-size: 12.5px; }
  .at-statut { flex-basis: auto; order: 0; flex-wrap: nowrap; }
  .at-actions { flex-wrap: nowrap; }

  .at-corps { display: grid; grid-template-columns: 280px minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
  .at-rail { position: sticky; top: var(--lv-haut, 96px); max-height: calc(100vh - var(--lv-haut, 96px) - 16px); overflow-y: auto; }
  .at-apercu { display: block; position: sticky; top: var(--lv-haut, 96px); }
  /* L'aperçu est collant : il doit tenir en entier dans l'écran, onglets,
     cadre du téléphone ET phrase du dessous compris : 151 px mesurés, plus
     une marge de 16. Compté à 130, la phrase passait sous le bas de l'écran,
     hors d'atteinte — un élément collant ne défile pas ; à 215, le téléphone
     devenait trop court. */
  .at-apercu .lv-tel iframe { height: min(680px, calc(100vh - var(--lv-haut, 96px) - 167px)); min-height: 320px; }
  .at-apercu > .acct-hint { margin: 10px 0 0; font-size: 13px; line-height: 1.45; }
  .at-panneau .plan-where { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
}

/* Téléphone et tablette : la liste, puis la rubrique en plein écran. */
@media (max-width: 1099px) {
  .at-actions { margin-left: 0; }
  .at .at-centre { display: none; }
  .at.at-detail .at-rail { display: none; }
  .at.at-detail .at-centre { display: block; }
  .at-retour { display: inline-block; }
  .at-poignee { display: none; }
  .at-fleches { display: flex; }
  .at-panneau { padding: 14px 12px; }
  .at-nom { flex-basis: 100%; }
  .at-rail { padding: 10px 4px; }
  .at-save { position: sticky; bottom: 10px; }
}
@media (max-width: 1099px) {
  /* Les outils défilent sur une ligne plutôt que de s'empiler sur cinq. */
  .at-actions { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .at-actions::-webkit-scrollbar { display: none; }
  .at-actions .btn { flex: none; }
}

/* ---------- Mes livrets (maquette 47, variante A) ---------- */
.ml-alerte { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: #FBEFD6; color: #5C3D00; text-decoration: none; font-size: 15px; }
.ml-alerte strong { color: #3F2A00; }
.ml-alerte .ml-fleche { margin-left: auto; font-weight: 800; font-size: 18px; }
.ml-carte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 18px); overflow: hidden; margin: 0 0 16px; }
.ml-couv { position: relative; min-height: 118px; display: flex; align-items: flex-end; gap: 10px; padding: 14px 16px; color: #fff; overflow: hidden;
  background: linear-gradient(150deg, var(--ml-couleur), var(--ml-sombre)); }
.ml-couv::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--ml-couleur); z-index: 2; }
.ml-couv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ml-couv::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 70%); }
.ml-nom { position: relative; z-index: 1; margin: 0; font-size: 22px; line-height: 1.15; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.ml-etat { position: relative; z-index: 1; margin-left: auto; flex: none; }
.ml-couv .pill-on { background: #E3F1E8; color: #1D6B45; }
.ml-couv .pill-off { background: rgba(255,255,255,.9); color: #3B3F48; }
.ml-corps { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.ml-meta { margin: 0; color: var(--ink-muted); font-size: 14.5px; }
.ml-note { margin: 0; font-size: 14.5px; color: var(--ink-muted); }
.ml-chiffres { display: flex; align-items: flex-end; gap: 14px; }
.ml-chiffres p { margin: 0; font-size: 14.5px; color: var(--ink-muted); line-height: 1.3; }
.ml-chiffres strong { display: block; font-size: 28px; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.ml-barres { margin-left: auto; display: flex; align-items: flex-end; gap: 4px; height: 40px; flex: none; }
.ml-barres i { width: 9px; border-radius: 3px; background: var(--ml-couleur); opacity: .85; }
.ml-barres i:last-child { opacity: 1; }
.ml-lien { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; background: var(--bg, #FFF8F3); border: 1px solid var(--line); }
.ml-lien code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.ml-lien .linkish { flex: none; font-weight: 800; }
.ml-gestes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ml-gestes .btn { justify-content: center; text-align: center; }
.ml-gestes .ml-principal { grid-column: 1 / -1; }
@media (min-width: 640px) {
  .ml-gestes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ml-creer { margin: 4px 0 18px; }
.ml-creer > summary { list-style: none; cursor: pointer; display: flex; justify-content: center; gap: 6px; padding: 12px 16px; border: 1.5px dashed var(--line); border-radius: 99px; font-weight: 800; color: var(--ink); }
.ml-creer > summary::-webkit-details-marker { display: none; }
.ml-creer > summary span { color: var(--ink-muted); font-weight: 600; }
.ml-creer[open] > summary { margin-bottom: 12px; }
.ml-formule { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; font-size: 14.5px; color: var(--ink-muted); margin: 0 0 14px; }
.ml-formule > strong { color: var(--ink); font-size: 15px; }
.ml-legal { font-size: 13px; color: var(--ink-muted); margin: 0; }
.ml-legal a, .ml-formule a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Partager le livret ---------- */
.pt-lien { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pt-lien code { flex: 1 1 220px; font-size: 15px; font-weight: 700; word-break: break-all; }
.pt-message { display: flex; flex-direction: column; gap: 12px; }
.pt-langues { display: flex; gap: 6px; flex-wrap: wrap; }
.pt-langues button { font: inherit; font-size: 13px; font-weight: 800; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line, #E6DDD3); background: transparent; color: inherit; cursor: pointer; }
.pt-langues button[aria-selected="true"] { background: var(--ink, #23312C); border-color: var(--ink, #23312C); color: #fff; }
.pt-panneau .acct-field { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-texte { min-height: 260px; line-height: 1.55; white-space: pre-wrap; }
.pt-gestes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.pt-bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line, #E6DDD3); padding-top: 12px; }
.pt-etat { font-size: 13px; font-weight: 700; color: var(--muted, #6B6660); }
/* Des puces : la remise à zéro globale (`ul { list-style: none }`) les
   retirait, et trois consignes se lisaient comme un paragraphe décalé. */
.pt-ou ul { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; list-style: disc; }
.pt-ou li::marker { color: var(--primary); }
.pt-ou .acct-hint { margin-top: 14px; }
.pt-affichette { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.pt-affichette p { margin: 0; font-size: 14.5px; }
.pt-qr { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.pt-qr-reglages { flex: 1 1 280px; display: flex; flex-direction: column; gap: 14px; }
.pt-qr-couleur { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pt-qr-couleur legend { padding: 0; margin-bottom: 6px; font-weight: 700; font-size: 14.5px; }
.pt-qr-couleur label { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; }
.pt-qr-apercu { flex: 0 0 auto; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pt-qr-apercu img { width: 200px; height: 200px; border: 1px solid var(--line, #E3DED3); border-radius: 8px; background: #fff; image-rendering: pixelated; }
.pt-qr-apercu code { font-size: 12.5px; word-break: break-all; max-width: 200px; text-align: center; }

/* L'atelier : les commerces relevés, à garder ou masquer. */
.lv-com-choix { display: flex; flex-direction: column; gap: 4px; }
.lv-com-cat { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #6B6660); margin: 10px 0 2px; }
.lv-com-ligne { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; cursor: pointer; }
.pt-dates { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; padding-bottom: 12px; border-bottom: 1px solid var(--line, #E6DDD3); }
.pt-dates label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 800; }
.pt-dates input { font: inherit; padding: 8px 10px; border: 1px solid var(--line, #E6DDD3); border-radius: 10px; }
.pt-dates .acct-hint { flex: 1 1 100%; margin: 0; }

/* L'atelier : les réglages de la feuille d'accueil. */
.at-feuille { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.at-feuille small { color: var(--muted, #6B6660); font-size: 13px; }
.at-feuille-pas { margin-left: 26px; }
/* L'exemple de la feuille ne se montre que là où il y a un aperçu. */
.at-voir-feuille { display: none; margin-top: 10px; }
@media (min-width: 1100px) { .at-voir-feuille { display: inline-flex; } }

/* ==========================================================================
   Les pages pro (« Vous êtes pro ? ») — maquette 58.
   Six pages qui vendaient en longs textes continus, sans une image du
   produit. Blocs partagés : resources/views/public/pro/partials.
   ========================================================================== */
.pro { max-width: 1080px; margin: 0 auto; padding: 8px 0 48px; display: grid; gap: 56px; }
/* Un enfant de grille garde la largeur de son contenu : sans `min-width: 0`,
   une ligne de code ou un tableau élargissait la page entière sur téléphone. */
.pro > *, .pro-hero > * { min-width: 0; }
.pro h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.2; margin: 0 0 6px; text-wrap: balance; }
.pro-sur { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.pro-lede { color: var(--ink-muted); font-size: 17px; line-height: 1.55; margin: 0; max-width: 60ch; }
.pro section > .pro-lede { margin-top: 4px; }

.pro-hero { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .pro-hero { grid-template-columns: 1fr 1fr; } }
.pro-hero h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.08; margin: 8px 0 14px; text-wrap: balance; }
.pro-hero-visuel { min-width: 0; }
.pro-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pro-puces { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.pro-puces li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); }
.pro-puces svg { width: 16px; height: 16px; color: var(--primary); }

.pro-fenetre { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .45); }
.pro-fenetre-barre { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg); }
.pro-fenetre-barre i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.pro-fenetre-barre span { margin-left: 10px; font-size: 13px; color: var(--ink-muted); background: var(--surface); border-radius: 999px; padding: 3px 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-fenetre iframe { display: block; width: 100%; height: 470px; border: 0; }
.pro-fenetre-terminal, .pro-fenetre-terminal .pro-fenetre-barre { background: var(--night); border-color: rgba(255, 255, 255, .08); }
.pro-fenetre-terminal .pro-fenetre-barre span { background: rgba(255, 255, 255, .06); color: #A2AAB9; }
.pro-fenetre-terminal .pro-code { border-radius: 0; margin: 0; }
.pro-fenetre-note { text-align: center; font-size: 13px; color: var(--ink-muted); margin: 10px 0 0; }

.pro-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border-block: 1px solid var(--line); padding: 20px 0; }
.pro-chiffres div { text-align: center; }
.pro-chiffres b { display: block; font-size: clamp(22px, 4vw, 32px); font-variant-numeric: tabular-nums; }
.pro-chiffres span { font-size: 13px; color: var(--ink-muted); }

.pro-etapes { display: grid; gap: 14px; counter-reset: etape; margin: 18px 0 0; padding: 0; list-style: none; }
@media (min-width: 800px) { .pro-etapes { grid-template-columns: repeat(3, 1fr); } }
.pro-etape { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--surface); display: grid; gap: 6px; align-content: start; min-width: 0; }
.pro-etape::before { counter-increment: etape; content: counter(etape); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--primary); color: #fff; }
.pro-etape h3 { margin: 6px 0 0; font-size: 17px; }
.pro-etape p { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 1.5; }
.pro-code { margin: 6px 0 0; background: var(--night); color: #E8E6F0; border-radius: 10px; padding: 12px 14px; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.pro-code code { background: none; padding: 0; color: inherit; font: inherit; }
.pro-code .c { color: #8A93A6; }
.pro-code .k { color: #FF9D7A; }

.pro-tuiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
@media (min-width: 800px) { .pro-tuiles { grid-template-columns: repeat(3, 1fr); } }
.pro-tuiles > div { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 12px; min-width: 0; }
.pro-tuiles-doux > div { background: var(--accent-soft); }
.pro-tuiles-filet > div { border: 1px solid var(--line); flex-direction: column; padding: 16px; }
@media (max-width: 799px) { .pro-tuiles-filet, .pro-tuiles-impair { grid-template-columns: 1fr; } }
.pro-tuiles svg { width: 22px; height: 22px; flex: none; color: var(--primary); }
.pro-tuiles p { margin: 0; }
.pro-tuiles b { display: block; font-size: 15px; }
.pro-tuiles span { display: block; font-size: 13.5px; color: var(--ink-muted); line-height: 1.45; margin-top: 2px; }

.pro-encart { border-left: 4px solid var(--primary); padding: 4px 0 4px 16px; margin-top: 18px; }
.pro-encart b { display: block; margin-bottom: 4px; }
.pro-encart p { margin: 0; color: var(--ink-muted); line-height: 1.5; max-width: 70ch; }
.pro-encart a, .pro-faq a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.pro-faq { margin-top: 14px; border-top: 1px solid var(--line); }
.pro-faq details { border-bottom: 1px solid var(--line); }
.pro-faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.pro-faq summary::-webkit-details-marker { display: none; }
.pro-faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--primary); }
.pro-faq details[open] summary::after { content: '–'; }
.pro-faq details > div { padding-bottom: 16px; color: var(--ink-muted); line-height: 1.55; max-width: 70ch; }
.pro-faq details > div p { margin: 0 0 8px; }
.pro-faq details > div ul { margin: 0 0 8px; padding-left: 20px; }

.pro-fin { border-radius: 20px; padding: 28px 22px; background: var(--primary); color: #fff; display: grid; gap: 10px; justify-items: start; }
.pro-fin h2 { color: #fff; }
.pro-fin p { margin: 0; opacity: .92; max-width: 56ch; line-height: 1.5; }
.pro-fin .btn { background: #fff; color: var(--primary); margin-top: 8px; }
.pro-fin .btn:hover { background: #fff; color: var(--primary-hover); }

/* Les visuels propres à une page. */
.pro-carte { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 18px; display: grid; gap: 12px; box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .45); }
.pro-carte-titre { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.pro-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pro-liste li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.pro-liste li::before { content: ''; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.pro-liste li.non { color: var(--ink-muted); }
.pro-liste li.non::before { background: var(--line) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10h8' fill='none' stroke='%23888' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.pro-liste small { color: var(--ink-muted); }
.pro-champ { display: grid; gap: 4px; }
.pro-champ span { font-size: 12px; font-weight: 700; color: var(--ink-muted); }
.pro-champ b { font-weight: 600; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); }
.pro-verdict { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--tint-ok); color: var(--tint-ok-ink); font-size: 14px; line-height: 1.45; }
.pro-verdict svg { width: 20px; height: 20px; flex: none; }
.pro-exemple { font-size: 12px; color: var(--ink-muted); text-align: right; margin: 0; }

/* L'échelle des prix de la mise en avant : le prix est le visuel. */
.pro-prix { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pro-prix li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.pro-prix li span { display: grid; }
.pro-prix li small { color: var(--ink-muted); font-size: 13px; }
.pro-prix li b { font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pro-prix li b small { font-size: 12px; font-weight: 600; }

/* Les paliers d'API : trois cartes, le débit en grand. */
.pro-paliers { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 800px) { .pro-paliers { grid-template-columns: repeat(3, 1fr); } }
.pro-palier { border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 4px; align-content: start; }
.pro-palier.fort { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.pro-palier h3 { margin: 0; font-size: 17px; }
.pro-palier b { font-size: 30px; font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 6px; }
.pro-palier b small { font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.pro-palier p { margin: 6px 0 0; color: var(--ink-muted); font-size: 14px; line-height: 1.45; }

/* La référence de l'API, sous la vitrine : le texte, en colonne de lecture. */
.pro-reference { border-top: 1px solid var(--line); padding-top: 8px; }
.pro-reference .page-body { max-width: 760px; }

/* Une fiche terminée : le dire, et mener au week-end qui vient (maquette 60). */
.fiche-terminee { margin: 14px 0 18px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.fiche-terminee > div { flex: 1; min-width: 220px; }
.fiche-terminee strong { display: block; font-size: 16px; }
.fiche-terminee span { font-size: 14.5px; color: var(--ink-muted); }

/* La page département (maillage interne, 29/09). */
.dep-bloc { margin-top: 26px; }
.dep-bloc h2 { font-size: 20px; margin: 0 0 12px; }
.dep-villes { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.dep-ville { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 4px; }
.dep-ville-nom { font-weight: 800; color: var(--ink); }
.dep-ville span { font-size: 13.5px; color: var(--ink-muted); }
.dep-ville span a { color: var(--primary); font-weight: 700; }
.dep-lettres { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.dep-lettres a { min-width: 30px; text-align: center; padding: 4px 6px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 13px; color: var(--ink); }
.dep-lettre { font-size: 15px; margin: 18px 0 6px; color: var(--primary); }
.dep-communes { display: grid; gap: 2px 18px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 0; padding: 0; list-style: none; }
.dep-communes li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.dep-communes a { color: var(--ink); }
.dep-communes span { color: var(--ink-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* « Communes proches », au bas d'une page commune. */
.proches { margin: 30px 0 10px; }
.proches h2 { font-size: 18px; margin: 0 0 10px; }

/* ---------- La fiche, notre contenu d'abord (maquette 64, 7/10) ----------
   Refus AdSense « contenu à faible valeur informative » : le résumé rédigé,
   les données de la source et nos temps de trajet passent avant le texte
   recopié, qui descend sous « En détail ». */
.dec-prix dd { font-weight: 700; }

.reserver { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.reserver p { margin: 0; font-size: 14px; color: var(--ink-muted); }
.reserver p a { color: inherit; }

.en-bref {
  margin: 22px 0 0;
  max-width: 62ch;
  padding-left: 14px;
  border-left: 3px solid var(--primary);
  font-size: 18.5px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
}

.chip-info { background: var(--surface); border: 1px solid var(--line); cursor: default; }

/* Téléphone : les pastilles sur un rang qui défile, avec un fondu au bord
   pour montrer qu'il y en a d'autres — comme les filtres du fil. */
@media (max-width: 899px) {
  .savoir .chips-wrap {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -24px;
    padding-inline: 24px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .savoir .chips-wrap::-webkit-scrollbar { display: none; }
  .savoir .chips-wrap > * { flex: 0 0 auto; scroll-snap-align: start; }
}

.fiche-autour { margin-top: 26px; display: grid; gap: 26px; }
.fiche-autour h2 { font-size: 20px; margin: 0 0 12px; }
.route-liste, .avec-dates { list-style: none; margin: 0; padding: 0; }
.route-liste { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.route-liste li { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; font-size: 15px; }
.route-liste li + li { border-top: 1px solid var(--line); }
.route-liste b, .avec-dates em { font-variant-numeric: tabular-nums; color: var(--primary-ink); font-weight: 700; font-style: normal; }
.route-note { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-muted); }
.avec-noms { margin: 0; font-weight: 700; }
.avec-sur { margin: 12px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.avec-dates { display: grid; gap: 8px; }
.avec-dates a {
  display: grid;
  grid-template-columns: 118px 1fr auto;
  gap: 8px;
  align-items: baseline;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: inherit;
  text-decoration: none;
  font-size: 15px;
}
.avec-dates a:hover { border-color: var(--primary); }

/* Ordinateur : la mise en page suit ce qui s'affiche. Deux blocs côte à côte
   et la publicité en bandeau dessous ; un seul bloc, la publicité à côté.
   `.pub` impose `grid-column: 1 / -1` : on le défait pour le cas à côté. */
@media (min-width: 900px) {
  .fiche-autour-deux { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; }
  .fiche-autour-un { grid-template-columns: minmax(0, 1fr) 300px; gap: 26px 40px; align-items: start; }
  .fiche-autour-un > .pub { grid-column: 2; grid-row: 1; position: sticky; top: 90px; }
}

.en-detail { margin-top: 30px; position: relative; }
.en-detail h2 { font-size: 20px; margin: 0; }
.en-detail-source { margin: 4px 0 10px; font-size: 13.5px; color: var(--ink-muted); }
.en-detail .prose { color: var(--ink-muted); }
.en-detail-cle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.en-detail-replie { position: relative; max-height: 9.5em; overflow: hidden; }
.en-detail-replie::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3.5em;
  background: linear-gradient(var(--bg-fade), var(--bg));
}
.en-detail-suite { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--primary-ink); cursor: pointer; }
.en-detail-cle:focus-visible ~ .en-detail-suite { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.en-detail-cle:checked ~ .en-detail-replie { max-height: none; }
.en-detail-cle:checked ~ .en-detail-replie::after,
.en-detail-cle:checked ~ .en-detail-suite { display: none; }

/* ---------- « À propos » (maquette 63, 7/10) ---------- */
.a-propos h1 { text-wrap: balance; }
.ap-mot { margin: 22px 0 8px; padding: 22px 22px 18px; background: var(--accent-soft); border-radius: 18px; position: relative; }
.ap-mot::before { content: "“"; position: absolute; top: -6px; left: 14px; font-size: 72px; line-height: 1; color: var(--primary); font-family: Georgia, serif; }
.ap-mot blockquote { margin: 0; padding-top: 14px; }
.ap-mot p { margin: 0; font-size: 17.5px; line-height: 1.6; color: var(--ink); }
.ap-mot p + p { margin-top: 12px; }
.ap-mot figcaption { margin-top: 14px; font-size: 14.5px; color: var(--ink-muted); }
.ap-mot figcaption b { color: var(--ink); }
.ap-titre { margin: 30px 0 0; font-size: 20px; }
.ap-chiffres { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ap-chiffres li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; display: grid; gap: 2px; align-content: start; }
.ap-chiffres b { font-size: 24px; font-variant-numeric: tabular-nums; color: var(--primary-ink); }
.ap-chiffres span { font-size: 13.5px; color: var(--ink-muted); line-height: 1.35; }
.ap-etapes { display: grid; gap: 10px; margin-top: 12px; }
@media (min-width: 760px) { .ap-etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ap-etapes > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.ap-etapes b { font-size: 16.5px; }
.ap-etapes p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-muted); }

/* La fraîcheur des données, en pied de page (maquette 65, 7/10). */
.site-footer-frais { max-width: 1100px; margin: 0 auto; padding: 0 24px 16px; font-size: 12.5px; color: #A8AFBD; display: flex; align-items: baseline; gap: 8px; }
/* Dernière ligne du pied (pas de sources sur la page) : sa propre marge basse. */
.site-footer-frais:last-child { padding-bottom: 26px; }
.site-footer-frais::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--success); transform: translateY(-1px); }

/* ---------- L'accueil (maquette 65 v3, variante B, 7/10) ----------
   Aux jetons de DESIGN.md : bloc héros accent-soft, l'orange réservé au
   bouton ; ombre de niveau 1 sur les cartes, 2 sur ce qui flotte ; jamais
   bordure et ombre ensemble ; étiquettes à 8 px, le reste en pilule. */
.accueil { --o1: 0 2px 12px rgba(31, 36, 48, .06); --o2: 0 8px 28px rgba(31, 36, 48, .12); max-width: 1100px; margin: 0 auto; padding: 16px 20px 56px; overflow-x: clip; }
.accueil h2 { font-size: 24px; font-weight: 700; line-height: 1.2; margin: 0; }
.ac-heros { display: grid; gap: 24px; align-items: center; background: var(--accent-soft); border-radius: 32px; padding: 24px; }
.ac-heros > * { min-width: 0; }
@media (min-width: 900px) { .ac-heros { grid-template-columns: 1.05fr .95fr; gap: 36px; padding: 36px; } }
.ac-direct { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px 6px 10px; border-radius: 9999px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; }
.ac-direct span { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: ac-pouls 1.8s infinite; }
@keyframes ac-pouls { 0% { box-shadow: 0 0 0 0 rgba(27, 127, 85, .55); } 70% { box-shadow: 0 0 0 8px rgba(27, 127, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(27, 127, 85, 0); } }
@media (prefers-reduced-motion: reduce) { .ac-direct span { animation: none; } }
.accueil h1 { font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin: 14px 0 0; text-wrap: balance; }
@media (min-width: 900px) { .accueil h1 { font-size: 44px; } }
.accueil mark { background: linear-gradient(transparent 60%, var(--accent) 60%, var(--accent) 90%, transparent 90%); color: inherit; padding: 0 .05em; }
.ac-chapo { font-size: 17px; line-height: 1.6; margin: 14px 0 0; max-width: 46ch; color: var(--ink-muted); }
.ac-cherche { display: flex; align-items: center; gap: 8px; margin-top: 24px; max-width: 540px; min-height: 52px; padding: 4px 4px 4px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 9999px; }
.ac-cherche > .combo, .ac-cherche > select, .ac-cherche .combo-input { flex: 1; min-width: 0; }
.ac-cherche .combo-input, .ac-cherche select { border: 0; background: none; font: inherit; font-size: 17px; color: var(--ink); height: 44px; outline: 0; box-shadow: none; }
.ac-pin { display: grid; flex: none; color: var(--primary); }
.ac-cherche .btn { flex: none; }
.ac-loc { margin-top: 12px; padding: 10px 16px; border: 0; border-radius: 9999px; background: var(--surface); color: var(--primary-hover); font-family: Nunito, sans-serif; font-size: 16px; font-weight: 700; cursor: pointer; }
.ac-loc-msg { margin: 8px 0 0; font-size: 14px; color: var(--ink-muted); }
.ac-collage { position: relative; height: 300px; }
@media (min-width: 900px) { .ac-collage { height: 400px; } }
.ac-photo { position: absolute; display: block; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; box-shadow: var(--o2); color: #fff; text-decoration: none; transition: transform .25s; }
.ac-photo:hover { transform: rotate(0) scale(1.03) !important; z-index: 5; }
.ac-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-photo-bas { position: absolute; inset: auto 0 0 0; padding: 24px 12px 10px; background: linear-gradient(transparent, rgba(23, 26, 36, .82)); font-size: 13px; font-weight: 600; }
.ac-photo-1 { left: 2%; top: 4%; width: 48%; transform: rotate(-3deg); z-index: 2; }
.ac-photo-2 { right: 2%; top: 0; width: 42%; transform: rotate(3deg); z-index: 1; }
.ac-photo-3 { left: 30%; bottom: 0; width: 40%; transform: rotate(-1deg); z-index: 3; }
@media (max-width: 899px) { .ac-photo-2 .ac-photo-bas { display: none; } }
.ac-bloc { margin-top: 56px; }
.ac-titre { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.ac-titre span, .ac-sous { margin: 4px 0 0; font-size: 15px; color: var(--ink-muted); }
.ac-envies { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 8px; margin-top: 16px; }
@media (min-width: 900px) { .ac-envies { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 16px; } }
.ac-envie { display: grid; justify-items: center; gap: 8px; padding: 16px 4px; border: 0; border-radius: 14px; background: var(--surface); box-shadow: var(--o1); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; text-align: center; cursor: pointer; transition: transform .15s; }
.ac-envie:hover { transform: translateY(-3px); }
.ac-envie-on { box-shadow: 0 0 0 2px var(--primary), var(--o1); }
.ac-pic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; }
.ac-carrousel { display: flex; gap: 16px; overflow-x: auto; margin: 16px -20px 0; padding: 4px 20px 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ac-carrousel::-webkit-scrollbar { display: none; }
.ac-carte { flex: 0 0 240px; display: flex; flex-direction: column; overflow: hidden; scroll-snap-align: start; background: var(--surface); border-radius: 22px; box-shadow: var(--o1); color: var(--ink); text-decoration: none; }
.ac-visuel { aspect-ratio: 4 / 3; overflow: hidden; background: var(--accent-soft); }
.ac-visuel img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.ac-carte:hover img { transform: scale(1.05); }
.ac-corps { display: grid; gap: 8px; align-content: start; padding: 16px; }
.ac-corps .tag { justify-self: start; color: #fff; }
.ac-meta { font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.ac-coeur { display: grid; overflow: hidden; background: var(--surface); border-radius: 22px; box-shadow: var(--o1); color: var(--ink); text-decoration: none; }
@media (min-width: 760px) { .ac-coeur { grid-template-columns: 1fr 1.1fr; } }
.ac-coeur-visuel { min-height: 220px; background: var(--accent-soft); }
.ac-coeur-visuel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-coeur-texte { display: grid; gap: 12px; align-content: center; padding: 24px; }
.ac-badge { justify-self: start; padding: 6px 10px; border-radius: 9999px; background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ac-coeur-titre { font-family: Nunito, sans-serif; font-size: 32px; font-weight: 800; line-height: 1.15; letter-spacing: -.015em; }
.ac-coeur-resume { font-size: 17px; line-height: 1.6; }
.ac-coeur-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 4px; }
.ac-coeur-pied small { font-size: 13px; color: var(--ink-muted); }
.ac-villes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ac-ville { display: inline-flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 9999px; background: var(--accent-soft); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.ac-ville span { padding: 3px 8px; border-radius: 9999px; background: var(--surface); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ac-ville:hover { background: var(--primary); color: #fff; }
.ac-ville:hover span { color: var(--ink); }
.ac-trois { display: grid; gap: 16px; }
@media (min-width: 760px) { .ac-trois { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ac-trois > div { padding: 16px; border-radius: 14px; background: var(--surface); box-shadow: var(--o1); }
.ac-trois b { font-family: Nunito, sans-serif; font-size: 19px; }
.ac-trois p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-muted); }
.ac-apropos { margin: 16px 0 0; font-weight: 700; }
.ac-direct em { font-style: normal; }

/* Les flèches du carrousel de l'accueil : ordinateur seulement — au doigt,
   le rail défile seul. Pilules blanches à l'ombre de niveau 2 (flottant). */
.ac-fleches { display: none; gap: 8px; }
@media (min-width: 900px) {
  .ac-titre { align-items: center; }
  .ac-titre > span:not(.ac-fleches) { margin-left: auto; }
  .ac-fleches { display: inline-flex; }
}
.ac-fleche { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 9999px; background: var(--surface); color: var(--ink); box-shadow: 0 8px 28px rgba(31, 36, 48, .12); cursor: pointer; transition: background .15s, color .15s; }
.ac-fleche:hover:not(:disabled) { background: var(--primary); color: #fff; }
.ac-fleche:disabled { opacity: .35; cursor: default; box-shadow: none; }
.ac-carrousel:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 22px; }
/* L'ancrage tient compte de la marge du rail : sans cela, le rail démarrait
   décalé de 20 px et la flèche « précédent » ne s'éteignait jamais. */
.ac-carrousel { scroll-padding-inline: 20px; }

/* « Réinitialiser », au pied du sélecteur de commune (7/10). */
.place-picker-oubli { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px; }
.place-picker-oubli:hover { color: var(--primary-ink); }
/* « À combien de route » : la ville mène à ses sorties (maillage, 7/10). */
.route-liste a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.route-liste a:hover { color: var(--primary-ink); text-decoration-color: currentColor; }

/* « Commerces et services » dans l'atelier : un interrupteur par adresse, et
   l'ajout d'une adresse (recherche OpenStreetMap ou saisie à la main). */
.lv-com-groupe-edit { margin-bottom: 4px; }
.lv-com-ligne { align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; }
.lv-com-interrupteur { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; cursor: pointer; }
.lv-com-interrupteur input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lv-sw-piste { flex: none; position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--line, #D8D3CB); transition: background .15s; }
.lv-sw-piste::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.lv-com-interrupteur input:checked ~ .lv-sw-piste { background: var(--primary); }
.lv-com-interrupteur input:checked ~ .lv-sw-piste::after { transform: translateX(16px); }
.lv-com-interrupteur input:focus-visible ~ .lv-sw-piste { outline: 2px solid var(--primary); outline-offset: 2px; }
.lv-sw-etat { flex: none; min-width: 58px; font-size: 12.5px; font-weight: 800; }
.lv-sw-non, .lv-com-interrupteur input:checked ~ .lv-sw-etat .lv-sw-oui { display: inline; }
.lv-sw-oui, .lv-com-interrupteur input:checked ~ .lv-sw-etat .lv-sw-non { display: none; }
.lv-sw-non { color: var(--muted, #6B6660); }
.lv-com-interrupteur input:not(:checked) ~ .lv-com-nom { color: var(--muted, #6B6660); }
.lv-com-nom { min-width: 0; overflow-wrap: anywhere; }
.lv-com-badge { font-style: normal; font-size: 11.5px; font-weight: 800; background: var(--eta-doux, #EFEAE2); border-radius: 999px; padding: 1px 8px; margin-left: 4px; white-space: nowrap; }
.lv-com-retirer { flex: none; font-size: 13px; }
.lv-com-ajout { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line, #E6E1D8); }
.lv-com-ajout[hidden], .lv-com-resultats[hidden], .lv-com-etat[hidden] { display: none; }
.lv-com-recherche { display: flex; gap: 8px; align-items: stretch; }
.lv-com-recherche .acct-input { flex: 1; min-width: 0; }
.lv-com-resultats { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lv-com-resultat { display: flex; gap: 10px; align-items: center; justify-content: space-between; border: 1px solid var(--line, #E6E1D8); border-radius: var(--r-md, 10px); padding: 8px 10px; font-size: 14px; }
.lv-com-resultat small { display: block; color: var(--muted, #6B6660); }
.lv-com-main { margin-top: 12px; }
.lv-com-main summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.lv-com-main .btn { margin-top: 12px; }
.lv-com-etat { font-weight: 700; }
.lv-com-etat.est-ko { color: var(--danger, #B3261E); }
@media (max-width: 520px) { .lv-com-recherche { flex-direction: column; } .lv-sw-etat { min-width: 52px; } }

/* ---------- Modifier ma fiche (exploitant) — maquette 66 ---------- */

/* L'écran de travail : le formulaire à gauche, ce qu'il donne et ce qui manque
   à droite, toujours visibles. Il demande plus de place que la colonne du
   compte. Les classes sont préfixées `fx-` : les règles `.acct-card input` et
   `.account-shell form > .btn` habillent d'autres formulaires, et en hériter
   ici décalerait chaque champ. */
.detail.account-shell.fiche-shell { max-width: 1120px; }

.fx-entete { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 0 22px; }
.fx-entete h1 { font-size: 26px; margin: 0; }
.fx-sous { color: var(--ink-muted); font-size: 14px; margin-top: 4px; }
.fx-sous a { color: var(--primary-ink); font-weight: 600; text-decoration: none; }
.fx-pastille { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: var(--r-full); background: var(--tint-ok); color: var(--tint-ok-ink); }
.fx-pastille.alerte { background: var(--tint-warm); color: var(--primary-ink); }

.fx-grille { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.fx-carte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 90px; }
.fx-carte + .fx-carte { margin-top: 18px; }
.fx-carte-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fx-carte-tete h2 { font-size: 18px; margin: 0; }
.fx-etat { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-full); white-space: nowrap; }
.fx-etat.ok { background: var(--tint-ok); color: var(--tint-ok-ink); }
.fx-etat.manque { background: var(--tint-warm); color: var(--primary-ink); }
.fx-aide { font-size: 13.5px; color: var(--ink-muted); line-height: 1.5; margin: 0; }
.fx-champ { display: flex; flex-direction: column; gap: 7px; }
.fx-champ > label { font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; gap: 10px; }
.fx-champ > label em { font-style: normal; font-weight: 500; color: var(--ink-muted); font-size: 12.5px; }
.fx-champ input[type="text"], .fx-champ input[type="url"], .fx-champ textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; outline: none;
  transition: border-color .15s, background .15s;
}
.fx-champ textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.fx-champ input:focus, .fx-champ textarea:focus { border-color: var(--primary); background: var(--surface); }
.fx-compteur { font-size: 12.5px; color: var(--ink-muted); display: flex; justify-content: space-between; gap: 10px; margin: 0; }
.fx-compteur .bien { color: var(--tint-ok-ink); font-weight: 600; }
.fx-erreur { font-size: 13.5px; font-weight: 600; color: var(--tint-ko-ink); background: var(--tint-ko); border-radius: var(--r-md); padding: 10px 14px; margin: 0; }

/* le dépôt de photo */
.fx-depot { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: stretch; }
.fx-zone { position: relative; border: 2px dashed var(--line); border-radius: var(--r-lg); background: var(--bg); min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 14px; cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s; }
.fx-zone:hover, .fx-zone.survol { border-color: var(--primary); background: var(--accent-soft); }
.fx-zone .fx-icone { font-size: 28px; line-height: 1; }
.fx-zone b { font-size: 13.5px; font-weight: 700; }
.fx-zone small { font-size: 12px; color: var(--ink-muted); }
.fx-zone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.fx-zone.avec img { display: block; }
.fx-zone.avec .fx-icone, .fx-zone.avec b, .fx-zone.avec small { display: none; }
.fx-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.fx-zone:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.fx-cote { display: flex; flex-direction: column; gap: 12px; }
.fx-case { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-muted); line-height: 1.5; cursor: pointer; }
.fx-case input { margin-top: 3px; accent-color: var(--primary); width: 17px; height: 17px; flex: none; }
.fx-details summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--primary-ink); }
.fx-details[open] summary { margin-bottom: 8px; }

/* l'interrupteur des horaires */
.fx-inter { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--bg); cursor: pointer; position: relative; }
.fx-inter.actif { border-color: var(--primary); background: var(--accent-soft); }
.fx-inter input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.fx-inter:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.fx-piste { flex: none; width: 44px; height: 26px; border-radius: var(--r-full); background: var(--line); position: relative; transition: background .15s; margin-top: 2px; }
.fx-piste::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.fx-inter.actif .fx-piste { background: var(--primary); }
.fx-inter.actif .fx-piste::after { transform: translateX(18px); }
.fx-inter strong { font-size: 15px; display: block; }
.fx-inter .fx-t { font-size: 13.5px; color: var(--ink-muted); line-height: 1.5; }

/* le tableau des horaires : sept lignes, deux plages au plus */
.fx-semaine { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); overflow: hidden; }
.fx-jour { display: grid; grid-template-columns: 110px auto 1fr; gap: 10px 14px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.fx-jour:last-child { border-bottom: 0; }
.fx-jour > b { font-size: 14.5px; font-weight: 700; }
.fx-bascule { font: inherit; font-size: 13px; font-weight: 700; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-muted); border-radius: var(--r-full); padding: 6px 14px; cursor: pointer; min-width: 78px; }
.fx-jour:not(.ferme) .fx-bascule { background: var(--tint-ok); border-color: transparent; color: var(--tint-ok-ink); }
.fx-plages { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.fx-jour.ferme .fx-plages { display: none; }
.fx-jour.ferme > b { color: var(--ink-muted); font-weight: 600; }
.fx-plage { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-muted); }
.fx-plage input[type="time"] { font: inherit; font-size: 14.5px; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 7px 8px; width: auto; }
.fx-plage input[type="time"]:focus { border-color: var(--primary); outline: none; }
.fx-plage[hidden] { display: none; }
.fx-lien { font: inherit; font-size: 13px; font-weight: 600; color: var(--primary-ink); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.fx-outils { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.fx-rendu { border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 14px; background: var(--bg); font-size: 14px; }
.fx-rendu table { width: 100%; border-collapse: collapse; }
.fx-rendu th, .fx-rendu td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.fx-rendu tr:last-child th, .fx-rendu tr:last-child td { border-bottom: 0; }
.fx-rendu th { color: var(--ink-muted); width: 46%; }
.fx-rendu .fx-vide { padding: 10px 0; color: var(--ink-muted); margin: 0; }
.fx-titre-petit { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); margin: 0; }

/* la colonne de droite */
.fx-lateral { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 16px; }
.fx-lateral .fx-carte { padding: 18px 20px; gap: 12px; }
.fx-lateral .fx-carte + .fx-carte { margin-top: 0; }
.fx-avancement { display: flex; align-items: center; gap: 14px; }
.fx-anneau { --p: 0; width: 62px; height: 62px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--primary) calc(var(--p) * 1%), var(--line) 0); }
.fx-anneau::before { content: attr(data-t); width: 48px; height: 48px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-family: Nunito, sans-serif; font-weight: 800; font-size: 15px; }
.fx-anneau.complet { background: var(--success); }
.fx-avancement h2 { font-size: 16px; margin: 0; }
.fx-avancement p { font-size: 13px; color: var(--ink-muted); margin: 0; }
.fx-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.fx-liste a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-md); text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; }
.fx-liste a:hover { background: var(--bg); }
.fx-pt { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 11px; color: #fff; }
.fx-liste li.fait .fx-pt { background: var(--success); border-color: var(--success); }
.fx-liste li.fait .fx-pt::after { content: "✓"; }
.fx-liste li.fait a { color: var(--ink-muted); }
.fx-ajout { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--primary-ink); }
.fx-liste li.fait .fx-ajout { display: none; }
.fx-apercu { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.fx-apercu-img { height: 140px; background: var(--accent-soft) center / cover no-repeat; display: grid; place-items: center; font-size: 34px; }
.fx-apercu-corps { padding: 12px 14px 14px; }
.fx-apercu-corps h3 { font-size: 16px; margin: 0; font-weight: 800; }
.fx-apercu-corps p { font-size: 13px; color: var(--ink-muted); margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fx-apercu-corps .fx-lieu { font-size: 12.5px; margin-top: 8px; }
.fx-btn { font: inherit; font-weight: 700; font-size: 15px; border: 0; border-radius: var(--r-full); padding: 12px 22px; cursor: pointer; background: var(--primary); color: #fff; }
.fx-btn:hover { background: var(--primary-hover); }
.fx-btn:disabled { opacity: .45; cursor: default; }
.fx-btn.second { background: transparent; color: var(--primary-ink); border: 1.5px solid var(--primary); }
.fx-btn.plein { width: 100%; }
.fx-reste { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 14px 18px; }
.fx-reste summary { cursor: pointer; font-weight: 700; font-size: 14.5px; list-style: none; display: flex; justify-content: space-between; }
.fx-reste summary::after { content: "＋"; color: var(--primary-ink); }
.fx-reste[open] summary::after { content: "－"; }
.fx-reste p { font-size: 13.5px; color: var(--ink-muted); margin: 10px 0 0; line-height: 1.55; }

/* la barre d'enregistrement : collée en bas, elle dit ce qui est parti */
.fx-barre { position: sticky; bottom: 0; z-index: 5; margin: 26px -4px 0; padding: 14px 4px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.fx-save { font-size: 14px; color: var(--ink-muted); display: flex; align-items: center; gap: 8px; }
.fx-point { width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none; }
.fx-barre.modifie .fx-point { background: var(--primary); }
.fx-barre.modifie .fx-save { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .fx-grille { grid-template-columns: 1fr; }
  .fx-lateral { position: static; order: -1; }
  .fx-depot { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .fx-carte { padding: 18px 16px; }
  .fx-jour { grid-template-columns: 1fr auto; }
  .fx-jour .fx-plages { grid-column: 1 / -1; }
}
