/* lannuaire.pro — direction « La carte » (30/11/2026). Instrument Sans : Rodrigo Fuenzalida, SIL Open Font License 1.1
   (détail dans design/CREDITS.md). Toutes les valeurs viennent de design/tokens.css.
   Téléphone d'abord ; à partir de 64rem (--l-grand) : menu en haut, volet à gauche, grille de petites cartes. */
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url("/fonts/InstrumentSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url("/fonts/InstrumentSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Instrument Repli"; src: local("Arial"); size-adjust: 102%; ascent-override: 94%; descent-override: 24%; line-gap-override: 0%; }

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--h-entete); }
body {
  margin: 0; background: var(--c-fond); color: var(--c-encre);
  font: 400 var(--t-corps)/var(--t-corps-lh) var(--f-texte); letter-spacing: var(--t-corps-ls);
  min-height: 100dvh; display: flex; flex-direction: column;
  padding-bottom: calc(var(--h-barre) + env(safe-area-inset-bottom));   /* la place de la barre du bas */
}
main { flex: 1; min-width: 0; }
h1, h2 { margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: var(--t-titre); line-height: var(--t-titre-lh); letter-spacing: var(--t-titre-ls); }
h2 { font-size: var(--t-sous-titre); line-height: var(--t-sous-titre-lh); letter-spacing: var(--t-sous-titre-ls); }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.2em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: var(--ep-focus) solid var(--c-accent); outline-offset: 2px; }

.evitement { position: absolute; left: var(--e-4); top: calc(-1 * var(--e-7)); background: var(--c-accent); color: var(--c-sur-accent); padding: var(--e-2) var(--e-4); border-radius: var(--r-champ); }
.evitement:focus { top: var(--e-2); z-index: calc(var(--z-barre) + 1); }
.grain { position: fixed; inset: 0; width: 100%; height: 100%; opacity: 0.03; pointer-events: none; z-index: calc(var(--z-barre) + 2); }
[hidden] { display: none !important; }   /* un élément masqué le reste, même s'il porte une classe qui règle son affichage */
.cache { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ----- barre du haut : au téléphone, le retour et la recherche ou le fil ; sur grand écran, la marque et le menu ----- */
.entete { position: sticky; top: 0; z-index: var(--z-entete); display: flex; align-items: center; gap: var(--e-2); min-height: var(--h-entete-tel); padding: var(--e-2) var(--e-4); background: var(--c-fond); border-bottom: var(--ep-filet) solid var(--c-filet); }
.entete nav { display: none; }
.entete form { margin: 0; }
.marque { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; text-decoration: none; }
.marque span { color: var(--c-accent); }
.retour { flex: none; display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; margin-left: calc(-1 * var(--e-3)); }
.entete .fil { display: flex; align-items: center; gap: var(--e-2); min-width: 0; color: var(--c-encre); }
.entete .fil a { display: inline-flex; align-items: center; min-height: 2.75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entete .fil span { color: var(--c-doux); }
/* l'accueil : la marque est posée sur la carte, sans barre */
.ecran-accueil .entete { position: absolute; inset: 0 0 auto 0; z-index: 1; min-height: 3rem; padding-top: 0; padding-bottom: 0; background: transparent; border: 0; }
/* résultats et fiche : la place va au retour et à la recherche */
.ecran-recherche .entete .marque, .ecran-fiche .entete .marque { display: none; }
.lien { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }

/* ----- barre du bas : la navigation sous le pouce, au téléphone seulement ----- */
.onglets { position: fixed; inset: auto 0 0 0; z-index: var(--z-barre); background: var(--c-surface); border-top: var(--ep-filet) solid var(--c-filet); padding-bottom: env(safe-area-inset-bottom); }
.onglets ul { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.onglets a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--e-1) / 2); min-height: var(--h-barre); color: var(--c-doux); font-size: var(--t-mini); line-height: var(--t-mini-lh); text-decoration: none; }
.onglets a[aria-current] { color: var(--c-accent); font-weight: 600; }

/* ----- pied ----- */
/* pied centré (MAYAx 01/12 sur le pied de l'accueil : « centrer ») */
.pied { text-align: center; justify-items: center; padding: var(--e-5) var(--e-gouttiere) var(--e-6); color: var(--c-doux); font-size: var(--t-petit); line-height: var(--t-petit-lh); display: grid; gap: var(--e-2); border-top: var(--ep-filet) solid var(--c-filet); }
.pied .marque { color: var(--c-encre); min-height: 0; }
.pied a, .pied .lien { display: inline-flex; align-items: center; min-height: 2.75rem; }
.pied form { margin: 0; }

/* ----- boutons et champs ----- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: var(--e-2); min-height: 3rem; padding: var(--e-2) var(--e-5); border: var(--ep-filet) solid var(--c-encre); border-radius: var(--r-bouton); background: transparent; color: var(--c-encre); font: 600 var(--t-corps)/1.2 var(--f-texte); text-decoration: none; cursor: pointer; }
.bouton.principal { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-sur-accent); }
.bouton.clair { border-color: var(--c-filet); }
.bouton.icone { flex: none; width: 3rem; padding: 0; }   /* un pictogramme seul : son nom reste lu par les lecteurs d'écran */
.bouton:hover { background: var(--c-encre); color: var(--c-fond); border-color: var(--c-encre); }
/* « Continuer avec Google » (MAYAx 03/12 : « je veux un vrai bouton Google ») : fond blanc, filet gris, logo en couleurs — la charte de Google */
.bouton.google { gap: var(--e-3); background: var(--c-google-fond); border-color: var(--c-google-filet); color: var(--c-google-encre); font-weight: 500; }
.bouton.google:hover { background: var(--c-google-survol); border-color: var(--c-google-filet); color: var(--c-google-encre); }
.bouton.google svg { flex: none; width: 1.25rem; height: 1.25rem; }
.entree-google span { display: block; margin-top: var(--e-2); color: var(--c-doux); font-size: var(--t-petit); line-height: var(--t-petit-lh); text-wrap: balance; }
.champ { display: grid; gap: var(--e-2); border: 0; padding: 0; margin: 0; min-width: 0; }
.champ label, .champ legend, .libelle { font-size: var(--t-petit); line-height: var(--t-petit-lh); color: var(--c-doux); padding: 0; }
input[type="text"], input[type="search"], input[type="email"], input[type="tel"], input[type="password"], input[type="date"], input[type="time"], select, textarea {
  width: 100%; min-height: 3rem; padding: var(--e-2) var(--e-3); border: var(--ep-filet) solid var(--c-filet); border-radius: var(--r-champ);
  background: var(--c-surface); color: var(--c-encre); font: 400 var(--t-corps)/1.4 var(--f-texte);
}
textarea { resize: vertical; }
input[type="search"]::-webkit-search-cancel-button { display: none; }   /* la croix bleue du navigateur n'est pas dans la charte */
.choix { display: flex; align-items: center; gap: var(--e-2); color: var(--c-encre); font-size: var(--t-corps); min-height: 2.75rem; }
.champ .choix { color: var(--c-encre); font-size: var(--t-corps); }
.choix input { flex: none; width: 1.25rem; height: 1.25rem; accent-color: var(--c-accent); }
/* bascule de pictogrammes (genre) : un bouton radio caché par case ; la pastille glisse sous la case choisie (CSS seul) */
.bascule { position: relative; display: grid; grid-template-columns: repeat(3, 3.5rem); justify-self: start; border: var(--ep-filet) solid var(--c-filet); border-radius: var(--r-bouton); }
.bascule .pastille { position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% / 3); border-radius: var(--r-bouton); background: var(--c-accent); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s; }
.bascule:not(:has(:checked)) .pastille { opacity: 0; }
.bascule:has(label:nth-of-type(2) :checked) .pastille { transform: translateX(100%); }
.bascule:has(label:nth-of-type(3) :checked) .pastille { transform: translateX(200%); }
.bascule label { position: relative; display: grid; place-items: center; height: 3rem; color: var(--c-doux); border-radius: var(--r-bouton); cursor: pointer; transition: color 0.2s; }
.bascule label:hover { color: var(--c-encre); }
.bascule label:has(:checked) { color: var(--c-sur-accent); }
.bascule label:has(:focus-visible) { outline: var(--ep-focus) solid var(--c-accent); outline-offset: 2px; z-index: 1; }
.lieux { display: flex; flex-wrap: wrap; gap: 0 var(--e-5); }   /* « Mon domicile / Mon site professionnel » côte à côte */
.alerte { border-left: var(--ep-ligne) solid var(--c-accent); background: var(--c-surface); padding: var(--e-3) var(--e-4); font-weight: 600; }
.pastille { display: inline-block; background: var(--c-accent); color: var(--c-sur-accent); font-size: var(--t-petit); font-weight: 600; line-height: 1.2; padding: var(--e-1) var(--e-3); border-radius: var(--r-bouton); vertical-align: middle; }
.pastille.etat-en_attente { background: transparent; border: var(--ep-filet) solid var(--c-doux); color: var(--c-encre); }
.pastille.etat-refusee { background: var(--c-encre); color: var(--c-fond); }
.gratuit { max-width: var(--l-texte); font-weight: 600; border-left: var(--ep-ligne) solid var(--c-accent); padding-left: var(--e-3); }
.souligne { text-decoration: underline var(--c-accent) var(--ep-souligne); text-underline-offset: 0.25em; }
.compte { color: var(--c-doux); font-size: var(--t-petit); font-variant-numeric: tabular-nums; }

/* ----- la recherche ----- */
.recherche { display: grid; gap: var(--e-3); }
.saisie { position: relative; }
.saisie > .picto { position: absolute; left: var(--e-3); top: 50%; translate: 0 -50%; color: var(--c-doux); pointer-events: none; }
.recherche:not(.compacte) .saisie input { padding-left: calc(var(--e-3) * 2 + 1.25rem); }
/* dans la barre du haut des résultats : le champ seul, la loupe envoie */
.recherche.compacte { flex: 1; min-width: 0; display: block; }
.recherche.compacte input { min-height: 2.75rem; padding-right: 2.75rem; }
.loupe { position: absolute; right: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: var(--r-champ); background: transparent; color: var(--c-accent); cursor: pointer; }

/* ----- accueil : la carte, puis la feuille qui la recouvre par le bas ----- */
.volet-carte { position: relative; }
/* La carte se règle sur la hauteur de l'écran : la recherche et son bouton restent visibles sans défiler */
.territoire { display: block; width: 100%; aspect-ratio: var(--carte-ratio); max-height: max(var(--h-carte-min), calc(100dvh - var(--h-sous-carte))); background: var(--c-fond); font-size: var(--t-sous-titre); }
.territoire .mer { fill: var(--c-surface); }
.territoire .trait { fill: none; stroke: var(--c-filet); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.territoire .riviere { stroke-width: 2; }
.territoire .eau { fill: var(--c-doux); }
.territoire .rond { fill: var(--c-doux); }
.territoire .rond.grande { fill: var(--c-encre); }
.territoire .rond[aria-current="true"] { fill: var(--c-accent); }
.territoire .nom { fill: var(--c-encre); stroke: var(--c-fond); stroke-width: 4; stroke-linejoin: round; paint-order: stroke; font-weight: 600; }
.territoire .zone { fill: transparent; cursor: pointer; }
.territoire .anneau { fill: none; stroke: var(--c-accent); stroke-width: 1.5; pointer-events: none; }
.bouton.tout { position: absolute; right: var(--e-3); top: calc(var(--e-1) / 2); z-index: 2; min-height: 2.75rem; padding: 0 var(--e-4); border-color: var(--c-filet); background: var(--c-surface); font-size: var(--t-petit); }
.bouton.tout[hidden] { display: none; }
.feuille { position: relative; margin-top: calc(-1 * var(--e-5)); padding: var(--e-5) 0; border-radius: var(--r-fiche) var(--r-fiche) 0 0; background: var(--c-surface); }
.panneau { margin-top: var(--e-3); padding: 0 var(--e-4); }
.panneau h2 { font-size: var(--t-titre); line-height: var(--t-titre-lh); letter-spacing: var(--t-titre-ls); }
.panneau .compte { font-size: var(--t-corps); }
.compte-detail { margin-top: var(--e-2); color: var(--c-doux); font-size: var(--t-petit); line-height: var(--t-petit-lh); font-variant-numeric: tabular-nums; text-wrap: pretty; }
.compte-detail span { white-space: nowrap; }
.feuille .recherche { margin-top: var(--e-4); padding: 0 var(--e-4); }
.feuille input { background: var(--c-fond); }   /* posé sur la feuille : le champ se creuse */
/* accueil, tant qu'aucune commune n'est choisie : le site se présente */
.propos { max-width: var(--l-texte); padding: var(--e-5) var(--e-4) var(--e-6); display: grid; gap: var(--e-4); }
.propos .chapo { color: var(--c-doux); }
.etapes { counter-reset: etape; border-top: var(--ep-filet) solid var(--c-filet); }
.etapes li { counter-increment: etape; position: relative; padding: var(--e-3) 0 var(--e-3) calc(var(--e-4) + var(--e-3)); border-bottom: var(--ep-filet) solid var(--c-filet); }
.etapes li::before { content: counter(etape); position: absolute; left: 0; color: var(--c-accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.insecable { white-space: nowrap; }
.propos > .bouton { width: 100%; }
/* l'ambition du site (MAYAx 02/12) : le titre et le chapô centrés, puis trois engagements en lignes, le mot fort à gauche */
.ambition { display: grid; gap: var(--e-4); }
.ambition h2 { margin: 0; font-size: var(--t-geant); line-height: var(--t-geant-lh); letter-spacing: var(--t-geant-ls); text-align: center; text-wrap: balance; }
.ambition .chapo { margin: 0; text-align: center; text-wrap: balance; }
.engagements { margin: 0; display: grid; border-top: var(--ep-filet) solid var(--c-filet); }
.engagements > div { display: grid; gap: var(--e-1); padding: var(--e-3) 0; border-bottom: var(--ep-filet) solid var(--c-filet); }
.engagements dt { display: flex; align-items: baseline; gap: var(--e-2); font-weight: 600; }
.engagements dt::before { content: ""; flex: none; width: var(--l-temoin); height: var(--l-temoin); border-radius: var(--r-arret); background: var(--c-accent); transform: translateY(-0.1em); }
.engagements dd { margin: 0; color: var(--c-doux); text-wrap: pretty; }
.ambition .gratuit { margin: 0; }
@media (min-width: 36rem) { .engagements > div { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); column-gap: var(--e-5); align-items: baseline; } }
/* aux professionnels : les mots du mail d'invitation (MAYAx 01/12) — un encadré posé dans la colonne, après les étapes des visiteurs */
.aux-pros { display: grid; gap: var(--e-3); padding: var(--e-4); border: var(--ep-filet) solid var(--c-accent); border-radius: var(--r-fiche); background: var(--c-surface); }
.aux-pros h2 { margin: 0; text-wrap: balance; }
/* le titre et les premières phrases, centrés (MAYAx 01/12 sur le titre : « centrer, ainsi que les premières phrases ») */
.aux-pros h2, .aux-pros h2 + p { text-align: center; }
.aux-pros h2 + p { text-wrap: balance; }
.aux-pros h3 { margin: var(--e-2) 0 0; font-size: var(--t-corps); color: var(--c-accent); }
.aux-pros p, .aux-pros ul { margin: 0; text-wrap: pretty; }
.aux-pros ul { padding-left: var(--e-4); display: grid; gap: var(--e-1); list-style: disc; }
.aux-pros li::marker { color: var(--c-accent); }
.aux-pros .bouton { justify-self: start; }   /* « Voir les … professionnels », de la commune choisie ou de tout le territoire */
/* « Retrouver ma société » centré dans l'encadré (MAYAx 01/12 sur le bouton : « centre ») */
.aux-pros .bouton.principal { justify-self: center; }

/* ----- le geste : la ligne des communes, qui sort de l'écran à droite ----- */
.ligne { overflow-x: auto; scrollbar-width: none; padding: var(--e-3) 0 var(--e-2) var(--e-4); }
.ligne::-webkit-scrollbar { display: none; }
.ligne ol { position: relative; display: flex; width: max-content; padding-right: var(--e-4); }
.ligne ol::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--ep-ligne); background: var(--c-filet); }
.ligne li { flex: none; width: max-content; max-width: 11rem; padding-right: calc(var(--e-5) + var(--e-1)); }
.ligne a { position: relative; display: block; min-height: 2.75rem; padding-top: var(--e-5); text-decoration: none; font-size: var(--t-petit); line-height: var(--t-petit-lh); }
.arret { position: absolute; left: 0; top: calc((var(--ep-ligne) - 1rem) / 2); width: 1rem; height: 1rem; border-radius: var(--r-arret); background: var(--c-surface); border: var(--ep-ligne) solid var(--c-encre); }
.ligne .lieu { display: block; font-weight: 600; }
.ligne .compte { display: block; }
.ligne a.vide .lieu { color: var(--c-doux); font-weight: 400; }
.ligne a.vide .arret { border-color: var(--c-filet); }
.ligne a[aria-current] .arret { border-color: var(--c-accent); background: var(--c-accent); }
/* l'anneau qui glisse d'un arrêt à l'autre (posé par territoire.js) */
.ecran-recherche .ligne { background: var(--c-surface); padding-top: var(--e-5); padding-bottom: var(--e-3); }

/* ----- les professionnels en petites cartes ----- */
.pros { display: grid; gap: var(--e-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--l-pro)), 1fr)); }
.pro { display: grid; gap: var(--e-3); align-content: start; min-width: 0; padding: var(--e-3); border: var(--ep-filet) solid var(--c-filet); border-radius: var(--r-champ); }
.pro-tete { display: flex; align-items: flex-start; gap: var(--e-3); min-width: 0; text-decoration: none; }
.pro-texte { display: grid; min-width: 0; }
.pro .nom, .pro .detail { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.pro .nom { font-weight: 600; line-height: 1.375; }
.pro-tete:hover .nom { text-decoration: underline; }
.pro .detail { color: var(--c-doux); font-size: var(--t-petit); line-height: var(--t-petit-lh); }
.pro .logo { width: var(--l-logo-petit); height: var(--l-logo-petit); border: 0; font-size: var(--t-petit); }
.pastilles { display: flex; flex-wrap: wrap; gap: var(--e-1); }

/* ----- résultats ----- */
.resultats, .page-large { padding: var(--e-5) var(--e-gouttiere) var(--e-7); display: grid; gap: var(--e-4); }
.page-large { max-width: var(--l-page); padding-top: var(--e-6); }
.resultats h1 + .bilan, .resultats h1 + .vouliez, .vouliez + .bilan { margin-top: calc(-1 * var(--e-3)); }
.bilan { color: var(--c-doux); }
/* « Vouliez-vous dire » (03/12) : noms de sociétés proches de la saisie, au-dessus des résultats */
.vouliez { color: var(--c-doux); text-wrap: pretty; }
.vouliez a { color: var(--c-encre); font-weight: 600; }
.liste li { border-top: var(--ep-filet) solid var(--c-filet); padding: var(--e-4) 0; display: grid; gap: var(--e-1); justify-items: start; }
.liste .nom { font-weight: 600; font-size: var(--t-sous-titre); line-height: var(--t-sous-titre-lh); text-decoration: none; }
.liste .nom:hover { text-decoration: underline; }
.liste .lieu { color: var(--c-doux); font-size: var(--t-petit); line-height: var(--t-petit-lh); }
.liste .bouton { margin-top: var(--e-2); }
.logo { flex: none; width: var(--l-logo); height: var(--l-logo); border-radius: var(--r-champ); border: var(--ep-filet) solid var(--c-filet); background: var(--c-surface); color: var(--c-doux); display: grid; place-items: center; font-weight: 600; font-size: var(--t-sous-titre); line-height: 1; object-fit: contain; }
.identite { display: flex; align-items: center; gap: var(--e-4); }
.coordonnees { display: flex; flex-wrap: wrap; gap: var(--e-2); align-items: center; }
.coordonnees li { display: block; border: 0; padding: 0; }
.coordonnee { display: inline-flex; align-items: center; justify-content: center; gap: var(--e-2); min-width: var(--l-coordonnee); height: var(--l-coordonnee); border-radius: var(--r-bouton); background: var(--c-surface); color: var(--c-encre); text-decoration: none; font-size: var(--t-petit); font-weight: 600; font-variant-numeric: tabular-nums; }
.coordonnee.large { padding: 0 var(--e-4) 0 var(--e-3); color: var(--c-accent); }
.coordonnee.icone:not([data-voir]) { padding: 0 var(--e-4) 0 var(--e-3); color: var(--c-accent); }   /* le numéro ou l'adresse, une fois affichés */
.coordonnee.icone[data-voir] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.coordonnee:hover { background: var(--c-encre); color: var(--c-fond); }
.pages { display: flex; gap: var(--e-3); flex-wrap: wrap; }

/* ----- fiche ----- */
.fiche, .page-simple { padding: var(--e-5) var(--e-gouttiere) var(--e-7); max-width: var(--l-texte); display: grid; gap: var(--e-4); }
.fil { font-size: var(--t-petit); color: var(--c-doux); }
.fiche .activite { color: var(--c-doux); }
.actions { display: flex; flex-wrap: wrap; gap: var(--e-3); }
.actions .bouton { overflow-wrap: anywhere; text-align: center; }
.actions:empty { display: none; }
/* fiche, au téléphone : chaque action prend toute la largeur, sous le pouce ; un pictogramme seul reste à sa taille */
.fiche .actions { gap: var(--e-2); }
.fiche .actions > .bouton { flex: 1 1 auto; }
.fiche .actions > .bouton.icone { flex: none; }
.fiche .actions > .coordonnees, .fiche .actions .coordonnees li:has(> .large) { flex: 1 1 100%; }
.fiche .actions .coordonnee.large { width: 100%; height: 3rem; }
@media (min-width: 36rem) {
  .fiche .actions { gap: var(--e-3); }
  .fiche .actions > .bouton, .fiche .actions > .coordonnees, .fiche .actions .coordonnees li:has(> .large) { flex: none; }
  .fiche .actions .coordonnee.large { width: auto; }
}
.details { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--e-3) var(--e-5); border-top: var(--ep-filet) solid var(--c-filet); padding-top: var(--e-4); }
.details dt { color: var(--c-doux); font-size: var(--t-petit); line-height: var(--t-corps-lh); }
.details dd { margin: 0; }
.horaires { border-collapse: collapse; }
.horaires th { text-align: left; font-weight: 400; padding: 0 var(--e-4) 0 0; }
.horaires td { font-variant-numeric: tabular-nums; }
.revendiquer { margin: 0; font-size: var(--t-petit); line-height: var(--t-petit-lh); letter-spacing: var(--t-petit-ls); color: var(--c-doux); }
.revendiquer a { color: inherit; }

.mentions h2 { margin-top: var(--e-3); }
.mentions h3 { margin: var(--e-2) 0 calc(-1 * var(--e-2)); font-size: var(--t-corps); line-height: var(--t-corps-lh); font-weight: 600; }   /* sous-partie : sous le h2, collée à son paragraphe */

/* ----- formulaires ----- */
.formulaire { display: grid; gap: var(--e-4); justify-items: stretch; }
.formulaire-groupe { display: grid; gap: var(--e-4); }   /* champs regroupés pour être cachés ensemble (Ajouter, « C’est ma société ») */
.formulaire > .bouton { justify-self: start; }
.autre { display: flex; flex-wrap: wrap; gap: 0 var(--e-5); font-size: var(--t-petit); }
.autre a { display: inline-flex; align-items: center; gap: var(--e-2); min-height: 2.75rem; }
.autre a.icone { justify-content: center; min-width: 2.75rem; }   /* pictogramme seul : son nom reste lu par les lecteurs d'écran */
/* Se connecter, au téléphone (MAYAx 03/12 : « Centrer (vue smartphone) ») : titre, boutons et pictogrammes au milieu ; les champs gardent
   leur libellé à gauche, là où l'on tape */
@media (max-width: 63.99rem) {
  .page-simple.connexion { text-align: center; }
  .page-simple.connexion .champ { text-align: start; }
  .page-simple.connexion .formulaire > .bouton { justify-self: center; }
  .page-simple.connexion .autre { justify-content: center; }
}
.mdp { display: grid; grid-template-columns: 1fr auto; gap: var(--e-2); }
.oeil { min-width: 5.5rem; border: var(--ep-filet) solid var(--c-filet); border-radius: var(--r-champ); background: var(--c-surface); color: var(--c-encre); font: 600 var(--t-petit)/1 var(--f-texte); cursor: pointer; }
.jauge { display: flex; align-items: center; gap: var(--e-3); font-size: var(--t-petit); min-height: 1.3rem; }
.jauge span { flex: 1; height: var(--e-1); background: var(--c-filet); border-radius: var(--r-bouton); position: relative; overflow: hidden; }
.jauge span::after { content: ""; position: absolute; inset: 0; background: var(--c-accent); transform-origin: left; transform: scaleX(var(--force, 0)); transition: transform 0.2s; }
.jauge em { font-style: normal; min-width: 5rem; text-align: right; }
.accord { font-size: var(--t-petit); min-height: 1.3rem; }
.jours { gap: var(--e-2); }
.jour { display: grid; grid-template-columns: 6rem 1fr; align-items: center; gap: var(--e-3); }
.jour label { color: var(--c-encre); font-size: var(--t-corps); }
.fichier-choisi { font-size: var(--t-petit); overflow-wrap: anywhere; }
.fichier-choisi:empty { display: none; }
.duo { display: grid; gap: var(--e-4); }
@media (min-width: 36rem) { .duo { grid-template-columns: 1fr 1fr; } }
.piece { justify-items: start; }
.piece input[type="file"] { max-width: 100%; font: 400 var(--t-petit)/1.4 var(--f-texte); color: var(--c-encre); }
.decision { display: grid; gap: var(--e-3); align-items: end; margin-top: var(--e-3); width: 100%; }
@media (min-width: 48rem) { .decision { grid-template-columns: auto 1fr auto; } }

/* ----- fenêtre de dépôt du document ----- */
.depot { border: var(--ep-filet) solid var(--c-filet); border-radius: var(--r-fiche); background: var(--c-surface); color: var(--c-encre); padding: var(--e-5); width: min(32rem, calc(100vw - 2 * var(--e-4))); }
.depot[open] { display: grid; gap: var(--e-4); }
.depot::backdrop { background: var(--c-fond); opacity: 0.8; }
.zone { border: var(--ep-ligne) dashed var(--c-doux); border-radius: var(--r-champ); padding: var(--e-6) var(--e-4); display: grid; gap: var(--e-4); justify-items: center; text-align: center; background: var(--c-fond); }
.zone.sur { border-color: var(--c-accent); border-style: solid; }
.depot .lien { justify-self: start; min-height: 2.75rem; }

/* ----- pictogrammes, recommandations, ajout de fiche ----- */
.picto { width: 1.25rem; height: 1.25rem; flex: none; }
.pastille .picto { width: 0.9rem; height: 0.9rem; margin-right: var(--e-1); vertical-align: -0.12em; }
.pastille.sobre { background: transparent; border: var(--ep-filet) solid var(--c-doux); color: var(--c-encre); }
.recommandations { border-top: var(--ep-filet) solid var(--c-filet); padding-top: var(--e-4); display: grid; gap: var(--e-4); justify-items: start; }
.recommandations .formulaire { width: 100%; }
.recos { width: 100%; display: grid; gap: var(--e-3); }
.recos li { background: var(--c-surface); border: var(--ep-filet) solid var(--c-filet); border-radius: var(--r-champ); padding: var(--e-4); display: grid; gap: var(--e-1); }
.recos .auteur { font-weight: 600; display: flex; align-items: center; gap: var(--e-2); flex-wrap: wrap; }
.recos .auteur .compte { font-weight: 400; }
.signaler { font-size: var(--t-petit); color: var(--c-doux); justify-self: start; padding: var(--e-1) 0; }
a.revendiquer { display: inline-flex; align-items: center; gap: var(--e-2); min-height: 2.75rem; padding: var(--e-2) var(--e-4) var(--e-2) var(--e-3); border: var(--ep-filet) solid var(--c-filet); border-radius: var(--r-bouton); color: var(--c-doux); font-size: var(--t-petit); line-height: var(--t-petit-lh); font-weight: 600; text-decoration: none; justify-self: start; }
a.revendiquer:hover { color: var(--c-encre); border-color: var(--c-encre); }
.doublons { background: var(--c-surface); border-left: var(--ep-ligne) solid var(--c-accent); padding: var(--e-4); display: grid; gap: var(--e-2); }
.alerte form { margin-top: var(--e-2); }
[data-si][hidden], [data-sauf][hidden] { display: none; }

/* ----- recherche : suggestions pendant la frappe (activités, sociétés) ----- */
.champ.avec-suggestions { position: relative; }
.suggestions { position: absolute; top: 100%; left: 0; right: 0; z-index: var(--z-flottant); margin-top: var(--e-1); max-height: var(--h-suggestions); overflow-y: auto; background: var(--c-surface); border: var(--ep-filet) solid var(--c-filet); border-radius: var(--r-champ); padding: var(--e-2) 0; text-align: left; }
.feuille .suggestions { background: var(--c-fond); }
.suggestions .libelle { margin: 0; padding: var(--e-2) var(--e-3) var(--e-1); color: var(--c-doux); }
.suggestions [role="group"] + [role="group"] { border-top: var(--ep-filet) solid var(--c-filet); margin-top: var(--e-2); padding-top: var(--e-1); }
.suggestions a { display: flex; align-items: baseline; justify-content: space-between; gap: var(--e-3); min-height: 2.75rem; padding: var(--e-2) var(--e-3); color: var(--c-encre); text-decoration: none; }
.suggestions a .nom mark { background: none; color: var(--c-accent); }   /* les lettres tapées */
.suggestions a .nom { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.suggestions a .compte { flex: none; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggestions a:hover, .suggestions a[aria-selected="true"] { border-left: var(--ep-ligne) solid var(--c-accent); padding-left: calc(var(--e-3) - var(--ep-ligne)); }

/* ----- fiche : articles de presse ----- */
.presse { display: grid; gap: var(--e-3); }
.presse ul { list-style: none; margin: 0; padding: 0; display: grid; }
.presse li { display: grid; gap: var(--e-1); padding: var(--e-3) 0; border-top: var(--ep-filet) solid var(--c-filet); }
.presse li a { font-weight: 600; text-underline-offset: 0.2em; }
.presse .article { display: grid; gap: var(--e-1); min-width: 0; }
.presse li.illustre { grid-template-columns: var(--l-miniature) 1fr; gap: var(--e-3); align-items: center; }
.presse .miniature { display: block; border-radius: var(--r-champ); overflow: hidden; border: var(--ep-filet) solid var(--c-filet); }
.presse .miniature img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.presse .journal { display: flex; align-items: center; gap: var(--e-2); }
.presse .journal img { height: var(--h-logo-journal); width: auto; max-width: var(--l-logo-journal); object-fit: contain; }

/* ----- fiche : ouverture, photos, plan, même métier, vérification ----- */
.ouverture-etat { margin: 0; }
.pastille.etat-ouvert { background: var(--c-accent); color: var(--c-sur-accent); }
.pastille.etat-bientot { background: var(--c-encre); color: var(--c-fond); }
.pastille.etat-ferme { background: transparent; border: var(--ep-filet) solid var(--c-doux); color: var(--c-encre); }
.photos { display: grid; gap: var(--e-3); }
.photos ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--l-vignette), 1fr)); gap: var(--e-2); }
.photos a { display: block; border-radius: var(--r-champ); overflow: hidden; border: var(--ep-filet) solid var(--c-filet); }
.photos img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.agrandie { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 2 * var(--e-4)); max-height: calc(100dvh - 2 * var(--e-4)); }
.agrandie::backdrop { background: var(--c-fond); opacity: 0.9; }
.agrandie img { display: block; max-width: 100%; max-height: calc(100dvh - 7rem); width: auto; height: auto; margin: 0 auto; border-radius: var(--r-champ); }
.agrandie .barre { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--e-2); margin-top: var(--e-2); }
.agrandie .bouton { background: var(--c-surface); padding: var(--e-2) var(--e-4); }
.agrandie .bouton:hover { background: var(--c-encre); color: var(--c-fond); }
.plan { display: grid; gap: var(--e-3); justify-items: start; }
.carte { width: 100%; height: var(--h-carte); border-radius: var(--r-champ); border: var(--ep-filet) solid var(--c-filet); background: var(--c-surface); overflow: hidden; }
.repere { width: var(--l-repere); height: var(--l-repere); border-radius: var(--r-arret); background: var(--c-accent); border: var(--ep-ligne) solid var(--c-sur-accent); }
.voisins { display: grid; gap: var(--e-3); border-top: var(--ep-filet) solid var(--c-filet); padding-top: var(--e-4); }
.voisins ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--e-3); }
.voisins li { display: flex; align-items: center; gap: var(--e-3); min-width: 0; }
.voisins li > div { min-width: 0; }
.voisins .nom { font-weight: 600; }
.voisins .compte { margin: 0; }
.verification { margin: 0; font-size: var(--t-petit); color: var(--c-doux); }
.piege { position: absolute; left: -100vw; width: 1px; height: 1px; overflow: hidden; }

/* ----- grand écran : le menu en haut, le volet à gauche, la grille de petites cartes à droite ----- */
/* ----- parler de mon projet ----- */
/* téléphone : avec le bouton de plus sous la recherche, la carte rend sa hauteur pour que tout reste visible sans défiler */
@media (max-width: 63.99rem) {
  .volet:has([formaction="/projet"]) .territoire { max-height: max(var(--h-carte-min), calc(100dvh - var(--h-sous-carte) - var(--h-projet))); }
}
.projet { padding: var(--e-5) var(--e-gouttiere) var(--e-7); display: grid; gap: var(--e-5); }
.projet > h1, .projet > .formulaire { max-width: var(--l-texte); }
.projet > h2 { font-size: var(--t-corps); line-height: var(--t-corps-lh); letter-spacing: 0; font-weight: 400; color: var(--c-doux); }
.projet [aria-disabled="true"] { pointer-events: none; }
.besoins { counter-reset: besoin; display: grid; gap: var(--e-6); margin-top: calc(-1 * var(--e-3)); }
.besoin { counter-increment: besoin; display: grid; gap: var(--e-3); justify-items: start; padding-top: var(--e-4); border-top: var(--ep-filet) solid var(--c-filet); }
.besoin h3 { margin: 0; font-size: var(--t-sous-titre); line-height: var(--t-sous-titre-lh); letter-spacing: var(--t-sous-titre-ls); font-weight: 600; text-wrap: balance; }
.besoin h3::before { content: counter(besoin); display: inline-block; min-width: calc(var(--e-4) + var(--e-3)); color: var(--c-accent); font-variant-numeric: tabular-nums; }
.besoin .pros { width: 100%; }
.besoin > .bouton { width: 100%; }   /* téléphone : comme « Voir les professionnels » de l'accueil */


@media (min-width: 64rem) {
  body { padding-bottom: 0; }
  .onglets { display: none; }
  .entete, .ecran-accueil .entete { position: sticky; inset: 0 0 auto 0; z-index: var(--z-entete); height: var(--h-entete); min-height: 0; gap: var(--e-5); padding: 0 var(--e-gouttiere); background: var(--c-fond); border-bottom: var(--ep-filet) solid var(--c-filet); }
  .entete nav { display: flex; align-items: center; gap: var(--e-5); margin-left: auto; }
  .entete nav a { display: inline-flex; align-items: center; gap: var(--e-2); min-height: 2.75rem; text-decoration: none; white-space: nowrap; }
  .entete nav a:hover { text-decoration: underline; }
  .entete nav a.icone, .entete nav .lien.icone { justify-content: center; min-width: 2.75rem; }   /* pictogramme seul : son nom reste lu par les lecteurs d'écran */
  .ecran-recherche .entete .marque, .ecran-fiche .entete .marque { display: inline-flex; }
  .ecran-recherche .retour { display: none; }
  .ecran-fiche .retour { margin-left: 0; }
  .recherche.compacte { max-width: 36rem; }
  .pied .quitter { display: none; }

  /* accueil : le volet reste en place ; dedans, la carte prend la hauteur qui reste — aucun défilement, quel que soit l'écran */
  .ecran-accueil main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; }
  .volet { position: sticky; top: var(--h-entete); height: calc(100dvh - var(--h-entete)); overflow-y: auto; display: flex; flex-direction: column; background: var(--c-surface); border-right: var(--ep-filet) solid var(--c-filet); }
  .volet-carte { flex: 1 1 0; min-height: var(--h-carte-min); }
  .volet-carte .territoire { position: absolute; inset: 0; height: 100%; max-height: none; aspect-ratio: auto; }
  .bouton.tout { top: var(--e-3); }
  .feuille { flex: none; }
  .propos { padding-left: var(--e-gouttiere); padding-right: var(--e-gouttiere); padding-top: var(--e-gouttiere); }
  .propos > .bouton { width: auto; justify-self: start; }
  .besoin > .bouton { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Mon profil : trois formulaires séparés par un filet */
.profil .formulaire + .formulaire { border-top: var(--ep-filet) solid var(--c-filet); padding-top: var(--e-5); }

/* Ligne des communes : code postal et commune au survol (site.js) */
.bulle-commune { position: fixed; z-index: var(--z-flottant); padding: var(--e-1) var(--e-2); background: var(--c-encre); color: var(--c-fond); border-radius: var(--r-champ); font-size: var(--t-petit); line-height: var(--t-petit-lh); font-weight: 600; white-space: nowrap; pointer-events: none; }

/* ---------- Mon profil (maquette validée le 30/11) : une ligne à quatre arrêts, le domicile et le travail sur la carte ---------- */
.profil-tete { display: flex; align-items: center; gap: var(--e-4); padding: var(--e-5) var(--e-gouttiere) 0; }
.initiales { flex: none; display: grid; place-items: center; width: var(--l-initiales); height: var(--l-initiales); border-radius: var(--r-arret); background: var(--c-accent); color: var(--c-sur-accent); font-size: var(--t-titre); font-weight: 600; }
.profil-tete > div { min-width: 0; }
.profil-tete h1 { font-size: var(--t-geant); line-height: var(--t-geant-lh); letter-spacing: var(--t-geant-ls); font-weight: 600; overflow-wrap: anywhere; }
.profil-suite { color: var(--c-doux); font-size: var(--t-petit); line-height: var(--t-petit-lh); }
.profil-carte { margin: var(--e-5) 0 0; }
.profil-carte-cadre { position: relative; height: var(--h-carte-profil); overflow: hidden; border-block: var(--ep-filet) solid var(--c-filet); background: var(--c-fond); }
.carte-lieux { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.carte-lieux .mer { fill: var(--c-surface); }
.carte-lieux .trait { fill: none; stroke: var(--c-filet); stroke-width: 1.5; }
.carte-lieux .riviere { stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carte-lieux .petits circle { fill: var(--c-filet); }
.carte-lieux .trajet { fill: none; stroke: var(--c-accent); stroke-width: 2; stroke-linecap: round; }
.carte-lieux .plein { fill: var(--c-accent); }
.carte-lieux .cerne { fill: var(--c-fond); stroke: var(--c-doux); stroke-width: 2; }
.carte-lieux .coeur { fill: var(--c-doux); }
.carte-lieux .onde { fill: none; stroke: var(--c-accent); stroke-width: 1.5; }
.carte-lieux .travail .onde { stroke: var(--c-doux); }
.carte-lieux .nom-point { fill: var(--c-encre); stroke: var(--c-fond); stroke-width: 4; stroke-linejoin: round; paint-order: stroke; font-size: var(--t-petit); font-weight: 600; }
.profil-carte figcaption { display: grid; gap: var(--e-1); padding: var(--e-4) var(--e-gouttiere); font-size: var(--t-petit); line-height: var(--t-petit-lh); }
.profil-carte figcaption p { display: flex; align-items: center; gap: var(--e-2); }
.profil-carte figcaption .picto { color: var(--c-doux); }
.profil-carte figcaption p:first-child .picto { color: var(--c-accent); }
.profil-carte figcaption .distance { display: block; color: var(--c-doux); }

/* la ligne : un rail qui se remplit (profil.js), un rond par arrêt ; sans script, la ligne est pleine et les arrêts allumés */
.profil-corps { padding: var(--e-6) var(--e-gouttiere) var(--e-7); }
.ligne-profil { position: relative; max-width: var(--l-texte); margin: 0 auto; }
.ligne-profil-rail { position: absolute; top: var(--e-3); bottom: 0; left: calc(var(--l-arret) / 2); width: var(--ep-ligne); transform: translateX(-50%); background: var(--c-filet); }
.ligne-profil-rail > div { height: 100%; background: var(--c-accent); transform-origin: top; }
.ligne-profil-form { display: grid; }
.profil-arret { position: relative; display: grid; grid-template-columns: var(--l-arret) minmax(0, 1fr); column-gap: var(--e-4); padding-bottom: var(--e-6); }
.profil-arret-rond { position: relative; display: block; width: var(--l-arret); height: var(--l-arret); margin-top: var(--e-1); border: var(--ep-ligne) solid var(--c-accent); border-radius: var(--r-arret); background: var(--c-fond); transition: border-color 0.3s; }
.profil-arret-rond[data-actif="false"] { border-color: var(--c-filet); }
.profil-arret-corps { display: grid; gap: var(--e-4); min-width: 0; }
.profil-arret-corps h2 { font-size: var(--t-titre); line-height: var(--t-titre-lh); letter-spacing: var(--t-titre-ls); font-weight: 600; }
.champ-court { max-width: calc(var(--l-texte) / 2); }
.commune-cp { display: flex; align-items: center; gap: var(--e-2); font-size: var(--t-petit); line-height: var(--t-petit-lh); color: var(--c-encre); }
.commune-cp .picto { color: var(--c-accent); }
.commune-cp.travail .picto { color: var(--c-doux); }
.commune-cp:has(span:empty) { visibility: hidden; }

/* interrupteurs oui / non (case à cocher cachée, glissière dessinée) */
.interrupteurs { display: grid; }
.interrupteur { position: relative; display: flex; align-items: center; gap: var(--e-4); min-height: 3.5rem; padding: var(--e-3) 0; border-bottom: var(--ep-filet) solid var(--c-filet); cursor: pointer; }
.interrupteur > span:first-of-type { flex: 1; }
.interrupteur > .picto { color: var(--c-doux); }
.interrupteur input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.glissiere { position: relative; flex: none; width: var(--l-interrupteur); height: var(--h-interrupteur); border: var(--ep-filet) solid var(--c-filet); border-radius: var(--h-interrupteur); background: var(--c-surface); transition: background-color 0.2s, border-color 0.2s; }
.glissiere::after { content: ""; position: absolute; top: 50%; left: var(--e-1); width: var(--l-bouton-interrupteur); height: var(--l-bouton-interrupteur); border-radius: var(--r-arret); background: var(--c-doux); transform: translateY(-50%); transition: transform 0.2s, background-color 0.2s; }
.interrupteur input:checked + .glissiere { background: var(--c-accent); border-color: var(--c-accent); }
.interrupteur input:checked + .glissiere::after { background: var(--c-sur-accent); transform: translate(calc(var(--l-interrupteur) - var(--l-bouton-interrupteur) - 2 * var(--e-1) - 2 * var(--ep-filet)), -50%); }
.interrupteur input:focus-visible + .glissiere { outline: var(--ep-focus) solid var(--c-accent); outline-offset: 2px; }
/* la même glissière portée par un bouton qui envoie son formulaire (Mon espace, espace de la fiche) */
.interrupteur-bouton { display: inline-flex; align-items: center; gap: var(--e-3); min-height: 2.75rem; padding: 0; border: 0; background: none;
  color: var(--c-encre); font: 600 var(--t-corps)/1.2 var(--f-texte); cursor: pointer; }
.interrupteur-bouton[aria-checked="true"] .glissiere { background: var(--c-accent); border-color: var(--c-accent); }
.interrupteur-bouton[aria-checked="true"] .glissiere::after { background: var(--c-sur-accent);
  transform: translate(calc(var(--l-interrupteur) - var(--l-bouton-interrupteur) - 2 * var(--e-1) - 2 * var(--ep-filet)), -50%); }
.interrupteur-bouton:focus-visible .glissiere { outline: var(--ep-focus) solid var(--c-accent); outline-offset: 2px; }
.manque-tel { overflow: hidden; }
.manque-tel p { border-left: var(--ep-ligne) solid var(--c-accent); padding-left: var(--e-3); font-size: var(--t-petit); line-height: var(--t-petit-lh); }

/* « Enregistrer » : à sa place sans script ; avec, une barre qui ne monte que s'il y a une modification */
.barre-enregistrer { display: flex; align-items: center; gap: var(--e-3); padding-left: calc(var(--l-arret) + var(--e-4)); padding-bottom: var(--e-6); }
.barre-enregistrer p { flex: 1; color: var(--c-doux); font-size: var(--t-petit); line-height: var(--t-petit-lh); }
.barre-enregistrer.flottante { position: fixed; z-index: var(--z-flottant); left: 0; right: 0; bottom: calc(var(--h-barre) + env(safe-area-inset-bottom)); padding: var(--e-3) var(--e-gouttiere); background: var(--c-surface); border-top: var(--ep-filet) solid var(--c-filet); }
.bouton.annuler { border-color: transparent; color: var(--c-doux); padding-inline: var(--e-3); }

/* l'adresse et le mot de passe : une ligne qui se déplie */
.depli { border-bottom: var(--ep-filet) solid var(--c-filet); }
.depli-tete { display: flex; align-items: center; gap: var(--e-4); width: 100%; min-height: 3.5rem; padding: var(--e-3) 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.depli-tete > span:not(.chevron) { flex: 1; display: grid; min-width: 0; }
.depli-tete .valeur { overflow-wrap: anywhere; }
.depli-tete > .picto, .depli-tete .chevron { color: var(--c-doux); }
.chevron { display: inline-flex; transition: transform 0.3s; }
.depli-tete[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.depli-volet { overflow: hidden; padding-bottom: var(--e-5); }

@media (prefers-reduced-motion: reduce) {
  .bascule .pastille, .bascule label, .glissiere, .glissiere::after, .profil-arret-rond, .chevron { transition: none; }
}
@media (min-width: 64rem) {
  .profil { display: grid; grid-template-columns: 5fr 7fr; align-items: start; }
  .profil-volet { position: sticky; top: var(--h-entete); height: calc(100dvh - var(--h-entete)); display: flex; flex-direction: column; overflow-y: auto; background: var(--c-surface); border-right: var(--ep-filet) solid var(--c-filet); }
  .profil-tete { padding: var(--e-6) var(--e-6) 0; }
  .profil-carte { flex: 1; display: flex; flex-direction: column; margin-top: var(--e-6); }
  .profil-carte-cadre { flex: 1; height: auto; min-height: var(--h-carte-min); }
  .profil-carte figcaption { padding: var(--e-4) var(--e-6) var(--e-6); }
  .profil-corps { padding: var(--e-6) var(--e-6) var(--e-7); }
  .barre-enregistrer.flottante { left: auto; right: var(--e-gouttiere); bottom: var(--e-5); border: var(--ep-filet) solid var(--c-filet); border-radius: var(--r-bouton); }
}

/* Se déconnecter (MAYAx 30/11) : le bouton du formulaire se lit comme les liens voisins, pictogramme compris */
.entete nav .lien, .autre .lien { display: inline-flex; align-items: center; gap: var(--e-2); min-height: 2.75rem; white-space: nowrap; }
.entete nav .lien { text-decoration: none; }
.entete nav .lien:hover { text-decoration: underline; }
.autre form { margin: 0; }

/* Ajouter un professionnel : sociétés proposées sous « Nom » (MAYAx 30/11, ajout-entreprise.js) — le nom, puis commune et adresse dessous */
.suggestions.sur-deux-lignes a { flex-direction: column; align-items: stretch; justify-content: center; gap: 0; }
.suggestions.sur-deux-lignes a .compte { max-width: none; font-size: var(--t-petit); line-height: var(--t-petit-lh); color: var(--c-doux); }

/* Devenir partenaire (/partenaire) : les activités choisies, en étiquettes sous le champ (partenaire.js) */
.etiquettes-naf { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--e-2); }
.etiquettes-naf[hidden] { display: none; }
.etiquettes-naf li { display: flex; align-items: center; gap: var(--e-2); background: var(--c-surface); border: var(--ep-filet) solid var(--c-filet); border-radius: var(--r-champ); padding: var(--e-1) var(--e-1) var(--e-1) var(--e-3); font-size: var(--t-petit); line-height: var(--t-petit-lh); color: var(--c-encre); }
.etiquettes-naf .code { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--c-accent); }
.etiquettes-naf .retirer { flex: none; margin-left: auto; display: grid; place-items: center; width: var(--l-retirer); height: var(--l-retirer); border: 0; border-radius: var(--r-champ); background: transparent; color: var(--c-doux); cursor: pointer; }
.etiquettes-naf .retirer:hover { color: var(--c-encre); }
.partenaire p { text-wrap: pretty; }

/* Mon espace : « Annuler ma demande » sous le bouton de la demande (MAYAx 30/11) */
.liste li form { margin: 0; }
.liste li form .lien { min-height: 2.75rem; color: var(--c-doux); }

/* Espace du propriétaire (MAYAx 30/11) : mots clés en étiquettes, réalisations en vignettes, rubriques ajoutées sous le formulaire */
.etiquettes { display: flex; flex-wrap: wrap; gap: var(--e-2); }
.etiquettes:empty { display: none; }
.etiquette { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--e-3); border: var(--ep-filet) solid var(--c-filet); border-radius: var(--r-bouton); background: var(--c-surface); color: var(--c-encre); font: inherit; cursor: pointer; }
.etiquette:hover { border-color: var(--c-accent); }
.pro-ajouts { display: grid; gap: var(--e-4); border-top: var(--ep-filet) solid var(--c-filet); padding-top: var(--e-5); }
.vignettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: var(--e-3); }
.vignettes li { display: grid; gap: var(--e-1); justify-items: start; }
.vignettes img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-champ); }
.vignettes form, .pro-ajouts .liste form { margin: 0; }
.pro-ajouts .champ > label.bouton { justify-self: start; cursor: pointer; padding: var(--e-2) var(--e-5); font: 600 var(--t-corps)/1.2 var(--f-texte); color: var(--c-encre); }
.pro-ajouts input.sr:focus-visible + .bouton { outline: var(--ep-focus) solid var(--c-accent); outline-offset: 2px; }

/* Tampon « fiche validée » à la place de la pastille « Fiche du professionnel » (MAYAx 30/11) */
.tampon { display: inline-flex; vertical-align: middle; color: var(--c-accent); }
.tampon .picto { width: 1.5rem; height: 1.5rem; }

/* Devenir partenaire : le reste du formulaire attend que la société soit reconnue (MAYAx 30/11, partenaire-societe.js) */
.apres-societe { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: var(--e-4); }
.apres-societe > .bouton { justify-self: start; }
.apres-societe:disabled { opacity: var(--o-inactif); }

/* Devenir partenaire, « Couverture » : 4 niveaux, puis le sous-menu du niveau (partenaire-territoires.js) */
.couverture { gap: var(--e-3); }
.niveaux { display: grid; grid-template-columns: repeat(4, 1fr); border: var(--ep-filet) solid var(--c-filet); border-radius: var(--r-bouton); }
.niveaux[hidden], .sous-menu[hidden], .carte-couverture[hidden] { display: none; }
.niveaux label { position: relative; display: grid; place-items: center; min-height: 3rem; padding: 0 var(--e-2); text-align: center; color: var(--c-doux); border-radius: var(--r-bouton); cursor: pointer; font-size: var(--t-petit); line-height: var(--t-petit-lh); }
.niveaux label:hover { color: var(--c-encre); }
.niveaux label:has(:checked) { background: var(--c-accent); color: var(--c-sur-accent); font-weight: 600; }
.niveaux label:has(:focus-visible) { outline: var(--ep-focus) solid var(--c-accent); outline-offset: 2px; z-index: 1; }
.ligne-cp { display: flex; gap: var(--e-2); }
.ligne-cp input { flex: 1; min-width: 0; }
.choix-ter { display: flex; flex-wrap: wrap; gap: var(--e-2); }
.choix-ter .bouton[aria-pressed="true"] { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-sur-accent); }
.carte-couverture { display: grid; gap: var(--e-1); }
.carte-france { display: block; width: 100%; height: auto; }
.carte-france path { fill: var(--c-surface); stroke: var(--c-filet); stroke-width: var(--ep-filet); vector-effect: non-scaling-stroke; }
.carte-france .encart { fill: none; stroke: var(--c-filet); stroke-width: var(--ep-filet); vector-effect: non-scaling-stroke; }
.carte-france [data-cible] { cursor: pointer; outline: none; }
.carte-france [data-cible]:hover path, .carte-france path[data-cible]:hover { fill: var(--c-filet); }
.carte-france .choisi path, .carte-france path.choisi, .carte-france .choisi:hover path, .carte-france path.choisi:hover { fill: var(--c-accent); }
.carte-france [data-cible]:focus-visible path, .carte-france path[data-cible]:focus-visible { stroke: var(--c-encre); stroke-width: var(--ep-focus); }
.carte-nom { margin: 0; min-height: calc(var(--t-petit) * var(--t-petit-lh)); font-size: var(--t-petit); line-height: var(--t-petit-lh); color: var(--c-doux); }
@media (max-width: 30rem) { .niveaux { grid-template-columns: repeat(2, 1fr); } }
/* Couverture, niveau « Régions » : le contour des régions bien marqué, les limites des départements effacées (MAYAx 30/11 « des traits de découpe plus évidents sur les régions ») */
.carte-france .contours-regions path { display: none; fill: none; stroke: var(--c-encre); stroke-width: var(--ep-souligne); stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
[data-mode="reg"] .carte-france .contours-regions path { display: inline; }
[data-mode="reg"] .carte-france path[data-dep] { stroke: var(--c-surface); }
[data-mode="reg"] .carte-france .choisi path[data-dep] { stroke: var(--c-accent); }
[data-mode="reg"] .carte-france [data-cible]:hover path[data-dep] { stroke: var(--c-filet); }
[data-mode="reg"] .carte-france .encart ~ path[data-dep] { stroke: var(--c-encre); stroke-width: var(--ep-souligne); }   /* outre-mer : chaque encart est une région */

/* Sous « Envoyer ma demande » (C'est ma société, Devenir partenaire) : l'acceptation des conditions générales */
.accord { margin: 0; font-size: var(--t-petit); line-height: var(--t-petit-lh); color: var(--c-doux); }
.accord a { color: inherit; }

/* Admin › Campagnes (MAYAx 30/11) : état de la campagne, chiffres du suivi en filtres, tableau des destinataires, aperçu du mail */
.campagne-etat { display: grid; gap: var(--e-3); border-left: var(--ep-ligne) solid var(--c-accent); background: var(--c-surface); padding: var(--e-4); }
.campagne-etat form, .admin .autre form { margin: 0; }
.suivi-chiffres { color: var(--c-doux); }
.suivi-chiffres strong { color: var(--c-encre); }
.filtres-suivi { display: flex; flex-wrap: wrap; gap: var(--e-2); }
.filtres-suivi a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--e-3); border: var(--ep-filet) solid var(--c-filet); border-radius: var(--r-bouton); text-decoration: none; font-size: var(--t-petit); }
.filtres-suivi a[aria-current] { border-color: var(--c-accent); color: var(--c-accent); }
.tableau-defile { overflow-x: auto; }
.tableau { width: 100%; border-collapse: collapse; font-size: var(--t-petit); line-height: var(--t-petit-lh); }
.tableau th { text-align: left; font-weight: 600; color: var(--c-doux); padding: var(--e-2) var(--e-3) var(--e-2) 0; border-bottom: var(--ep-filet) solid var(--c-filet); white-space: nowrap; }
.tableau td { padding: var(--e-2) var(--e-3) var(--e-2) 0; border-bottom: var(--ep-filet) solid var(--c-filet); vertical-align: top; }
.tableau .doux { display: block; color: var(--c-doux); }
.apercu-mail { width: 100%; height: 34rem; border: var(--ep-filet) solid var(--c-filet); border-radius: var(--r-champ); background: var(--c-encre); }

/* Fiche : « Je recommande » et « C'est mon entreprise » sur la même ligne (MAYAx 30/11), l'un sous l'autre si la place manque */
.cote-a-cote { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: var(--e-3); }   /* centrés (MAYAx 01/12) */
/* champs numériques de l'admin (mails par jour, essai) : même habit que les autres champs */
input[type="number"] { width: 100%; min-height: 3rem; padding: var(--e-2) var(--e-3); border: var(--ep-filet) solid var(--c-filet); border-radius: var(--r-champ); background: var(--c-surface); color: var(--c-encre); font: 400 var(--t-corps)/1.4 var(--f-texte); }
input[type="number"]:disabled, .admin textarea:disabled, .admin input:disabled { color: var(--c-doux); }

/* Mon espace (Mathieu 30/11/2026) : actions du compte en pictogrammes seuls, à droite du titre ; sections en onglets */
.espace-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--e-2) var(--e-4); }
.espace-tete h1 { margin: 0; }
.outils-compte { gap: 0 var(--e-2); }
.autre .lien.icone { justify-content: center; min-width: var(--l-coordonnee); }
/* Le filet du bas est un trait de fond et non une bordure (MAYAx 01/12/2026 « pourquoi un scroll vertical ? ») : l'onglet actif le
   recouvrait par une marge négative, qui dépassait la barre d'un pixel ; avec overflow-x: auto, ce pixel devenait un défilement vertical. */
.barre-onglets { display: flex; gap: var(--e-5); margin: var(--e-5) 0 var(--e-4); background: linear-gradient(var(--c-filet), var(--c-filet)) left bottom / 100% var(--ep-filet) no-repeat; overflow-x: auto; overflow-y: hidden; }
.barre-onglets [role="tab"] { min-height: var(--l-coordonnee); padding: var(--e-3) 0; border: 0; border-bottom: var(--ep-ligne) solid transparent;
  background: none; color: var(--c-doux); font: 600 var(--t-corps)/var(--t-sous-titre-lh) var(--f-texte); white-space: nowrap; cursor: pointer; }
.barre-onglets [role="tab"]:hover { color: var(--c-encre); }
.barre-onglets [role="tab"][aria-selected="true"] { color: var(--c-encre); border-bottom-color: var(--c-accent); }
.barre-onglets [role="tab"]:focus-visible { outline: var(--ep-focus) solid var(--c-accent); outline-offset: var(--ep-focus); }
.barre-onglets .compte { margin-left: var(--e-1); color: var(--c-doux); font-weight: 400; }
.onglets-actifs .onglet > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* l'onglet porte déjà le titre */
.invitation { display: grid; justify-items: start; gap: var(--e-3); padding: var(--e-4) 0; }
.invitation p { margin: 0; max-width: var(--l-texte); text-wrap: pretty; }
.invitation-titre { font-size: var(--t-sous-titre); line-height: var(--t-sous-titre-lh); font-weight: 600; }
.onglets-actifs .onglet > .liste > li:first-child { border-top: 0; }   /* la barre des onglets porte déjà le filet */

/* témoin de la console, pour les administrateurs : rond vide = fiche ouverte dans la console, plein = mise à jour (MAYAx 01/12) */
.temoin-console { display: inline-block; vertical-align: middle; width: var(--l-temoin); height: var(--l-temoin); border: var(--ep-filet) solid var(--c-doux); border-radius: var(--r-arret); }
.temoin-console[data-etat="maj"] { background: var(--c-doux); }

/* fiche d'un professionnel, administrateur : « Copier les infos de la fiche » à droite du nom (MAYAx 01/12) */
.copier-infos { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: var(--l-coordonnee); min-height: var(--l-coordonnee);
  margin-left: auto; padding: 0; border: var(--ep-filet) solid var(--c-filet); border-radius: var(--r-champ); background: none; color: var(--c-doux); cursor: pointer; }
.copier-infos:hover { color: var(--c-encre); }
.copier-infos:focus-visible { outline: var(--ep-focus) solid var(--c-accent); outline-offset: 2px; }
.copier-infos.copiee { color: var(--c-accent); border-color: var(--c-accent); }

/* ---------- bandeau des cookies (01/12, assets/mesure.js) : posé au-dessus de la barre du bas au téléphone, en bas à droite sur grand écran (à gauche, il cachait la recherche de l'accueil) ;
   « Refuser » et « Accepter » ont exactement le même poids, comme le demande la CNIL ---------- */
.cookies { position: fixed; z-index: calc(var(--z-barre) + 1); left: var(--e-3); right: var(--e-3); bottom: calc(var(--h-barre) + env(safe-area-inset-bottom) + var(--e-3));
  display: grid; gap: var(--e-3); max-width: var(--l-texte); padding: var(--e-4); background: var(--c-surface); border: var(--ep-filet) solid var(--c-filet); border-radius: var(--r-fiche); }
.cookies[hidden] { display: none; }
.cookies h2 { margin: 0; font-size: var(--t-corps); line-height: var(--t-corps-lh); font-weight: 600; }
.cookies p { margin: 0; color: var(--c-doux); font-size: var(--t-petit); line-height: var(--t-petit-lh); text-wrap: pretty; }
.cookies p a { color: var(--c-encre); }
.cookies .choix { display: grid; grid-template-columns: 1fr 1fr; gap: var(--e-2); }
@media (min-width: 64rem) { .cookies { left: auto; bottom: var(--e-4); right: var(--e-gouttiere); width: min(100% - 2 * var(--e-gouttiere), var(--l-bandeau)); } }

/* ----- « À venir » (02/12/2026) : les améliorations annoncées, des arrêts sur une ligne verticale comme la ligne des communes ;
   l'amélioration en cours porte l'anneau vert d'eau de la commune choisie. Puis le formulaire d'idée, sous un filet. ----- */
.a-venir-ligne { display: grid; margin-top: var(--e-2); }
.a-venir-arret { position: relative; display: grid; grid-template-columns: var(--l-arret) minmax(0, 1fr); column-gap: var(--e-4); padding-bottom: var(--e-5); }
.a-venir-arret:last-child { padding-bottom: 0; }
.a-venir-arret:not(:last-child)::before { content: ""; position: absolute; left: calc(var(--l-arret) / 2); top: calc(var(--e-1) + var(--l-arret)); bottom: calc(-1 * var(--e-1)); width: var(--ep-ligne); transform: translateX(-50%); background: var(--c-filet); }
.a-venir-rond { display: block; width: var(--l-arret); height: var(--l-arret); margin-top: var(--e-1); border: var(--ep-ligne) solid var(--c-filet); border-radius: var(--r-arret); background: var(--c-fond); }
.a-venir-arret[data-etat="en_cours"] .a-venir-rond { border-color: var(--c-accent); }
.a-venir-arret > div { display: grid; gap: var(--e-1); min-width: 0; }
.a-venir-arret > div > p:last-child:not(.a-venir-etat) { color: var(--c-doux); }
.a-venir-etat { font-size: var(--t-petit); line-height: var(--t-petit-lh); color: var(--c-doux); }
.a-venir-arret[data-etat="en_cours"] .a-venir-etat { color: var(--c-accent); }
/* votes + / − sur une amélioration (02/12) : deux touches côte à côte, celle de son propre vote prend l'accent */
.a-venir-vote { display: flex; gap: var(--e-2); margin: var(--e-2) 0 0; }
.a-venir-arret > div > p.a-venir-vote { color: inherit; }
.a-venir-vote button, .a-venir-vote a { display: inline-flex; align-items: center; gap: var(--e-2); min-height: 2.75rem; padding: 0 var(--e-4); font: inherit; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--c-encre); background: transparent; border: var(--ep-filet) solid var(--c-filet); border-radius: var(--r-bouton); text-decoration: none; cursor: pointer; }
.a-venir-vote button:hover, .a-venir-vote a:hover { border-color: var(--c-accent); }
.a-venir-vote button[aria-pressed="true"] { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-sur-accent); }
.a-venir-vote :focus-visible { outline: var(--ep-focus) solid var(--c-accent); outline-offset: 2px; }
.a-venir-vote .picto { width: 1.25rem; height: 1.25rem; }
.a-venir-vote { align-items: center; flex-wrap: wrap; }
.a-venir-vote-titre { font-weight: 600; }   /* « Donnez votre avis : » devant les pouces (MAYAx 03/12) */
.a-venir-idee { display: grid; gap: var(--e-4); margin-top: var(--e-5); padding-top: var(--e-5); border-top: var(--ep-filet) solid var(--c-filet); }
[data-tout-cocher] { min-height: 2.75rem; }
.facade-apercu { width: 6rem; height: 4.5rem; object-fit: cover; border-radius: var(--r-champ); background: var(--c-filet); }

/* page Facebook du site et bulle de discussion Messenger (MAYAx 02/12) ; la bulle reste à gauche : la droite porte « Enregistrer » flottant */
.pied-reseau { display: inline-flex; align-items: center; gap: var(--e-2); min-height: 2.75rem; }
.bulle-chat { position: fixed; z-index: var(--z-barre); left: var(--e-gouttiere); bottom: calc(var(--h-barre) + var(--e-4) + env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--c-accent); color: var(--c-sur-accent); }
.bulle-chat .picto { width: 1.6rem; height: 1.6rem; }
.bulle-chat:focus-visible { outline: var(--ep-focus) solid var(--c-encre); outline-offset: 3px; }
@media (min-width: 64rem) { .bulle-chat { bottom: var(--e-5); } }
@media print { .bulle-chat { display: none; } }
