/*
Theme Name: eXYSTAT
Theme URI: https://exystat.com
Author: Fred Pixlab
Author URI: https://pixlab.com
Description: Thème maison d'eXYSTAT : remplace Hello Elementor, Elementor Pro, Unlimited Elements et Polylang Pro. Trois langues intégrées (FR, EN, ES), équipe en fiches.
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: exystat
*/

/* Mise en page relevée sur le site Elementor (28/10/2026) : colonne de 1 140 px sur fond gris clair,
   bandeau bleu nuit, boutons pétrole arrondis, Titillium Web partout. Couleurs dans theme.json. */

:root {
	--ex-nuit: #082835;
	--ex-petrole: #0e3c4a;
	--ex-ardoise: #7ea6b9;
	--ex-turquoise: #40a3b6;
	--ex-fond: #f5f4f4;
	--ex-largeur: 1140px;
	--ex-gouttiere: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ex-fond); color: #333; font-family: "Titillium Web", system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; } /* sinon Arial (bandeau cookies, puces, burger) ; repris de l'extrait WPCode « Fonts » */
a { color: var(--ex-turquoise); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.screen-reader-text:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100; padding: 8px 14px; background: #fff; color: var(--ex-nuit); border-radius: 6px; }
:focus-visible { outline: 2px solid var(--ex-turquoise); outline-offset: 2px; }

/* ---------- En-tête : bandeau bleu nuit, pastille blanche ---------- */
/* Collé en haut au défilement, sur tous les écrans (réglage « sticky » des en-têtes Elementor). */
.ex-entete { padding: 0 var(--ex-gouttiere); position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 20; }
.ex-entete__barre {
	max-width: var(--ex-largeur); margin: 0 auto; min-height: 102px;
	background: var(--ex-nuit); border-radius: 0 0 16px 16px;
	display: flex; align-items: center; gap: 40px; padding: 18px 10px 18px 50px;
}
.ex-entete--accueil .ex-entete__barre { border-radius: 0; }
.ex-logo { flex: none; display: block; line-height: 0; }
.ex-logo img { width: 110px; height: auto; }
.ex-pastille {
	flex: 1; min-width: 0; background: #fff; border-radius: 16px; min-height: 62px;
	display: flex; align-items: center; gap: 20px; padding: 8px 32px 8px 20px;
}
.ex-menu { flex: 1; min-width: 0; }
.ex-menu__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ex-menu__liste a { color: var(--ex-nuit); text-decoration: none; font-weight: 600; font-size: 16px; }
.ex-menu__liste a:hover { color: var(--ex-turquoise); }
.ex-bouton {
	display: inline-block; background: var(--ex-petrole); color: #fff; text-decoration: none;
	border-radius: 30px; padding: 8px 22px; font-weight: 500; font-size: 18px; line-height: 1.4;
}
.ex-bouton:hover { background: var(--ex-nuit); color: #fff; }
.ex-bouton--retour { background: var(--ex-nuit); font-size: 15px; font-weight: 600; padding: 8px 24px; margin-right: auto; }

/* Sélecteur de langue */
.ex-langues { position: relative; margin-left: auto; }
.ex-langues__bouton {
	display: flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; padding: 4px 6px;
	font: 600 16px "Titillium Web", sans-serif; color: var(--ex-turquoise);
}
.ex-langues__fleche { width: 0; height: 0; border: 5px solid transparent; border-top: 6px solid currentColor; margin: 4px 0 0 8px; }
.ex-langues__liste {
	display: none; position: absolute; top: 100%; left: 0; z-index: 30; list-style: none; margin: 4px 0 0; padding: 6px 0;
	background: #fff; border-radius: 8px; box-shadow: 0 6px 20px rgba(8, 40, 53, .18); min-width: 140px;
}
.ex-langues.est-ouvert .ex-langues__liste { display: block; }
.ex-langues__liste a { display: flex; align-items: center; gap: 6px; padding: 6px 14px; color: var(--ex-nuit); text-decoration: none; font-weight: 600; }
.ex-langues__liste a:hover { background: var(--ex-fond); }
.ex-drapeau { flex: none; border-radius: 1px; }

.ex-linkedin {
	flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	border: 1.5px solid #0a0a0a; color: #0a0a0a;
}
.ex-linkedin .ex-icone { width: 18px; height: 18px; }
.ex-coordonnees { margin: 0; display: grid; font-weight: 600; font-size: 15px; line-height: 1.2; }
.ex-coordonnees a { text-decoration: none; }
.ex-coordonnees a + a { color: #0a0a0a; }

.ex-burger { display: none; }

@media (max-width: 1100px) {
	.ex-entete__barre { padding-left: 20px; gap: 20px; }
	.ex-pastille { gap: 14px; padding: 8px 16px; }
	.ex-coordonnees { display: none; }
}
@media (max-width: 860px) {
	.ex-entete__barre { flex-wrap: wrap; justify-content: space-between; padding: 14px 16px; }
	.ex-pastille { flex-basis: 100%; flex-wrap: wrap; }
	.ex-burger {
		display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; padding: 0;
	}
	.ex-burger span:first-child, .ex-burger span:first-child::before, .ex-burger span:first-child::after {
		display: block; width: 22px; height: 2px; background: var(--ex-nuit); position: relative; content: "";
	}
	.ex-burger span:first-child::before { position: absolute; top: -7px; }
	.ex-burger span:first-child::after { position: absolute; top: 7px; }
	.ex-menu { display: none; flex-basis: 100%; order: 10; }
	.ex-menu.est-ouvert { display: block; }
	.ex-menu__liste { flex-direction: column; padding: 8px 4px; }
}
/* Téléphone : barre sombre pleine largeur, comme l'en-tête Elementor (logo, « Retour », langue). */
@media (max-width: 767px) {
	.ex-entete { padding: 0; }
	.ex-entete__barre { border-radius: 0; min-height: 76px; padding: 10px 16px; flex-wrap: nowrap; gap: 12px; }
	.ex-logo img { width: 130px; } /* 56 px de haut : tient dans la barre de 76 px */
	.ex-pastille { flex: 1 1 auto; flex-basis: auto; flex-wrap: nowrap; background: none; min-height: 0; padding: 0; gap: 8px; justify-content: flex-end; }
	.ex-linkedin, .ex-coordonnees { display: none; }
	.ex-bouton--retour { background: none; padding: 6px 4px; font-size: 17px; font-weight: 600; margin-right: auto; }
	.ex-langues { margin-left: 0; }
	.ex-langues__bouton { color: #fff; font-size: 15px; }
	.ex-langues__nom { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.ex-langues__liste { left: auto; right: 0; }
	.ex-burger span:first-child, .ex-burger span:first-child::before, .ex-burger span:first-child::after { background: #fff; }
	.ex-entete--accueil .ex-pastille { flex-wrap: wrap; }
	.ex-menu { background: #fff; border-radius: 12px; margin-top: 8px; }
}

/* ---------- Contenu ---------- */
.ex-contenu { min-height: 40vh; }
.ex-page, .ex-actualite, .ex-liste-actualites, .ex-bandeau__titre, .ex-vide {
	max-width: var(--ex-largeur); margin-left: auto; margin-right: auto;
}
.ex-page { padding: 0 var(--ex-gouttiere) 60px; }
.ex-page > * { margin-left: auto; margin-right: auto; }
.ex-page > *:not(.alignfull) { max-width: var(--ex-largeur); }
.ex-page h1, .ex-page h2 { color: #000405; }
.ex-titre-page { margin: 60px 0 30px; font-size: 44px; font-weight: 600; }
.ex-photo-groupe img { display: block; width: 100%; border: 5px solid #fff; border-radius: 30px; }

/* Bandeau gris des actualités */
.ex-bandeau { padding: 80px var(--ex-gouttiere) 50px; }
.ex-bandeau__titre { margin-top: 0; margin-bottom: 0; font-size: 44px; font-weight: 600; color: #000405; line-height: 1.15; }

/* Actualité seule : image à gauche, texte à droite, sur fond blanc */
.ex-actualite {
	max-width: none; background: #fff; padding: 60px max(var(--ex-gouttiere), calc((100% - var(--ex-largeur)) / 2)) 80px;
	display: grid; grid-template-columns: minmax(0, 550px) minmax(0, 1fr); gap: 20px 20px; align-items: start;
}
.ex-actualite__image img { width: 100%; border-radius: 30px; display: block; }
.ex-actualite__titre { margin: 0 0 16px; font-size: 36px; font-weight: 600; color: #000405; }
.ex-actualite__texte { color: var(--ex-gris, #7a7a7a); }
.ex-actualite__texte a { color: #c3185d; font-weight: 600; text-decoration: none; }
@media (max-width: 767px) { .ex-actualite { grid-template-columns: minmax(0, 1fr); } }

/* Liste des actualités */
.ex-liste-actualites { max-width: none; background: #fff; padding: 80px max(var(--ex-gouttiere), calc((100% - var(--ex-largeur)) / 2)); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.ex-carte-actualite { background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .15); display: flex; flex-direction: column; }
.ex-carte-actualite__image { position: relative; display: block; aspect-ratio: 555 / 366; overflow: hidden; }
.ex-carte-actualite__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-pastille-categorie { position: absolute; top: 22px; right: 20px; background: #61ce70; color: #fff; font-size: 12px; text-transform: uppercase; padding: 2px 14px; border-radius: 999px; }
.ex-carte-actualite__titre { margin: 30px 30px 6px; font-size: 25px; font-weight: 600; }
.ex-carte-actualite__titre a { color: #54595f; text-decoration: none; }
.ex-carte-actualite__date { margin: 0 30px; font-size: 13px; color: #adadad; }
.ex-carte-actualite__extrait { margin: 10px 30px 30px; font-size: 20px; color: #7a7a7a; }
.ex-carte-actualite__extrait p { margin: 0; }
@media (max-width: 767px) { .ex-liste-actualites { grid-template-columns: minmax(0, 1fr); } }
.navigation.pagination { text-align: center; padding: 30px 0; background: #fff; }
.page-numbers { display: inline-block; padding: 4px 10px; margin: 0 2px; color: var(--ex-nuit); }
.page-numbers.current { font-weight: 700; }

/* ---------- Équipe : cartes photo, nom, fonction ; « En savoir plus » fait monter la description ---------- */
.ex-equipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 60px; margin-bottom: 60px; }
@media (max-width: 1024px) { .ex-equipe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .ex-equipe { grid-template-columns: minmax(0, 1fr); max-width: 340px; } }
.ex-membre { position: relative; overflow: hidden; background: #fff; border-radius: 20px; min-height: 490px; }
.ex-membre:has(.ex-membre__verso) { cursor: pointer; }
.ex-membre:has(.ex-membre__verso):hover .ex-membre__plus { color: var(--ex-turquoise); }
.ex-membre__recto { display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; padding: 5px 5px 22px; }
.ex-membre__photo { width: 100%; aspect-ratio: 255 / 320; overflow: hidden; border-radius: 16px 16px 0 0; background: #e8eaea; }
.ex-membre__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.ex-membre__nom { margin: 30px 4px 0; font-size: 24px; font-weight: 600; line-height: 1.15; color: #000; }
.ex-membre__fonction { margin: 6px 10px 0; font-size: 22px; line-height: 1.2; color: #000; }
.ex-membre__plus {
	margin-top: 14px; background: none; border: 0; padding: 4px 8px; cursor: pointer;
	font: 400 20px/1.2 "Titillium Web", sans-serif; color: #000;
}
.ex-membre__plus:hover { color: var(--ex-turquoise); }
.ex-membre__verso {
	position: absolute; inset: 0; background: #fff; border-radius: 20px; padding: 26px;
	display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; text-align: center;
	transform: translateY(100%); transition: transform .8s cubic-bezier(.455, .03, .515, .955), visibility 0s .8s;
}
.ex-membre__verso[hidden] { display: flex; visibility: hidden; }
.ex-membre.est-retourne .ex-membre__verso { transform: none; visibility: visible; transition-delay: 0s; }
.ex-membre__verso .ex-membre__nom { margin-top: 0; font-weight: 400; line-height: 1.4; color: #111; }
.ex-membre__description { margin-top: 16px; font-size: 16px; line-height: 1.6; color: #111; }
.ex-membre__description p { margin: 0 0 .6em; }
.ex-membre__description > :last-child { margin-bottom: 0; }
.ex-membre__verso:focus { outline: none; }
.ex-membre__verso:focus-visible { outline: 2px solid var(--ex-turquoise); outline-offset: -4px; }
@media (prefers-reduced-motion: reduce) { .ex-membre__verso { transition: none; } }

/* ---------- Contact (sur toutes les pages, comme le pied Elementor) ---------- */
.ex-contact { padding: 70px var(--ex-gouttiere) 30px; }
.ex-contact__boite { max-width: var(--ex-largeur); margin: 0 auto; background: #092936; border-radius: 30px; padding: 15px 15px 30px; color: #fff; }
.ex-contact__titre {
	display: flex; align-items: center; gap: 10px; margin: 0; background: #fff; border-radius: 15px; padding: 6px 16px;
	color: #08351e; font-size: 36px; font-weight: 600;
}
.ex-contact__titre .ex-icone { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--ex-nuit); color: #fff; }
.ex-contact__colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 60px; padding: 20px 5px 0; }
@media (max-width: 860px) { .ex-contact__colonnes { grid-template-columns: minmax(0, 1fr); } }
.ex-contact__liste { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; font-size: 20px; font-weight: 600; }
.ex-contact__liste li { display: flex; align-items: center; gap: 14px; }
.ex-contact__liste a { color: #fff; text-decoration: none; }
.ex-contact__carte { width: 100%; height: 300px; border: 0; border-radius: 4px; overflow: hidden; background: #1d3a45; }
.ex-carte__repere {
	display: block; width: 30px; height: 38px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25));
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 38'%3E%3Cpath d='M15 1C7.3 1 1 7.2 1 14.8 1 25.1 15 37 15 37s14-11.9 14-22.2C29 7.2 22.7 1 15 1z' fill='%23092936' stroke='%23fff' stroke-width='2'/%3E%3Ccircle cx='15' cy='14.5' r='5' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / contain;
}
.ex-contact .gform_wrapper { color: #fff; }
/* Libellés du formulaire en blanc, astérisques en rose clair (ex-extrait WPCode « labelgravity »). */
.ex-contact .gform_wrapper label, .ex-contact .gform_wrapper legend { color: #fff; }
.ex-contact .gform_wrapper .gfield_label { font-size: 16px; }
.ex-contact .gform_wrapper .gfield_required, .ex-contact .gform_wrapper .gfield_description { color: #ffaaaa !important; } /* Gravity Forms colore l'astérisque avec un sélecteur plus fort */

/* ---------- Pied de page ---------- */
.ex-pied { background: #092936; color: #fff; margin-top: 30px; }
.ex-pied__interieur { position: relative; max-width: 1440px; margin: 0 auto; padding: 30px var(--ex-gouttiere) 20px; text-align: center; }
.ex-pied__badge { position: absolute; left: 30px; top: 40px; width: 90px; }
.ex-pied__droits { margin: 0 0 14px; font-size: 18px; }
.ex-pied__connexion { margin: 0 0 14px; }
.ex-pied a { color: #fff; text-decoration: none; }
.ex-pied__login { background: none; border: 0; padding: 0; color: #fff; font: inherit; cursor: pointer; }
.ex-pied__login:hover { color: var(--ex-turquoise); }
.ex-pied__liens { margin: 0; font-weight: 600; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
@media (max-width: 767px) { .ex-pied__badge { position: static; margin: 0 auto 12px; display: block; } }

/* ==========================================================================
   Accueil (page en blocs, comme l'ancienne page Elementor)
   ========================================================================== */
.ex-page > .ex-hero:first-child { margin-top: 0; }
.home .ex-page { max-width: calc(var(--ex-largeur) + 2 * var(--ex-gouttiere)); padding-bottom: 80px; }
[id] { scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 110px); }

/* Bandeau d'ouverture : image de fond, coins bas arrondis, collé sous l'en-tête. */
.ex-hero.wp-block-cover { max-width: var(--ex-largeur); min-height: 516px; padding: 30px 20px 40px 50px; border-radius: 0 0 30px 30px; overflow: hidden; background-color: var(--ex-nuit); }
.ex-hero .wp-block-cover__image-background { object-position: top right; }
.ex-hero .wp-block-cover__inner-container { width: 100%; color: #fff; }
.ex-hero h1, .ex-hero p { color: #fff; font-weight: 600; margin: 0; }
.ex-hero__marque { font-size: 120px; line-height: 1; padding-top: 0; }
.ex-hero__titre { font-size: 55px; line-height: 1.05; margin-top: 30px !important; max-width: 85%; }
.ex-hero__texte { font-size: 25px; line-height: 1.2; margin-top: 30px !important; max-width: 85%; }

/* Sections et leurs titres avec pastille d'icône. */
.ex-section { margin-top: 60px; margin-bottom: 0; }
.ex-page .ex-titre-section { display: flex; align-items: center; gap: 25px; margin: 0 0 46px; font-size: 36px; font-weight: 700; line-height: 1.1; color: var(--ex-ardoise); }
/* Pastille : carré ardoise arrondi, icône blanche au centre. */
.ex-titre-section::before { content: ""; flex: 0 0 52px; height: 52px; border-radius: 4px; background: var(--ex-ardoise) var(--ex-icone) center / 26px 26px no-repeat; }
.ex-entete-section { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 46px; }
.ex-entete-section .ex-titre-section { margin: 0; }
.ex-centre { text-align: center; }

/* Boutons de l'accueil : pilule pétrole. */
.ex-page .wp-block-button__link { background: var(--ex-petrole); color: #fff; border-radius: 30px; padding: 10px 24px; font-size: 18px; font-weight: 500; line-height: 1.2; text-decoration: none; }
.ex-page .wp-block-button__link:hover { background: var(--ex-nuit); color: #fff; }
.ex-bouton-pdf .wp-block-button__link::after {
	content: ""; display: inline-block; width: 12px; height: 16px; margin-left: 9px; vertical-align: -2px; background: currentColor;
	-webkit-mask: var(--ex-icone) center / contain no-repeat; mask: var(--ex-icone) center / contain no-repeat;
}

/* Dernières actualités : trois cartes bordées d'ardoise. */
.ex-actus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 70px; }
.ex-actu { display: flex; flex-direction: column; background: #fff; border: 4px solid var(--ex-ardoise); border-radius: 30px; overflow: hidden; }
.ex-actu__image { display: block; aspect-ratio: 359 / 235; background: #fff; }
.ex-actu__image img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ex-actu__texte { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 30px; }
.ex-actu__titre { margin: 0; font-size: 22px; font-weight: 400; line-height: 26px; }
.ex-actu__titre a { color: #000; text-decoration: none; }
.ex-actu__titre a:hover { color: var(--ex-turquoise); }
.ex-actu__date { margin: 11px 0 0; font-size: 13px; color: #707070; }
.ex-actu__extrait { margin: 15px 0 0; color: #636363; line-height: 1.5; flex: 1; }
/* Lien discret (choix de Fred du 28/10 : plus de gros bouton plein comme sous Elementor). */
.ex-actu__bouton { margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--ex-petrole); text-decoration: none; }
.ex-actu__bouton::after { content: " →"; transition: margin-left .2s; }
.ex-actu__bouton:hover { color: var(--ex-turquoise); text-decoration: underline; text-underline-offset: 3px; }

/* Qui sommes-nous : grand texte gris, onglets en pilules, chiffres clés. */
.ex-intro { font-size: 24px; line-height: 1.24; color: #7a7a7a; margin: 0 0 80px; }
.ex-onglets--horizontal > .ex-onglets__titres { display: flex; justify-content: center; gap: 12px; overflow-x: auto; padding-bottom: 17px; scrollbar-width: none; }
.ex-onglets__titre {
	flex: 0 0 auto; border: 0; border-radius: 30px; background: #fff; color: #333; cursor: pointer;
	font: 600 20px/1.2 "Titillium Web", sans-serif; padding: 18px 35px; white-space: nowrap;
}
.ex-onglets__titre:hover { color: var(--ex-turquoise); }
.ex-onglets__titre[aria-selected="true"] { background: #204551; color: #fff; }
.ex-onglets--horizontal .ex-onglets__panneau { background: #fff; border-radius: 30px; padding: 30px; }
.ex-onglets__panneau[hidden] { display: none; }
.ex-onglets__panneau > :first-child { margin-top: 0; }
.ex-onglets__panneau > :last-child { margin-bottom: 0; }
.ex-qui .wp-block-media-text { grid-template-columns: 50% auto; }
.ex-qui .wp-block-media-text__media img { width: 80%; margin: 0 auto; display: block; border-radius: 30px; }
.ex-qui .wp-block-media-text__content { padding: 0 0 0 20px; font-size: 24px; line-height: 1.24; color: #7a7a7a; }
.ex-qui .wp-block-media-text__content p { margin: 0 0 .5em; }
.ex-chiffres { display: flex; justify-content: space-evenly; gap: 20px 90px; flex-wrap: wrap; margin: 60px 0 0; text-align: center; }
.ex-chiffres > * { margin: 0 !important; }
.ex-chiffre__nombre { margin: 0; font-size: 69px; font-weight: 600; line-height: 1; color: #204551; font-variant-numeric: tabular-nums; }
.ex-chiffre__titre { margin: 10px 0 0; font-size: 19px; line-height: 2.5; color: #54595f; }
.ex-croissance { margin: 40px 0 0; text-align: center; font-size: 44px; font-weight: 600; line-height: 1.2; color: #204551; }

/* Notre équipe : encadré blanc, accroche à gauche, photos qui défilent à droite. */
.ex-equipe-accroche { display: flex; align-items: center; gap: 40px; background: #fff; border-radius: 16px; padding: 60px 70px; }
.ex-equipe-accroche > .wp-block-group { flex: 0 0 34%; }
.ex-equipe-accroche h3 { margin: 0; font-size: 36px; font-weight: 600; line-height: 1; color: #204551; }
.ex-equipe-accroche .wp-block-buttons { margin-top: 40px; }
.ex-defilement { flex: 1; min-width: 0; display: flex; overflow: hidden; }
.ex-defilement__piste { display: flex; gap: 10px; margin: 0; padding: 0 10px 0 0; list-style: none; flex-shrink: 0; animation: ex-defile var(--ex-duree, 45s) linear infinite; }
.ex-defilement:hover .ex-defilement__piste { animation-play-state: paused; }
.ex-defilement__piste img { display: block; width: 197px; height: 246px; object-fit: cover; object-position: top; }
@keyframes ex-defile { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ex-defilement { overflow-x: auto; } .ex-defilement__piste { animation: none; } }

/* Missions : titres en colonne à gauche dans un encadré blanc. */
.ex-missions { background: #fff; border-radius: 16px; padding: 20px; }
.ex-onglets--vertical { display: flex; gap: 20px; }
.ex-onglets--vertical > .ex-onglets__titres { flex: 0 0 30%; display: flex; flex-direction: column; gap: 10px; padding: 33px 0 33px 20px; }
.ex-onglets--vertical .ex-onglets__titre { background: transparent; color: #54595f; font-size: 16px; font-weight: 700; text-transform: uppercase; text-align: left; padding: 17px 35px; white-space: normal; }
.ex-onglets--vertical .ex-onglets__titre[aria-selected="true"] { background: #204551; color: #fff; }
.ex-onglets--vertical .ex-onglets__panneaux { flex: 1; min-width: 0; }
.ex-onglets--vertical .ex-onglets__panneau { margin: 40px 20px 40px 20px; font-size: 20px; line-height: 1.5; color: #030303; }
.ex-onglets--vertical .ex-onglets__panneau ol, .ex-onglets--vertical .ex-onglets__panneau ul { margin: 0; padding-left: 20px; }

/* Formations : bouton du catalogue en face du titre, onglets en capitales, deux colonnes. */
.ex-formations .ex-onglets--horizontal > .ex-onglets__titres { gap: 39px; padding-bottom: 19px; }
.ex-formations .ex-onglets__titre { font-size: 17px; text-transform: uppercase; padding: 17px 35px; }
.ex-formations .ex-onglets__panneau { padding: 60px; }
.ex-formations .ex-onglets__panneau .wp-block-columns { gap: 40px; margin: 0; }
.ex-formations .ex-onglets__panneau p { margin: 0 0 15px; color: #7a7a7a; line-height: 1.5; }

/* Témoignages : carrousel sur fond ardoise. */
.ex-temoignages { position: relative; background: var(--ex-ardoise); border-radius: 16px; padding: 50px 0; overflow: hidden; }
.ex-temoignages__piste { position: relative; height: 560px; perspective: 1200px; }
.ex-temoignage {
	position: absolute; top: 50%; left: 50%; width: 450px; min-height: 507px; box-sizing: border-box;
	padding: 20px; background: #fff; border-radius: 16px; color: #000; font-size: 16px; line-height: 1.5;
	transform: translate(-50%, -50%) translateX(calc(var(--ecart, 0) * 200px)) rotateY(calc(var(--ecart, 0) * -45deg)) scale(calc(1 - var(--distance, 0) * .1));
	z-index: calc(10 - var(--distance, 0)); opacity: calc(1 - min(var(--distance, 0), 1) * .25);
	transition: transform .5s ease, opacity .5s ease; cursor: pointer;
}
.ex-temoignages:not(.est-pret) .ex-temoignage:not(:first-child) { display: none; }
.ex-temoignage.est-active { cursor: auto; }
.ex-temoignage:not(.est-active) { filter: brightness(.95); }
.ex-temoignage img { height: 50px; width: auto; max-width: 100%; object-fit: contain; display: block; margin: 0 auto 20px; }
.ex-temoignage figure { margin: 0; }
.ex-temoignage p { margin: 0 0 .5em; }
/* Enveloppe du texte et bouton « Lire le témoignage » (exystat.js) : sans effet hors téléphone. */
.ex-temoignage__texte, .ex-temoignage__texte[hidden] { display: contents; }
.ex-temoignage__ouvrir { display: none; }
.ex-temoignages__puces { display: flex; justify-content: center; align-items: center; gap: 11px; margin-top: 20px; }
.ex-temoignages__puce { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 10px; background: #d9d9d9; cursor: pointer; transition: width .3s; }
.ex-temoignages__puce[aria-current="true"] { width: 52px; background: #000; }
@media (prefers-reduced-motion: reduce) { .ex-temoignage, .ex-temoignages__puce { transition: none; } }
/* Dans l'éditeur : cartes côte à côte, défilement horizontal, sans carrousel. */
.ex-temoignages-edition { background: var(--ex-ardoise); border-radius: 16px; padding: 30px 20px; }
.ex-temoignages-edition > .block-editor-inner-blocks > .block-editor-block-list__layout { display: flex; gap: 20px; align-items: flex-start; overflow-x: auto; }
.ex-temoignages-edition .ex-temoignage { position: relative; top: auto; left: auto; flex: 0 0 360px; width: 360px; min-height: 0; margin: 0; transform: none; opacity: 1; filter: none; cursor: auto; }

@media (max-width: 1024px) {
	.ex-hero__marque { font-size: 90px; }
	.ex-hero__titre { font-size: 42px; }
	.ex-actus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ex-equipe-accroche { flex-direction: column; align-items: stretch; padding: 40px; }
	.ex-chiffres { gap: 20px 50px; }
}
@media (max-width: 767px) {
	/* Bandeau d'ouverture bord à bord, comme l'en-tête au-dessus. */
	.ex-page > .ex-hero.wp-block-cover { margin-left: calc(-1 * var(--ex-gouttiere)); margin-right: calc(-1 * var(--ex-gouttiere)); max-width: none; border-radius: 0 0 24px 24px; min-height: 420px; padding: 30px 20px; }
	.ex-hero__marque { font-size: 60px; }
	.ex-hero__titre { font-size: 30px; max-width: none; }
	.ex-hero__texte { font-size: 23px; max-width: none; }
	/* Titres de section sur une ligne : pastille et texte plus petits (.ex-page pour passer devant la règle d'ordinateur). */
	.ex-page .ex-titre-section { font-size: 25px; gap: 14px; margin-bottom: 30px; }
	.ex-titre-section::before { flex-basis: 40px; height: 40px; background-size: 20px 20px; }
	/* Actualités : cartes côte à côte qui défilent au doigt, la suivante dépasse pour inviter à glisser. */
	.ex-page .ex-actus {
		display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
		margin-left: calc(-1 * var(--ex-gouttiere)); margin-right: calc(-1 * var(--ex-gouttiere));
		padding: 0 var(--ex-gouttiere) 4px; scroll-padding: 0 var(--ex-gouttiere);
	}
	.ex-actus::-webkit-scrollbar { display: none; }
	/* relative : sinon Safari laisse le texte caché du lien (.screen-reader-text, absolu) sortir du défilement et élargir la page. */
	.ex-actu { position: relative; flex: 0 0 85%; scroll-snap-align: start; }
	.ex-actu__texte { padding: 22px; }
	.ex-intro, .ex-qui .wp-block-media-text__content { font-size: 20px; }
	.ex-qui .wp-block-media-text__content { padding: 20px 0 0; }
	.ex-onglets--horizontal > .ex-onglets__titres { justify-content: flex-start; }
	/* Onglets → accordéon (en colonne comme côte à côte) : chaque texte s'ouvre sous son titre (ordre donné par --ex-rang). */
	.ex-onglets--horizontal, .ex-onglets--vertical { display: flex; flex-direction: column; gap: 6px; }
	.ex-page .ex-onglets > .ex-onglets__titres, .ex-onglets > .ex-onglets__panneaux { display: contents; }
	.ex-page .ex-onglets .ex-onglets__titre { order: calc(var(--ex-rang, 0) * 2); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; font-size: 17px; text-align: left; white-space: normal; }
	.ex-onglets--vertical .ex-onglets__titre:not([aria-selected="true"]) { background: var(--ex-fond); }
	.ex-onglets__titre::after { content: ""; flex: none; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
	.ex-onglets__titre[aria-selected="true"]::after { transform: translateY(2px) rotate(-135deg); }
	.ex-onglets .ex-onglets__panneau { order: calc(var(--ex-rang, 0) * 2 + 1); }
	.ex-onglets--horizontal .ex-onglets__panneau { padding: 24px 20px; margin-bottom: 10px; }
	.ex-onglets--vertical .ex-onglets__panneau { margin: 6px 10px 16px; font-size: 18px; }
	.ex-missions { padding: 12px; }
	.ex-formations .ex-onglets__panneau { padding: 24px 20px; }
	.ex-chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 16px; }
	.ex-chiffre__nombre { font-size: 52px; }
	.ex-chiffre__titre { line-height: 1.3; }
	.ex-croissance { font-size: 30px; }
	.ex-equipe-accroche { padding: 20px; }
	.ex-equipe-accroche h3 { font-size: 28px; }
	/* Témoignages : plus de carrousel (les cartes inclinées sortaient de l'écran), une liste en accordéon :
	   logo et auteur visibles, le texte s'ouvre avec « Lire le témoignage » (bouton ajouté par exystat.js). */
	.ex-temoignages { padding: 12px; }
	.ex-temoignages__piste { height: auto; perspective: none; display: grid; gap: 10px; }
	.ex-temoignages:not(.est-pret) .ex-temoignage:not(:first-child) { display: flex; }
	.ex-temoignage, .ex-temoignage:not(.est-active) { position: static; width: auto; min-height: 0; padding: 20px; transform: none; opacity: 1; filter: none; cursor: auto; display: flex; flex-direction: column; }
	.ex-temoignage img { width: auto !important; height: 44px !important; margin-bottom: 14px; } /* l'éditeur pose une largeur en ligne : logos de même hauteur */
	.ex-temoignage p:empty { display: none; }
	.ex-temoignage__texte[hidden] { display: none; }
	.ex-temoignage__ouvrir {
		display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 6px; background: none; border: 0; padding: 4px 0;
		cursor: pointer; font: 600 16px/1.2 "Titillium Web", sans-serif; color: var(--ex-petrole);
	}
	.ex-temoignage__ouvrir::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
	.ex-temoignage__ouvrir[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
	.ex-temoignages__puces { display: none; }
}

/* Icônes des titres de section et du bouton du catalogue : Font Awesome Free 5 (CC BY 4.0), comme sous Elementor. */
.ex-icone-actualites { --ex-icone: url("data:image/svg+xml,%3Csvg fill='%23fff' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M552 64H112c-20.858 0-38.643 13.377-45.248 32H24c-13.255 0-24 10.745-24 24v272c0 30.928 25.072 56 56 56h496c13.255 0 24-10.745 24-24V88c0-13.255-10.745-24-24-24zM48 392V144h16v248c0 4.411-3.589 8-8 8s-8-3.589-8-8zm480 8H111.422c.374-2.614.578-5.283.578-8V112h416v288zM172 280h136c6.627 0 12-5.373 12-12v-96c0-6.627-5.373-12-12-12H172c-6.627 0-12 5.373-12 12v96c0 6.627 5.373 12 12 12zm28-80h80v40h-80v-40zm-40 140v-24c0-6.627 5.373-12 12-12h136c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H172c-6.627 0-12-5.373-12-12zm192 0v-24c0-6.627 5.373-12 12-12h104c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H364c-6.627 0-12-5.373-12-12zm0-144v-24c0-6.627 5.373-12 12-12h104c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H364c-6.627 0-12-5.373-12-12zm0 72v-24c0-6.627 5.373-12 12-12h104c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H364c-6.627 0-12-5.373-12-12z'/%3E%3C/svg%3E"); }
.ex-icone-qui { --ex-icone: url("data:image/svg+xml,%3Csvg fill='%23fff' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 544 512'%3E%3Cpath d='M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z'/%3E%3C/svg%3E"); }
.ex-icone-equipe { --ex-icone: url("data:image/svg+xml,%3Csvg fill='%23fff' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'%3E%3Cpath d='M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z'/%3E%3C/svg%3E"); }
.ex-icone-missions { --ex-icone: url("data:image/svg+xml,%3Csvg fill='%23fff' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM464 96H345.94c-21.38 0-32.09 25.85-16.97 40.97l32.4 32.4L288 242.75l-73.37-73.37c-12.5-12.5-32.76-12.5-45.25 0l-68.69 68.69c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L192 237.25l73.37 73.37c12.5 12.5 32.76 12.5 45.25 0l96-96 32.4 32.4c15.12 15.12 40.97 4.41 40.97-16.97V112c.01-8.84-7.15-16-15.99-16z'/%3E%3C/svg%3E"); }
.ex-icone-formations { --ex-icone: url("data:image/svg+xml,%3Csvg fill='%23fff' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M542.22 32.05c-54.8 3.11-163.72 14.43-230.96 55.59-4.64 2.84-7.27 7.89-7.27 13.17v363.87c0 11.55 12.63 18.85 23.28 13.49 69.18-34.82 169.23-44.32 218.7-46.92 16.89-.89 30.02-14.43 30.02-30.66V62.75c.01-17.71-15.35-31.74-33.77-30.7zM264.73 87.64C197.5 46.48 88.58 35.17 33.78 32.05 15.36 31.01 0 45.04 0 62.75V400.6c0 16.24 13.13 29.78 30.02 30.66 49.49 2.6 149.59 12.11 218.77 46.95 10.62 5.35 23.21-1.94 23.21-13.46V100.63c0-5.29-2.62-10.14-7.27-12.99z'/%3E%3C/svg%3E"); }
.ex-icone-clients { --ex-icone: url("data:image/svg+xml,%3Csvg fill='%23fff' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'%3E%3Cpath d='M434.7 64h-85.9c-8 0-15.7 3-21.6 8.4l-98.3 90c-.1.1-.2.3-.3.4-16.6 15.6-16.3 40.5-2.1 56 12.7 13.9 39.4 17.6 56.1 2.7.1-.1.3-.1.4-.2l79.9-73.2c6.5-5.9 16.7-5.5 22.6 1 6 6.5 5.5 16.6-1 22.6l-26.1 23.9L504 313.8c2.9 2.4 5.5 5 7.9 7.7V128l-54.6-54.6c-5.9-6-14.1-9.4-22.6-9.4zM544 128.2v223.9c0 17.7 14.3 32 32 32h64V128.2h-96zm48 223.9c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zM0 384h64c17.7 0 32-14.3 32-32V128.2H0V384zm48-63.9c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16c0-8.9 7.2-16 16-16zm435.9 18.6L334.6 217.5l-30 27.5c-29.7 27.1-75.2 24.5-101.7-4.4-26.9-29.4-24.8-74.9 4.4-101.7L289.1 64h-83.8c-8.5 0-16.6 3.4-22.6 9.4L128 128v223.9h18.3l90.5 81.9c27.4 22.3 67.7 18.1 90-9.3l.2-.2 17.9 15.5c15.9 13 39.4 10.5 52.3-5.4l31.4-38.6 5.4 4.4c13.7 11.1 33.9 9.1 45-4.7l9.5-11.7c11.2-13.8 9.1-33.9-4.6-45.1z'/%3E%3C/svg%3E"); }
.ex-icone-pdf { --ex-icone: url("data:image/svg+xml,%3Csvg fill='%23fff' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M181.9 256.1c-5-16-4.9-46.9-2-46.9 8.4 0 7.6 36.9 2 46.9zm-1.7 47.2c-7.7 20.2-17.3 43.3-28.4 62.7 18.3-7 39-17.2 62.9-21.9-12.7-9.6-24.9-23.4-34.5-40.8zM86.1 428.1c0 .8 13.2-5.4 34.9-40.2-6.7 6.3-29.1 24.5-34.9 40.2zM248 160h136v328c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V24C0 10.7 10.7 0 24 0h200v136c0 13.2 10.8 24 24 24zm-8 171.8c-20-12.2-33.3-29-42.7-53.8 4.5-18.5 11.6-46.6 6.2-64.2-4.7-29.4-42.4-26.5-47.8-6.8-5 18.3-.4 44.1 8.1 77-11.6 27.6-28.7 64.6-40.8 85.8-.1 0-.1.1-.2.1-27.1 13.9-73.6 44.5-54.5 68 5.6 6.9 16 10 21.5 10 17.9 0 35.7-18 61.1-61.8 25.8-8.5 54.1-19.1 79-23.2 21.7 11.8 47.1 19.5 64 19.5 29.2 0 31.2-32 19.7-43.4-13.9-13.6-54.3-9.7-73.6-7.2zM377 105L279 7c-4.5-4.5-10.6-7-17-7h-6v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-74.1 255.3c4.1-2.7-2.5-11.9-42.8-9 37.1 15.8 42.8 9 42.8 9z'/%3E%3C/svg%3E"); }
