/* ==========================================================================
   Optisanté — styles du thème
   Les couleurs, polices et tailles viennent de theme.json (variables --wp--preset--*).
   Ici : la mise en forme des sections, cartes, frise, bande de logos et animations.
   Mobile d'abord ; les animations s'arrêtent si l'utilisateur le demande.
   ========================================================================== */

:root {
	--marine: var(--wp--preset--color--marine);
	--marine-profond: var(--wp--preset--color--marine-profond);
	--turquoise: var(--wp--preset--color--turquoise);
	--turquoise-fonce: var(--wp--preset--color--turquoise-fonce);
	--turquoise-pale: var(--wp--preset--color--turquoise-pale);
	--gris: var(--wp--preset--color--gris-texte);
	--gris-clair: var(--wp--preset--color--gris-clair);
	--bordure: var(--wp--preset--color--bordure);
	--fond: var(--wp--preset--color--fond);
	--ease: cubic-bezier(.2, .8, .2, 1);
	--ombre-carte: 0 1px 2px rgb(15 31 51 / .06), 0 8px 24px -12px rgb(15 31 51 / .18);
	--ombre-photo: 0 24px 48px -24px rgb(27 44 66 / .45), 0 12px 24px -16px rgb(77 182 172 / .35);
	--entete-h: 72px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--entete-h) + 1rem); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
.site-main { min-height: 60vh; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }

/* Focus visibles partout (navigation clavier). */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--turquoise);
	outline-offset: 3px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Typo utilitaire ---------- */
.surtitre {
	font-size: .8rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
	color: var(--turquoise-fonce); margin-bottom: .5rem;
}
.section--marine .surtitre, .hero .surtitre { color: var(--turquoise); }
.tag {
	display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	background: var(--turquoise-pale); color: var(--marine); border-radius: 6px; padding: .35rem .65rem;
}
.source { font-size: .82rem; font-style: italic; color: var(--gris); }
strong { color: inherit; font-weight: 700; }

/* ---------- En-tête ---------- */
/* Le flou est porté par ::before : posé sur .entete, backdrop-filter en ferait le cadre des éléments « fixed »
   et le menu burger ouvert restait coincé dans la barre (78 px de haut au lieu de tout l'écran). */
.entete {
	position: sticky; top: 0; z-index: 50;
	border-bottom: 1px solid transparent;
	transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
	padding-block: .6rem;
}
.entete::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgb(255 255 255 / .92);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.entete.est-defile { border-color: var(--bordure); box-shadow: 0 6px 20px -16px rgb(15 31 51 / .5); }
.admin-bar .entete { top: 32px; }
@media (max-width: 782px) { .admin-bar .entete { top: 46px; } }
.entete__barre { gap: 1rem; min-height: calc(var(--entete-h) - 1.2rem); }
.entete__marque { gap: .6rem; flex-shrink: 0; }
.entete__marque .wp-block-site-logo:has(img) + .wp-block-site-title { display: none; }
.marque-texte, .marque-texte a {
	font-family: var(--wp--preset--font-family--texte); font-style: normal; font-weight: 800;
	letter-spacing: .02em; font-size: 1.35rem; text-decoration: none; color: var(--marine); margin: 0;
}
.entete__nav { flex: 1; font-size: .95rem; font-weight: 600; }
.entete__nav .wp-block-navigation-item__content { color: var(--marine); padding: .4rem .2rem; position: relative; text-decoration: none; }
.entete__nav .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: .2rem; right: .2rem; bottom: 0; height: 2px;
	background: var(--turquoise); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.entete__nav .wp-block-navigation-item__content:hover::after,
.entete__nav .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.entete__nav .wp-block-navigation__container { gap: 1.25rem; }
.entete__actions { gap: .75rem; flex-shrink: 0; }
.entete__tel { margin: 0; }
.entete__tel a {
	display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--marine);
	text-decoration: none; white-space: nowrap;
}
.icone-tel {
	width: 20px; height: 20px; background: currentColor; flex-shrink: 0;
	-webkit-mask: var(--svg-tel) center / contain no-repeat; mask: var(--svg-tel) center / contain no-repeat;
}
.entete__cta .wp-block-button__link { padding: .7rem 1.1rem; font-size: .92rem; white-space: nowrap; }

/* Tablette et mobile : burger, téléphone en icône, bouton compact.
   Le menu complet tient à partir de 1200 px ; en dessous il débordait (tablettes 768 à 1194 px). */
@media (max-width: 1199px) {
	.entete__nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.entete__nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.entete__tel-num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.entete__tel a { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--bordure); border-radius: 12px; }
	.entete__nav { flex: 0 0 auto; order: 3; }
	.entete__actions { margin-left: auto; }
}
@media (max-width: 560px) {
	.entete .entete__cta { display: none; }
	.marque-texte, .marque-texte a { font-size: 1.15rem; }
}
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--marine) !important; color: #fff !important; padding: 1.5rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start; gap: 1rem; }
/* « Contact » n'apparaît que dans le menu burger : en grand écran, le bouton « Organiser une journée » le remplace. */
.wp-block-navigation__responsive-container:not(.is-menu-open) .nav-contact { display: none; }
.is-menu-open .nav-contact .wp-block-navigation-item__content { color: var(--turquoise) !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: #fff; font-family: var(--wp--preset--font-family--titre); font-style: italic; font-weight: 700; font-size: 1.75rem;
}
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { width: 44px; height: 44px; justify-content: center; align-items: center; }

/* ---------- Boutons ---------- */
.wp-element-button, .wp-block-button__link {
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
	text-decoration: none;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgb(77 182 172 / .9); background: #5fc3b9;
}
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent; color: var(--marine); border: 2px solid var(--marine);
	padding: calc(.95rem - 2px) calc(1.6rem - 2px);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--marine); color: #fff; transform: translateY(-2px); }
.bouton-clair .wp-block-button__link, .section--marine .is-style-outline .wp-block-button__link { color: #fff !important; border-color: rgb(255 255 255 / .7) !important; }
.bouton-clair .wp-block-button__link:hover, .section--marine .is-style-outline .wp-block-button__link:hover { background: #fff !important; color: var(--marine) !important; }

/* ---------- Sections ---------- */
.section { padding-block: var(--wp--preset--spacing--60); }
.section > .surtitre, .section > h2 { text-align: center; margin-inline: auto; max-width: 820px; }
.section > h2 { margin-bottom: var(--wp--preset--spacing--50); }
.section--fond { background: var(--fond); }
.section--marine { background: var(--marine); color: var(--gris-clair); }
.section--marine :is(h1, h2, h3, h4) { color: #fff; }
.section--marine a:not(.wp-element-button) { color: #fff; }

/* ---------- Hero ---------- */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: calc(100svh - var(--entete-h)); display: flex; flex-direction: column; justify-content: center;
	padding-block: var(--wp--preset--spacing--60); background: var(--marine);
}
.hero .hero__fond { position: absolute; inset: 0; margin: 0 !important; z-index: -2; max-width: none !important; width: 100%; height: 100%; }
.hero .hero__fond img {
	width: 100% !important; height: 100% !important; object-fit: cover; object-position: 70% 30%;
	animation: kenburns 20s var(--ease) both;
}
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, rgb(15 31 51 / .94) 0%, rgb(27 44 66 / .86) 38%, rgb(27 44 66 / .35) 72%, rgb(27 44 66 / .15) 100%);
}
/* Écran large : la photo est en portrait (1066 × 1600). En plein cadre elle était agrandie jusqu'à 2 000 px
   et recadrée sur le visage ; on la garde sur la moitié droite, le texte sur fond marine à gauche. */
@media (min-width: 1024px) {
	.hero .hero__fond { left: auto; right: 0; width: 55%; }
	.hero .hero__fond img { object-position: 50% 30%; }
	/* le texte reste dans la moitié gauche, aligné sur la marge du contenu large (1200 px) */
	.hero > .hero__contenu { width: 43vw; max-width: 600px; margin-left: max(var(--wp--style--root--padding-left, 2.5rem), calc(50vw - 600px)) !important; margin-right: auto !important; }
	.hero .hero__contenu > * { max-width: 100%; }
	.hero::before { background: linear-gradient(90deg, var(--marine-profond) 0%, var(--marine) 45%, rgb(27 44 66 / .55) 58%, rgb(27 44 66 / .1) 80%, rgb(27 44 66 / 0) 100%); }
}
@media (max-width: 781px) {
	.hero::before { background: linear-gradient(180deg, rgb(15 31 51 / .55) 0%, rgb(27 44 66 / .9) 55%, rgb(15 31 51 / .97) 100%); }
	.hero { justify-content: flex-end; }
}
.hero__contenu { position: relative; }
.hero .hero__contenu > * { margin-left: 0 !important; margin-right: auto !important; max-width: 720px; }
.hero__titre { color: #fff; margin-block: .5rem 1.25rem; }
.hero__titre strong { color: var(--turquoise); font-weight: 800; }
.hero__texte { color: var(--gris-clair); font-size: var(--wp--preset--font-size--grand); max-width: 34em; }
.hero .wp-block-buttons { margin-top: 2rem; gap: .75rem; }
.mot { display: inline-block; opacity: 0; transform: translateY(.45em); animation: mot-arrive .6s var(--ease) forwards; animation-delay: calc(var(--i) * 40ms + 150ms); }
.hero__defiler {
	position: absolute; left: 50%; bottom: 1.5rem; translate: -50% 0; width: 28px; height: 46px;
	border: 2px solid rgb(255 255 255 / .6); border-radius: 16px;
}
.hero__defiler-trait {
	position: absolute; left: 50%; top: 8px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px;
	background: var(--turquoise); animation: defiler 1.8s var(--ease) infinite;
}
@media (max-height: 640px), (max-width: 781px), (min-width: 1024px) { .hero__defiler { display: none; } }

@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes mot-arrive { to { opacity: 1; transform: none; } }
@keyframes defiler { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Bandeau chiffres ---------- */
.bandeau-chiffres { background: var(--marine-profond); padding-block: var(--wp--preset--spacing--50); }
.chiffres { gap: 2rem 1.5rem; }
.chiffre { text-align: left; border-left: 3px solid var(--turquoise); padding-left: 1rem; }
.chiffre__nombre {
	font-family: var(--wp--preset--font-family--titre); font-style: italic; font-weight: 800;
	font-size: clamp(2.6rem, 3.6vw, 3.4rem); line-height: 1; color: #fff; margin: 0 0 .5rem; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.chiffre__libelle { color: var(--gris-clair); margin: 0; font-size: 1rem; line-height: 1.45; }

/* ---------- Cartes ---------- */
.grille-3 { gap: 1.5rem; }
/* auto-fit (et non auto-fill) : pas de colonne vide quand il y a 3 cartes sur un grand écran. */
/* 3 colonnes au plus (6 cartes = 3×2, brief §4.1), 1 seule sur téléphone. */
.grille-3.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(17rem, calc((100% - 3rem) / 3))), 1fr)) !important; }
/* 2 colonnes sur téléphone (4 chiffres = 2×2), puis une ligne dès que 4 × 14 rem tiennent. */
.grille-3 { container-type: inline-size; }
@container (min-width: 35.5rem) and (max-width: 53.9rem) { .grille-3 > :nth-child(3):last-child { grid-column: 1 / -1; } }
/* 4 cartes (page Salariés) : 2 × 2 sur tablette, 4 de front sur grand écran, jamais 3 + 1. */
.grille-3.is-layout-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(15rem, calc((100% - 4.5rem) / 4))), 1fr)) !important; }
.chiffres.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (max-width: 559px) { .chiffres { gap: 1.5rem 1rem; } .chiffre__nombre { font-size: 2.1rem; } .chiffre__libelle { font-size: .92rem; } }
@media (max-width: 379px) { .chiffres.is-layout-grid { grid-template-columns: minmax(0, 1fr) !important; } } /* 320 px : « 1 journée » ne tient pas sur une demi-largeur */
@media (min-width: 900px) { .chiffres.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)) !important; } }
.carte {
	position: relative; background: #fff; border: 1px solid var(--bordure); border-radius: 16px;
	padding: 2rem 1.6rem 1.75rem; box-shadow: var(--ombre-carte); overflow: hidden;
	transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.carte::before {
	content: ""; position: absolute; top: 0; left: 0; height: 6px; width: 34%;
	background: var(--turquoise); transition: width .5s var(--ease);
}
.carte:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgb(15 31 51 / .06), 0 22px 40px -20px rgb(15 31 51 / .35); }
.carte:hover::before { width: 100%; }
.carte h3 { margin-top: 0; font-size: 1.45rem; }
.carte p { margin-block: .4rem 0; }
.carte--chiffre { text-align: left; }
.chiffre-xxl {
	font-family: var(--wp--preset--font-family--titre); font-style: italic; font-weight: 800;
	font-size: clamp(3.5rem, 6vw, 5.5rem); line-height: .95; color: var(--marine); margin: 0 0 .75rem; white-space: nowrap;
	font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.carte__texte { color: var(--marine); font-size: 1.12rem; font-weight: 600; line-height: 1.4; }
.carte .source { margin-top: 1rem; }
.section--marine .carte { background: var(--marine-profond); border-color: rgb(255 255 255 / .08); box-shadow: none; }

/* Cartes avec icône (masque CSS : l'icône reste éditable via la classe). */
.carte--icone::after {
	content: ""; display: block; order: -1; width: 52px; height: 52px; margin-bottom: 1.1rem; border-radius: 14px;
	background: var(--turquoise-pale) var(--icone) center / 26px no-repeat;
}
.carte--icone { display: flex; flex-direction: column; }
.icone-euro     { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2C42' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M17 6.5A7 7 0 1 0 17 17.5M4 10h9M4 14h9'/%3E%3C/svg%3E"); }
.icone-medecin  { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2C42' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 3v6a4 4 0 0 0 8 0V3M10 13v3a5 5 0 0 0 10 0v-2'/%3E%3Ccircle cx='20' cy='12' r='2'/%3E%3C/svg%3E"); }
.icone-bouclier { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2C42' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.icone-lunettes { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2C42' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='6.5' cy='14' r='3.5'/%3E%3Ccircle cx='17.5' cy='14' r='3.5'/%3E%3Cpath d='M10 14h4M3 14l1.5-6M21 14l-1.5-6'/%3E%3C/svg%3E"); }
.icone-coeur    { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2C42' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E"); }
.icone-horloge  { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2C42' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.icone-agenda   { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2C42' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.icone-camion   { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2C42' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v10H3zM14 10h4l3 3v3h-7'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3C/svg%3E"); }
.icone-oeil     { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2C42' stroke-width='1.8'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
:root { --svg-tel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E"); }

/* ---------- Photos ---------- */
.photo img { border-radius: 24px; box-shadow: var(--ombre-photo); width: 100% !important; height: auto !important; aspect-ratio: 3 / 2; object-fit: cover; }
.hero .photo img { border-radius: 0; box-shadow: none; aspect-ratio: auto; }
/* Photos en portrait (classe posée au rendu, functions.php) : carré sur téléphone, 4:5 dès que la photo est à côté du texte ;
   le cadrage vise le haut de l'image, où sont les visages. */
.photo--portrait img { aspect-ratio: 1 / 1; object-position: 50% 22%; }
@media (min-width: 782px) { .photo--portrait img { aspect-ratio: 4 / 5; } }
@media (min-width: 782px) {
	/* la photo déborde de sa colonne, jamais au-delà de la marge de la page (iPad Air/Pro : 7 px de trop) */
	.photo--debord { --debord: min(2.5rem, var(--wp--style--root--padding-left, 1.5rem)); margin-inline-start: calc(-1 * var(--debord)); }
	.wp-block-column:last-child > .photo--debord { margin-inline: 0 calc(-1 * var(--debord)); }
}

/* ---------- Parcours 2 colonnes ---------- */
.parcours { gap: clamp(2rem, 5vw, 4rem); }
.parcours__col h3 { margin-block: .75rem .5rem; }
.parcours__col .tag { margin-top: 1.75rem; }
.liste-coches { list-style: none; padding: 0; margin: 0; }
.liste-coches li { position: relative; padding: .55rem 0 .55rem 2rem; border-bottom: 1px solid var(--bordure); }
.liste-coches li:last-child { border-bottom: 0; }
.liste-coches li::before {
	content: ""; position: absolute; left: 0; top: .85rem; width: 1.2rem; height: 1.2rem; border-radius: 50%;
	background: var(--turquoise-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A746D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- Frise 4 étapes ---------- */
.frise { position: relative; display: grid; gap: 2rem; grid-template-columns: 1fr; }
.frise > * { margin: 0 !important; }
.frise__etape > * { margin-top: 0; }
.frise::before, .frise::after {
	content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: rgb(255 255 255 / .15);
}
.frise::after { background: var(--turquoise); transform: scaleY(var(--progres, 0)); transform-origin: top; transition: transform .2s linear; }
.frise__etape { position: relative; padding-left: 80px; }
/* Seul le numéro « s'allume » : le texte reste lisible (contraste AA) avant l'animation. */
.frise__num {
	position: absolute; left: 0; top: 0; z-index: 1; width: 56px; height: 56px; margin: 0; display: grid; place-items: center;
	border-radius: 50%; background: var(--marine-profond); border: 2px solid rgb(255 255 255 / .2);
	font-family: var(--wp--preset--font-family--titre); font-style: italic; font-weight: 800; font-size: 1.6rem; color: #fff;
	transition: background-color .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease);
}
.frise__etape.est-allume .frise__num { background: var(--turquoise); border-color: var(--turquoise); color: var(--marine-profond); }
.frise__titre { margin: .6rem 0 .4rem; font-size: 1.45rem; }
.frise__etape p:last-child { margin: 0; }
@media (min-width: 900px) {
	.frise { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
	.frise::before, .frise::after { left: 28px; right: 28px; top: 27px; bottom: auto; width: auto; height: 2px; }
	.frise::after { transform: scaleX(var(--progres, 0)); transform-origin: left; }
	.frise__etape { padding-left: 0; padding-top: 84px; }
}
.bandeau-points { margin-top: var(--wp--preset--spacing--50); gap: .75rem 2.5rem; }
.bandeau-points p { margin: 0; font-weight: 600; color: #fff; display: inline-flex; align-items: center; gap: .6rem; }
.bandeau-points p::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--turquoise); flex-shrink: 0; }
.bandeau-points--clair p { color: var(--marine); }
@media (max-width: 600px) { .bandeau-points { flex-direction: column; align-items: flex-start !important; } }
.bandeau-preuve {
	margin-top: var(--wp--preset--spacing--50); background: var(--turquoise-pale); border-radius: 16px;
	padding: 1.25rem 1.5rem; text-align: center; color: var(--marine); font-size: 1.1rem;
}
.bandeau-preuve p { margin: 0; }
.bandeau-preuve strong { font-family: var(--wp--preset--font-family--titre); font-style: italic; font-size: 1.6rem; margin-right: .25rem; }

/* ---------- Bande de logos ---------- */
.confiance { overflow: hidden; }
.defile {
	gap: 1rem !important; width: max-content; margin-block: .5rem !important;
	animation: defile 60s linear infinite;
}
.defile--inverse { animation-direction: reverse; }
.confiance:hover .defile, .defile:focus-within { animation-play-state: paused; }
.tuile-logo {
	flex: 0 0 auto; width: 220px; height: 104px; margin: 0 !important; display: grid; place-items: center; padding: 1rem;
	background: #fff; border: 1px solid var(--bordure); border-radius: 14px; text-align: center;
	font-weight: 700; color: var(--marine); font-size: 1rem; line-height: 1.2;
}
figure.tuile-logo { padding: 0; overflow: hidden; position: relative; }
/* Image en position absolue : sa taille ne dépend plus du calcul de hauteur du navigateur (logos coupés vus sur un
   téléphone Samsung le 25/10). Le logo tient toujours entier dans la tuile. */
.tuile-logo img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: contain; }
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Équipe ---------- */
.equipe { gap: clamp(2rem, 5vw, 5rem); }
.point { padding-left: 1.25rem; border-left: 3px solid var(--turquoise); }

/* ---------- CTA final + formulaire ---------- */
.cta-final__colonnes { gap: clamp(2rem, 5vw, 4rem); }
.contact-carte {
	margin-top: 2rem; padding: 1.25rem 1.5rem; border-radius: 16px; background: var(--marine-profond);
	border: 1px solid rgb(255 255 255 / .08);
}
.contact-carte p { margin: 0; }
.contact-carte__nom strong { color: #fff; font-size: 1.15rem; }
.contact-carte__liens { margin-top: .6rem !important; font-weight: 700; }
.formulaire-carte { background: #fff; color: var(--gris); border-radius: 24px; padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--ombre-photo); }

/* Contact Form 7 */
.wpcf7-form p { margin: 0 0 1rem; min-width: 0; }
.wpcf7-form *, .wpcf7-form *::before, .wpcf7-form *::after { box-sizing: border-box; }
.formulaire-carte a { color: var(--turquoise-fonce) !important; text-decoration: underline; }
.wpcf7-form label { display: block; font-weight: 600; color: var(--marine); font-size: .95rem; }
.wpcf7-form :is(input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea) {
	width: 100%; max-width: 100%; min-width: 0; margin-top: .35rem; padding: .8rem .9rem; font: inherit; font-size: 1rem; color: var(--marine);
	background: var(--fond); border: 1px solid var(--bordure); border-radius: 10px; transition: border-color .2s, box-shadow .2s;
}
.wpcf7-form textarea { min-height: 7rem; resize: vertical; }
.wpcf7-form :is(input, select, textarea):focus { outline: none; border-color: var(--turquoise); box-shadow: 0 0 0 3px rgb(77 182 172 / .25); }
.wpcf7-form .champs-2 { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .wpcf7-form .champs-2 { grid-template-columns: 1fr 1fr; } }
.wpcf7-form .wpcf7-acceptance label { font-weight: 400; font-size: .88rem; display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; }
.wpcf7-form .wpcf7-acceptance input { width: 1.5rem; height: 1.5rem; flex-shrink: 0; margin: 0; accent-color: var(--turquoise-fonce); }
.wpcf7-form input[type=submit] {
	width: 100%; cursor: pointer; border: 0; border-radius: 12px; padding: 1rem 1.5rem; font: inherit; font-weight: 700;
	background: var(--turquoise); color: var(--marine-profond); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.wpcf7-form input[type=submit]:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgb(77 182 172 / .9); }
.wpcf7-not-valid-tip { font-size: .85rem; color: #9b1c1c; }
.wpcf7 form .wpcf7-response-output { border-radius: 10px; margin: 1rem 0 0; padding: .8rem 1rem; }

/* ---------- Accordéon (FAQ) ---------- */
.faq-liste { max-width: 860px; margin-inline: auto; }
.wp-block-details.faq { border-bottom: 1px solid var(--bordure); padding: 0; }
.wp-block-details.faq summary {
	list-style: none; cursor: pointer; padding: 1.2rem 3rem 1.2rem 0; position: relative;
	font-weight: 700; color: var(--marine); font-size: 1.1rem;
}
.wp-block-details.faq summary::-webkit-details-marker { display: none; }
.wp-block-details.faq summary::after {
	content: ""; position: absolute; right: .25rem; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
	background: var(--turquoise-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2C42' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
	transition: transform .3s var(--ease);
}
.wp-block-details.faq[open] summary::after { transform: rotate(45deg); }
.wp-block-details.faq > :not(summary) { margin: 0 0 1.25rem; }

/* ---------- Pages intérieures ---------- */
.entete-page { background: var(--marine); padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50); position: relative; overflow: hidden; }
.entete-page::after {
	content: ""; position: absolute; right: -8rem; top: -8rem; width: 28rem; height: 28rem; border-radius: 50%;
	border: 2px solid rgb(77 182 172 / .3); box-shadow: 0 0 0 3rem rgb(77 182 172 / .06), 0 0 0 6rem rgb(77 182 172 / .04);
}
.entete-page h1 { color: #fff; max-width: 18em; }
.entete-page p:not(.surtitre) { color: var(--gris-clair); font-size: var(--wp--preset--font-size--grand); max-width: 40em; }
.entete-page .surtitre { color: var(--turquoise); }
.page-simple { padding-block: var(--wp--preset--spacing--60); }
.page-simple h1 { margin-bottom: 2rem; }
.texte-centre { text-align: center; margin-inline: auto; max-width: 760px; }
.phrase-cle {
	font-family: var(--wp--preset--font-family--titre); font-style: italic; font-weight: 700; color: var(--marine);
	font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.25; text-align: center; max-width: 24em; margin-inline: auto;
}
.phrase-cle::before, .phrase-cle::after { color: var(--turquoise); }
.phrase-cle::before { content: "« "; } .phrase-cle::after { content: " »"; }

/* Étapes détaillées (Comment ça marche) */
.etape-detail { gap: clamp(2rem, 5vw, 4.5rem); padding-block: var(--wp--preset--spacing--50); border-bottom: 1px solid var(--bordure); }
.etape-detail:last-of-type { border-bottom: 0; }
.etape-detail__num {
	font-family: var(--wp--preset--font-family--titre); font-style: italic; font-weight: 800; font-size: var(--wp--preset--font-size--xxl);
	line-height: 1; color: var(--turquoise); margin: 0;
}
@media (min-width: 782px) { .etape-detail:nth-of-type(even) { flex-direction: row-reverse; } }

/* Références : filtres + grille */
.filtres { gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.filtres button {
	font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; padding: .55rem 1rem; border-radius: 999px;
	border: 1px solid var(--bordure); background: #fff; color: var(--marine); transition: all .25s var(--ease);
}
.filtres button[aria-pressed="true"], .filtres button:hover { background: var(--marine); border-color: var(--marine); color: #fff; }
.grille-logos { gap: 1rem; }
/* Colonnes en pixels, pas en rem : un texte agrandi dans le téléphone ne fait pas tomber la grille sur une colonne. */
.grille-logos.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (min-width: 560px) { .grille-logos.is-layout-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (min-width: 900px) { .grille-logos.is-layout-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
@media (min-width: 1200px) { .grille-logos.is-layout-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; } }
.grille-logos .tuile-logo { width: auto; height: auto; aspect-ratio: 40 / 19; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.grille-logos .tuile-logo[hidden] { display: none; }

/* Carte */
.carte-osm { margin: 1.5rem 0 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--bordure); }
.carte-osm img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: cover; }
.carte-osm figcaption { padding: .7rem 1rem; font-size: .9rem; color: var(--gris); background: var(--fond); }
.carte-osm figcaption a { font-weight: 700; color: var(--turquoise-fonce); display: inline-block; padding-block: .35rem; } /* cible tactile ≥ 24 px */

/* ---------- Pied de page ---------- */
.pied { background: var(--marine-profond); color: var(--gris-clair); padding-block: var(--wp--preset--spacing--50) 1.5rem; font-size: .98rem; }
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { color: var(--turquoise); text-decoration: underline; }
.pied .marque-texte, .pied .marque-texte a { color: #fff; }
.pied .wp-block-site-logo img { background: #fff; border-radius: 14px; padding: 6px; }
.pied__marque .wp-block-site-logo:has(img) + .wp-block-site-title { display: none; }
.pied__titre { font-family: var(--wp--preset--font-family--texte); font-style: normal; font-size: .8rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--turquoise) !important; }
.pied__liens { list-style: none; padding: 0; } .pied__liens li { margin: 0; }
.pied__liens a { display: inline-block; padding-block: .4rem; } /* cible tactile ≥ 24 px */
.pied__bas { border-top: 1px solid rgb(255 255 255 / .1); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; gap: .5rem 2rem; }
.pied__bas p { margin: 0; }

/* ---------- Apparition au défilement ---------- */
.js .apparait { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .apparait.est-visible { opacity: 1; transform: none; }
.grille-3 > .apparait:nth-child(2), .chiffres > .apparait:nth-child(2) { transition-delay: .08s; }
.grille-3 > .apparait:nth-child(3), .chiffres > .apparait:nth-child(3) { transition-delay: .16s; }
.grille-3 > .apparait:nth-child(5), .chiffres > .apparait:nth-child(4) { transition-delay: .24s; }
.grille-3 > .apparait:nth-child(6) { transition-delay: .32s; }

/* ---------- Mouvement réduit : tout s'arrête ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .apparait, .mot { opacity: 1 !important; transform: none !important; }
	.frise::after { transform: none; }
	/* la bande qui défile devient une grille compacte (2 tuiles par ligne sur téléphone) */
	.defile { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); width: auto; padding-inline: var(--wp--style--root--padding-left, 1rem); }
	.defile .tuile-logo { width: auto; height: auto; aspect-ratio: 40 / 19; }
	@media (min-width: 560px) { .defile { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
	@media (min-width: 900px) { .defile { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 1200px; margin-inline: auto !important; } }
	.defile [aria-hidden="true"] { display: none; }
}

/* FAQ par thème (page Salariés) */
.faq-groupe { font-family: var(--wp--preset--font-family--texte); font-style: normal; font-size: .8rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--turquoise-fonce); margin: 2.5rem 0 .25rem; }
.faq-liste > .faq-groupe:first-child { margin-top: 0; }
.note { font-size: .92rem; color: var(--gris); margin-top: 1.5rem; }
/* Liens seuls dans une liste (pages légales) : cible tactile ≥ 24 px */
.wp-block-post-content li > a:only-child { display: inline-block; padding-block: .25rem; }
