/* =========================================================
   GéoAxe — Feuille de style principale
   ---------------------------------------------------------
   Sommaire
   01. Variables & thème
   02. Reset & bases
   03. Utilitaires (container, titres, boutons, badges)
   04. En-tête & navigation
   05. Pied de page
   06. Hero & bandeaux de page
   07. Cartes & grilles
   08. Sections spécifiques (domaines, savoir-faire, parcours…)
   09. Références (portfolio filtrable)
   10. Contact & formulaires
   11. Animations & accessibilité
   12. Responsive
   ========================================================= */

/* =========================================================
   01. VARIABLES & THÈME
   Changez ces valeurs pour modifier toute l'identité visuelle.
   ========================================================= */
:root {
  /* Couleurs de marque */
  --navy-950: #0c151e;
  --navy-900: #16222f;
  --navy-800: #1f3040;
  --navy-700: #2d465c;
  --navy-600: #3d5f7c;
  --blue-400: #7fa3bf;
  --blue-200: #c3d5e3;
  --blue-050: #eef3f7;

  /* Accent : vert du logo GéoAxe */
  --accent: #2f8f3f;
  --accent-dark: #1f6b2b;
  --accent-soft: #eaf5ec;

  /* Neutres */
  --ink: #101720;
  --muted: #576274;
  --line: #e3e9f0;
  --surface: #f5f8fb;
  --white: #ffffff;

  /* Typographie */
  --font-title: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Mesures */
  --container: 1200px;
  --container-narrow: 860px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 84px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(12, 21, 30, .06), 0 2px 8px rgba(12, 21, 30, .05);
  --shadow: 0 6px 24px rgba(12, 21, 30, .09);
  --shadow-lg: 0 24px 60px rgba(12, 21, 30, .16);

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

/* =========================================================
   02. RESET & BASES
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  text-wrap: balance;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-dark); }

ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { max-width: 100%; display: block; }
strong { font-weight: 600; color: var(--navy-900); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--navy-800); color: #fff; }

/* Lien d'évitement clavier */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy-900);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* =========================================================
   03. UTILITAIRES
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--container-narrow); }

.section { padding: clamp(64px, 9vw, 116px) 0; }
.section-sm { padding: clamp(48px, 6vw, 76px) 0; }
.section-surface { background: var(--surface); }
.section-dark {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .82);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark a { color: var(--blue-200); }

/* Sur-titre */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-dark .eyebrow { color: var(--accent); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.is-centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.is-centered .eyebrow { justify-content: center; }
.lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}
.section-dark .lead { color: rgba(255, 255, 255, .78); }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-base);
  font-size: .98rem;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  text-align: center;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn .icon { width: 19px; height: 19px; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(47, 143, 63, .26); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; box-shadow: 0 12px 28px rgba(47, 143, 63, .32); }

.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-800); color: #fff; }

.btn-outline { border-color: var(--line); background: var(--white); color: var(--navy-900); }
.btn-outline:hover { border-color: var(--navy-700); color: var(--navy-900); }

.btn-ghost { border-color: rgba(255, 255, 255, .38); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

.btn-lg { padding: 17px 34px; font-size: 1.03rem; }
.btn-block { width: 100%; }

.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* Lien fléché */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy-700);
}
.arrow-link .icon { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.arrow-link:hover .icon { transform: translateX(4px); }

/* Icônes du sprite */
.icon {
  width: 40px;
  height: 40px;
  color: var(--navy-700);
  flex-shrink: 0;
  fill: none;
}
.icon-sm { width: 20px; height: 20px; }

/* Badge / pastille */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--blue-050);
  color: var(--navy-700);
}
.badge-accent { background: var(--accent-soft); color: var(--accent-dark); }

/* Liste à puces cochées */
.check-list { display: grid; gap: 13px; }
.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--muted);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6b2b' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.section-dark .check-list li { color: rgba(255, 255, 255, .8); }
.section-dark .check-list li::before { background-color: rgba(47, 143, 63, .22); }

/* Images : emplacement propre même si le fichier manque encore */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--navy-800), var(--navy-900)),
    var(--navy-900);
  isolation: isolate;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .9;
  pointer-events: none;
  z-index: 0;
}
.media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Libellé affiché tant que la photo n'est pas fournie */
.media-hint {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 20px;
  color: rgba(255, 255, 255, .55);
  font-size: .82rem;
  letter-spacing: .04em;
}
.media-hint b { color: rgba(255, 255, 255, .8); font-weight: 600; }
.media.has-image .media-hint { display: none; }
.media-4x3 { aspect-ratio: 4 / 3; }
.media-16x9 { aspect-ratio: 16 / 9; }
.media-1x1 { aspect-ratio: 1 / 1; }
.media-3x4 { aspect-ratio: 3 / 4; }

/* =========================================================
   04. EN-TÊTE & NAVIGATION
   ========================================================= */
.topbar {
  background: var(--navy-950);
  color: rgba(255, 255, 255, .72);
  font-size: .84rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar a { color: rgba(255, 255, 255, .84); display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.topbar .icon { width: 15px; height: 15px; color: var(--accent); }
.topbar-list { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.topbar-inner > span { display: inline-flex; align-items: center; gap: 7px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-img {
  height: auto;
  width: auto;
  max-height: 52px;
  max-width: 200px;
}
/* Le métier, en texte à côté du logo : lisible à n'importe quelle taille */
.logo-baseline {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding-left: 13px;
  margin-left: 2px;
  border-left: 1px solid var(--line);
  max-width: 7.5em;
  line-height: 1.25;
}
.logo-img + .logo-baseline + .logo-fallback { display: none; }
.footer-logo .logo-img { max-height: 70px; max-width: 220px; margin-bottom: 4px; }
.footer-logo .logo-baseline { display: none; }
@media (max-width: 560px) {
  .logo-img { max-height: 42px; max-width: 150px; }
  .logo-baseline { display: none; }
}
.logo-img + .logo-fallback { display: none; }
.logo-fallback { display: inline-flex; align-items: center; gap: 12px; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 42px; height: 42px; color: var(--navy-800); flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
  font-family: var(--font-title);
  font-size: 1.42rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -.02em;
}
.logo-name span { color: var(--accent); }
.logo-title {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* Navigation principale */
.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a {
  position: relative;
  padding: 10px 14px;
  font-size: .96rem;
  font-weight: 500;
  color: var(--navy-900);
  border-radius: var(--radius-sm);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a:hover { text-decoration: none; color: var(--navy-900); }
.primary-nav a[aria-current="page"] { font-weight: 600; }
.primary-nav .btn { margin-left: 12px; }
.primary-nav a.btn-primary { color: #fff; }
.primary-nav a.btn-primary:hover { color: #fff; }
.primary-nav a.btn::after { display: none; }

/* Bouton burger */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* =========================================================
   05. PIED DE PAGE
   ========================================================= */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, .68);
  padding: clamp(52px, 7vw, 80px) 0 0;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 42px;
  padding-bottom: 46px;
}
.site-footer h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer a { color: rgba(255, 255, 255, .68); }
.site-footer a:hover { color: #fff; }
.footer-links { display: grid; gap: 11px; }
.footer-contact { display: grid; gap: 13px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 11px; }
.footer-contact .icon { width: 19px; height: 19px; color: var(--accent); margin-top: 3px; }
.footer-logo .logo-name { color: #fff; }
.footer-logo .logo-mark { color: var(--blue-400); }
.footer-logo .logo-title { color: rgba(255, 255, 255, .55); }
.footer-about { margin-top: 18px; max-width: 34ch; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 22px 0 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .87rem;
  color: rgba(255, 255, 255, .5);
}
.footer-bottom ul { display: flex; gap: 20px; flex-wrap: wrap; }

/* =========================================================
   06. HERO & BANDEAUX DE PAGE
   ========================================================= */
.hero {
  position: relative;
  min-height: min(84vh, 760px);
  display: flex;
  align-items: center;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 70% 80% at 82% 40%, #000, transparent 70%);
  pointer-events: none;
}
.hero-media { position: absolute; inset: 0; z-index: 0; border-radius: 0; }
.hero-media .media-hint { display: none; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 21, 30, .95) 12%, rgba(12, 21, 30, .74) 52%, rgba(12, 21, 30, .5) 100%);
  background-size: auto;
  z-index: 2;
}
.hero-inner {
  position: relative;
  z-index: 3;
  padding-top: clamp(80px, 11vw, 130px);
  padding-bottom: clamp(80px, 11vw, 130px);
}
.hero-content { max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: .85rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 26px;
}
.hero-kicker .icon { width: 16px; height: 16px; color: var(--accent); }
.hero-subtitle {
  font-size: clamp(1.03rem, 1.7vw, 1.2rem);
  color: rgba(255, 255, 255, .84);
  max-width: 62ch;
  margin-bottom: 34px;
  line-height: 1.7;
}
.hero-actions { margin-bottom: 44px; }
.hero-proof {
  display: flex;
  gap: clamp(26px, 5vw, 56px);
  flex-wrap: wrap;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero-proof div strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1.55rem;
  color: #fff;
  line-height: 1.2;
}
.hero-proof div span { font-size: .87rem; color: rgba(255, 255, 255, .62); }

/* Bandeau des pages intérieures */
.page-hero {
  position: relative;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 0 clamp(52px, 7vw, 84px);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 70% at 78% 30%, #000, transparent 72%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .lead { color: rgba(255, 255, 255, .8); max-width: 62ch; }

/* Fil d'Ariane */
.breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: .85rem;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255, 255, 255, .75); }
.breadcrumb a:hover { color: #fff; }

/* =========================================================
   07. CARTES & GRILLES
   ========================================================= */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Carte domaine (page d'accueil) */
.domain-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
  overflow: hidden;
  height: 100%;
}
.domain-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--navy-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.domain-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: transparent;
  text-decoration: none;
}
.domain-card:hover::before { transform: scaleX(1); }
.domain-card .icon {
  width: 46px;
  height: 46px;
  color: var(--navy-700);
  margin-bottom: 20px;
  transition: color .26s var(--ease);
}
.domain-card:hover .icon { color: var(--accent); }
.domain-card h3 { margin-bottom: 10px; }
.domain-card p { color: var(--muted); font-size: .96rem; margin-bottom: 18px; }
.domain-card .arrow-link { margin-top: auto; font-size: .92rem; }

/* Carte simple (engagements, chiffres…) */
.feature-card {
  padding: 28px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 100%;
}
.feature-card .icon { width: 34px; height: 34px; color: var(--accent); margin-bottom: 16px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .94rem; }
.section-dark .feature-card {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .12);
}
.section-dark .feature-card p { color: rgba(255, 255, 255, .72); }

/* Bloc image + texte */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}
.split.is-reverse .split-media { order: 2; }
.split.is-top { align-items: start; }

/* Bandeau CTA devis */
.cta-band {
  position: relative;
  background: linear-gradient(120deg, var(--navy-800), var(--navy-950));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 143, 63, .3), transparent 68%);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; margin-bottom: 10px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta-band p { color: rgba(255, 255, 255, .8); max-width: 54ch; margin: 0; }

/* Chiffres clés */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  text-align: center;
  padding: 26px 18px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.stat strong {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  color: var(--navy-800);
  line-height: 1.1;
}
.stat span { font-size: .88rem; color: var(--muted); }

/* =========================================================
   08. SECTIONS SPÉCIFIQUES
   ========================================================= */

/* --- Domaines : navigation latérale collante + sections --- */
.domains-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.domains-nav {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  display: grid;
  gap: 4px;
  padding: 18px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.domains-nav p {
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 4px 8px 10px;
}
.domains-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: .93rem;
  font-weight: 500;
  color: var(--navy-900);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.domains-nav a .icon { width: 21px; height: 21px; color: var(--navy-600); }
.domains-nav a:hover { background: var(--white); text-decoration: none; }
.domains-nav a.is-active { background: var(--navy-900); color: #fff; }
.domains-nav a.is-active .icon { color: var(--accent); }

.domain-block {
  padding: clamp(40px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--line);
}
.domain-block:first-child { padding-top: 0; }
.domain-block:last-child { border-bottom: 0; padding-bottom: 0; }
.domain-block-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 26px; }
.domain-block-head .icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  background: var(--navy-900);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.domain-block-head .icon-wrap .icon { width: 32px; height: 32px; color: var(--accent); }
.domain-number {
  font-family: var(--font-title);
  font-size: .82rem;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: .1em;
}
.domain-question {
  font-family: var(--font-title);
  font-size: clamp(1.1rem, 2vw, 1.32rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--navy-800);
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--blue-050);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 26px;
}
.domain-body { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(26px, 4vw, 48px); align-items: start; }

/* --- Savoir-faire : accordéons --- */
.accordion { display: grid; gap: 14px; }
.accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.accordion-item.is-open { border-color: var(--navy-700); box-shadow: var(--shadow-sm); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-title);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 600;
  color: var(--navy-900);
}
.accordion-trigger .icon { width: 30px; height: 30px; color: var(--navy-600); }
.accordion-trigger .step-num {
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent-dark);
  font-family: var(--font-base);
  letter-spacing: .08em;
}
.accordion-trigger .chevron {
  width: 20px;
  height: 20px;
  margin-left: auto;
  color: var(--muted);
  transition: transform .25s var(--ease);
}
.accordion-item.is-open .chevron { transform: rotate(180deg); }
.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.accordion-item.is-open .accordion-panel { grid-template-rows: 1fr; }
.accordion-panel > div { overflow: hidden; }
.accordion-panel .panel-inner { padding: 0 24px 26px 72px; }

/* --- Parcours client (timeline) --- */
.timeline { counter-reset: step; display: grid; gap: 0; }
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 24px;
  padding-bottom: 34px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 58px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--line), transparent);
}
.timeline-item:last-child::before { display: none; }
.timeline-num {
  counter-increment: step;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 2px solid var(--line);
  font-family: var(--font-title);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--navy-800);
  position: relative;
  z-index: 2;
}
.timeline-item:hover .timeline-num { border-color: var(--accent); color: var(--accent-dark); }
.timeline-content h3 { margin-bottom: 6px; padding-top: 12px; }
.timeline-content p { color: var(--muted); }
.section-dark .timeline-num { background: var(--navy-800); border-color: rgba(255, 255, 255, .2); color: #fff; }
.section-dark .timeline-content p { color: rgba(255, 255, 255, .72); }
.section-dark .timeline-item::before { background: linear-gradient(rgba(255, 255, 255, .22), transparent); }

/* --- Actualités --- */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.post-card .media { border-radius: 0; }
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.post-body h3 { font-size: 1.08rem; margin-bottom: 10px; }
.post-body p { color: var(--muted); font-size: .94rem; }

/* --- Encadré d'avertissement / cadre d'intervention --- */
.notice {
  display: flex;
  gap: 18px;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid rgba(47, 143, 63, .3);
}
.notice .icon { width: 26px; height: 26px; color: var(--accent-dark); margin-top: 2px; }
.notice h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--navy-900); }
.notice p { color: #2f5b36; font-size: .95rem; margin: 0; }

/* --- FAQ --- */
.faq { display: grid; gap: 12px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-title);
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--navy-900);
}
.faq-trigger .chevron { width: 18px; height: 18px; margin-left: auto; color: var(--accent-dark); transition: transform .25s var(--ease); }
.faq-item.is-open .chevron { transform: rotate(180deg); }
.faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s var(--ease); }
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-panel > div { overflow: hidden; }
.faq-panel p { color: var(--muted); padding: 0 34px 22px 0; margin: 0; }

/* =========================================================
   09. RÉFÉRENCES (portfolio filtrable)
   ========================================================= */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-btn {
  padding: 9px 19px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-base);
  font-size: .9rem;
  font-weight: 500;
  color: var(--navy-900);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.filter-btn:hover { border-color: var(--navy-600); }
.filter-btn.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  height: 100%;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-card .media { border-radius: 0; }
.project-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.project-body h3 { font-size: 1.06rem; margin-bottom: 8px; }
.project-body p { color: var(--muted); font-size: .93rem; }
.project-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; }
.project-tags span {
  font-size: .76rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
}
.project-card.is-hidden { display: none; }
.load-more-wrap { text-align: center; margin-top: 44px; }
.empty-state { text-align: center; color: var(--muted); padding: 40px 0; }

/* Galerie de livrables */
.deliverable {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}
.deliverable figcaption {
  padding: 16px 20px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--navy-900);
}
.deliverable figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: .86rem; }

/* =========================================================
   10. CONTACT & FORMULAIRES
   ========================================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.is-full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--navy-900); }
.field label .req { color: var(--accent-dark); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-base);
  font-size: .97rem;
  color: var(--ink);
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 4px rgba(45, 70, 92, .13);
}
.field .hint { font-size: .82rem; color: var(--muted); }

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .89rem;
  color: var(--muted);
  line-height: 1.6;
}
.checkbox input { width: 19px; height: 19px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); }

.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: .93rem;
  margin-bottom: 18px;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: #e8f6ee; color: #1b6b3f; border: 1px solid #bfe6cf; }
.form-status.is-error { background: #fdeaea; color: #9b2121; border: 1px solid #f3c6c6; }

/* Coordonnées */
.contact-info { display: grid; gap: 16px; }
.contact-tile {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.contact-tile .icon { width: 24px; height: 24px; color: var(--accent); margin-top: 3px; }
.contact-tile h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-tile p, .contact-tile a { color: var(--muted); font-size: .95rem; margin: 0; }
.contact-tile a:hover { color: var(--accent-dark); }

/* Newsletter */
.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter-form input { flex: 1 1 240px; }

/* Pages légales */
.legal-content h2 { margin-top: 2em; }
.legal-content ul { list-style: disc; padding-left: 22px; color: var(--muted); }
.legal-content li { margin-bottom: 8px; }

/* =========================================================
   11. ANIMATIONS & ACCESSIBILITÉ
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   12. RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .domains-layout { grid-template-columns: 1fr; }
  .domains-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 12px;
  }
  .domains-nav p { display: none; }
  .domains-nav a { white-space: nowrap; }
}

@media (max-width: 920px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .domain-body { grid-template-columns: 1fr; }

  /* Menu mobile */
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed;
    inset: calc(var(--header-h)) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 26px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .primary-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .primary-nav a { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .primary-nav a::after { display: none; }
  .primary-nav a[aria-current="page"] { color: var(--accent-dark); }
  .primary-nav .btn { margin: 18px 0 0; border-bottom: 0; border-radius: 999px; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .split, .split.is-reverse .split-media { grid-template-columns: 1fr; order: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-proof { gap: 24px; }
  .hero-proof div { flex: 1 1 40%; }
  .btn { width: 100%; }
  .btn-group .btn { width: auto; flex: 1 1 100%; }
  .topbar-list { gap: 14px; font-size: .8rem; }
  .cta-band { flex-direction: column; align-items: flex-start; text-align: left; }
  .accordion-panel .panel-inner { padding: 0 20px 24px; }
  .domain-block-head { flex-direction: column; gap: 14px; }
  .timeline-item { grid-template-columns: 48px 1fr; gap: 16px; }
  .timeline-num { width: 46px; height: 46px; font-size: 1.05rem; }
  .timeline-item::before { left: 23px; top: 50px; }
  .timeline-content h3 { padding-top: 8px; }
}

@media print {
  .site-header, .topbar, .nav-toggle, .cta-band, .site-footer { display: none; }
  body { font-size: 12pt; }
}
