/* Site du Relais social de La Louvière — feuille commune (maquette du 29/10/2026).
   Palette « encre et safran ». Une classe par composant ; aucune couleur en dur dans les pages. */

/* ---------- 1. Jetons ---------- */
:root {
  --encre: #1B2340; --encre-2: #2E3866; --encre-pale: #E9EBF5; --safran: #F4C553; --safran-pale: #FFF5C2; --corail: #EC8C50; --corail-pale: #FDE3D3;
  --froid: #9BD3DE; --froid-pale: #E2F2F5; --turquoise: #4AA3B5; --papier: #F7F2E9; --rouille: #A8501F;
  --texte: #2E3350; --gris: #5A5D72; --filet: #EDEAE0; --filet-2: #E3E0D6; --blanc: #FFFFFF; --sur-nuit: #C7CBE0; --ouvert: #2F7A3B;
  --police: 'Atkinson Hyperlegible', system-ui, sans-serif; --titre: 'Fraunces', Georgia, serif; --main: 'Caveat', cursive;
  --largeur: 1200px; --rayon: 22px; --ombre: 0 18px 40px -28px rgba(27, 35, 64, .55), 0 0 0 1px rgba(27, 35, 64, .06);
  /* ville : valeurs du jour, si le script ne tourne pas */
  --ciel-haut: #2C5C8E; --ciel-bas: #6B97C4; --v-loin: #4D79A7; --v-milieu: #2B527F; --v-pres: #1E3F63; --v-sol: #173250;
  --v-vitre: #3D6C9C; --v-porte: #2B527F; --v-trait: #6B97C4; --v-allume: 0; --v-halo: 0; --v-neige: 0;
  --nuage-trait: rgba(255, 255, 255, .7); --nuage-fond: rgba(255, 255, 255, .14);
  --astre-x: 72%; --astre-y: 70px; --astre-taille: 72px; --astre-couleur: #F4C553; --astre-halo: 0 0 0 14px rgba(244, 197, 83, .22);
}
html[data-moment="aube"] { --ciel-haut: #36507F; --ciel-bas: #EBA986; --v-loin: #6F6E95; --v-milieu: #3C4672; --v-pres: #2A3158; --v-sol: #212746; --v-vitre: #48527E; --v-porte: #3C4672; --v-trait: #EBA986; --v-allume: .6; --v-halo: .12; --nuage-trait: rgba(255, 228, 214, .75); --nuage-fond: rgba(255, 228, 214, .16); }
html[data-moment="soir"] { --ciel-haut: #232850; --ciel-bas: #9E5A62; --v-loin: #4B3F68; --v-milieu: #2B2749; --v-pres: #191A37; --v-sol: #12132A; --v-vitre: #2B2749; --v-porte: #2B2749; --v-trait: #9E5A62; --v-allume: 1; --v-halo: .22; }
html[data-moment="nuit"] { --ciel-haut: #10162F; --ciel-bas: #26305A; --v-loin: #263260; --v-milieu: #19214A; --v-pres: #0F152B; --v-sol: #0A0F21; --v-vitre: #1B2448; --v-porte: #19214A; --v-trait: #3A4677; --v-allume: 1; --v-halo: .26; }
html[data-astre="couchant"] { --astre-taille: 84px; --astre-couleur: #F2A65A; --astre-halo: 0 0 60px 20px rgba(242, 166, 90, .45); }
html[data-astre="lune"] { --astre-taille: 62px; --astre-couleur: #F4D77A; --astre-halo: 0 0 50px 10px rgba(244, 215, 122, .3); }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--blanc); color: var(--texte); font-family: var(--police); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--rouille); } a:hover { color: var(--encre); }
h1, h2, h3 { text-wrap: balance; } p { text-wrap: pretty; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, select:focus-visible { outline: 3px solid var(--safran); outline-offset: 3px; box-shadow: 0 0 0 7px var(--encre); }
.cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--safran); color: var(--encre); font-weight: 700; }
.evitement:focus { top: 12px; }
.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }
.etroit { max-width: 900px; }

/* ---------- 3. Typographie ---------- */
.titre-page { margin: 0; font-family: var(--titre); font-weight: 800; font-size: clamp(40px, 5.6vw, 76px); line-height: 1; letter-spacing: -.02em; }
.titre-section { margin: 0; font-family: var(--titre); font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; color: var(--encre); }
.titre-carte { margin: 0; font-family: var(--titre); font-weight: 800; font-size: 22px; line-height: 1.2; color: var(--encre); }
.surtitre { margin: 0; font-family: var(--main); font-weight: 600; font-size: 30px; line-height: 1; color: var(--rouille); }
.bandeau .surtitre { color: var(--safran); }
.chapo { margin: 0; font-size: 20px; color: #E4E6F2; max-width: 50ch; }
.discret { color: var(--gris); font-size: 16px; }
.note-maquette { padding: 14px 18px; border-radius: 14px; border: 2px dashed var(--filet-2); font-size: 15px; color: var(--gris); }
.souligne { position: relative; white-space: nowrap; }
.souligne svg { position: absolute; left: -3%; bottom: -.14em; width: 106%; height: .3em; overflow: visible; }
.souligne path { fill: none; stroke: var(--safran); stroke-width: 8; stroke-linecap: round; }

/* ---------- 4. Boutons, puces, cartes ---------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border: 0; border-radius: 999px; font: 700 17px var(--police); text-decoration: none; cursor: pointer; transition: transform .2s ease; }
.bouton:hover { transform: translateY(-2px); }
.bouton--safran { background: var(--safran); color: var(--encre); } .bouton--safran:hover { color: var(--encre); }
.bouton--encre { background: var(--encre); color: var(--blanc); } .bouton--encre:hover { color: var(--blanc); }
.bouton--contour { border: 2px solid currentColor; background: transparent; color: var(--encre); }
.bouton--clair { border: 2px solid var(--blanc); background: transparent; color: var(--blanc); } .bouton--clair:hover { color: var(--blanc); }
.boutons { display: flex; flex-wrap: wrap; gap: 10px; }
.puce { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--papier); color: var(--encre); font: 700 16px var(--police); cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease; }
.puce:hover { transform: translateY(-2px); }
.puce[aria-pressed="true"] { background: var(--encre); color: var(--blanc); }
.puce__n { opacity: .65; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.etiquette-pastille { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--encre); background: var(--safran); }
.carte { padding: 24px; border-radius: var(--rayon); background: var(--blanc); box-shadow: var(--ombre); }
.carte-filet { padding: 22px; border-radius: 20px; border: 2px solid var(--filet); background: var(--blanc); color: var(--encre); text-decoration: none; transition: transform .25s ease, border-color .25s ease; }
a.carte-filet:hover { transform: translateY(-4px); border-color: var(--encre); color: var(--encre); }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.grille--large { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.pile { display: flex; flex-direction: column; gap: 14px; }

/* ---------- 5. Sections ---------- */
.section { padding: 72px 0; }
.section--serre { padding: 48px 0; }
.section--papier { background: var(--papier); }
.section--nuit { background: var(--encre); color: var(--blanc); }
.section--nuit .titre-section, .section--nuit .titre-carte { color: var(--blanc); }
.section--filet { border-top: 1px solid var(--filet); }
.entete-section { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.chevauche { position: relative; z-index: 2; margin-top: calc(-1 * var(--chev, 60px)); }
.cles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.cle { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 20px; background: var(--blanc); box-shadow: var(--ombre); }
.cle__libelle { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rouille); }
.cle__valeur { font-family: var(--titre); font-weight: 800; font-size: 21px; line-height: 1.25; color: var(--encre); }

/* ---------- 6. Bandeau (haut de page) et ville ---------- */
.bandeau { position: relative; overflow: hidden; color: var(--blanc); background: var(--ciel-haut); --sol: 64px; }
.bandeau__entete { position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; max-width: var(--largeur); margin: 0 auto; padding: 18px 24px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--blanc); text-decoration: none; }
.logo:hover { color: var(--blanc); }
.logo img { width: 60px; height: 53px; border-radius: 9px; object-fit: cover; }
.logo__nom { display: flex; flex-direction: column; line-height: 1.15; }
.logo__nom strong { font-family: var(--titre); font-weight: 800; font-size: 19px; }
.logo__nom span { font-size: 15px; color: #E4E6F2; }
.nav-principale { flex: 1 1 460px; }
.nav-principale ul { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0; padding: 0; list-style: none; font-size: 17px; font-weight: 700; }
.nav-principale a { color: var(--blanc); text-decoration: none; }
.nav-principale a:hover, .nav-principale a[aria-current="page"] { color: var(--safran); }
.nav-principale ul { align-items: center; }
/* « Trouver de l'aide » : un bouton au bout du menu, le plus visible (piste 2 d'Axel, 30/10) */
.nav-principale__bouton { margin-left: auto; }
.nav-principale .bouton, .barre-compacte .bouton { min-height: 42px; padding: 0 20px; color: var(--encre); }
.nav-principale .bouton:hover, .nav-principale .bouton[aria-current="page"] { color: var(--encre); box-shadow: 0 0 0 3px rgba(244, 197, 83, .35); }
.barre-compacte .bouton { margin-left: auto; min-height: 36px; }
/* Les entrées à choix du menu (Axel, 02/11/2026) : « Services » (nos services, projets subventionnés,
   projets spécifiques) et le bouton « Trouver de l'aide » (la carte, l'annuaire) */
.menu-choix { position: relative; }
.barre-compacte .menu-choix--bouton { margin-left: auto; }
.menu-choix summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.menu-choix summary::-webkit-details-marker { display: none; }
.menu-choix__lien { color: var(--blanc); }
.menu-choix__lien:hover, .menu-choix[data-actif] .menu-choix__lien { color: var(--safran); }
.menu-choix__chevron { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.menu-choix[open] .menu-choix__chevron { transform: rotate(180deg); }
.nav-principale .menu-choix--bouton[data-actif] summary { box-shadow: 0 0 0 3px rgba(244, 197, 83, .35); }
.menu-choix__liste { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; display: flex; flex-direction: column; gap: 4px; width: 330px; max-width: calc(100vw - 32px); padding: 8px; border-radius: 18px; background: var(--blanc); box-shadow: var(--ombre); }
.menu-choix:not(.menu-choix--bouton) .menu-choix__liste { left: 0; right: auto; }
.nav-principale .menu-choix__liste a, .barre-compacte .menu-choix__liste a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; color: var(--encre); font-weight: 400; text-decoration: none; }
.menu-choix__liste strong { font-size: 17px; font-weight: 700; }
.menu-choix__liste span { font-size: 14px; color: var(--gris); }
.nav-principale .menu-choix__liste a:hover, .nav-principale .menu-choix__liste a[aria-current="page"], .barre-compacte .menu-choix__liste a:hover { background: var(--safran-pale); color: var(--encre); }
.bandeau__contenu { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 14px; max-width: var(--largeur); margin: 0 auto; padding: 24px 24px calc(var(--sol) + 150px); }
.fil { font-size: 15px; color: #E4E6F2; }
.fil a { color: #E4E6F2; }

.ville { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, var(--ciel-haut) 0%, var(--ciel-haut) 42%, var(--ciel-bas) 100%); }
.ville__etoiles span { position: absolute; border-radius: 50%; background: var(--blanc); }
.ville__etoiles span:nth-child(6n) { background: var(--safran); }
html:not([data-moment="soir"]):not([data-moment="nuit"]) .ville__etoiles { display: none; }
html[data-moment="soir"] .ville__etoiles span:nth-child(n+13) { display: none; }
.ville__astre { position: absolute; left: var(--astre-x); top: var(--astre-y); width: var(--astre-taille); height: var(--astre-taille); margin-left: -36px; border-radius: 50%; background: var(--astre-couleur); box-shadow: var(--astre-halo); }
.ville__astre::before, .ville__astre::after { content: ""; position: absolute; border-radius: 50%; background: rgba(168, 120, 30, .32); display: none; }
html[data-astre="lune"] .ville__astre::before { display: block; left: 24%; top: 28%; width: 18%; height: 18%; }
html[data-astre="lune"] .ville__astre::after { display: block; left: 56%; top: 54%; width: 12%; height: 12%; }
.ville__nuage { position: absolute; fill: var(--nuage-fond); stroke: var(--nuage-trait); stroke-width: 3; stroke-linecap: round; }
.ville__nuage--1 { left: 60%; top: 112px; } .ville__nuage--2 { left: 81%; top: 104px; }
html[data-moment="soir"] .ville__nuage, html[data-moment="nuit"] .ville__nuage { display: none; }
.ville__neige { display: none; }
.bandeau[data-neige] .ville__neige { display: block; }
.bandeau[data-neige] { --v-neige: .92; }
.ville__neige span { position: absolute; top: 0; border-radius: 50%; background: var(--blanc); opacity: .8; }
.ville__plan { position: absolute; left: 0; right: 0; }
.ville__plan svg { position: absolute; left: calc(50% - 2160px); bottom: 0; width: 4320px; }
.ville__plan--loin { bottom: calc(var(--sol) + 26px); height: 150px; opacity: .85; } .ville__plan--loin svg { height: 150px; }
.ville__plan--milieu { bottom: calc(var(--sol) + 10px); height: 200px; } .ville__plan--milieu svg { height: 200px; }
.ville__plan--pres { bottom: var(--sol); height: 120px; } .ville__plan--pres svg { height: 120px; }
.ville__sol { position: absolute; left: 0; right: 0; bottom: 0; height: var(--sol); background: var(--v-sol); box-shadow: inset 0 3px 0 var(--v-milieu); }
.v-loin { fill: var(--v-loin); } .v-milieu { fill: var(--v-milieu); } .v-pres { fill: var(--v-pres); } .v-vitre { fill: var(--v-vitre); } .v-porte { fill: var(--v-porte); }
.v-trait-milieu { fill: none; stroke: var(--v-milieu); }
.v-bandes { fill: none; stroke: var(--v-trait); stroke-width: 2; stroke-linecap: round; opacity: .45; }
.v-allume { fill: var(--safran); opacity: var(--v-allume); }
.v-halo { opacity: var(--v-halo); }
.v-neige { fill: none; stroke: var(--blanc); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: var(--v-neige); }

/* ---------- 7. Pied de page ---------- */
.pied { background: var(--encre); color: var(--blanc); }
.pied__haut { display: flex; flex-wrap: wrap; gap: 24px 64px; padding: 44px 24px 24px; max-width: var(--largeur); margin: 0 auto; font-size: 17px; }
.pied__marque { flex: 1 1 300px; display: flex; align-items: center; gap: 14px; }
.pied__marque img { width: 72px; height: 64px; border-radius: 10px; object-fit: cover; }
.pied__marque strong { font-family: var(--titre); font-weight: 800; font-size: 20px; }
.pied__adresse { flex: 1 1 300px; color: var(--sur-nuit); }
.pied a { color: var(--safran); font-weight: 700; }
.pied__liens { max-width: var(--largeur); margin: 0 auto; padding: 0 24px 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 15px; color: var(--sur-nuit); }
.pied__liens ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.pied__liens a { color: var(--blanc); font-weight: 400; }

/* ---------- 8. Accueil ---------- */
[data-besoin="manger"] { --couleur: var(--corail); } [data-besoin="dormir"] { --couleur: var(--encre-2); } [data-besoin="journee"] { --couleur: #E0A82E; } [data-besoin="soigner"] { --couleur: var(--turquoise); }
[data-besoin="habiller"] { --couleur: #8FC7D2; } [data-besoin="parler"] { --couleur: var(--rouille); } [data-besoin="loger"] { --couleur: var(--encre); } [data-besoin="laver"] { --couleur: var(--froid); }
.chiffre:nth-child(2) { --couleur: var(--corail); } .chiffre:nth-child(3) { --couleur: var(--turquoise); } .chiffre:nth-child(4) { --couleur: var(--encre); }
.bandeau--accueil .bandeau__contenu { padding-bottom: calc(var(--sol) + 180px); }
.bandeau--accueil .titre-page { font-size: clamp(44px, 6.4vw, 88px); }
.saison-pastille { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: var(--blanc); font-size: 15px; text-decoration: none; }
.saison-pastille strong { padding: 2px 10px; border-radius: 999px; background: var(--safran); color: var(--encre); }
.recherche-hero { display: flex; align-items: center; gap: 10px; max-width: 640px; min-height: 64px; padding: 0 8px 0 22px; border-radius: 999px; background: var(--blanc); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .6); }
.recherche-hero input { flex: 1; min-width: 0; border: 0; background: transparent; font: 20px var(--police); color: var(--encre); outline: none; }
.ouverts-maintenant { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.pouls { width: 10px; height: 10px; border-radius: 50%; background: var(--safran); }
.tuiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tuile { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 150px; padding: 20px; border-radius: 22px; background: var(--blanc); box-shadow: var(--ombre); color: var(--encre); text-decoration: none; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.tuile:hover { transform: translateY(-6px) rotate(-1deg); color: var(--encre); }
.tuile__carre { width: 34px; height: 34px; border-radius: 9px; background: var(--couleur, var(--safran)); }
.tuile__nom { margin-top: auto; font-family: var(--titre); font-weight: 800; font-size: 21px; line-height: 1.15; }
.tuile__etat { font-size: 15px; color: var(--gris); }
.tuile[data-ouvert] .tuile__etat { color: var(--ouvert); font-weight: 700; }
.tuile:not([data-ouvert]) { background: var(--papier); }
.defile { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.defile__piste { display: flex; gap: 14px; width: max-content; padding: 6px 0; }
.partenaire { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 999px; background: var(--blanc); box-shadow: var(--ombre); font-weight: 700; color: var(--encre); white-space: nowrap; }
.partenaire__sigle { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-size: 14px; background: var(--safran); color: var(--encre); }
.partenaire:nth-child(4n+2) .partenaire__sigle { background: var(--corail); }
.partenaire:nth-child(4n+3) .partenaire__sigle { background: var(--encre); color: var(--blanc); }
.partenaire:nth-child(4n) .partenaire__sigle { background: var(--turquoise); }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.chiffre { position: relative; display: flex; flex-direction: column; gap: 4px; padding-top: 18px; border-top: 2px solid var(--encre); }
.chiffre::before { content: ""; position: absolute; top: -9px; left: 0; width: 16px; height: 16px; border-radius: 4px; background: var(--couleur, var(--safran)); }
.chiffre__valeur { font-family: var(--titre); font-weight: 800; font-size: 60px; line-height: 1; color: var(--encre); }
/* « À la une », comme sur le canevas : le bandeau du plan de saison, puis deux cartes illustrées */
.souligne--corail path { stroke: var(--corail); stroke-width: 7; }
.une-bandeau { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 28px; padding: 36px; border-radius: 28px; background: var(--encre); color: var(--blanc); text-decoration: none; transition: transform .3s ease; }
.une-bandeau:hover { transform: translateY(-4px); color: var(--blanc); }
.une-bandeau[data-cle="chaud"] { background: var(--corail); color: var(--encre); }
.une-bandeau[data-cle="chaud"]:hover { color: var(--encre); }
.une-bandeau__flocons span { position: absolute; top: 0; border-radius: 50%; background: var(--blanc); opacity: .6; }
.une-bandeau[data-cle="chaud"] .une-bandeau__flocons { display: none; }
.une-bandeau__haut { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.une-bandeau__texte { flex: 2 1 480px; display: flex; flex-direction: column; gap: 12px; }
.une-bandeau__etat { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--safran); color: var(--encre); font-size: 14px; font-weight: 700; }
.une-bandeau[data-cle="chaud"] .une-bandeau__etat { background: var(--encre); color: var(--safran); }
.une-bandeau__nom { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--safran); }
.une-bandeau__titre { font-family: var(--titre); font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; }
.une-bandeau__desc { max-width: 56ch; color: var(--sur-nuit); }
.une-bandeau__lien { font-weight: 700; color: var(--safran); }
.une-bandeau[data-cle="chaud"] .une-bandeau__nom, .une-bandeau[data-cle="chaud"] .une-bandeau__desc, .une-bandeau[data-cle="chaud"] .une-bandeau__lien { color: var(--encre); }
.une-bandeau__compte { flex: 1 1 240px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--safran); }
.une-bandeau[data-cle="chaud"] .une-bandeau__compte { color: var(--encre); }
.une-bandeau__avant { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--sur-nuit); }
.une-bandeau__jmoins { font-family: var(--main); font-size: 110px; line-height: .9; color: var(--safran); }
.une-bandeau__rayons { display: none; }
.une-bandeau[data-encours] .une-bandeau__avant { display: none; }
.une-bandeau[data-encours][data-cle="froid"] .une-froid, .une-bandeau[data-encours][data-cle="chaud"] .une-chaud { display: block; }
.une-bandeau__frise { position: relative; display: flex; flex-direction: column; gap: 8px; }
.une-barre { position: relative; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.une-bandeau[data-cle="chaud"] .une-barre { background: rgba(27, 35, 64, .18); }
.une-barre span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--safran); }
.une-bandeau[data-cle="chaud"] .une-barre span { background: var(--encre); }
.une-barre i { display: none; position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--safran); border: 3px solid var(--encre); }
.une-bandeau[data-encours] .une-barre i { display: block; }
.une-mois { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--sur-nuit); }
.une-bandeau[data-cle="chaud"] .une-mois { color: var(--encre); font-weight: 700; }
.une-aujourdhui { font-family: var(--main); font-size: 26px; color: var(--safran); }
.une-bandeau[data-cle="chaud"] .une-aujourdhui { color: var(--encre); }
.une-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.une-carte { display: flex; gap: 22px; align-items: center; padding: 24px; border-radius: 24px; background: var(--blanc); color: var(--texte); text-decoration: none; transition: transform .3s ease; }
.une-carte:hover { transform: translateY(-4px); color: var(--texte); }
.une-carte__dessin { flex: none; display: flex; align-items: center; justify-content: center; width: 124px; height: 124px; border-radius: 20px; background: var(--froid-pale); }
.une-carte__sorte { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rouille); }
/* les dernières actualités, sous les cartes « À la une » (piste B d'Axel, 05/11/2026) : trois colonnes, deux puis
   une sur les écrans étroits ; une seule actualité garde la largeur d'une colonne */
.une-nouvelles { display: flex; flex-direction: column; gap: 18px; margin-top: 14px; }
.une-nouvelles .entete-section { margin: 0; }
.une-nouvelles__titre { font-size: 26px; }
.une-nouvelles__tout { font-weight: 700; color: var(--encre); text-decoration: none; border-bottom: 2px solid var(--safran); white-space: nowrap; }
.une-nouvelles__tout:hover { border-color: var(--encre); color: var(--encre); }
.une-nouvelles__cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.une-nouvelle { gap: 10px; border-color: transparent; }
.une-nouvelle__vignette, .une-nouvelle__photo { display: flex; align-items: flex-end; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; }
.une-nouvelle__vignette { padding: 16px 18px; background: var(--encre); color: var(--safran); font-family: var(--main); font-weight: 600; font-size: 32px; line-height: 1; }
.une-nouvelle__photo { object-fit: cover; }
.une-nouvelle__resume { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .une-nouvelles__cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .une-nouvelles__cartes { grid-template-columns: 1fr; } }
/* pictogrammes des besoins */
.picto { display: inline-flex; flex: none; }
.picto svg { width: 100%; height: 100%; overflow: visible; }
.tuile__picto { width: 76px; height: 76px; color: var(--encre); }
.puce .picto { width: 24px; height: 24px; margin-left: -4px; }
/* La Louvière Solidaire (l'annuaire) : le choix du besoin en grandes tuiles, comme sur l'accueil, et les
   lieux ouverts soulignés d'un liseré safran (retour d'Axel du 30/10). */
.puces--tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.puces--tuiles .puce { flex-direction: column; align-items: flex-start; gap: 6px; min-height: 0; padding: 14px 16px; border-radius: 18px; background: var(--papier); text-align: left; line-height: 1.2; }
.puces--tuiles .puce .picto { width: 48px; height: 48px; margin: 0; }
.puces--tuiles .puce .puce__n { font-size: 14px; font-weight: 700; }
.puces--tuiles .puce[aria-pressed="true"] { background: var(--encre); color: var(--blanc); box-shadow: 0 16px 30px -20px rgba(27, 35, 64, .7); }
.puces--tuiles .puce[aria-pressed="true"] .picto { color: var(--safran); }
.lieu--ouvert { border-color: var(--safran); box-shadow: inset 6px 0 0 var(--safran); }
.lieu__pictos { display: flex; gap: 6px; }
.lieu__pictos .picto { width: 30px; height: 30px; color: var(--encre); }
.titre-picto { display: inline-flex; align-items: center; gap: 12px; }
.titre-picto .picto { width: 52px; height: 52px; }
.missions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mission { aspect-ratio: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; border-radius: 22px; background: var(--safran); color: var(--encre); font-family: var(--titre); font-weight: 800; font-size: clamp(16px, 1.7vw, 21px); line-height: 1.1; transition: transform .3s ease; }
.mission:nth-child(2), .mission:nth-child(6) { background: var(--corail); }
.mission:nth-child(3) { background: var(--encre); color: var(--blanc); }
.mission:nth-child(4) { background: var(--turquoise); }
.mission:hover { transform: translateY(-5px) rotate(-2deg); }
.mission svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mission:nth-child(3) svg { stroke: var(--safran); }
.barre-compacte { position: fixed; left: 0; right: 0; top: 0; z-index: 50; background: var(--encre); color: var(--blanc); transform: translateY(-110%); }
.barre-compacte__dedans { display: flex; align-items: center; gap: 18px; max-width: var(--largeur); margin: 0 auto; padding: 8px 24px; }
.barre-compacte a { color: var(--blanc); font-weight: 700; text-decoration: none; }
.barre-compacte img { width: 44px; height: 39px; border-radius: 8px; object-fit: cover; }

/* ---------- 9. Annuaire et cartographie ---------- */
.outils-liste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.interrupteur { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--papier); font-weight: 700; color: var(--encre); cursor: pointer; }
.interrupteur input { width: 18px; height: 18px; accent-color: var(--encre); }
.lieux { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.lieu { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 20px; border: 2px solid var(--filet); background: var(--blanc); }
.lieu__nom { margin: 0; font-family: var(--titre); font-weight: 800; font-size: 20px; line-height: 1.2; color: var(--encre); }
.etat { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: var(--papier); font-size: 14px; font-weight: 700; color: var(--encre); }
.etat[data-genre="ouvert"] { background: var(--safran); }
.etat[data-genre="ouvert"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--encre); }
.lieu__ligne { display: flex; gap: 10px; font-size: 16px; }
.lieu__ligne svg { flex: none; width: 20px; height: 20px; margin-top: 3px; fill: none; stroke: var(--rouille); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* La frise des horaires d'une fiche (30/10) : les jours d'ouverture, puis la journée de 0 h à 24 h. */
.frise-jour { display: grid; gap: 8px; margin: 2px 0 4px 30px; }
.frise-jour__semaine { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; }
.frise-jour__jour { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--filet-2); font-size: 12px; font-weight: 700; line-height: 1; color: var(--gris); }
.frise-jour__jour--ouvert { border-color: var(--safran); background: var(--safran); color: var(--encre); }
.frise-jour__jour--aujourdhui { box-shadow: 0 0 0 2px var(--blanc), 0 0 0 4px var(--encre); color: var(--encre); }
.frise-jour__note { margin-left: auto; font-size: 12px; color: var(--gris); }
.frise-jour__bande { position: relative; display: block; margin-top: 6px; }
.frise-jour__piste { position: relative; display: block; height: 12px; border-radius: 999px; overflow: hidden; background-color: var(--papier); background-image: repeating-linear-gradient(90deg, transparent 0 calc(100% / 24 - 1px), var(--filet-2) calc(100% / 24 - 1px) calc(100% / 24)); }
.frise-jour__plage { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--safran); }
.frise-jour__plage--rdv { background: repeating-linear-gradient(135deg, var(--safran) 0 5px, var(--safran-pale) 5px 10px); }
.frise-jour__maintenant { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--encre); }
.frise-jour__maintenant::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--encre); }
.frise-jour__heures { position: relative; display: block; height: 16px; font-size: 12px; line-height: 16px; color: var(--gris); }
.frise-jour__heures span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.frise-jour__heures span:first-child { transform: none; }
.frise-jour__heures span:last-child { transform: translateX(-100%); }
.vide { padding: 30px; border-radius: 22px; border: 2px dashed var(--filet-2); }
.plan-carte { display: flex; gap: 18px; align-items: stretch; }
.plan-carte__liste { flex: 0 0 330px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.plan-carte__liste ul { max-height: 500px; overflow-y: auto; margin: 0; padding: 0; list-style: none; border-radius: 16px; border: 2px solid var(--filet); }
.ligne-lieu { width: 100%; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--filet); background: var(--blanc); font: inherit; text-align: left; color: var(--encre); cursor: pointer; }
.ligne-lieu[aria-pressed="true"] { background: var(--safran-pale); }
.ligne-lieu__point { flex: none; margin-top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--couleur); }
.ligne-lieu small { display: block; font-size: 14px; color: var(--gris); }
.ligne-lieu em { display: block; font-size: 13px; font-style: normal; font-weight: 700; color: var(--gris); }
.ligne-lieu em[data-genre="ouvert"] { color: var(--ouvert); }
.plan-carte__plan { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.dessin-plan { position: relative; width: 100%; aspect-ratio: 1000 / 640; border-radius: 20px; overflow: hidden; background: #F5F0E4; }
.dessin-plan > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.quartier { position: absolute; transform: translate(-50%, -50%); aspect-ratio: 1; border-radius: 50%; background: rgba(244, 197, 83, .2); }
.quartier-nom { position: absolute; transform: translate(-50%, 0); font-family: var(--main); font-size: 22px; line-height: 1; color: #8A6A2E; white-space: nowrap; }
.epingle { position: absolute; z-index: 10; width: 30px; height: 40px; padding: 0; border: 0; background: transparent; cursor: pointer; transform: translate(-50%, -100%); transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); }
.epingle:hover { transform: translate(-50%, -100%) scale(1.18); }
.epingle svg { display: block; overflow: visible; }
.epingle path { fill: var(--couleur); stroke: var(--blanc); stroke-width: 2.5; }
.epingle[data-genre="ferme"] path, .epingle[data-genre="inconnu"] path { opacity: .72; }
.epingle[aria-pressed="true"] { z-index: 50; }
.fiche-lieu { position: absolute; z-index: 60; width: 300px; padding: 18px; border-radius: 18px; background: var(--blanc); box-shadow: 0 22px 44px -20px rgba(27, 35, 64, .6), 0 0 0 1px rgba(27, 35, 64, .08); display: flex; flex-direction: column; gap: 8px; }
.fiche-lieu__haut { display: flex; justify-content: space-between; gap: 10px; }
.fermer { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--papier); color: var(--encre); font-size: 18px; cursor: pointer; }
/* Les blocs des pages composées (App\Models\PageComposee, resources/views/blocs) : les classes des pages sur mesure,
   plus l'image à côté du texte et l'appel à l'action. */
.bloc + .bloc { padding-top: 0; }
.bloc-image-texte { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.bloc-image-texte[data-cote="droite"] .bloc-image-texte__image { order: 2; }
.bloc-image-texte__image { margin: 0; }
.bloc-image-texte__image img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 26px 50px -34px rgba(27, 35, 64, .7); }
.bloc-image-texte__image figcaption { margin-top: 8px; font-size: 14px; }
.bloc-image-texte .texte-long { max-width: none; }
.bloc-cartes .picto { width: 46px; height: 46px; color: var(--encre); }
.bloc-chiffres { grid-template-columns: repeat(auto-fill, minmax(160px, 220px)); } /* des carrés : pas plus de 220 px de côté, même seuls */
/* Les variantes des blocs (23/11/2026) : le nombre de colonnes des cartes, la photo en tête de carte, les chiffres
   compacts, l'image en grand au-dessus du texte. Chacune ne s'applique que si on l'a choisie. */
.bloc-cartes[data-colonnes="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bloc-cartes[data-colonnes="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bloc-cartes[data-colonnes="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bloc-colonnes .bloc-cartes[data-colonnes] { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } /* dans une colonne, la largeur décide */
@media (max-width: 1000px) { .bloc-cartes[data-colonnes="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .bloc-cartes[data-colonnes] { grid-template-columns: minmax(0, 1fr); } }
.carte-filet--photo { padding-top: 0; overflow: hidden; }
.carte-filet__photo { display: block; width: calc(100% + 44px); max-width: none; margin: 0 -22px 6px; aspect-ratio: 3 / 2; object-fit: cover; }
.bloc-chiffres--compacts { grid-template-columns: repeat(auto-fill, minmax(130px, 170px)); }
.bloc-chiffres--compacts .mission { aspect-ratio: auto; min-height: 118px; gap: 10px; padding: 14px 16px; border-radius: 18px; }
.bloc-image-texte[data-cote="plein"] { grid-template-columns: minmax(0, 1fr); gap: 26px; }
.bloc-image-texte[data-cote="plein"] .bloc-image-texte__image img { max-height: 520px; object-fit: cover; }
.bloc-image-texte[data-cote="plein"] .texte-long { max-width: 72ch; }
/* Lot D (23/11/2026) : les blocs repris des pages sur mesure gardent leurs classes (encadre, repli, etapes,
   etat-saison, une-nouvelles, portraits) ; seules la citation et la galerie sont neuves */
.bloc-questions { gap: 12px; }
.bloc-questions .repli[open] { padding-bottom: 8px; }
.bloc-citation { display: flex; flex-direction: column; gap: 12px; max-width: 860px; margin: 0; padding: 4px 0 4px 26px; border-left: 6px solid var(--trait, var(--safran)); }
.bloc-citation__texte { margin: 0; font-family: var(--titre); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; color: var(--encre); }
.bloc-citation__auteur { font-family: var(--main); font-size: 26px; line-height: 1.1; color: var(--rouille); }
.bloc-habille[data-fond="nuit"] .bloc-citation__texte { color: var(--blanc); }
.bloc-habille[data-fond="nuit"] .bloc-citation__auteur { color: var(--safran); }
.bloc-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.bloc-galerie__photo { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.bloc-galerie__photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.bloc-galerie__photo figcaption { font-size: 14px; }
.anime-pret .bloc-galerie.apparu > :nth-child(2) { animation-delay: .06s; } .anime-pret .bloc-galerie.apparu > :nth-child(3) { animation-delay: .12s; }
.anime-pret .bloc-galerie.apparu > :nth-child(4) { animation-delay: .18s; } .anime-pret .bloc-galerie.apparu > :nth-child(n+5) { animation-delay: .24s; }
.bloc-appel { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; padding: 30px 34px; border-radius: var(--rayon); color: var(--encre); }
.bloc-appel__bouton span { transition: transform .25s ease; }
.bloc-appel__bouton:hover span { transform: translateX(5px); }
@media (max-width: 760px) { .bloc-image-texte { grid-template-columns: 1fr; gap: 22px; } .bloc-image-texte[data-cote="droite"] .bloc-image-texte__image { order: 0; } }
/* L'apparence d'un bloc (App\Site\Habillage, 18/11/2026) : une enveloppe qui porte le fond, la largeur, le séparateur à
   la main et le chevauchement. Sans fond, les espacements restent ceux de deux blocs qui se suivent (.bloc + .bloc). */
.bloc-habille { position: relative; background: var(--bloc-fond, transparent); }
.bloc-habille[data-fond="papier"] { --bloc-fond: var(--papier); }
.bloc-habille[data-fond="blanc"] { --bloc-fond: var(--blanc); }
.bloc-habille[data-fond="safran"] { --bloc-fond: var(--safran-pale); }
.bloc-habille[data-fond="corail"] { --bloc-fond: var(--corail-pale); }
.bloc-habille[data-fond="froid"] { --bloc-fond: var(--froid-pale); }
.bloc-habille[data-fond="nuit"] { --bloc-fond: var(--encre); color: var(--blanc); }
/* l'ombre d'un pixel couvre la couture entre deux fonds qui se touchent (un arrondi au sous-pixel laisserait voir le blanc) */
.bloc-habille[data-fond]:not([data-chevauche]) { box-shadow: 0 1px 0 var(--bloc-fond); }
.bloc-habille[data-fond]:not([data-chevauche]) > .bloc { padding: 56px 0; }
:is(.bloc, .bloc-habille:not([data-fond])) + .bloc-habille:not([data-fond]):not([data-chevauche]) > .bloc,
.bloc-habille:not([data-fond]):not([data-chevauche]) + .bloc { padding-top: 0; }
.bloc-habille[data-fond]:not([data-chevauche]) + .bloc { padding-top: 48px; }
/* deux blocs du même fond à la suite : un seul espace entre eux, comme deux blocs ordinaires */
.bloc-habille[data-fond="papier"] + .bloc-habille[data-fond="papier"]:not([data-chevauche]) > .bloc,
.bloc-habille[data-fond="blanc"] + .bloc-habille[data-fond="blanc"]:not([data-chevauche]) > .bloc,
.bloc-habille[data-fond="safran"] + .bloc-habille[data-fond="safran"]:not([data-chevauche]) > .bloc,
.bloc-habille[data-fond="corail"] + .bloc-habille[data-fond="corail"]:not([data-chevauche]) > .bloc,
.bloc-habille[data-fond="froid"] + .bloc-habille[data-fond="froid"]:not([data-chevauche]) > .bloc,
.bloc-habille[data-fond="nuit"] + .bloc-habille[data-fond="nuit"]:not([data-chevauche]) > .bloc { padding-top: 0; }
/* sur le bleu nuit, le texte passe en clair ; les cartes pâles (appel, cartes, documents) gardent leur encre */
.bloc-habille[data-fond="nuit"] :is(.titre-section, .texte-long h2, .texte-long h3, .bloc-entete__intro, .bloc-repartition__legende):not(:is(.bloc-appel, .carte-filet, .doc) *) { color: var(--blanc); }
.bloc-habille[data-fond="nuit"] .texte-long a:not(:is(.bloc-appel, .carte-filet, .doc) *) { color: var(--safran); }
.bloc-habille[data-fond="nuit"] .discret:not(:is(.bloc-appel, .carte-filet, .doc) *) { color: var(--sur-nuit); }
.bloc-habille[data-fond="nuit"] .bouton--contour:not(:is(.bloc-appel, .carte-filet, .doc) *) { color: var(--blanc); }
.bloc-habille[data-largeur="etroite"] .conteneur { max-width: 780px; }
.bloc-habille[data-largeur="large"] .conteneur { max-width: none; padding-inline: clamp(24px, 4vw, 56px); }
/* le trait à la main, au-dessus du bloc ; la vague, le haut du fond qui ondule */
.bloc-habille__trait { display: block; width: 180px; height: 18px; overflow: visible; fill: none; stroke: var(--trait, var(--safran)); stroke-width: 6px; stroke-linecap: round; }
.bloc-habille__trait path { vector-effect: non-scaling-stroke; }
.bloc-habille__haut { padding-bottom: 14px; }
/* sans fond, le trait prend l'espace du haut et le bloc le suit de près ; après un bloc ordinaire, cet espace existe déjà */
.bloc-habille:not([data-fond]):not([data-chevauche])[data-separateur="trait"] > .bloc { padding-top: 0; }
.bloc-habille:not([data-fond]):not([data-chevauche])[data-separateur="trait"] > .bloc-habille__haut { padding-top: 48px; }
:is(.bloc, .bloc-habille:not([data-fond])) + .bloc-habille:not([data-fond]):not([data-chevauche])[data-separateur="trait"] > .bloc-habille__haut { padding-top: 0; }
.bloc-habille[data-fond]:not([data-chevauche]) > .bloc-habille__haut { padding-top: 44px; padding-bottom: 0; margin-bottom: -28px; }
.bloc-habille__vague { position: absolute; left: 0; bottom: calc(100% - 1px); display: block; width: 100%; height: clamp(18px, 3vw, 36px); fill: var(--bloc-fond); }
/* à cheval sur ce qui précède : le bloc devient une carte posée par-dessus (le bandeau, pour le premier) */
.bloc-habille[data-chevauche] { z-index: 2; margin-top: -64px; background: none; }
.bloc-habille[data-chevauche] > .bloc { padding-top: 0; }
.bloc-habille[data-chevauche] + .bloc, .bloc-habille[data-chevauche] + .bloc-habille:not([data-fond]):not([data-chevauche]) > .bloc { padding-top: 0; }
.bloc-habille[data-chevauche] > .bloc > .conteneur { padding: 32px clamp(22px, 3vw, 40px); border-radius: var(--rayon); background: var(--bloc-fond, var(--blanc)); box-shadow: var(--ombre); }
.bloc-habille[data-chevauche]:not([data-largeur]) > .bloc > .conteneur { max-width: calc(var(--largeur) - 48px); }
@media (max-width: 760px) { .bloc-habille[data-chevauche] > .bloc > .conteneur { margin-inline: 16px; } }
/* Lot C (23/11/2026) : le titre d'un bloc souligné, entouré ou marqué d'éclats à la main, la flèche dans la marge
   (sur un grand écran seulement : ailleurs, pas de marge où la poser), les pictogrammes animés sans attendre le survol.
   Les traits se dessinent quand on les voit (.trace) ; avec « réduire les animations », ils sont déjà là. */
.dessin { position: relative; display: inline-block; }
.dessin > svg { position: absolute; overflow: visible; pointer-events: none; fill: none; stroke: var(--trait, var(--safran)); stroke-linecap: round; stroke-linejoin: round; }
.dessin--souligne > svg { left: -2%; bottom: -.22em; width: 104%; height: .32em; stroke-width: 7; }
.dessin--entoure { padding-inline: .2em; }
.dessin--entoure > svg { left: -6%; top: -30%; width: 112%; height: 160%; stroke-width: 3.5; }
.dessin--eclats { margin-right: .9em; }
.dessin--eclats > svg { right: -1em; top: -.6em; width: .85em; height: .85em; stroke-width: 2.4; }
.bloc-habille__fleche { position: absolute; z-index: 1; top: 34px; left: max(6px, calc((100% - var(--largeur)) / 2 - 96px)); width: 92px; height: 69px; overflow: visible; fill: none; stroke: var(--trait, var(--safran)); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1240px) { .bloc-habille__fleche { display: none; } }
.bloc-habille[data-pictos="vivants"] .picto .anim > * { animation-play-state: running; }
/* Lot E (23/11/2026) : la couleur des traits à la main de l'ambiance d'une page (App\Site\Ambiance) ; sur le bleu nuit,
   un trait bleu nuit redevient safran */
.ambiance-traits[data-trait="corail"] { --trait: var(--corail); }
.ambiance-traits[data-trait="turquoise"] { --trait: var(--turquoise); }
.ambiance-traits[data-trait="encre"] { --trait: var(--encre); }
.ambiance-traits[data-trait="encre"] .bloc-habille[data-fond="nuit"] { --trait: var(--safran); }
.ambiance-traits .souligne path { stroke: var(--trait); }
/* Colonnes : deux piles de blocs côte à côte ; les blocs du dedans perdent leurs marges de section */
.bloc-colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; align-items: start; }
.bloc-colonnes[data-proportion="2-1"] { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.bloc-colonnes[data-proportion="1-2"] { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.bloc-colonnes__col { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.bloc-colonnes__col > .bloc { padding: 0; }
.bloc-colonnes__col .conteneur { max-width: none; padding: 0; }
.bloc-colonnes .bloc-chiffres { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (max-width: 760px) { .bloc-colonnes, .bloc-colonnes[data-proportion] { grid-template-columns: minmax(0, 1fr); } }
/* Bandeau d'annonce : une bande safran pâle, la pastille qui pulse (.pouls), le texte et son lien */
.bloc-annonce { padding: 16px 0; background: var(--safran-pale); border-bottom: 2px solid var(--safran); }
.bloc-annonce__dedans { display: flex; align-items: center; gap: 14px; }
.bloc-annonce .pouls { flex: none; }
.bloc-annonce__texte { margin: 0; font-weight: 700; font-size: 18px; color: var(--encre); }
.bloc-annonce__texte a { margin-left: 6px; color: var(--rouille); }
.bloc-annonce + .bloc { padding-top: 48px; } /* après la bande, le bloc suivant garde son espace (.bloc + .bloc l'ôte) */
/* En-tête : un grand titre souligné à la main ; avec une image, la grille de « Image et texte » (l'image à droite) */
.bloc-entete__titre { font-size: clamp(32px, 4vw, 52px); }
.bloc-entete__intro { margin: 0; max-width: 60ch; font-size: 20px; line-height: 1.6; color: var(--texte); }
.bloc-entete.bloc-image-texte { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
/* Répartition : une barre en parts de couleur (cachée aux lecteurs d'écran), et les mêmes parts écrites en clair */
.bloc-repartition__barre { display: flex; height: 26px; border-radius: 999px; overflow: hidden; background: var(--filet); }
.bloc-repartition__part { display: block; height: 100%; }
.bloc-repartition__part--1 { background: var(--safran); } .bloc-repartition__part--2 { background: var(--corail); }
.bloc-repartition__part--3 { background: var(--turquoise); } .bloc-repartition__part--4 { background: var(--encre); }
.bloc-repartition__legende { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; list-style: none; font-size: 17px; color: var(--texte); }
.bloc-repartition__legende li { display: flex; align-items: center; gap: 8px; }
.bloc-repartition__legende strong { color: var(--encre); }
.bloc-repartition__pastille { width: 14px; height: 14px; border-radius: 4px; transform: rotate(-8deg); }
/* Infos pratiques : la carte « Nous joindre » de la page Contact */
.bloc-infos { gap: 12px; padding: 26px; border-radius: 24px; background: var(--papier); }
.bloc-infos strong { color: var(--rouille); }
.bloc-infos .boutons { display: flex; flex-wrap: wrap; gap: 8px; }
/* La vraie carte (Leaflet), habillée comme le plan dessiné (fond-de-carte.js) : épingles en pastilles à pictogramme,
   cadre pointillé, rose des vents, échelle, repères dessinés ; la fiche en bulle. */
.dessin-plan--carte { aspect-ratio: auto; height: 560px; background: var(--papier); z-index: 0; }
.dessin-plan--carte.leaflet-container { background: #EFE8DA; } /* le fond de la palette, sous une tuile en cours de dessin (Leaflet : gris) */
.badge-lieu { background: none; border: 0; }
.badge-lieu__rond { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 2.5px solid var(--couleur); border-radius: 50%; background: color-mix(in srgb, var(--couleur) 22%, #FFFFFF); color: var(--encre); box-shadow: 0 8px 16px -10px rgba(27, 35, 64, .6); transform-origin: 50% 120%; transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); }
.badge-lieu__rond::after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -7px; border: 7px solid transparent; border-top: 9px solid var(--couleur); border-bottom: 0; }
.badge-lieu__rond .picto { width: 30px; height: 30px; }
.badge-lieu__rond[data-genre="ferme"], .badge-lieu__rond[data-genre="inconnu"] { border-color: color-mix(in srgb, var(--couleur) 55%, #FFFFFF); background: #FFFFFF; color: var(--gris); }
.badge-lieu__rond[data-genre="ferme"]::after, .badge-lieu__rond[data-genre="inconnu"]::after { border-top-color: color-mix(in srgb, var(--couleur) 55%, #FFFFFF); }
.badge-lieu:hover .badge-lieu__rond, .badge-lieu:focus-visible .badge-lieu__rond, .badge-lieu.choisi .badge-lieu__rond { transform: scale(1.15); }
.carte-cadre { position: absolute; inset: 8px; z-index: 450; width: calc(100% - 16px); height: calc(100% - 16px); overflow: visible; pointer-events: none; }
.carte-cadre rect { fill: none; stroke: var(--encre); stroke-width: 2.5; stroke-dasharray: 1 9; stroke-linecap: round; }
.dessin-plan--carte .leaflet-top .leaflet-control { margin-top: 18px; }
.dessin-plan--carte .leaflet-left .leaflet-control { margin-left: 18px; }
.dessin-plan--carte .leaflet-right .leaflet-control:not(.leaflet-control-attribution) { margin-right: 18px; }
.dessin-plan--carte .leaflet-bottom .leaflet-control:not(.leaflet-control-attribution) { margin-bottom: 20px; }
.carte-chargement { position: absolute; top: 50%; left: 50%; z-index: 460; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: rgba(255, 253, 248, .96); color: var(--encre); font: 700 15px/1.2 var(--police); white-space: nowrap; box-shadow: 0 12px 28px -14px rgba(27, 35, 64, .55); opacity: 0; transform: translate(-50%, -50%) scale(.96); transition: opacity .2s, transform .2s; pointer-events: none; }
.carte-chargement.visible { opacity: 1; transform: translate(-50%, -50%); }
.carte-chargement__roue { flex: none; width: 16px; height: 16px; border: 3px solid var(--safran); border-top-color: transparent; border-radius: 50%; }
.carte-rose svg { display: block; filter: drop-shadow(0 6px 8px rgba(27, 35, 64, .18)); }
@media (max-width: 600px) { .dessin-plan--carte .leaflet-bottom.leaflet-left .leaflet-control-scale { margin-bottom: 52px; } } /* l'attribution y tient sur deux lignes */
.dessin-plan--carte .leaflet-control-scale-line { padding: 0 6px 2px; border: 2.5px solid var(--encre); border-top: 0; background: rgba(247, 242, 233, .85); color: var(--encre); font: 600 19px/1 var(--main); }
.dessin-plan--carte .repere-carte { display: flex; flex-direction: column; align-items: center; background: none; border: 0; pointer-events: none; } /* la feuille de Leaflet, chargée après, pose display: block */
.repere-carte svg { flex: none; overflow: visible; }
/* Bloc « Petite carte » (23/11/2026) : la carte de la cartographie, moins haute ; la liste des lieux dessous */
.petite-carte { display: flex; flex-direction: column; gap: 14px; }
.petite-carte .dessin-plan--carte { height: clamp(300px, 40vw, 420px); }
.petite-carte .dessin-plan--carte[hidden] { display: none; }
.petite-carte__liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 14px; margin: 0; padding: 0; list-style: none; }
.petite-carte__liste li { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--filet); background: var(--blanc); }
.petite-carte__liste strong { color: var(--encre); font-size: 17px; line-height: 1.25; }
.petite-carte__liste a { align-self: flex-start; font-weight: 700; }
/* Bloc « Grand bandeau au ciel » (23/11/2026) : le ciel et la ville du bandeau (App\Site\Ciel), en grand, au fil de la
   page, le texte en blanc comme dans le bandeau. La ville ne s'enfonce pas au défilement : ce glissement suit le haut
   de la page, où le bloc n'est pas. Après lui, le bloc suivant garde son espace (.bloc + .bloc l'ôte). */
.bloc-ciel { --sol: 48px; }
.bloc-ciel__contenu { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: var(--largeur); margin: 0 auto; padding: 72px 24px calc(var(--sol) + 170px); }
.bloc-ciel__titre { max-width: 20ch; color: var(--blanc); font-size: clamp(34px, 4.4vw, 58px); line-height: 1.05; }
.bloc-ciel .ville__plan svg { animation: none; }
.bloc-ciel + .bloc { padding-top: 48px; }
@media (max-width: 600px) { .bloc-ciel .ville__astre { top: 22px; } .bloc-ciel__contenu { padding-top: 80px; } }
@media print { .bloc-ciel__titre { color: var(--encre); } .bloc-ciel__contenu { padding-bottom: 24px; } }
.repere-carte span { max-width: 130px; margin-top: 1px; color: var(--encre-2); font: 600 17px/1 var(--main); text-align: center; text-shadow: 0 0 3px var(--papier), 0 0 3px var(--papier), 0 0 6px var(--papier); }
.leaflet-popup-content-wrapper { border-radius: 18px; box-shadow: 0 22px 44px -20px rgba(27, 35, 64, .6); }
.leaflet-popup-content { margin: 0; }
.fiche-lieu--carte { position: static; width: auto; box-shadow: none; font-family: var(--police); font-size: 15px; }
.leaflet-container { font-family: var(--police); }
.leaflet-container a.bouton--encre { color: var(--blanc); }
.echelle { position: absolute; left: 22px; bottom: 18px; font-size: 13px; font-weight: 700; color: var(--encre); }
.echelle span { display: block; height: 8px; margin-bottom: 4px; border: 2.5px solid var(--encre); border-top: 0; }

/* ---------- 10. Contenus de page ---------- */
.etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.etape { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 22px; background: var(--blanc); }
.etape__n { font-family: var(--main); font-size: 34px; line-height: 1; color: var(--rouille); }
.dessin-trait { fill: none; stroke: var(--encre); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.encart-chiffre { display: flex; align-items: center; gap: 20px; padding: 28px; border-radius: 24px; background: var(--papier); }
.infos { display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: 24px; background: var(--encre); color: var(--blanc); }
.infos strong { color: var(--safran); }
/* Les documents (retour d'Axel du 30/10) : une petite page dessinée à gauche, le titre sur toute la
   largeur, le format en pastille dessous. Le format ne prend plus de colonne et n'écrase plus le titre. */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.doc { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; align-content: start; column-gap: 14px; row-gap: 8px; padding: 18px 18px 16px; border-radius: 18px; border: 2px solid var(--filet); background: var(--blanc); color: var(--encre); font-weight: 700; line-height: 1.35; text-decoration: none; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), border-color .25s ease, box-shadow .25s ease; }
.doc::before { content: ""; grid-row: 1 / span 2; width: 38px; height: 48px; border-radius: 4px 12px 4px 4px; background: var(--safran-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 48'%3E%3Cpath d='M26 1v10h11' fill='none' stroke='%231B2340' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M8 22h22M8 29h22M8 36h14' stroke='%231B2340' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; box-shadow: inset 0 0 0 2px var(--encre); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.doc:nth-child(4n+2)::before { background-color: var(--corail-pale); } .doc:nth-child(4n+3)::before { background-color: var(--froid-pale); } .doc:nth-child(4n)::before { background-color: var(--papier); }
.doc:hover { transform: translateY(-4px); border-color: var(--encre); box-shadow: 0 20px 34px -26px rgba(27, 35, 64, .55); color: var(--encre); }
.doc:hover::before { transform: rotate(-6deg); }
.doc span { grid-column: 2; justify-self: start; padding: 2px 10px; border-radius: 999px; background: var(--papier); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--rouille); }
.doc:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; }
.formulaire { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 22px; background: var(--papier); }
/* Envoyé, le formulaire laisse la place au merci (sans cette règle, display: flex le gardait affiché : 30/11/2026) */
.formulaire[hidden] { display: none; }
.formulaire--filet { background: var(--blanc); border: 2px solid var(--filet); }
.champs { display: flex; flex-wrap: wrap; gap: 12px; }
.champ { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; font-weight: 700; color: var(--encre); }
.champ input, .champ textarea { min-height: 50px; padding: 10px 14px; border: 2px solid var(--filet-2); border-radius: 12px; background: var(--blanc); font: 17px var(--police); color: var(--encre); }
.champ textarea { min-height: 140px; }
/* Le champ piège des formulaires : hors de l'écran, seul un robot le remplit */
.champ-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* L'erreur (30/11/2026) : un titre qui dit ce qui s'est passé, puis ce qu'on peut faire, en texte courant */
.formulaire__erreur { margin: 0; padding: 14px 18px; border-left: 5px solid var(--corail); border-radius: 12px; background: var(--corail-pale); color: var(--encre); font-weight: 400; line-height: 1.5; }
.formulaire__erreur strong { display: block; margin-bottom: 2px; font-weight: 800; }
.formulaire__erreur a { color: var(--encre); font-weight: 700; }
/* Pendant l'envoi : les champs figés et pâlis, le bouton occupé avec son indicateur, l'annonce pour les lecteurs d'écran */
.formulaire--envoi .champ input, .formulaire--envoi .champ textarea, .formulaire--envoi .puces { opacity: .55; }
.formulaire--envoi button[type="submit"] { cursor: progress; }
.formulaire--envoi button[type="submit"]:hover { transform: none; }
.formulaire--envoi button[type="submit"]::before { content: ''; flex: none; width: 18px; height: 18px; box-sizing: border-box; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; }
.formulaire__annonce { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Sans script, le serveur ramène à #erreur-… ou #merci-… : la cible se montre */
.formulaire__erreur[hidden]:target { display: block; }
.chiffres-service { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px 20px; }
.chiffre-cercle { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.chiffre-cercle__n { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 150px; height: 112px; padding: 0 22px; font-family: var(--titre); font-weight: 800; font-size: 56px; line-height: 1; color: var(--encre); }
.chiffre-cercle__n svg { position: absolute; left: -8px; top: -6px; width: calc(100% + 16px); height: calc(100% + 12px); overflow: visible; }
.chiffre-cercle__n path { fill: none; stroke: var(--couleur); stroke-width: 3.4; stroke-linecap: round; }
.texte-long { max-width: 68ch; font-size: 19px; line-height: 1.75; }
.texte-long h2 { margin: 52px 0 14px; font-family: var(--titre); font-weight: 800; font-size: 30px; line-height: 1.15; color: var(--encre); scroll-margin-top: 24px; }
.texte-long h2:first-child { margin-top: 0; }
.texte-long h3 { margin: 28px 0 10px; font-family: var(--titre); font-weight: 700; font-size: 22px; color: var(--encre); }
.texte-long p { margin: 0 0 18px; }
.texte-long ul { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.texte-long li { position: relative; padding-left: 30px; }
.texte-long li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 12px; height: 12px; border-radius: 3px; background: var(--froid); transform: rotate(-8deg); }
.lettrine::first-letter { float: left; margin: .06em .14em 0 0; padding: .04em .14em; border-radius: .14em; background: var(--safran); color: var(--encre); font-family: var(--titre); font-weight: 800; font-size: 3.6em; line-height: .9; }
.avec-sommaire { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; }
.sommaire { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; gap: 14px; }
.sommaire nav a { display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--encre); font-weight: 700; font-size: 16px; line-height: 1.3; text-decoration: none; }
.sommaire nav a span { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--papier); font-family: var(--main); font-size: 20px; transition: background .2s ease, transform .2s ease; }
.sommaire nav a:hover span { background: var(--safran); transform: rotate(-8deg); }
.repli summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 22px 0 14px; border-radius: 999px; background: var(--papier); color: var(--encre); font-weight: 700; }
.repli summary::-webkit-details-marker { display: none; }
.repli__plus { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--encre); color: var(--blanc); font-size: 20px; line-height: 1; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.repli[open] .repli__plus { transform: rotate(45deg); }
.repli[open] summary { margin-bottom: 18px; }
.encadre { margin: 30px 0; padding: 26px 28px; border-radius: 22px; background: var(--encre); color: var(--blanc); display: flex; flex-direction: column; gap: 8px; }
.encadre__mot { font-family: var(--main); font-size: 26px; line-height: 1; color: var(--safran); }
.encadre__texte { font-family: var(--titre); font-weight: 700; font-size: 23px; line-height: 1.35; }
.pastilles-texte { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.pastilles-texte span { padding: 6px 14px; border-radius: 999px; background: var(--papier); font-size: 16px; font-weight: 700; color: var(--encre); }
.pastilles-texte span:nth-child(4n+1) { background: var(--safran-pale); } .pastilles-texte span:nth-child(4n+3) { background: var(--corail-pale); } .pastilles-texte span:nth-child(4n) { background: var(--froid-pale); }
.moments { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.moment { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 22px; background: var(--papier); }
.moment:first-child { background: var(--safran-pale); }
.moment:last-child { background: var(--encre); color: var(--blanc); }
.moment:last-child .titre-carte { color: var(--blanc); }
.moment ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; }
.puces-statiques { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.puces-statiques li { padding: 10px 16px; border-radius: 999px; background: var(--blanc); font-weight: 700; color: var(--encre); }
.etat-saison { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; padding: 26px 28px; border-radius: 24px; background: var(--blanc); box-shadow: var(--ombre); }
.barre-progres { position: relative; height: 10px; border-radius: 999px; background: #EEF0F5; }
.barre-progres span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--encre); }
.repere-mois { display: flex; justify-content: space-between; font-size: 14px; color: var(--gris); }

/* ---------- 11. Mosaïque de services, axes, projets ---------- */
.mosaique { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(300px, auto); gap: 16px; }
.tuile-service { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 28px; background: var(--fond); color: var(--encre); text-decoration: none; transition: transform .35s cubic-bezier(.3, 1.3, .5, 1), box-shadow .35s ease, opacity .35s ease, filter .35s ease; }
.tuile-service:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 30px 50px -30px rgba(27, 35, 64, .65); color: var(--encre); }
.tuile-service--grande { grid-column: span 2; grid-row: span 2; }
.tuile-service--nuit { color: var(--blanc); } .tuile-service--nuit:hover { color: var(--blanc); }
.tuile-service[data-eteint] { opacity: .28; filter: grayscale(.9); }
.tuile-service__dessin { flex: 1; display: grid; place-items: center; min-height: 120px; }
.tuile-service__nom { font-family: var(--titre); font-weight: 800; font-size: 23px; line-height: 1.1; }
.tuile-service--grande .tuile-service__nom { font-size: 34px; }
.tuile-service__pour { align-self: flex-start; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .55); font-size: 13px; font-weight: 700; }
.reseau-axes { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; }
.reseau-axes svg { flex: 1.2 1 480px; width: 100%; max-width: 620px; height: auto; overflow: visible; }
.noeud { transform-box: fill-box; transform-origin: center; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
a:hover .noeud, a:focus-visible .noeud { transform: scale(1.12); }
.etiquettes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.etiquette { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 30px 26px 26px 54px; border-radius: 18px 26px 26px 18px; background: var(--blanc); color: var(--encre); text-decoration: none; transform: rotate(var(--r, -1.5deg)); box-shadow: 0 16px 30px -22px rgba(27, 35, 64, .55); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.etiquette:hover { transform: rotate(0) translateY(-6px); color: var(--encre); }
.etiquette::before { content: ""; position: absolute; left: 20px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--papier); box-shadow: inset 0 0 0 3px var(--couleur, var(--safran)); }
.banniere { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; padding: 30px 34px; border-radius: 28px; background: var(--encre); color: var(--blanc); }
.banniere strong { flex: 1 1 380px; font-family: var(--titre); font-weight: 800; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; }
.banniere--safran { background: var(--safran); color: var(--encre); }
.banniere--corail { background: var(--corail); color: var(--encre); }

/* ---------- 12. Institution, axe, publications, contact, recherche ---------- */
.rue-etapes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; text-align: center; }
/* La rue en boucle (travail de rue) : l'image immobile ; le mouvement est au § 13, écrit par outils/rue-boucle.js */
.rue-etapes li { padding: 14px 10px; border-radius: 18px; }
.rue-sillage { fill: none; stroke: var(--safran); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.rue-halo { fill: none; stroke: var(--safran); stroke-width: 5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.rue-marcheur { fill: none; stroke: var(--encre); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rue-jambe { transform-box: fill-box; transform-origin: 50% 0; }
.rue-bulle { opacity: 0; transform-box: fill-box; transform-origin: 0% 100%; }
.rue-bulle__forme { fill: var(--blanc); stroke: var(--encre); stroke-width: 2.5; stroke-linejoin: round; }
.rue-bulle text, .rue-point { fill: var(--encre); }
.rue-fleche { fill: none; stroke: var(--corail); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.rue-maison { fill: none; stroke: var(--encre); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rue-fenetre { fill: var(--blanc); stroke: var(--encre); stroke-width: 2; }
/* Le DUS jour et nuit (urgence sociale), dans le haut de page lui-même (Axel, 02/11/2026 : « pas
   l'impression d'avoir posé un bloc ») : la maison du DUS se tient dans la ville, à droite, posée sur le
   sol ; ses fenêtres suivent l'heure de la ville, la sienne reste allumée. Immobile ici ; le tour du
   jour au § 13. Sur téléphone, plus petite, dans les 150 px de ville sous le texte. */
.dus-veilleur { position: absolute; z-index: 1; right: max(24px, calc(50% - var(--largeur) / 2 + 24px)); bottom: var(--sol); width: 264px; height: auto; pointer-events: none; }
.dus-maison { fill: var(--v-pres); }
.dus-porte { fill: var(--v-porte); }
.dus-fenetre { fill: var(--v-vitre); }
.dus-allume { fill: var(--safran); opacity: var(--v-allume); }
.dus-veille { fill: var(--safran); }
.dus-halo { fill: var(--safran-pale); opacity: .3; transform-box: fill-box; transform-origin: center; }
.dus-bulle__forme { fill: var(--blanc); stroke: var(--encre); stroke-width: 2.5; stroke-linejoin: round; }
.dus-tel { fill: var(--safran-pale); stroke: var(--encre); stroke-width: 2.5; transform-box: fill-box; transform-origin: 50% 90%; }
.dus-onde { fill: none; stroke: var(--corail); stroke-width: 3; stroke-linecap: round; opacity: 0; }
.dus-mot { fill: var(--encre); opacity: 0; } .dus-mot--1 { opacity: 1; }
/* Les lieux de l'accueil de jour (02/11/2026) : le logo en tête de carte, des lignes à icône, les
   horaires en petit tableau, pour trouver l'info d'un coup d'œil. */
.lieu__logo { display: flex; align-items: center; justify-content: center; height: 96px; margin: -22px -22px 6px; padding: 16px 24px; border-bottom: 2px solid var(--filet); }
.lieu__logo img { display: block; max-width: 100%; height: 100%; object-fit: contain; }
.horaires-jours { border-collapse: collapse; font-size: 16px; line-height: 1.4; }
.horaires-jours th { padding: 1px 14px 1px 0; text-align: left; font-weight: 700; color: var(--encre); white-space: nowrap; vertical-align: top; }
.horaires-jours td { padding: 1px 0; vertical-align: top; white-space: nowrap; }
/* deux périodes dans un même tableau (L'Accueil, 18/11/2026) : le Plan Grand Froid, puis le reste de l'année */
.horaires-jours th.horaires-jours__periode { padding-top: 10px; font-family: var(--main); font-weight: 600; font-size: 22px; line-height: 1.1; color: var(--rouille); }
.horaires-jours tr:first-child th.horaires-jours__periode { padding-top: 0; }
/* La page Liens (02/11/2026) : quatre thèmes, des cartes qui disent à quoi sert chaque site */
.liens-groupe { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 90px; }
.liens-groupe__tete { display: flex; align-items: center; gap: 18px; }
.liens-groupe__tete .picto { width: 64px; height: 64px; padding: 10px; border-radius: 20px; background: var(--safran-pale); color: var(--encre); }
.liens-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.lien-carte { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 20px; border: 2px solid var(--filet); background: var(--blanc); color: var(--encre); text-decoration: none; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.lien-carte:hover { transform: translateY(-4px); border-color: var(--safran); box-shadow: 0 18px 34px -26px rgba(27, 35, 64, .55); }
.lien-carte__nom { font-family: var(--titre); font-weight: 800; font-size: 19px; line-height: 1.25; }
.lien-carte__desc { font-size: 15px; line-height: 1.45; color: var(--gris); }
.lien-carte__site { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--rouille); overflow-wrap: anywhere; }
.lien-carte__site svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* La table de l'accueil de jour (Axel, 02/11/2026, angle H du canevas), et ses sœurs la nuit et le
   soin : l'image immobile ; le mouvement au § 13. Fondues dans la page le même jour (« pas l'impression
   d'avoir posé un bloc ») : la section prolonge le haut de page, les cartes clés posées sur le mur de la
   pièce ; le dessin prend toute la largeur, son mur et son sol filent jusqu'aux bords (le SVG les dessine
   au-delà de son cadre), le sol se perd dans la page. Sur téléphone, la pièce, plus large que l'écran, se
   recadre sur son centre. */
.calme-bande { overflow-x: clip; background: linear-gradient(transparent var(--chev, 60px), var(--mur) var(--chev, 60px)); }
.calme { margin: 44px 0 0; display: flex; flex-direction: column; gap: 6px; }
.calme__scene { display: block; width: 100%; height: clamp(300px, 34vw, 460px); }
.calme__legende { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 24px; text-align: center; font-family: var(--titre); font-weight: 800; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.2; color: var(--legende, var(--encre)); }
.calme-vapeur { fill: none; stroke: #8C8FA3; stroke-width: 3; stroke-linecap: round; opacity: .6; }
.calme-feuilles { transform-box: fill-box; transform-origin: 50% 100%; }
.calme-poussiere { opacity: 0; }
/* La nuit de l'accueil de nuit, même composant : les étoiles, la lune, le clair de lune, la veilleuse */
.calme-etoile { opacity: .7; }
.calme-veilleuse { opacity: .2; transform-box: fill-box; transform-origin: center; }
/* Le soin de l'axe santé : le jeudi entouré, le pouls au mur */
.calme-cercle { fill: none; stroke: var(--corail); stroke-width: 3.5; stroke-linecap: round; }
.calme-pouls { fill: none; stroke: var(--turquoise); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .6; }
@media (max-width: 600px) { .calme__scene { width: 680px; max-width: none; margin-left: calc(50% - 340px); height: 300px; } }
@media (max-width: 900px) { .dus-veilleur { width: 200px; } }
@media (max-width: 600px) { .dus-veilleur { width: 170px; } }
.frise { position: relative; }
.frise > svg { position: absolute; left: 0; top: 0; width: 100%; height: 60px; overflow: visible; }
.frise ol { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.frise li { display: flex; flex-direction: column; gap: 4px; padding-top: 18px; }
.jalon { width: 24px; height: 24px; margin-bottom: 10px; border-radius: 6px; background: var(--couleur, var(--encre)); transform: rotate(var(--r, -8deg)); }
.frise__annee { font-family: var(--titre); font-weight: 800; font-size: 40px; line-height: 1; color: var(--encre); }
.frise__annee--vide { color: #C9C4B6; }
.frise__date { font-family: var(--main); font-size: 24px; line-height: 1.1; color: var(--rouille); }
.instance { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 22px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.instance--safran { background: var(--safran); color: var(--encre); box-shadow: none; }
.instance__qui { font-family: var(--main); font-size: 22px; line-height: 1; color: var(--corail); }
.points { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.points span { width: 14px; height: 14px; border-radius: 50%; background: var(--safran); }
.points span.creux { background: transparent; box-shadow: inset 0 0 0 2px var(--safran); }
.portraits { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.portrait { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 16px; border-radius: 20px; border: 2px solid var(--filet); text-align: center; color: var(--encre); }
.portrait__visage { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--fond, var(--safran)); }
.portrait__prenom { font-size: 15px; font-weight: 700; color: #8A8DA0; }
.portrait__role { font-family: var(--titre); font-weight: 800; font-size: 18px; line-height: 1.2; }
/* Les cartes des publications : la couverture aux couleurs de la sorte, le titre, le détail, et ce que la
   carte permet (ouvrir, ou « fichier à venir » : ce n'est alors pas un lien). */
.doc-carte { position: relative; display: flex; gap: 16px; padding: 18px; border-radius: 20px; border: 2px solid var(--filet); background: var(--blanc); color: var(--encre); text-decoration: none; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), border-color .25s ease, box-shadow .25s ease; }
.doc-carte[hidden] { display: none; }
a.doc-carte:hover { transform: translateY(-4px); border-color: var(--encre); box-shadow: 0 20px 34px -26px rgba(27, 35, 64, .55); color: var(--encre); }
a.doc-carte:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; }
.doc-carte__couv { flex: none; width: 72px; height: 98px; padding: 12px 10px; border-radius: 6px 14px 6px 6px; background: var(--fond); display: flex; flex-direction: column; gap: 6px; box-shadow: 6px 6px 0 -2px color-mix(in srgb, var(--fond) 35%, var(--blanc)); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
a.doc-carte:hover .doc-carte__couv { transform: rotate(-4deg) translateY(-6px); }
.doc-carte__couv i { height: 5px; border-radius: 3px; background: var(--encre-doc, var(--encre)); opacity: .85; }
.doc-carte__texte { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.doc-carte__sorte { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--rouille); }
.doc-carte__titre { font-family: var(--titre); font-weight: 800; font-size: 18px; line-height: 1.25; }
.doc-carte__detail { font-size: 14px; color: var(--gris); }
.doc-carte__action { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 800; color: var(--rouille); }
a.doc-carte .doc-carte__action::after { content: "\00a0→"; }
.doc-carte__action--attente { font-weight: 700; color: var(--gris); }
.doc-carte--a-venir { border-style: dashed; }
.doc-carte--a-venir .doc-carte__couv { opacity: .75; }
/* Une ancre ne se cache plus sous la barre compacte du haut. */
[id] { scroll-margin-top: 96px; }
.presse { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.presse li { display: grid; grid-template-columns: 74px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--filet-2); }
.presse__annee { font-family: var(--main); font-size: 30px; line-height: 1; color: var(--rouille); }
.presse__annee--repete { visibility: hidden; }
.presse__titre { font-family: var(--titre); font-weight: 800; font-size: 19px; line-height: 1.25; color: var(--encre); text-decoration: none; }
.portes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.porte { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 24px; text-decoration: none; box-shadow: 0 18px 40px -26px rgba(27, 35, 64, .6); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.porte:hover { transform: translateY(-6px) rotate(-1deg); }
.porte--safran { background: var(--safran); color: var(--encre); } .porte--safran:hover { color: var(--encre); }
.porte--blanc { background: var(--blanc); color: var(--encre); } .porte--blanc:hover { color: var(--encre); }
.porte--nuit { background: var(--encre); color: var(--blanc); } .porte--nuit:hover { color: var(--blanc); }
.onglets { display: flex; flex-wrap: wrap; gap: 10px; }
.onglet { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 14px; border: 0; border-radius: 999px; background: var(--blanc); color: var(--encre); font: 700 17px var(--police); cursor: pointer; box-shadow: 0 0 0 1px rgba(27, 35, 64, .08); }
.onglet[aria-selected="true"] { background: var(--encre); color: var(--blanc); }
.onglet svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.panneau-dons[hidden] { display: none; }
.iban { align-self: flex-start; padding: 6px 12px; border-radius: 10px; background: var(--papier); font-weight: 700; letter-spacing: .04em; color: var(--encre); }
/* Le merci (30/11/2026) : la coche et le turquoise disent « c'est parti », sans doute possible */
.merci { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 36px; border: 2px solid var(--turquoise); border-radius: 26px; background: var(--froid-pale); }
.merci::before { content: '✓'; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--turquoise); color: var(--blanc); font: 800 26px/1 var(--police); }
.merci[hidden] { display: none; }
.merci[hidden]:target { display: flex; }
.resultats { display: flex; flex-direction: column; gap: 22px; }
.resultat { display: flex; gap: 16px; padding: 18px 20px; border-radius: 18px; border: 2px solid var(--filet); color: var(--encre); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.resultat:hover { border-color: var(--encre); transform: translateX(4px); color: var(--encre); }
.resultat__barre { flex: none; width: 12px; border-radius: 6px; background: var(--couleur); }
.resultat mark { background: #F8DD95; color: inherit; border-radius: 4px; padding: 0 2px; }
.groupe-titre { margin: 8px 0 0; font-family: var(--main); font-weight: 600; font-size: 30px; line-height: 1; color: var(--rouille); }
.page-erreur { position: relative; min-height: 100vh; overflow: hidden; color: var(--blanc); background: var(--ciel-haut); --sol: 0px; }
.page-erreur__contenu { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; padding: 30px 24px 300px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.erreur-chiffres { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2vw, 26px); font-family: var(--titre); font-weight: 800; font-size: clamp(120px, 18vw, 250px); line-height: 1; letter-spacing: -.04em; }
.erreur-lune { position: relative; display: inline-block; width: .78em; height: .78em; border-radius: 50%; background: var(--safran); box-shadow: 0 0 60px 14px rgba(244, 197, 83, .35); }
.erreur-lune::before, .erreur-lune::after { content: ""; position: absolute; border-radius: 50%; background: #E2AE3C; }
.erreur-lune::before { left: 22%; top: 26%; width: 18%; height: 18%; } .erreur-lune::after { left: 56%; top: 52%; width: 13%; height: 13%; }
.telephone { position: relative; width: 270px; height: 540px; padding: 12px; border-radius: 44px; background: #10162B; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .75), inset 0 0 0 2px rgba(255, 255, 255, .12); }
.telephone__ecran { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 34px; background: var(--papier); color: var(--encre); }
.telephone__barre { position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 38px; display: flex; align-items: center; justify-content: center; background: var(--encre); color: var(--blanc); font-family: var(--titre); font-weight: 800; font-size: 14px; }
.ecran { position: absolute; inset: 0; padding: 46px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.ecran--2, .ecran--3 { opacity: 0; }

/* ---------- 12 bis. Retours d'Axel du 29/10 au soir : missions, axes, équipe, partenaires, dénombrement ---------- */
/* Les six missions : aplats pâles, un dessin au trait, un numéro à la main et une phrase.
   Les carrés pleins sans texte se lisaient mal (les pleins font « criard »). */
.missions2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: mission; }
.mission2 { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 24px; border-radius: 24px; background: var(--teinte, var(--safran-pale)); color: var(--encre); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.mission2:hover { transform: translateY(-5px) rotate(-1deg); }
.mission2:nth-child(6n+2) { --teinte: var(--corail-pale); } .mission2:nth-child(6n+3) { --teinte: var(--froid-pale); }
.mission2:nth-child(6n+4) { --teinte: var(--encre-pale); } .mission2:nth-child(6n+5) { --teinte: var(--safran-pale); } .mission2:nth-child(6n) { --teinte: var(--corail-pale); }
.mission2::before { counter-increment: mission; content: "0" counter(mission); position: absolute; top: 14px; right: 20px; font-family: var(--main); font-size: 32px; line-height: 1; color: var(--rouille); }
.mission2 .picto { width: 68px; height: 68px; }
.mission2__nom { font-family: var(--titre); font-weight: 800; font-size: 24px; line-height: 1.1; }
.mission2__texte { font-size: 16px; line-height: 1.5; color: var(--texte); }

/* Les cinq axes : un plan en HTML (les ronds sont des liens, avec leur dessin), des liens en pointillés qui circulent. */
.axes { position: relative; flex: 1.2 1 480px; width: 100%; max-width: 620px; aspect-ratio: 560 / 530; }
.axes__liens { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.axes__liens path { fill: none; stroke: var(--encre); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 12; }
.axes__centre { position: absolute; left: 50%; top: 49%; width: 29%; aspect-ratio: 1; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 50%; background: var(--encre); color: var(--blanc); text-align: center; font-family: var(--titre); font-weight: 800; font-size: clamp(18px, 2vw, 23px); line-height: 1.05; box-shadow: 0 0 0 10px var(--blanc), 0 0 0 12px var(--filet-2); }
.axes__centre i { display: inline-block; width: 14px; height: 14px; margin: 0 2px 6px; border-radius: 4px; background: var(--safran); }
.axes__centre i:nth-child(2) { background: var(--corail); } .axes__centre i:nth-child(3) { background: var(--froid); }
.axes__centre em { font-style: normal; color: var(--safran); }
.axe { position: absolute; left: var(--x); top: var(--y); width: 172px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--encre); text-decoration: none; transform: translate(-50%, -48px); }
.axe--haut { transform: translate(-50%, calc(-100% + 48px)); }
.axe--haut .axe__rond { order: 2; }
.axe__rond { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--teinte, var(--safran-pale)); box-shadow: 0 0 0 6px var(--blanc), 0 0 0 8px var(--anneau, var(--safran)); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.axe .picto { width: 62px; height: 62px; }
.axe:hover { color: var(--encre); }
.axe:hover .axe__rond { transform: translateY(-6px) rotate(-4deg) scale(1.05); }
.axe__nom { font-weight: 700; font-size: 18px; line-height: 1.2; }
.axe__dit { font-size: 14px; line-height: 1.35; color: var(--gris); }

.instance__liste { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.45; color: var(--sur-nuit); }

/* L'équipe : un groupe par ligne (ou deux groupes d'une personne côte à côte), sur une seule
   grille de quatre colonnes, pour que chaque carte ait la même largeur. Les titres d'une même
   ligne partagent leur hauteur (sous-grilles). */
.equipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 16px; row-gap: 34px; }
.equipe-groupe { display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 12px; }
.equipe-groupe--ligne { grid-column: 1 / -1; } .equipe-groupe--moitie { grid-column: span 2; }
.equipe-groupe > .groupe-titre, .equipe-groupe > .equipe-sous-titre { grid-column: 1 / -1; align-self: end; margin: 0; }
.equipe .groupe-titre { font-size: 28px; }
.equipe-titre { grid-column: 1 / -1; margin: 0 0 -22px; padding-top: 6px; border-top: 2px solid var(--filet); }
.equipe-sous-titre { font-size: 17px; font-weight: 700; }
.equipe-groupe > .portraits { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; gap: 0 16px; }
.portrait__texte { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 6px; }

/* L'équipe : photos reprises de rsull.be (recadrées, sans métadonnées). */
.portrait__photo { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; background: var(--papier); box-shadow: 0 0 0 5px var(--blanc), 0 0 0 7px var(--fond, var(--safran)); }
.portrait__nom { font-family: var(--titre); font-weight: 800; font-size: 19px; line-height: 1.2; color: var(--encre); }
.portrait__fonction { font-size: 15px; line-height: 1.4; color: var(--gris); }
.portrait__tel { margin-top: auto; font-size: 15px; font-weight: 700; }
.portrait__courriel { margin-top: auto; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.portrait__courriel + .portrait__tel { margin-top: 0; }
/* le GSM sous la ligne directe (03/11/2026) : collés l'un à l'autre, pas répartis dans la carte */
.portrait__tel + .portrait__tel { margin-top: 0; }
a.portrait:hover { border-color: var(--encre); color: var(--encre); }

/* Le capteur : le parcours du réseau au propriétaire, de gauche à droite (de haut en bas sur téléphone). */
.parcours { display: grid; grid-template-columns: minmax(0, 1.8fr) 104px minmax(0, 1fr) 104px minmax(0, 1fr); align-items: center; gap: 10px; }
.parcours__reseau { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 24px; background: var(--papier); }
.parcours__titre { font-family: var(--main); font-size: 28px; line-height: 1; color: var(--rouille); }
.parcours__partenaires { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.parcours__partenaires li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--blanc); font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--encre); }
.parcours__partenaires li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--safran); }
.parcours__partenaires li:nth-child(3n+2)::before { background: var(--corail); } .parcours__partenaires li:nth-child(3n)::before { background: var(--turquoise); }
.parcours__etape { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.parcours__rond { display: grid; place-items: center; width: 124px; height: 124px; border-radius: 50%; background: var(--teinte, var(--safran-pale)); box-shadow: 0 0 0 6px var(--blanc), 0 0 0 8px var(--anneau, var(--safran)); }
.parcours__rond .picto { width: 78px; height: 78px; color: var(--encre); }
.parcours__nom { font-family: var(--titre); font-weight: 800; font-size: 22px; line-height: 1.15; color: var(--encre); }
.parcours__dit { font-size: 15px; line-height: 1.4; color: var(--gris); }
.parcours__lien { display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: var(--main); font-size: 21px; line-height: 1; text-align: center; color: var(--rouille); }
.parcours__lien svg { width: 100%; height: 42px; overflow: visible; fill: none; stroke: var(--encre); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.parcours__suite { margin: 0; padding: 16px 20px; border-radius: 16px; background: var(--froid-pale); }
/* Les neuf Relais sociaux : un plan (positions selon les villes, pas la frontière) et la liste. */
.neuf-relais { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; padding: 30px; border-radius: 28px; background: var(--froid-pale); }
.neuf-relais__plan { flex: 1.4 1 460px; width: 100%; max-width: 640px; height: auto; }
.neuf-relais__chiffre { font-family: var(--titre); font-weight: 800; font-size: 88px; line-height: .9; color: var(--encre); }
.neuf-relais__liste { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.neuf-relais__liste li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--filet-2); font-size: 15px; }
.neuf-relais__liste span { color: var(--gris); }

/* Le contact d'un service, avec sa photo (Case Manager, capteur, chargé de projets). */
.referent { display: flex; align-items: center; gap: 22px; padding: 24px; border-radius: 26px; background: var(--teinte, var(--papier)); color: var(--encre); }
.referent__photo { flex: none; width: 128px; height: 128px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 5px var(--blanc), 0 0 0 7px var(--fond, var(--safran)); }
.referent__texte { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.referent__nom { font-family: var(--titre); font-weight: 800; font-size: 24px; line-height: 1.15; }
.referent__fonction { font-size: 15px; line-height: 1.45; color: var(--gris); }
.referent__liens { display: flex; flex-wrap: wrap; gap: 4px 18px; font-weight: 700; overflow-wrap: anywhere; }
/* La fiche de contact du propriétaire (capteur) : la photo en médaillon qui dépasse du haut. */
.fiche-contact { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 70px; padding: 82px 28px 28px; border-radius: 28px; background: var(--blanc); box-shadow: var(--ombre); text-align: center; color: var(--encre); }
.fiche-contact__photo { position: absolute; top: -64px; left: 50%; width: 128px; height: 128px; margin-left: -64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px var(--papier), 0 0 0 9px var(--corail); }
.fiche-contact__nom { font-family: var(--titre); font-weight: 800; font-size: 26px; line-height: 1.15; }
.fiche-contact__fonction { font-size: 15px; line-height: 1.45; color: var(--gris); max-width: 30ch; }
.fiche-contact__liens { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 8px; font-weight: 700; overflow-wrap: anywhere; }
.fiche-contact__brochure { font-size: 15px; font-weight: 700; }

/* Le contact d'un service en une seule fiche (Case Manager) : la personne et les coordonnées, une fois. */
.contact-service { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 36px; padding: 30px; border-radius: 28px; background: var(--encre); color: var(--blanc); }
.contact-service__photo { flex: none; width: 150px; height: 150px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px var(--encre-2), 0 0 0 9px var(--fond, var(--safran)); }
.contact-service__texte { flex: 1 1 360px; display: flex; flex-direction: column; gap: 8px; }
.contact-service__titre { margin: 0; font-family: var(--main); font-weight: 600; font-size: 30px; line-height: 1; color: var(--safran); }
.contact-service__nom { font-family: var(--titre); font-weight: 800; font-size: 28px; line-height: 1.15; }
.contact-service__fonction { font-size: 15px; line-height: 1.45; color: var(--sur-nuit); }
.contact-service__infos { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 6px 0 4px; }
.contact-service__infos span { display: flex; flex-direction: column; gap: 2px; }
.contact-service__infos strong { color: var(--safran); }
.contact-service__infos a { color: var(--blanc); font-weight: 700; overflow-wrap: anywhere; }

/* Le dénombrement : un point par personne, des jauges pour les groupes, les enfants en points,
   et les années de chaque dénombrement wallon. */
.nuage { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; padding: 28px; border-radius: 26px; background: var(--papier); }
.nuage__points { flex: 1.6 1 460px; display: grid; grid-template-columns: repeat(32, 1fr); gap: 4px; }
.nuage__points span { aspect-ratio: 1; border-radius: 50%; background: var(--encre); }
.nuage__points span.enfant { background: var(--corail); }
.nuage__legende { flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; }
.nuage__total { font-family: var(--titre); font-weight: 800; font-size: 26px; line-height: 1.15; color: var(--encre); }
.nuage__total strong { display: block; font-size: 72px; line-height: 1; }
.nuage__cle { display: flex; align-items: center; gap: 10px; font-size: 18px; color: var(--encre); }
.nuage__cle strong { font-family: var(--titre); font-size: 28px; }
.nuage__pastille { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--encre); }
.nuage__pastille--enfant { background: var(--corail); }
.nuage__barre { flex: 1 1 100%; display: flex; flex-direction: column; gap: 8px; }
.jauge { height: 14px; border-radius: 999px; background: var(--blanc); overflow: hidden; }
.jauge span { display: block; height: 100%; border-radius: 999px; background: var(--accent, var(--encre)); }
.jauge__texte { margin-top: -4px; font-size: 14px; font-weight: 700; color: var(--rouille); }
.enfants { display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: 26px; background: var(--papier); }
.enfants__rangee { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.enfants__points { flex: 1 1 420px; display: grid; grid-template-columns: repeat(28, 1fr); gap: 4px; max-width: 560px; }
.enfants__points span { aspect-ratio: 1; border-radius: 50%; }
.enfants__points span.enfant { background: var(--corail); }
.enfants__points span.indirect { box-shadow: inset 0 0 0 2px var(--corail); }
.enfants__rangee p { flex: 1 1 300px; }
.annees { flex: 1 1 300px; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.annees li { display: flex; align-items: baseline; gap: 12px; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--teinte) 22%, var(--blanc)); border-left: 6px solid var(--teinte); }
.annees strong { font-family: var(--titre); font-size: 22px; color: var(--encre); }

/* Le centre de documentation : les revues en couvertures, les ouvrages sur une étagère. */
.revues { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.revue { position: relative; display: flex; flex-direction: column; gap: 8px; aspect-ratio: 3 / 4; padding: 0 16px 16px; border-radius: 6px 14px 14px 6px; background: var(--blanc); box-shadow: inset 6px 0 0 color-mix(in srgb, var(--teinte) 35%, var(--blanc)), var(--ombre); overflow: hidden; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.revue:hover { transform: translateY(-6px) rotate(-2deg); }
.revue__bande { height: 34%; margin: 0 -16px 6px; background: var(--teinte); }
.revue__sorte { font-family: var(--main); font-size: 20px; line-height: 1; color: var(--rouille); }
.revue__titre { font-family: var(--titre); font-weight: 800; font-size: 19px; line-height: 1.15; color: var(--encre); }
.revue__lignes { display: flex; flex-direction: column; gap: 5px; margin-top: auto; }
.revue__lignes i { height: 5px; border-radius: 3px; background: var(--filet-2); }
.revue__lignes i:nth-child(2) { width: 80%; } .revue__lignes i:nth-child(3) { width: 55%; }
.revue--autres { align-items: center; justify-content: center; background: transparent; box-shadow: inset 0 0 0 2px var(--filet-2); }
.etageres { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px 40px; }
.etagere { display: flex; flex-direction: column; gap: 10px; }
.etagere__titre { font-family: var(--main); font-size: 28px; line-height: 1; color: var(--rouille); }
.etagere__livres { display: flex; align-items: flex-end; gap: 6px; height: 230px; padding: 0 10px; border-bottom: 10px solid var(--encre); border-radius: 0 0 6px 6px; }
.livre { display: flex; align-items: center; justify-content: center; width: 54px; height: var(--h, 90%); padding: 10px 0; border-radius: 6px 6px 2px 2px; background: var(--teinte); color: var(--blanc); writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--titre); font-weight: 800; font-size: 15px; line-height: 1.1; text-align: center; box-shadow: inset -5px 0 0 rgba(0, 0, 0, .12); transition: transform .3s ease; }
.livre:hover { transform: rotate(180deg) translateY(10px); }
.livre[style*="--safran"], .livre[style*="--froid"], .livre[style*="--filet-2"] { color: var(--encre); }
.livre--fin { width: 22px; }
.livre--penche { margin-left: 8px; }

/* L'équipe d'un service (Housing First) : les mêmes cartes que la page du Relais social. */
.portraits-service { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.portraits-service .portrait__texte { align-items: center; }

/* La Case Manager : le public en cartes, les deux conditions, et le graphique en points. */
.situations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.situations li { padding: 18px 20px; border-radius: 18px; background: var(--blanc); font-family: var(--titre); font-weight: 800; font-size: 19px; line-height: 1.25; color: var(--encre); border-left: 6px solid var(--safran); }
.situations li:nth-child(3n+2) { border-left-color: var(--corail); } .situations li:nth-child(3n) { border-left-color: var(--turquoise); }
.condition { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border-radius: 18px; background: var(--blanc); }
.condition__signe { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 800; font-size: 18px; color: var(--encre); background: var(--safran); }
.condition--non .condition__signe { background: var(--corail-pale); color: var(--rouille); }
.unites { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; padding: 28px; border-radius: 26px; background: var(--blanc); }
.unites__points { flex: 1 1 380px; display: grid; grid-template-columns: repeat(14, 1fr); gap: 10px; max-width: 560px; }
.unites__points span { aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--filet-2); }
.unites__points span.plein { background: var(--safran); box-shadow: inset 0 0 0 2.5px var(--encre); }
.unites__grand { font-family: var(--titre); font-weight: 800; font-size: 28px; line-height: 1.2; color: var(--encre); }
.unites__grand strong { font-size: 64px; line-height: 1; margin-right: 8px; }
.unites__legende { display: flex; align-items: center; gap: 10px; font-size: 18px; color: var(--encre); }
.unites__legende strong { font-family: var(--titre); font-size: 30px; }
.unites__pastille { width: 22px; height: 22px; border-radius: 50%; background: var(--safran); box-shadow: inset 0 0 0 2.5px var(--encre); }

/* Housing First : l'encadré des 90 % — dix maisons, neuf s'allument ; les huit villes de l'expérience. */
.encart-hf { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 26px; background: var(--encre); color: var(--blanc); }
.encart-hf__haut { display: flex; align-items: center; gap: 18px; }
.encart-hf__chiffre { flex: none; font-family: var(--titre); font-weight: 800; font-size: 64px; line-height: 1; color: var(--safran); }
.encart-hf__haut > span:last-child { font-size: 16px; line-height: 1.45; color: var(--sur-nuit); }
.encart-hf__maisons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 12px; max-width: 300px; }
.encart-hf__maisons svg { width: 100%; height: auto; fill: none; stroke: var(--sur-nuit); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.encart-hf__mur { fill: var(--encre-2); }
.encart-hf__fenetre { fill: var(--safran); stroke: none; }
.encart-hf__fenetre--eteinte { fill: #39406A; }
.encart-hf__titre-villes { font-family: var(--main); font-size: 24px; line-height: 1; color: var(--safran); }
.encart-hf__villes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.encart-hf__villes li { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 14px; font-weight: 700; }

/* Une liste de garanties, chacune cochée. */
.coches { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 0; padding: 0; list-style: none; }
.coches li { position: relative; padding-left: 38px; }
.coches li::before { content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--safran); color: var(--encre); font-weight: 800; font-size: 15px; }

/* Les partenaires : le logo en tête de carte, le nom, la description, puis le site et le téléphone
   au pied, avec leurs pictogrammes (retour d'Axel du 30/10 : « plus belle », avec les logos). */
.partenaires { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.partenaires--public { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.partenaire-carte { display: flex; flex-direction: column; border-radius: 22px; border: 2px solid var(--filet); background: var(--blanc); color: var(--encre); overflow: hidden; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), box-shadow .3s ease, border-color .3s ease; }
.partenaire-carte:hover { transform: translateY(-5px); border-color: var(--filet-2); box-shadow: 0 24px 40px -28px rgba(27, 35, 64, .55); }
/* Le logo remplit tout son cadre, sans déformation (les marges blanches des originaux sont rognées). */
.partenaire-carte__logo { display: flex; align-items: center; justify-content: center; height: 130px; padding: 18px 26px; background: var(--blanc); border-bottom: 2px solid var(--filet); }
.partenaire-carte__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.partenaires--public .partenaire-carte__logo { height: 150px; }
.partenaire-carte__corps { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 6px; }
.partenaire-carte__nom { font-family: var(--titre); font-weight: 800; font-size: 18px; line-height: 1.25; }
.partenaire-carte__desc { font-size: 14px; line-height: 1.45; color: var(--gris); }
.partenaire-carte__pied { display: flex; flex-direction: column; gap: 6px; padding: 12px 20px 18px; }
.partenaire-carte__lien { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.partenaire-carte__lien svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.partenaire-carte__lien--vide { font-weight: 400; color: var(--gris); }
/* Le bandeau de l'accueil : les logos des partenaires, sur des tuiles blanches. */
.logo-partenaire { flex: none; display: flex; align-items: center; justify-content: center; width: 180px; height: 96px; padding: 12px 18px; border-radius: 18px; background: var(--blanc); box-shadow: var(--ombre); transition: transform .25s ease; }
.logo-partenaire:hover { transform: translateY(-4px); }
.logo-partenaire img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* La Louvière Solidaire : l'écran du téléphone et les deux panneaux reprennent les dessins des besoins. */
.appli-tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.appli-tuile { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 14px; background: var(--teinte, var(--blanc)); font-weight: 700; font-size: 13px; color: var(--encre); }
.appli-tuile .picto { width: 40px; height: 40px; }
.appli-panneaux { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.appli-panneau { display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: 28px; background: var(--teinte, var(--papier)); color: var(--encre); }
.appli-panneau .etiquette-pastille { align-self: flex-start; }
.appli-themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.appli-theme { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 16px; background: var(--blanc); font-size: 14px; font-weight: 700; color: var(--encre); text-align: center; text-decoration: none; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.appli-theme:hover { transform: translateY(-4px); color: var(--encre); }
.appli-theme .picto { width: 48px; height: 48px; }
/* Page de l'application (24/11/2026) : ses vrais écrans dans le téléphone du bandeau (captures d'Axel, assets/img/appli),
   le haut de l'écran toujours visible ; ses catégories en étiquettes (ce ne sont pas des pages du site) */
.ecran--capture { padding: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.appli-categories { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.appli-categories li { padding: 7px 13px; border-radius: 999px; background: var(--blanc); font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--encre); }
@media (max-width: 980px) { .appli-telephone { display: none; } } /* plus étroit, il recouvrait le titre et l'introduction (Axel : le masquer) */

/* Le dénombrement : des barres de répartition lisibles, chaque part nommée. */
.repartition { display: flex; height: 44px; border-radius: 14px; overflow: hidden; background: var(--filet); }
.repartition span { display: flex; align-items: center; padding: 0 14px; font-size: 15px; font-weight: 700; color: var(--encre); white-space: nowrap; background: var(--part, var(--safran)); }
.repartition span + span { box-shadow: inset 3px 0 0 var(--blanc); }
.groupes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.groupe { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 22px; background: var(--teinte, var(--papier)); }
.groupe__n { font-family: var(--titre); font-weight: 800; font-size: 54px; line-height: 1; color: var(--encre); }
.groupe ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; }

/* ---------- 13. Mouvement (seulement si le visiteur ne demande pas moins d'animations) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes monte { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
  /* l'indicateur du bouton « Envoi en cours… » tourne (immobile pour qui préfère moins d'animations) */
  @keyframes tourne { to { transform: rotate(1turn); } }
  .formulaire--envoi button[type="submit"]::before { animation: tourne .8s linear infinite; }
  @keyframes trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes lever { from { transform: translateY(70px); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes scintille { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
  @keyframes allume { from { opacity: .08; } to { opacity: 1; } }
  @keyframes balise { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
  /* Les pictogrammes bougent comme sur le canevas : quand un lieu du besoin est ouvert
     (tuile [data-ouvert]), au survol d'un lien, et dans le titre de l'annuaire. */
  @keyframes picto-vapeur { 0% { transform: translateY(4px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(-7px); opacity: 0; } }
  @keyframes picto-zz { 0% { transform: translate(0, 4px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(7px, -9px); opacity: 0; } }
  @keyframes picto-bat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(1); } 45% { transform: scale(1.07); } }
  @keyframes picto-balance { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
  @keyframes picto-points { 0%, 100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(-4px); opacity: 1; } }
  @keyframes picto-lumiere { from { fill: #E4E1D8; } to { fill: #F4C553; } }
  @keyframes picto-goutte { 0% { transform: translateY(-8px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(6px); opacity: 0; } }
  .picto .anim > * { transform-box: fill-box; transform-origin: center; }
  .picto .anim--vapeur > * { animation: picto-vapeur 2.4s ease-in-out infinite; }
  .picto .anim--zz > * { animation: picto-zz 2.6s ease-in-out infinite; }
  .picto .anim--bat > * { animation: picto-bat 1.3s ease-in-out infinite; }
  .picto .anim--balance > * { transform-box: view-box; transform-origin: 32px 10px; animation: picto-balance 2.6s ease-in-out infinite; }
  .picto .anim--points > * { animation: picto-points 1.2s ease-in-out infinite; }
  .picto .anim--lumiere > * { animation: picto-lumiere 1.6s ease-in-out infinite alternate; }
  .picto .anim--goutte > * { animation: picto-goutte 1.8s ease-in infinite; }
  /* les dessins des missions et des axes */
  @keyframes picto-pouls { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
  @keyframes picto-ondes { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
  @keyframes picto-barres { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.5); } }
  @keyframes picto-secoue { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
  @keyframes picto-pousse { 0%, 100% { transform: scale(.82); } 50% { transform: scale(1.06); } }
  @keyframes picto-pas { 0%, 100% { opacity: .08; } 30% { opacity: 1; } }
  @keyframes flux { to { stroke-dashoffset: -28; } }
  .picto .anim--pouls > * { animation: picto-pouls 1.4s ease-in-out infinite; }
  .picto .anim--ondes > * { animation: picto-ondes 1.4s ease-in-out infinite; }
  .picto .anim--barres > * { transform-origin: center bottom; animation: picto-barres 1.6s ease-in-out infinite; }
  .picto .anim--secoue > * { animation: picto-secoue .9s ease-in-out infinite; }
  .picto .anim--lignes > * { animation: picto-ondes 1.8s ease-in-out infinite; }
  .picto .anim--pousse > * { transform-origin: center bottom; animation: picto-pousse 2s ease-in-out infinite; }
  .picto .anim--gyro > * { animation: picto-ondes .8s ease-in-out infinite; }
  .picto .anim--pas > * { animation: picto-pas 1.8s ease-in-out infinite; }
  @keyframes picto-marche { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-3px, -1.5px); } }
  .picto .anim--marche > * { animation: picto-marche 1.1s ease-in-out infinite; }
  .axes__liens path { animation: flux 1.6s linear infinite; }
  .parcours__lien path:first-child { stroke-dasharray: 2 9; animation: flux 1.4s linear infinite; }
  @keyframes allume-fenetre { from { fill: #39406A; } to { fill: #F4C553; } }
  .encart-hf__fenetre:not(.encart-hf__fenetre--eteinte) { animation: allume-fenetre .5s ease 1s backwards; }
  .picto .anim > * { animation-play-state: paused; }
  .tuile[data-ouvert] .picto .anim > *, a:hover .picto .anim > *, button:hover .picto .anim > *, .titre-picto .picto .anim > *,
  .mission2:hover .picto .anim > *, .vivant .picto .anim > *, .puces--tuiles .puce[aria-pressed="true"] .picto .anim > * { animation-play-state: running; }
  @keyframes fumee { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 30% { opacity: .55; } 100% { opacity: 0; transform: translate(16px, -40px) scale(1.6); } }
  @keyframes derive { from { transform: translateX(0); } to { transform: translateX(60px); } }
  @keyframes neige { from { transform: translate(0, -20px); } to { transform: translate(18px, 640px); } }
  @keyframes respire { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }
  @keyframes defile { to { transform: translateX(-50%); } }
  @keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(244, 197, 83, .6); } 100% { box-shadow: 0 0 0 10px rgba(244, 197, 83, 0); } }
  @keyframes saut { 0%, 100% { transform: translate(-50%, -100%) scale(1.25); } 50% { transform: translate(-50%, -118%) scale(1.25); } }
  @keyframes saut-pastille { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
  @keyframes glisse-de-gauche { from { opacity: 0; transform: translateX(-40px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
  @keyframes glisse-de-droite { from { opacity: 0; transform: translateX(40px) rotate(1.5deg); } to { opacity: 1; transform: none; } }
  @keyframes remplit { from { transform: scaleX(0); } to { transform: none; } }
  @keyframes cycle { 0% { opacity: 0; transform: translateX(24px); } 4%, 30% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; transform: translateX(-24px); } }
  @keyframes glisse-loin { to { transform: translateY(56px); } }
  @keyframes glisse-milieu { to { transform: translateY(30px); } }
  @keyframes glisse-pres { to { transform: translateY(10px); } }
  @keyframes barre { to { transform: none; } }
  @keyframes tourne { to { transform: rotate(360deg); } }
  .une-bandeau__rayons { transform-origin: 75px 75px; animation: tourne 40s linear infinite; }
  .une-bandeau__flocons span { animation: neige linear infinite; }
  .entre { animation: monte .8s .3s cubic-bezier(.2, .7, .2, 1) backwards; }
  .entre--2 { animation-delay: .45s; } .entre--3 { animation-delay: .6s; } .entre--4 { animation-delay: .75s; }
  .souligne path { stroke-dasharray: 1; animation: trace 1.1s .9s cubic-bezier(.6, 0, .2, 1) both; }
  .ville__plan { animation: lever 1s cubic-bezier(.2, .7, .2, 1) backwards; }
  .ville__plan--milieu { animation-delay: .12s; } .ville__plan--pres { animation-delay: .24s; }
  .ville__etoiles span { animation: scintille 3.4s ease-in-out infinite; }
  .v-allume rect { animation: allume .9s .8s ease-out both; }
  .v-balise { animation: balise 2.4s ease-in-out infinite; }
  .v-fumee { transform-box: fill-box; transform-origin: center; animation: fumee 4.5s ease-out infinite; }
  .v-fumee:nth-child(2) { animation-delay: 1.5s; } .v-fumee:nth-child(3) { animation-delay: 3s; }
  .ville__nuage { animation: derive 38s ease-in-out infinite alternate; }
  .ville__nuage--2 { animation-duration: 52s; animation-direction: alternate-reverse; }
  .ville__neige span { animation: neige linear infinite; }
  .v-halo polygon { animation: respire 3s ease-in-out infinite; }
  .defile__piste { animation: defile 60s linear infinite; }
  .defile--inverse .defile__piste { animation-direction: reverse; animation-duration: 70s; }
  .defile:hover .defile__piste { animation-play-state: paused; }
  .pouls { animation: pouls 2s ease-out infinite; }
  .epingle[aria-pressed="true"] { animation: saut 1.2s ease-in-out infinite; }
  .badge-lieu.choisi { animation: saut-pastille 1.2s ease-in-out infinite; }
  .carte-chargement.visible .carte-chargement__roue { animation: tourne .9s linear infinite; }
  /* Les blocs des pages composées arrivent quand on les voit (site.js pose anime-pret, puis apparu) : les cartes en
     cascade, l'image qui glisse de son côté, le texte juste après. Le remplissage « backwards » ne garde rien après
     l'animation : le soulèvement des cartes au survol reste le leur. */
  .anime-pret [data-apparait]:not(.apparu) > * { opacity: 0; }
  .anime-pret [data-apparait].apparu > * { animation: monte .6s cubic-bezier(.2, .8, .2, 1) backwards; }
  .anime-pret .bloc-cartes.apparu > :nth-child(2) { animation-delay: .08s; } .anime-pret .bloc-cartes.apparu > :nth-child(3) { animation-delay: .16s; }
  .anime-pret .bloc-cartes.apparu > :nth-child(4) { animation-delay: .24s; } .anime-pret .bloc-cartes.apparu > :nth-child(5) { animation-delay: .32s; }
  .anime-pret .bloc-cartes.apparu > :nth-child(6) { animation-delay: .4s; } .anime-pret .bloc-cartes.apparu > :nth-child(7) { animation-delay: .48s; }
  .anime-pret .bloc-cartes.apparu > :nth-child(8) { animation-delay: .56s; }
  .anime-pret .bloc-image-texte.apparu > .bloc-image-texte__image { animation: glisse-de-gauche .8s cubic-bezier(.2, .8, .2, 1) backwards; }
  .anime-pret .bloc-image-texte[data-cote="droite"].apparu > .bloc-image-texte__image { animation-name: glisse-de-droite; }
  .anime-pret .bloc-image-texte[data-cote="plein"].apparu > .bloc-image-texte__image { animation-name: monte; }
  .anime-pret .bloc-image-texte.apparu > .texte-long { animation-delay: .22s; }
  /* la répartition : les parts se remplissent l'une après l'autre, de gauche à droite, depuis la largeur nulle */
  .anime-pret .bloc-repartition__barre[data-apparait]:not(.apparu) > * { opacity: 1; transform: scaleX(0); }
  .anime-pret .bloc-repartition__barre.apparu > * { transform-origin: left center; animation: remplit .9s cubic-bezier(.3, .7, .2, 1) backwards; }
  .anime-pret .bloc-repartition__barre.apparu > :nth-child(2) { animation-delay: .25s; } .anime-pret .bloc-repartition__barre.apparu > :nth-child(3) { animation-delay: .5s; }
  .anime-pret .bloc-repartition__barre.apparu > :nth-child(4) { animation-delay: .75s; }
  /* l'en-tête : le titre monte (règle commune), le soulignement attend d'être vu pour se tracer */
  .anime-pret .bloc-entete[data-apparait]:not(.apparu) .souligne path { animation: none; stroke-dashoffset: 1; }
  .anime-pret .bloc-entete.apparu .souligne path { animation-delay: .35s; }
  /* lot C (23/11/2026) : une arrivée choisie pour le bloc le fait venir d'un seul tenant (Habillage pose data-apparait
     sur l'enveloppe ; « qui monte » est la règle commune) ; les animations du dedans se taisent */
  @keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
  @keyframes grandit { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
  .anime-pret .bloc-habille[data-animation] [data-apparait] > * { opacity: 1; animation: none; }
  .bloc-habille[data-animation] .revele { animation: none; }
  .anime-pret .bloc-habille[data-animation="fondu"].apparu > * { animation: fondu 1s ease backwards; }
  .anime-pret .bloc-habille[data-animation="cote"].apparu > * { animation-name: glisse-de-gauche; animation-duration: .8s; }
  .anime-pret .bloc-habille[data-animation="grandit"].apparu > * { animation-name: grandit; animation-duration: .7s; }
  .ecran { animation: cycle 12s linear infinite; }
  .ecran--1 { opacity: 0; } .ecran--2 { animation-delay: 4s; } .ecran--3 { animation-delay: 8s; }
  .trace path, .trace polyline { stroke-dasharray: 1; animation: trace 1.4s .2s cubic-bezier(.6, 0, .2, 1) both; }
  @supports (animation-timeline: view()) {
    .revele { animation: monte linear backwards; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .trace path, .trace polyline { animation: trace linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
  }
  @supports (animation-timeline: scroll()) {
    .ville__plan--loin svg { animation: glisse-loin linear both; animation-timeline: scroll(root); animation-range: 0 640px; }
    .ville__plan--milieu svg { animation: glisse-milieu linear both; animation-timeline: scroll(root); animation-range: 0 640px; }
    .ville__plan--pres svg { animation: glisse-pres linear both; animation-timeline: scroll(root); animation-range: 0 640px; }
    .barre-compacte { animation: barre linear both; animation-timeline: scroll(root); animation-range: 560px 640px; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .ville__neige, .v-fumee { display: none; }
  .defile { mask-image: none; } .defile__piste { flex-wrap: wrap; width: auto; }
  .defile__piste [aria-hidden="true"] { display: none; }
}

/* rue-boucle:debut — écrit par outils/rue-boucle.js : ne pas retoucher à la main */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rue-marche { 0% { transform: translate(10px, 160px); } 0.476% { transform: translate(25.7px, 155.2px); } 0.952% { transform: translate(38.3px, 144.5px); } 1.428% { transform: translate(48.8px, 131.7px); } 1.903% { transform: translate(58.4px, 118.2px); } 2.379% { transform: translate(68px, 104.6px); } 2.855% { transform: translate(78.2px, 91.5px); } 13.855% { transform: translate(78.2px, 91.5px); } 14.337% { transform: translate(90.2px, 79.7px); } 14.819% { transform: translate(104.8px, 71.6px); } 15.301% { transform: translate(121.4px, 70.6px); } 15.784% { transform: translate(137.3px, 75.9px); } 16.266% { transform: translate(152px, 84.1px); } 16.748% { transform: translate(165.7px, 93.9px); } 17.23% { transform: translate(178.8px, 104.5px); } 17.712% { transform: translate(191.4px, 115.5px); } 18.194% { transform: translate(203.8px, 126.9px); } 18.676% { transform: translate(216.1px, 138.4px); } 19.158% { transform: translate(228.3px, 150px); } 19.64% { transform: translate(240.5px, 161.6px); } 20.122% { transform: translate(252.8px, 173.1px); } 20.605% { transform: translate(265.3px, 184.3px); } 21.087% { transform: translate(278.1px, 195.2px); } 21.569% { transform: translate(291.3px, 205.6px); } 22.051% { transform: translate(305.2px, 215.1px); } 33.051% { transform: translate(305.2px, 215.1px); } 33.532% { transform: translate(319.9px, 223.3px); } 34.013% { transform: translate(335.7px, 228.8px); } 34.494% { transform: translate(352.3px, 229.5px); } 34.976% { transform: translate(368.4px, 224.6px); } 35.457% { transform: translate(383.1px, 216.6px); } 35.938% { transform: translate(396.9px, 207.1px); } 36.419% { transform: translate(410px, 196.6px); } 36.9% { transform: translate(422.7px, 185.6px); } 37.382% { transform: translate(435px, 174.2px); } 37.863% { transform: translate(447.2px, 162.6px); } 38.344% { transform: translate(459.3px, 151px); } 38.825% { transform: translate(471.3px, 139.3px); } 39.306% { transform: translate(483.5px, 127.7px); } 39.788% { transform: translate(495.8px, 116.3px); } 40.269% { transform: translate(508.5px, 105.3px); } 40.75% { transform: translate(521.6px, 94.7px); } 41.231% { transform: translate(535.3px, 85.1px); } 52.231% { transform: translate(535.3px, 85.1px); } 52.712% { transform: translate(549.9px, 76.8px); } 53.193% { transform: translate(565.7px, 71.2px); } 53.675% { transform: translate(582.3px, 70.5px); } 54.156% { transform: translate(598.4px, 75.4px); } 54.637% { transform: translate(613.1px, 83.4px); } 55.118% { transform: translate(626.9px, 92.9px); } 55.599% { transform: translate(640px, 103.4px); } 56.081% { transform: translate(652.7px, 114.4px); } 56.562% { transform: translate(665px, 125.8px); } 57.043% { transform: translate(677.2px, 137.4px); } 57.524% { transform: translate(689.3px, 149px); } 58.005% { transform: translate(701.3px, 160.7px); } 58.487% { transform: translate(713.5px, 172.3px); } 58.968% { transform: translate(725.8px, 183.7px); } 59.449% { transform: translate(738.5px, 194.7px); } 59.93% { transform: translate(751.6px, 205.3px); } 60.411% { transform: translate(765.3px, 214.9px); } 71.411% { transform: translate(765.3px, 214.9px); } 71.894% { transform: translate(779.9px, 223.2px); } 72.377% { transform: translate(795.8px, 228.8px); } 72.859% { transform: translate(812.5px, 229.5px); } 73.342% { transform: translate(828.5px, 224.5px); } 73.824% { transform: translate(843.3px, 216.5px); } 74.307% { transform: translate(857.2px, 206.9px); } 74.79% { transform: translate(870.3px, 196.4px); } 75.272% { transform: translate(883px, 185.3px); } 75.755% { transform: translate(895.4px, 173.9px); } 76.238% { transform: translate(907.6px, 162.3px); } 76.72% { transform: translate(919.7px, 150.6px); } 77.203% { transform: translate(931.8px, 138.9px); } 77.685% { transform: translate(944.1px, 127.4px); } 78.168% { transform: translate(956.5px, 116px); } 78.651% { transform: translate(969.2px, 104.9px); } 79.133% { transform: translate(982.4px, 94.5px); } 79.616% { transform: translate(996.2px, 84.8px); } 90.616% { transform: translate(996.2px, 84.8px); } 91.105% { transform: translate(1011.1px, 76.6px); } 91.595% { transform: translate(1027.2px, 71.1px); } 92.084% { transform: translate(1044.2px, 70.6px); } 92.574% { transform: translate(1060.2px, 76.2px); } 93.063% { transform: translate(1073.9px, 86.4px); } 93.553% { transform: translate(1085.5px, 99px); } 94.042% { transform: translate(1095.7px, 112.6px); } 94.532% { transform: translate(1105.4px, 126.7px); } 95.021% { transform: translate(1115.3px, 140.6px); } 95.511% { transform: translate(1126.7px, 153.3px); } 96% { transform: translate(1142px, 160px); } 100% { transform: translate(1142px, 160px); } }
  @keyframes rue-apparait { 0% { opacity: 0; } 2%, 94% { opacity: 1; } 96%, 100% { opacity: 0; } }
  @keyframes rue-jambe-a { 0% { transform: rotate(0deg); } 0.688% { transform: rotate(16deg); } 1.375% { transform: rotate(0deg); } 2.063% { transform: rotate(-16deg); } 2.75% { transform: rotate(0deg); } 2.855% { transform: rotate(0deg); } 14.543% { transform: rotate(16deg); } 15.23% { transform: rotate(0deg); } 15.918% { transform: rotate(-16deg); } 16.605% { transform: rotate(0deg); } 17.293% { transform: rotate(16deg); } 17.98% { transform: rotate(0deg); } 18.668% { transform: rotate(-16deg); } 19.355% { transform: rotate(0deg); } 20.043% { transform: rotate(16deg); } 20.73% { transform: rotate(0deg); } 21.418% { transform: rotate(-16deg); } 22.051% { transform: rotate(0deg); } 33.738% { transform: rotate(16deg); } 34.426% { transform: rotate(0deg); } 35.113% { transform: rotate(-16deg); } 35.801% { transform: rotate(0deg); } 36.488% { transform: rotate(16deg); } 37.176% { transform: rotate(0deg); } 37.863% { transform: rotate(-16deg); } 38.551% { transform: rotate(0deg); } 39.238% { transform: rotate(16deg); } 39.926% { transform: rotate(0deg); } 40.613% { transform: rotate(-16deg); } 41.231% { transform: rotate(0deg); } 52.919% { transform: rotate(16deg); } 53.606% { transform: rotate(0deg); } 54.294% { transform: rotate(-16deg); } 54.981% { transform: rotate(0deg); } 55.669% { transform: rotate(16deg); } 56.356% { transform: rotate(0deg); } 57.044% { transform: rotate(-16deg); } 57.731% { transform: rotate(0deg); } 58.419% { transform: rotate(16deg); } 59.106% { transform: rotate(0deg); } 59.794% { transform: rotate(-16deg); } 60.411% { transform: rotate(0deg); } 72.099% { transform: rotate(16deg); } 72.786% { transform: rotate(0deg); } 73.474% { transform: rotate(-16deg); } 74.161% { transform: rotate(0deg); } 74.849% { transform: rotate(16deg); } 75.536% { transform: rotate(0deg); } 76.224% { transform: rotate(-16deg); } 76.911% { transform: rotate(0deg); } 77.599% { transform: rotate(16deg); } 78.286% { transform: rotate(0deg); } 78.974% { transform: rotate(-16deg); } 79.616% { transform: rotate(0deg); } 91.303% { transform: rotate(16deg); } 91.991% { transform: rotate(0deg); } 92.678% { transform: rotate(-16deg); } 93.366% { transform: rotate(0deg); } 94.053% { transform: rotate(16deg); } 94.741% { transform: rotate(0deg); } 95.428% { transform: rotate(-16deg); } 96% { transform: rotate(0deg); } 100% { transform: rotate(0deg); } }
  @keyframes rue-jambe-b { 0% { transform: rotate(0deg); } 0.688% { transform: rotate(-16deg); } 1.375% { transform: rotate(0deg); } 2.063% { transform: rotate(16deg); } 2.75% { transform: rotate(0deg); } 2.855% { transform: rotate(0deg); } 14.543% { transform: rotate(-16deg); } 15.23% { transform: rotate(0deg); } 15.918% { transform: rotate(16deg); } 16.605% { transform: rotate(0deg); } 17.293% { transform: rotate(-16deg); } 17.98% { transform: rotate(0deg); } 18.668% { transform: rotate(16deg); } 19.355% { transform: rotate(0deg); } 20.043% { transform: rotate(-16deg); } 20.73% { transform: rotate(0deg); } 21.418% { transform: rotate(16deg); } 22.051% { transform: rotate(0deg); } 33.738% { transform: rotate(-16deg); } 34.426% { transform: rotate(0deg); } 35.113% { transform: rotate(16deg); } 35.801% { transform: rotate(0deg); } 36.488% { transform: rotate(-16deg); } 37.176% { transform: rotate(0deg); } 37.863% { transform: rotate(16deg); } 38.551% { transform: rotate(0deg); } 39.238% { transform: rotate(-16deg); } 39.926% { transform: rotate(0deg); } 40.613% { transform: rotate(16deg); } 41.231% { transform: rotate(0deg); } 52.919% { transform: rotate(-16deg); } 53.606% { transform: rotate(0deg); } 54.294% { transform: rotate(16deg); } 54.981% { transform: rotate(0deg); } 55.669% { transform: rotate(-16deg); } 56.356% { transform: rotate(0deg); } 57.044% { transform: rotate(16deg); } 57.731% { transform: rotate(0deg); } 58.419% { transform: rotate(-16deg); } 59.106% { transform: rotate(0deg); } 59.794% { transform: rotate(16deg); } 60.411% { transform: rotate(0deg); } 72.099% { transform: rotate(-16deg); } 72.786% { transform: rotate(0deg); } 73.474% { transform: rotate(16deg); } 74.161% { transform: rotate(0deg); } 74.849% { transform: rotate(-16deg); } 75.536% { transform: rotate(0deg); } 76.224% { transform: rotate(16deg); } 76.911% { transform: rotate(0deg); } 77.599% { transform: rotate(-16deg); } 78.286% { transform: rotate(0deg); } 78.974% { transform: rotate(16deg); } 79.616% { transform: rotate(0deg); } 91.303% { transform: rotate(-16deg); } 91.991% { transform: rotate(0deg); } 92.678% { transform: rotate(16deg); } 93.366% { transform: rotate(0deg); } 94.053% { transform: rotate(-16deg); } 94.741% { transform: rotate(0deg); } 95.428% { transform: rotate(16deg); } 96% { transform: rotate(0deg); } 100% { transform: rotate(0deg); } }
  @keyframes rue-sillage { 0% { stroke-dashoffset: 1; opacity: 0; } 1.5% { opacity: 1; } 2.855% { stroke-dashoffset: 0.9304; opacity: 1; } 22.051% { stroke-dashoffset: 0.7305; opacity: 1; } 41.231% { stroke-dashoffset: 0.5309; opacity: 1; } 60.411% { stroke-dashoffset: 0.3314; opacity: 1; } 79.616% { stroke-dashoffset: 0.1313; opacity: 1; } 96% { stroke-dashoffset: 0; opacity: 1; } 99% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
  @keyframes rue-etape-allumee { 0% { background-color: transparent; transform: none; } 1.5%, 11% { background-color: var(--safran-pale); transform: translateY(-4px); } 12.5%, 100% { background-color: transparent; transform: none; } }
  @keyframes rue-halo-pouls { 0% { opacity: .9; transform: scale(1); } 5.5% { opacity: 0; transform: scale(1.9); } 5.51% { opacity: .9; transform: scale(1); } 11%, 100% { opacity: 0; transform: scale(1.9); } }
  @keyframes rue-bulle-pop { 0% { opacity: 0; transform: translateY(8px) scale(.6); } 2% { opacity: 1; transform: scale(1.08); } 3%, 11% { opacity: 1; transform: none; } 12.5%, 100% { opacity: 0; transform: translateY(-6px); } }
  @keyframes rue-fenetre-allume { 0%, 4% { fill: var(--blanc); } 6%, 11% { fill: var(--safran); } 12.5%, 100% { fill: var(--blanc); } }
  @keyframes rue-salue { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
  @keyframes rue-points { 0%, 60%, 100% { opacity: .2; } 30% { opacity: 1; } }
  @keyframes rue-fleche-va { from { transform: translateX(-4px); } to { transform: translateX(6px); } }
  @keyframes rue-saute { from { transform: translateY(2px); } to { transform: translateY(-4px); } }
  .rue-marcheur { animation: rue-marche 20s linear infinite, rue-apparait 20s linear infinite; }
  .rue-jambe--a { animation: rue-jambe-a 20s linear infinite; }
  .rue-jambe--b { animation: rue-jambe-b 20s linear infinite; }
  .rue-sillage { animation: rue-sillage 20s linear infinite; }
  .rue-etapes li { animation: rue-etape-allumee 20s linear infinite; }
  .rue-halo { animation: rue-halo-pouls 20s linear infinite; }
  .rue-bulle { animation: rue-bulle-pop 20s linear infinite; }
  .rue-fenetre { animation: rue-fenetre-allume 20s linear infinite; animation-delay: 15.923s; }
  .rue-temps-1 text { transform-box: fill-box; transform-origin: center; animation: rue-salue .45s ease-in-out infinite alternate; }
  .rue-point { animation: rue-points 1.2s ease-in-out infinite; }
  .rue-point:nth-of-type(2) { animation-delay: .2s; } .rue-point:nth-of-type(3) { animation-delay: .4s; }
  .rue-fleche { animation: rue-fleche-va .6s ease-in-out infinite alternate; }
  .rue-temps-4 text { animation: rue-saute .4s ease-in-out infinite alternate; }
  .rue-etapes .rue-temps-1, .rue-boucle .rue-temps-1 { animation-delay: 0.571s; }
  .rue-etapes .rue-temps-2, .rue-boucle .rue-temps-2 { animation-delay: 4.41s; }
  .rue-etapes .rue-temps-3, .rue-boucle .rue-temps-3 { animation-delay: 8.246s; }
  .rue-etapes .rue-temps-4, .rue-boucle .rue-temps-4 { animation-delay: 12.082s; }
  .rue-etapes .rue-temps-5, .rue-boucle .rue-temps-5 { animation-delay: 15.923s; }
}
/* rue-boucle:fin */

/* Le DUS jour et nuit, en boucle (Axel, 02/11/2026), sur le haut de page lui-même : le ciel et la ville
   font le tour d'une journée en 32 s, avec les quatre moments des hauts de page (midi au départ, le soir
   à 25 %, minuit à 50 %, l'aube à 75 %). Le soleil se couche derrière la ville et revient en lune ; les
   étoiles ne sortent que la nuit, les nuages que le jour. Les couleurs de la ville sont déclarées
   (@property) pour glisser de l'une à l'autre. Le téléphone sonne toutes les 4 s, un mot par sonnerie. */
@property --ciel-haut { syntax: '<color>'; inherits: true; initial-value: #2C5C8E; }
@property --ciel-bas { syntax: '<color>'; inherits: true; initial-value: #6B97C4; }
@property --v-loin { syntax: '<color>'; inherits: true; initial-value: #4D79A7; }
@property --v-milieu { syntax: '<color>'; inherits: true; initial-value: #2B527F; }
@property --v-pres { syntax: '<color>'; inherits: true; initial-value: #1E3F63; }
@property --v-sol { syntax: '<color>'; inherits: true; initial-value: #173250; }
@property --v-vitre { syntax: '<color>'; inherits: true; initial-value: #3D6C9C; }
@property --v-porte { syntax: '<color>'; inherits: true; initial-value: #2B527F; }
@property --v-trait { syntax: '<color>'; inherits: true; initial-value: #6B97C4; }
@property --v-allume { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --v-halo { syntax: '<number>'; inherits: true; initial-value: 0; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes dus-ciel {
    0%, 21%, 81%, 100% { --ciel-haut: #2C5C8E; --ciel-bas: #6B97C4; --v-loin: #4D79A7; --v-milieu: #2B527F; --v-pres: #1E3F63; --v-sol: #173250; --v-vitre: #3D6C9C; --v-porte: #2B527F; --v-trait: #6B97C4; --v-allume: 0; --v-halo: 0; }
    25% { --ciel-haut: #232850; --ciel-bas: #9E5A62; --v-loin: #4B3F68; --v-milieu: #2B2749; --v-pres: #191A37; --v-sol: #12132A; --v-vitre: #2B2749; --v-porte: #2B2749; --v-trait: #9E5A62; --v-allume: 1; --v-halo: .22; }
    31%, 69% { --ciel-haut: #10162F; --ciel-bas: #26305A; --v-loin: #263260; --v-milieu: #19214A; --v-pres: #0F152B; --v-sol: #0A0F21; --v-vitre: #1B2448; --v-porte: #19214A; --v-trait: #3A4677; --v-allume: 1; --v-halo: .26; }
    75% { --ciel-haut: #36507F; --ciel-bas: #EBA986; --v-loin: #6F6E95; --v-milieu: #3C4672; --v-pres: #2A3158; --v-sol: #212746; --v-vitre: #48527E; --v-porte: #3C4672; --v-trait: #EBA986; --v-allume: .6; --v-halo: .12; }
  }
  @keyframes dus-astre {
    0%, 15% { transform: translateY(0); background-color: #F4C553; }
    27% { transform: translateY(480px); background-color: #F4C553; }
    27.5% { transform: translateY(480px); background-color: #FBEBC2; }
    39%, 61% { transform: translateY(0); background-color: #FBEBC2; }
    73% { transform: translateY(480px); background-color: #FBEBC2; }
    73.5% { transform: translateY(480px); background-color: #F4C553; }
    85%, 100% { transform: translateY(0); background-color: #F4C553; }
  }
  @keyframes dus-nuit { 0%, 27% { opacity: 0; } 33%, 67% { opacity: 1; } 73%, 100% { opacity: 0; } }
  @keyframes dus-jour { 0%, 21%, 79%, 100% { opacity: 1; } 27%, 73% { opacity: 0; } }
  .bandeau--dus { animation: dus-ciel 32s linear infinite; }
  .bandeau--dus .ville__astre { --astre-x: 76%; --astre-y: 70px; --astre-taille: 72px; --astre-halo: 0 0 0 14px rgba(244, 197, 83, .22); animation: dus-astre 32s ease-in-out infinite; }
  .bandeau.bandeau--dus .ville__astre::before, .bandeau.bandeau--dus .ville__astre::after { display: none; }
  html:not([data-moment="soir"]):not([data-moment="nuit"]) .bandeau--dus .ville__etoiles, .bandeau--dus .ville__etoiles { display: block; animation: dus-nuit 32s linear infinite; }
  html[data-moment="soir"] .bandeau--dus .ville__etoiles span:nth-child(n+13) { display: block; }
  .bandeau--dus .ville__nuage { animation: derive 38s ease-in-out infinite alternate, dus-jour 32s linear infinite; }
  @media (min-width: 601px) { html[data-moment="soir"] .bandeau--dus .ville__nuage, html[data-moment="nuit"] .bandeau--dus .ville__nuage { display: block; } }
  @keyframes dus-veille { 0%, 100% { opacity: .2; transform: scale(1); } 50% { opacity: .55; transform: scale(1.3); } }
  @keyframes dus-sonne { 0%, 20%, 100% { transform: rotate(0deg); } 2.5%, 7.5%, 12.5%, 17.5% { transform: rotate(-14deg); } 5%, 10%, 15% { transform: rotate(14deg); } }
  @keyframes dus-onde { 0%, 20%, 100% { opacity: 0; } 4%, 16% { opacity: 1; } }
  @keyframes dus-mot { 0%, 5% { opacity: 0; transform: translateY(6px); } 8%, 22% { opacity: 1; transform: none; } 24.5%, 100% { opacity: 0; transform: none; } }
  .dus-halo { animation: dus-veille 2s ease-in-out infinite; }
  .dus-tel { animation: dus-sonne 4s linear infinite; }
  .dus-onde { animation: dus-onde 4s linear infinite; }
  .dus-mot { animation: dus-mot 16s linear infinite; }
  .dus-mot--2 { animation-delay: 4s; } .dus-mot--3 { animation-delay: 8s; } .dus-mot--4 { animation-delay: 12s; }
}

/* La table de l'accueil de jour, en boucle lente (Axel, 02/11/2026) : la tache de soleil glisse en
   40 s, aller et retour, comme une journée ; la vapeur monte, la plante bouge à peine, quelques grains
   de poussière dans la lumière. Rien ne suit le défilement. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes calme-lumiere { from { transform: translateX(-140px) skewX(8deg); } to { transform: translateX(220px) skewX(-6deg); } }
  @keyframes calme-vapeur { 0% { opacity: 0; transform: translateY(10px); } 35% { opacity: .8; } 100% { opacity: 0; transform: translateY(-26px); } }
  @keyframes calme-feuilles { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
  @keyframes calme-poussiere { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: .9; } 80% { opacity: .6; } 100% { opacity: 0; transform: translate(40px, -90px); } }
  @keyframes calme-nuage { from { transform: translateX(-120px); } to { transform: translateX(260px); } }
  .calme-lumiere { animation: calme-lumiere 40s ease-in-out infinite alternate; }
  .calme-vapeur { animation: calme-vapeur 6s ease-in-out infinite; }
  .calme-vapeur--2 { animation-delay: -2s; } .calme-vapeur--3 { animation-delay: -4s; }
  .calme-feuilles { animation: calme-feuilles 9s ease-in-out infinite alternate; }
  .calme-poussiere { animation: calme-poussiere 14s linear infinite; }
  .calme-poussiere--2 { animation-delay: -5s; } .calme-poussiere--3 { animation-delay: -9s; } .calme-poussiere--4 { animation-delay: -12s; }
  .calme-nuage { animation: calme-nuage 60s linear infinite; }
}

/* La nuit de l'accueil de nuit, en boucle lente (Axel, 02/11/2026), sœur de la table : les étoiles
   scintillent, la lune glisse en une minute, le clair de lune bouge au sol, la veilleuse respire. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes calme-scintille { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
  @keyframes calme-lune { from { transform: translate(0, 0); } to { transform: translate(-60px, 14px); } }
  @keyframes calme-clair { from { transform: translateX(0) skewX(6deg); } to { transform: translateX(80px) skewX(-4deg); } }
  @keyframes calme-veilleuse { from { opacity: .14; transform: scale(.94); } to { opacity: .26; transform: scale(1.06); } }
  .calme-etoile { animation: calme-scintille 5s ease-in-out infinite; }
  .calme-etoile--2 { animation-delay: -1.7s; } .calme-etoile--3 { animation-delay: -3.4s; }
  .calme-lune { animation: calme-lune 60s ease-in-out infinite alternate; }
  .calme-clair { animation: calme-clair 40s ease-in-out infinite alternate; }
  .calme-veilleuse { animation: calme-veilleuse 8s ease-in-out infinite alternate; }
}

/* Le soin de l'axe santé, en boucle lente (Axel, 02/11/2026), de la même famille : le jeudi s'entoure
   à la main puis s'efface, un pouls court le long de son tracé ; la lumière, la vapeur et la plante
   reprennent les mouvements de la table. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes calme-cercle { 0%, 8% { stroke-dashoffset: 1; } 30%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
  @keyframes calme-pouls { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  .calme-cercle { stroke-dasharray: 1; animation: calme-cercle 10s ease-in-out infinite; }
  .calme-pouls { stroke-dasharray: .24 .76; opacity: .8; animation: calme-pouls 5s linear infinite; }
}

/* ---------- 14. Téléphone et tablette ---------- */
@media (max-width: 960px) {
  .tuiles, .mosaique, .missions2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tuile-service--grande { grid-row: span 1; }
  /* l'équipe : chaque groupe sur toute la largeur, deux cartes par ligne, toutes de même largeur */
  .equipe { display: flex; flex-direction: column; gap: 30px; }
  .equipe-groupe { display: flex; flex-direction: column; gap: 12px; }
  .equipe-groupe > .groupe-titre, .equipe-groupe > .equipe-sous-titre { align-self: auto; }
  .situations { grid-template-columns: 1fr 1fr; }
  .portraits-service { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* le parcours du capteur : de haut en bas, les flèches tournées vers le bas */
  .parcours { grid-template-columns: 1fr; justify-items: center; }
  .parcours__reseau { justify-self: stretch; }
  .parcours__lien svg { width: 90px; transform: rotate(90deg); margin: 22px 0; }
  .equipe-titre { margin-bottom: -18px; }
  .equipe-groupe > .portraits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

  .avec-sommaire { grid-template-columns: 1fr; } .sommaire { position: static; }
  .plan-carte { flex-direction: column-reverse; } .plan-carte__liste { flex: none; } .plan-carte__liste ul { max-height: 420px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .rue-etapes { grid-template-columns: 1fr; } .rue-dessin { display: none; }
  .frise > svg { display: none; }
  .missions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-principale ul { gap: 4px 18px; font-size: 16px; }
  .section { padding: 56px 0; }
}
@media (max-width: 600px) {
  .tuiles, .mosaique { grid-template-columns: 1fr; } .tuile-service--grande { grid-column: span 1; }
  .ville__nuage { display: none; }
  /* le menu prend trois lignes : le soleil ou la lune passe dessous, à droite, en plus petit */
  .ville__astre { left: auto; right: 18px; top: 168px; width: 40px; height: 40px; margin-left: 0; }
  .missions2 { grid-template-columns: 1fr; }
  .situations, .portraits-service { grid-template-columns: 1fr; }
  .nuage__points { grid-template-columns: repeat(20, 1fr); gap: 3px; }
  .enfants__points { grid-template-columns: repeat(14, 1fr); }
  .referent { flex-direction: column; text-align: center; }
  .referent__liens { justify-content: center; }
  .unites__points { grid-template-columns: repeat(9, 1fr); }
  /* le bouton « Trouver de l'aide » passe à la ligne : calé à gauche, il laisse le soleil à droite */
  .nav-principale__bouton { margin-left: 0; }
  /* l'équipe : une carte par ligne, la photo à gauche */
  .equipe-groupe > .portraits { grid-template-columns: 1fr; }
  .equipe .portrait { flex-direction: row; align-items: center; gap: 16px; padding: 14px 16px; text-align: left; }
  .equipe .portrait__photo { flex: none; width: 76px; height: 76px; }
  .equipe .portrait__texte { align-items: flex-start; gap: 3px; }
  /* les cinq axes : le plan devient une liste de ronds, deux par ligne */
  .axes { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .axes__liens, .axes__centre { display: none; }
  .axe, .axe--haut { position: static; width: auto; flex-direction: column; transform: none; }
  .axe--haut .axe__rond { order: 0; }
}
@media print {
  .ville, .dus-veilleur, .barre-compacte, .pied__liens, .boutons-partage { display: none !important; }
  .anime-pret [data-apparait] > * { opacity: 1 !important; transform: none !important; animation: none !important; } /* un bloc jamais vu à l'écran s'imprime aussi */
  .anime-pret [data-apparait] .souligne path { stroke-dashoffset: 0 !important; animation: none !important; }
  .bandeau { background: var(--blanc); color: var(--encre); }
  .bandeau a, .chapo, .fil, .fil a, .logo__nom span { color: var(--encre); }
}
