/* Communes S33D : surcharges et pages, sur le socle « S33D Données ». */

main { display: block; }
.s3-titre-affiche { text-wrap: balance; }
.discret { color: var(--encre-2); }
.s3-zone-nuit .discret { color: var(--texte-nuit-3); }

/* ── Scène de nuit (accueil, département, fiche) ───────────────── */
.nuit-scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.nuit-toile, .nuit-calque { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.nuit-toile { pointer-events: none; }
.nuit-calque { touch-action: pan-y; }
.nuit-scene.est-vide::after { content: "Carte indisponible pour le moment"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--texte-nuit-4); font-size: 13px; }
.nuit-bulle {
  position: absolute; left: 0; top: 0; z-index: 4; display: flex; flex-direction: column; gap: 2px; min-width: 150px; max-width: 260px;
  padding: 9px 13px 10px; border-radius: 14px; background: rgba(7, 15, 32, .94); border: 1px solid var(--trait-nuit);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .9); color: var(--texte-nuit); font-size: 13px; line-height: 1.35;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); pointer-events: none;
}
.nuit-bulle b { font: 700 15px/1.2 var(--titre); color: #fff; }
.nuit-bulle span { color: var(--texte-nuit-3); }
.nuit-bulle a { display: none; margin-top: 6px; font-weight: 600; color: var(--ambre-400) !important; pointer-events: auto; }
@media (hover: none) { .nuit-bulle { pointer-events: auto; } .nuit-bulle a { display: inline-flex; min-height: 32px; align-items: center; } }

/* ── Accueil : héros plein écran ───────────────────────────────── */
.heros-nuit, .heros-dep, .heros-fiche, .heros-simple { margin-top: calc(-1 * var(--barre)); padding-top: var(--barre); }
.heros-nuit { position: relative; display: flex; flex-direction: column; min-height: 100svh; max-height: 1080px; overflow: hidden; }
.heros-nuit .s3-titre-affiche { font-size: clamp(2.4rem, 4.3vw, 4.1rem); }
.heros-nuit::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 66% 52%, rgba(47, 139, 255, .13), transparent 70%),
    linear-gradient(90deg, rgba(3, 6, 13, .88) 0%, rgba(3, 6, 13, .55) 30%, rgba(3, 6, 13, 0) 52%),
    linear-gradient(0deg, rgba(3, 6, 13, .7) 0%, rgba(3, 6, 13, 0) 22%);
}
.heros-grille { position: relative; z-index: 3; flex: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 24px; pointer-events: none; }
.heros-texte { pointer-events: auto; max-width: 590px; padding: clamp(28px, 5vh, 64px) 0 24px; }
.heros-texte .s3-surtitre { margin-bottom: 22px; }
.heros-texte h1 { margin-bottom: 20px; }
.heros-texte .s3-chapeau { margin-bottom: 26px; }
.heros-cadre { align-self: stretch; min-height: 520px; margin: 24px 0; }
.heros-recherche { max-width: 600px; }
.heros-compte { min-height: 1.6em; margin: 14px 4px 0; font-size: 14.5px; color: var(--texte-nuit-2); }
.heros-compte a { color: var(--ambre-400) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.heros-essais { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.heros-essais > span { font-size: 13px; color: var(--texte-nuit-3); margin-right: 2px; }
.heros-essais .s3-pastille { cursor: pointer; }
.heros-localiser svg.i { color: var(--ambre-400); }
.heros-pied { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 22px; pointer-events: none; }
.heros-pied > * { pointer-events: auto; }
.legende-nuit { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--texte-nuit-3); }
.legende-nuit li { display: inline-flex; align-items: center; gap: 8px; }
.legende-nuit i { display: inline-block; border-radius: 50%; }
.legende-nuit .v { width: 5px; height: 5px; background: #52a8ff; box-shadow: 0 0 6px #52a8ff; }
.legende-nuit .b { width: 7px; height: 7px; background: #9ed1ff; box-shadow: 0 0 8px #9ed1ff; }
.legende-nuit .c { width: 10px; height: 10px; background: var(--ambre-400); box-shadow: 0 0 12px var(--ambre-500); }
.heros-suite { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; font-size: 13.5px; color: var(--texte-nuit-2) !important; }
.heros-suite svg.i { animation: descente 2.4s var(--ease) infinite; }
@keyframes descente { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* Chiffres nationaux */
.chiffres-nuit { padding: 8px 0 clamp(40px, 6vw, 72px); background: var(--nuit-950); }
.chiffres-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.chiffres-grille .s3-chiffre-valeur { color: #fff; }
.chiffres-grille .s3-verre:nth-child(3) .s3-chiffre-valeur { color: var(--ambre-300); }

/* Ligne d'horizon des villes */
.villes-nuit { padding: clamp(36px, 5vw, 64px) 0 8px; background: linear-gradient(180deg, var(--nuit-950), var(--nuit-950) 70%, #04080f); }
.tete-nuit { max-width: 720px; margin-bottom: 26px; }
.tete-nuit h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); color: #fff; margin-bottom: 10px; }
.tete-nuit p { color: var(--texte-nuit-2); margin: 0; }
.villes-tours { position: relative; display: flex; align-items: flex-end; gap: 6px; height: clamp(300px, 34vw, 420px); margin: 0; padding: 0 0 92px; list-style: none; }
.villes-tours::after { content: ""; position: absolute; left: 0; right: 0; bottom: 92px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 199, 87, .7) 12%, rgba(143, 200, 255, .55) 50%, rgba(255, 199, 87, .7) 88%, transparent); }
.villes-tours li { position: relative; flex: 1 1 0; min-width: 0; height: 100%; }
.villes-tours a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; color: inherit !important; }
.tour-valeur { display: block; text-align: center; font: 600 11.5px/1 var(--titre); color: var(--texte-nuit-3); margin-bottom: 7px; white-space: nowrap; transition: color .2s; }
.tour-barre {
  display: block; height: max(4px, calc(var(--h) * 100%)); border-radius: 7px 7px 0 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 199, 87, .7) 0 .9px, transparent 1.4px) 2px 6px / 7px 9px,
    linear-gradient(180deg, rgba(143, 200, 255, .95), rgba(47, 139, 255, .42) 9%, rgba(13, 115, 230, .14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 26px -8px rgba(47, 139, 255, .8);
  transform-origin: bottom; transition: filter .25s, box-shadow .25s;
}
.villes-tours li:first-child .tour-barre { background: radial-gradient(circle at 50% 50%, rgba(255, 217, 138, .85) 0 .9px, transparent 1.4px) 2px 6px / 7px 9px, linear-gradient(180deg, rgba(255, 217, 138, .95), rgba(247, 173, 43, .45) 6%, rgba(224, 144, 15, .12)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 40px -6px rgba(247, 173, 43, .7); }
.tour-nom { position: absolute; top: calc(100% + 10px); right: 50%; transform-origin: 100% 0; transform: rotate(-38deg); white-space: nowrap; font: 500 12px/1 var(--corps); color: var(--texte-nuit-2); transition: color .2s; }
.villes-tours a:hover .tour-barre, .villes-tours a:focus-visible .tour-barre { filter: brightness(1.35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 0 34px -4px rgba(255, 199, 87, .75); }
.villes-tours a:hover .tour-valeur, .villes-tours a:hover .tour-nom, .villes-tours a:focus-visible .tour-nom { color: #fff; }
.villes-tours a:focus-visible { outline-offset: 6px; }
.villes-tours.s3-apparition { transform: none; }
.villes-tours.s3-apparition:not(.est-vue) .tour-barre { transform: scaleY(0); }
.villes-tours.est-vue .tour-barre { animation: pousse 1.1s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes pousse { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.villes-suite { margin: 6px 0 0; color: var(--texte-nuit-3); font-size: 14px; line-height: 1.9; }

/* Sections de jour */
.tete-jour { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; margin-bottom: 28px; }
.tete-jour h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 8px; }
.tete-jour p { margin: 0; max-width: 64ch; color: var(--encre-2); }

.themes-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.theme { display: flex; align-items: center; gap: 15px; padding: 14px 18px 14px 14px; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon-l); box-shadow: var(--ombre-jour); }
.theme .s3-embleme { width: 58px; height: 58px; border-radius: 18px; }
.theme .s3-embleme svg.i { width: 26px; height: 26px; }
.theme > div { flex: 1; min-width: 0; }
.theme h3 { font-size: 16px; letter-spacing: -.01em; margin-bottom: 8px; }
.theme small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--encre-2); }
.jauge { display: block; height: 6px; border-radius: 999px; background: var(--glace-2); overflow: hidden; }
.jauge i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--azur-500), var(--azur-400)); }
.theme-vif .s3-direct { margin: 2px 0 0; }

/* Régions */
.regions-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.region { display: flex; flex-direction: column; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon-l); box-shadow: var(--ombre-jour); overflow: hidden; }
.region-ciel { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(120% 100% at 50% 0%, #0d2147 0%, #060c18 60%, #03060d 100%); }
.region-toile { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s var(--ease); }
.region-toile.est-dessinee { opacity: 1; }
.region-corps { padding: 16px 18px 18px; }
.region h3 { font-size: 19px; margin-bottom: 4px; }
.region-chiffres { margin: 0 0 12px; font-size: 13.5px; color: var(--encre-2); }
.region-chiffres b { color: var(--encre); font-weight: 600; }
.region-deps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.region-deps a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px 0 4px; border-radius: 999px; background: var(--glace); border: 1px solid var(--trait); font-size: 13.5px; color: var(--encre-2) !important; transition: border-color .2s, background .2s, color .2s; }
.region-deps a:hover { border-color: var(--azur-300); background: var(--azur-50); color: var(--azur-800) !important; }
.code { display: inline-grid; place-items: center; min-width: 30px; height: 28px; padding: 0 6px; border-radius: 999px; background: var(--blanc); border: 1px solid var(--trait); font: 700 11.5px/1 var(--titre); color: var(--azur-700); letter-spacing: .02em; }
.region-outremer { grid-column: span 2; }
.region-outremer .region-ciel { aspect-ratio: 32 / 9; }

/* Bandeau des alertes */
.alertes-bandeau { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: clamp(28px, 4vw, 52px); border-radius: var(--rayon-xl); overflow: hidden; box-shadow: var(--ombre-jour-forte); }
.alertes-bandeau::after { content: ""; position: absolute; right: -10%; top: -30%; width: 60%; height: 120%; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgba(247, 173, 43, .16), transparent 70%); }
.alertes-texte .s3-embleme { margin-bottom: 18px; }
.s3-embleme.grand { width: 84px; height: 84px; border-radius: 26px; }
.s3-embleme.grand svg.i { width: 36px; height: 36px; color: var(--ambre-400); }
.alertes-texte h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); color: #fff; margin-bottom: 12px; }
.alertes-texte p { color: var(--texte-nuit-2); max-width: 50ch; margin-bottom: 22px; }
.alertes-sujets { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.alertes-sujets li { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--verre); border: 1px solid var(--trait-nuit); }
.alertes-sujets svg.i { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(247, 173, 43, .12); color: var(--ambre-400); }
.alertes-sujets b { font: 600 15px/1.2 var(--titre); color: #fff; }
.alertes-sujets span { font-size: 13px; color: var(--texte-nuit-3); }

/* ── Fil d'Ariane (zones de nuit) ──────────────────────────────── */
.fil { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 18px; font-size: 13.5px; color: var(--texte-nuit-3); }
.fil a { color: var(--texte-nuit-2) !important; min-height: 32px; display: inline-flex; align-items: center; }
.fil a:hover { color: #fff !important; }
.fil [aria-current] { color: var(--texte-nuit); }

/* ── Département ───────────────────────────────────────────────── */
.heros-dep { position: relative; display: flex; flex-direction: column; min-height: min(86svh, 820px); overflow: hidden; }
.heros-dep::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(3, 6, 13, .9) 0%, rgba(3, 6, 13, .5) 34%, rgba(3, 6, 13, 0) 56%), linear-gradient(0deg, rgba(3, 6, 13, .65), rgba(3, 6, 13, 0) 24%); }
.heros-dep-grille { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: center; pointer-events: none; }
.heros-dep-texte { pointer-events: auto; padding: 40px 0; }
.heros-dep-texte h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); margin: 18px 0 26px; }
.heros-dep-cadre { align-self: stretch; min-height: 460px; margin: 24px 0; }
.chiffres-verre { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; max-width: 520px; }
.chiffres-verre > div { padding: 14px 16px; border-radius: 18px; }
.chiffres-verre dt { font-size: 12.5px; color: var(--texte-nuit-3); margin-bottom: 4px; }
.chiffres-verre dd { margin: 0; font: 700 clamp(1.3rem, 2vw, 1.7rem)/1.1 var(--titre); color: #fff; letter-spacing: -.02em; }
.chiffres-verre dd small { font-size: .6em; color: var(--texte-nuit-3); font-weight: 600; }
.chiffres-verre dd a { color: var(--ambre-300) !important; }

.podium { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.podium-carte { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 14px; padding: 14px 18px 16px; background: var(--blanc); border: 1px solid var(--trait); border-radius: 20px; box-shadow: var(--ombre-jour); color: var(--encre) !important; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.podium-carte:hover { transform: translateY(-2px); border-color: var(--azur-200); box-shadow: var(--ombre-jour-forte); }
.podium-rang { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--glace); font: 700 14px/1 var(--titre); color: var(--azur-700); }
.podium li:first-child .podium-rang { background: linear-gradient(180deg, var(--ambre-400), var(--ambre-500)); color: #1d1100; }
.podium-nom { font: 600 16px/1.2 var(--titre); min-width: 0; }
.podium-nom small { display: block; font: 400 12.5px/1.3 var(--corps); color: var(--encre-2); margin-top: 2px; }
.podium-pop { font: 700 16px/1 var(--titre); text-align: right; white-space: nowrap; }
.podium-pop small { font: 500 12px var(--corps); color: var(--encre-2); }
.podium-barre { grid-column: 1 / -1; height: 5px; border-radius: 999px; background: var(--glace-2); overflow: hidden; margin-top: 8px; }
.podium-barre i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--azur-600), var(--azur-400)); }
.podium li:first-child .podium-barre i { background: linear-gradient(90deg, var(--ambre-600), var(--ambre-400)); }

.tailles { display: grid; gap: 14px; padding: 24px; }
.tailles-legende { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--encre-2); margin-bottom: 4px; }
.tailles-legende span { display: inline-flex; align-items: center; gap: 8px; }
.tailles-legende i { width: 14px; height: 8px; border-radius: 3px; }
.tailles-legende .c, .tb.c i { background: linear-gradient(90deg, var(--azur-600), var(--azur-400)); }
.tailles-legende .h, .tb.h i { background: linear-gradient(90deg, var(--ambre-600), var(--ambre-400)); }
.taille { display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: center; }
.taille-lib { font: 600 14.5px/1.25 var(--titre); }
.taille-lib small { display: block; font: 400 12px var(--corps); color: var(--encre-2); }
.taille-barres { display: grid; gap: 5px; }
.tb { position: relative; display: block; height: 22px; border-radius: 7px; background: var(--glace); overflow: hidden; }
.tb i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; min-width: 2px; }
.tb b { position: relative; display: block; padding: 0 10px; font: 600 12px/22px var(--corps); color: var(--encre); white-space: nowrap; text-shadow: 0 0 6px rgba(255, 255, 255, .9); }

.filtre-champ { width: min(360px, 100%); }
.filtre-champ > svg.i { color: var(--encre-2); }
.filtre-champ input { width: 100%; height: 46px; padding: 0 16px 0 42px; border-radius: 999px; border: 1px solid var(--trait-fort); background: var(--blanc); color: var(--encre); box-shadow: var(--ombre-jour); }
.filtre-champ input::placeholder { color: var(--encre-2); }
.filtre-champ input:focus { outline: none; border-color: var(--azur-400); box-shadow: 0 0 0 4px rgba(47, 139, 255, .16); }
.lettres { position: sticky; top: var(--barre); z-index: 20; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; margin-bottom: 8px; background: rgba(242, 246, 252, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lettres::-webkit-scrollbar { display: none; }
.lettres a { flex: none; display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 12px; font: 700 14px/1 var(--titre); color: var(--encre-2) !important; background: var(--blanc); border: 1px solid var(--trait); }
.lettres a:hover { color: var(--azur-700) !important; border-color: var(--azur-300); }
.filtre-compte { min-height: 1.4em; margin: 0 0 6px; font-size: 14px; }
.index-communes { display: grid; gap: 22px; }
.index-lettre { scroll-margin-top: calc(var(--barre) + 76px); }
.index-lettre h3 { display: flex; align-items: center; gap: 12px; font-size: 22px; color: var(--azur-700); margin-bottom: 10px; }
.index-lettre h3::after { content: ""; flex: 1; height: 1px; background: var(--trait); }
.index-lettre ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 18px; margin: 0; padding: 0; list-style: none; }
.index-lettre a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-height: 40px; padding: 8px 10px; border-radius: 10px; color: var(--encre) !important; }
.index-lettre a:hover { background: var(--blanc); box-shadow: var(--ombre-jour); }
.index-lettre a span { font-weight: 500; }
.index-lettre small { color: var(--encre-2); font-size: 12.5px; white-space: nowrap; }
.region-deps.grands a { min-height: 44px; padding-right: 16px; }
.region-deps.grands small { color: var(--encre-2); margin-left: 4px; }

/* ── Contraste des petits textes du socle sur fond clair ──────── */
.s3-source, .s3-section-tete p, .s3-chiffre-libelle, .s3-table th { color: var(--encre-2); }
.s3-zone-nuit .s3-source, .s3-zone-nuit .s3-section-tete p { color: var(--texte-nuit-3); }
.s3-pied h3, .s3-pied-bas, .s3-lanceur-menu p { color: var(--texte-nuit-3); }
.s3-source a { color: var(--azur-700); }
.s3-zone-nuit .s3-source a { color: var(--azur-300); text-decoration-color: rgba(143, 200, 255, .4); }
.s3-table-cadre { position: relative; }
.aide { font-size: 13px; font-weight: 400; color: var(--encre-2); }

/* ── Fiche : héros « carte d'identité » ─────────────────────────── */
.heros-fiche { position: relative; display: flex; flex-direction: column; min-height: min(92svh, 900px); overflow: hidden; }
.heros-fiche-fond { position: absolute; inset: 0; z-index: -1; }
.heros-fiche-fond img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; opacity: .92; animation: lent 30s ease-in-out infinite alternate; }
.heros-fiche-fond::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 6, 13, .92) 0%, rgba(3, 6, 13, .72) 34%, rgba(3, 6, 13, .25) 64%, rgba(3, 6, 13, .45) 100%),
    linear-gradient(0deg, rgba(3, 6, 13, 1) 0%, rgba(3, 6, 13, .55) 26%, rgba(3, 6, 13, 0) 50%),
    linear-gradient(180deg, rgba(3, 6, 13, .7) 0%, rgba(3, 6, 13, 0) 22%);
}
.ambiance-littoral .heros-fiche-fond { background: radial-gradient(70% 60% at 80% 70%, rgba(25, 179, 176, .22), transparent 70%); }
.ambiance-montagne .heros-fiche-fond { background: radial-gradient(70% 60% at 75% 30%, rgba(143, 200, 255, .2), transparent 70%); }
.ambiance-vignoble .heros-fiche-fond { background: radial-gradient(70% 60% at 75% 75%, rgba(247, 173, 43, .16), transparent 70%); }
.ambiance-outremer .heros-fiche-fond { background: radial-gradient(70% 60% at 75% 70%, rgba(25, 179, 176, .2), transparent 70%); }
@keyframes lent { from { transform: scale(1.02); } to { transform: scale(1.09) translateX(-1.2%); } }
.heros-fiche-grille { position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 56px); align-items: end; padding: clamp(24px, 5vh, 56px) var(--goutiere) clamp(28px, 5vh, 52px); }
.identite { min-width: 0; }
.identite .s3-surtitre { margin-bottom: 14px; }
.nom-commune { font: 800 clamp(3rem, 8.4vw, 7.4rem)/.92 var(--titre); letter-spacing: -.045em; color: #fff; margin: 0 0 14px; text-shadow: 0 6px 40px rgba(3, 6, 13, .6); overflow-wrap: anywhere; hyphens: auto; }
.nom-commune.long { font-size: clamp(2.5rem, 6vw, 5.2rem); }
.nom-commune.tres-long { font-size: clamp(2rem, 4.4vw, 3.8rem); line-height: 1; }
.identite-codes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.identite-codes span { padding: 5px 11px; border-radius: 999px; font: 600 12.5px/1.2 var(--corps); letter-spacing: .04em; color: var(--texte-nuit-2); background: rgba(10, 22, 46, .55); border: 1px solid var(--trait-nuit); }
.identite-chiffres { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 34px; margin: 0 0 22px; }
.identite-chiffres dt { font-size: 13px; color: var(--texte-nuit-3); margin-bottom: 2px; }
.identite-chiffres dd { margin: 0; font: 700 clamp(1.4rem, 2.4vw, 2rem)/1 var(--titre); color: #fff; letter-spacing: -.02em; }
.identite-chiffres dd small { font-size: .5em; font-weight: 600; color: var(--texte-nuit-3); letter-spacing: 0; }
.identite-chiffres .principal dd { font-size: clamp(2.4rem, 4.6vw, 3.6rem); background: linear-gradient(100deg, #fff, var(--azur-200) 60%, var(--ambre-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.direct-puces { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.direct-puces a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; background: rgba(10, 22, 46, .62); border: 1px solid var(--trait-nuit); color: var(--texte-nuit) !important; font-size: 14px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .2s, background .2s; }
.direct-puces a:hover { border-color: rgba(143, 200, 255, .45); background: rgba(16, 36, 74, .8); }
.direct-puces svg.i { width: 22px; height: 22px; color: var(--ambre-400); }
.direct-puces b { font-family: var(--titre); }
.pastille-air { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 28%, transparent), 0 0 10px var(--c); }
.identite-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.repere { padding: 0; overflow: hidden; display: flex; flex-direction: column; border-radius: var(--rayon-xl); background: linear-gradient(180deg, rgba(10, 22, 46, .72), rgba(5, 10, 20, .82)); }
.repere .nuit-scene { position: relative; inset: auto; height: clamp(300px, 34vw, 420px); }
.repere-pied { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 12px 18px; border-top: 1px solid var(--trait-nuit-doux); }
.repere-titre { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--texte-nuit-2); min-width: 0; }
.repere-titre svg.i { color: var(--ambre-400); }
.repere-vues { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(3, 6, 13, .6); border: 1px solid var(--trait-nuit); }
.repere-vues button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--texte-nuit-2); font: 600 13px/1 var(--corps); }
.repere-vues button[aria-pressed="true"] { background: rgba(47, 139, 255, .3); color: #fff; }
.horizon-court { height: 70px; }

/* ── Fiche : chapitres et tableau de bord ───────────────────────── */
.page-commune .s3-chapitres a { min-height: 40px; }
.fiche .s3-section:first-child { padding-top: clamp(28px, 4vw, 48px); }
.essentiel-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 20px; }
.essentiel-tete h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.essentiel-tete p { margin: 0; color: var(--encre-2); font-size: 14.5px; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; grid-auto-flow: dense; }
.tuile {
  position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 170px; padding: 18px 18px 16px;
  background: var(--blanc); border: 1px solid var(--trait); border-radius: 22px; box-shadow: var(--ombre-jour); color: var(--encre) !important; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.tuile:hover { transform: translateY(-3px); box-shadow: var(--ombre-jour-forte); border-color: var(--azur-200); }
.tuile-titre { display: flex; align-items: center; gap: 8px; font: 600 12px/1.2 var(--corps); letter-spacing: .08em; text-transform: uppercase; color: var(--encre-2); }
.tuile-titre svg.i { width: 18px; height: 18px; color: var(--azur-600); }
.tuile-valeur { font: 700 clamp(2rem, 3vw, 2.6rem)/1 var(--titre); letter-spacing: -.03em; margin-top: auto; }
.tuile-valeur small { font-size: .5em; font-weight: 600; color: var(--encre-2); }
.tuile-nom { font: 700 clamp(1.15rem, 1.7vw, 1.4rem)/1.15 var(--titre); letter-spacing: -.015em; margin-top: auto; }
.tuile-detail { font-size: 13.5px; color: var(--encre-2); line-height: 1.4; }
.tuile-meteo { grid-column: span 2; background: radial-gradient(120% 120% at 100% 0%, #123a7a 0%, #0a1a38 45%, #05090f 100%); border-color: transparent; color: var(--texte-nuit) !important; }
.tuile-meteo .tuile-titre, .tuile-meteo .tuile-detail { color: var(--texte-nuit-2); }
.tuile-meteo .tuile-titre svg.i { color: var(--ambre-400); }
.jours-mini { display: flex; gap: 10px; margin-top: auto; }
.jour-mini { flex: 1; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--trait-nuit); }
.jour-mini small { grid-column: 1 / -1; font-size: 12.5px; color: var(--texte-nuit-3); margin-bottom: 4px; }
.jour-mini svg.i { width: 34px; height: 34px; color: var(--ambre-400); grid-row: span 2; }
.jour-mini b { font: 700 1.6rem/1 var(--titre); color: #fff; }
.jour-mini em { font-style: normal; font-size: 13px; color: var(--texte-nuit-3); }
.tuile-air { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--texte-nuit-2); }
.tuile-alerte { background: linear-gradient(160deg, #2a1a02 0%, #0a1a38 55%, #05090f 100%); border-color: rgba(247, 173, 43, .35); color: var(--texte-nuit) !important; }
.tuile-alerte .tuile-titre { color: var(--ambre-300); }
.tuile-alerte .tuile-titre svg.i { color: var(--ambre-400); }
.tuile-alerte .tuile-nom { color: #fff; }
.tuile-alerte .tuile-detail { color: var(--texte-nuit-2); }
.tuile-alerte::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(247, 173, 43, .35), transparent 70%); }
.monogramme { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font: 700 16px/1 var(--titre); letter-spacing: .02em; color: #fff; background: radial-gradient(120% 120% at 30% 20%, #2f8bff, #0e5cc4 55%, #15427d); box-shadow: 0 8px 20px -10px rgba(13, 115, 230, .9); }
.monogramme.grand { width: 64px; height: 64px; font-size: 22px; flex: none; }
.mini-barres { display: flex; align-items: flex-end; gap: 8px; height: 46px; }
.mini-barres span { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; width: 34px; }
.mini-barres i { display: block; width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--azur-400), var(--azur-600)); min-height: 4px; }
.mini-barres span:last-child i { background: linear-gradient(180deg, var(--ambre-400), var(--ambre-600)); }
.mini-barres small { font-size: 11px; color: var(--encre-2); }
.tuile-prix .tuile-valeur { margin-top: 2px; }
.variation { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font: 600 12.5px/1.4 var(--corps); }
.variation.hausse { background: var(--orange-doux); color: #8a4a00; }
.variation.baisse { background: var(--azur-50); color: var(--azur-800); }
.variation.stable { background: var(--glace-2); color: var(--encre-2); }
.barre-vote { display: block; height: 8px; border-radius: 999px; background: var(--glace-2); overflow: hidden; }
.barre-vote i { display: block; height: 100%; background: var(--c); border-radius: inherit; }
.pile { display: flex; gap: 3px; height: 10px; border-radius: 999px; overflow: hidden; }
.pile i, .filtres i, .donut { --p0: var(--azur-600); --p1: var(--azur-300); --p2: var(--ambre-500); --p3: var(--turquoise); --p4: var(--violet); }
.pile i { display: block; border-radius: 3px; }
.p0 { background: var(--azur-600); } .p1 { background: var(--azur-300); } .p2 { background: var(--ambre-500); } .p3 { background: var(--turquoise); } .p4 { background: var(--violet); }
.pictos { display: flex; flex-wrap: wrap; gap: 6px; }
.pictos svg.i { width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: var(--orange-doux); color: #a85a00; }
.prix-mini { display: flex; gap: 14px; margin-top: auto; }
.prix-mini span { display: flex; flex-direction: column; }
.prix-mini small { font-size: 12px; color: var(--encre-2); }
.prix-mini b { font: 700 1.25rem/1.1 var(--titre); }

/* ── Fiche : chapitres en cartes ───────────────────────────────── */
.chapitre .s3-section-tete { margin-bottom: 20px; }
.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.grille-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: stretch; }
.carte-titre { display: flex; align-items: center; gap: 8px; font: 600 12.5px/1.2 var(--corps); letter-spacing: .07em; text-transform: uppercase; color: var(--encre-2); margin-bottom: 10px; }
.carte-titre svg.i { width: 19px; height: 19px; color: var(--azur-600); }
.grand-chiffre { display: block; font: 700 clamp(2rem, 3.4vw, 2.8rem)/1 var(--titre); letter-spacing: -.03em; margin-bottom: 8px; }
.grand-chiffre small { font-size: .42em; font-weight: 600; color: var(--encre-2); letter-spacing: 0; }
.carte-detail { display: block; font-size: 13.5px; color: var(--encre-2); margin-top: 10px; }
.s3-carte h3 { font-size: 17px; margin-bottom: 14px; }
.sous-titre { font-size: 17px; margin: 0 0 12px; }
.bloc-table { margin-top: 22px; }
.bloc-table h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 18px; margin-bottom: 12px; }
.bloc-table > .aide { margin: 0 0 10px; }
.filtre-table { margin-bottom: 10px; }
.voir-plus { margin-top: 12px; }
.s3-table td .s3-badge { white-space: nowrap; }
th .tri { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; }
th .tri::after { content: "↕"; opacity: .45; }
th[aria-sort="ascending"] .tri::after { content: "↑"; opacity: 1; color: var(--azur-600); }
th[aria-sort="descending"] .tri::after { content: "↓"; opacity: 1; color: var(--azur-600); }
.voir-carte:not(.s3-btn) { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--trait); background: var(--blanc); color: var(--azur-700); }
.voir-carte:not(.s3-btn):hover { border-color: var(--azur-300); background: var(--azur-50); }
.repli { margin-top: 16px; }
.repli summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--trait); background: var(--blanc); font-weight: 600; font-size: 14.5px; color: var(--encre); cursor: pointer; list-style: none; box-shadow: var(--ombre-jour); }
.repli summary::-webkit-details-marker { display: none; }
.repli summary svg.i { transition: transform .25s var(--ease); }
.repli[open] summary svg.i { transform: rotate(180deg); }
.repli > :not(summary) { margin-top: 14px; }

/* Météo */
.meteo-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.meteo-jour, .meteo-air { display: flex; flex-direction: column; gap: 10px; }
.meteo-quand { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 700 17px/1.2 var(--titre); }
.meteo-quand small { font: 400 12.5px var(--corps); color: var(--encre-2); }
svg.i.meteo-picto { width: 52px; height: 52px; color: var(--azur-600); stroke-width: 1.4; }
.ciel-soleil svg.i.meteo-picto, .ciel-eclaircie svg.i.meteo-picto { color: var(--ambre-600); }
.meteo-ciel { font-size: 14.5px; color: var(--encre-2); }
.thermo { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font: 700 17px/1 var(--titre); }
.thermo-rail { position: relative; height: 8px; border-radius: 999px; background: var(--glace-2); }
.thermo-rail i { position: absolute; top: 0; bottom: 0; border-radius: inherit; background: linear-gradient(90deg, var(--azur-400), var(--ambre-500)); }
.meteo-details { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--encre-2); }
.meteo-details span { display: inline-flex; align-items: center; gap: 5px; }
.meteo-details svg.i { width: 16px; height: 16px; color: var(--azur-600); }
.air-indice { display: inline-flex; align-items: center; gap: 10px; font: 700 1.7rem/1.1 var(--titre); }
.air-indice::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }
.air-echelle { display: flex; gap: 4px; align-items: flex-end; height: 18px; }
.air-echelle i { flex: 1; height: 8px; border-radius: 4px; background: var(--c); opacity: .35; }
.air-echelle i.on { height: 18px; opacity: 1; }
.air-bornes { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--encre-2); }

/* Alertes */
.alertes-cadre { padding: clamp(22px, 3.4vw, 40px); border-radius: var(--rayon-xl); box-shadow: var(--ombre-jour-forte); overflow: hidden; }
.alertes-cadre .s3-section-tete h2 { color: #fff; }
.alertes-cadre::after { content: ""; position: absolute; right: -8%; top: -20%; width: 46%; height: 80%; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgba(247, 173, 43, .14), transparent 70%); }
.sujets { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 0 0 18px; padding: 0; border: 0; }
.sujets legend { padding: 0; margin-bottom: 12px; font: 600 14px/1.2 var(--corps); color: var(--texte-nuit-2); }
.sujet { position: relative; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border-radius: 18px; background: var(--verre); border: 1px solid var(--trait-nuit); cursor: pointer; transition: border-color .2s, background .2s; }
.sujet input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sujet-case { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--texte-nuit-3); color: transparent; transition: background .2s, border-color .2s, color .2s; }
.sujet-case svg.i { width: 16px; height: 16px; stroke-width: 2.4; }
.sujet input:checked ~ .sujet-case { background: var(--ambre-400); border-color: var(--ambre-400); color: #1d1100; }
.sujet input:checked ~ svg.i.sujet-picto { color: var(--ambre-400); }
.sujet:has(input:checked) { border-color: rgba(247, 173, 43, .5); background: rgba(247, 173, 43, .08); }
.sujet input:focus-visible ~ .sujet-case { outline: 3px solid var(--azur-400); outline-offset: 2px; }
svg.i.sujet-picto { width: 26px; height: 26px; color: var(--texte-nuit-3); }
.sujet-texte { display: flex; flex-direction: column; min-width: 0; }
.sujet-texte b { font: 600 15px/1.2 var(--titre); color: #fff; }
.sujet-texte small { font-size: 12.5px; color: var(--texte-nuit-3); line-height: 1.35; }
.sujet.ferme { opacity: .55; cursor: not-allowed; }
.canaux, .code-sms { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.code-sms { grid-template-columns: minmax(0, 320px) auto; margin-top: 14px; }
.canal { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--texte-nuit-2); }
.canal span { display: inline-flex; align-items: center; gap: 7px; }
.canal input { height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--trait-nuit); background: rgba(3, 6, 13, .55); color: #fff; font-size: 16px; }
.canal input::placeholder { color: var(--texte-nuit-3); }
.canal input:focus { outline: none; border-color: rgba(143, 200, 255, .6); box-shadow: 0 0 0 4px rgba(47, 139, 255, .2); }
.canaux .s3-btn { height: 50px; }
.piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.alerte-message { min-height: 1.4em; margin: 14px 0 0; font-weight: 600; color: var(--texte-nuit-2); }
.alerte-message.ok { color: #6ee7a8; }
.alerte-message.erreur { color: #ff9b8f; }
.alerte-note { margin: 10px 0 0; font-size: 13px; line-height: 1.55; color: var(--texte-nuit-3); max-width: 90ch; }

/* Mairie */
.mairie-carte { display: flex; flex-direction: column; gap: 16px; }
.maire { display: flex; align-items: center; gap: 16px; }
.maire b { display: block; font: 700 1.35rem/1.15 var(--titre); }
.maire span { font-size: 13.5px; color: var(--encre-2); }
.adresse { display: flex; gap: 10px; margin: 0; font-size: 15px; }
.adresse svg.i { color: var(--azur-600); margin-top: 3px; }
.boutons { display: flex; flex-wrap: wrap; gap: 8px; }
.horaires-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.horaires-tete h3 { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.horaires-tete h3 svg.i { color: var(--azur-600); }
.ouvert-maintenant { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; font: 600 13px/1.4 var(--corps); }
.ouvert-maintenant::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ouvert-maintenant.oui { background: var(--vert-doux); color: #0c7a4e; }
.ouvert-maintenant.non { background: var(--rouge-doux); color: #b42d1d; }
.horaires { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.horaires li { display: grid; grid-template-columns: minmax(130px, 40%) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--glace-2); font-size: 14.5px; }
.horaires li:last-child { border-bottom: 0; }
.horaires small { display: block; font-size: 12.5px; color: var(--encre-2); margin-top: 2px; }
.annexes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.annexes li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; font-size: 14px; }

/* Actualité, S33D TV */
.fil-actu { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.fil-actu li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; }
.fil-actu a { font-weight: 600; color: var(--encre) !important; line-height: 1.35; }
.fil-actu a:hover { color: var(--azur-700) !important; }
.fil-actu small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--encre-2); }
.fil-actu .objet { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fil-actu.compact { grid-template-columns: 1fr; }
.date-bloc { flex: none; display: grid; place-items: center; width: 50px; padding: 6px 0; border-radius: 14px; background: var(--azur-50); color: var(--azur-800); line-height: 1; }
.date-bloc b { font: 700 19px/1 var(--titre); }
.date-bloc span { font-size: 11px; margin-top: 3px; }
.tv-bandeau { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; margin-top: 20px; padding: 22px 26px; border-radius: var(--rayon-l); overflow: hidden; }
.tv-bandeau h3 { font-size: 1.4rem; color: #fff; margin: 10px 0 4px; }
.tv-bandeau p:not(.s3-surtitre) { margin: 0; color: var(--texte-nuit-2); font-size: 14.5px; }
.tv-ecran { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: radial-gradient(120% 120% at 30% 20%, #163d7d, #071634); box-shadow: inset 0 0 0 1px rgba(143, 200, 255, .22), var(--lueur-ambre); }
.tv-ecran svg.i { width: 34px; height: 34px; color: var(--ambre-400); }

/* Élections */
.elections-carte { padding: 22px 24px; }
.onglets { display: inline-flex; padding: 4px; margin-bottom: 18px; border-radius: 999px; background: var(--glace); border: 1px solid var(--trait); }
.onglets button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; font: 600 14px/1 var(--corps); color: var(--encre-2); }
.onglets button[aria-selected="true"] { background: var(--encre); color: #fff; }
.tour-entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.tour-entete h3 { margin: 0; font-size: 19px; }
.participation { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.participation small { color: var(--encre-2); }
.anneau { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: conic-gradient(var(--azur-600) calc(var(--p) * 1%), var(--glace-2) 0); }
.anneau b { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blanc); font: 700 13px/1 var(--titre); }
.listes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.listes li { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; }
.liste-nom b { font: 600 15.5px/1.25 var(--titre); }
.liste-nom small { display: block; font-size: 12.5px; color: var(--encre-2); }
.liste-etiquettes { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 1; }
.liste-pct { grid-column: 2; grid-row: 1 / span 2; font: 700 1.5rem/1 var(--titre); text-align: right; }
.liste-barre { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: var(--glace-2); overflow: hidden; }
.liste-barre i { display: block; height: 100%; border-radius: inherit; background: var(--c); }
.liste-voix { grid-column: 1 / -1; font-size: 12.5px; color: var(--encre-2); margin-top: -2px; }
.conseil { margin-top: 16px; display: grid; grid-template-columns: minmax(240px, 420px) 1fr; gap: 10px 28px; align-items: center; }
.conseil h3 { grid-column: 1 / -1; margin: 0; }
.hemicycle svg { width: 100%; height: auto; display: block; }
.hemi-total { font: 700 .28px/1 var(--titre); fill: var(--encre); }
.hemi-lib { font: 500 .1px/1 var(--corps); fill: var(--encre-2); }
.sieges-repli { display: flex; flex-wrap: wrap; gap: 4px; }
.sieges-repli i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.sieges-legende { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sieges-legende li { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.sieges-legende i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.sieges-legende b { font-family: var(--titre); }

/* Logement */
.prix-carte, .loyer-carte, .mobi-carte, .emploi-carte, .jauge-carte { display: flex; flex-direction: column; }
.prix-carte .variation { align-self: flex-start; }
.annees { display: flex; align-items: flex-end; gap: 14px; height: 120px; margin: 16px 0 4px; }
.annees div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; font-size: 12.5px; color: var(--encre-2); }
.annees b { font: 700 13px/1 var(--titre); color: var(--encre); }
.annees i { display: block; width: 100%; max-width: 74px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--azur-300), var(--azur-600)); min-height: 6px; }
.annees div:last-child i { background: linear-gradient(180deg, var(--ambre-300), var(--ambre-600)); }
.loyers { display: grid; gap: 16px; }
.loyers > div { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--encre-2); }
.loyers .grand-chiffre { margin: 0; color: var(--encre); }
.annonces { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 22px; }
.annonces-carte h3 { display: flex; align-items: baseline; gap: 10px; }
.annonces-carte h3 small { font: 400 13px var(--corps); color: var(--encre-2); }
.annonces-carte ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.annonces-carte a { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; min-height: 48px; padding: 8px 12px; border-radius: 12px; color: var(--encre) !important; }
.annonces-carte a:hover { background: var(--glace); }
.annonces-carte a span { grid-column: 1; font-size: 12.5px; color: var(--encre-2); }
.annonces-carte a svg.i { grid-column: 2; grid-row: 1 / span 2; color: var(--encre-2); }

/* Écoles */
.ecoles-anneau-carte { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.donut { flex: none; display: grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; }
.donut b { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--blanc); font: 700 1.7rem/1 var(--titre); box-shadow: inset 0 0 0 1px var(--trait); }
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; flex: 1; min-width: 220px; }
.filtres button { cursor: pointer; min-height: 40px; }
.filtres i { width: 10px; height: 10px; border-radius: 50%; }
.filtres b { font-family: var(--titre); }

/* Santé */
.barres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px 22px; }
.barres.simples { grid-template-columns: 1fr; gap: 10px; }
.barres li > button, .barres.simples li { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 5px 10px; align-items: center; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; background: none; text-align: left; color: var(--encre); }
.barres.simples li { padding: 0; }
.barres li > button { min-height: 52px; cursor: pointer; transition: background .2s; }
.barres li > button:hover, .barres li > button[aria-expanded="true"] { background: var(--azur-50); }
.barre-lib { font-size: 14px; min-width: 0; }
.barre-lib small { color: var(--encre-2); }
.barres b { font: 700 14.5px/1 var(--titre); }
.barre-rail { grid-column: 1 / -1; display: block; height: 7px; border-radius: 999px; background: var(--glace-2); overflow: hidden; }
.barre-rail i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--azur-600), var(--azur-400)); }
.pros-detail { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--trait); }
.pros-entete { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.pros-entete h3 { margin: 0; flex: 1; min-width: 160px; }
.pros-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.pros-liste li { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 14px; background: var(--glace); font-size: 13.5px; }
.pros-liste li b { font: 600 15px/1.25 var(--titre); }
.pros-liste .spec { color: var(--azur-800); font-weight: 600; font-size: 12.5px; }
.pros-liste .adr { color: var(--encre-2); }
.pros-liste .liens { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.pros-liste .tel { font-weight: 600; }
.pros-liste .exercice { color: var(--encre-2); font-size: 12px; }
.pros-liste .attente { background: none; color: var(--encre-2); }

/* Services */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.service { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; }
.service-type { font: 600 11.5px/1.2 var(--corps); letter-spacing: .07em; text-transform: uppercase; color: var(--azur-700); }
.service b { font: 600 15px/1.3 var(--titre); }
.service-adresse { font-size: 13.5px; color: var(--encre-2); }
.service-liens { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 4px; }
.service-liens a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-weight: 600; font-size: 14px; }

/* Risques */
.risques { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.risques li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.risques li > svg.i { flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--orange-doux); color: #a85a00; }
.risques b { display: block; font: 600 15px/1.25 var(--titre); }
.risques small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--encre-2); line-height: 1.35; }
.jauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.segments { display: flex; gap: 5px; margin-top: 6px; }
.segments i { flex: 1; height: 10px; border-radius: 5px; background: var(--glace-2); }
.segments i.on:nth-child(1) { background: var(--vert); }
.segments i.on:nth-child(2) { background: color-mix(in oklab, var(--vert), var(--ambre-500)); }
.segments i.on:nth-child(3) { background: var(--ambre-500); }
.segments i.on:nth-child(4) { background: var(--orange); }
.segments i.on:nth-child(5) { background: var(--rouge); }
.segments.trois i.on:nth-child(2) { background: var(--ambre-500); }
.segments.trois i.on:nth-child(3) { background: var(--orange); }
.frise { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 0; }
.frise li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 0 0 18px; }
.frise li::before { content: ""; position: absolute; left: 27px; top: 26px; bottom: 0; width: 2px; background: var(--trait); }
.frise li:last-child::before { display: none; }
.frise-annee { display: grid; place-items: center; width: 56px; height: 28px; border-radius: 999px; background: var(--orange-doux); color: #8a4a00; font: 700 13px/1 var(--titre); position: relative; z-index: 1; }
.frise b { display: block; font: 600 15px/1.3 var(--titre); }
.frise div > span, .frise small { display: block; font-size: 13.5px; color: var(--encre-2); }
.frise-carte { margin-bottom: 16px; }
.vers-alertes { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 22px; border-radius: var(--rayon-l); background: linear-gradient(120deg, #fff7e6, #fffdf8); border: 1px solid rgba(247, 173, 43, .45); color: var(--encre) !important; box-shadow: var(--ombre-jour); transition: transform .25s var(--ease), box-shadow .25s; }
.vers-alertes:hover { transform: translateY(-2px); box-shadow: var(--ombre-jour-forte); }
.vers-alertes > svg.i:first-child { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--ambre-400); color: #1d1100; }
.vers-alertes span { font-size: 14px; color: var(--encre-2); }
.vers-alertes b { display: block; font: 700 16px/1.3 var(--titre); color: var(--encre); }

/* Mobilité */
.mobi-carte .s3-btn { align-self: flex-start; margin-top: auto; }
.modes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.arrets { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.arrets a { display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; align-items: center; padding: 8px 10px; border-radius: 12px; color: var(--encre) !important; font-size: 14px; }
.arrets a:hover { background: var(--glace); }
.arrets b { font: 600 13px/1 var(--titre); color: var(--encre-2); }
.etiquettes-prix { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.etiquettes-prix li { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 14px; background: var(--glace); border: 1px solid var(--trait); }
.etiquettes-prix small { font: 600 12px/1.2 var(--corps); color: var(--encre-2); }
.etiquettes-prix b { font: 700 1.2rem/1.2 var(--titre); color: var(--encre); }
.etiquettes-prix span { font-size: 11.5px; color: var(--encre-2); }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 16px; }
.mini-stats > div { padding: 10px 12px; border-radius: 14px; background: var(--glace); }
.mini-stats dt { font-size: 12px; color: var(--encre-2); }
.mini-stats dd { margin: 2px 0 0; font: 700 1.25rem/1.1 var(--titre); }
.mini-stats.grands { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0 0 20px; }
.mini-stats.grands dd { font-size: 1.7rem; }

/* Économie, emploi */
.offres { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.offres li { padding: 10px 0; border-bottom: 1px solid var(--glace-2); }
.offres li:last-child { border-bottom: 0; }
.offres a, .offres b { font-weight: 600; color: var(--encre) !important; }
.offres a:hover { color: var(--azur-700) !important; }
.offres small { display: block; font-size: 12.5px; color: var(--encre-2); margin-top: 2px; }

/* Sport */
.sport-droite h3 { font-size: 17px; margin: 0 0 12px; }
.sport-droite h3:not(:first-child) { margin-top: 20px; }
.clubs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.clubs li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 14px 16px; }
.clubs b { font: 600 15.5px/1.3 var(--titre); width: 100%; }
.clubs small { font-size: 12.5px; color: var(--encre-2); }
.club-liens { display: flex; gap: 14px; width: 100%; font-weight: 600; font-size: 14px; }
.club-liens a { min-height: 32px; display: inline-flex; align-items: center; }

/* Plan */
.plan-cadre { position: relative; border-radius: var(--rayon-xl); overflow: hidden; box-shadow: var(--ombre-jour-forte); min-height: 300px; }
.plan-carte { width: 100%; height: clamp(360px, 52vw, 540px); background: #05090f; }
.plan-couches { position: absolute; left: 14px; top: 14px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 80px); }
.couche { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--trait-nuit); background: rgba(5, 10, 20, .82); color: var(--texte-nuit-2); font: 600 13px/1 var(--corps); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.couche i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.couche[aria-pressed="false"] { opacity: .55; }
.couche[aria-pressed="false"] i { box-shadow: none; background: transparent; border: 1.5px solid var(--c); }
.plan-attente { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; font-size: 13.5px; color: var(--texte-nuit-3); pointer-events: none; }
.plan-cadre.est-pret .plan-attente { display: none; }
.plan-cadre.est-vide .plan-attente::before { content: "Plan indisponible pour le moment. "; }
.maplibregl-popup-content { font: 500 13.5px/1.35 var(--corps); color: var(--encre); border-radius: 12px; padding: 8px 12px; box-shadow: var(--ombre-jour-forte); }
.maplibregl-ctrl-attrib { background: rgba(5, 10, 20, .82) !important; color: var(--texte-nuit-3); }
.maplibregl-ctrl-attrib a { color: var(--azur-300) !important; }
.maplibregl-ctrl-attrib-button { filter: invert(1); }
.maplibregl-ctrl-group { background: rgba(5, 10, 20, .86) !important; border: 1px solid var(--trait-nuit); }
.maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1) hue-rotate(180deg); }

/* Voisines */
.voisines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.voisine { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.voisine a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: var(--encre) !important; min-height: 32px; }
.voisine a b { font: 600 15.5px/1.25 var(--titre); }
.voisine a span { font-size: 13px; color: var(--encre-2); white-space: nowrap; }
.voisine a:hover b { color: var(--azur-700); }
.voisine .barre-rail { height: 5px; }
.voisine-comparer { align-self: flex-start; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--trait); background: var(--glace); font: 600 12.5px/1 var(--corps); color: var(--azur-700); }
.voisine-comparer:hover { border-color: var(--azur-300); background: var(--azur-50); }
.colophon { margin: 36px 0 0; padding-top: 18px; border-top: 1px solid var(--trait); font-size: 13px; color: var(--encre-2); }

/* Comparateur et partage */
dialog.comparateur, dialog.partage {
  width: min(880px, calc(100vw - 24px)); max-height: min(88vh, 940px); padding: 0; border: 1px solid var(--trait-nuit); border-radius: var(--rayon-xl);
  background: radial-gradient(120% 70% at 50% 0%, #0d2147 0%, #060c18 55%, #03060d 100%); color: var(--texte-nuit); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .95);
}
dialog.partage { width: min(560px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(3, 6, 13, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog[open] { animation: s3-pop .25s var(--ease); }
.comparateur-tete { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 12px 24px; background: linear-gradient(180deg, #0b1d3f 70%, rgba(11, 29, 63, 0)); }
.comparateur-tete h2 { font-size: 1.35rem; color: #fff; }
.fermer { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--trait-nuit); background: var(--verre); color: var(--texte-nuit); }
.fermer:hover { background: var(--verre-fort); }
.comparateur-recherche { width: auto; margin: 0 24px 6px; }
.comparateur-corps { padding: 8px 24px 24px; outline: none; }
.comparateur-vide { margin: 18px 0; color: var(--texte-nuit-2); }
.duel-tete { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin: 12px 0 18px; }
.duel-tete b { display: block; font: 700 1.3rem/1.15 var(--titre); color: #fff; }
.duel-tete span { font-size: 13px; color: var(--texte-nuit-3); }
.duel-a { text-align: right; border-right: 3px solid var(--azur-400); padding-right: 12px; }
.duel-b { border-left: 3px solid var(--ambre-400); padding-left: 12px; }
.duel-vs { padding: 6px 12px; border-radius: 999px; background: var(--verre); border: 1px solid var(--trait-nuit); font: 600 12.5px/1 var(--corps); color: var(--texte-nuit-2); white-space: nowrap; }
.duel-groupe h3 { margin: 18px 0 8px; font: 600 12px/1 var(--corps); letter-spacing: .14em; text-transform: uppercase; color: var(--texte-nuit-3); text-align: center; }
.duel { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.duel li { display: grid; grid-template-columns: minmax(70px, auto) 1fr 1fr minmax(70px, auto); grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); }
.duel-lib { grid-column: 1 / -1; text-align: center; font-size: 13px; color: var(--texte-nuit-2); margin-bottom: 4px; }
.duel-val { font: 700 15px/1 var(--titre); color: #fff; white-space: nowrap; }
.duel-val.a { text-align: right; }
.duel-barre { display: flex; height: 8px; border-radius: 999px; background: rgba(124, 168, 240, .1); overflow: hidden; }
.duel-barre.a { justify-content: flex-end; }
.duel-barre i { display: block; height: 100%; border-radius: inherit; }
.duel-barre.a i { background: linear-gradient(270deg, var(--azur-300), var(--azur-600)); }
.duel-barre.b i { background: linear-gradient(90deg, var(--ambre-300), var(--ambre-600)); }
.duel-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.duel-etat, .partage-etat { font-size: 13.5px; color: #6ee7a8; }
.duel-source { margin: 14px 0 0; font-size: 12px; color: var(--texte-nuit-3); }
.partage-resume { margin: 4px 24px 16px; padding: 14px 16px; border-radius: 16px; background: var(--verre); border: 1px solid var(--trait-nuit); font-size: 14px; line-height: 1.55; color: var(--texte-nuit-2); }
.partage-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 24px; }
.partage-etat { margin: 12px 24px 22px; min-height: 1.3em; }

/* ── Pages simples (404, alertes) ──────────────────────────────── */
.page-simple { min-height: min(86svh, 820px); display: grid; place-items: center; padding-bottom: 64px; }
.page-simple .s3-enveloppe { max-width: 720px; text-align: center; padding-top: 48px; }
.page-simple .s3-embleme { margin: 0 auto 18px; }
.page-simple-corps .s3-pied { margin-top: 0; }
.page-simple h1 { font-size: clamp(2rem, 5vw, 3.4rem); color: #fff; margin: 18px 0 14px; }
.page-simple .s3-chapeau { margin: 0 auto 26px; }
.page-simple .s3-recherche-grande { margin: 0 auto; text-align: left; }
.page-simple .gros-chiffre { font: 700 clamp(4rem, 14vw, 9rem)/1 var(--affiche); letter-spacing: -.04em; background: linear-gradient(100deg, var(--azur-300), var(--azur-500) 50%, var(--ambre-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.abonnements { list-style: none; margin: 0 auto 26px; padding: 0; display: grid; gap: 8px; max-width: 520px; text-align: left; }
.abonnements li { padding: 12px 16px; border-radius: 14px; background: var(--verre); border: 1px solid var(--trait-nuit); color: var(--texte-nuit-2); }
.abonnements b { color: #fff; }

/* ── Adaptations ───────────────────────────────────────────────── */
@media (pointer: coarse) {
  .region-deps a, .s3-pastille, .s3-chapitres a, .repere-vues button, .voisine-comparer, .couche, .s3-btn-petit, .onglets button, .lettres a { min-height: 44px; }
  .lettres a { min-width: 44px; }
}
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .heros-fiche-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
  .chiffres-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alertes-bandeau { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .heros-fiche { min-height: 0; }
  .heros-fiche-grille { grid-template-columns: 1fr; align-items: start; padding-top: 18px; }
  .heros-fiche-fond img { object-position: center 40%; }
  .heros-fiche-fond::after { background: linear-gradient(180deg, rgba(3, 6, 13, .55) 0%, rgba(3, 6, 13, .55) 30%, rgba(3, 6, 13, .92) 60%, rgba(3, 6, 13, 1) 100%); }
  .repere .nuit-scene { height: min(78vw, 340px); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grille-2 { grid-template-columns: 1fr; }
  .canaux { grid-template-columns: 1fr; }
  .canaux .s3-btn { width: 100%; }
  .conseil { grid-template-columns: 1fr; }
  .tv-bandeau { grid-template-columns: 1fr; text-align: left; }
  .heros-dep { min-height: 0; }
  .heros-dep::before { background: linear-gradient(0deg, rgba(3, 6, 13, .96) 0%, rgba(3, 6, 13, .85) 50%, rgba(3, 6, 13, 0) 66%); }
  .heros-dep-grille { grid-template-columns: 1fr; gap: 0; }
  .heros-dep-cadre { order: -1; min-height: 0; height: min(86vw, 400px); margin: 4px 0 0; }
  .heros-dep-texte { padding: 0 0 28px; }
  .heros-dep-texte h1 { margin: 12px 0 18px; }
  .taille { grid-template-columns: 1fr; gap: 6px; }
  .heros-nuit { min-height: 0; }
  .heros-nuit::before { background: radial-gradient(70% 40% at 50% 26%, rgba(47, 139, 255, .14), transparent 70%), linear-gradient(0deg, rgba(3, 6, 13, .96) 0%, rgba(3, 6, 13, .88) 46%, rgba(3, 6, 13, 0) 62%); }
  .heros-grille { grid-template-columns: 1fr; gap: 0; align-items: start; }
  .heros-cadre { order: -1; min-height: 0; height: min(98vw, 470px); margin: 6px 0 0; }
  .heros-texte { padding: 0 0 18px; }
  .heros-texte .s3-surtitre { margin-bottom: 14px; }
  .heros-pied { flex-direction: column; align-items: flex-start; }
  .heros-suite { display: none; }
  .region-outremer { grid-column: auto; }
  .region-outremer .region-ciel { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .tuile { min-height: 150px; padding: 14px; border-radius: 18px; }
  .tuile-meteo { grid-column: 1 / -1; }
  .tuile-titre { font-size: 11px; letter-spacing: .05em; }
  .tuile-valeur { font-size: 1.8rem; }
  .jours-mini { gap: 6px; }
  .jour-mini { padding: 8px; column-gap: 6px; }
  .jour-mini svg.i { width: 26px; height: 26px; }
  .jour-mini b { font-size: 1.3rem; }
  .identite-actions .s3-btn { flex: 1 1 auto; }
  .identite-chiffres { gap: 12px 22px; }
  .fil-actu { grid-template-columns: 1fr; }
  .duel li { grid-template-columns: minmax(56px, auto) 1fr 1fr minmax(56px, auto); padding: 8px 6px; }
  .duel-val { font-size: 13.5px; }
  .comparateur-corps, .comparateur-tete { padding-left: 16px; padding-right: 16px; }
  .comparateur-recherche { margin: 0 16px 6px; }
  .horaires li { grid-template-columns: 1fr; gap: 2px; }
  .vers-alertes { grid-template-columns: auto 1fr; }
  .vers-alertes > svg.i:last-child { display: none; }
  .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prix-mini span:nth-child(3) { display: none; }
  .en-cartes thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .en-cartes, .en-cartes tbody { display: block; }
  .en-cartes tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 14px 16px; border-bottom: 1px solid var(--glace-2); }
  .en-cartes tr[hidden] { display: none; }
  .en-cartes td { display: block; padding: 0; border: 0; text-align: left !important; white-space: normal; }
  .en-cartes td:first-child { grid-column: 1 / -1; font-weight: 600; }
  .bloc-table h3 .aide { display: none; }
  .en-cartes td[data-intitule]::before { content: attr(data-intitule); display: block; font: 600 10.5px/1.3 var(--corps); letter-spacing: .06em; text-transform: uppercase; color: var(--encre-2); margin-bottom: 2px; }
  .en-cartes td:first-child::before { display: none; }
  .en-cartes td:empty { display: none; }
  .en-cartes td:has(.voir-carte) { grid-column: 2; justify-self: end; align-self: end; }
  .s3-table-cadre:has(.en-cartes) { overflow: visible; }
  .s3-barre .s3-recherche { flex: none; width: 44px; margin-left: auto; }
  .s3-barre .s3-champ input { padding: 0 0 0 42px; color: transparent; cursor: pointer; }
  .s3-barre .s3-champ input::placeholder { color: transparent; }
  .s3-barre .s3-recherche:focus-within { position: absolute; left: var(--goutiere); right: calc(var(--goutiere) + 54px); width: auto; z-index: 5; }
  .s3-barre .s3-recherche:focus-within .s3-champ input { padding-right: 14px; color: #fff; cursor: text; background: rgba(10, 22, 46, .98); }
  .s3-barre .s3-recherche:focus-within .s3-champ input::placeholder { color: var(--texte-nuit-3); }
  .heros-texte .s3-surtitre { font-size: 10.5px; letter-spacing: .1em; }
  .themes-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .theme { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .theme .s3-embleme { width: 46px; height: 46px; border-radius: 14px; }
  .theme .s3-embleme svg.i { width: 22px; height: 22px; }
  .theme h3 { font-size: 14.5px; }
  .theme > div { width: 100%; }
  .region-ciel { aspect-ratio: 2 / 1; }
}
@media (max-width: 720px) {
  .villes-tours { overflow-x: auto; overflow-y: hidden; gap: 5px; padding-left: 4px; padding-right: 40px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .villes-tours::-webkit-scrollbar { display: none; }
  .villes-tours::after { width: 1100px; right: auto; }
  .villes-tours li { flex: 0 0 46px; scroll-snap-align: start; }
  .tour-valeur { font-size: 10.5px; }
  .chiffres-grille { gap: 10px; }
  .chiffres-grille .s3-verre { padding: 16px; }
  .chiffres-grille .s3-chiffre-valeur { font-size: 1.7rem; }
  .theme { padding: 12px 14px 12px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .heros-fiche-fond img { animation: none; }
  .heros-suite svg.i { animation: none; }
  .villes-tours .tour-barre { animation: none !important; transform: none !important; }
}
