/* ==========================================================================
   Articles SEO - styles de l'article genere
   Structure : Couverture+titre / Paragraphe 1 (image|texte) / Paragraphe 2 (texte|image)
   ========================================================================== */

.asa-content-wrapper {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px 60px;
}

/* --------------------------------------------------------------------
   1. Image de couverture + titre en overlay
   -------------------------------------------------------------------- */

/* Astuce "full-bleed" : sort de la colonne de contenu du theme pour
   occuper toute la largeur de l'ecran, quel que soit le theme utilise. */
.asa-hero {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	min-height: 55vh;
	background-color: #202020;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	overflow: hidden;
}

.asa-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.68) 0%,
		rgba(0, 0, 0, 0.28) 45%,
		rgba(0, 0, 0, 0.05) 100%
	);
}

.asa-hero-title {
	position: relative;
	z-index: 2;
	color: #ffffff;
	text-align: center;
	font-size: clamp(1.8rem, 4.5vw, 3.2rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.3px;
	margin: 0;
	padding: 30px 20px 40px;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
	max-width: 900px;
}

/* --------------------------------------------------------------------
   2 & 3. Sections paragraphe (2 colonnes alternees sur ordinateur)
   -------------------------------------------------------------------- */
.asa-section {
	display: flex;
	align-items: center;
	gap: 45px;
	margin: 55px 0;
}

.asa-section-media,
.asa-section-text {
	flex: 1 1 50%;
	min-width: 0;
}

.asa-section-image {
	width: 100%;
	height: auto;
	max-height: 420px;
	object-fit: cover;
	border-radius: 12px;
	display: block;
}

.asa-section-text {
	font-size: 1.05rem;
	line-height: 1.75;
	color: #2c2c2c;
}

.asa-section-text p {
	margin: 0 0 1.2em;
}

.asa-section-text p:last-child {
	margin-bottom: 0;
}

/* Paragraphe 1 : DOM = image puis texte -> deja "image a gauche / texte a droite". */
/* Paragraphe 2 : DOM = texte puis image -> deja "texte a gauche / image a droite". */
/* Aucun reglage supplementaire n'est necessaire sur ordinateur. */

/* --------------------------------------------------------------------
   Nettoyage : masquer toute sidebar/widgets injectes par le theme.
   -------------------------------------------------------------------- */
body.articles-seo-page #secondary,
body.articles-seo-page .sidebar,
body.articles-seo-page .widget-area {
	display: none !important;
}

body.articles-seo-page #primary,
body.articles-seo-page .site-main,
body.articles-seo-page .content-area {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
}

/* --------------------------------------------------------------------
   Responsive : tablette
   -------------------------------------------------------------------- */
@media (max-width: 900px) {
	.asa-section {
		gap: 30px;
	}
}

/* --------------------------------------------------------------------
   Responsive : mobile
   -------------------------------------------------------------------- */
@media (max-width: 768px) {
	.asa-hero {
		min-height: 42vh;
	}

	.asa-hero-title {
		padding: 20px 16px 28px;
	}

	.asa-content-wrapper {
		padding: 0 16px 40px;
	}

	.asa-section {
		flex-direction: column;
		align-items: stretch;
		gap: 18px;
		margin: 40px 0;
	}

	/* Le paragraphe 1 a l'image AVANT le texte dans le DOM (pour
	   respecter l'ordre "image a gauche" sur ordinateur). Sur mobile,
	   on inverse visuellement pour afficher le TEXTE en premier, puis
	   l'image en dessous, comme demande. */
	.asa-section--image-left .asa-section-text {
		order: 1;
	}
	.asa-section--image-left .asa-section-media {
		order: 2;
	}

	/* Le paragraphe 2 a deja le texte avant l'image dans le DOM : rien
	   a inverser, l'ordre naturel convient parfaitement sur mobile. */

	.asa-section-image {
		max-height: 260px;
	}

	.asa-section-text {
		font-size: 1rem;
	}
}
