/**
 * The Spinach Company — styles front des blocs personnalisés.
 *
 * Port fidèle de la maquette V5, namespacé « sp- » pour ne jamais entrer en
 * conflit avec le cœur WordPress / FSE. La charte (couleurs, polices) vient de
 * theme.json ; ici, la mise en page des sections. Les vitesses d'animation
 * sont pilotées par des variables CSS définies en ligne (réglables depuis
 * l'admin) : --sp-marquee-speed, --sp-testi-speed.
 */

/* --- Primitives ---------------------------------------------------------- */
.sp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.sp-section { padding: 100px 0; }
.sp-section--gray { background: var(--wp--preset--color--gris); }

.sp-eyebrow { font-family: var(--wp--preset--font-family--barlow); font-weight: 600; font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--wp--preset--color--rouge); }
.sp-eyebrow--coral { color: var(--wp--preset--color--corail); }
.sp-lead { font-size: 20px; color: #34323B; line-height: 1.55; }
.sp-muted { color: var(--wp--preset--color--texte-attenue); }

.sp-btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--wp--preset--font-family--barlow); font-weight: 600; font-size: 15px; padding: 13px 24px; background: var(--wp--preset--color--rouge); color: #fff; border: none; cursor: pointer; transition: background .2s, transform .15s; text-decoration: none; }
.sp-btn:hover { background: #bd1414; transform: translateY(-1px); color: #fff; }
.sp-btn .sp-ar { transition: transform .2s; }
.sp-btn:hover .sp-ar { transform: translateX(4px); }
.sp-btn--ghost { background: transparent; color: var(--wp--preset--color--encre); border: 1.5px solid var(--wp--preset--color--encre); }
.sp-btn--ghost:hover { background: var(--wp--preset--color--encre); color: #fff; }
.sp-btn--ink { background: var(--wp--preset--color--encre); }
.sp-btn--ink:hover { background: #000; }
.sp-btn--ghost.sp-btn--light { color: #fff; border-color: #fff; }
.sp-btn--ghost.sp-btn--light:hover { background: #fff; color: var(--wp--preset--color--encre); }

/* Section header (titre + accroche) */
.sp-sh { max-width: 64ch; margin-bottom: 48px; }
.sp-sh h2 { font-size: clamp(34px, 5vw, 64px); }
.sp-sh h2 em, .sp-conv h2 em, .sp-hero h1 em { font-style: normal; color: var(--wp--preset--color--rouge); }
.sp-sh p { margin-top: 16px; font-size: 19px; color: #3A3842; }

/* --- Hero ---------------------------------------------------------------- */
.sp-hero { position: relative; min-height: 640px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.sp-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.sp-hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,13,23,.93) 0%, rgba(16,13,23,.74) 42%, rgba(16,13,23,.30) 100%); }
.sp-hero .sp-wrap { position: relative; padding-top: 70px; padding-bottom: 70px; }
.sp-kicker { display: inline-flex; gap: 14px; flex-wrap: wrap; font-family: var(--wp--preset--font-family--barlow-condensed); font-weight: 700; font-size: 17px; letter-spacing: .32em; text-transform: uppercase; color: var(--wp--preset--color--corail); margin-bottom: 24px; }
.sp-hero h1 { font-size: clamp(46px, 7vw, 104px); max-width: 15ch; color: #fff; }
.sp-hero p { margin-top: 24px; max-width: 50ch; font-size: 20px; color: #D9D8DE; line-height: 1.5; }
.sp-hero .sp-row { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

/* --- Bandeau de confiance (logos) --------------------------------------- */
.sp-trust { padding: 42px 0; border-bottom: 1px solid var(--wp--preset--color--ligne); background: var(--wp--preset--color--gris); }
.sp-trust .sp-lbl { text-align: center; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--wp--preset--color--texte-attenue); font-weight: 600; margin-bottom: 24px; }
.sp-marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.sp-marquee .sp-track { display: flex; gap: 70px; width: max-content; animation: sp-scroll var(--sp-marquee-speed, 34s) linear infinite; align-items: center; }
.sp-marquee:hover .sp-track { animation-play-state: paused; }
.sp-marquee img { height: 52px; width: auto; object-fit: contain; }
.sp-marquee .sp-logotext { font-family: var(--wp--preset--font-family--barlow-condensed); font-weight: 700; font-size: 30px; color: var(--wp--preset--color--encre); letter-spacing: .01em; white-space: nowrap; }
@keyframes sp-scroll { to { transform: translateX(-50%); } }

/* --- Signature conversationnel ------------------------------------------ */
.sp-conv { background: var(--wp--preset--color--encre); color: #fff; }
.sp-conv .sp-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.sp-conv h2 { font-size: clamp(34px, 4.6vw, 60px); color: #fff; }
.sp-conv h2 em { color: var(--wp--preset--color--corail); }
.sp-conv p { margin-top: 20px; color: #C9C8CE; font-size: 18px; }
.sp-stat { font-family: var(--wp--preset--font-family--barlow-condensed); font-weight: 800; font-size: 120px; line-height: .85; color: var(--wp--preset--color--rouge); }
.sp-stat small { font-size: 34px; vertical-align: super; }
.sp-statc { font-size: 16px; color: #C9C8CE; max-width: 30ch; margin-top: 10px; }
.sp-statblock { background: var(--wp--preset--color--rouge); padding: 30px 36px; }
.sp-statblock .sp-stat { color: #fff; font-size: 84px; }
.sp-statblock .sp-stat small { font-size: 26px; }
.sp-statblock .sp-statc { color: var(--wp--preset--color--encre); max-width: none; }
.sp-statblock .sp-statsrc { color: rgba(16,13,23,.62); margin-top: 6px; }
.sp-statblock + .sp-statblock { margin-top: 18px; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.sp-chip { border: 1px solid rgba(255,255,255,.28); padding: 8px 16px; font-weight: 600; font-size: 14px; }
.sp-chip.on { background: var(--wp--preset--color--rouge); border-color: var(--wp--preset--color--rouge); }

/* --- 3 blocs Brand / Media / Conversation ------------------------------- */
.sp-blocs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--wp--preset--color--encre); border-left: 2px solid var(--wp--preset--color--encre); }
.sp-bloc { padding: 38px 32px; border-right: 2px solid var(--wp--preset--color--encre); border-bottom: 2px solid var(--wp--preset--color--encre); position: relative; transition: background .25s; min-height: 230px; }
.sp-bloc:hover { background: var(--wp--preset--color--gris); }
.sp-bloc.hl { background: var(--wp--preset--color--rouge); color: #fff; }
.sp-bloc.hl:hover { background: #cf1818; }
.sp-bloc .sp-n { font-family: var(--wp--preset--font-family--barlow-condensed); font-weight: 700; font-size: 15px; letter-spacing: .1em; opacity: .6; }
.sp-bloc h3 { font-size: 34px; margin: 8px 0 12px; }
.sp-bloc p { font-size: 16px; color: #403E48; line-height: 1.5; }
.sp-bloc.hl p { color: #FFE2E3; }
.sp-bloc .sp-badge { position: absolute; top: 34px; right: 32px; background: #fff; color: var(--wp--preset--color--rouge); font-family: var(--wp--preset--font-family--barlow); font-weight: 700; font-size: 11px; letter-spacing: .12em; padding: 5px 10px; text-transform: uppercase; }
.sp-bloc .sp-disc { margin-top: 16px; font-weight: 700; font-size: 14px; color: var(--wp--preset--color--rouge); background: none; border: none; cursor: pointer; font-family: var(--wp--preset--font-family--barlow); display: inline-flex; gap: 7px; }
.sp-bloc.hl .sp-disc { color: #fff; }
.sp-bloc .sp-detail { max-height: 0; overflow: hidden; transition: max-height .45s ease; }
.sp-bloc .sp-detail.open { max-height: 520px; margin-top: 18px; }
.sp-bloc .sp-caps { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-bloc .sp-caps span { background: rgba(0,0,0,.06); font-weight: 600; font-size: 13px; padding: 6px 12px; color: #2E2C36; }
.sp-bloc.hl .sp-caps span { background: rgba(255,255,255,.16); color: #fff; }

/* --- Cartes réalisations ------------------------------------------------ */
.sp-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sp-case { border: 1px solid var(--wp--preset--color--ligne); background: #fff; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.sp-case:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(16,13,23,.10); }
.sp-case .sp-top { height: 190px; background: #fff; border-bottom: 1px solid var(--wp--preset--color--ligne); display: flex; align-items: center; justify-content: center; padding: 26px 28px; position: relative; }
.sp-case .sp-chipw { position: absolute; top: 14px; left: 14px; background: var(--wp--preset--color--encre); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; padding: 5px 10px; }
.sp-case .sp-logo { max-height: 120px; max-width: 84%; width: auto; object-fit: contain; }
.sp-case .sp-logotext { font-family: var(--wp--preset--font-family--barlow-condensed); font-weight: 800; font-size: 44px; color: var(--wp--preset--color--encre); letter-spacing: .01em; }
.sp-case .sp-body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.sp-case h3 { font-size: 23px; line-height: 1.02; }
.sp-case .sp-desc { font-size: 15px; color: #403E48; margin-top: 8px; flex: 1; }
.sp-case .sp-open { margin-top: 16px; font-weight: 700; font-size: 14px; color: var(--wp--preset--color--rouge); display: inline-flex; gap: 7px; }

/* --- Fiche de cas (single) ---------------------------------------------- */
.sp-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--wp--preset--color--texte-attenue); margin-bottom: 26px; text-decoration: none; }
.sp-back:hover { color: var(--wp--preset--color--rouge); }
.sp-cd-head { border-bottom: 2px solid var(--wp--preset--color--encre); padding-bottom: 34px; margin-bottom: 40px; }
.sp-cd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sp-tag { background: var(--wp--preset--color--gris); font-size: 12px; font-weight: 600; padding: 6px 12px; color: #3A3842; }
.sp-cd-sec { max-width: 780px; margin-bottom: 40px; }
.sp-cd-sec h4 { font-size: 15px; letter-spacing: .12em; color: var(--wp--preset--color--rouge); margin-bottom: 16px; }
.sp-cd-prose { font-size: 19px; line-height: 1.6; color: #2A2832; }
.sp-cd-sec ul { list-style: none; margin: 0; padding: 0; }
.sp-cd-sec li { padding: 11px 0; border-top: 1px solid var(--wp--preset--color--ligne); font-size: 17px; color: #2E2C36; }
.sp-cd-metrics { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.sp-cd-metric { background: var(--wp--preset--color--encre); color: #fff; padding: 18px 22px; min-width: 150px; }
.sp-cd-metric b { font-family: var(--wp--preset--font-family--barlow-condensed); font-weight: 800; font-size: 30px; color: var(--wp--preset--color--corail); display: block; line-height: 1; }
.sp-cd-metric span { font-size: 13px; color: #C9C8CE; }

/* --- Témoignages -------------------------------------------------------- */
.sp-testi { background: var(--wp--preset--color--gris); }
.sp-tmarquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.sp-ttrack { display: flex; gap: 24px; width: max-content; animation: sp-scroll var(--sp-testi-speed, 40s) linear infinite; }
.sp-tmarquee:hover .sp-ttrack { animation-play-state: paused; }
.sp-tcard { background: #fff; border: 1px solid var(--wp--preset--color--ligne); padding: 30px 28px; width: 390px; flex: 0 0 auto; }
.sp-tcard .sp-q { font-family: var(--wp--preset--font-family--barlow-condensed); font-weight: 600; text-transform: none; font-size: 22px; line-height: 1.25; }
.sp-tcard .sp-by { margin-top: 18px; font-size: 14px; color: var(--wp--preset--color--texte-attenue); font-weight: 600; }
.sp-tcard .sp-mark { color: var(--wp--preset--color--rouge); font-family: var(--wp--preset--font-family--barlow-condensed); font-size: 44px; line-height: .4; }

/* --- Récit « origine du nom » ------------------------------------------- */
.sp-story { background: var(--wp--preset--color--gris); }
.sp-story .sp-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: stretch; }
.sp-story .sp-panel { background: var(--wp--preset--color--rouge); color: #fff; padding: 54px 44px; display: flex; flex-direction: column; justify-content: center; }
.sp-story .sp-panel .sp-big { font-family: var(--wp--preset--font-family--barlow-condensed); font-weight: 800; font-size: clamp(80px, 11vw, 150px); line-height: .82; }
.sp-story .sp-panel .sp-cap { font-size: 18px; margin-top: 14px; color: #FFE2E3; line-height: 1.4; }
.sp-story .sp-panel .sp-cap b { color: #fff; }
.sp-verse { font-family: var(--wp--preset--font-family--barlow-condensed); font-weight: 500; text-transform: none; font-size: clamp(20px, 2.4vw, 27px); line-height: 1.42; }
.sp-verse strong { font-weight: 700; } /* **mot** = gras choisi par l'éditeur */
.sp-verse .hl { color: var(--wp--preset--color--rouge); }
.sp-verse .sp-blk { margin-bottom: 22px; }
.sp-verse .sp-sign { font-family: var(--wp--preset--font-family--barlow); font-size: 17px; color: #3A3842; margin-top: 6px; }
.sp-verse .sp-sign b { color: var(--wp--preset--color--encre); }

/* --- Mise en page agence / réseau --------------------------------------- */
.sp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.sp-net { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sp-net span { background: var(--wp--preset--color--gris); font-weight: 600; font-size: 13.5px; padding: 7px 13px; color: #2E2C36; }
.sp-teamimg { width: 100%; height: auto; border: 1px solid var(--wp--preset--color--ligne); }

/* --- Insights / newsletter ---------------------------------------------- */
.sp-feat { display: grid; grid-template-columns: 1.15fr .85fr; gap: 0; border: 1px solid var(--wp--preset--color--ligne); margin-bottom: 40px; }
.sp-feat .sp-img { min-height: 340px; background: linear-gradient(135deg, #1b1822, #2a2734); background-size: cover; background-position: center; }
.sp-feat .sp-txt { padding: 46px 44px; display: flex; flex-direction: column; justify-content: center; }
.sp-feat .sp-cat { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--rouge); font-weight: 700; }
.sp-feat h3 { font-size: clamp(28px, 3.2vw, 42px); margin: 14px 0 12px; line-height: 1.02; }
.sp-feat p { color: #403E48; font-size: 17px; }
.sp-arts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.sp-art { border: 1px solid var(--wp--preset--color--ligne); background: #fff; display: flex; flex-direction: column; transition: transform .2s; text-decoration: none; color: inherit; }
.sp-art:hover { transform: translateY(-4px); }
.sp-art .sp-img { height: 180px; background: linear-gradient(135deg, #EDECE6, #DBDAD2); background-size: cover; background-position: center; }
.sp-art .sp-b { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.sp-art .sp-cat { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--rouge); font-weight: 700; }
.sp-art h3 { font-size: 20px; margin: 8px 0; line-height: 1.15; }
.sp-art p { font-size: 14px; color: var(--wp--preset--color--texte-attenue); flex: 1; }
.sp-news { background: var(--wp--preset--color--encre); color: #fff; padding: 54px 44px; margin-top: 48px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.sp-news h3 { color: #fff; font-size: 30px; }
.sp-news p { color: #C9C8CE; margin-top: 8px; }
.sp-news .sp-form { display: flex; gap: 10px; }
.sp-news input { box-sizing: border-box; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); padding: 13px 16px; color: #fff; font-family: var(--wp--preset--font-family--barlow); width: 130px; min-width: 0; }
/* Champ e-mail et bouton à largeur égale (harmonisés) */
.sp-news .sp-form .sp-btn { width: 130px; justify-content: center; }
/* Mobile : l'input (min 240px) + le bouton « S'inscrire » côte à côte
   débordaient de la boîte sous ~500px → on passe le formulaire en colonne
   (input + bouton pleine largeur). */
@media (max-width: 600px) {
	.sp-news .sp-form { flex-direction: column; align-items: stretch; }
	.sp-news input { min-width: 0; width: 100%; }
	.sp-news .sp-form .sp-btn { width: 100%; justify-content: center; }
}

/* --- Contact ------------------------------------------------------------ */
.sp-field { margin-bottom: 16px; }
.sp-field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .04em; margin-bottom: 6px; text-transform: uppercase; color: #3A3842; }
.sp-field input, .sp-field textarea { box-sizing: border-box; width: 100%; border: 1.5px solid var(--wp--preset--color--ligne); padding: 12px 14px; font-family: var(--wp--preset--font-family--barlow); font-size: 16px; background: #fff; }
.sp-field input:focus, .sp-field textarea:focus { outline: none; border-color: var(--wp--preset--color--rouge); }
.sp-cons { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--wp--preset--color--texte-attenue); margin: 6px 0 18px; }

/* --- CTA final ---------------------------------------------------------- */
.sp-final { background: var(--wp--preset--color--rouge); color: #fff; text-align: center; padding: 108px 0; }
.sp-final h2 { font-size: clamp(38px, 6vw, 84px); color: #fff; max-width: 16ch; margin: 0 auto; }
.sp-final p { margin: 20px auto 36px; max-width: 46ch; color: #FFE4E5; font-size: 19px; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 880px) {
	.sp-section { padding: 60px 0; }
	.sp-conv .sp-wrap, .sp-story .sp-wrap, .sp-split, .sp-feat, .sp-news { grid-template-columns: 1fr; gap: 30px; }
	.sp-blocs, .sp-cases, .sp-arts { grid-template-columns: 1fr; }
	.sp-hero { min-height: 520px; }
}

/* --- En-tête ------------------------------------------------------------ */
.spinach-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); -webkit-backdrop-filter: saturate(180%) blur(8px); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--wp--preset--color--ligne); }
/* ⚠️ En-tête collant : le template-part enveloppe le header dans un wrapper
   .wp-block-template-part de la hauteur exacte du header. `position:sticky`
   ne « colle » que dans les limites de son parent → ce wrapper minuscule
   défile et emporte le header. On rend donc le WRAPPER collant (son parent
   .wp-site-blocks fait toute la hauteur de la page). */
.wp-block-template-part:has( > .spinach-header ) { position: sticky; top: 0; z-index: 100; }
.spinach-header .wp-block-navigation { font-weight: 600; font-size: 15px; }
.spinach-header .wp-block-navigation a { color: #2A2832; }
.spinach-header .wp-block-navigation a:hover, .spinach-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--encre); box-shadow: inset 0 -2px 0 var(--wp--preset--color--rouge); }
/* CTA de l'en-tête : plus compact que le bouton par défaut (header moins épais) */
.spinach-header .wp-block-button__link { font-size: 14px; line-height: 1.2; padding: 9px 18px; }

/* Sélecteur de langue */
.sp-langsw { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; }
.sp-langsw a { color: var(--wp--preset--color--texte-attenue); text-decoration: none; }
.sp-langsw a:hover { color: var(--wp--preset--color--rouge); }
.sp-langsw a.is-current { color: var(--wp--preset--color--encre); }
.sp-langsw .sp-sep { color: var(--wp--preset--color--ligne); }

/* --- Menu mobile (overlay core/navigation) ------------------------------
   Renfort : sur ce site les feuilles core sont servies en fragments inline
   incomplets → le CSS plein écran de l'overlay manque et le menu déroulé
   collapse (liens entassés en haut). On garantit ici un overlay plein écran
   on-brand. Scopé à .is-menu-open : 100 % inactif au desktop (le bouton
   hamburger n'apparaît qu'au point de rupture mobile de core = 600px). */
/* ⚠️ GOTCHA : .spinach-header a un backdrop-filter (verre dépoli) qui crée un
   bloc conteneur pour les descendants position:fixed → l'overlay du menu se
   retrouve « piégé » dans la hauteur du header au lieu du viewport. On
   neutralise donc le backdrop-filter UNIQUEMENT quand le menu est ouvert
   (l'effet verre est préservé le reste du temps). */
.spinach-header:has(.wp-block-navigation__responsive-container.is-menu-open) {
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
.spinach-header .wp-block-navigation__responsive-container.is-menu-open {
	display: flex !important;
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	flex-direction: column;
	background: #fff;
	z-index: 1000;
	padding: 20px 24px 40px;
	overflow-y: auto;
}
.spinach-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	margin-top: 64px;
	width: 100%;
}
.spinach-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	position: absolute;
	top: 16px;
	right: 22px;
	color: var(--wp--preset--color--encre);
}
.spinach-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	width: 100%;
}
.spinach-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 700;
	font-size: clamp(30px, 9vw, 40px);
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var(--wp--preset--color--encre);
	padding: 8px 0;
}
.spinach-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a:hover,
.spinach-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a:focus-visible {
	color: var(--wp--preset--color--rouge);
	box-shadow: none;
}
.spinach-header .wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--encre);
}

/* La nav inline (6 liens + FR/EN + CTA ≈ 800px) ne tient sur une ligne qu'à
   partir de ~900px. Le point de rupture mobile de core/navigation est figé à
   600px → entre 600 et 900px la nav passait sur 2 lignes. On ÉTEND donc le mode
   « hamburger » jusqu'à 900px : hamburger visible, nav inline masquée, hamburger
   rejeté à droite, FR/EN conservé, gros CTA masqué (Contact reste dans le menu). */
@media (max-width: 900px) {
	.spinach-header .wp-block-navigation__responsive-container-open { display: flex !important; }
	.spinach-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
	.spinach-header .wp-block-buttons { display: none; }
	.spinach-header .wp-block-navigation { order: 3; }
	.spinach-header .sp-langsw { order: 2; }
}

/* --- Pied de page ------------------------------------------------------- */
.spinach-footer h4 { font-size: 14px; color: #fff; letter-spacing: .1em; margin-bottom: 14px; text-transform: uppercase; }
.spinach-footer a { color: #A3A2AA; text-decoration: none; }
.spinach-footer a:hover { color: var(--wp--preset--color--corail); }
.spinach-footer .wp-block-navigation { font-size: 14.5px; }
.spinach-footer .sp-footer-brand { margin-bottom: 4px; }
.spinach-footer .sp-footer-logo { height: 48px; width: auto; display: block; }
.spinach-footer .sp-footer-title { font-family: var(--wp--preset--font-family--barlow-condensed); font-weight: 700; text-transform: uppercase; font-size: 26px; letter-spacing: -0.01em; color: #fff; text-decoration: none; }
.spinach-footer .sp-footer-title:hover { color: var(--wp--preset--color--corail); }
.sp-legalbar { border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: #76757D; }
.sp-legalbar a { color: #76757D; }

/* --- Fiche de cas : conteneur ------------------------------------------- */
.sp-case-detail { padding: 72px 0; }

/* --- Intro de page interne ---------------------------------------------- */
.sp-page-intro h1 { font-size: clamp(40px, 6vw, 80px); max-width: 18ch; margin-top: 14px; }
.sp-page-intro h1 em { font-style: normal; color: var(--wp--preset--color--rouge); }
.sp-page-intro .sp-lead { margin-top: 22px; max-width: 62ch; }
.sp-page-intro--tight { padding-bottom: 48px; }

/* --- Photo d'équipe ----------------------------------------------------- */
.sp-team { padding-top: 0; }
.sp-team-cap { font-size: 14px; margin-top: 10px; }
/* Trombinoscope : grille de portraits, légende (nom) facultative au-dessus. */
.sp-team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; align-items: start; }
.sp-team-member { margin: 0; }
.sp-team-name { font-family: var(--wp--preset--font-family--barlow-condensed); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; text-align: center; font-size: clamp(18px, 2vw, 24px); margin: 0 0 12px; color: var(--wp--preset--color--encre); }
.sp-team-photo { width: 100%; height: auto; display: block; }
@media (max-width: 600px) { .sp-team-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; } }

/* --- Réseau / partenariat ----------------------------------------------- */
.sp-net-title { font-size: clamp(30px, 4vw, 48px); }
.sp-network .sp-lead { margin-top: 16px; }
/* 2ᵉ partenaire (ex. Infobip) sous le premier, dans la colonne Partenariat. */
.sp-net-partner2 { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--wp--preset--color--ligne); }

/* --- Insights : cartes cliquables --------------------------------------- */
.sp-feat { text-decoration: none; color: inherit; transition: box-shadow .2s; }
.sp-feat:hover { box-shadow: 0 16px 40px rgba(16,13,23,.08); }
.sp-feat .sp-img { display: block; }
.sp-feat .sp-cat, .sp-art .sp-cat { display: block; }

/* --- Contact ------------------------------------------------------------ */
.sp-contact-inner { max-width: 720px; margin-top: 8px; }
.sp-captcha { margin: 8px 0 20px; }
.sp-captcha-placeholder { display: inline-flex; align-items: center; gap: 12px; border: 1.5px solid var(--wp--preset--color--ligne); padding: 14px 18px; background: #fff; font-size: 14px; color: var(--wp--preset--color--texte-attenue); }
.sp-form-note { font-size: 13px; margin-top: 12px; }
.sp-form-success { border-left: 4px solid var(--wp--preset--color--rouge); background: var(--wp--preset--color--gris); padding: 22px 24px; font-size: 18px; color: var(--wp--preset--color--encre); }
.sp-form-error { border-left: 4px solid var(--wp--preset--color--rouge); background: #FDECEC; padding: 16px 20px; font-size: 15px; color: #7A1414; margin-bottom: 24px; }

/* --- Article (single) --------------------------------------------------- */
.sp-single .sp-eyebrow { margin-bottom: 8px; }
.sp-single .sp-muted { font-size: 14px; }

/* --- Texte réservé aux lecteurs d'écran --------------------------------- */
.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; }

/* --- Pages légales : prose lisible -------------------------------------- */
.sp-legal { padding: 72px 24px 96px; }
.sp-legal h1 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 6px; }
.sp-legal h2 { font-size: 23px; margin-top: 42px; margin-bottom: 10px; }
.sp-legal h3 { font-size: 17px; margin-top: 24px; margin-bottom: 6px; }
.sp-legal p, .sp-legal li { font-size: 16.5px; line-height: 1.72; color: #34323B; }
.sp-legal ul { padding-left: 1.25em; margin: 4px 0 12px; }
.sp-legal li { margin-bottom: 6px; }
.sp-legal a { color: var(--wp--preset--color--rouge); }
.sp-legal-updated { font-size: 14px; color: var(--wp--preset--color--texte-attenue); margin-bottom: 30px; }

/* --- 404 ---------------------------------------------------------------- */
.sp-404 { text-align: center; padding: 120px 0; }
.sp-404 h1 { font-size: clamp(44px, 7vw, 92px); margin: 14px 0 18px; }
.sp-404 .sp-lead { margin: 0 auto 30px; max-width: 52ch; }
.sp-404 .wp-block-buttons { justify-content: center; }
.sp-404 .wp-block-search { max-width: 460px; margin: 34px auto 0; }
.sp-404-links { margin-top: 30px; font-size: 15px; }
.sp-404-links a { color: var(--wp--preset--color--encre); text-decoration: underline; margin: 0 10px; }
.sp-404-links a:hover { color: var(--wp--preset--color--rouge); }

/* --- Recherche ---------------------------------------------------------- */
.sp-search h1 { font-size: clamp(32px, 4.5vw, 56px); margin-top: 12px; }
.sp-result { padding: 26px 0; border-top: 1px solid var(--wp--preset--color--ligne); }
.sp-result .wp-block-post-title { font-size: 24px; margin: 4px 0 6px; }
.sp-result a { color: var(--wp--preset--color--encre); text-decoration: none; }
.sp-result a:hover { color: var(--wp--preset--color--rouge); }
.sp-result .wp-block-post-excerpt { color: #34323B; margin: 0; }

/* --- Champ de recherche cœur WP (habillage marque) ---------------------- */
.wp-block-search__inside-wrapper { border: 1.5px solid var(--wp--preset--color--ligne); border-radius: 0; overflow: hidden; }
.wp-block-search__input { border: none; padding: 12px 16px; font-family: var(--wp--preset--font-family--barlow); }
.wp-block-search .wp-block-search__button { background: var(--wp--preset--color--rouge); color: #fff; border: none; font-family: var(--wp--preset--font-family--barlow); font-weight: 600; padding: 12px 20px; margin: 0; transition: background .2s; }
.wp-block-search .wp-block-search__button:hover { background: #bd1414; }

/* --- Animations réglables (pilotées par le plugin Spinach Companion) ------ */
/* Apparitions au scroll : actives uniquement si <html> porte .sp-anim-on
   (posé par le plugin si l'option est activée ET sans « mouvement réduit »).
   Sans cette classe (plugin absent/désactivé/JS coupé), le contenu reste
   visible — aucune section n'est jamais masquée par erreur. */
html.sp-anim-on .sp-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
html.sp-anim-on .sp-reveal.is-visible { opacity: 1; transform: none; }

/* En-tête non collant (option « En-tête collant » décochée). */
html.sp-no-sticky .wp-block-template-part:has( > .spinach-header ) { position: static; }
html.sp-no-sticky .spinach-header { position: static; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Toutes animations coupées (interrupteur global décoché). */
html.sp-no-anim .sp-marquee .sp-track,
html.sp-no-anim .sp-ttrack { animation: none; }

/* --- Accessibilité : mouvement réduit ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.sp-marquee .sp-track, .sp-ttrack { animation: none; }
	.sp-btn, .sp-case, .sp-art, .sp-bloc { transition: none; }
	.sp-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* --- Accessibilité AA : focus visible + contrastes (audit 2026-06-17) ----- */
/* Focus clavier visible et homogène (WCAG 2.4.7) — étend le pattern du bandeau cookies. */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible,
.sp-btn:focus-visible, .sp-case:focus-visible, .sp-feat:focus-visible, .sp-art:focus-visible, .sp-chip:focus-visible {
	outline: 3px solid var(--wp--preset--color--rouge);
	outline-offset: 2px;
}
/* Sur fonds sombres : anneau clair pour rester visible. */
.spinach-footer a:focus-visible, .sp-hero a:focus-visible, .sp-final a:focus-visible,
.sp-conv a:focus-visible, .sp-news a:focus-visible, .sp-news input:focus-visible { outline-color: #fff; }
.sp-field input:focus-visible, .sp-field textarea:focus-visible { outline: 3px solid var(--wp--preset--color--rouge); outline-offset: 1px; }

/* Liens/textes rouges assombris pour tenir sur blanc ET gris (WCAG 1.4.3).
   L'eyebrow corail (sur fond encre) est exclu : il est déjà conforme (8,3:1). */
.sp-eyebrow:not(.sp-eyebrow--coral), .sp-open, .sp-case .sp-open, .sp-cd-sec h4,
.sp-art .sp-cat, .sp-feat .sp-cat, .sp-result a:hover, .sp-back:hover { color: #CF1818; }

/* Barre légale du footer : liens obligatoires lisibles sur encre (WCAG 1.4.3). */
.sp-legalbar, .sp-legalbar a { color: #9A99A1; }

/* Délimitation des composants sur fond sombre (WCAG 1.4.11). */
.sp-chip { border-color: rgba(255, 255, 255, .45); }
.sp-news input { border-color: rgba(255, 255, 255, .45); }
