/* Organisme : En-tête de page. Fil d'Ariane, surtitre + titre en deux graisses, chapô aligné sur le bas du titre (desktop). Figma 73:1523. */
.l-section.section-page-hero { padding-block: var(--page-hero-gap) var(--section-gap); }
.section-page-hero__inner { display: flex; flex-direction: column; gap: var(--page-hero-gap); }
.section-page-hero__row { display: flex; flex-direction: column; gap: var(--space-3); }
.section-page-hero__title { display: flex; flex-direction: column; gap: var(--page-hero-title-gap); max-width: var(--section-head-max); }
.section-page-hero__title .c-title { font-size: calc(var(--type-display-size) * 0.8); } /* H1 des pages secondaires à 80 % (2026-11-19) */
.section-page-hero__lead { margin: 0; }
.section-page-hero__lead { color: var(--section-text-muted); }
@media (min-width: 1024px) {
	.section-page-hero__row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: var(--gutter); }
	.section-page-hero__lead { flex: none; width: var(--page-hero-lead-width); padding-bottom: var(--page-hero-lead-pad); }
}

/* Variante photo (Carrières, Figma 73:1807) : chapô sous le titre avec les boutons à droite, puis photo pleine largeur du cadre, chiffres en verre en bas à gauche. Photo de contenu : alt vide (décorative), l'info est dans le chapô. */
.l-section.section-page-hero--photo { padding-block-end: 0; }
.section-page-hero--photo + .l-section { padding-block-start: var(--section-gap); } /* espace photo → section suivante : 72 px (était 216) */ /* l'espace sous la photo vient du padding de la section suivante (2026-11-19) */
.section-page-hero__actions { margin-top: var(--space-1); }
.section-page-hero__photo { position: relative; }
.section-page-hero__image { width: 100%; aspect-ratio: var(--page-hero-photo-ratio); object-fit: cover; object-position: 50% 92%; }
.section-page-hero__stats { position: absolute; inset: auto var(--space-2) var(--space-2) var(--space-2); margin: 0; flex-wrap: wrap; width: fit-content; max-width: calc(100% - 2 * var(--space-2)); }
.section-page-hero__stat { display: inline-flex; align-items: baseline; gap: var(--space-1); }
.section-page-hero__stat strong { font-weight: var(--weight-strong); }
@media (min-width: 1024px) {
	.section-page-hero--photo .section-page-hero__row { align-items: flex-start; }
	.section-page-hero--photo .section-page-hero__title { max-width: none; }
	.section-page-hero--photo .section-page-hero__lead { width: auto; padding-bottom: 0; } /* chapô sous le titre : 2/3 de la largeur */
	.section-page-hero__actions { margin-top: 0; align-self: flex-end; justify-self: end; }
	.section-page-hero--photo .section-page-hero__row { display: grid; grid-template-columns: 2fr 1fr; grid-template-areas: "title title" "lead actions"; row-gap: var(--page-hero-gap); column-gap: 0; }
	.section-page-hero--photo .section-page-hero__title { grid-area: title; }
	.section-page-hero--photo .section-page-hero__lead { grid-area: lead; }
	.section-page-hero--photo .section-page-hero__actions { grid-area: actions; }
	.section-page-hero__stats { inset-inline-start: var(--space-4); inset-block-end: var(--space-4); }
}
.section-page-hero--photo .c-title__line > .c-title__light { display: block; }

.section-page-hero--photo:has([data-slider]) + .l-section { padding-block-start: calc(var(--section-gap) - var(--space-2) - 2.75rem); } /* avec slider, les contrôles (gap 16 + 44) comptent dans les 72 px sous la photo */

/* Slider de photos (même cadre que la photo seule) : défilement natif accroché, piloté par js/site.js [data-slider] ; contrôles visibles aussi en desktop. */
.section-page-hero__media { display: flex; flex-direction: column; gap: var(--space-2); }
.section-page-hero__track { margin: 0; padding: 0; list-style: none; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.section-page-hero__track::-webkit-scrollbar { display: none; }
.section-page-hero__slide { flex: 0 0 100%; scroll-snap-align: start; }
@media (min-width: 1024px) { .c-slider-controls.c-slider-controls--always { display: flex; } }
.section-page-hero__track { cursor: grab; }
.section-page-hero__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.section-page-hero__image { -webkit-user-drag: none; user-select: none; }

/* Carrières : bouton unique en haut à droite, à hauteur de la 1re ligne du titre. */
@media (min-width: 1024px) {
	.section-page-hero--photo .section-page-hero__row { grid-template-areas: "title actions" "lead lead"; grid-template-columns: 1fr auto; }
	.section-page-hero--photo .section-page-hero__lead { max-width: 66.666%; }
	.section-page-hero--photo .section-page-hero__actions { align-self: start; }
}

/* Le bureau, Équipe, Carrières : 80 px entre le slider (contrôles compris) et la 1re section : histoire, direction, pourquoi (2026-11-20). */
.section-page-hero--photo:has([data-slider]) + .section-histoire, .section-page-hero--photo:has([data-slider]) + .section-direction, .section-page-hero--photo:has([data-slider]) + .section-pourquoi { padding-block-start: 5rem; }
