/* =========================================================================
   ECONSEIL EXPERT — Design system
   Tech & Accessibilité · navy/teal · Inter + DM Serif Display
   Signature : le « filet de paie » (dotted leader) modernisé + chiffres tabulaires
   ========================================================================= */

/* ----------------------------------------------------------------- TOKENS */
:root {
  /* Surfaces & encre */
  --navy-900: #0A1E38;
  --navy-800: #102A4C;
  --navy-700: #16375F;
  --ink-900:  #0D1726;
  --ink-600:  #4A5568;
  --ink-400:  #8A97A8;
  --paper:    #F6F9FB;
  --surface:  #FFFFFF;
  --line:     #E3E9F0;

  /* Accents */
  --teal-700: #0B6E6B; /* CTA pleine sur fond clair (texte blanc, contraste AA) */
  --teal-500: #14A8A2; /* accent, filets, icônes */
  --teal-300: #6FD8D2; /* accent sur fond navy */
  --amber:    #E8A317; /* signal rare (chiffres-clés) */

  /* Typo — Inter uniquement, hiérarchie par les graisses */
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.78rem + 0.2vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.55rem, 1.35rem + 1vw, 2rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4:  clamp(2.6rem, 2rem + 3vw, 4.25rem);

  /* Espacement & rythme */
  --gutter: clamp(1.2rem, 4vw, 2.5rem);
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-1: 0 1px 2px rgba(10,30,56,.05), 0 8px 24px rgba(10,30,56,.06);
  --shadow-2: 0 4px 12px rgba(10,30,56,.08), 0 20px 48px rgba(10,30,56,.10);
  --ring: 0 0 0 3px rgba(20,168,162,.45);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ------------------------------------------------------------------ RESET */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--surface);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

/* Chiffres tabulaires — signature « comptable » */
.tnum, .stat__value, .ledger td:last-child { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ----------------------------------------------------------- ACCESSIBILITÉ */
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: var(--navy-900); color: #fff; padding: .7rem 1.1rem;
  border-radius: 8px; transition: top .2s var(--ease); font-weight: 600;
}
.skip-link:focus { top: 8px; color: #fff; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------ LAYOUT */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy-900); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-700); margin: 0 0 .8rem; display: inline-flex; align-items: center; gap: .6rem;
}
.section--navy .eyebrow { color: var(--teal-300); }
.eyebrow::before { content: ""; width: 1.8rem; height: 2px; background: currentColor; display: inline-block; }

.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head--center { max-width: 42rem; margin-inline: auto; text-align: center; }
.section__head--center .eyebrow::before { display: none; }
.section--tools { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section--tools .tools { max-width: 1000px; margin-inline: auto; }
.section__head h2 { font-size: var(--step-3); }
.section__head p { color: var(--ink-600); font-size: var(--step-1); }
.section--navy .section__head p { color: #C6D3E2; }

/* ----------------------------------------------------------------- BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: var(--step-0);
  padding: .85rem 1.5rem; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .15s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--teal-700); color: #fff; box-shadow: var(--shadow-1); }
.btn--primary:hover { background: #095956; color: #fff; box-shadow: var(--shadow-2); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn--outline { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn--outline:hover { border-color: var(--teal-500); color: var(--navy-900); }
.btn svg { width: 1.05em; height: 1.05em; }

/* ------------------------------------------------------------------ HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 74px; }
.site-brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; text-decoration: none; color: var(--navy-900); }
.site-brand img { max-height: 44px; width: auto; }
.site-brand__logo-img { max-height: 40px; width: auto; height: auto; display: block; margin-left: 0; }
.site-brand__row { display: inline-flex; align-items: center; gap: .4rem; }
.site-brand__icon { height: 18px; width: auto; flex-shrink: 0; }
.site-brand__wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; line-height: 1; letter-spacing: -.02em; }
.site-brand__group { color: var(--teal-700); }
.site-brand__slogan { display: block; font-family: var(--font-body); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-700); margin-top: 1px; font-weight: 600; white-space: nowrap; }

.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; }
.primary-nav a {
  display: block; padding: .55rem .8rem; border-radius: 8px; color: var(--ink-900);
  text-decoration: none; font-weight: 600; font-size: .82rem; letter-spacing: .06em;
  text-transform: uppercase; transition: background .15s var(--ease), color .15s var(--ease);
}
/* En mobile, les sous-éléments du menu restent lisibles (pas tout en capitales serrées) */
@media (max-width: 900px) { .primary-nav a { font-size: .9rem; letter-spacing: .04em; } }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: var(--paper); color: var(--navy-900); }
.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 290px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-2); padding: .5rem; display: none; flex-direction: column; gap: 2px;
}
.primary-nav .menu-item-has-children:hover .sub-menu,
.primary-nav .menu-item-has-children:focus-within .sub-menu { display: flex; }
.header-cta { margin-left: .4rem; padding: .55rem 1rem; font-size: .82rem; }

.nav-toggle {
  margin-left: auto; display: none; align-items: center; gap: .5rem;
  background: var(--navy-900); color: #fff; border: 0; border-radius: 9px;
  padding: .6rem .85rem; font-family: var(--font-body); font-weight: 600; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed; inset: 74px 0 auto 0; background: #fff; margin: 0;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
    max-height: 0; overflow: hidden; transition: max-height .3s var(--ease);
  }
  .primary-nav[data-open="true"] { max-height: 80vh; overflow-y: auto; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.2rem; }
  .primary-nav a { padding: .85rem .6rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .primary-nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding-left: 1rem; }
}

/* -------------------------------------------------------------------- HERO */
.hero { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; }
.hero::after { /* halo teal discret */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 420px at 82% -10%, rgba(20,168,162,.22), transparent 60%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem,5vw,4rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.hero__eyebrow { color: var(--teal-300); }
.hero h1 { font-size: var(--step-4); margin-bottom: .4em; }
.hero h1 .accent { color: var(--teal-300); }
.hero__lead { font-size: var(--step-1); color: #C6D3E2; max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.hero__meta { display: flex; gap: 1.8rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero__meta .stat__value { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: #fff; letter-spacing: -.02em; }
.hero__meta .stat__value--text { font-size: 1.15rem; }
.hero__meta .stat__label { font-size: var(--step--1); color: #9FB2C8; }

/* La carte « bulletin » — signature visuelle */
.payslip {
  background: #fff; color: var(--ink-900); border-radius: var(--radius);
  box-shadow: var(--shadow-2); padding: 1.4rem 1.5rem; max-width: 380px; margin-left: auto;
  border-top: 4px solid var(--teal-500);
}
.payslip__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.payslip__head strong { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.payslip__head span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700); font-weight: 600; }
.ledger { width: 100%; border-collapse: collapse; }
.ledger td { padding: .5rem 0; font-size: .92rem; }
.ledger td:first-child { color: var(--ink-600); }
.ledger td:last-child { text-align: right; font-weight: 600; }
.ledger tr { position: relative; }
/* le dotted leader entre libellé et montant */
.ledger tr td:first-child::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .85rem;
  border-bottom: 1px dotted var(--line); z-index: 0;
}
.ledger td { position: relative; background: #fff; z-index: 1; }
.ledger td:first-child { padding-right: .6rem; }
.ledger td:last-child { padding-left: .6rem; }
.ledger .total td { border-top: 2px solid var(--navy-900); padding-top: .8rem; font-size: 1.05rem; }
.ledger .total td:last-child { color: var(--teal-700); }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .payslip { margin: 0 auto; }
}

/* ---------------------------------------------------------------- SERVICES */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
.card__icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(20,168,162,.12); color: var(--teal-700); margin-bottom: 1.1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--step-2); margin-bottom: .4rem; }
.card p { color: var(--ink-600); margin-bottom: 1.2rem; }
.card .card__link { margin-top: auto; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.card .card__link::after { content: "→"; transition: transform .2s var(--ease); }
.card:hover .card__link::after { transform: translateX(4px); }

/* ------------------------------------------------------------------ OUTILS */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1rem; }
.tool {
  display: flex; align-items: center; gap: .9rem; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.1rem; color: var(--ink-900); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.tool:hover { border-color: var(--teal-500); box-shadow: var(--shadow-1); transform: translateY(-2px); color: var(--navy-900); }
.tool__num { font-family: var(--font-body); font-variant-numeric: tabular-nums; font-weight: 700; color: var(--teal-700); font-size: .8rem; opacity: .7; min-width: 1.8em; }
.tool__body { display: flex; flex-direction: column; }
.tool__body strong { font-weight: 600; }
.tool__body small { color: var(--ink-600); font-size: .82rem; }
.tools__more { margin-top: 2rem; text-align: center; }

/* ------------------------------------------------------------------- TRUST */
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: left; }
.stat__value { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); color: #fff; line-height: 1; letter-spacing: -.02em; }
.stat__value .unit { color: var(--teal-300); }
.stat__label { color: #9FB2C8; font-size: var(--step--1); margin-top: .35rem; }
.trust__partner { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.12); color: #C6D3E2; font-size: .95rem; }
.trust__partner a { color: var(--teal-300); }

/* ----------------------------------------------------------------- CONTACT */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.contact__info p { color: var(--ink-600); }
.contact__detail { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1.1rem; }
.contact__detail svg { width: 22px; height: 22px; color: var(--teal-700); flex: 0 0 auto; margin-top: 2px; }
.contact__detail a { color: var(--ink-900); text-decoration: none; font-weight: 500; }
.contact__detail a:hover { color: var(--teal-700); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-1); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.field .req { color: var(--teal-700); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink-900);
  padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-500); outline: none; box-shadow: var(--ring); }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-hp { position: absolute; left: -9999px; top: -9999px; } /* honeypot anti-spam */
.form-status { margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--radius-sm); font-size: .95rem; display: none; }
.form-status[data-state="success"] { display: block; background: rgba(20,168,162,.12); color: #075e5b; border: 1px solid rgba(20,168,162,.4); }
.form-status[data-state="error"] { display: block; background: #fdecec; color: #9b1c1c; border: 1px solid #f5c2c2; }
.form-status[data-state="loading"] { display: block; background: var(--paper); color: var(--ink-600); border: 1px solid var(--line); }

@media (max-width: 820px) {
  .cards, .trust__grid { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards, .trust__grid, .field-row { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ FOOTER */
.site-footer { background: var(--navy-900); color: #C6D3E2; padding-block: clamp(3rem,6vw,4.5rem) 2rem; font-size: .88rem; line-height: 1.6; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 2.5rem; }
.site-footer a { color: #C6D3E2; text-decoration: none; }
.site-footer a:hover { color: var(--teal-300); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer__links--cols { columns: 2; column-gap: 1.5rem; }
.footer__bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem; }
.footer__bottom nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
@media (max-width: 760px){ .footer__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- PAGES INTERNES */
.page-hero { background: var(--navy-900); color: #fff; padding-block: clamp(2.5rem,6vw,4rem); }
.page-hero h1 { font-size: var(--step-3); }
.page-hero .breadcrumb { font-size: .85rem; color: #9FB2C8; margin-bottom: .8rem; }
.page-hero .breadcrumb a { color: var(--teal-300); text-decoration: none; }
.entry { padding-block: clamp(2.5rem,5vw,4rem); }
.entry .wrap { max-width: 760px; }
.entry h2 { font-size: var(--step-2); margin-top: 1.6em; }
.entry img { border-radius: var(--radius); margin: 1.5rem 0; }
.entry blockquote { border-left: 4px solid var(--teal-500); margin: 1.5rem 0; padding: .4rem 0 .4rem 1.2rem; color: var(--ink-600); font-style: italic; }

.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.post-grid--4 { grid-template-columns: repeat(4,1fr); }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease); display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.post-card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--paper); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.post-card time { font-size: .8rem; color: var(--teal-700); font-weight: 600; }
.post-card h3 { font-size: 1.25rem; margin: .4rem 0 .6rem; }
.post-card h3 a { color: var(--navy-900); text-decoration: none; }
.post-card p { color: var(--ink-600); font-size: .95rem; }
.post-card .card__link { margin-top: auto; font-weight: 600; text-decoration: none; }
@media (max-width: 1080px){ .post-grid--4 { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 820px){ .post-grid, .post-grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .post-grid, .post-grid--4 { grid-template-columns: 1fr; } }

.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .6rem; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; color: var(--navy-900); font-weight: 600; }
.pagination .current { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.pagination a:hover { border-color: var(--teal-500); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; } }

/* --------------------------------------------------- PAGES DE SERVICE */
/* Méthode en étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; position: relative; }
.step__num { font-family: var(--font-body); font-weight: 700; font-size: .85rem; color: var(--teal-700); letter-spacing: .05em; display: inline-block; padding: .2rem .55rem; background: rgba(20,168,162,.12); border-radius: 7px; margin-bottom: .9rem; }
.step__title { font-size: var(--step-1); margin-bottom: .3rem; }
.step__desc { color: var(--ink-600); margin: 0; font-size: .95rem; }
.step::after { content: ""; position: absolute; top: 2.4rem; right: -1.05rem; width: 1.3rem; height: 2px; background: var(--line); }
.step:last-child::after { display: none; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } .step::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Livrables (sur fond navy) */
.deliverables { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.deliverables__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.deliverables__list li { display: flex; align-items: center; gap: .8rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); padding: .9rem 1.1rem; color: #fff; }
.deliverables__list svg { width: 18px; height: 18px; color: var(--teal-300); flex: 0 0 auto; }
@media (max-width: 760px) { .deliverables { grid-template-columns: 1fr; } }

/* FAQ */
.faq__item { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: .7rem; }
.faq__item summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq__item summary::after { content: "+"; color: var(--teal-700); font-size: 1.4rem; line-height: 1; transition: transform .2s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item p { margin: .8rem 0 0; color: var(--ink-600); }

/* Bande d'appel à l'action */
.cta-band { background: var(--paper); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow-1); }
.cta-band__inner h2 { font-size: var(--step-2); margin-bottom: .3rem; }
.cta-band__inner p { color: var(--ink-600); margin: 0; }
.cta-band__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* Le contenu éditorial (the_content) hérite des styles .entry via wrap */
.entry-body { margin-top: 1.2rem; }
.entry-body h2 { font-size: var(--step-2); margin-top: 1.4em; }
.entry-body img { border-radius: var(--radius); margin: 1.3rem 0; }

/* ---------------------------------------------------- WHATSAPP FLOTTANT */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.45); text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.wa-fab:hover { transform: scale(1.07); color: #fff; box-shadow: 0 10px 28px rgba(37,211,102,.55); }
.wa-fab:active { transform: scale(.98); }
@media (max-width: 600px) { .wa-fab { right: 14px; bottom: 14px; width: 52px; height: 52px; } }

/* --------------------------------------------- EMPLACEMENTS D'IMAGES */
/* Placeholder visible tant qu'aucune image n'est définie (montre où poser une photo) */
.media-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-frame--ratio { aspect-ratio: 4 / 3; }
.media-frame--portrait { aspect-ratio: 3 / 4; }
.media-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: .5rem;
  align-items: center; justify-content: center; color: var(--ink-400);
  background: repeating-linear-gradient(45deg, #eef3f8, #eef3f8 12px, #f6f9fb 12px, #f6f9fb 24px);
  text-align: center; font-size: .85rem; padding: 1rem;
}
.media-placeholder svg { width: 38px; height: 38px; opacity: .6; }

/* Bandeau image + texte (présentiel / bureaux) sur l'accueil */
.feature-media { padding-block: clamp(3.5rem, 7vw, 6rem); }
.feature-media__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.feature-media__grid--rev .feature-media__text { order: 2; }
.feature-media__text h2 { font-size: var(--step-2); }
.feature-media__text p { color: var(--ink-600); }
.feature-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .7rem; }
.feature-list li { display: flex; gap: .6rem; align-items: flex-start; }
.feature-list svg { width: 20px; height: 20px; color: var(--teal-700); flex: 0 0 auto; margin-top: 3px; }
@media (max-width: 760px) {
  .feature-media__grid { grid-template-columns: 1fr; }
  .feature-media__grid--rev .feature-media__text { order: 0; }
}

/* Image latérale du hero des pages de service */
.page-hero--media .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem,5vw,3rem); align-items: center; }
.page-hero--media .media-frame { box-shadow: var(--shadow-2); }
@media (max-width: 820px) { .page-hero--media .wrap { grid-template-columns: 1fr; } }

/* ------------------------------------------------- PÔLES (cartes numérotées) */
.card { position: relative; }
.card__num { position: absolute; top: 1.5rem; right: 1.6rem; font-family: var(--font-display); font-weight: 800; font-size: .9rem; color: var(--ink-400); letter-spacing: .04em; }
.stat__value--text { font-size: var(--step-1); font-weight: 700; }

/* ============================================================ À PROPOS */
/* Équipe */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.team-card { margin: 0; }
.team-card .media-frame { margin-bottom: .9rem; }
.team-card figcaption strong { display: block; color: var(--navy-900); font-weight: 700; }
.team-card figcaption span { color: var(--ink-600); font-size: .9rem; }
@media (max-width: 820px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr 1fr; } }

/* Partenaires */
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.partner-cell { aspect-ratio: 3 / 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); display: grid; place-items: center; padding: 1rem; }
.partner-cell img { max-height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.partner-cell:hover img { filter: none; opacity: 1; }
.partner-ph { display: inline-flex; flex-direction: column; align-items: center; gap: .3rem; color: var(--ink-400); font-size: .78rem; }
.partner-ph svg { width: 24px; height: 24px; opacity: .6; }
@media (max-width: 820px) { .partner-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }

/* ========================================================== FONDATEUR */
.founder-hero { background: var(--navy-900); color: #fff; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.founder-hero__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.founder-hero__media .media-frame { box-shadow: var(--shadow-2); max-width: 360px; }
.founder-hero h1 { font-size: var(--step-3); color: #fff; margin-bottom: .2rem; }
.founder-hero__role { color: var(--teal-300); font-weight: 600; font-size: var(--step-1); margin-bottom: 1rem; }
.founder-hero__bio { color: #C6D3E2; max-width: 38rem; }
.founder-hero .breadcrumb a, .founder-hero .breadcrumb { color: #9FB2C8; }
@media (max-width: 820px) { .founder-hero__inner { grid-template-columns: 1fr; } .founder-hero__media { max-width: 280px; } }

.founder-body { padding-block: clamp(2.5rem, 5vw, 4rem); }
.founder-grid { display: grid; grid-template-columns: 1fr .42fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.founder-section { margin-bottom: 2.5rem; }
.founder-h2 { font-size: var(--step-2); color: var(--navy-900); margin-bottom: 1.2rem; padding-bottom: .5rem; border-bottom: 2px solid var(--line); }
.founder-h3 { font-size: 1.1rem; color: var(--navy-900); margin-bottom: 1rem; }
@media (max-width: 860px) { .founder-grid { grid-template-columns: 1fr; } }

/* Frise */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__item { display: grid; grid-template-columns: 84px 1fr; gap: 1rem; padding: 0 0 1.3rem 0; position: relative; }
.timeline__item::before { content: ""; position: absolute; left: 96px; top: .55rem; bottom: -.3rem; width: 2px; background: var(--line); }
.timeline__item:last-child::before { display: none; }
.timeline__item::after { content: ""; position: absolute; left: 91px; top: .4rem; width: 12px; height: 12px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 3px rgba(20,168,162,.18); }
.timeline__year { font-weight: 700; color: var(--teal-700); font-size: .9rem; }
.timeline__body { padding-left: 1.6rem; }
.timeline__body strong { display: block; color: var(--navy-900); }
.timeline__body span { color: var(--ink-600); font-size: .92rem; }

/* Listes de références */
.reflist { list-style: none; margin: 0; padding: 0; }
.reflist__item { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.reflist__item:last-child { border-bottom: 0; }
.reflist__item strong { display: block; font-weight: 600; }
.reflist__item strong a { color: var(--navy-900); text-decoration: none; }
.reflist__item strong a:hover { color: var(--teal-700); }
.reflist__item span { color: var(--ink-600); font-size: .9rem; }

/* Carte latérale */
.founder-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.3rem; box-shadow: var(--shadow-1); }
.founder-card--cta { background: var(--paper); }
.founder-card--cta p { color: var(--ink-600); margin-bottom: 1rem; }
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.media-cell { aspect-ratio: 3 / 2; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .5rem; text-align: center; font-size: .82rem; color: var(--ink-600); }
.media-cell .partner-ph svg { width: 22px; height: 22px; color: var(--ink-400); }

/* Bandeau de logos partenaires défilant */
.partners { padding-top: 0; }
.partners__viewport { max-width: calc(var(--maxw) * .85); margin-inline: auto; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partners__track { display: flex; align-items: center; width: max-content; gap: 3.2rem; animation: partners-scroll 28s linear infinite; }
.partners__track:hover { animation-play-state: paused; }
.partners__item { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; height: 78px; }
.partners__item img { max-height: 62px; max-width: 200px; width: auto; height: auto; object-fit: contain; }
.partners__item a { display: flex; align-items: center; }
@keyframes partners-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.partners__track { animation: none; overflow-x: auto; }
}
