/* =====================================================================
   PAGE CLASSIQUE WP — STRUCTURE GÉNÉRALE
   ===================================================================== */

/*
 * IMPORTANT :
 * Certains thèmes mettent .site-main, .content-area ou .entry-content
 * en flex/grid.
 *
 * Sur ce template, on veut obligatoirement :
 *
 * HEADER → HERO pleine largeur → CONTENU → CARDS
 *
 * et surtout PAS :  HERO | CARDS
 */

body.page-template-page-classique-wp {
	overflow-x: hidden;
}


/* =====================================================================
   FORCER UNE STRUCTURE VERTICALE
   ===================================================================== */

body.page-template-page-classique-wp .site-content,
body.page-template-page-classique-wp .content-area,
body.page-template-page-classique-wp .site-main,
body.page-template-page-classique-wp .entry-content {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	box-sizing: border-box;
	display: block !important;
	float: none !important;
}

/* Neutralise un éventuel grid du thème */
body.page-template-page-classique-wp .site-main,
body.page-template-page-classique-wp .entry-content {
	grid-template-columns: none !important;
	grid-template-areas: none !important;
}


/* =====================================================================
   HERO
   ===================================================================== */

body.page-template-page-classique-wp .al-hero {
	position: relative;

	/* Pleine largeur réelle de la fenêtre */
	width: 100vw !important;
	max-width: 100vw !important;

	/* Sort du container éventuel du thème */
	margin-left: calc(50% - 50vw) !important;
	margin-right: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;

	padding: 0 !important;

	height: 50vh;
	min-height: 360px;

	display: flex !important;
	align-items: center;
	justify-content: center;

	float: none !important;
	clear: both !important;

	box-sizing: border-box;

	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	background-color: #0B3552;

	overflow: hidden;
}

body.page-template-page-classique-wp .al-hero-content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto !important;
	padding: 40px 20px;
	box-sizing: border-box;
	display: flex !important;
	align-items: center;
	justify-content: center;
	float: none !important;
}

body.page-template-page-classique-wp .al-hero-overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, rgba(0, 0, 0, .25), rgba(0, 0, 0, .5));
	z-index: 1;
	pointer-events: none;
}

body.page-template-page-classique-wp .al-hero-title {
	position: relative;
	z-index: 2;
	width: 100%;
	margin: 0 !important;
	padding: 0 20px !important;
	color: #fff !important;
	text-align: center;
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 900;
	line-height: 1.1;
	text-shadow: 0 8px 24px rgba(0, 0, 0, .5);
	box-sizing: border-box;
}


/* =====================================================================
   CONTENU SOUS LE HERO
   ===================================================================== */

body.page-template-page-classique-wp .al-page-content {
	position: relative;
	display: block !important;
	width: 100% !important;
	max-width: 1240px !important;
	margin: 0 auto !important;
	padding: 40px 20px 80px;
	box-sizing: border-box;
	float: none !important;
	clear: both !important;
}

/* Évite un espace inattendu au-dessus du premier élément */
body.page-template-page-classique-wp .al-page-content > :first-child {
	margin-top: 0;
}


/* =====================================================================
   SECTION DES CARDS
   ===================================================================== */

body.page-template-page-classique-wp .al-cards-section {
	position: relative;
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	float: none !important;
	clear: both !important;
	box-sizing: border-box;
	background: var(--s06-fond);
	padding: 50px 20px;
}

body.page-template-page-classique-wp .al-cards-container {
	display: block !important;
	width: 100% !important;
	max-width: 1200px;
	margin: 0 auto;
	box-sizing: border-box;
}


/* =====================================================================
   CARDS (styles "liste", "2col", "4col")
   ---------------------------------------------------------------------
   Le style des cards est défini dans shortcode-categories.php (CSS
   inline, source unique pour les 3 styles). Ne pas dupliquer ici : les
   règles de ce fichier ne servent qu'à la structure de la page.
   ===================================================================== */


/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 640px) {

	body.page-template-page-classique-wp .al-hero {
		height: 40vh;
		min-height: 260px;
	}

	body.page-template-page-classique-wp .al-hero-content {
		padding: 30px 15px;
	}

	body.page-template-page-classique-wp .al-hero-title {
		font-size: clamp(1.8rem, 8vw, 2.8rem);
		padding: 0 15px !important;
	}

	body.page-template-page-classique-wp .al-page-content {
		padding: 30px 15px 60px;
	}

	body.page-template-page-classique-wp .al-cards-section {
		padding: 40px 20px;
	}
}