/* Arts & Festivals — composants communs à plusieurs pages. Chargé partout, après entete.css et pied.css.
   Chaque composant indique son usage ; une page ajuste ses dimensions dans son propre fichier (assets/css/pages/). */

/* .aef-boite — conteneur « encadré » d'Elementor : largeur maximale selon l'écran (1720, 1300 sous 1540 px, 1100
   sous 1280, 850 sous 1024, 580 sous 767, 400 sous 479), centré. N'ajoute aucune marge intérieure : la page met
   ses propres marges latérales (30 px, 20 px sous 1024 px en général). */
.aef-boite {
	width: 100%;
	max-width: var(--aef-boite);
	margin-inline: auto;
}

/* .aef-cartouche — titre blanc en capitales sur fond gris (#9a9a9a), Montserrat 700, interligne 1,1, centré.
   Ex. « Circuit découverte », « Saison estivale… ». La page fixe la largeur, la marge intérieure et la taille. */
.aef-cartouche {
	margin: 0;
	background: var(--aef-gris);
	font-family: var(--aef-police-titre);
	font-weight: 700;
	line-height: 1.1em;
	text-transform: uppercase;
	text-align: center;
	color: #fff;
}

/* .aef-souligne — soulignement animé du thème d'origine : deux traits de 1 px qui partent des bords au survol.
   À poser sur un élément en ligne (span ou lien) ; .aef-souligne--actif le laisse affiché. */
.aef-souligne {
	background-image: linear-gradient(90deg, currentColor 50%, transparent 50%), linear-gradient(270deg, currentColor 50%, transparent 50%);
	background-repeat: no-repeat;
	background-position: 0 100%, 100% 100%;
	background-size: 0 1px, 0 1px;
	transition: background-size var(--aef-transition), color var(--aef-transition);
}
.aef-souligne:hover,
a:hover > .aef-souligne,
a:focus-visible > .aef-souligne,
.aef-souligne--actif { background-size: 101% 1px, 101% 1px; }

/* .aef-circuit — bloc « Circuit découverte » (template-parts/circuit.php) : cartouche de titre, carte uMap avec
   filet rose vertical, lien « Voir en plein écran ». Occupe toute la largeur de son parent ; hauteurs d'origine :
   806,8 px à 1440, 781,8 à 768, 799,3 à 390. */
.aef-circuit {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding-left: 20px;
}
.aef-circuit__titre {
	width: 720px;
	max-width: 100%;
	padding-top: 100px;
	font-size: clamp(2.4rem, 2.1231rem + 1.2308vw, 3rem);
}
.aef-circuit__carte {
	width: 90%;
	margin-top: 50px;
	border-left: 20px solid var(--aef-rose);
}
.aef-circuit__carte iframe {
	display: block;
	width: 100%;
	height: 600px;
	border: 0;
}
.aef-circuit__carte p { font: 400 16px/24px var(--aef-police-texte); }
.aef-circuit__carte a {
	color: var(--aef-clair);
	transition: color var(--aef-transition);
}
.aef-circuit__carte a:hover,
.aef-circuit__carte a:focus-visible { color: var(--aef-rose); }

/* Écran large (≥ 2400 px) : cartouche plus haut, comme sur le site d'origine */
@media (min-width: 2400px) {
	.aef-circuit__titre { padding-top: 120px; }
}
@media (max-width: 1540px) {
	.aef-circuit__titre { padding-top: 80px; }
}
@media (max-width: 1280px) {
	.aef-circuit { padding-left: 0; }
	.aef-circuit__titre { width: 768px; }
}
@media (max-width: 1024px) {
	.aef-circuit__titre { width: 720px; padding-top: 60px; }
	.aef-circuit__carte { width: 100%; }
}
@media (max-width: 767px) {
	.aef-circuit { padding-bottom: 10px; }
	.aef-circuit__titre { width: 100%; padding-top: 40px; }
	.aef-circuit__carte { margin-top: 20px; padding-bottom: 20px; }
}

/* .aef-conteneur — conteneur des pages au gabarit standard du thème d'origine (ex. mentions légales) : boîte
   + marges latérales de 30 px (20 px sous 1024 px), soit 1300 px de contenu à 1440. --marge-bas ajoute l'espace
   d'origine sous le contenu, avant le pied : 100 px, 80 sous 1280, 70 sous 1024, 60 sous 767, 50 sous 479. */
.aef-conteneur {
	width: 100%;
	max-width: calc(var(--aef-boite) + 60px);
	margin: 0 auto;
	padding: 0 30px;
}
.aef-conteneur--marge-bas { padding-bottom: 100px; }
@media (max-width: 1280px) {
	.aef-conteneur--marge-bas { padding-bottom: 80px; }
}
@media (max-width: 1024px) {
	.aef-conteneur { max-width: calc(var(--aef-boite) + 40px); padding-inline: 20px; }
	.aef-conteneur--marge-bas { padding-bottom: 70px; }
}
@media (max-width: 767px) {
	.aef-conteneur--marge-bas { padding-bottom: 60px; }
}
@media (max-width: 479px) {
	.aef-conteneur--marge-bas { padding-bottom: 50px; }
}
