/**
 * Page « À propos » — phase 5.
 *
 * Maquette `791:3130` · 1440 × 6929.
 */

.bd-apropos {
	box-sizing: border-box;
	margin-inline: 0;
	padding: 0 var(--bd-gouttiere) 140px;
}

/* Figma pose le H1 à y 187, soit 43 px sous le menu. */
body.bd-page-a-propos .bd-entete {
	margin-bottom: 43px;
}

/* ------------------------------------------------------------------ */
/* Bandeau orange — Figma `791:3132`, 1440 × 565 bord à bord            */
/* Il passe derrière le lien English et le menu, posés hors de `<main>` */
/* par `header.php` : le fond remonte de la hauteur du chrome, 186 px.  */
/* La photo qui suit en recouvre le bas, d'où un bandeau visible de     */
/* 314 px seulement.                                                    */
/* ------------------------------------------------------------------ */

.bd-apropos__haut {
	--bd-chrome: 186px;

	position: relative;
	/* H1 de 77, puis 50 px avant la photo : 187 + 77 + 50 = 314. */
	padding-bottom: 50px;
}

.bd-apropos__haut::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: calc(-1 * var(--bd-chrome));
	bottom: 0;
	left: calc(50% - 50vw);
	width: 100vw;
	background: var(--wp--preset--color--orange);
}

.bd-apropos__titre {
	margin: 0;
	font-size: var(--wp--preset--font-size--titre-1);
	font-weight: 700;
	line-height: var(--wp--custom--interligne--titre);
	color: var(--wp--preset--color--blanc);
}

/* Photo bord à bord `791:3133`, 1440 × 404. */
.bd-apropos__photo {
	width: 100vw;
	/* `height: auto` tient la proportion. Sans lui, le repli `.bd-photo`
	   pose `height: 100%`, et dans un conteneur de hauteur définie —
	   colonne de flex ou piste de grille — cette hauteur l'emporte :
	   la photo suit alors la colonne voisine au lieu de sa proportion. */
	height: auto;
	margin-left: calc(50% - 50vw);
	aspect-ratio: 1440 / 404;
}

/* ------------------------------------------------------------------ */
/* Présentation — `791:3135` à y 818, soit 100 px sous la photo         */
/* ------------------------------------------------------------------ */

.bd-apropos__presentation {
	margin-top: 100px;
}

.bd-apropos__presentation-corps {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
	margin-top: 20px;
}

.bd-apropos__presentation-corps p {
	max-width: 676px;
	margin: 0;
	font-size: var(--wp--preset--font-size--corps);
	line-height: var(--wp--custom--interligne--corps);
}

/* ------------------------------------------------------------------ */
/* Carte blanche — `791:3152`, 1368 × 471, photo 577 × 310 à gauche     */
/* ------------------------------------------------------------------ */

.bd-apropos__preuve {
	display: grid;
	grid-template-columns: minmax(0, 577fr) minmax(0, 537fr);
	gap: 115px;
	box-sizing: border-box;
	align-items: center;
	margin-top: 140px;
	padding: 81px 70px;
	border-radius: 16px;
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--noir);
}

.bd-apropos__preuve-photo {
	width: 100%;
	height: auto;
	aspect-ratio: 577 / 310;
	border-radius: var(--wp--custom--rayon--carte);
}

.bd-apropos__preuve-texte h2 {
	margin: 0;
	font-size: var(--wp--preset--font-size--titre-2);
	font-weight: 700;
	line-height: var(--wp--custom--interligne--titre);
}

.bd-apropos__preuve-texte p {
	margin: 20px 0 0;
	font-size: var(--wp--preset--font-size--corps);
	line-height: var(--wp--custom--interligne--corps);
}

/* ------------------------------------------------------------------ */
/* Pourquoi nous choisir — `791:3164`, 657 à gauche, 676 à droite       */
/* ------------------------------------------------------------------ */

.bd-apropos__choisir {
	display: grid;
	grid-template-columns: minmax(0, 657fr) minmax(0, 676fr);
	gap: 35px;
	margin-top: 140px;
}

.bd-apropos__choisir-colonne {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.bd-apropos__choisir-colonne p {
	margin: 0;
	font-size: var(--wp--preset--font-size--corps);
	line-height: var(--wp--custom--interligne--corps);
}

/* Trois blocs posés à y 72, 270 et 502 : un écart de 20 entre eux, et la
   colonne commence 72 px plus bas que le H2. */
.bd-apropos__avantages {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-top: 72px;
}

/* ------------------------------------------------------------------ */
/* Bande vidéo — `791:3140`, 1440 × 728 bord à bord, claire             */
/* ------------------------------------------------------------------ */

/* La bande est bord à bord, son contenu ne l'est pas : sans gouttière, le
   titre touchait les deux bords sur un téléphone. */
.bd-apropos__video {
	box-sizing: border-box;
	width: 100vw;
	margin: 140px 0 0 calc(50% - 50vw);
	padding: 94px var(--bd-gouttiere) 96px;
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--noir);
	text-align: center;
}

/* La maquette donne 640 de large pour « Notre savoir faire en image ». Le
   titre corrigé — trait d'union, pluriel — est plus long et passait sur deux
   lignes, ce qui rallongeait la bande de 49 px. La largeur suit celle de la
   vidéo pour le garder sur une ligne. */
.bd-apropos__video h2 {
	max-width: 922px;
	margin: 0 auto;
	font-size: var(--wp--preset--font-size--titre-2);
	font-weight: 700;
	line-height: var(--wp--custom--interligne--titre);
}

/* Vidéo non fournie — CLAUDE.md la liste parmi les manques. Espace réservé
   aux dimensions de la maquette. */
.bd-apropos__video-cadre {
	position: relative;
	box-sizing: border-box;
	width: min(922px, calc(100% - 72px));
	margin: 50px auto 0;
	aspect-ratio: 922 / 427;
	border-radius: 16px;
	overflow: hidden;
}

/* L'image d'attente, puis le lecteur qui prend sa place, remplissent la bande. */
.bd-apropos__video-photo,
.bd-apropos__video-lecteur {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

/* Le lien couvre toute la bande : on clique l'image, pas seulement la pastille. */
.bd-apropos__video-lien {
	position: absolute;
	inset: 0;
}

/* Bouton de lecture `791:3149`, 52 × 52, centré. */
.bd-apropos__lecture {
	position: absolute;
	top: 50%;
	left: 50%;
	display: block;
	width: 52px;
	height: 52px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: var(--wp--preset--color--orange);
}

.bd-apropos__lecture::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	width: 0;
	height: 0;
	transform: translate(-50%, -50%);
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	border-left: 16px solid var(--wp--preset--color--blanc);
}

/* ------------------------------------------------------------------ */
/* Bloc d'appel — `791:3158`, 1367 × 301, orange, bouton blanc          */
/* Texte sur 676 à x 172, bouton de 250 × 50 à x 979.                   */
/* ------------------------------------------------------------------ */

.bd-apropos__appel {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
	box-sizing: border-box;
	margin-top: 140px;
	padding: 77px 136px;
	border-radius: 16px;
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--blanc);
}

.bd-apropos__appel-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.bd-apropos__appel p {
	max-width: 676px;
	margin: 0;
	font-size: var(--wp--preset--font-size--corps);
	line-height: var(--wp--custom--interligne--corps);
}

@media (max-width: 1000px) {
	.bd-apropos__preuve,
	.bd-apropos__choisir {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.bd-apropos__avantages {
		padding-top: 0;
	}

	.bd-apropos__presentation-corps,
	.bd-apropos__appel {
		flex-direction: column;
	}

	.bd-apropos__appel {
		padding: 40px 36px;
	}
}

/* ------------------------------------------------------------------ */
/* Mesure du texte                                                      */
/* Depuis que le contenu s'étire, ces deux paragraphes suivaient la      */
/* largeur de l'écran : 1209 px à 2560. Une ligne de cette longueur se   */
/* lit mal, l'œil perd le début de la suivante.                          */
/* ------------------------------------------------------------------ */

.bd-apropos__preuve-texte p,
.bd-apropos__choisir-colonne p {
	max-width: var(--bd-mesure);
}
