/* Andrésy Événements : affichage public des fiches. Couleurs du logo. */
.ac-fiche {
	--ac-marine: #0A1F5C;
	--ac-bleu: #1B3A8C;
	--ac-rouge: #E30A17;
	--ac-gris: #4A5578;
	--ac-clair: #EEF3FA;
	--ac-bord: #E1E8F5;
	font-size: 1rem;
	line-height: 1.5;
	margin-block: 1.5rem;
	color: #fff;
}
.ac-fiche *,
.ac-fiche *::before,
.ac-fiche *::after { box-sizing: border-box; }

/* Boutons */
.ac-fiche .ac-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: .6em 1.1em;
	border-radius: 8px;
	font-weight: 700;
	font-size: .95rem;
	line-height: 1.2;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	font-family: inherit;
	transition: background-color .15s, color .15s, border-color .15s;
}
.ac-fiche .ac-btn-rouge { background: var(--ac-rouge); color: #fff; }
.ac-fiche .ac-btn-rouge:hover, .ac-fiche .ac-btn-rouge:focus-visible { background: #B80812; color: #fff; }
.ac-fiche .ac-btn-contour { background: transparent; color: #fff; border-color: #fff; }
.ac-fiche .ac-btn-contour:hover, .ac-fiche .ac-btn-contour:focus-visible { background: #fff; color: var(--ac-marine); }
.ac-fiche .ac-btn-bleu { background: var(--ac-bleu); color: #fff; }
.ac-fiche .ac-btn-bleu:hover, .ac-fiche .ac-btn-bleu:focus-visible { background: var(--ac-rouge); color: #fff; }
.ac-fiche .ac-btn-clair { background: #fff; color: var(--ac-bleu); border-color: #C9D8EE; }
.ac-fiche .ac-btn-clair:hover, .ac-fiche .ac-btn-clair:focus-visible, .ac-fiche .ac-btn-clair[aria-expanded="true"] { background: var(--ac-marine); color: #fff; border-color: var(--ac-marine); }
.ac-fiche :focus-visible { outline: 3px solid #FFD43B; outline-offset: 2px; }

/* En-tête */
.ac-entete .ac-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.ac-chip { display: inline-block; padding: .3em .8em; border-radius: 999px; font-weight: 700; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }
.ac-chip-type { background: var(--ac-type, #1B3A8C); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.ac-chip-clair { background: #fff; color: #0A1F5C; text-transform: none; letter-spacing: 0; }
.ac-chip-statut { background: #fff; color: #8A0812; }
.ac-statut-complet { color: #7A4500; }
.ac-entete .ac-date { font-size: 1.35rem; font-weight: 700; margin: 0 0 1rem; color: #fff; }
.ac-entete .ac-boutons { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Infos clés */
.ac-tuiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 28px rgba(10,31,92,.25);
	color: var(--ac-marine);
}
.ac-tuile { padding: 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .2rem; border-right: 1px solid var(--ac-bord); border-bottom: 1px solid var(--ac-bord); }
.ac-tuile-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ac-gris); }
.ac-tuile strong { font-size: 1.15rem; line-height: 1.25; color: var(--ac-marine); }
.ac-tuile span:not(.ac-tuile-label) { color: var(--ac-gris); font-size: .95rem; }
.ac-tuile a { color: var(--ac-bleu); font-weight: 600; font-size: .95rem; text-decoration: underline; text-underline-offset: 2px; }
.ac-tuile a:hover { color: var(--ac-rouge); }

/* Alerte */
.ac-alerte { display: flex; gap: .75rem; align-items: flex-start; background: #FFF4D6; color: #5A3B00; border-radius: 10px; padding: 1rem 1.2rem; font-weight: 600; }
.ac-alerte svg { flex: none; margin-top: 2px; }

/* Parcours */
.ac-parcours-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; scroll-margin-top: 120px; }
.ac-parcours-tete h2 { margin: 0; color: #fff; text-transform: uppercase; font-style: italic; font-weight: 800; }
.ac-filtres { display: flex; flex-wrap: wrap; gap: .5rem; }
.ac-filtres button { font: inherit; font-weight: 700; min-height: 44px; padding: .4em 1em; border-radius: 999px; border: 2px solid #fff; background: transparent; color: #fff; cursor: pointer; }
.ac-filtres button.is-actif { background: #fff; color: var(--ac-marine); }
.ac-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.ac-carte { background: #fff; color: var(--ac-marine); border-radius: 12px; overflow: hidden; padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .7rem; border-top: 6px solid var(--ac-disc, #1B3A8C); }
.ac-carte[hidden] { display: none; }
.ac-carte-haut { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.ac-disc { background: var(--ac-disc-fond, #E4EAF7); color: var(--ac-disc, #1B3A8C); font-weight: 700; font-size: .8rem; padding: .2em .65em; border-radius: 6px; text-transform: uppercase; }
.ac-fleche { font-size: .88rem; font-weight: 700; }
.ac-fleche-ok { color: #1E5E36; }
.ac-fleche-partiel { color: #8A4B00; }
.ac-fleche-non { color: #B0141F; }
.ac-mesures { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; }
.ac-km { font-size: 2.6rem; font-weight: 800; line-height: 1; font-style: italic; }
.ac-dplus { font-weight: 700; color: var(--ac-gris); }
.ac-detail { margin: 0; color: var(--ac-gris); font-size: .95rem; }
.ac-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: auto; }
.ac-lien-externe { color: var(--ac-bleu); font-weight: 600; padding: .5em .3em; text-decoration: underline; text-underline-offset: 2px; }
.ac-lien-externe:hover { color: var(--ac-rouge); }

.ac-carte-panneau { margin-top: 1rem; background: #fff; color: var(--ac-marine); border-radius: 12px; padding: 1rem; }
.ac-carte-panneau-tete { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; align-items: baseline; margin-bottom: .75rem; }
.ac-carte-panneau-tete span { color: var(--ac-gris); font-size: .9rem; }
.ac-map { height: 380px; border-radius: 8px; overflow: hidden; background: var(--ac-clair); }
.ac-profil { height: 120px; margin-top: .75rem; }
.ac-profil svg { width: 100%; height: 100%; display: block; }
.ac-profil-legende { margin: .4rem 0 0; color: var(--ac-gris); font-size: .9rem; }

/* Infos pratiques */
.ac-infos-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.ac-info { background: #fff; color: var(--ac-marine); border-radius: 12px; padding: 1.2rem 1.3rem; }
.ac-info h3 { margin: 0 0 .5rem; font-size: 1.15rem; color: var(--ac-marine); }
.ac-info p { margin: 0 0 .5rem; color: #1F2D52; }
.ac-info a { color: var(--ac-bleu); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.ac-info a:hover { color: var(--ac-rouge); }
.ac-info ul { margin: 0; padding-left: 1.1rem; }
.ac-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ac-table th { text-align: left; color: var(--ac-gris); font-size: .8rem; text-transform: uppercase; padding: .3rem; }
.ac-table td { border-top: 1px solid var(--ac-bord); padding: .45rem .3rem; }
.ac-contact a { font-size: 1.1rem; }
.ac-infos-titre { margin: 0 0 1rem; }
.ac-info-large { grid-column: 1 / -1; }
.ac-plan { display: block; margin: .25rem 0 .75rem; }
.ac-plan img { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #F4F6FB; border-radius: 8px; }
.ac-contacts { list-style: none; padding: 0 !important; }
.ac-contacts li { margin: 0 0 .35rem; }

.ac-vide { padding: 1rem; background: #fff; color: #4A5578; border-radius: 8px; }

@media (max-width: 600px) {
	.ac-entete .ac-date { font-size: 1.15rem; }
	.ac-km { font-size: 2.1rem; }
	.ac-map { height: 300px; }
	.ac-actions .ac-btn { flex: 1 1 auto; }
}

a.ac-chip-type { color: #fff !important; text-decoration: none !important; }
a.ac-chip-type:hover, a.ac-chip-type:focus-visible { filter: brightness(1.15); text-decoration: underline !important; }
.ac-retour { display: inline-flex; gap: .4em; align-items: center; margin: 0 0 .6rem; color: #fff !important; font-weight: 700; font-size: .95rem; text-decoration: none !important; opacity: .9; }
.ac-retour:hover, .ac-retour:focus-visible { opacity: 1; text-decoration: underline !important; }
