/*
Theme Name: S3I Conseils
Author: S3I Conseils
Description: Thème bloc sur mesure de S3I Conseils — maquette convertie en blocs Gutenberg natifs, 100 % éditable.
Version: 1.0.2
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: s3i-conseils
Tags: block-theme, full-site-editing, business
*/

/* =========================================================
   S3I CONSEILS — maquette
   Registre relevé sur la référence (Personal Branding, Trexa Lab) :
   une seule sans-serif (Manrope), ouverture vert foncé à trame
   fine avec grand portrait détouré, sections blanches, cartes
   gris très clair aux angles arrondis, un vert vif d'accent sur
   un mot du titre, « ✦ étiquette » au-dessus des titres, boutons
   pilule en dégradé vert à pastille ronde blanche.
   Couleurs : celles de l'ancien site S3I.
   ========================================================= */

:root {
  --vert: #0b5d4b;          /* vert S3I */
  --vert-fonce: #063d32;
  --vert-nuit: #042a23;
  --vif: #159a78;           /* accent */
  --vif-clair: #35c592;
  --menthe: #9fe8cf;
  --menthe-pale: #e9f7f2;
  --encre: #17221f;
  --gris: #5b6a65;
  --carte: #f3f6f5;
  --ligne: #e1e8e5;
  --blanc: #ffffff;

  --police: "Manrope", system-ui, sans-serif;
  --max: 1200px;
  --gut: clamp(20px, 4vw, 56px);
  --r: 16px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --nav: 76px;

  --sig: var(--vif); --sig-fonce: var(--vert); --sig-2: var(--menthe);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 16px); }
body {
  margin: 0; background: var(--blanc); color: var(--encre);
  font-family: var(--police); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wp-site-blocks > header, .wp-site-blocks > footer { margin: 0; }
.entry-content > * { margin-top: 0; margin-bottom: 0; }
h1, h2, h3, h4, p, figure, ul { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.025em; line-height: 1.16; }
.wp-block-image { margin: 0; }
.wp-block-buttons { margin: 0; }
.boite { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- Titres de section : « ✦ étiquette » + titre à mot accentué ---------- */
.etiq { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; color: var(--encre); margin-bottom: 12px; }
.etiq::before { content: ""; width: 13px; height: 13px; flex: none; background: currentColor; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.etiq--clair { color: var(--menthe); }
.titre { font-size: clamp(27px, 3vw, 40px); }
.titre--petit { font-size: clamp(22px, 2.2vw, 28px); }
.titre em, .ref__t em { font-style: normal; color: var(--vif); }
.tete { max-width: 780px; margin-bottom: clamp(32px, 4vw, 52px); }
.tete__txt { margin-top: 14px; font-size: 16.5px; color: var(--gris); max-width: 680px; }
.tete--centre { margin-left: auto; margin-right: auto; text-align: center; }
.tete--centre .etiq { justify-content: center; }
.tete--centre .tete__txt { margin-left: auto; margin-right: auto; }
.tete--clair .etiq { color: var(--menthe); }
.tete--clair .titre { color: var(--blanc); }
.surtitre { font-size: 13.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--vif); margin: 0 0 16px; }
.mention { margin-top: 28px; font-size: 14.5px; color: var(--gris); max-width: 760px; }

/* ---------- Bouton pilule en dégradé + pastille ronde (référence = signature Adéma) ---------- */
.btn .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 14px;
  background: linear-gradient(90deg, var(--vif) 0%, var(--vif-clair) 100%); color: var(--blanc);
  border-radius: 999px; padding: 7px 7px 7px 22px; border: 0;
  font-family: var(--police); font-size: 15.5px; font-weight: 600; text-decoration: none;
  box-shadow: 0 10px 24px -14px rgba(21,154,120,.9); transition: filter .25s, transform .25s;
}
.btn .wp-block-button__link::after {
  content: ""; width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5h6M5.500 2.500 8 5 5.500 7.500' fill='none' stroke='%230b5d4b' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .4s var(--ease);
}
.btn .wp-block-button__link:hover { filter: brightness(1.06); }
.btn .wp-block-button__link:hover::after { transform: rotate(-45deg); }
.btn--clair .wp-block-button__link { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.35); box-shadow: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 6px 6px 6px 21px; }
.btn--sm .wp-block-button__link { padding: 5px 5px 5px 18px; font-size: 14.5px; gap: 10px; }
.btn--sm .wp-block-button__link::after { width: 30px; height: 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.actions--centre { justify-content: center; margin-top: 30px; }

/* =========================================================
   NAVIGATION — barre vert foncé, liens, langue, bouton Contact
   ========================================================= */
.wp-site-blocks > header { position: sticky; top: 0; z-index: 50; }
.nav { position: relative; background: var(--vert-fonce); padding: 0 var(--gut); color: var(--blanc); transition: box-shadow .3s; }
.nav.is-scrolled { box-shadow: 0 10px 30px -18px rgba(4,42,35,.8); }
.nav__bar { max-width: 1320px; margin: 0 auto; height: var(--nav); display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.logo img { height: 26px; width: auto; }
.nav__links { font-size: 14.5px; font-weight: 500; margin: 0 auto; }
.wp-block-navigation.nav__links .wp-block-navigation__container { display: flex; gap: clamp(12px, 1.5vw, 24px); list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; white-space: nowrap; }
.nav__links .wp-block-navigation-item__content { color: rgba(255,255,255,.82); text-decoration: none; transition: color .2s; }
.nav__links .wp-block-navigation-item__content:hover { color: var(--blanc); }
.nav__links .current-menu-item > .wp-block-navigation-item__content { color: var(--blanc); font-weight: 700; }
.nav__links .current-menu-item > .wp-block-navigation-item__content::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--menthe); margin-right: 7px; vertical-align: middle; }
.nav__droite { display: flex; align-items: center; gap: 12px; }
.langue { font-size: 13px; font-weight: 700; letter-spacing: .05em; }
.langue a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); text-decoration: none; color: var(--blanc); transition: background .2s; }
.langue a:hover { background: rgba(255,255,255,.14); }

/* =========================================================
   OUVERTURE — vert foncé à trame fine, grand portrait détouré
   ========================================================= */
.hero, .phero {
  position: relative; color: var(--blanc); overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 46px 46px,
    radial-gradient(80% 90% at 78% 30%, #1c7f68 0%, rgba(11,93,75,0) 62%),
    linear-gradient(160deg, var(--vert) 0%, var(--vert-fonce) 55%, var(--vert-nuit) 100%);
}
.hero__inner { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 5vw, 72px) var(--gut) 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(20px, 3vw, 48px); align-items: end; }
.hero__txt { padding-bottom: clamp(44px, 5.5vw, 80px); display: flex; flex-direction: column; align-items: flex-start; }
.hero__title { font-size: clamp(30px, 3.5vw, 48px); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 22px; }
.hero__p { font-size: 16px; color: rgba(255,255,255,.86); max-width: 590px; margin-bottom: 12px; }
.hero .actions { margin-top: 18px; }
.hero__note { margin-top: 16px; font-size: 13.5px; color: rgba(255,255,255,.66); }
.hero__visuel { position: relative; align-self: end; }
.hero__portrait { margin: 0; }
.hero__portrait img { width: 100%; max-width: 520px; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); -webkit-mask-image: linear-gradient(#000 80%, transparent 100%), linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(#000 80%, transparent 100%), linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-composite: intersect; }
.badge, .pastille { position: absolute; background: rgba(6,61,50,.62); border: 1px solid rgba(255,255,255,.26); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 18px; color: var(--blanc); }
.badge { padding: 12px 18px; display: flex; flex-direction: column; }
.badge--haut { left: -6%; top: 46%; }
.badge__v { font-size: 30px; font-weight: 800; line-height: 1; color: var(--menthe); }
.badge__l { font-size: 12.5px; color: rgba(255,255,255,.85); margin-top: 4px; }
.pastille { padding: 13px 20px; left: 50%; bottom: 26px; transform: translateX(-50%); width: max-content; max-width: 94%; text-align: center; }
.pastille__n { font-size: 17px; font-weight: 700; font-style: italic; }
.pastille__r { font-size: 12.5px; color: rgba(255,255,255,.82); }

/* Ouverture des pages intérieures : même fond, photo du dirigeant encadrée */
.phero__inner { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 6vw, 84px) var(--gut); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.phero--simple .phero__inner { grid-template-columns: minmax(0, 1fr); }
.phero--simple .phero__txt { max-width: 820px; }
.phero__txt { display: flex; flex-direction: column; align-items: flex-start; }
.phero__title { font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -.03em; margin-bottom: 20px; }
.phero__p { font-size: 16.5px; color: rgba(255,255,255,.86); max-width: 620px; margin-bottom: 12px; }
.phero__p--fort { color: var(--menthe); font-weight: 600; }
.phero .actions { margin-top: 16px; }
.phero__visuel { position: relative; }
.phero .phero__photo { margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.22); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.phero__photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: center 22%; }
.phero .pastille { bottom: 18px; }
.questions { list-style: none; padding: 0; margin: 4px 0 18px; display: flex; flex-direction: column; gap: 9px; }
.questions li { position: relative; padding-left: 26px; font-size: 16.5px; color: rgba(255,255,255,.9); }
.questions li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--vif-clair); box-shadow: 0 0 0 4px rgba(53,197,146,.22); }

/* ---------- Bande des partenaires ---------- */
.confiance { padding: 34px 0 30px; border-bottom: 1px solid var(--ligne); }
.confiance__t { text-align: center; font-size: 14px; font-weight: 600; color: var(--gris); margin-bottom: 20px; }
.logos { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 14px; align-items: center; }
.logos .logos__i { margin: 0; display: grid; place-items: center; height: 84px; padding: 6px; }
.logos__i img { max-height: 70px; width: auto; max-width: 100%; object-fit: contain; }

/* ---------- Rythme des sections ---------- */
.promesse, .pourqui, .services, .remuneration, .approche, .types, .solutions, .etapes, .veille, .missions, .associes, .medias, .mission, .posture, .contact { padding: clamp(64px, 8vw, 110px) 0; }
.metier, .difference, .dirigeant, .experience, .mobilisons, .international, .direction, .reseau { padding: clamp(64px, 8vw, 110px) 0; }
.metier, .mobilisons, .posture, .types, .associes, .medias--fond { background: var(--menthe-pale); }
.dirigeant, .direction { background: var(--carte); }
.posture .tete, .types .tete { margin-bottom: 0; }
.types .puces { margin-top: 30px; }
.mission { padding-bottom: 0; }

/* ---------- Cartes ---------- */
.cartes { display: grid; gap: 16px; }
.cartes--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cartes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cartes--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cartes--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.carte { position: relative; background: var(--carte); border-radius: var(--r); padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 10px; transition: background .3s, color .3s, transform .3s var(--ease); }
.carte__n { width: 40px; height: 40px; border-radius: 50%; background: var(--blanc); color: var(--vif); display: grid; place-items: center; font-size: 13.5px; font-weight: 800; margin-bottom: 14px; }
.carte__t { font-size: 18.5px; letter-spacing: -.01em; line-height: 1.3; }
.carte__d { font-size: 15px; color: var(--gris); transition: color .3s; }
.carte__l { font-size: 14px; font-weight: 600; color: var(--vert); transition: color .3s; }
.cartes .carte:hover { background: var(--vif); color: var(--blanc); transform: translateY(-4px); }
.cartes .carte:hover .carte__d, .cartes .carte:hover .carte__l { color: rgba(255,255,255,.9); }
.menthe-fond .carte, .metier .carte, .mobilisons .carte { background: var(--blanc); }
.carte--grande { padding: 34px 32px 36px; }
.carte--grande .carte__t { font-size: 14.5px; font-weight: 600; color: var(--vif); order: -1; }
.carte--grande .carte__d:first-of-type { font-size: clamp(19px, 1.9vw, 24px); font-weight: 700; color: var(--encre); line-height: 1.35; letter-spacing: -.015em; }
.cartes .carte--grande:hover { background: var(--carte); color: inherit; transform: none; }
.cartes .carte--grande:hover .carte__d { color: var(--gris); }
.cartes .carte--grande:hover .carte__d:first-of-type { color: var(--encre); }
.carte--solution { padding: 30px 30px 32px; }
.carte__lien { margin-top: auto; padding-top: 12px; font-size: 15px; font-weight: 700; }
.carte__lien a { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; color: var(--vert); transition: color .3s; }
.carte__lien a::after { content: "→"; transition: transform .3s var(--ease); }
.carte__lien a::before { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.carte:hover .carte__lien a { color: var(--blanc); }
.carte:hover .carte__lien a::after { transform: translateX(5px); }

/* ---------- Volet : photo encadrée + texte ---------- */
.volet { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 4.5vw, 68px); align-items: center; }
.volet--inverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.volet .volet__photo { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(6,61,50,.55); }
.volet__photo img { width: 100%; aspect-ratio: 4 / 4.7; object-fit: cover; object-position: center 18%; }
.volet__photo--large img { aspect-ratio: 4 / 3; object-position: center 30%; }
.volet__txt { display: flex; flex-direction: column; align-items: flex-start; }
.volet__txt .titre { margin-bottom: 18px; }
.volet__p { font-size: 16px; color: var(--gris); margin-bottom: 12px; max-width: 600px; }
.volet__txt > .wp-block-buttons { margin-top: 14px; }
.dirigeant__nom { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.dirigeant__role { font-size: 14.5px; font-weight: 600; color: var(--vif); margin-bottom: 14px; }

.equation { list-style: none; padding: 0; margin: 4px 0 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.equation li { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 999px; padding: 8px 16px; font-size: 14.5px; font-weight: 600; display: flex; align-items: center; }
.equation li { position: relative; }
.equation li:not(:first-child) { margin-left: 22px; }
.equation li:not(:first-child)::before { content: "+"; position: absolute; left: -21px; top: 50%; transform: translateY(-52%); color: var(--vif); font-weight: 800; font-size: 17px; }
.equation li:last-child { background: var(--vert); border-color: var(--vert); color: var(--blanc); }
.equation li:last-child::before { content: "="; }

.chiffres { margin-top: clamp(36px, 4.5vw, 60px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.chiffre { background: var(--carte); border-radius: var(--r); padding: 24px 24px 22px; }
.chiffre__v { font-size: clamp(24px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: var(--vert); }
.chiffre__l { margin-top: 6px; font-size: 14.5px; color: var(--gris); }

.liste-def { width: 100%; display: grid; gap: 10px; }
.def { background: var(--blanc); border-radius: 14px; padding: 15px 20px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: baseline; }
.def__t { font-weight: 700; color: var(--vert); }
.def__d { font-size: 15px; color: var(--gris); }

/* ---------- Puces (pilules) ---------- */
.puces { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.puces li { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 999px; padding: 9px 18px 9px 14px; font-size: 14.5px; font-weight: 600; color: var(--vert); display: flex; align-items: center; gap: 10px; }
.puces li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--vif); }
.puces--centre { justify-content: center; }
.volet__txt .puces { margin: 0 0 20px; }
.volet__txt .puces li { background: var(--blanc); }

/* ---------- Appel à l'action (bloc vert foncé arrondi) ---------- */
.final { padding: 0 0 clamp(64px, 8vw, 110px); }
.promesse + .final, .etapes + .final, .veille + .final, .missions + .final { padding-top: 0; }
.appel { border-radius: 28px; padding: clamp(36px, 5vw, 68px); color: var(--blanc); background: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 46px 46px, linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 46px 46px, radial-gradient(70% 120% at 90% 0%, #1c7f68 0%, rgba(11,93,75,0) 60%), linear-gradient(160deg, var(--vert) 0%, var(--vert-fonce) 70%); }
.appel .tete { margin-bottom: 22px; }
.appel .questions { margin-bottom: 20px; }
.appel__fin { font-size: 17px; color: rgba(255,255,255,.9); max-width: 680px; margin-bottom: 24px; }
.appel .questions + .appel__fin { font-size: 22px; font-weight: 700; color: var(--menthe); }
.dirigeant + .final, .difference + .final { padding-top: clamp(64px, 8vw, 110px); }

/* ---------- Cycle S3I : huit étapes reliées ---------- */
.etapes__liste { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.carte--etape .carte__n { background: var(--vert); color: var(--blanc); }
.carte--etape:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 34px; z-index: 1; width: 26px; height: 26px; border-radius: 50%; background: var(--blanc); border: 1px solid var(--ligne); color: var(--vif); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.carte--etape:nth-child(4n)::after { content: "↓"; right: 24px; top: auto; bottom: -21px; }

/* ---------- Opportunités ---------- */
.filtres { background: var(--carte); border-radius: var(--r); padding: 24px 24px 26px; margin-bottom: 26px; }
.filtres__l { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); margin: 16px 0 10px; }
.filtres__l:first-child { margin-top: 0; }
.puces--filtre li { cursor: pointer; user-select: none; transition: background .2s, color .2s, border-color .2s; }
.puces--filtre li:hover { border-color: var(--vif); }
.puces--filtre li.is-actif { background: var(--vert); border-color: var(--vert); color: var(--blanc); }
.puces--filtre li.is-actif::before { background: var(--menthe); }
.opps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.opp { position: relative; border: 1px solid var(--ligne); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: border-color .25s, box-shadow .25s; }
.opp:hover { border-color: var(--vif); box-shadow: 0 20px 40px -30px rgba(11,93,75,.5); }
.opp.is-masque { display: none; }
.opp__type { align-self: flex-start; background: var(--menthe-pale); color: var(--vert); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 700; }
.opp__t { font-size: 18px; line-height: 1.35; letter-spacing: -.01em; }
.opp__meta { font-size: 14px; color: var(--gris); }
.opp__lien { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 15px; }
.opp__lien a { color: var(--vert); text-decoration: none; }
.opp__lien a::after { content: " →"; }
.opp__lien a::before { content: ""; position: absolute; inset: 0; }
.opp__date { font-size: 12.5px; color: #8a9692; border-top: 1px solid var(--ligne); padding-top: 12px; }

/* ---------- Références ---------- */
.refs { display: grid; gap: 16px; }
.ref { background: var(--carte); border-radius: var(--r); padding: 30px 32px; display: grid; grid-template-columns: 56px minmax(0, .8fr) minmax(0, 1.4fr); column-gap: 24px; row-gap: 6px; align-items: start; }
.ref .carte__n { grid-row: 1 / span 4; margin: 0; }
.ref__t { grid-column: 2; font-size: clamp(24px, 2.4vw, 32px); color: var(--vert); }
.ref__dom { grid-column: 2; font-size: 14.5px; font-weight: 700; color: var(--vif); }
.ref__per { grid-column: 2; font-size: 14px; color: var(--gris); }
.ref__d { grid-column: 3; grid-row: 1 / span 2; font-size: 16px; }
.ref__res { grid-column: 3; grid-row: 3 / span 2; font-size: 15px; font-weight: 600; color: var(--vert); background: var(--blanc); border-radius: 12px; padding: 12px 16px; }

/* ---------- Équipe ---------- */
.experts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.expert { background: var(--blanc); border-radius: var(--r); padding: 26px 22px; display: flex; flex-direction: column; gap: 8px; }
.expert__i { width: 62px; height: 62px; border-radius: 50%; background: linear-gradient(140deg, var(--vert), var(--vif)); color: var(--blanc); display: grid; place-items: center; font-weight: 800; font-size: 19px; letter-spacing: .02em; margin-bottom: 10px; }
.expert__n { font-size: 17.5px; letter-spacing: -.01em; }
.expert__r { font-size: 14.5px; color: var(--gris); }

/* ---------- Médiathèque ---------- */
.galerie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.galerie .galerie__i { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; background: var(--vert-fonce); }
.galerie__i img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.galerie__i:hover img { transform: scale(1.04); }
.galerie__i figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 34px 18px 14px; font-size: 14px; font-weight: 600; color: var(--blanc); background: linear-gradient(0deg, rgba(4,42,35,.88), rgba(4,42,35,0)); }
.galerie .galerie__i:first-child { grid-column: span 2; }
.galerie .galerie__i:first-child img { aspect-ratio: 8 / 3.86; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact__grille { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.contact__form { background: var(--carte); border-radius: 22px; padding: clamp(24px, 3.4vw, 44px); }
.contact__form .titre { margin-bottom: 26px; }
.contact__direct .titre { margin-bottom: 18px; color: var(--vert); }
.voies { display: flex; flex-direction: column; gap: 12px; }
.voie { background: var(--carte); border-radius: 14px; padding: 16px 20px; }
.voie__l { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--vif); margin-bottom: 4px; }
.voie__v { font-size: 16px; font-weight: 600; }
.voie__v a { text-decoration: none; }
.voie__v a:hover { color: var(--vif); }

.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field__l, .form__group legend { font-size: 14px; font-weight: 600; color: var(--encre); }
.field input, .field textarea { font: inherit; width: 100%; min-width: 0; font-size: 16px; color: var(--encre); background: var(--blanc); border: 1px solid var(--ligne); border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.field textarea { display: block; resize: vertical; height: 150px; min-height: 120px; }
.field input:focus, .field textarea:focus { border-color: var(--vif); box-shadow: 0 0 0 4px rgba(21,154,120,.14); }
.field.is-error input, .field.is-error textarea { border-color: #d6453d; }
.form__group { border: 0; padding: 0; margin: 0; min-width: 0; }
.form__group legend { padding: 0; margin-bottom: 12px; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label > span { display: inline-block; padding: 8px 15px; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 999px; font-size: 14px; font-weight: 500; transition: all .2s; }
.choice input:checked + span { background: var(--vert); color: var(--blanc); border-color: var(--vert); }
.choice .wpcf7-form-control-wrap, .choice .wpcf7-form-control { display: contents; }
.choice .wpcf7-list-item { margin: 0; }
.form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__submit { font-family: var(--police); font-size: 16px; font-weight: 700; background: linear-gradient(90deg, var(--vif), var(--vif-clair)); color: var(--blanc); border: 0; border-radius: 999px; padding: 15px 30px; cursor: pointer; transition: filter .2s; }
.form__submit:hover { filter: brightness(1.07); }
.form__note { font-size: 13.5px; color: var(--gris); max-width: 330px; }
.form__ok { display: none; font-size: 16px; font-weight: 600; color: var(--vert); }
#contact-form.is-sent .form__ok { display: block; }
#contact-form.is-sent .form__foot { display: none; }

/* =========================================================
   PIED DE PAGE
   ========================================================= */
.foot { background: var(--vert-nuit); color: var(--blanc); padding: clamp(48px, 6vw, 80px) var(--gut) 26px; overflow: hidden; }
.foot__appel, .foot__top, .foot__bottom { max-width: var(--max); margin-left: auto; margin-right: auto; }
.foot__appel { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; padding-bottom: clamp(36px, 4.5vw, 56px); border-bottom: 1px solid rgba(255,255,255,.14); }
.foot__titre { font-size: clamp(24px, 2.8vw, 36px); max-width: 720px; }
.foot__top { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr); gap: clamp(28px, 4vw, 60px); padding-top: clamp(36px, 4.5vw, 56px); }
.foot__marque { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.foot__logo-img img { height: 32px; width: auto; }
.foot__intro { font-size: 15px; color: rgba(255,255,255,.8); max-width: 330px; }
.foot__zone { font-size: 14px; color: var(--menthe); }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot__col { display: flex; flex-direction: column; gap: 9px; }
.foot__h { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--menthe); margin-bottom: 8px; }
.foot__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.foot__list li, .foot__c { font-size: 15px; color: rgba(255,255,255,.88); }
.foot a { text-decoration: none; }
.foot__list a:hover, .foot__c a:hover { color: var(--menthe); }
.foot__bottom { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; }
.foot__geant { font-size: clamp(44px, 14.2vw, 206px); line-height: .95; letter-spacing: -.05em; white-space: nowrap; color: rgba(159,232,207,.1); }
.foot__geant strong { font-weight: 800; }
.foot__bas { margin-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot__copy { font-size: 13px; color: rgba(255,255,255,.6); max-width: 760px; }

/* =========================================================
   RETOUCHES DU 13/10 — menu court, ouvertures allégées
   ========================================================= */
/* Menu : 4 entrées, deux sous-menus */
.nav__links { font-size: 15.5px; }
.wp-block-navigation.nav__links .wp-block-navigation__container { gap: clamp(18px, 2.6vw, 38px); align-items: center; }
.nav__links .has-child { position: relative; display: flex; align-items: center; gap: 6px; }
.nav__links .has-child > .wp-block-navigation-item__content:not(:has(+ .wp-block-navigation__submenu-icon))::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav__links .wp-block-navigation__submenu-icon { color: rgba(255,255,255,.82); background: none; border: 0; padding: 0; }
.wp-block-navigation.nav__links .has-child .wp-block-navigation__submenu-container { top: calc(100% + 4px); left: -18px; background: var(--blanc); color: var(--encre); border: 1px solid var(--ligne); border-radius: 16px; padding: 10px; min-width: 270px; box-shadow: 0 26px 50px -24px rgba(4,42,35,.55); flex-direction: column; gap: 2px; }
.nav__links .has-child::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.wp-block-navigation.nav__links .wp-block-navigation__submenu-container .wp-block-navigation-item__content { display: block; color: var(--encre); font-size: 15px; font-weight: 600; padding: 10px 14px; border-radius: 10px; white-space: nowrap; }
.wp-block-navigation.nav__links .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--menthe-pale); color: var(--vert); }
.wp-block-navigation.nav__links .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content { color: var(--vif); }
.wp-block-navigation.nav__links .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content::before { content: none; }
.wp-block-navigation.nav__links .is-menu-open .wp-block-navigation__submenu-container { position: static; background: none; border: 0; box-shadow: none; padding: 0 0 6px 14px; min-width: 0; }
.wp-block-navigation.nav__links .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { color: rgba(255,255,255,.85); font-size: 17px; padding: 5px 0; }

/* Accueil : portrait encadré, nom sous la photo (plus rien ne couvre le visage) */
.hero__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; padding-top: clamp(40px, 5vw, 70px); padding-bottom: clamp(44px, 5.5vw, 78px); }
.hero__txt { padding-bottom: 0; }
.hero__title { margin-bottom: 20px; }
.hero__p { font-size: 17px; max-width: 560px; }
.hero__visuel { align-self: center; max-width: 400px; width: 100%; justify-self: end; display: flex; flex-direction: column; align-items: center; }
.hero .hero__portrait { width: 100%; border-radius: 26px; overflow: hidden; border: 1px solid rgba(255,255,255,.28); box-shadow: 0 40px 70px -34px rgba(0,0,0,.7); }
.hero__portrait img { width: 100%; max-width: none; aspect-ratio: 4 / 4.5; object-fit: cover; object-position: center 12%; filter: none; -webkit-mask-image: none; mask-image: none; }
.hero .badge { left: -34px; top: 34px; }
.hero .pastille { position: relative; left: auto; bottom: auto; transform: none; margin-top: -30px; max-width: 92%; background: rgba(6,61,50,.9); }

/* Pages intérieures : bandeau avec la photo en fond teinté, un titre, une phrase */
.phero__inner { grid-template-columns: minmax(0, 1fr); position: relative; z-index: 1; padding-top: clamp(56px, 6.5vw, 92px); padding-bottom: clamp(56px, 6.5vw, 92px); min-height: clamp(300px, 30vw, 400px); align-content: center; }
.phero__txt { max-width: 640px; }
.phero--simple .phero__txt { max-width: 760px; }
.phero__title { font-size: clamp(30px, 3.5vw, 46px); margin-bottom: 16px; }
.phero__p { font-size: 17px; max-width: 560px; margin-bottom: 0; }
.phero__p + .phero__p { margin-top: 10px; }
.phero .phero__fond { position: absolute; top: 0; right: 0; bottom: 0; width: 56%; margin: 0; }
.phero__fond img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: grayscale(1) contrast(1.08) brightness(1.08); mix-blend-mode: luminosity; opacity: .92; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 46%); mask-image: linear-gradient(90deg, transparent 0, #000 46%); }
.phero__fond::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,42,35,.5) 0%, rgba(4,42,35,0) 45%); }
.chapeau { padding: clamp(40px, 5vw, 64px) 0 0; }
.chapeau__p { font-size: clamp(19px, 2vw, 25px); font-weight: 600; line-height: 1.45; letter-spacing: -.015em; max-width: 900px; color: var(--encre); }
.chapeau__p + .chapeau__p { margin-top: 14px; font-size: 16.5px; font-weight: 400; letter-spacing: 0; color: var(--gris); max-width: 720px; }
.chapeau + section { padding-top: clamp(40px, 5vw, 64px); }

/* Énoncé sous les logos partenaires */
.enonce { margin: 30px auto 6px; max-width: 860px; text-align: center; font-size: clamp(19px, 2.1vw, 26px); font-weight: 700; letter-spacing: -.02em; line-height: 1.4; color: var(--vert); }

/* Portrait détouré posé sur un fond vert (section « Le dirigeant ») */
.volet .volet__photo--detoure { background: radial-gradient(90% 80% at 50% 20%, #1c7f68 0%, var(--vert) 55%, var(--vert-fonce) 100%); }
.volet__photo--detoure img { aspect-ratio: 4 / 4.4; object-fit: cover; object-position: center top; padding-top: 26px; }

/* Contact : les questions passent à côté du formulaire */
.questions--sombre { margin: 0 0 26px; }
.questions--sombre li { color: var(--encre); font-size: 15.5px; font-weight: 500; }

@media (max-width: 900px) {
  .hero__visuel { justify-self: center; margin-top: 10px; }
  .hero .badge { left: -8px; }
  .phero .phero__fond { width: 100%; }
  .phero__fond img { opacity: .38; -webkit-mask-image: none; mask-image: none; }
}

/* =========================================================
   SIGNATURE ADÉMA (sobre) — progression, révélation, crédit
   ========================================================= */
.nav::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--defil, 0) * 100%); background: linear-gradient(90deg, var(--sig), var(--sig-2)); }
.js .mots .m { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.js .mots .m > span { display: inline-block; transform: translateY(110%); transition: transform .8s var(--ease); transition-delay: calc(var(--i) * 30ms); }
.js .mots.is-in .m > span { transform: none; }
.signature { font-size: 12px; }
.signature a { color: rgba(255,255,255,.6); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.signature a::before { content: ""; width: 7px; height: 7px; background: var(--sig-2); transform: rotate(45deg); }
.signature a:hover { color: var(--blanc); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1240px) {
  .cartes--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cartes--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero__inner, .phero__inner, .volet, .volet--inverse, .contact__grille, .foot__top { grid-template-columns: minmax(0, 1fr); }
  .hero__txt { padding-bottom: 10px; }
  .hero__visuel { max-width: 420px; margin: 0 auto; width: 100%; }
  .badge--haut { left: 0; }
  .phero__visuel { max-width: 460px; }
  .volet--inverse .volet__photo { order: -1; }
  .volet .volet__photo { max-width: 460px; }
  .cartes--3, .cartes--5, .opps, .etapes__liste, .experts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carte--etape::after { content: none !important; }
  .ref { grid-template-columns: 48px minmax(0, 1fr); }
  .ref__d, .ref__res { grid-column: 2; grid-row: auto; }
  .ref__d { margin-top: 8px; }
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .nav__bar { height: 66px; }
  .nav__links { margin: 0 0 0 auto; }
  .nav__droite { gap: 8px; }
  .nav__droite > .wp-block-buttons { display: none; }
  .logo img { height: 22px; }
  .cartes--2, .cartes--3, .cartes--4, .cartes--5, .opps, .etapes__liste, .experts, .form__row { grid-template-columns: minmax(0, 1fr); }
  .galerie { grid-template-columns: minmax(0, 1fr); }
  .galerie .galerie__i:first-child { grid-column: auto; }
  .galerie .galerie__i:first-child img { aspect-ratio: 4 / 3; }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .def { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .foot__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 34px; }
  .foot__bas { flex-direction: column; align-items: flex-start; }
  .pastille__n { font-size: 15px; }
  .appel { border-radius: 22px; }
}

/* Bouton du menu replié (core/navigation, sous 600 px) */
.nav__links .wp-block-navigation__responsive-container-open { color: var(--blanc); width: 40px; height: 40px; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; }
.nav__links .wp-block-navigation__responsive-container-open svg { fill: currentColor; width: 20px; height: 20px; }
.wp-block-navigation.nav__links .wp-block-navigation__responsive-container.is-menu-open { background-color: var(--vert-fonce) !important; color: var(--blanc) !important; padding: 90px var(--gut) 40px; }
.wp-block-navigation.nav__links .is-menu-open .wp-block-navigation__container { flex-direction: column; gap: 4px; white-space: normal; }
.wp-block-navigation.nav__links .is-menu-open .wp-block-navigation-item__content { font-size: 22px; padding: 7px 0; color: var(--blanc); }
@media (max-width: 599px) { .nav__links .wp-block-navigation__responsive-container-open { display: grid; } }
/* Maquette locale uniquement : imite le menu replié de core/navigation sous 600 px */
@media (max-width: 599px) {
  .wp-block-navigation.nav__links > .wp-block-navigation__container { display: none; }
  .nav__links:not(:has(.wp-block-navigation__responsive-container))::after {
    content: ""; display: block; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%;
    background: linear-gradient(#fff, #fff) center calc(50% - 3px) / 16px 1.5px no-repeat, linear-gradient(#fff, #fff) center calc(50% + 3px) / 16px 1.5px no-repeat;
  }
}
@media (prefers-reduced-motion: reduce) { .js .mots .m > span { transform: none; transition: none; } html { scroll-behavior: auto; } }
.carte--etape:last-child::after { content: none; }
.galerie .galerie__i:nth-child(4):last-child { grid-column: span 2; }
.galerie .galerie__i:nth-child(4):last-child img { aspect-ratio: 8 / 3.86; }
/* Retouches du 13/10 (suite) */
.phero__fond img { object-position: center 8%; }
.hero .badge { top: auto; bottom: 96px; left: -44px; }
.carte--grande .carte__n { width: auto; height: auto; background: none; border-radius: 0; display: block; font-size: 14.5px; font-weight: 700; color: var(--vif); margin-bottom: 4px; }
.carte--grande .carte__t { order: 0; font-size: clamp(19px, 1.9vw, 24px); font-weight: 700; color: var(--encre); line-height: 1.35; letter-spacing: -.015em; }
.carte--grande .carte__d:first-of-type { font-size: 15.5px; font-weight: 400; color: var(--gris); line-height: 1.65; letter-spacing: 0; }
.cartes .carte--grande:hover .carte__d:first-of-type { color: var(--gris); }
@media (max-width: 900px) { .hero .badge { left: -8px; bottom: 84px; } }
@media (max-width: 1100px) and (min-width: 901px) { .phero__fond img { opacity: .6; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 75%); mask-image: linear-gradient(90deg, transparent 0, #000 75%); } }
.phero .phero__fond--etroit { width: 34%; right: 6%; }
.phero__fond--etroit img { object-position: center 24%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%); }
.phero:has(.phero__fond--etroit) .phero__inner { min-height: clamp(360px, 34vw, 460px); }
/* Recette : écarts mesurés entre la maquette et WordPress */
.enonce { margin-bottom: 0; padding-bottom: 6px; }
.choice label, .choice .wpcf7-list-item { display: flex; }
.form__foot .wpcf7-spinner { position: absolute; margin: 0; right: 0; top: 50%; transform: translateY(-50%); }
.form__foot { position: relative; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; font-size: 14.5px; }
