/* DP – Équipe et KOL
   Chaîne à 3 niveaux : variable locale → charte → repli. */

/* =====================================================================
 * Les designs d'octobre 2026 — mettre en valeur les personnes
 * =====================================================================
 * La Mosaïque (et ses variantes à la une et jointive), les Galets, le
 * Sommaire, la Carte posée, les Volets. Les Cartes d'origine, la Bichromie
 * et la Mosaïque en damier ont été retirées le 13 octobre 2026. Brief :
 * docs/brief-equipe-six-designs.md.
 *
 * Trois règles valent pour tous :
 *   - une seule teinte par bloc (`--dp-team-tint-*`, réglage « Teinte du
 *     bloc ») ;
 *   - la photo d'abord : même format et même cadrage dans un bloc, le
 *     cadrage vertical réglable pour le bloc et par personne ;
 *   - le texte posé sur une photo est blanc sous un voile sombre (hors
 *     charte, assumé — dp-charte §4e) ; partout ailleurs il suit la charte,
 *     et les surfaces « Identité 2026 » (dégradé, panneau profond…) via
 *     les jetons `--dp-nc-*`.
 * ===================================================================== */

/* La hauteur du bloc dépend de sa largeur (photos à format fixe). Sur
   mobile, Elementor passe ses conteneurs en `flex-wrap: wrap`, et un bloc
   dont la hauteur dépend de sa largeur y passe sous le bloc suivant : on
   reprend la règle qu'Elementor applique à ses propres widgets (voir
   widget-expertise.css). */
.e-con > .elementor-widget-dp_team,
.e-con-inner > .elementor-widget-dp_team {
	width: var(--container-widget-width);
}

.dp-team--2026 {
	/* La teinte du bloc : primaire par défaut, les classes de teinte plus bas. */
	--dp-team-tint: var(--dp-color-primary, #61c2d0);
	--dp-team-on-tint: var(--dp-color-on-primary-base, #303030);
	--dp-team-tint-fill: var(--dp-color-primary-fill, #61c2d0);
	--dp-team-on-tint-fill: var(--dp-color-on-primary, #303030);
	--dp-team-tint-strong: var(--dp-color-primary-strong, #417e88);
	--dp-team-tint-deep: var(--dp-color-primary-deep, #325f66);
	--dp-team-tint-soft: var(--dp-color-primary-soft, #ecf8f9);

	/* Les rôles. Les réglages « Style – Personnes » les remplacent ; vides,
	   la charte décide — et une surface « Identité 2026 » sombre ou en
	   dégradé repeint les textes par ses propres jetons. */
	--dp-team-name: var(--dp-nc-title, var(--dp-color-text, #303030));
	--dp-team-job: var(--dp-nc-text, var(--dp-color-text-muted, #5b5b5b));
	--dp-team-lede: var(--dp-nc-text, var(--dp-color-text-muted, #5b5b5b));
	--dp-team-cred: var(--dp-team-tint-strong);
	--dp-team-rule: var(--dp-nc-rule, var(--dp-color-border, #dedede));
	--dp-team-on-photo: #ffffff;
	--dp-team-scrim: linear-gradient(180deg, rgba(26, 30, 34, 0) 40%, rgba(26, 30, 34, 0.5) 66%, rgba(26, 30, 34, 0.84) 100%);
	--dp-team-card: var(--dp-color-surface, #ffffff);
	--dp-team-accent-fill: var(--dp-team-tint-fill);
	--dp-team-on-accent: var(--dp-team-on-tint-fill);

	--dp-team-gap: 16px;
	--dp-team-row-gap: 40px;
	--dp-team-radius: var(--dp-radius-lg, 20px);
	--dp-team-card-radius: var(--dp-radius-lg, 20px);
	--dp-team-ease: var(--dp-ease, cubic-bezier(0.4, 0, 0.2, 1));

	font-family: var(--dp-font-base, inherit);
	color: var(--dp-team-name);
}

.dp-team--tint-secondary {
	--dp-team-tint: var(--dp-color-secondary, #98d0c1);
	--dp-team-on-tint: var(--dp-color-on-secondary-base, #303030);
	--dp-team-tint-fill: var(--dp-color-secondary-fill, #98d0c1);
	--dp-team-on-tint-fill: var(--dp-color-on-secondary, #303030);
	--dp-team-tint-strong: var(--dp-color-secondary-strong, #5d7c75);
	--dp-team-tint-deep: var(--dp-color-secondary-deep, #455e57);
	--dp-team-tint-soft: var(--dp-color-secondary-soft, #f3f9f8);
}

.dp-team--tint-tertiary {
	--dp-team-tint: var(--dp-color-tertiary, #a9cf8e);
	--dp-team-on-tint: var(--dp-color-on-tertiary-base, #303030);
	--dp-team-tint-fill: var(--dp-color-tertiary-fill, #a9cf8e);
	--dp-team-on-tint-fill: var(--dp-color-on-tertiary, #303030);
	--dp-team-tint-strong: var(--dp-color-tertiary-strong, #687c56);
	--dp-team-tint-deep: var(--dp-color-tertiary-deep, #4a5e41);
	--dp-team-tint-soft: var(--dp-color-tertiary-soft, #f5f9f1);
}

.dp-team--tint-quaternary {
	--dp-team-tint: var(--dp-color-quaternary, #fff399);
	--dp-team-on-tint: var(--dp-color-on-quaternary-base, #303030);
	--dp-team-tint-fill: var(--dp-color-quaternary-fill, #fff399);
	--dp-team-on-tint-fill: var(--dp-color-on-quaternary, #303030);
	--dp-team-tint-strong: var(--dp-color-quaternary-strong, #7d784a);
	--dp-team-tint-deep: var(--dp-color-quaternary-deep, #5f5a3b);
	--dp-team-tint-soft: var(--dp-color-quaternary-soft, #fffef3);
}

.dp-team--tint-ink {
	--dp-team-tint: var(--dp-color-text, #303030);
	--dp-team-on-tint: #ffffff;
	--dp-team-tint-fill: var(--dp-color-text, #303030);
	--dp-team-on-tint-fill: #ffffff;
	--dp-team-tint-strong: var(--dp-color-text, #303030);
	--dp-team-tint-deep: var(--dp-color-text, #303030);
	--dp-team-tint-soft: var(--dp-color-surface-grey, #f4f6f6);
}

/* Sur une surface « Identité 2026 » sombre ou en dégradé, les capitales
   prennent la couleur que la surface a calculée : la version soutenue de la
   teinte y disparaîtrait. */
.dp-nc:is(.dp-nc--surface-deep, .dp-nc--surface-ink, .dp-nc--surface-gradient, .dp-nc--surface-mesh, .dp-nc--surface-dome, .dp-nc--surface-range, .dp-nc--surface-range-dome) .dp-team--2026 {
	--dp-team-cred: var(--dp-nc-eyebrow, currentColor);
}

/* ── L'en-tête : titre à gauche, chapô à droite, alignés par le bas ── */

.dp-team.dp-team--2026 .dp-team__header {
	margin: 0 0 clamp(30px, 4vw, 56px);
	text-align: left;
}

.dp-team.dp-team--2026 .dp-team__header--split {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	column-gap: clamp(28px, 5vw, 88px);
	row-gap: 14px;
	align-items: end;
}

/* L'arc et le liseré de la charte sont des pseudo-éléments de l'en-tête :
   dans la grille, ils prennent toute la largeur, au-dessus et au-dessous. */
.dp-team.dp-team--2026 .dp-team__header--split::before,
.dp-team.dp-team--2026 .dp-team__header--split::after {
	grid-column: 1 / -1;
}

.dp-team.dp-team--2026 .dp-team__title {
	margin: 0;
	font-family: var(--dp-font-heading, inherit);
	font-weight: var(--dp-font-heading-weight, 700);
	font-size: var(--dp-text-h2, clamp(28px, 3.4vw, 46px));
	line-height: 1.06;
	letter-spacing: -0.015em;
	color: var(--dp-team-name);
}

.dp-team.dp-team--2026 .dp-team__description {
	margin: 0;
	max-width: 52ch;
	font-size: 17px;
	line-height: 1.6;
	color: var(--dp-team-lede);
}

/* Sur un écran étroit, le chapô passe sous le titre. */
@media (max-width: 860px) {
	.dp-team.dp-team--2026 .dp-team__header--split {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}
}

/* ── Les groupes ── */

.dp-team--2026 .dp-team__set + .dp-team__set {
	margin-top: clamp(44px, 5vw, 76px);
}

.dp-team.dp-team--2026 .dp-team__set-title {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 clamp(20px, 2.2vw, 30px);
	font-family: var(--dp-font-heading, inherit);
	font-weight: 700;
	font-size: 12px;
	line-height: 1.3;
	letter-spacing: var(--dp-tracking-caps, 0.12em);
	text-transform: uppercase;
	color: var(--dp-team-cred);
}

.dp-team.dp-team--2026 .dp-team__set-title::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--dp-team-rule);
}

/* ── Les rôles de texte d'une personne ── */

.dp-team.dp-team--2026 .dp-team__who {
	margin: 0;
	font-family: var(--dp-font-heading, inherit);
	font-weight: var(--dp-font-heading-weight, 700);
	font-size: 20px;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--dp-team-name);
}

.dp-team.dp-team--2026 .dp-team__cred {
	margin: 0;
	font-family: var(--dp-font-heading, inherit);
	font-weight: 700;
	font-size: 11px;
	line-height: 1.35;
	letter-spacing: var(--dp-tracking-caps, 0.12em);
	text-transform: uppercase;
	color: var(--dp-team-cred);
}

.dp-team.dp-team--2026 .dp-team__job {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.45;
	color: var(--dp-team-job);
}

.dp-team.dp-team--2026 .dp-team__place {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--dp-team-job);
}

.dp-team--2026 .dp-team__place svg {
	flex: none;
	opacity: 0.8;
}

.dp-team.dp-team--2026 .dp-team__lede {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--dp-team-lede);
}

/* La photo. Préfixée par `img` : le reset d'Elementor (0,1,1) effacerait
   sinon sa hauteur et son arrondi (dp-charte §4g). */
.dp-team--2026 img.dp-team__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 50% var(--dp-team-focus-y, 25%);
	border-radius: 0;
}

.dp-team--2026 .dp-team__initials {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	font-family: var(--dp-font-heading, inherit);
	font-weight: 700;
	font-size: clamp(40px, 5vw, 72px);
	letter-spacing: -0.02em;
	color: var(--dp-team-tint-deep);
	background: var(--dp-team-tint-soft);
}

.dp-team--2026 .dp-team__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ── Les boutons ──
   Le reset de Hello Elementor peint tout bouton (bordure, rembourrage, aplat
   au survol et au focus) et le thème enfant y ajoute sa couleur. Chaque
   bouton de ces dessins porte `dp-team__btn`, remis à zéro ici dans ses trois
   états, avant d'être dessiné plus bas. */
.dp-team--2026 .dp-team__btn,
.dp-team--2026 .dp-team__btn:hover,
.dp-team--2026 .dp-team__btn:focus {
	-webkit-appearance: none;
	appearance: none;
	display: inline-block;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-align: inherit;
	text-transform: none;
	text-decoration: none;
	white-space: normal;
	min-width: 0;
	min-height: 0;
	cursor: pointer;
}

.dp-team--2026 .dp-team__btn:focus-visible {
	outline: 3px solid var(--dp-team-tint-fill);
	outline-offset: 3px;
	box-shadow: none;
}

/* Le bouton qui couvre une photo ou une personne entière. */
.dp-team--2026 .dp-team__btn.dp-team__hit {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: block;
	width: 100%;
	height: 100%;
	border-radius: inherit;
}

/* L'indice « Lire la bio → », en capitales. */
.dp-team.dp-team--2026 .dp-team__cue {
	display: inline-block;
	font-family: var(--dp-font-heading, inherit);
	font-weight: 700;
	font-size: 11px;
	line-height: 1.3;
	letter-spacing: var(--dp-tracking-caps, 0.12em);
	text-transform: uppercase;
	color: var(--dp-team-cred);
}

/* Les contacts : deux icônes, sans pastille. */
.dp-team--2026 .dp-team__contact {
	display: flex;
	gap: 14px;
	margin-top: 4px;
}

.dp-team--2026 .dp-team__contact a {
	display: inline-flex;
	color: var(--dp-team-cred);
	transition: color 0.2s ease, transform 0.2s ease;
}

.dp-team--2026 .dp-team__contact a:hover,
.dp-team--2026 .dp-team__contact a:focus-visible {
	color: var(--dp-team-tint-deep);
	transform: translateY(-1px);
}

/* ── Les grilles (Mosaïque, Galets) ──
   Une grille ordinaire : le nombre de colonnes de chaque palier d'écran est
   posé au rendu (`--dp-team-cols-*`), et une rangée incomplète s'arrête plus
   tôt, alignée à gauche — demandé le 13 octobre. Une personne seule garde la
   largeur d'une colonne. */
.dp-team--2026 .dp-team__grid2 {
	--dp-team-cols: var(--dp-team-cols-lg, 4);

	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: flex-start;
	gap: var(--dp-team-row-gap) var(--dp-team-gap);
}

.dp-team--2026 .dp-team__grid2 > * {
	--dp-team-col: calc((100% - (var(--dp-team-cols) - 1) * var(--dp-team-gap)) / var(--dp-team-cols));
}

.dp-team--2026 .dp-team__grid2 > .dp-team__person {
	flex: 0 0 var(--dp-team-col);
	min-width: 0;
}

@media (max-width: 1080px) {
	.dp-team--2026 .dp-team__grid2 {
		--dp-team-cols: var(--dp-team-cols-md, 4);
	}
}

@media (max-width: 860px) {
	.dp-team--2026 .dp-team__grid2 {
		--dp-team-cols: var(--dp-team-cols-sm, 3);
	}
}

@media (max-width: 620px) {
	.dp-team--2026 .dp-team__grid2 {
		--dp-team-cols: var(--dp-team-cols-xs, 2);
	}
}

/* =====================================================================
 * 1 — La famille Mosaïque : « mosaique », « mosaique-une »,
 *     « mosaique-jointive »
 * =====================================================================
 * La tuile portrait de la maquette (« Nomination — Ana Morcate ») : la photo
 * pleine au format 4 : 5, les titres dans la pastille blanche, le nom en blanc
 * sur le voile. Chaque groupe ouvre sur une tuile de la teinte du bloc, de
 * deux colonnes — toujours deux (« il faudrait qu'ils fassent tous deux
 * colonnes, pas plus ») —, qui porte son nom en grand sous l'arc du Ô.
 *
 * Trois placements, calculés au rendu pour quatre paliers d'écran :
 *   - classique : une grille de quatre colonnes, rangée incomplète à gauche ;
 *   - à la une  : la première personne du groupe en 2 × 2 (grille dense) ;
 *   - jointive  : un seul mur par groupe, arrondi aux angles extérieurs.
 * Survol : la tuile monte (B11), la photo s'agrandit, la bio courte glisse
 * sous le nom ; toute la tuile ouvre la fiche.
 * ===================================================================== */
.dp-team--mosaic {
	--dp-team-gap: 14px;
}

/* ── La tuile photo ── */
.dp-team--mosaic .dp-team__person:not(.dp-team__pair) {
	position: relative;
	isolation: isolate;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--dp-team-radius);
	background: var(--dp-team-tint-soft);
	transition: transform 0.4s var(--dp-team-ease), box-shadow 0.4s var(--dp-team-ease);
}

.dp-team--mosaic .dp-team__person:not(.dp-team__pair) > .dp-team__media {
	position: absolute;
	inset: 0;
}

.dp-team--mosaic img.dp-team__img {
	transition: transform 0.9s var(--dp-team-ease);
}

.dp-team--mosaic .dp-team__person:not(.dp-team__pair) > .dp-team__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--dp-team-scrim);
	pointer-events: none;
}

.dp-team--mosaic .dp-team__person:not(.dp-team__pair) > .dp-team__body {
	position: absolute;
	inset: auto 0 0 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	padding: clamp(14px, 1.6vw, 22px);
}

.dp-team.dp-team--mosaic .dp-team__person:not(.dp-team__pair) .dp-team__cred {
	margin-bottom: 9px;
	padding: 6px 11px 5px;
	border-radius: var(--dp-radius-pill, 999px);
	background: #ffffff;
	color: var(--dp-team-tint-deep);
	font-size: 10px;
}

.dp-team.dp-team--mosaic .dp-team__person:not(.dp-team__pair) .dp-team__who {
	font-size: clamp(17px, 1.55vw, 22px);
	color: var(--dp-team-on-photo);
}

.dp-team.dp-team--mosaic .dp-team__person:not(.dp-team__pair) .dp-team__job {
	font-size: 13.5px;
	line-height: 1.35;
	color: var(--dp-team-on-photo);
	opacity: 0.86;
}

.dp-team.dp-team--mosaic .dp-team__person:not(.dp-team__pair) .dp-team__place {
	font-size: 12.5px;
	color: var(--dp-team-on-photo);
	opacity: 0.74;
}

/* La bio courte et l'indice de la fiche, repliés sous le nom. */
.dp-team--mosaic .dp-team__reveal {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.45s var(--dp-team-ease);
}

.dp-team--mosaic .dp-team__reveal > div {
	min-height: 0;
	overflow: hidden;
}

.dp-team.dp-team--mosaic .dp-team__reveal .dp-team__lede {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
	padding-top: 10px;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--dp-team-on-photo);
	opacity: 0.92;
}

.dp-team.dp-team--mosaic .dp-team__reveal .dp-team__cue {
	padding-top: 10px;
	color: var(--dp-team-on-photo);
}

.dp-team--mosaic .dp-team__person:focus-within .dp-team__reveal {
	grid-template-rows: 1fr;
}

@media (hover: hover) {
	.dp-team--mosaic .dp-team__person:not(.dp-team__pair):hover {
		transform: translateY(-4px);
		box-shadow: var(--dp-shadow-hover, 0 18px 40px rgba(16, 51, 96, 0.16));
	}

	.dp-team--mosaic .dp-team__person:hover img.dp-team__img {
		transform: scale(1.04);
	}

	.dp-team--mosaic .dp-team__person:hover .dp-team__reveal {
		grid-template-rows: 1fr;
	}
}

/* Sans photo : les initiales sur la teinte claire, le texte en encre. */
.dp-team--mosaic .dp-team__person.no-photo > .dp-team__media::after {
	content: none;
}

.dp-team--mosaic .dp-team__person.no-photo:not(.dp-team__pair) .dp-team__initials {
	padding-bottom: 30%;
	box-sizing: border-box;
}

.dp-team.dp-team--mosaic .dp-team__person.no-photo:not(.dp-team__pair) :is(.dp-team__who, .dp-team__job, .dp-team__place, .dp-team__lede, .dp-team__cue) {
	color: var(--dp-team-name);
}

/* ── La tuile du groupe : deux colonnes, la teinte du bloc, le nom en grand
   en bas à gauche, l'arc du Ô en haut — le « petit chapeau » des titres. ── */
.dp-team--mosaic .dp-team__tile {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	box-sizing: border-box;
	min-width: 0;
	min-height: clamp(120px, 12vw, 168px);
	padding: clamp(18px, 2.2vw, 30px);
	border-radius: var(--dp-team-radius);
	background: var(--dp-team-tile-bg, var(--dp-team-tint));
	color: var(--dp-team-tile-text, var(--dp-team-on-tint));
}

.dp-team--mosaic .dp-team__tile::before {
	content: '';
	width: 40px;
	height: 18px;
	margin-bottom: auto;
	padding-bottom: 20px;
	box-sizing: content-box;
	background: currentColor;
	-webkit-mask: var(--dp-asset-arc, url(../img/pictos/arc-dark.svg)) left top / 40px 18px no-repeat;
	mask: var(--dp-asset-arc, url(../img/pictos/arc-dark.svg)) left top / 40px 18px no-repeat;
}

.dp-team.dp-team--mosaic .dp-team__tile .dp-team__set-title {
	display: block;
	max-width: 16ch;
	margin: 0;
	font-size: clamp(24px, 2.7vw, 40px);
	line-height: 1.02;
	letter-spacing: -0.02em;
	text-transform: none;
	color: inherit;
}

.dp-team.dp-team--mosaic .dp-team__tile .dp-team__set-title::after {
	content: none;
}

/* ── Classique : une grille de colonnes, la tuile du groupe en prend deux ── */
.dp-team--mosaique .dp-team__grid2 {
	align-items: stretch;
	row-gap: var(--dp-team-gap);
}

.dp-team--mosaique .dp-team__grid2 > .dp-team__tile {
	flex: 0 0 calc(2 * var(--dp-team-col) + var(--dp-team-gap));
}

/* ── À la une : une grille dense, la première personne en 2 × 2 ──
   Les étendues de chaque tuile sont posées au rendu, par palier
   (`--w-lg`, `--h-lg`…) ; le rendu a vérifié que la grille ne laisse pas de
   trou. Le format suit l'étendue : 4 : 5 par case. */
.dp-team--mosaique-une .dp-team__bento {
	--dp-team-cols: var(--dp-team-cols-lg, 4);

	display: grid;
	grid-template-columns: repeat(var(--dp-team-cols), minmax(0, 1fr));
	grid-auto-flow: row dense;
	gap: var(--dp-team-gap);
}

.dp-team--mosaique-une .dp-team__bento > * {
	--dp-team-w: var(--w-lg, 1);
	--dp-team-h: var(--h-lg, 1);

	grid-column: span var(--dp-team-w);
	grid-row: span var(--dp-team-h);
	aspect-ratio: calc(4 * var(--dp-team-w)) / calc(5 * var(--dp-team-h));
	min-height: 0;
}

.dp-team.dp-team--mosaique-une .dp-team__bento > .dp-team__tile {
	--dp-team-w: 2;
}

/* La personne à la une : plus grand, et sa bio courte reste lisible. La
   classe dit sur quel palier d'écran elle est à la une — sur un autre, elle
   peut n'être qu'une tuile parmi les autres. */
@media (min-width: 1081px) {
	.dp-team.dp-team--mosaic .is-une-lg .dp-team__who { font-size: clamp(24px, 2.5vw, 36px); }
	.dp-team.dp-team--mosaic .is-une-lg .dp-team__job { font-size: 15px; }
	.dp-team.dp-team--mosaic .is-une-lg .dp-team__reveal { grid-template-rows: 1fr; }
	.dp-team.dp-team--mosaic .is-une-lg .dp-team__reveal .dp-team__lede { max-width: 46ch; font-size: 15px; }
}

@media (min-width: 861px) and (max-width: 1080px) {
	.dp-team.dp-team--mosaic .is-une-md .dp-team__who { font-size: clamp(24px, 2.5vw, 34px); }
	.dp-team.dp-team--mosaic .is-une-md .dp-team__job { font-size: 15px; }
	.dp-team.dp-team--mosaic .is-une-md .dp-team__reveal { grid-template-rows: 1fr; }
	.dp-team.dp-team--mosaic .is-une-md .dp-team__reveal .dp-team__lede { max-width: 46ch; font-size: 15px; }
}

@media (min-width: 621px) and (max-width: 860px) {
	.dp-team.dp-team--mosaic .is-une-sm .dp-team__who { font-size: 26px; }
	.dp-team.dp-team--mosaic .is-une-sm .dp-team__reveal { grid-template-rows: 1fr; }
}

@media (max-width: 620px) {
	.dp-team.dp-team--mosaic .is-une-xs .dp-team__who { font-size: 22px; }
	.dp-team.dp-team--mosaic .is-une-xs .dp-team__reveal { grid-template-rows: 1fr; }
	.dp-team.dp-team--mosaic .is-une-xs .dp-team__cred { display: inline-flex; }
}

/* ── Jointive : un seul mur par groupe ──
   Les tuiles se touchent — un joint de 3 px —, et seul le pourtour du mur
   est arrondi (B11 : « bord arrondi sauf si enchaînement de plusieurs
   blocs »). Le mur est toujours un rectangle : le rendu choisit ses colonnes
   et élargit les dernières tuiles pour fermer la dernière rangée. Il prend
   toute la largeur du bloc, quel que soit le nombre de personnes. Au survol, la
   tuile ne monte pas — elle sortirait du mur. */
.dp-team--mosaique-jointive .dp-team__wall {
	--dp-team-max: var(--dp-team-max-lg, 4);
	--dp-team-cols: var(--dp-team-cols-lg, 4);
	--dp-team-seam: 3px;

	display: grid;
	grid-template-columns: repeat(var(--dp-team-cols), minmax(0, 1fr));
	gap: var(--dp-team-seam);
	width: calc(var(--dp-team-cols) * (100% - (var(--dp-team-max) - 1) * var(--dp-team-seam)) / var(--dp-team-max) + (var(--dp-team-cols) - 1) * var(--dp-team-seam));
	max-width: 100%;
	overflow: hidden;
	isolation: isolate;
	border-radius: var(--dp-team-radius);
}

.dp-team--mosaique-jointive .dp-team__wall > * {
	--dp-team-w: var(--w-lg, 1);

	grid-column: span var(--dp-team-w);
}

/* Dans le mur, seul le pourtour est arrondi : les tuiles perdent le leur.
   Une classe de plus que la tuile commune, qui le pose. */
.dp-team.dp-team--mosaique-jointive .dp-team__wall > * {
	border-radius: 0;
}

.dp-team--mosaique-jointive .dp-team__wall > .dp-team__person {
	aspect-ratio: calc(4 * var(--dp-team-w)) / 5;
}

.dp-team.dp-team--mosaique-jointive .dp-team__wall > .dp-team__tile {
	grid-column: span 2;
}

.dp-team.dp-team--mosaique-jointive .dp-team__wall > .dp-team__person:hover {
	transform: none;
	box-shadow: none;
}

@media (max-width: 1080px) {
	.dp-team--mosaique-une .dp-team__bento { --dp-team-cols: var(--dp-team-cols-md, 4); }
	.dp-team--mosaique-une .dp-team__bento > * { --dp-team-w: var(--w-md, 1); --dp-team-h: var(--h-md, 1); }
	.dp-team--mosaique-jointive .dp-team__wall { --dp-team-max: var(--dp-team-max-md, 4); --dp-team-cols: var(--dp-team-cols-md, 4); }
	.dp-team--mosaique-jointive .dp-team__wall > * { --dp-team-w: var(--w-md, 1); }
}

@media (max-width: 860px) {
	.dp-team--mosaique-une .dp-team__bento { --dp-team-cols: var(--dp-team-cols-sm, 3); }
	.dp-team--mosaique-une .dp-team__bento > * { --dp-team-w: var(--w-sm, 1); --dp-team-h: var(--h-sm, 1); }
	.dp-team--mosaique-jointive .dp-team__wall { --dp-team-max: var(--dp-team-max-sm, 3); --dp-team-cols: var(--dp-team-cols-sm, 3); }
	.dp-team--mosaique-jointive .dp-team__wall > * { --dp-team-w: var(--w-sm, 1); }
}

@media (max-width: 620px) {
	.dp-team--mosaic {
		--dp-team-gap: 10px;
	}

	.dp-team--mosaique-une .dp-team__bento { --dp-team-cols: var(--dp-team-cols-xs, 2); }
	.dp-team--mosaique-une .dp-team__bento > * { --dp-team-w: var(--w-xs, 1); --dp-team-h: var(--h-xs, 1); }
	.dp-team--mosaique-jointive .dp-team__wall { --dp-team-max: var(--dp-team-max-xs, 2); --dp-team-cols: var(--dp-team-cols-xs, 2); }
	.dp-team--mosaique-jointive .dp-team__wall > * { --dp-team-w: var(--w-xs, 1); }

	.dp-team--mosaic .dp-team__person:not(.dp-team__pair) > .dp-team__body {
		padding: 12px;
	}

	.dp-team.dp-team--mosaic .dp-team__person:not(.dp-team__pair) .dp-team__who {
		font-size: 15.5px;
	}

	/* 13 et non 12 px : en blanc sur la photo, sur quatre lignes parfois,
	   la fonction ne se lisait plus au téléphone. */
	.dp-team.dp-team--mosaic .dp-team__person:not(.dp-team__pair) .dp-team__job {
		font-size: 13px;
	}

	.dp-team.dp-team--mosaic .dp-team__person:not(.dp-team__pair) .dp-team__cred {
		display: none;
	}

	.dp-team.dp-team--mosaic .dp-team__tile .dp-team__set-title {
		font-size: 24px;
	}
}

/* =====================================================================
 * 2 — « galets » : la forme des portraits de la charte
 * =====================================================================
 * La photo découpée en galet — un coin franc, trois flancs arrondis —, en
 * grand, sur du blanc. Une colonne sur deux descend d'un cran (rang décalé,
 * ordinateur seulement). Le « + » blanc de la maquette, posé sur le flanc,
 * ouvre la fiche ; il n'existe que s'il y a quelque chose à lire. Au survol,
 * le coin franc passe de l'autre côté.
 * ===================================================================== */
.dp-team--galets {
	--dp-team-gap: clamp(22px, 2.8vw, 40px);
	--dp-team-row-gap: clamp(40px, 4.4vw, 60px);
	--dp-team-photo-max: 260px;
	--dp-team-pebble: var(--dp-nc-pebble-radius, 24px 200px 200px 200px);
	--dp-team-pebble-turn: 200px 24px 200px 200px;
}

.dp-team--galets .dp-team__person {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.dp-team--galets .dp-team__media {
	position: relative;
	width: 100%;
	max-width: var(--dp-team-photo-max);
}

.dp-team--galets .dp-team__pebble {
	aspect-ratio: 1 / 1.08;
	overflow: hidden;
	border-radius: var(--dp-team-pebble);
	background: var(--dp-team-tint-soft);
	transition: border-radius 0.7s var(--dp-team-ease);
}

.dp-team--galets img.dp-team__img {
	transition: transform 0.9s var(--dp-team-ease);
}

.dp-team--galets .dp-team__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: var(--dp-team-photo-max);
}

.dp-team.dp-team--galets .dp-team__who {
	font-size: clamp(19px, 1.7vw, 23px);
}

.dp-team.dp-team--galets .dp-team__lede {
	margin-top: 6px;
}

/* Un liseré d'un pixel dessine la silhouette quand la photo a un fond
   blanc : sans lui, le galet se dissout dans la page. */
.dp-team--galets .dp-team__pebble {
	position: relative;
}

.dp-team--galets .dp-team__pebble::after,
.dp-team--sommaire .dp-team__frame::after,
.dp-team .dp-team__sheet-media::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(16, 51, 96, 0.1);
	pointer-events: none;
}

@media (hover: hover) {
	.dp-team--galets .dp-team__person:hover .dp-team__pebble {
		border-radius: var(--dp-team-pebble-turn);
	}

	.dp-team--galets .dp-team__person:hover img.dp-team__img {
		transform: scale(1.04);
	}
}

.dp-team--2026.dp-team--galets .dp-team__btn.dp-team__plus {
	position: absolute;
	right: 5%;
	bottom: 5%;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #ffffff;
	color: var(--dp-team-tint-strong);
	box-shadow: var(--dp-shadow-md, 0 10px 28px rgba(16,51,96,.10));
	transition: transform 0.4s var(--dp-team-ease), background-color 0.25s ease, color 0.25s ease;
}

.dp-team--2026.dp-team--galets .dp-team__btn.dp-team__plus:hover,
.dp-team--2026.dp-team--galets .dp-team__btn.dp-team__plus:focus-visible {
	background: var(--dp-team-accent-fill);
	color: var(--dp-team-on-accent);
	transform: rotate(90deg);
}

@media (min-width: 1081px) {
	.dp-team--galets.dp-team--stagger .dp-team__person.is-low {
		margin-top: clamp(32px, 3.6vw, 56px);
	}
}

@media (max-width: 620px) {
	.dp-team--galets {
		--dp-team-gap: 16px;
		--dp-team-row-gap: 32px;
	}

	.dp-team--galets .dp-team__person {
		gap: 14px;
	}

	.dp-team.dp-team--galets .dp-team__who {
		font-size: 17px;
	}

	.dp-team--2026.dp-team--galets .dp-team__btn.dp-team__plus {
		width: 40px;
		height: 40px;
	}
}

/* =====================================================================
 * 3 — « sommaire » : les noms défilent, la fenêtre suit
 * =====================================================================
 * Les noms en taille d'affichage sous filet, la fonction en regard ; une
 * seule grande fenêtre — l'arche du Ô, une fois, en grand — reste fixe
 * pendant qu'on fait défiler la page. Le nom qui passe au milieu de l'écran
 * s'allume, et la fenêtre fond vers sa photo (« il faut que les noms défilent
 * en même temps que le scroll », 13 octobre) ; les autres s'estompent à
 * mesure qu'ils s'en éloignent. Un clic ou le clavier amènent un nom au
 * milieu.
 *
 * La liste a, au-dessus et au-dessous, la marge qu'il faut pour que le
 * premier nom atteigne le milieu de l'écran quand la fenêtre se fixe, et le
 * dernier avant qu'elle reparte.
 *
 * La fenêtre est un doublon visuel (`aria-hidden`) : ses détails sont aussi
 * dans la ligne, masqués à l'œil sur ordinateur. Sur téléphone, la fenêtre
 * disparaît, la ligne porte sa vignette et ses détails, sans défilé.
 * ===================================================================== */
.dp-team--sommaire {
	--dp-team-window: 40%;
	--dp-team-sticky: 24px;
	--dp-team-frame-radius: 50% 50% var(--dp-radius-lg, 20px) var(--dp-radius-lg, 20px) / 40% 40% var(--dp-radius-lg, 20px) var(--dp-radius-lg, 20px);
}

/* Le dôme du Ô : la demi-ellipse, flancs verticaux. */
.dp-team--window-dome {
	--dp-team-frame-radius: var(--dp-radius-dome, 50% 50% 0 0 / 78% 78% 0 0);
}

.dp-team--window-rounded {
	--dp-team-frame-radius: var(--dp-radius-xl, 32px);
}

.dp-team--sommaire .dp-team__index {
	display: grid;
	grid-template-columns: var(--dp-team-window) minmax(0, 1fr);
	column-gap: clamp(32px, 5.4vw, 88px);
	align-items: start;
}

/* La fenêtre se fixe sous l'en-tête du site, dont le thème publie la
   hauteur, et tient dans l'écran : sa largeur est bornée par la hauteur
   disponible, au format 4 : 5, légende comprise. */
.dp-team--sommaire .dp-team__window {
	position: sticky;
	top: calc(var(--dp-header-height, 0px) + var(--dp-team-sticky));
}

.dp-team--sommaire .dp-team__frame {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	width: min(100%, calc((100vh - var(--dp-header-height, 0px) - 2 * var(--dp-team-sticky) - var(--dp-team-caption, 130px)) * 0.8));
	aspect-ratio: 4 / 5;
	border-radius: var(--dp-team-frame-radius);
	background: var(--dp-gradient-dome, var(--dp-team-tint-soft));
}

.dp-team--sommaire .dp-team__shot {
	position: absolute;
	inset: 0;
	opacity: 0;
	transform: scale(1.04);
	transition: opacity 0.55s var(--dp-team-ease), transform 1.1s var(--dp-team-ease);
}

.dp-team--sommaire .dp-team__shot.is-active {
	opacity: 1;
	transform: none;
}

.dp-team--sommaire .dp-team__shot .dp-team__initials {
	background: transparent;
}

.dp-team--sommaire .dp-team__captions {
	display: grid;
	margin-top: 22px;
}

.dp-team--sommaire .dp-team__caption {
	grid-area: 1 / 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s var(--dp-team-ease), visibility 0s linear 0.35s;
}

.dp-team--sommaire .dp-team__caption.is-active {
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}

.dp-team.dp-team--sommaire .dp-team__caption .dp-team__lede {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	max-width: 46ch;
	font-size: 15px;
}

/* La liste : la marge du haut amène le premier nom au milieu de l'écran
   quand la fenêtre se fixe, celle du bas laisse au dernier le temps d'y
   passer avant qu'elle reparte. */
.dp-team--sommaire .dp-team__lines {
	padding-block:
		max(0px, calc(50vh - var(--dp-header-height, 0px) - 120px))
		max(0px, calc(50vh - 80px));
}

.dp-team--sommaire .dp-team__set + .dp-team__set {
	margin-top: clamp(30px, 3.2vw, 46px);
}

.dp-team.dp-team--sommaire .dp-team__set-title {
	margin-bottom: 0;
}

.dp-team--sommaire .dp-team__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dp-team--sommaire .dp-team__line {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 20px;
	padding: clamp(16px, 2.4vh, 26px) 0;
	border-bottom: 1px solid var(--dp-team-rule);
	transform-origin: left center;
}

/* La personne dans la fenêtre : le filet de sa ligne s'épaissit dans la
   teinte, de gauche à droite. */
.dp-team--sommaire .dp-team__line::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	height: 2px;
	background: var(--dp-team-accent-fill);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.55s var(--dp-team-ease);
}

.dp-team--sommaire .dp-team__line.is-active::after {
	transform: scaleX(1);
}

/* Le défilé : chaque ligne s'éclaire en approchant du milieu de l'écran et
   s'estompe en s'en éloignant, en suivant le défilement lui-même
   (`animation-timeline: view()`). Sans cette propriété, toutes restent
   pleines : seule la ligne allumée change. */
@supports (animation-timeline: view()) {
	@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
		.dp-team--sommaire .dp-team__line {
			animation: dp-team-defile linear both;
			animation-timeline: view();
			animation-range: cover 0% cover 100%;
		}
	}
}

@keyframes dp-team-defile {
	0%,
	100% {
		opacity: 0.28;
		transform: translateX(14px);
	}

	38%,
	62% {
		opacity: 1;
		transform: none;
	}
}

.dp-team--sommaire .dp-team__thumb {
	display: none;
}

.dp-team--sommaire .dp-team__line-text {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 18px;
	row-gap: 4px;
	min-width: 0;
}

.dp-team.dp-team--sommaire .dp-team__who {
	font-size: clamp(22px, 2.3vw, 32px);
	line-height: 1.1;
}

.dp-team--2026.dp-team--sommaire .dp-team__btn.dp-team__pick {
	color: var(--dp-team-name);
	transition: color 0.3s ease;
}

.dp-team--2026.dp-team--sommaire .dp-team__line.is-active .dp-team__btn.dp-team__pick {
	color: var(--dp-team-tint-strong);
}

.dp-team.dp-team--sommaire .dp-team__job {
	font-size: 15px;
}

.dp-team--sommaire .dp-team__details {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.dp-team--2026.dp-team--sommaire .dp-team__btn.dp-team__more {
	font-family: var(--dp-font-heading, inherit);
	font-weight: 700;
	font-size: 11.5px;
	line-height: 1.3;
	letter-spacing: var(--dp-tracking-caps, 0.12em);
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--dp-team-cred);
	opacity: 0;
	transform: translateX(-8px);
	transition: opacity 0.3s ease, transform 0.35s var(--dp-team-ease);
}

.dp-team--2026.dp-team--sommaire .dp-team__line:is(.is-active, :focus-within) .dp-team__btn.dp-team__more {
	opacity: 1;
	transform: none;
}

@media (max-width: 860px) {
	.dp-team--sommaire .dp-team__index {
		grid-template-columns: minmax(0, 1fr);
	}

	.dp-team--sommaire .dp-team__window {
		display: none;
	}

	.dp-team--sommaire .dp-team__lines {
		padding-block: 0;
	}

	.dp-team--sommaire .dp-team__line {
		grid-template-columns: 72px minmax(0, 1fr);
		align-items: start;
		column-gap: 16px;
		padding: 16px 0;
	}

	.dp-team--sommaire .dp-team__line::after {
		content: none;
	}

	.dp-team--sommaire .dp-team__thumb {
		display: block;
		width: 72px;
		height: 72px;
		overflow: hidden;
		border-radius: 10px 50% 50% 50%;
		background: var(--dp-team-tint-soft);
	}

	.dp-team--sommaire .dp-team__thumb .dp-team__initials {
		font-size: 24px;
	}

	.dp-team.dp-team--sommaire .dp-team__who {
		font-size: 20px;
	}

	.dp-team--sommaire .dp-team__line-text {
		flex-direction: column;
		align-items: flex-start;
	}

	.dp-team--sommaire .dp-team__details {
		position: static;
		width: auto;
		height: auto;
		overflow: visible;
		clip: auto;
		clip-path: none;
		white-space: normal;
		display: flex;
		flex-direction: column;
		gap: 6px;
		margin-top: 6px;
	}

	.dp-team--2026.dp-team--sommaire .dp-team__line .dp-team__btn.dp-team__more {
		grid-column: 2;
		justify-self: start;
		margin-top: 10px;
		opacity: 1;
		transform: none;
	}

	.dp-team--2026.dp-team--sommaire .dp-team__line.is-active .dp-team__btn.dp-team__pick {
		color: var(--dp-team-name);
	}
}

/* =====================================================================
 * 4 — « carte-posee » : le portrait et sa fiche
 * =====================================================================
 * La photo en grand, la carte blanche posée devant elle, à cheval sur son
 * bord (« Image + citation », B20 ; « Vidéo avec citation devant », B18).
 * Une personne par rangée, côté alterné ; deux par rangée, la carte monte
 * sur le bas de la photo. La carte glisse depuis la photo à son entrée dans
 * l'écran (script : `is-ready`, puis `is-in`) ; sans script, tout est là.
 * ===================================================================== */
.dp-team--carte-posee {
	--dp-team-overlap: clamp(48px, 6.4vw, 104px);
	--dp-team-row-gap: clamp(48px, 6vw, 96px);
	--dp-team-gap: clamp(24px, 3vw, 48px);
	--dp-team-photo-radius: var(--dp-radius-xl, 32px);
}

.dp-team--carte-posee .dp-team__stories {
	display: flex;
	flex-direction: column;
	gap: var(--dp-team-row-gap);
}

.dp-team--carte-posee .dp-team__story {
	display: grid;
	grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
	align-items: center;
}

.dp-team--carte-posee .dp-team__story > .dp-team__media {
	grid-area: 1 / 1;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--dp-team-radius, var(--dp-team-photo-radius));
	background: var(--dp-team-tint-soft);
}

.dp-team--carte-posee .dp-team__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	box-sizing: border-box;
	max-width: 540px;
	padding: clamp(26px, 3vw, 44px);
	border-radius: var(--dp-team-card-radius);
	background: var(--dp-team-card);
	box-shadow: var(--dp-shadow-xl, 0 28px 60px rgba(17, 59, 83, 0.12));
}

.dp-team--carte-posee .dp-team__story > .dp-team__panel {
	grid-area: 1 / 2;
	margin-left: calc(-1 * var(--dp-team-overlap));
}

.dp-team--carte-posee .dp-team__story.is-flip {
	grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
}

.dp-team--carte-posee .dp-team__story.is-flip > .dp-team__media {
	grid-area: 1 / 2;
}

.dp-team--carte-posee .dp-team__story.is-flip > .dp-team__panel {
	grid-area: 1 / 1;
	justify-self: end;
	margin-left: 0;
	margin-right: calc(-1 * var(--dp-team-overlap));
}

/* Les textes de la carte restent en encre, quelle que soit la surface : la
   carte est blanche. */
.dp-team--carte-posee .dp-team__panel {
	--dp-team-name: var(--dp-color-text, #303030);
	--dp-team-job: var(--dp-color-text, #303030);
	--dp-team-lede: var(--dp-color-text-muted, #5b5b5b);
	--dp-team-cred: var(--dp-team-tint-strong);
}

.dp-team.dp-team--carte-posee .dp-team__who {
	font-size: clamp(26px, 2.8vw, 38px);
	line-height: 1.05;
}

.dp-team.dp-team--carte-posee .dp-team__job {
	font-size: 17px;
}

.dp-team.dp-team--carte-posee .dp-team__lede {
	margin-top: 8px;
	font-size: 16.5px;
	line-height: 1.65;
}

.dp-team--carte-posee .dp-team__fullbio {
	font-size: 15.5px;
	line-height: 1.7;
	color: var(--dp-team-lede);
}

.dp-team--carte-posee .dp-team__fullbio p {
	margin: 0 0 10px;
}

.dp-team--carte-posee .dp-team__fullbio p:last-child {
	margin-bottom: 0;
}

.dp-team--2026.dp-team--carte-posee .dp-team__btn.dp-team__unfold {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
	font-family: var(--dp-font-heading, inherit);
	font-weight: 700;
	font-size: 11.5px;
	line-height: 1.3;
	letter-spacing: var(--dp-tracking-caps, 0.12em);
	text-transform: uppercase;
	color: var(--dp-team-cred);
}

.dp-team--carte-posee .dp-team__unfold svg {
	transition: transform 0.25s ease;
}

.dp-team--carte-posee .dp-team__unfold[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

/* Deux par rangée : la carte monte sur le bas de la photo. */
.dp-team--carte-posee .dp-team__stories.is-pairs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--dp-team-gap);
	row-gap: var(--dp-team-row-gap);
}

.dp-team--carte-posee .is-pairs .dp-team__story {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.dp-team--carte-posee .is-pairs .dp-team__story > .dp-team__media {
	aspect-ratio: 4 / 3;
}

.dp-team--carte-posee .is-pairs .dp-team__story > .dp-team__panel {
	max-width: none;
	margin: calc(-1 * var(--dp-team-overlap) * 0.8) clamp(16px, 2.4vw, 32px) 0;
}

/* L'entrée dans l'écran : la carte glisse depuis la photo, la photo se pose. */
.dp-team--carte-posee.is-ready .dp-team__story > .dp-team__panel {
	opacity: 0;
	transform: translateX(-32px);
	transition: opacity 0.7s var(--dp-team-ease), transform 0.9s var(--dp-team-ease);
}

.dp-team--carte-posee.is-ready .dp-team__story.is-flip > .dp-team__panel {
	transform: translateX(32px);
}

.dp-team--carte-posee.is-ready .is-pairs .dp-team__story > .dp-team__panel {
	transform: translateY(28px);
}

.dp-team--carte-posee.is-ready .dp-team__story > .dp-team__media img.dp-team__img {
	transform: scale(1.06);
	transition: transform 1.4s var(--dp-team-ease);
}

.dp-team--carte-posee.is-ready .dp-team__story.is-in > .dp-team__panel {
	opacity: 1;
	transform: none;
	transition-delay: 0.15s;
}

.dp-team--carte-posee.is-ready .dp-team__story.is-in > .dp-team__media img.dp-team__img {
	transform: none;
}

@media (max-width: 860px) {
	.dp-team--carte-posee .dp-team__story,
	.dp-team--carte-posee .dp-team__story.is-flip,
	.dp-team--carte-posee .is-pairs .dp-team__story {
		display: flex;
		flex-direction: column;
		align-items: stretch;
	}

	.dp-team--carte-posee .dp-team__stories.is-pairs {
		display: flex;
		flex-direction: column;
	}

	.dp-team--carte-posee .dp-team__story > .dp-team__media,
	.dp-team--carte-posee .is-pairs .dp-team__story > .dp-team__media {
		aspect-ratio: 1 / 1;
		max-height: 70vh;
	}

	.dp-team--carte-posee .dp-team__story > .dp-team__panel,
	.dp-team--carte-posee .dp-team__story.is-flip > .dp-team__panel,
	.dp-team--carte-posee .is-pairs .dp-team__story > .dp-team__panel {
		max-width: none;
		margin: -56px 16px 0;
		justify-self: auto;
	}

	.dp-team--carte-posee.is-ready .dp-team__story > .dp-team__panel,
	.dp-team--carte-posee.is-ready .dp-team__story.is-flip > .dp-team__panel {
		transform: translateY(24px);
	}
}

/* =====================================================================
 * 5 — « volets » : des visages en panneaux
 * =====================================================================
 * Des panneaux photo jointifs ; celui qu'on survole s'ouvre et reçoit la
 * carte blanche, les autres se resserrent sur le visage, le nom écrit à la
 * verticale. Photo, nom vertical, bouton et carte partagent une seule
 * cellule de grille (même mécanique que les Volets des Expertises).
 *
 * La rangée est plafonnée par le nombre de personnes — trois volets ne
 * s'étirent pas sur 1 180 px — et s'aligne à gauche. Ouvert : le premier au repos, puis le dernier
 * survolé, touché ou atteint au clavier (script). Sans script : le survol.
 * ===================================================================== */
.dp-team--volets {
	--dp-team-volet-h: clamp(400px, 38vw, 540px);
	--dp-team-volet-open: 3.4;
	--dp-team-gap: 8px;
}

.dp-team--volets .dp-team__shutters {
	display: flex;
	gap: var(--dp-team-gap);
	height: var(--dp-team-volet-h);
	max-width: calc(var(--dp-team-n, 4) * 190px + 260px);
	/* Une rangée qui n'occupe pas toute la largeur s'aligne à gauche. */
	margin-inline: 0 auto;
}

.dp-team--volets .dp-team__shutter {
	position: relative;
	display: grid;
	grid-template: minmax(0, 1fr) / minmax(0, 1fr);
	flex: 1 1 0;
	min-width: 0;
	overflow: hidden;
	isolation: isolate;
	border-radius: var(--dp-team-radius);
	background: var(--dp-team-tint-soft);
	transition: flex-grow 0.7s var(--dp-team-ease);
}

.dp-team--volets .dp-team__shutter > .dp-team__media {
	grid-area: 1 / 1;
	position: relative;
}

.dp-team--volets .dp-team__shutter > .dp-team__media > img.dp-team__img {
	position: absolute;
	inset: 0;
	transition: transform 1.2s var(--dp-team-ease);
}

.dp-team--volets .dp-team__shutter > .dp-team__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--dp-team-scrim);
	transition: opacity 0.45s var(--dp-team-ease);
}

.dp-team--volets .dp-team__spine {
	grid-area: 1 / 1;
	z-index: 1;
	align-self: end;
	justify-self: start;
	margin: 0;
	padding: clamp(16px, 1.8vw, 22px);
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	white-space: nowrap;
	font-family: var(--dp-font-heading, inherit);
	font-weight: 700;
	font-size: 17px;
	line-height: 1.1;
	letter-spacing: -0.005em;
	color: var(--dp-team-on-photo);
	transition: opacity 0.3s var(--dp-team-ease);
}

.dp-team--2026.dp-team--volets .dp-team__btn.dp-team__open {
	grid-area: 1 / 1;
	z-index: 2;
	display: block;
	width: 100%;
	height: 100%;
	border-radius: inherit;
}

.dp-team--volets .dp-team__shutter > .dp-team__panel {
	grid-area: 1 / 1;
	z-index: 3;
	align-self: end;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 7px;
	box-sizing: border-box;
	width: 360px;
	max-width: calc(100% - 2 * clamp(12px, 1.4vw, 18px));
	margin: clamp(12px, 1.4vw, 18px);
	padding: clamp(18px, 2vw, 26px);
	border-radius: var(--dp-team-card-radius);
	background: var(--dp-team-card);
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px);
	transition: opacity 0.3s var(--dp-team-ease), transform 0.45s var(--dp-team-ease), visibility 0s linear 0.45s;
}

.dp-team--volets .dp-team__panel {
	--dp-team-name: var(--dp-color-text, #303030);
	--dp-team-job: var(--dp-color-text, #303030);
	--dp-team-lede: var(--dp-color-text-muted, #5b5b5b);
	--dp-team-cred: var(--dp-team-tint-strong);
}

.dp-team.dp-team--volets .dp-team__who {
	font-size: clamp(20px, 1.8vw, 25px);
}

.dp-team.dp-team--volets .dp-team__lede {
	margin-top: 4px;
	font-size: 14px;
}

.dp-team--2026.dp-team--volets .dp-team__btn.dp-team__more {
	margin-top: 8px;
	font-family: var(--dp-font-heading, inherit);
	font-weight: 700;
	font-size: 11.5px;
	line-height: 1.3;
	letter-spacing: var(--dp-tracking-caps, 0.12em);
	text-transform: uppercase;
	color: var(--dp-team-cred);
}

/* L'état ouvert, écrit une fois et appliqué par les trois chemins qui y
   mènent : survol et clavier sans script, `is-active` avec. */
.dp-team--volets:not(.is-ready) .dp-team__shutters:hover .dp-team__shutter:hover,
.dp-team--volets:not(.is-ready) .dp-team__shutter:focus-within,
.dp-team--volets:not(.is-ready) .dp-team__shutters:not(:hover, :focus-within) .dp-team__shutter.is-active,
.dp-team--volets.is-ready .dp-team__shutter.is-active {
	flex-grow: var(--dp-team-volet-open);
}

.dp-team--volets:not(.is-ready) .dp-team__shutters:hover .dp-team__shutter:hover > .dp-team__panel,
.dp-team--volets:not(.is-ready) .dp-team__shutter:focus-within > .dp-team__panel,
.dp-team--volets:not(.is-ready) .dp-team__shutters:not(:hover, :focus-within) .dp-team__shutter.is-active > .dp-team__panel,
.dp-team--volets.is-ready .dp-team__shutter.is-active > .dp-team__panel {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0.22s, 0.22s, 0s;
}

.dp-team--volets:not(.is-ready) .dp-team__shutters:hover .dp-team__shutter:hover .dp-team__spine,
.dp-team--volets:not(.is-ready) .dp-team__shutter:focus-within .dp-team__spine,
.dp-team--volets:not(.is-ready) .dp-team__shutters:not(:hover, :focus-within) .dp-team__shutter.is-active .dp-team__spine,
.dp-team--volets.is-ready .dp-team__shutter.is-active .dp-team__spine {
	opacity: 0;
}

.dp-team--volets:not(.is-ready) .dp-team__shutters:hover .dp-team__shutter:hover > .dp-team__media::after,
.dp-team--volets:not(.is-ready) .dp-team__shutter:focus-within > .dp-team__media::after,
.dp-team--volets:not(.is-ready) .dp-team__shutters:not(:hover, :focus-within) .dp-team__shutter.is-active > .dp-team__media::after,
.dp-team--volets.is-ready .dp-team__shutter.is-active > .dp-team__media::after {
	opacity: 0.3;
}

/* Ouvert, le bouton ne couvre plus le volet : la carte et son lien se
   cliquent. */
.dp-team--volets.is-ready .dp-team__shutter.is-active .dp-team__btn.dp-team__open {
	pointer-events: none;
}

.dp-team--volets .dp-team__shutter.no-photo .dp-team__spine {
	color: var(--dp-team-name);
}

.dp-team--volets .dp-team__shutter.no-photo > .dp-team__media::after {
	content: none;
}

/* Sur un écran étroit, les volets s'empilent en bandes : une bande fermée
   montre le visage et le nom, toucher l'ouvre. */
@media (max-width: 860px) {
	.dp-team--volets .dp-team__shutters {
		flex-direction: column;
		height: auto;
		max-width: none;
	}

	.dp-team--volets .dp-team__shutter {
		flex: none;
		height: 104px;
		transition: height 0.6s var(--dp-team-ease);
	}

	.dp-team--volets:not(.is-ready) .dp-team__shutters:hover .dp-team__shutter:hover,
	.dp-team--volets:not(.is-ready) .dp-team__shutter:focus-within,
	.dp-team--volets:not(.is-ready) .dp-team__shutters:not(:hover, :focus-within) .dp-team__shutter.is-active,
	.dp-team--volets.is-ready .dp-team__shutter.is-active {
		height: min(480px, 118vw);
	}

	.dp-team--volets .dp-team__spine {
		writing-mode: horizontal-tb;
		transform: none;
		align-self: end;
	}

	.dp-team--volets .dp-team__shutter > .dp-team__panel {
		width: auto;
		max-width: none;
		margin: 12px;
	}
}

/* =====================================================================
 * La fiche — `<dialog>`, pour tous les designs sauf la Carte posée
 * =====================================================================
 * La personne entière : grande photo dans l'arche, nom en titre, bio,
 * contacts. Dans la couche supérieure du navigateur, elle échappe aux
 * conteneurs d'Elementor, mais hérite des jetons du bloc (teinte,
 * couleurs). Sur téléphone, elle monte du bas de l'écran.
 * ===================================================================== */
html:has(.dp-team__sheet[open]) {
	overflow: hidden;
}

.dp-team .dp-team__sheet {
	box-sizing: border-box;
	width: min(980px, calc(100vw - 48px));
	max-width: none;
	max-height: calc(100dvh - 48px);
	margin: auto;
	padding: 0;
	border: 0;
	overflow: visible;
	background: transparent;
	color: var(--dp-color-text, #303030);
	font-family: var(--dp-font-base, inherit);
}

/* La fenêtre elle-même peut recevoir le focus à l'ouverture (lecteur
   d'écran : elle annonce son nom). Son contour n'apprendrait rien — c'est le
   panneau qu'on voit. */
.dp-team .dp-team__sheet:focus,
.dp-team .dp-team__sheet:focus-visible {
	outline: none;
	box-shadow: none;
}

.dp-team .dp-team__sheet::backdrop {
	background: var(--dp-team-backdrop, rgba(26, 36, 44, 0.55));
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.dp-team .dp-team__sheet-panel {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(24px, 3.4vw, 52px);
	box-sizing: border-box;
	max-height: calc(100dvh - 48px);
	overflow: auto;
	overscroll-behavior: contain;
	padding: clamp(22px, 3vw, 44px);
	border-radius: var(--dp-team-sheet-radius, var(--dp-radius-xl, 32px));
	background: var(--dp-team-sheet-bg, var(--dp-color-surface, #ffffff));
	box-shadow: var(--dp-shadow-xl, 0 28px 60px rgba(17, 59, 83, 0.12));

	--dp-team-name: var(--dp-color-text, #303030);
	--dp-team-job: var(--dp-color-text, #303030);
	--dp-team-lede: var(--dp-color-text-muted, #5b5b5b);
	--dp-team-cred: var(--dp-team-tint-strong, var(--dp-color-primary-strong, #417e88));
}

.dp-team .dp-team__sheet-media {
	position: sticky;
	top: 0;
	align-self: start;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	border-radius: 50% 50% var(--dp-radius-lg, 20px) var(--dp-radius-lg, 20px) / 40% 40% var(--dp-radius-lg, 20px) var(--dp-radius-lg, 20px);
	background: var(--dp-gradient-dome, var(--dp-color-primary-soft, #ecf8f9));
}

.dp-team .dp-team__sheet-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: clamp(8px, 2vw, 28px) clamp(0px, 2vw, 24px) 8px 0;
}

.dp-team .dp-team__sheet-name {
	margin: 0;
	font-family: var(--dp-font-heading, inherit);
	font-weight: var(--dp-font-heading-weight, 700);
	font-size: clamp(28px, 3vw, 42px);
	line-height: 1.04;
	letter-spacing: -0.015em;
	color: var(--dp-team-name);
}

.dp-team.dp-team--2026 .dp-team__sheet .dp-team__job {
	font-size: 17px;
}

.dp-team.dp-team--2026 .dp-team__sheet .dp-team__lede {
	margin-top: 8px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--dp-color-text, #303030);
}

.dp-team .dp-team__sheet-bio {
	margin-top: 6px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--dp-team-lede);
}

.dp-team .dp-team__sheet-bio p {
	margin: 0 0 12px;
}

.dp-team .dp-team__sheet-bio p:last-child {
	margin-bottom: 0;
}

.dp-team .dp-team__sheet .dp-team__contact {
	margin-top: 12px;
}

.dp-team--2026 .dp-team__btn.dp-team__sheet-close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--dp-color-surface-grey, #f4f6f6);
	color: var(--dp-color-text, #303030);
	transition: background-color 0.2s ease, transform 0.3s var(--dp-team-ease);
}

.dp-team--2026 .dp-team__btn.dp-team__sheet-close:hover,
.dp-team--2026 .dp-team__btn.dp-team__sheet-close:focus-visible {
	background: var(--dp-team-tint-fill);
	color: var(--dp-team-on-tint-fill);
	transform: rotate(90deg);
}

/* L'ouverture : la fiche monte et le voile se pose ; la fermeture, posée
   par le script, les reprend à l'envers. */
.dp-team .dp-team__sheet[open] .dp-team__sheet-panel {
	animation: dp-team-sheet-in 0.5s var(--dp-team-ease, ease) both;
}

.dp-team .dp-team__sheet[open]::backdrop {
	animation: dp-team-fade-in 0.35s ease both;
}

.dp-team .dp-team__sheet.is-closing .dp-team__sheet-panel {
	animation: dp-team-sheet-out 0.22s ease both;
}

.dp-team .dp-team__sheet.is-closing::backdrop {
	animation: dp-team-fade-out 0.22s ease both;
}

@keyframes dp-team-sheet-in {
	from { opacity: 0; transform: translateY(28px) scale(0.985); }
}

@keyframes dp-team-sheet-out {
	to { opacity: 0; transform: translateY(18px) scale(0.99); }
}

@keyframes dp-team-fade-in {
	from { opacity: 0; }
}

@keyframes dp-team-fade-out {
	to { opacity: 0; }
}

@media (max-width: 700px) {
	.dp-team .dp-team__sheet {
		width: 100vw;
		max-height: 92dvh;
		margin: auto 0 0;
	}

	.dp-team .dp-team__sheet-panel {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
		max-height: 92dvh;
		padding: 18px 18px 28px;
		border-radius: var(--dp-team-sheet-radius, 28px) var(--dp-team-sheet-radius, 28px) 0 0;
	}

	.dp-team .dp-team__sheet-media {
		position: relative;
		aspect-ratio: 5 / 4;
		width: 78%;
		justify-self: center;
	}

	.dp-team .dp-team__sheet-body {
		padding: 0;
	}

	.dp-team .dp-team__sheet[open] .dp-team__sheet-panel {
		animation-name: dp-team-sheet-up;
	}

	.dp-team .dp-team__sheet.is-closing .dp-team__sheet-panel {
		animation-name: dp-team-sheet-down;
	}

	@keyframes dp-team-sheet-up {
		from { transform: translateY(100%); }
	}

	@keyframes dp-team-sheet-down {
		to { transform: translateY(100%); }
	}
}

/* ── Mouvement coupé ──
   La charte neutralise ses durées sous `prefers-reduced-motion` ; celles qui
   sont écrites ici en dur le sont aussi, et rien ne bouge plus au survol. Les
   états, eux, restent : le volet s'ouvre, la fenêtre change — sans glisser. */
@media (prefers-reduced-motion: reduce) {
	.dp-team.dp-team--2026 :is(.dp-team__person, .dp-team__pebble, .dp-team__reveal, .dp-team__shot, .dp-team__caption, .dp-team__who, .dp-team__shutter, .dp-team__panel, .dp-team__spine, .dp-team__contact a, img.dp-team__img),
	.dp-team.dp-team--2026 :is(.dp-team__media, .dp-team__line)::before,
	.dp-team.dp-team--2026 :is(.dp-team__media, .dp-team__line)::after,
	.dp-team--2026.dp-team--2026 .dp-team__btn.dp-team__btn {
		transition: none;
	}

	.dp-team.dp-team--mosaic .dp-team__person:hover,
	.dp-team.dp-team--2026 .dp-team__person:hover img.dp-team__img,
	.dp-team.dp-team--sommaire .dp-team__shot,
	.dp-team--2026.dp-team--2026 .dp-team__btn.dp-team__btn:is(:hover, :focus-visible) {
		transform: none;
	}

	.dp-team.dp-team--galets .dp-team__person:hover .dp-team__pebble {
		border-radius: var(--dp-team-pebble);
	}

	.dp-team.dp-team--carte-posee.is-ready .dp-team__story > .dp-team__panel,
	.dp-team.dp-team--carte-posee.is-ready .dp-team__story > .dp-team__media img.dp-team__img {
		opacity: 1;
		transform: none;
	}

	.dp-team.dp-team--2026 .dp-team__sheet[open] .dp-team__sheet-panel,
	.dp-team.dp-team--2026 .dp-team__sheet[open]::backdrop,
	.dp-team.dp-team--2026 .dp-team__sheet.is-closing .dp-team__sheet-panel,
	.dp-team.dp-team--2026 .dp-team__sheet.is-closing::backdrop {
		animation: none;
	}
}
