/*
 * sections.css — blocs de contenu réutilisés sur les pages d'accueil et VAE :
 * hero photo de l'accueil, présentation de Sonia, bandeau partenaires, intro VAE.
 * S'appuie uniquement sur les variables et utilitaires déjà définis dans base.css
 * (.container, .section, .section-titre, .blob-photo, --stb-*).
 */

/* -------------------------------------------------------------------------
 * Hero accueil (front-page.php) : photo pleine largeur, titre + sous-titre +
 * CTA posés directement dessus, SANS voile ajouté (cahier des charges, §2).
 * ---------------------------------------------------------------------- */

.hero-accueil {
	position: relative;
	overflow: hidden;
	color: var(--stb-navy);
}

.hero-accueil__photo {
	position: absolute;
	inset: 0;
	z-index: 0;
	/* Dégradé neutre de repli tant qu'aucune photo n'est fournie (cf. gabarit) ; une fois une
	   photo présente, elle est posée en background-image inline et ces réglages l'affichent
	   correctement (le dégradé reste visible dessous le temps du chargement). */
	background-color: #eef0f5;
	background-image: linear-gradient(120deg, #d8dbe6 0%, #eef0f5 55%, #f7f8fb 100%);
	background-size: cover;
	background-position: center;
}

.hero-accueil__inner {
	position: relative;
	z-index: 1;
	text-align: center;
	padding-block: clamp(3rem, 10vw, 6rem) clamp(4rem, 12vw, 7rem);
}

.hero-accueil__titre {
	max-width: 46rem;
	margin-inline: auto;
	color: var(--stb-navy);
	text-shadow: var(--stb-shadow-title);
	font-size: clamp(1.9rem, 4.4vw, 3.1rem);
}

.hero-accueil__soustitre {
	max-width: 34rem;
	margin: 0 auto 1.75rem;
	color: var(--stb-navy-text);
	font-weight: 500;
}

.hero-accueil__vague {
	position: relative;
	z-index: 1;
	line-height: 0;
}

.hero-accueil__vague .stb-vague svg {
	display: block;
	width: 100%;
	height: clamp(50px, 9vw, 110px);
}

/* -------------------------------------------------------------------------
 * Présentation de Sonia (front-page.php).
 * ---------------------------------------------------------------------- */

.intro-sonia__grille {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(2rem, 5vw, 3.5rem);
	align-items: center;
}

.intro-sonia__nom {
	font-size: clamp(1.75rem, 3.4vw, 2.4rem);
	margin-bottom: 0.2em;
}

.intro-sonia__role {
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-weight: 600;
	color: var(--stb-navy-text);
	margin-bottom: 1.25rem;
}

.intro-sonia__texte p {
	text-align: justify;
}

.intro-sonia__photo-col {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 1.5rem;
}

.intro-sonia__photo {
	width: 100%;
	max-width: 420px;
	/* TODO: remplacer par la photo définitive de Sonia une fois livrée. */
	background: linear-gradient(140deg, #c7cbe0 0%, #e7e9f2 100%);
}

@media (min-width: 800px) {
	.intro-sonia__grille {
		grid-template-columns: 1.1fr 0.9fr;
	}

	.intro-sonia__photo-col {
		align-items: center;
	}
}

/* -------------------------------------------------------------------------
 * Bandeau partenaires (front-page.php) : masqué entièrement par le gabarit
 * si aucun partenaire n'est publié, jamais de bandeau vide.
 * ---------------------------------------------------------------------- */

.partenaires-bandeau {
	padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

.partenaires-bandeau__liste {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: clamp(2rem, 6vw, 4.5rem);
}

.partenaires-bandeau__logo {
	display: flex;
	align-items: center;
}

.partenaires-bandeau__logo a,
.partenaires-bandeau__logo span {
	display: block;
	line-height: 0;
}

.partenaires-bandeau__logo img {
	max-height: 48px;
	width: auto;
	max-width: 160px;
	object-fit: contain;
}

/* Équilibrage visuel des logos partenaires : leurs fichiers sources ont des proportions très
   différentes (Anatol très large, Carrefour presque carré), donc une même max-height ne suffit
   pas à leur donner un poids visuel comparable dans le bandeau. */
.partenaires-bandeau__logo--anatol-conseil-formation img {
	max-height: 34px;
}

.partenaires-bandeau__logo--carrefour img {
	max-height: 68px;
}

/* -------------------------------------------------------------------------
 * Intro VAE (page-vae.php) : miroir de l'intro Sonia, photo à gauche.
 * ---------------------------------------------------------------------- */

.vae-intro__grille {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(2rem, 5vw, 3.5rem);
	align-items: center;
}

.vae-intro__photo {
	width: 100%;
	max-width: 420px;
	margin-inline: auto;
	/* TODO: remplacer par la photo définitive une fois livrée. */
	background: linear-gradient(140deg, #c7cbe0 0%, #e7e9f2 100%);
}

.vae-intro__titre {
	text-shadow: var(--stb-shadow-title);
}

.vae-intro__texte p:last-child {
	margin-bottom: 0;
}

@media (min-width: 800px) {
	.vae-intro__grille {
		grid-template-columns: 0.9fr 1.1fr;
	}
}

/* -------------------------------------------------------------------------
 * Fiche success story individuelle (single-success_story.php) : même schéma
 * que l'intro VAE, miroir horizontal (photo à gauche, texte à droite).
 * ---------------------------------------------------------------------- */

.success-story__grille {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(2rem, 5vw, 3.5rem);
	align-items: start;
}

.success-story__photo {
	width: 100%;
	max-width: 420px;
	margin-inline: auto;
}

.success-story__titre {
	text-shadow: var(--stb-shadow-title);
}

.success-story__temoignage p:last-child {
	margin-bottom: 0;
}

@media (min-width: 800px) {
	.success-story__grille {
		grid-template-columns: 0.8fr 1.2fr;
	}
}

/* -------------------------------------------------------------------------
 * En-tête de page générique : titre à gauche, action à droite (page-formations.php,
 * maquette « STB - Formations.png »). Empile en colonne sur mobile.
 * ---------------------------------------------------------------------- */

.page-entete {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	text-align: center;
	margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.page-entete .section-titre {
	margin: 0;
}

@media (min-width: 700px) {
	.page-entete {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		text-align: left;
	}

	.page-entete .section-titre {
		text-align: left;
	}
}
