/* ============ Tokens : charte graphique DKE (thème sombre unique) ============ */
:root {
  color-scheme: dark;       /* barres de défilement, champs de formulaire, etc. */

  /* Les trois couleurs de la charte : à modifier ici uniquement */
  --c-primary: #274082;      /* couleur primaire */
  --c-secondary: #f68712;    /* couleur secondaire */
  --c-complement: #151f42;   /* complémentaire, version sombre : fonds de cartes et sections */

  --navy: var(--c-primary);
  --orange: var(--c-secondary);
  --surface: var(--c-complement);

  /* Teintes dérivées */
  --navy-deep: #182a57;      /* pied de page, bandeaux d'appel à l'action */
  --on-orange: #161d33;      /* texte sur fond orange */
  --bg: #0e1630;
  --ink: #e9edf8;
  --muted: #a6b0d0;
  --line: #28345f;
  --heading: #b9c9ff;

  --font-display: 'Archivo Black', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Aileron', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-ui: 'Barlow', 'Helvetica Neue', Arial, sans-serif;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html { scroll-padding-top: env(safe-area-inset-top, 0px); }

/* Polices : titres Archivo Black, sous-titres et corps Aileron, en-tête / pied de page / coordonnées Barlow.
   Aileron est auto-hébergée : voir public/assets/fonts/LISEZMOI.txt */
@font-face {
  font-family: 'Aileron'; font-weight: 400; font-style: normal; font-display: swap;
  src: local('Aileron Regular'), local('Aileron-Regular'),
       url('/assets/fonts/Aileron-Regular.woff2') format('woff2'),
       url('/assets/fonts/Aileron-Regular.otf') format('opentype');
}
@font-face {
  font-family: 'Aileron'; font-weight: 600; font-style: normal; font-display: swap;
  src: local('Aileron SemiBold'), local('Aileron-SemiBold'),
       url('/assets/fonts/Aileron-SemiBold.woff2') format('woff2'),
       url('/assets/fonts/Aileron-SemiBold.otf') format('opentype');
}
@font-face {
  font-family: 'Aileron'; font-weight: 700; font-style: normal; font-display: swap;
  src: local('Aileron Bold'), local('Aileron-Bold'),
       url('/assets/fonts/Aileron-Bold.woff2') format('woff2'),
       url('/assets/fonts/Aileron-Bold.otf') format('opentype');
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-synthesis: none; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.08;
  margin: 0;
  font-weight: 800;
}
h1, h2 { font-weight: 400; line-height: 1.12; overflow-wrap: break-word; }
h3 { font-family: var(--font-body); font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 0; background: var(--orange); color: var(--on-orange);
  padding: .6rem 1rem; font-weight: 600; z-index: 100;
}
.skip:focus { left: 0; }
address { font-style: normal; }

/* ============ Logo ============ */
.logo { display: inline-flex; align-items: center; text-decoration: none; line-height: 1; }
.logo-img { display: block; height: 3.75rem; width: auto; }
/* Fond sombre partout : toutes les images de logo utilisent la variante claire (blanc + orange) */
.logo-img { content: url('/assets/logo-dke-clair.png'); }
.site-footer .logo-img { height: 4.25rem; }

/* Ancien logotype texte (conservé au cas où) */
.logo-mark {
  display: inline-flex; align-items: flex-end; gap: .1em;
  font-family: var(--font-display); font-weight: 900; font-stretch: 125%;
  font-size: 2.1rem; color: var(--heading); letter-spacing: -.02em;
}
.logo-mark i { width: .3em; height: .3em; background: var(--orange); display: block; margin-bottom: .1em; }
.logo-sub {
  font-family: var(--font-display); font-weight: 800; font-size: .53rem;
  letter-spacing: -.005em; color: var(--orange); margin-top: .28rem; white-space: nowrap;
}
.logo--light .logo-mark { color: #fff; }

/* ============ En-tête ============ */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 5.25rem; }
.nav ul { display: flex; gap: 2.25rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-block; padding: .4rem 0; text-decoration: none; font-weight: 600;
  font-size: 1.05rem; letter-spacing: .01em;
  border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.menu-btn {
  display: none; background: none; border: 2px solid var(--line); color: var(--ink);
  padding: .5rem .8rem; font: inherit; font-weight: 600; cursor: pointer;
}

/* En-tête, pied de page, coordonnées : Barlow */
.site-header, .site-footer, .coords { font-family: var(--font-ui); }

/* ============ Boutons ============ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--orange);
  color: var(--on-orange);
  border: 2px solid var(--orange);
}
.btn-primary:hover {
  background: #ffa726;
  border-color: #ffa726;
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-ghost:hover {
  background: #fff;
  color: #2f4585;
}
.btn-outline { border: 2px solid var(--heading); color: var(--heading); }
.btn-outline:hover { background: var(--surface); }

/* Survol des boutons orange : le secondaire éclairci */
@supports (background: color-mix(in srgb, red, blue)) {
  .btn-primary:hover {
    background: color-mix(in srgb, var(--c-secondary) 88%, #fff);
    border-color: color-mix(in srgb, var(--c-secondary) 88%, #fff);
  }
}

/* ============ Bandeau d'ouverture : coupe en diagonale ============ */
.hero-wrap { background: var(--orange); }
.hero {
  position: relative; overflow: hidden; background: var(--navy); color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5vw), 0 100%);
  padding: clamp(4rem, 9vw, 7.5rem) 0 calc(clamp(4rem, 9vw, 7.5rem) + 5vw);
}
/* Symbole de la marque en filigrane */
.hero-mark {
  position: absolute; top: 50%; transform: translateY(-50%) rotate(-7deg);
  font-size: 0; line-height: 0; color: transparent;
  width: clamp(20rem, 58vw, 50rem); aspect-ratio: 3243 / 1477; height: auto;
  right: -6vw;
  background: rgba(255, 255, 255, .07);
  -webkit-mask: url('/assets/symbole-dke.svg') center / contain no-repeat;
  mask: url('/assets/symbole-dke.svg') center / contain no-repeat;
  pointer-events: none; user-select: none;
}
.hero .wrap { position: relative; }
.hero h1 {
  color: #fff; font-weight: 900; font-stretch: 110%;
  font-size: clamp(1.9rem, 4.8vw, 3.8rem); max-width: 19ch; letter-spacing: -.01em;
}
.hero-lead { margin-top: 1.5rem; max-width: 54ch; font-size: 1.2rem; color: rgba(255,255,255,.88); }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .9rem; }
.section .hero-actions { margin-top: 0; }
.hero.hero--compact { padding: clamp(3rem, 6vw, 5rem) 0 calc(clamp(3rem, 6vw, 5rem) + 4vw); }
.hero.hero--compact h1 { font-size: clamp(1.8rem, 4.2vw, 3.2rem); max-width: 22ch; }
.hero.hero--compact .hero-mark { width: clamp(14rem, 40vw, 34rem); font-size: 0; }

/* ============ Sections ============ */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--alt { background: var(--surface); }
.section h2 { font-size: clamp(1.5rem, 3.1vw, 2.3rem); font-stretch: 105%; }
.section-intro { margin-top: 1rem; max-width: 60ch; color: var(--muted); }

/* Trois expertises : trois aplats de la charte */
.domains { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2.5rem; }
.tile { display: flex; flex-direction: column; padding: 2.25rem; min-height: 22rem; }
.tile h3 { color: inherit; font-size: 1.4rem; font-stretch: 105%; margin: 1.5rem 0 .9rem; }
.tile p {
  text-align: justify;
  hyphens: auto;
  text-wrap: pretty;
}
.tile a { margin-top: auto; padding-top: 1.75rem; font-weight: 700; text-underline-offset: .25em; }
.tile svg { width: 3rem; height: 3rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; }
.tile--blue { background: var(--navy); color: #fff; }
.tile--grey { background: var(--surface); color: var(--ink); }
.tile--grey h3 { color: var(--heading); }
.tile--orange { background: var(--orange); color: var(--on-orange); }
.tile--orange h3 { color: var(--on-orange); }
.tile--orange a:focus-visible { outline-color: var(--navy-deep); }

/* Pourquoi DKE */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.reasons { display: grid; gap: 1.75rem; }
.reasons h3 { font-size: 1.15rem; font-stretch: 100%; margin-bottom: .35rem; }
.reasons p {
  text-align: justify;
  hyphens: auto;
  text-wrap: pretty;
  color: var(--muted);
}
.reasons > div { padding-left: 1.4rem; border-left: 4px solid var(--orange); }

/* Méthode : séquence numérotée */
.steps { list-style: none; margin: 2.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.steps li { position: relative; padding-top: 3.6rem; border-top: 3px solid var(--line); counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; top: -3px; left: 0; width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center; background: var(--navy); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
}
.steps h3 { font-size: 1.1rem; font-stretch: 100%; margin-bottom: .4rem; }
.steps p { color: var(--muted); font-size: 1rem; }

/* Bandeau d'appel à l'action */
.cta { background: var(--navy-deep); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; border-top: 6px solid var(--orange); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta h2 { color: #fff; font-size: clamp(1.35rem, 2.8vw, 2rem); max-width: 26ch; }

/* ============ Page Expertises ============ */
.domain {
  display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 5.5rem;
}
.domain:last-child { border-bottom: 0; }
.badge { width: 5.5rem; height: 5.5rem; display: grid; place-items: center; }
.badge svg { width: 2.9rem; height: 2.9rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; }
.badge--blue { background: var(--navy); color: #fff; }
.badge--orange { background: var(--orange); color: var(--on-orange); }
.badge--grey { background: var(--surface); color: var(--heading); border: 2px solid var(--heading); }
.domain h2 { margin-top: 1.5rem; font-size: clamp(1.3rem, 2.4vw, 1.85rem); font-stretch: 105%; }
.domain-body > p { max-width: 62ch; font-size: 1.1rem; }
.services { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem 2rem; }
.services li { position: relative; padding-left: 1.4rem; }
.services li::before { content: ""; position: absolute; left: 0; top: .6em; width: .6rem; height: .6rem; background: var(--orange); }

/* ============ Page Équipe ============ */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem 1.5rem; margin-top: 2.5rem; }
.photo { aspect-ratio: 4 / 5; display: grid; place-items: end center; overflow: hidden; }
.photo svg { width: 78%; height: auto; fill: currentColor; opacity: .9; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo--blue { background: var(--navy); color: #7f95d1; }
.photo--orange { background: var(--orange); color: #b85f00; }
.photo--grey { background: var(--surface); color: #5a6794; border: 1px solid var(--line); }
.member h3 { margin-top: 1rem; font-size: 1.2rem; font-stretch: 100%; }
.member .role { margin-top: .2rem; font-weight: 600; color: var(--ink); }
.member .desc { margin-top: .4rem; color: var(--muted); font-size: .98rem; }
.member .role::before { content: ""; display: inline-block; width: .55rem; height: .55rem; background: var(--orange); margin-right: .55rem; }

/* ============ Page Contact ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.coords { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1.4rem; }
.coords li { display: flex; gap: 1rem; align-items: flex-start; }
.coords .ico { flex: none; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; background: var(--orange); color: var(--on-orange); }
.coords svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; }
.coords small { display: block; color: var(--muted); font-size: .9rem; }
.coords a { font-weight: 600; text-underline-offset: .2em; word-break: break-word; }
.form { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 2px solid var(--line); padding: .8rem .9rem; border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); outline-offset: 2px; }
.field textarea { min-height: 9rem; resize: vertical; }
.form-note { grid-column: 1 / -1; color: var(--muted); font-size: .95rem; }
.form-status { grid-column: 1 / -1; padding: .9rem 1rem; border-left: 4px solid var(--orange); background: var(--surface); }
.form-status[hidden] { display: none; }

/* ============ Pied de page ============ */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.85); padding: 3rem 0 2rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot h2 { font-family: var(--font-ui); font-weight: 700; letter-spacing: .02em; font-size: 1rem; color: #fff; font-stretch: 100%; margin-bottom: .8rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.foot a { text-underline-offset: .2em; }
.foot .about { margin-top: 1rem; max-width: 36ch; font-size: .98rem; }
.legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .9rem; }

/* ============ Page Nous rejoindre ============ */
.wanted { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.wanted-item { padding-top: 1.25rem; border-top: 4px solid var(--orange); }
.wanted-item h3 { font-size: 1.2rem; font-stretch: 100%; margin-bottom: .5rem; }
.wanted-item p { color: var(--muted); }
.wanted-note { margin-top: 2rem; max-width: 62ch; }

.openings-empty { margin-top: 1.75rem; max-width: 62ch; padding: 1.5rem 1.75rem; background: var(--bg); border-left: 6px solid var(--orange); }
.opening { margin-top: 1.5rem; padding: 1.75rem; display: grid; gap: .6rem; justify-items: start; background: var(--bg); border-left: 6px solid var(--navy); }
.opening h3 { font-size: 1.3rem; font-stretch: 100%; }
.opening-meta { color: var(--muted); font-weight: 600; }

#candidature { scroll-margin-top: 5.5rem; }
.howto { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.1rem; counter-reset: how; }
.howto li { position: relative; min-height: 2.25rem; padding-left: 3.2rem; counter-increment: how; }
.howto li::before {
  content: counter(how); position: absolute; left: 0; top: 0; width: 2.25rem; height: 2.25rem;
  display: grid; place-items: center; background: var(--navy); color: #fff;
  font-family: var(--font-display); font-weight: 800;
}
.howto + .form-note { margin-top: 1.75rem; }

/* ============ Page Formation ============ */
.fdomains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.fdomain { padding: 1.75rem; background: var(--surface); border-top: 6px solid var(--orange); }
.fdomain--blue { border-top-color: var(--navy); }
.fdomain--grey { border-top-color: var(--heading); }
.fdomain h3 { font-size: 1.25rem; }
.fdomain ul { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.fdomain li { position: relative; padding-left: 1.2rem; }
.fdomain li::before { content: ""; position: absolute; left: 0; top: .6em; width: .5rem; height: .5rem; background: var(--orange); }
.fnote { margin-top: 1.5rem; }
#demande { scroll-margin-top: 5.5rem; }

/* ============ Expertise transversale (page Expertises) ============ */
#accompagnement { scroll-margin-top: 5.5rem; }
#accompagnement .services { grid-template-columns: repeat(3, 1fr); max-width: none; }
.caps-heading { text-transform: uppercase; letter-spacing: .03em; }

/* ============ Page À propos : repères d'ancres ============ */
#en-bref, #missions, #valeurs, #piliers, #mot-dg, #realisations { scroll-margin-top: 5.5rem; }
#mot-du-directeur, #qui-sommes-nous, #ce-que-nous-faisons, #principes, #expertise-resultats { scroll-margin-top: 5.5rem; }

/* Anciennes sections (chiffres clés, missions, valeurs) */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2.5rem; text-align: center; }
.stat { display: flex; flex-direction: column; gap: .3rem; }
.stat-number { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); color: var(--heading); }
.stat-label { font-family: var(--font-ui); font-weight: 600; color: var(--muted); }

#missions .services { grid-template-columns: 1fr; max-width: 62ch; gap: .75rem; }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2.5rem; }
.value-card { padding: 1.5rem; background: var(--surface); border-top: 6px solid var(--orange); }
.value-card--blue { border-top-color: var(--navy); }
.value-card--grey { border-top-color: var(--heading); }
.value-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.value-card p { color: var(--muted); font-size: .98rem; }

.dg-portrait { max-width: 220px; }
.dg-portrait h3 { margin-top: 1rem; font-size: 1.1rem; }
.dg-portrait .role { margin-top: .2rem; font-weight: 600; }
.dg-quote p {
  margin-top: 1.5rem; font-size: 1.15rem; font-style: italic; color: var(--ink);
  padding-left: 1.75rem; border-left: 4px solid var(--orange);
}

.realisation-tag { font-weight: 700; color: var(--orange); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: .4rem; }

/* DKE en bref */
.bref-text { max-width: 68ch; font-size: 1.05rem; color: var(--ink); margin-top: 1.5rem; }

/* Le mot du DG (version dépliable <details>) */
.dg-header { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2rem; }
.dg-header .photo { width: 4.5rem; height: 4.5rem; aspect-ratio: 1; flex: none; }
.dg-header h2 { margin-bottom: .3rem; }
.dg-author { font-weight: 600; color: var(--muted); }
.dg-letter { max-width: 68ch; }
.dg-lead {
  font-size: 1.15rem; font-style: italic; color: var(--ink); line-height: 1.7;
  padding-left: 1.75rem; border-left: 4px solid var(--orange);
}
.dg-more { margin-top: 1.25rem; padding-left: 1.75rem; }
.dg-more summary { cursor: pointer; font-weight: 700; color: var(--heading); list-style: none; }
.dg-more summary::-webkit-details-marker { display: none; }
.dg-more summary::after { content: " +"; color: var(--orange); }
.dg-more[open] summary::after { content: " −"; }
.dg-more p { margin-top: 1rem; color: var(--ink); line-height: 1.7; }
.dg-signature { margin-top: 1.5rem; padding-left: 1.75rem; font-weight: 600; color: var(--muted); }

/* ===== Page À propos : contenu final ===== */
.ap-sec p {
  text-align: justify; text-justify: inter-word;
  hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word;
}

/* 1. Le mot du Directeur Général */
.ap-dg { --fade-bg: var(--surface); }  /* identique au fond de la section (section--alt) */
.ap-dg-grid { display: grid; grid-template-columns: minmax(12rem, 18rem) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.ap-dg-photo { margin: 0; position: sticky; top: 7rem; }
.ap-dg-photo figcaption { margin-top: 1rem; display: grid; gap: .15rem; }
.ap-dg-name { font-weight: 700; color: var(--heading); }
.ap-dg-role { font-weight: 600; color: var(--muted); }
.ap-dg-body h2 { margin-bottom: 1.5rem; }
.ap-sec .ap-dg-lead {
  font-family: var(--font-display); font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.3;
  color: var(--heading); text-align: left; hyphens: manual; -webkit-hyphens: manual;
  padding-left: 1.5rem; border-left: 6px solid var(--orange); margin-bottom: 1.5rem;
}
.ap-dg-text p + p { margin-top: 1rem; }
.ap-sec .ap-dg-signature { margin-top: 1.5rem; font-weight: 700; color: var(--heading); text-align: left; }
.ap-dg-text.is-collapsible { max-height: 27rem; overflow: hidden; position: relative; }
.ap-dg-text.is-collapsible::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7rem; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--fade-bg));
}
.ap-dg-text.is-collapsible.is-open { max-height: none; overflow: visible; }
.ap-dg-text.is-collapsible.is-open::after { display: none; }
.ap-dg-actions { margin-top: 1.25rem; }
.ap-dg-toggle[hidden] { display: none; }

/* 2. Qui sommes-nous ? */
.ap-prose p + p { margin-top: 1rem; }

/* 3. Ce que nous faisons */
.ap-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.ap-list li {
  display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: 1.5rem; align-items: baseline;
  padding: 1.25rem 0; border-top: 1px solid var(--line);
}
.ap-list li:last-child { border-bottom: 1px solid var(--line); }
.ap-verb { font-family: var(--font-body); font-weight: 700; font-size: 1.25rem; color: var(--heading); line-height: 1.2; }

/* 4. Les principes */
.ap-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 2.5rem; }
.ap-card { padding: 1.75rem; background: var(--surface); border-top: 6px solid var(--navy); }
.ap-card--orange { border-top-color: var(--orange); }
.ap-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }

/* 5. De l'expertise aux résultats */
.ap-flow { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: flow; }
.ap-flow li { position: relative; padding: 4.25rem 1.5rem 1.75rem; background: var(--bg); border-top: 6px solid var(--navy); counter-increment: flow; }
.ap-flow li::before {
  content: counter(flow); position: absolute; top: 1.1rem; left: 1.5rem; width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center; background: var(--orange); color: var(--on-orange);
  font-family: var(--font-display);
}
.ap-flow-label { display: block; font-size: .85rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.ap-flow h3 { font-size: 1.5rem; margin: .25rem 0 .75rem; }

/* ============ Responsive ============ */
@media (min-width: 761px) and (max-width: 1060px) {
  .nav ul { gap: 1.4rem; }
}
@media (max-width: 960px) {
  .domains { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .split, .contact-grid, .domain { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
  .wanted { grid-template-columns: 1fr; }
  .fdomains { grid-template-columns: 1fr; }
  #accompagnement .services { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .ap-flow { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem; }
  .nav a { display: block; padding: .8rem 0; }
  .services, .form { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-mark { opacity: .8; }
  .logo-img { height: 3.1rem; }
  .site-footer .logo-img { height: 3.6rem; }
  .bar { min-height: 4.5rem; }
  #accompagnement .services { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .ap-dg-grid { grid-template-columns: 1fr; }
  .ap-dg-photo { position: static; max-width: 12rem; }
  .ap-list li { grid-template-columns: 1fr; gap: .35rem; }
  .ap-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .values-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .wrap > * { animation: rise .7s ease both; }
  .hero .wrap > *:nth-child(2) { animation-delay: .08s; }
  .hero .wrap > *:nth-child(3) { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
