/* ============================================================
   EQUISENSIEL — Styles du site (layout + composants)
   S'appuie sur les variables de tokens.css.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
/* Base typographique légèrement agrandie (16 → 17px) : tout le texte en rem suit */
html { font-size: 106.25%; scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; }

/* Conteneur centré */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--space-6);
}

/* Le design system applique max-width:68ch (sans marge auto) à TOUT <p>, ce qui
   décale à gauche les paragraphes courts dans les blocs centrés. La largeur de
   lecture est gérée par les conteneurs (.section-head, .invitation__inner, …),
   donc on lève cette contrainte ; chaque composant fixe sa largeur si besoin. */
.eq p { max-width: none; }

/* Sections : rythme vertical généreux */
.section { padding-block: clamp(76px, 11vw, 152px); }
/* Bloc « bande » (image, CTA) : padding propre nul ou réduit pour éviter les grands
   vides — l'écart visible vient alors du padding du bloc voisin (~111px). */
.section--flush { padding-block: 0; }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
/* Si un bloc « bande » (CTA/image) suit directement une section colorée, on lui
   redonne sa marge haute : sans elle, la bande se colle au fond coloré sans
   respiration blanche. Reproduit la transition normale coloré → blanc. */
.section--soft + .section--flush-top,
.section--soft + .section--flush { padding-top: clamp(76px, 11vw, 152px); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
/* Bandeau CTA : remonté (peu d'espace au-dessus, marge normale avant le footer) */
.section--cta { padding-block: clamp(20px, 3vw, 40px) clamp(56px, 7vw, 88px); }
.section--soft { background: var(--bg-soft); }
.section--white { background: var(--bg-elevated); }

/* Bandeau d'intro de section (eyebrow + titre + lead) */
.section-head { max-width: 60ch; margin-inline: auto; text-align: center; }
.section-head .eyebrow { justify-content: center; }

/* ----------------------------------------------------------
   Typographie utilitaire
   ---------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600;
  font-size: var(--text-sm); letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase; color: var(--secondary);
  margin: 0;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1.5px; background: currentColor; opacity: .65;
}
.eyebrow--center::before { display: none; }
/* Recentrage optique : compense l'interlettrage en fin de ligne */
.eyebrow--center { padding-left: 0.22em; }

.trimot {
  font-family: var(--font-display); font-weight: 300;
  letter-spacing: 0.24em; text-transform: uppercase;
  font-size: var(--text-sm); color: var(--fg2);
}
/* Centrage optique du tri-mot (compense l'interlettrage de fin) */
.hero__trimot { padding-left: 0.24em; }

.script { font-family: var(--font-script); color: var(--secondary); line-height: 1.15; }

.lead { font-size: var(--text-md); line-height: var(--lh-body); color: var(--fg2); }

.rule { width: 52px; height: 2px; background: var(--secondary); border: 0; margin: 18px 0; }
.rule--center { margin-inline: auto; }

/* ----------------------------------------------------------
   Boutons
   ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1;
  border-radius: var(--radius-pill); padding: 13px 26px;
  border: 1.5px solid transparent; text-decoration: none;
  /* Survol fluide : le mouvement (lift + ombre) glisse plus longuement que la couleur */
  transition:
    transform 380ms var(--ease),
    box-shadow 380ms var(--ease),
    background-color 260ms var(--ease),
    color 260ms var(--ease),
    border-color 260ms var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
/* La transition doit battre `.eq a { transition: color … }` (sinon le lift est sec) */
.eq .btn {
  transition:
    transform 380ms var(--ease),
    box-shadow 380ms var(--ease),
    background-color 260ms var(--ease),
    color 260ms var(--ease),
    border-color 260ms var(--ease);
}
.eq .btn:active { transition-duration: 90ms; }
/* Double classe pour passer devant la règle `.eq a` (couleur de lien) */
.btn.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn.btn--primary:hover { background: var(--primary-strong); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.btn--secondary { background: var(--secondary); color: #fff; box-shadow: var(--shadow-sm); }
.btn.btn--secondary:hover { background: var(--secondary-strong); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.btn--ghost { background: transparent; color: var(--primary-strong); border-color: var(--bleu-300); }
.btn.btn--ghost:hover { background: var(--bleu-50); color: var(--primary-strong); transform: translateY(-2px); }
.btn.btn--light { background: #fff; color: var(--primary-strong); box-shadow: var(--shadow-sm); }
.btn.btn--light:hover { background: #fff; color: var(--primary-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
/* Retour au clic, doux et rapide */
.btn:active { transform: translateY(-1px) scale(0.985); transition-duration: 90ms; }
@media (prefers-reduced-motion: reduce) {
  .btn { transition-duration: 120ms; }
  .btn:hover { transform: none; }
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

/* ----------------------------------------------------------
   En-tête / navigation
   ---------------------------------------------------------- */
/* Barre de menu flottante : décollée du haut, en pilule translucide claire */
.site-header {
  position: fixed; top: clamp(12px, 1.8vw, 22px); left: 0; right: 0; z-index: 50;
  padding-inline: clamp(14px, 4vw, 32px);
  pointer-events: none; /* laisse passer les clics hors de la pilule */
}
.site-header__inner {
  position: relative; pointer-events: auto;
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 34px rgba(29, 29, 27, 0.09);
  transition: box-shadow var(--dur) var(--ease);
}
/* Le fond givré est porté par un pseudo-élément : ainsi `.site-header__inner`
   n'a pas lui-même de backdrop-filter, ce qui laisse le menu déroulant
   (descendant) appliquer son propre flou. */
.site-header__inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: rgba(251, 250, 247, 0.68);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  transition: background var(--dur) var(--ease);
}
.site-header.is-scrolled .site-header__inner::before {
  background: rgba(251, 250, 247, 0.85);
}
.site-header.is-scrolled .site-header__inner {
  box-shadow: 0 12px 40px rgba(29, 29, 27, 0.13);
}
.brand {
  display: inline-flex; align-items: center; border: 0; background: none;
  padding: 0; cursor: pointer;
}
.brand img { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  color: var(--fg1); text-decoration: none;
  padding: 9px 16px; border-radius: var(--radius-pill);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__link:hover { background: var(--bleu-50); color: var(--primary-strong); }
.nav__link.is-active { background: var(--bleu-50); color: var(--primary-strong); font-weight: 700; }
.nav .btn { margin-left: 12px; padding: 11px 22px; font-size: 14px; }

/* Liens : une seule ligne, jamais de retour à la ligne (le hamburger prend le relais) */
.nav__links { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.nav__link { white-space: nowrap; }

/* Sous-menu déroulant (Prestations) */
.nav__item { position: relative; display: inline-flex; }
.nav__link--parent { display: inline-flex; align-items: center; gap: 5px; }
.nav__chevron { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.nav__item--menu:hover .nav__chevron,
.nav__item--menu:focus-within .nav__chevron { transform: rotate(180deg); }
.nav__dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(6px);
  display: flex; flex-direction: column; gap: 2px;
  min-width: 268px; padding: 8px; margin-top: 16px;
  /* Même fond givré que la barre de menu (flou désormais effectif) */
  background: rgba(251, 250, 247, 0.72);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 44px rgba(29, 29, 27, 0.16);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  z-index: 60;
}
/* Pont invisible pour ne pas perdre le survol entre le lien et le panneau */
.nav__dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.nav__item--menu:hover .nav__dropdown,
.nav__item--menu:focus-within .nav__dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.eq .nav__dropdown a {
  display: block; padding: 9px 14px; border-radius: var(--radius);
  font-size: 14.5px; font-weight: 500; line-height: 1.3; color: var(--fg1);
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.eq .nav__dropdown a:hover { background: var(--bleu-50); color: var(--primary-strong); }
/* Page en cours de consultation : surlignage discret + chevron à droite */
.eq .nav__dropdown a.is-current {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bleu-50); color: var(--primary-strong); font-weight: 600;
}
.nav__here { width: 15px; height: 15px; color: var(--primary); flex: none; }
.eq .nav__dropdown a:first-child {
  color: var(--primary-strong); font-weight: 700;
  position: relative; margin-bottom: 9px;
}
/* Séparateur placé sous l'item (dans la marge) pour ne pas casser l'arrondi du survol */
.eq .nav__dropdown a:first-child::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: -5px;
  height: 1px; background: var(--line-soft);
}

.nav-toggle {
  display: none; border: 0; background: none; cursor: pointer;
  padding: 8px; color: var(--fg1);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ----------------------------------------------------------
   Hero — aéré, centré
   ---------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; box-sizing: border-box;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(104px, 14vh, 140px);
  padding-bottom: clamp(56px, 9vh, 104px);
}
.hero__inner {
  position: relative; z-index: 1;
  max-width: 1040px; margin-inline: auto; text-align: center;
  padding-block: clamp(8px, 2vw, 24px);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(33px, 5vw, 56px); line-height: 1.1;
  letter-spacing: 0.01em; margin: 24px 0 0;
}
.hero h1 .hero__l1, .hero h1 em { display: block; }
.hero h1 em { font-style: normal; color: var(--primary-strong); margin-top: 0.08em; }
/* Une seule ligne pour la 1re phrase dès qu'il y a de la place */
@media (min-width: 640px) { .hero h1 .hero__l1 { white-space: nowrap; } }
.hero .hero__sub {
  font-size: clamp(17px, 2vw, 21px); line-height: 1.6; font-weight: 500;
  color: var(--fg2); max-width: 620px; margin: 38px auto 0; text-wrap: balance;
}
.hero .hero__trimot { margin-top: 44px; }
.hero .btn-row { margin-top: 40px; }

/* Taches aquarelle */
.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(72px); }
.blob--1 { width: 400px; height: 400px; background: var(--ocre);    opacity: .24; left: -100px; top: -130px; }
.blob--2 { width: 480px; height: 480px; background: var(--bleu);    opacity: .26; right: -130px; top: -90px; }
.blob--3 { width: 320px; height: 320px; background: var(--lavande); opacity: .22; left: 46%; bottom: -180px; }
.blob--4 { width: 260px; height: 260px; background: var(--soleil);  opacity: .20; left: 18%; top: 30px; }

/* ----------------------------------------------------------
   Section « invitation » (contexte) — prose calme
   ---------------------------------------------------------- */
.invitation__inner { max-width: 74ch; margin-inline: auto; text-align: center; }
.invitation p { font-size: var(--text-md); line-height: 1.85; color: var(--fg2); margin: 0 0 1em; }
.invitation .script { font-size: clamp(30px, 4vw, 40px); margin-top: 26px; }
.eq .invitation__inner > p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------
   Bienvenue / fondatrice
   ---------------------------------------------------------- */
.founder { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.founder__media { position: relative; }
.founder__media::after {
  content: ""; position: absolute; inset: -16px -16px auto auto;
  width: 130px; height: 130px; background: var(--ciel);
  border-radius: 50%; filter: blur(10px); opacity: .55; z-index: 0;
}
.portrait {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl); overflow: hidden;
  background: linear-gradient(135deg, var(--corail-100), var(--bleu-50) 55%, var(--lavande-100));
  border: 1px solid var(--line-soft);
}
/* Photo détourée (fond transparent) posée sur le dégradé, ancrée en bas */
.portrait__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; object-position: center bottom;
}

.founder h2 { font-size: clamp(28px, 3.6vw, 36px); font-weight: 300; margin: 6px 0 0; }
.founder p { color: var(--fg2); line-height: 1.8; margin: 0 0 1em; max-width: 56ch; }
.founder p.is-lead { color: var(--fg1); }

.tick-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 11px; }
.tick-list li {
  position: relative; padding-left: 30px;
  color: var(--fg2); line-height: 1.6;
}
.tick-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--secondary); font-weight: 700;
}

.stats { display: flex; flex-wrap: nowrap; gap: clamp(8px, 2.6vw, 32px); margin-top: 28px; }
.stat { min-width: 0; } /* autorise les colonnes à se compacter plutôt que de passer à la ligne */
.stat__n { font-family: var(--font-display); font-weight: 400; font-size: clamp(12px, 3.6vw, 28px); color: var(--primary-strong); white-space: nowrap; }
.stat__l { font-size: clamp(10px, 2.3vw, 13px); color: var(--fg2); line-height: 1.35; margin-top: 3px; }
@media (max-width: 640px) {
  /* Mobile : empilées plutôt que côte à côte (sinon trop petit), en pleine taille. */
  .stats { flex-direction: column; gap: 16px; }
  .stat__n { font-size: 28px; }
  .stat__l { font-size: 13px; }
}

/* ----------------------------------------------------------
   Ma raison d'être — éditorial, large pull-quote
   ---------------------------------------------------------- */
.raison__inner { max-width: 82ch; margin-inline: auto; text-align: center; }
.raison h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 300; margin: 16px 0 0; }
.raison .raison__lead { font-size: var(--text-md); line-height: 1.85; color: var(--fg2); margin: 24px auto 0; max-width: 70ch; }
.eq .raison__articule { margin: 64px 0 0; justify-content: center; }
.pullquote {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(22px, 3vw, 30px); line-height: 1.45; color: var(--primary-strong);
  max-width: 620px; margin: 44px auto 0; text-wrap: balance;
}

/* ----------------------------------------------------------
   Ma déontologie — cartes de valeurs scannables
   ---------------------------------------------------------- */
.values {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: clamp(36px, 5vw, 56px);
}
.value {
  background: var(--bg-elevated); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.value:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.value__mark {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--corail-100); color: var(--ocre);
  font-family: var(--font-display); font-weight: 500; font-size: 16px;
  margin-bottom: 16px;
}
.value h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); margin: 0 0 8px; }
.value p { font-size: 15.5px; line-height: 1.65; color: var(--fg2); margin: 0; }

.eq .deonto-note { text-align: center; font-size: 12.5px; color: var(--fg3); margin: 56px 0 0; }

/* ----------------------------------------------------------
   Bandeau image (emplacement photo pleine largeur)
   ---------------------------------------------------------- */
.media-band {
  margin: 0; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.media-band__img,
.media-band__placeholder {
  display: block; width: 100%; height: clamp(280px, 38vw, 460px);
}
.media-band__img { object-fit: cover; object-position: center; }

/* Bloc « image verticale + texte » : portrait à gauche, prose à droite.
   align-items:start → le titre démarre en haut, aligné avec les autres sections. */
/* Section portant un bloc média+texte : sur grand écran, l'image verticale impose
   la hauteur ; on plafonne le padding vertical (croissance 7vw, max 100px au lieu
   de 11vw/152px) pour éviter de grandes bandes vides au-dessus et en dessous.
   Le minimum reste 76px → l'espacement sur petit écran est inchangé. */
.section--split { --split-pad: clamp(76px, 7vw, 100px); padding-block: var(--split-pad); }

.media-split {
  display: grid; grid-template-columns: minmax(240px, 330px) 1fr;
  gap: clamp(28px, 5vw, 56px); align-items: center;
}
.media-split__media {
  margin: 0; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.media-split__media img { display: block; width: 100%; height: auto; }
/* Dans ce contexte la prose remplit sa colonne (pas de cap 70ch ni de centrage). */
.media-split .prose { max-width: none; margin-inline: 0; }
@media (max-width: 820px) {
  /* Empilé : le gap (espace sous l'image) reprend EXACTEMENT le padding vertical
     de la section → l'image a le même espace au-dessus et en dessous. */
  .media-split { grid-template-columns: 1fr; gap: var(--split-pad, clamp(76px, 11vw, 152px)); }
  .media-split__media { max-width: 320px; margin-inline: auto; }
}

/* ----------------------------------------------------------
   Décor latéral : courbes fines dans les marges, derrière le texte.
   À poser sur une section dont le contenu est étroit (prose centrée),
   pour habiller le vide sur les côtés. Masqué quand l'écran est trop
   étroit (le texte occuperait la place des courbes).
   ---------------------------------------------------------- */
.section--deco { position: relative; overflow: hidden; }
.section--deco > .container { position: relative; z-index: 1; }
.section--deco::before, .section--deco::after {
  content: ""; position: absolute; top: clamp(48px, 6vw, 84px); bottom: clamp(48px, 6vw, 84px); width: 140px;
  background: url("../img/deco-courbes.svg") repeat-y top left / 140px auto;
  opacity: .2; pointer-events: none; z-index: 0;
  /* Fondu haut/bas : les courbes apparaissent et s'estompent en douceur
     plutôt que d'être coupées net aux limites du bloc. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 130px, #000 calc(100% - 130px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 130px, #000 calc(100% - 130px), transparent 100%);
}
/* Décalage vers l'intérieur (loin des bords) : nul près du seuil de 1040px
   pour ne jamais chevaucher le texte, plus marqué à mesure que l'écran s'élargit. */
.section--deco::before { left:  clamp(0px, (100vw - 1080px) * 0.18, 110px); }
.section--deco::after  { right: clamp(0px, (100vw - 1080px) * 0.18, 110px); transform: scaleX(-1); }
@media (max-width: 1040px) {
  .section--deco::before, .section--deco::after { display: none; }
}

/* ----------------------------------------------------------
   Cartes informatives (non cliquables) — ex. engagements bénévoles.
   ---------------------------------------------------------- */
.info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: clamp(32px, 4.5vw, 48px);
}
.info-card {
  background: var(--bg-elevated); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow-sm);
}
.info-card__icon {
  width: 50px; height: 50px; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bleu-50); color: var(--primary-strong); margin-bottom: 18px;
}
.info-card:nth-child(even) .info-card__icon { background: var(--corail-100); color: var(--ocre); }
.info-card__icon svg { width: 24px; height: 24px; }
.info-card h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); margin: 0 0 9px; color: var(--fg1); }
.info-card p { font-size: 15px; line-height: 1.6; color: var(--fg2); margin: 0; }
@media (max-width: 880px) { .info-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.media-band__placeholder {
  background: linear-gradient(120deg, var(--corail-100), var(--bleu-50) 52%, var(--lavande-100));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; color: var(--fg2); text-align: center; padding: 24px;
}
.media-band__placeholder svg { width: 46px; height: 46px; color: var(--bleu); }
.media-band__placeholder span { font-size: 14px; letter-spacing: .02em; }

/* ----------------------------------------------------------
   Bandeau d'appel à l'action
   ---------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background: linear-gradient(120deg, var(--bleu-700), var(--bleu) 58%, var(--ocre));
  padding: clamp(44px, 6vw, 72px) clamp(28px, 5vw, 56px);
  text-align: center; color: #fff; box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-family: var(--font-display); font-weight: 300; color: #fff; font-size: clamp(26px, 3.6vw, 38px); max-width: 18ch; margin: 0 auto; text-wrap: balance; }
.cta-band p { color: rgba(255,255,255,0.92); font-size: var(--text-md); line-height: 1.7; max-width: 56ch; margin: 16px auto 0; }
.cta-band .btn-row { margin-top: 30px; }

/* ----------------------------------------------------------
   Pied de page
   ---------------------------------------------------------- */
.site-footer { background: var(--bg-ink); color: var(--fg-on-ink); padding: var(--space-8) 0 var(--space-6); }
.footer-top { display: flex; flex-wrap: wrap; gap: var(--space-7); justify-content: space-between; }
.footer-brand { max-width: 320px; }
.footer-brand__logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: var(--radius); }
.footer-brand__logo img { height: 46px; }
.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.7; color: #C9C6BF; }
.footer-brand .trimot { display: block; margin-top: 14px; color: #9C988F; font-size: 12px; }

.footer-cols { display: flex; gap: var(--space-8); flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-body); font-weight: 700; font-size: 13px; color: #fff; margin: 0 0 14px; }
.footer-col a, .footer-contact span { color: #C9C6BF; }
.footer-col a { display: block; text-decoration: none; font-size: 14px; padding: 5px 0; transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.footer-contact span { display: flex; gap: 9px; align-items: center; line-height: 1.4; }
.footer-contact svg { width: 15px; height: 15px; color: #9C988F; flex: none; }
.footer-contact a { color: #C9C6BF; text-decoration: none; }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px 20px;
  font-size: 12.5px; color: #8C887F;
}
.footer-bottom .green { justify-self: start; display: inline-flex; align-items: center; gap: 7px; }
.footer-bottom .footer-credit { justify-self: center; text-align: center; margin: 0; }
.footer-bottom .copyright { justify-self: end; text-align: right; }
.footer-bottom .green svg { width: 14px; height: 14px; color: #8FBE9C; }
.footer-bottom a { color: #C9C6BF; text-decoration: none; transition: color var(--dur) var(--ease); }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .green a { color: #8FBE9C; font-weight: 700; }
.footer-bottom .green a:hover { color: #B6DCC0; }
.footer-credit a { font-weight: 600; }
.footer-legal {
  margin-top: 32px; display: flex; justify-content: center; flex-wrap: wrap;
  gap: 4px 10px; font-size: 12.5px; color: #6F6C64;
}
.footer-legal a { color: #C9C6BF; text-decoration: none; transition: color var(--dur) var(--ease); }
.footer-legal a:hover { color: #fff; }

/* ----------------------------------------------------------
   Hero des pages internes (Prestations, À propos, …)
   ---------------------------------------------------------- */
.page-hero {
  position: relative; overflow: hidden;
  padding-top: clamp(118px, 16vh, 158px);
  /* Marge basse alignée sur le padding des sections → écart hero→section
     identique au reste du rythme vertical. */
  padding-bottom: clamp(76px, 11vw, 152px);
  text-align: center;
}
.page-hero__inner { position: relative; z-index: 1; max-width: 780px; margin-inline: auto; }
.page-hero__back { margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 300; margin: 18px 0 0; }

/* Page d'erreur (404, 403, …) */
.page-hero--center { display: flex; align-items: center; min-height: 74vh; }
.error-code {
  font-family: var(--font-display); font-weight: 300; line-height: 0.95;
  font-size: clamp(88px, 18vw, 180px); letter-spacing: 0.01em;
  color: var(--primary-strong); margin: 0;
}
.error-hero h1 { font-size: clamp(26px, 3.6vw, 40px); margin: 8px 0 0; }
.error-hero__actions { margin-top: 34px; }
.page-hero .page-hero__sub {
  font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: var(--fg2);
  margin: clamp(22px, 2.8vw, 32px) auto 0; max-width: 760px; text-wrap: balance;
}

/* Intro éditoriale + pastilles d'attention */
.intro-lead { max-width: 72ch; margin-inline: auto; text-align: center; }
.intro-lead p { font-size: var(--text-md); line-height: 1.85; color: var(--fg2); }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-elevated); color: var(--primary-strong);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill); padding: 9px 18px;
  font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.tag svg { color: var(--secondary); }
.tag svg { width: 16px; height: 16px; }

/* ----------------------------------------------------------
   Grille des prestations — cartes cliquables
   ---------------------------------------------------------- */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: clamp(36px, 5vw, 56px);
}
.eq a.service-card { color: var(--fg1); }
.service-card {
  display: flex; flex-direction: column;
  background: var(--bg-elevated); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card__icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bleu-50); color: var(--primary-strong); margin-bottom: 18px;
}
.service-card:nth-child(even) .service-card__icon { background: var(--corail-100); color: var(--ocre); }
.service-card__icon svg { width: 26px; height: 26px; }
/* Icône cheval (SVG externe colorisé via mask → prend la couleur de la pastille) */
.icon-cheval {
  display: block; width: 30px; height: 30px; background-color: currentColor;
  -webkit-mask: url("../img/icons/cheval.svg") center / contain no-repeat;
  mask: url("../img/icons/cheval.svg") center / contain no-repeat;
}
.service-card h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); margin: 0 0 10px; }
.service-card p { font-size: 15.5px; line-height: 1.65; color: var(--fg2); margin: 0 0 20px; }
.service-card__more {
  margin-top: auto; display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 14px; color: var(--primary-strong);
}
.service-card__more svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.service-card:hover .service-card__more svg { transform: translateX(4px); }

/* ----------------------------------------------------------
   Pages de détail (une prestation) — fil de retour + article
   ---------------------------------------------------------- */
.backlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--primary-strong);
}
.backlink svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.backlink:hover { color: var(--secondary); }
.backlink:hover svg { transform: translateX(-3px); }

.prose { max-width: 70ch; margin-inline: auto; }
.prose > p { font-size: var(--text-md); line-height: 1.85; color: var(--fg2); margin: 0 0 1.1em; }
.prose > :last-child { margin-bottom: 0; }
.prose .accent { color: var(--fg1); font-weight: 600; }
.prose h2 {
  font-weight: 300; font-size: clamp(24px, 3.2vw, 32px);
  margin: 1.5em 0 0.5em;
}
.prose h2:first-child { margin-top: 0; }
.prose blockquote {
  margin: 1.6em 0; padding: 8px 0 8px 24px;
  border-left: 3px solid var(--secondary);
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(20px, 2.6vw, 27px); line-height: 1.45;
  color: var(--primary-strong); text-wrap: balance;
}
/* Case d'opt-out Matomo (page Politique de confidentialité) */
.optout {
  margin-top: 2.4em; padding: clamp(18px, 2.4vw, 24px);
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
.optout__row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.optout__row span { color: var(--fg2); line-height: 1.6; }
.optout__row input {
  flex: none; width: 19px; height: 19px; margin: 3px 0 0;
  accent-color: var(--primary); cursor: pointer;
}
.optout__status { margin: 10px 0 0 31px; font-size: var(--text-sm); color: var(--fg2); }
.optout__status:empty { display: none; }

/* ----------------------------------------------------------
   Témoignages — cartes horizontales (personne à gauche, avis à droite)
   ---------------------------------------------------------- */
.testimonials { max-width: 940px; margin-inline: auto; display: flex; flex-direction: column; gap: clamp(20px, 3vw, 28px); }
.testimonial {
  margin: 0; /* neutralise la marge par défaut des <figure> (40px → carte rétrécie) */
  display: grid; grid-template-columns: 138px 1fr; align-items: center;
  gap: clamp(18px, 2.4vw, 30px);
  background: var(--bg-elevated); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
}
.testimonial__person { display: flex; flex-direction: column; align-items: center; text-align: center; }
.testimonial__avatar { width: 64px; height: 64px; border-radius: 50%; }
.testimonial__name { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); line-height: 1.15; color: var(--fg1); margin-top: 11px; }
.testimonial__role { font-size: 13px; color: var(--fg3); margin-top: 3px; }
.testimonial__body { border-left: 1px solid var(--line-soft); padding-left: clamp(20px, 2.6vw, 32px); }
.testimonial__mark {
  display: block; font-family: var(--font-display); font-weight: 400;
  font-size: 54px; line-height: 0.4; color: var(--bleu-300); margin-bottom: 14px;
}
/* Guillemet fermant en bas à droite */
.testimonial__body::after {
  content: "”"; display: block; text-align: right;
  font-family: var(--font-display); font-weight: 400; font-size: 54px;
  line-height: 0.2; color: var(--bleu-300); margin-top: 10px;
}
.testimonial__text { margin: 0; color: var(--fg2); line-height: 1.75; font-size: 16.5px; }
.eq .testimonial__text p { margin: 0 0 0.9em; max-width: none; }
.eq .testimonial__text p:last-child { margin-bottom: 0; }
@media (max-width: 680px) {
  .testimonial { grid-template-columns: 1fr; gap: 20px; }
  .testimonial__body { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); padding-top: 22px; }
}

/* ----------------------------------------------------------
   Contact — colonne infos + formulaire
   ---------------------------------------------------------- */
.contact-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 60px); max-width: 1000px; margin-inline: auto; align-items: start;
}
.contact-aside__lead { color: var(--fg2); line-height: 1.8; }
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 13px; align-items: flex-start; line-height: 1.5; }
.contact-list svg { width: 20px; height: 20px; color: var(--secondary); flex: none; margin-top: 2px; }
.eq .contact-list a { color: var(--fg1); }
.eq .contact-list a:hover { color: var(--primary-strong); }
.contact-list small { display: block; font-size: 13px; color: var(--fg3); margin-top: 2px; }

.form { background: var(--bg-elevated); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field > label { display: block; font-weight: 600; font-size: 13px; color: var(--fg1); margin-bottom: 7px; }
.field .req { color: var(--secondary); }
/* Champs texte (hors cases à cocher) — calés sur le design system (fond blanc) */
.eq .form input:not([type="checkbox"]), .eq .form select, .eq .form textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; color: var(--fg1);
  background-color: var(--blanc); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 11px 14px; transition: all var(--dur) var(--ease);
}
.eq .form textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.eq .form input:not([type="checkbox"]):focus, .eq .form select:focus, .eq .form textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--focus-ring);
}
.eq .form ::placeholder { color: var(--fg3); }
.eq .form input.has-error, .eq .form textarea.has-error, .eq .form select.has-error { border-color: var(--corail); }
/* Sélecteur « Objet » personnalisé — liste déroulante stylée (JS) */
.select { position: relative; }
.select__button {
  width: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font: inherit; font-size: 15px; color: var(--fg1); text-align: left; cursor: pointer;
  background-color: var(--blanc); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 11px 14px; transition: all var(--dur) var(--ease);
}
.select__button:focus-visible,
.select.is-open .select__button { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--focus-ring); }
.select__value.is-placeholder { color: var(--fg3); }
.select__chevron { width: 16px; height: 16px; flex: none; color: var(--bleu-700); transition: transform var(--dur) var(--ease); }
.select.is-open .select__chevron { transform: rotate(180deg); }
.select__list {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30;
  list-style: none; margin: 0; padding: 6px; max-height: 264px; overflow-y: auto;
  background: var(--blanc); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.select.is-open .select__list { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.select__option { padding: 10px 12px; border-radius: var(--radius); font-size: 14.5px; color: var(--fg1); cursor: pointer; outline: none; }
.select__option:hover, .select__option:focus { background: var(--bleu-50); color: var(--primary-strong); }
.select__option[aria-selected="true"] { color: var(--primary-strong); font-weight: 600; }

/* Liste d'erreurs regroupée (dans un bloc .form-message--err) */
.form-errors { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.form-errors li { font-size: 14px; line-height: 1.45; }
.field--consent { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--fg2); line-height: 1.5; }
.field--consent input[type="checkbox"] { width: 18px; height: 18px; flex: none; margin: 2px 0 0; accent-color: var(--primary); cursor: pointer; }
.eq .field--consent a { color: var(--primary-strong); text-decoration: underline; }
.field__error { display: block; color: var(--ocre-700); font-size: 13px; margin-top: 6px; }
.form__actions { margin-top: 28px; }
.form__note { font-size: 12.5px; color: var(--fg3); margin: 14px 0 0; }
/* Champ piège anti-bot (honeypot) : invisible et hors flux/tabulation */
.form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-message { border-radius: var(--radius); padding: 14px 16px; margin-bottom: 22px; font-size: 14.5px; line-height: 1.55; }
.form-message--ok { background: var(--bleu-50); border: 1px solid var(--bleu-300); color: var(--bleu-700); }
.form-message--err { background: var(--corail-100); border: 1px solid var(--corail); color: var(--ocre-700); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field--row { grid-template-columns: 1fr; gap: 0; } }

/* ----------------------------------------------------------
   Partenaires — bandeau de logos défilant (monochrome)
   ---------------------------------------------------------- */
.partners__head { text-align: center; }
.marquee {
  margin-top: clamp(32px, 5vw, 52px); overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee__track {
  display: flex; align-items: center; width: max-content;
  animation: marquee 34s linear infinite;
  /* Force une couche GPU stable : évite le clignotement/disparition des logos
     sur mobile (bug de compositing mask + animation transform sur iOS/Android). */
  will-change: transform;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.partner-logo { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.partner-logo {
  width: auto; margin-inline: clamp(24px, 3.8vw, 52px);
}
/* Équilibrage optique : hauteur ajustée par logo pour un rendu homogène */
.partner-logo[src*="safran"]          { height: 30px; }
.partner-logo[src*="carsat"]          { height: 38px; }
.partner-logo[src*="maison-pariente"] { height: 46px; }
.partner-logo[src*="hec"]             { height: 42px; }
.partner-logo[src*="centralesupelec"] { height: 48px; }
@keyframes marquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask: none; mask: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 24px; }
}

/* ----------------------------------------------------------
   Apparition douce
   ---------------------------------------------------------- */
@keyframes eqIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; }
.reveal.is-in { animation: eqIn var(--dur-slow) var(--ease) forwards; }

/* Apparition « aquarelle » réservée au bloc du haut (hero) : la matière monte
   doucement, se précise (flou qui se résorbe) et se pose sans rebond. */
@keyframes eqInHero {
  0%   { opacity: 0; transform: translateY(28px) scale(0.985); filter: blur(7px); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
.hero .reveal { will-change: opacity, transform, filter; }
.hero .reveal.is-in { animation: eqInHero 900ms var(--ease) forwards; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; animation: none; }
  html { scroll-behavior: auto; }
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  .founder { grid-template-columns: 1fr; }
  .founder__media { max-width: 380px; margin-inline: auto; }
  /* Blob décoratif masqué une fois la section empilée : il débordait
     derrière le texte et nuisait à sa lisibilité. */
  .founder__media::after { display: none; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .nav { gap: 0; }
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0; margin-top: 10px;
    background: rgba(251,250,247,0.96);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    backdrop-filter: saturate(150%) blur(14px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: var(--radius-lg);
    box-shadow: 0 14px 40px rgba(29,29,27,0.14);
    padding: 12px 14px 16px; gap: 4px;
  }
  .nav__links.is-open .nav__link { padding: 12px 14px; }
  .nav__links.is-open .btn { margin: 8px 0 0; justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .site-header__inner { position: relative; }

  /* Sous-menu Prestations : masqué par défaut, déplié au clic (.is-open via JS) */
  .nav__links.is-open .nav__item--menu { display: flex; flex-direction: column; align-items: stretch; }
  .nav__links.is-open .nav__link--parent { justify-content: space-between; }
  .nav__links.is-open .nav__chevron { display: inline-block; transition: transform var(--dur) var(--ease); transform: none; }
  .nav__item--menu.is-open .nav__chevron { transform: rotate(180deg); }

  .nav__links.is-open .nav__dropdown { display: none; }
  .nav__links.is-open .nav__item--menu.is-open .nav__dropdown {
    display: flex; position: static; opacity: 1; visibility: visible; pointer-events: auto;
    transform: none; margin: 2px 0 4px; padding: 0 0 0 12px; min-width: 0;
    background: transparent; box-shadow: none; border: 0;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .nav__links.is-open .nav__dropdown::before { display: none; }
  .eq .nav__links.is-open .nav__dropdown a { padding: 10px 14px; font-size: 14px; white-space: normal; }
  .eq .nav__links.is-open .nav__dropdown a:first-child {
    border-bottom: 0; margin-bottom: 0; padding-bottom: 10px;
    border-radius: var(--radius); font-weight: 600;
  }
}
@media (max-width: 540px) {
  .values { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .stats { gap: 24px; }
  .footer-bottom { grid-template-columns: 1fr; text-align: center; gap: 8px; }
  .footer-bottom .green, .footer-bottom .footer-credit, .footer-bottom .copyright { justify-self: center; text-align: center; }
}
