/* Auxer.re — refonte 2026. Mobile d'abord, sans framework.
   Thème clair (maquette C) sur mobile ; thème sombre (maquette B) sur grand écran
   et en mode sombre. Les deux partagent les mêmes variables. */
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
	--bleu: #0f5f8c;          /* accent pour le texte (bleu du logo, assombri) */
	--bleu-2: #1474a8;        /* accent : liens, boutons pleins */
	--bleu-clair: #e3f0f8;
	--bordeaux: #b4380a;      /* urgences, dates */
	--nuit: #0e2433;          /* en-tête */
	--sur-accent: #fff;       /* texte posé sur l'accent */
	--fond: #f3f5f7;
	--surface: #ffffff;
	--surface-2: #e8edf1;
	--texte: #14212b;
	--texte-2: #52606b;
	--bord: #dce3e9;
	--ok: #1d7a46;
	--ok-fond: #e3f4ea;
	--off: #7a5a1d;
	--off-fond: #f6eedd;
	--rayon: 14px;
	--ombre: none;
	--police: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--police-titre: "Figtree", system-ui, sans-serif;
	--onglets: 64px;
	color-scheme: light;
}
@media (prefers-color-scheme: dark), (min-width: 1000px) {
	:root {
		--bleu: #f2b65a;
		--bleu-2: #f2b65a;
		--bleu-clair: #33291a;
		--bordeaux: #f0844a;
		--nuit: #111417;
		--sur-accent: #1a1206;
		--fond: #111417;
		--surface: #1b1f24;
		--surface-2: #2a3138;
		--texte: #eef0f2;
		--texte-2: #a9b2bb;
		--bord: #2c333a;
		--ok: #7fd6a2;
		--ok-fond: #12301f;
		--off: #e6c27a;
		--off-fond: #33280f;
		color-scheme: dark;
	}
}
@media (min-width: 1000px) {
	:root { --police-titre: "Bricolage Grotesque", "Figtree", system-ui, sans-serif; --onglets: 0px; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font: 16px/1.5 var(--police);
	color: var(--texte);
	background: var(--fond);
	overflow-x: clip;
	padding-bottom: calc(var(--onglets) + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
a { color: var(--bleu-2); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--texte-2); }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--bleu-2); outline-offset: 2px; border-radius: 6px; }

/* En-tête */
.entete { background: var(--nuit); color: #fff; }
.entete-in {
	max-width: 1240px; margin: 0 auto; padding: 14px 16px 16px;
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
}
.logo { display: flex; margin-right: auto; }
.logo img { height: 42px; width: auto; }
.nav-haut { display: none; }
.entete-recherche { position: relative; flex: 1 1 100%; display: flex; }
.entete-recherche input {
	width: 100%; height: 48px; padding: 0 52px 0 16px; border: 0; border-radius: 12px;
	background: #fff; color: #14212b; font: inherit; font-size: 16px;
}
.entete-recherche input::placeholder { color: #66737e; }
.entete-recherche button {
	position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; border: 0; border-radius: 10px;
	background: transparent; color: #14212b; display: grid; place-items: center; cursor: pointer;
}
.btn-urgence { display: none; }

@media (min-width: 1000px) {
	.entete { position: sticky; top: 0; z-index: 30; background: rgba(17, 20, 23, .94); border-bottom: 1px solid var(--bord); backdrop-filter: blur(8px); }
	.entete-in { flex-wrap: nowrap; padding: 10px 24px; gap: 20px; }
	.logo { margin-right: 0; }
	.logo img { height: 44px; }
	.nav-haut { display: flex; flex: 1; gap: 2px; }
	.nav-haut a { color: var(--texte); text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px; border-radius: 10px; }
	.nav-haut a:hover { background: var(--surface); }
	.nav-haut a[aria-current="page"] { color: var(--bleu); }
	.entete-recherche { flex: 0 1 260px; }
	.entete-recherche input { height: 44px; background: var(--surface); color: var(--texte); border: 1px solid var(--bord); border-radius: 999px; font-size: 15px; }
	.entete-recherche input::placeholder { color: var(--texte-2); }
	.entete-recherche button { top: 0; color: var(--texte); border-radius: 999px; }
	.btn-urgence {
		display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px;
		background: #c2410c; color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap;
	}
	.btn-urgence:hover { background: #a3360a; }
}

/* Barre d'onglets (mobile) */
.onglets {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
	display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
	background: var(--surface); border-top: 1px solid var(--bord);
	padding: 4px 4px env(safe-area-inset-bottom);
}
.onglets a {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	min-height: 56px; color: var(--texte-2); font-size: 12px; font-weight: 600; text-decoration: none;
}
.onglets a[aria-current="page"] { color: var(--bleu-2); font-weight: 700; }
.onglets .onglet-urgence { color: var(--bordeaux); font-weight: 700; }
@media (min-width: 1000px) { .onglets { display: none; } }

/* Structure */
.contenu { max-width: 1240px; margin: 0 auto; padding: 20px 16px 40px; min-width: 0; }
@media (min-width: 1000px) { .contenu { padding: 32px 24px 64px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Titres */
.titre-page { font-family: var(--police-titre); font-weight: 800; font-size: clamp(28px, 5vw, 44px); letter-spacing: -.02em; margin-top: 4px; }
.intro { color: var(--texte-2); margin-top: -4px; max-width: 60ch; }
.retour { display: inline-block; margin-bottom: 8px; text-decoration: none; font-weight: 600; }
.section-titre { font-family: var(--police-titre); font-weight: 800; letter-spacing: -.01em; font-size: 22px; margin: 32px 0 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-titre a { font-size: 14px; font-weight: 600; text-decoration: none; }

/* Boutons, badges, puces */
.btn {
	display: inline-flex; align-items: center; gap: 6px;
	min-height: 44px; padding: 0 16px; border-radius: 999px;
	border: 1px solid var(--bord); background: var(--surface); color: var(--texte);
	font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--bleu-2); }
.btn-ghost { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn-plein { background: var(--bleu-2); border-color: var(--bleu-2); color: var(--sur-accent); }
.btn-geo.actif { background: var(--bleu-clair); border-color: var(--bleu-2); color: var(--bleu); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.badge-ok { background: var(--ok-fond); color: var(--ok); }
.badge-off { background: var(--off-fond); color: var(--off); }
.badge-part { background: var(--bleu-clair); color: var(--bleu); }
.badge-garde { background: var(--bordeaux); color: #fff; }
.chip {
	min-height: 36px; padding: 0 14px; border-radius: 999px;
	border: 1px solid var(--bord); background: var(--surface); color: var(--texte);
	font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--bleu-2); border-color: var(--bleu-2); color: var(--sur-accent); font-weight: 700; }

/* Outils de liste */
.outils { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 10px; }
.recherche { flex: 1 1 220px; }
.recherche input {
	width: 100%; min-height: 44px; padding: 0 14px; border-radius: 12px;
	border: 1px solid var(--bord); background: var(--surface); color: var(--texte); font: inherit;
}
.filtres { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: thin; }
.compteur { font-size: 14px; margin: 4px 0 8px; }
.vide { padding: 24px; text-align: center; color: var(--texte-2); }

/* Grilles de cartes */
.grille { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grille { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1300px) { .grille { grid-template-columns: repeat(3, 1fr); } }
.carte {
	display: flex; gap: 12px; padding: 12px;
	background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon);
	box-shadow: var(--ombre); position: relative; min-width: 0;
}
.carte[hidden] { display: none; }
.carte-img {
	width: 84px; height: 84px; flex: none; object-fit: cover; border-radius: 10px; background: var(--bleu-clair);
}
.carte-picto { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--bleu-clair); }
.carte-picto .picto { width: 36px; height: 36px; }
.carte-img-vide { display: grid; place-items: center; font-size: 30px; font-weight: 800; color: var(--bleu); }
.carte-corps { min-width: 0; flex: 1; }
.carte h3 { font-size: 17px; margin: 0 0 4px; }
.carte h3 a { color: var(--texte); text-decoration: none; }
.carte h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--rayon); }
.carte h3 a:hover { color: var(--bleu-2); }
.carte-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; margin: 0 0 4px; color: var(--texte-2); }
.adresse { font-size: 14px; color: var(--texte-2); margin: 0; }
.genres { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; }
.genres span { font-size: 12px; background: var(--fond); border: 1px solid var(--bord); padding: 1px 8px; border-radius: 999px; color: var(--texte-2); }
.carte-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; position: relative; z-index: 1; }
.tel { font-weight: 600; white-space: nowrap; }

/* Tuiles (accueil, annuaires) */
.tuiles { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .tuiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .tuiles { grid-template-columns: repeat(4, 1fr); } }
.tuile {
	display: flex; flex-direction: column; gap: 2px;
	padding: 14px; min-height: 96px;
	background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon);
	color: var(--texte); text-decoration: none; box-shadow: var(--ombre);
}
.tuile:hover { border-color: var(--bleu-2); }
.tuile .ico { margin-bottom: 6px; }
.tuile .picto { width: 40px; height: 40px; }
.tuile strong { font-size: 15px; }
.tuile small { color: var(--texte-2); font-size: 13px; line-height: 1.35; }
.tuile-img { padding: 0; overflow: hidden; }
.tuile-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.tuile-img strong { padding: 10px 12px 12px; }

/* Accueil — sur mobile l'ordre suit la maquette C, sur grand écran la maquette B */
.accueil { display: flex; flex-direction: column; }
.accueil > section { min-width: 0; }
.accueil .section-titre { margin-top: 28px; }
.aujourdhui { order: 1; }
.aujourdhui .section-titre { margin-top: 0; }
.bloc-agenda { order: 2; }
.raccourcis { order: 3; }
.hero { order: 4; }
.bloc-cine { order: 5; }
.bloc-adresses { order: 6; }
.bloc-aja { order: 7; }
.bloc-timelapse { order: 8; }
.aussi { order: 9; display: none; }

.hero {
	position: relative; overflow: hidden; margin-top: 28px;
	border-radius: var(--rayon); background: var(--nuit); color: #fff;
	min-height: 200px; display: flex; align-items: flex-end;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 80%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,20,23,0) 35%, rgba(17,20,23,.9) 100%); }
.hero-corps { position: relative; z-index: 1; width: 100%; padding: 16px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hero-texte { display: flex; flex-direction: column; gap: 6px; }
.hero h1 { margin: 0; font-family: var(--police-titre); font-weight: 800; font-size: 24px; letter-spacing: -.02em; line-height: 1; }
.hero-direct { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.hero-direct::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #f2b65a; }
.hero-meteo { display: none; color: #fff; text-decoration: none; font-size: 15px; color: #c5cbd1; }
.hero-meteo b { display: block; font-size: 30px; color: #fff; line-height: 1.1; }

.auj-cartes { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auj {
	display: flex; flex-direction: column; gap: 2px; padding: 14px; min-width: 0;
	background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon);
	color: var(--texte); text-decoration: none;
}
.auj:hover { border-color: var(--bleu-2); }
.auj-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--texte-2); }
.auj-gros { font-size: 28px; font-weight: 800; line-height: 1.15; }
.auj-moyen { display: block; font-size: 17px; font-weight: 700; line-height: 1.25; }
.auj-detail { font-size: 14px; color: var(--texte-2); }
.auj-large { grid-column: span 2; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.auj-action { flex: none; padding: 10px 16px; border-radius: 999px; background: var(--bleu-2); color: var(--sur-accent); font-weight: 700; font-size: 14px; }
.auj-ecran { display: none; }

.section-titre-outils { flex-wrap: wrap; align-items: center; }
.section-titre-outils h2 { margin: 0; font-size: inherit; }
.section-titre-outils .filtres { padding: 0; }
.evts { display: grid; gap: 10px; }
.evt {
	display: flex; gap: 12px; align-items: center; padding: 10px; min-width: 0;
	background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon);
	color: var(--texte); text-decoration: none;
}
.evt[hidden] { display: none; }
.evt:hover { border-color: var(--bleu-2); }
.evt-img { position: relative; width: 64px; height: 64px; flex: none; border-radius: 10px; overflow: hidden; }
.evt-img img, .actu-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.actu-img { position: relative; width: 96px; height: 64px; flex: none; border-radius: 8px; overflow: hidden; }

/* Pictogrammes de catégorie : pastille colorée, tracé blanc (sous l'image, visible si elle manque) */
.pcat { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: #475569; }
.pcat svg { width: 46%; height: 46%; max-width: 56px; max-height: 56px; }
.pcat-concerts { background: linear-gradient(135deg, #7c3aed, #4c1d95); }
.pcat-spectacles { background: linear-gradient(135deg, #c2410c, #7c2d12); }
.pcat-expositions { background: linear-gradient(135deg, #0e7490, #164e63); }
.pcat-sport { background: linear-gradient(135deg, #15803d, #14532d); }
.pcat-marches-et-salons { background: linear-gradient(135deg, #b45309, #78350f); }
.pcat-festivals { background: linear-gradient(135deg, #be185d, #831843); }
.pcat-conferences { background: linear-gradient(135deg, #4338ca, #312e81); }
.pcat-ateliers { background: linear-gradient(135deg, #a16207, #713f12); }
.pcat-visites { background: linear-gradient(135deg, #0f766e, #134e4a); }
.pcat-culture { background: linear-gradient(135deg, #1d4ed8, #1e3a8a); }
.pcat-loisirs { background: linear-gradient(135deg, #9333ea, #581c87); }
.pcat-aja { background: linear-gradient(135deg, #1474a8, #0e2433); }
.pcat-agenda { background: linear-gradient(135deg, #475569, #1e293b); }
.evt-corps { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.evt-quand { font-size: 13px; font-weight: 700; color: var(--bleu); }
.evt strong { font-size: 16px; line-height: 1.25; }
.evt-sous { font-size: 14px; color: var(--texte-2); }
.lien-suite { font-size: 15px; font-weight: 600; margin: 12px 0 0; }

.defile { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.film { flex: 0 0 130px; display: flex; flex-direction: column; gap: 6px; color: var(--texte); text-decoration: none; }
.film img, .film-vide { width: 130px; aspect-ratio: 2 / 3; height: auto; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.film strong { font-size: 15px; line-height: 1.25; }
.film small { font-size: 13px; color: var(--texte-2); font-variant-numeric: tabular-nums; }
.film:hover strong { color: var(--bleu); }

.adresses { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.adr {
	display: flex; flex-direction: column; gap: 4px; padding: 18px;
	background: var(--surface); border: 1px solid var(--bord); border-radius: 16px;
	color: var(--texte); text-decoration: none;
}
.adr:hover { border-color: var(--bleu-2); }
.adr strong { font-family: var(--police-titre); font-size: 20px; }
.adr span { font-size: 15px; color: var(--texte-2); }

.raccourcis-grille { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raccourcis-grille a {
	display: flex; align-items: center; justify-content: center; text-align: center; min-height: 56px; padding: 6px;
	background: var(--surface); border: 1px solid var(--bord); border-radius: 12px;
	color: var(--texte); font-weight: 600; font-size: 14px; text-decoration: none;
}

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--rayon); overflow: hidden; background: #111; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-legende { font-size: 14px; margin: 8px 0 0; }

.aussi { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--bord); }
.aussi h2 { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-2); margin-bottom: 14px; }
.aussi-liens { display: flex; flex-wrap: wrap; gap: 10px 24px; font-weight: 600; }
.aussi-liens a { text-decoration: none; }
.aussi-liens a:hover { text-decoration: underline; }

@media (min-width: 1000px) {
	.accueil .hero, .aujourdhui, .bloc-agenda, .bloc-cine, .bloc-adresses, .bloc-aja, .bloc-timelapse, .aussi { order: 0; }
	.raccourcis { display: none; }
	.aussi { display: block; }
	.accueil .section-titre { margin: 36px 0 12px; font-size: 26px; }
	.accueil .section-titre a { font-family: var(--police); }
	/* Grand écran : pas de bloc « Aujourd'hui » (la météo est sur le bandeau), l'agenda suit directement */
	.aujourdhui { display: none; }
	.bloc-agenda .section-titre { margin-top: 28px; }

	/* Bandeau compact : titre sur une ligne */
	.hero {
		margin: -32px calc(50% - 50vw) 0; border-radius: 0; min-height: 400px; align-items: center;
	}
	/* Texte posé au milieu de l'image : voile léger partout, plus dense au centre */
	.hero::after { background: linear-gradient(180deg, rgba(17,20,23,.15) 0%, rgba(17,20,23,.45) 50%, rgba(17,20,23,.7) 100%); }
	.hero-sans-photo { min-height: 200px; }
	.hero-corps { max-width: 1240px; margin: 0 auto; padding: 24px; gap: 24px; flex-wrap: nowrap; align-items: center; }
	.hero h1, .hero-direct, .hero-meteo { text-shadow: 0 2px 12px rgba(0,0,0,.45); }
	.hero-texte { min-width: 0; }
	.hero h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
	.hero-direct { font-size: 14px; }
	.hero-meteo { display: block; }

	.auj-cartes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
	.auj { padding: 12px 16px; }
	.auj-gros { font-size: 24px; }
	.auj-large { grid-column: auto; flex-direction: column; align-items: flex-start; justify-content: flex-start; }
	.auj-action { display: none; }
	.auj-ecran { display: flex; }

	.evts { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
	.evt { flex-direction: column; align-items: stretch; padding: 0; gap: 0; overflow: hidden; border: 0; border-radius: 14px; }
	.evt-img { width: 100%; height: 120px; border-radius: 0; }
	.evt-corps { padding: 10px 14px 14px; gap: 2px; }
	.evt-quand { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
	.evt strong { font-family: var(--police-titre); font-size: 18px; line-height: 1.15; }
	.evt-sous { font-size: 13px; }
	.evt:hover strong { color: var(--bleu); }

	.film { flex-basis: 120px; }
	.film img, .film-vide { width: 120px; }
	.adresses { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.adr { border: 0; padding: 14px 16px; }
	.adr strong { font-size: 19px; }
	.aussi { margin-top: 36px; padding-top: 20px; }
}

/* Listes d'actus */
.actus { display: grid; gap: 10px; }
@media (min-width: 800px) { .actus { grid-template-columns: repeat(2, 1fr); } }
.actu {
	display: flex; gap: 12px; align-items: center; padding: 10px;
	background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon);
	color: var(--texte); text-decoration: none;
}
.actu:hover { border-color: var(--bleu-2); }
.actu > img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; background: var(--bleu-clair); }

.actu strong { display: block; font-size: 15px; line-height: 1.3; }
.actu small { color: var(--texte-2); }

/* Fiche */
.fiche { display: grid; gap: 16px; }
@media (min-width: 900px) { .fiche { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.bloc { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 16px; box-shadow: var(--ombre); }
.bloc h2 { font-size: 17px; }
.galerie { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.galerie img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.galerie img:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
.horaires { border-collapse: collapse; width: 100%; font-size: 15px; }
.horaires th { text-align: left; font-weight: 500; color: var(--texte-2); padding: 4px 12px 4px 0; width: 7.5em; }
.horaires td { padding: 4px 0; }
.horaires tr.auj th, .horaires tr.auj td { color: var(--texte); font-weight: 700; }
.infos-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.infos-liste li { display: flex; gap: 10px; }

/* Urgences */
.urgences { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .urgences { grid-template-columns: repeat(4, 1fr); } }
.urgence {
	display: flex; flex-direction: column; align-items: flex-start; padding: 14px;
	border-radius: var(--rayon); text-decoration: none; color: #fff; background: var(--bordeaux);
}
.urgence b { font-size: 34px; line-height: 1; }
.urgence span { font-size: 14px; opacity: .95; }
@media (prefers-color-scheme: dark), (min-width: 1000px) { .urgence { color: #1a0710; } }
.liste-num { list-style: none; padding: 0; margin: 0; }
.liste-num li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bord); flex-wrap: wrap; }
.liste-num li:last-child { border-bottom: 0; }
.liste-num small { display: block; color: var(--texte-2); }
.reflexes { display: grid; gap: 10px; }
.reflexes details { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 12px 16px; }
.reflexes summary { font-weight: 700; cursor: pointer; }

/* Tableaux simples */
.tableau { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--bord); }
.tableau th, .tableau td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--bord); vertical-align: top; }
.tableau th { font-size: 13px; color: var(--texte-2); font-weight: 600; background: var(--fond); }
.tableau tr:last-child td { border-bottom: 0; }

/* Météo */
.meteo-now { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.meteo-now .temp { font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.meteo-now img { width: 80px; height: 80px; }
.previsions { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.prevision { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 10px; text-align: center; }
.prevision img { width: 56px; height: 56px; margin: 0 auto; }
.prevision .tmax { font-weight: 800; }
.prevision .tmin { color: var(--texte-2); }

.alerte { padding: 12px 14px; border-radius: 12px; background: var(--off-fond); color: var(--texte); border: 1px solid var(--bord); margin: 12px 0; }
.alerte-info { background: var(--bleu-clair); }

/* Pied */
.pied { background: var(--nuit); color: #c5cbd1; font-size: 14px; }
.pied-in { max-width: 1240px; margin: 0 auto; padding: 28px 16px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.pied img { height: 34px; width: auto; margin-right: auto; }
.pied p { margin: 0; }
.pied a { color: #fff; }
@media (min-width: 1000px) { .pied { border-top: 1px solid var(--bord); } .pied-in { padding: 32px 24px; } .pied a { color: var(--bleu); } }

/* Le Silex */
.silex { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .silex { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1300px) { .silex { grid-template-columns: repeat(3, 1fr); } }
.silex-mois { grid-column: 1 / -1; font-size: 18px; text-transform: uppercase; letter-spacing: .04em; color: var(--bleu); margin: 16px 0 0; }
.silex-mois[hidden] { display: none; }
.silex-evt { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--bleu-2); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.silex-evt[hidden] { display: none; }
.silex-visuel { position: relative; display: block; aspect-ratio: 600 / 427; background: #111; }
.silex-visuel img { width: 100%; height: 100%; object-fit: cover; }
.silex-date { position: absolute; top: 10px; left: 10px; background: var(--bordeaux); color: #fff; border-radius: 10px; padding: 4px 10px; text-align: center; font-size: 12px; text-transform: uppercase; line-height: 1.1; }
.silex-date b { display: block; font-size: 22px; }
.silex-corps { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.silex-corps h3 { font-size: 18px; margin: 2px 0 6px; }
.silex-quand { margin: 0; font-size: 14px; font-weight: 700; color: var(--bordeaux); text-transform: capitalize; }
.silex-avec { margin: 6px 0 0; font-size: 14px; }
.silex-note { margin: 4px 0 0; font-size: 13px; color: var(--ok); font-weight: 600; }
.silex-corps .carte-actions { margin-top: auto; padding-top: 10px; }

/* Collecte des poubelles */
.pastille { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.pastille-om { background: #4b1a4f; }
.pastille-tri { background: #ffe500; border: 1px solid #d6c000; }
.ligne-moi th, .ligne-moi td { background: var(--bleu-clair); }
.tableau .passe { color: var(--texte-2); text-decoration: line-through; opacity: .6; }
.tableau .reporte { font-weight: 700; color: var(--bordeaux); }

/* Carburants */
.carbu-choix { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .carbu-choix { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .carbu-choix { grid-template-columns: repeat(6, 1fr); } }
.carbu-tuile {
	display: flex; flex-direction: column; gap: 2px; padding: 10px 12px;
	background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon);
	color: var(--texte); text-decoration: none; box-shadow: var(--ombre);
}
.carbu-tuile:hover { border-color: var(--bleu-2); }
.carbu-tuile.actif { border-color: var(--bleu-2); background: var(--bleu-clair); box-shadow: inset 0 0 0 1px var(--bleu-2); }
.carbu-tuile strong { font-size: 15px; }
.carbu-min { font-size: 20px; font-weight: 800; color: var(--ok); font-variant-numeric: tabular-nums; }
.carbu-tuile small { font-size: 12px; color: var(--texte-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carbu-gros { font-size: 20px; font-weight: 800; color: var(--texte); font-variant-numeric: tabular-nums; }
.carbu-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
.carbu-table th, .carbu-table td { padding: 3px 6px 3px 0; text-align: left; border-bottom: 1px solid var(--bord); }
.carbu-table tr:last-child th, .carbu-table tr:last-child td { border-bottom: 0; }
.carbu-table th { font-weight: 600; }
.carbu-table td.muted { font-size: 12px; text-align: right; padding-right: 0; }
.carbu-prix { font-variant-numeric: tabular-nums; font-weight: 700; }
.carbu-best { color: var(--ok); }
.carbu-table .carbu-actif th, .carbu-table .carbu-actif td { background: var(--bleu-clair); }

/* Cinéma */
.cine-seances { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; position: relative; z-index: 1; }
.cine-seance {
	display: inline-flex; flex-direction: column; align-items: center; min-width: 58px; padding: 4px 8px;
	border: 1px solid var(--bord); border-radius: 10px; background: var(--fond); color: var(--texte); text-decoration: none; line-height: 1.2;
}
.cine-seance:hover { border-color: var(--bleu-2); }
.cine-seance strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.cine-seance small { font-size: 11px; color: var(--texte-2); }
.cine-affiche { width: 84px; height: 120px; }

/* Environnement (page météo) */
.env { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 900px) { .env { grid-template-columns: 1fr 1fr; } }
.env-gros { font-size: 26px; font-weight: 800; color: var(--texte); font-variant-numeric: tabular-nums; }
.env-courbe { width: 100%; height: 60px; color: var(--bleu-2); margin-top: 6px; }
.air-jours { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.air-jour { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.air-pastille { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(0,0,0,.1); }
.badge-jaune { background: #fff3b0; color: #6b5400; }
.badge-orange { background: #ffd6a5; color: #7a3a00; }
.badge-rouge { background: #ffc2c2; color: #8a0000; }
.agenda-jour { margin-top: 20px; }

/* Gare */
.gare td { vertical-align: top; }
.gare-retard { color: var(--off); font-weight: 700; font-size: 13px; }
.gare-supprime td:nth-child(-n+2) { text-decoration: line-through; opacity: .6; }
.mentions { margin-bottom: 12px; }
.mentions h2 { margin-top: 0; font-size: 18px; }
.mentions ul { padding-left: 20px; margin: 6px 0; }
.mentions li { margin: 3px 0; }
