/* ==========================================================================
   STELYCE — feuille de style principale
   Charte : bleu #3C507D, orange #F9B122 (accents uniquement)
   ========================================================================== */

:root {
  --blue: #3C507D;
  --blue-light: #5372AA;
  --blue-deep: #2E3E63;
  --orange: #F9B122;
  --sand: #FAD491;
  --ink: #141414;
  --grey: #BCBCBC;
  --text: #3a4256;
  --muted: #474d60;
  --line: #E4E3DE;
  --paper: #FFFFFF;
  --paper-warm: #F6F5F1;

  --font: "Inter Tight", "Pragmatica", Arial, sans-serif;
  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

/* --- Accessibilité --------------------------------------------------------- */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 14px 22px; background: var(--blue-deep); color: #fff;
  font-weight: 600; font-size: 15px;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
/* Contour de focus très visible (WCAG 2.4.13) */
:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; }
.footer :focus-visible, .cta :focus-visible, .section--blue :focus-visible,
.hero--cover :focus-visible, .skip-link:focus-visible { outline-color: #fff; }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--blue); font-weight: 300; letter-spacing: -0.025em; line-height: 1.05; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* --- Étiquettes (eyebrow) --------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: ""; width: 36px; height: 12px; flex: none;
  border-left: 1.5px solid var(--orange); border-bottom: 1.5px solid var(--orange);
  border-bottom-left-radius: 12px; transform: translateY(-3px);
}
.eyebrow--light { color: #fff; }

.label {
  font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}

/* --- Boutons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 17px 28px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  background: var(--blue); color: #fff; border: 1px solid var(--blue);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn::after {
  content: ""; width: 18px; height: 1px; background: var(--orange);
  transition: width .35s var(--ease);
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn:hover::after { width: 28px; }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: #fff; }
.btn--light { background: #fff; color: var(--blue); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }

.link {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--blue);
}
.link::after { content: ""; width: 22px; height: 1px; background: var(--orange); transition: width .35s var(--ease); }
.link:hover::after { width: 40px; }

/* --- En-tête --------------------------------------------------------------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.logo { display: block; width: 150px; color: var(--blue); }
.logo svg { width: 100%; height: auto; display: block; }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 38px); }
.nav a {
  position: relative; font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--blue);
  padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0; background: var(--orange);
  transition: width .35s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav .btn { padding: 13px 20px; font-size: 11px; color: #fff; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 1.5px; background: var(--blue); margin: 6px 0; transition: transform .3s var(--ease), opacity .3s; }

/* --- Hero ------------------------------------------------------------------ */
.hero { padding: clamp(56px, 8vw, 120px) 0 0; }
.hero__top {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: end;
}
.hero h1 {
  margin-top: 28px;
  font-size: clamp(44px, 6.6vw, 104px);
  line-height: .98; letter-spacing: -0.045em; font-weight: 300;
}
.hero h1 em { font-style: normal; color: var(--blue-light); }
.hero__lead { margin-top: 36px; max-width: 620px; font-size: 18px; color: var(--muted); }
.hero__aside { padding-bottom: 10px; }
.hero__aside p { font-size: 15px; color: var(--muted); max-width: 340px; margin-bottom: 28px; }

.hero__media { margin-top: clamp(48px, 7vw, 96px); position: relative; }
.hero__media img { width: 100%; height: clamp(360px, 52vw, 720px); object-fit: cover; }
/* Variante « couverture » : photo plein cadre, texte posé dessus */
.hero--cover {
  position: relative; overflow: hidden; padding: 0;
  min-height: clamp(620px, 88vh, 920px); display: flex; align-items: flex-end;
  background: var(--blue-deep);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; }
.hero--cover::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(30,42,70,.86) 0%, rgba(30,42,70,.62) 50%, rgba(30,42,70,.48) 100%),
    linear-gradient(180deg, rgba(30,42,70,0) 40%, rgba(30,42,70,.55) 100%);
}
.hero__content { position: relative; z-index: 1; padding-block: clamp(120px, 14vw, 200px) clamp(64px, 8vw, 112px); }
.hero--cover h1 { color: #fff; }
.hero--cover h1 em { color: var(--sand); }
.hero--cover .hero__lead { color: #fff; }
.hero--cover .hero__aside p { color: #fff; }
.hero__caption {
  margin-top: clamp(56px, 7vw, 96px); padding: 20px 0 24px;
  border-top: 1px solid rgba(255,255,255,.28); color: #fff;
}
.hero--cover .hero__caption, .hero--cover .hero__caption span:last-child { color: #fff; }

.caption {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 18px 0 0;
  font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--blue);
}
.caption span:last-child { color: var(--muted); }

/* --- Sections -------------------------------------------------------------- */
.section { padding: var(--section) 0; }
.section--warm { background: var(--paper-warm); }
.section--tight { padding-top: 0; }

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 120px); align-items: start;
}
.h2 { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.035em; margin-top: 26px; }
.prose { font-size: 18px; color: var(--text); }
.prose p { margin-bottom: 1.5em; }
.prose strong { color: var(--blue); font-weight: 600; }

.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.section-head .h2 { max-width: 760px; }

/* --- Chiffres clés --------------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--line);
}
.stat { padding: 36px 32px 0 0; }
.stat + .stat { padding-left: 32px; border-left: 1px solid var(--line); }
.stat__value {
  font-size: clamp(44px, 4.8vw, 74px); font-weight: 200; letter-spacing: -0.04em; line-height: 1; color: var(--blue);
  white-space: nowrap;
}
.stat__value small { font-size: .42em; font-weight: 300; letter-spacing: -0.01em; margin-left: 6px; }
.stat__label { margin-top: 18px; }

/* --- Expertises ------------------------------------------------------------ */
.expertises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--blue); }
.expertise { padding: 32px 28px 8px 0; }
.expertise + .expertise { padding-left: 28px; border-left: 1px solid var(--line); }
.expertise__num { font-size: 12px; font-weight: 600; letter-spacing: .18em; color: var(--orange); }
.expertise h3 { margin: 22px 0 18px; font-size: 24px; line-height: 1.15; font-weight: 400; letter-spacing: -0.02em; }
.expertise p { font-size: 15.5px; color: var(--muted); }

.contracts {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: clamp(56px, 6vw, 88px); padding-top: 28px; border-top: 1px solid var(--line);
}
.contracts ul { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 0; padding: 0; list-style: none; }
.contracts li { font-size: 14px; color: var(--blue); }
.contracts li b { font-weight: 600; letter-spacing: .06em; margin-right: 8px; }

/* --- Bande image ----------------------------------------------------------- */
.band { position: relative; }
.band img { width: 100%; height: clamp(320px, 44vw, 620px); object-fit: cover; }
.band__quote {
  position: absolute; left: var(--gutter); bottom: clamp(24px, 4vw, 56px);
  max-width: 560px; padding: clamp(28px, 3.4vw, 48px);
  background: #fff;
  border-top-right-radius: 64px;
}
.band__quote p { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; letter-spacing: -0.02em; color: var(--blue); font-weight: 300; }

/* --- Typologies ------------------------------------------------------------ */
.assets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.asset { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); }
.asset:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.asset h3 { font-size: 22px; font-weight: 400; letter-spacing: -0.015em; }
.asset p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* --- Index des références -------------------------------------------------- */
.refs { border-top: 1px solid var(--blue); }
.ref {
  display: grid;
  grid-template-columns: 56px minmax(0, 2fr) minmax(0, 1.6fr) minmax(0, 1.4fr) 120px 90px;
  gap: 24px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--line);
  transition: padding .4s var(--ease), background .4s var(--ease);
}
.ref:hover { padding-left: 16px; padding-right: 16px; background: var(--paper-warm); }
.ref__num { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--orange); }
.ref__name { font-size: clamp(20px, 1.9vw, 26px); color: var(--blue); letter-spacing: -0.02em; font-weight: 400; }
.ref__meta { font-size: 15px; color: var(--muted); }
.ref__surface { font-size: 15px; color: var(--blue); text-align: right; white-space: nowrap; }
.ref__year { font-size: 13px; letter-spacing: .1em; color: var(--muted); text-align: right; }
.refs-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 40px; }

/* --- Équipe (teaser) ------------------------------------------------------- */
.team-teaser { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.team-teaser__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-top-right-radius: clamp(48px, 7vw, 120px); }
.team-teaser .prose { margin-top: 28px; }
.team-teaser .link { margin-top: 20px; }

/* --- Appel à l'action ------------------------------------------------------ */
.cta { background: var(--blue-deep); color: #fff; padding: clamp(88px, 10vw, 150px) 0; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; right: -90px; top: -140px; width: 380px; height: 500px;
  border: 1.5px solid rgba(249,177,34,.6); border-radius: 0 220px 0 220px;
}
.cta__inner { position: relative; display: flex; justify-content: space-between; align-items: end; gap: 48px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(36px, 4.8vw, 72px); max-width: 860px; margin-top: 26px; }
.cta h2 em { font-style: normal; color: var(--sand); }

/* --- Pied de page ---------------------------------------------------------- */
.footer { background: var(--blue-deep); color: rgba(255,255,255,.86); padding: 88px 0 36px; font-size: 14.5px; }
.footer .logo { width: 170px; color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4, .footer__title { color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 20px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a:hover { color: #fff; }
.footer__tagline { margin-top: 22px; color: var(--sand); font-size: 14px; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 72px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: 13px; color: rgba(255,255,255,.82);
}
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* --- Apparition au défilement ---------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .expertises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .expertise:nth-child(3) { padding-left: 0; border-left: 0; }
  .expertise:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
  .ref { grid-template-columns: 44px minmax(0, 1.6fr) minmax(0, 1.4fr) 110px; }
  .ref__type, .ref__year { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 88px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    padding: 12px var(--gutter) 32px; background: #fff; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .3s ease, transform .3s var(--ease), visibility .3s;
  }
  .nav a { width: 100%; padding: 16px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 24px; width: auto; border-bottom: 0; padding: 16px 24px; }
  .header.is-open .nav { opacity: 1; transform: none; visibility: visible; }
  .header.is-open .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .header.is-open .burger span:nth-child(2) { opacity: 0; }
  .header.is-open .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .hero__top, .split, .team-teaser { grid-template-columns: 1fr; }
  .hero__aside { padding-bottom: 0; }
  .assets { grid-template-columns: 1fr 1fr; }
  .asset:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .asset:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header__inner { height: 72px; }
  .nav { inset: 72px 0 auto 0; }
  .logo { width: 124px; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .expertises, .assets { grid-template-columns: 1fr; }
  .expertise, .expertise + .expertise { padding: 28px 0 8px; border-left: 0; margin-top: 0; }
  .expertise + .expertise { border-top: 1px solid var(--line); }
  .asset, .asset:nth-child(even) { padding-left: 0; border-left: 0; }
  .ref { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .ref__num { display: none; }
  .ref__meta { grid-column: 1 / -1; order: 3; }
  .ref:hover { padding-left: 0; padding-right: 0; background: none; }
  .band__quote { position: static; max-width: none; border-radius: 0; padding: 32px var(--gutter) 0; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PAGES INTÉRIEURES
   ========================================================================== */

/* --- Textes justifiés ------------------------------------------------------ */
.prose p, .hero__lead, .page-hero__lead, .member__bio, .service__intro, .expertise p, .value p,
.skill p, .asset p, .mission p, .legal p, .callout p, .band__quote p:not(.eyebrow) {
  text-align: left; -webkit-hyphens: manual; hyphens: manual;
}

/* --- Marqueurs (remplacent les numéros) ------------------------------------ */
.value__num, .expertise__num, .ref__num, .mission__num {
  display: block; width: 22px; height: 2px; background: var(--orange); font-size: 0;
}
.ref__num, .mission__num { align-self: center; }
.card, [id] { scroll-margin-top: 110px; }

/* --- En-tête de page ------------------------------------------------------- */
.page-hero { padding: clamp(56px, 8vw, 120px) 0 clamp(56px, 7vw, 104px); }
.page-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: end;
}
.page-hero h1 { margin-top: 28px; font-size: clamp(42px, 6vw, 92px); line-height: 1; letter-spacing: -0.045em; }
.page-hero h1 em { font-style: normal; color: var(--blue-light); }
.page-hero__lead { font-size: 18px; color: var(--muted); max-width: 460px; }
.page-media img { width: 100%; height: clamp(300px, 42vw, 600px); object-fit: cover; }
.page-media--round img { border-top-right-radius: clamp(56px, 8vw, 140px); }

/* --- Listes numérotées (cœur de métier, engagements) ----------------------- */
.numbered { list-style: none; margin: 0; padding: 0; counter-reset: n; border-top: 1px solid var(--line); }
.numbered li {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px;
  padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--text);
}
.numbered li::before { content: ""; width: 18px; height: 2px; background: var(--orange); margin-top: 13px; }
.numbered li strong { color: var(--blue); font-weight: 500; }

.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--blue); }
.value { padding: 36px 40px 40px 0; border-bottom: 1px solid var(--line); }
.value:nth-child(even) { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--line); }
.value__num { font-size: 12px; font-weight: 600; letter-spacing: .18em; color: var(--orange); }
.value h3 { margin: 18px 0 14px; font-size: 26px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; }
.value p { font-size: 16px; color: var(--muted); }

/* --- Encadré « valeur ajoutée » -------------------------------------------- */
.callout {
  background: #FCF1DC; padding: clamp(28px, 3vw, 40px);
  border-top-right-radius: 56px;
}
.callout .label { color: var(--blue); }
.callout p { margin-top: 12px; font-size: 18px; line-height: 1.45; color: var(--blue); letter-spacing: -0.01em; }
.callout--blue { background: var(--blue); }
.callout--blue .label, .callout--blue p { color: #fff; }

/* --- Blocs services --------------------------------------------------------- */
.service {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 104px); align-items: center;
  padding: clamp(64px, 8vw, 120px) 0; border-top: 1px solid var(--line);
}
.service:first-child { border-top: 0; padding-top: 0; }
.service--reverse .service__media { order: 2; }
.service__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.service__media--wide img { aspect-ratio: 3 / 2; object-position: center; }

/* --- Carte (page Contact) -------------------------------------------------- */
.map { position: relative; margin-top: clamp(56px, 7vw, 96px); }
.map iframe, .map__fallback {
  display: block; width: 100%; height: clamp(320px, 36vw, 480px); border: 0;
  filter: grayscale(1) contrast(.95); border-top-right-radius: clamp(48px, 6vw, 100px);
}
.map__fallback { filter: none; background: var(--paper-warm); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 15px; text-align: center; padding: 24px; }
.map__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 18px; }
.service--reverse .service__media img { border-top-left-radius: clamp(48px, 6vw, 112px); }
.service:not(.service--reverse) .service__media img { border-top-right-radius: clamp(48px, 6vw, 112px); }
.service__num { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.service h2 { margin: 20px 0 10px; font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -0.035em; }
.service__sub { font-size: 20px; color: var(--blue-light); letter-spacing: -0.01em; margin-bottom: 26px; }
.service__intro { font-size: 17px; margin-bottom: 32px; }
.checklist { list-style: none; margin: 14px 0 36px; padding: 0; border-top: 1px solid var(--line); }
.checklist li {
  position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--blue);
}
.checklist li::before { content: ""; position: absolute; left: 0; top: 25px; width: 14px; height: 2px; background: var(--orange); }

/* --- Cycle de vie ---------------------------------------------------------- */
.cycle { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.cycle__step {
  counter-increment: step; position: relative; padding: 32px 28px 36px 0;
  border-top: 1px solid rgba(255,255,255,.25);
}
.cycle__step::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 18px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; color: var(--orange);
}
.cycle__step::after {
  content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--orange);
}
.cycle__step h3 { color: #fff; font-size: 21px; font-weight: 400; letter-spacing: -0.015em; line-height: 1.2; }
.cycle__step p { margin-top: 10px; font-size: 15px; color: rgba(255,255,255,.86); }
.section--blue { background: var(--blue-deep); color: rgba(255,255,255,.88); }
.section--blue .h2 { color: #fff; }
.section--blue .prose { color: rgba(255,255,255,.88); }
.section--blue .numbered, .section--blue .numbered li { border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.85); }
.section--blue .numbered strong { color: #fff; }
.section--blue .numbered { margin-top: 24px; }

/* --- Tableau des contrats ---------------------------------------------------- */
.offers { border-top: 1px solid var(--blue); }
.offers__head, .offer {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px;
}
.offers__head { padding: 18px 0; border-bottom: 1px solid var(--line); }
.offer { padding: 30px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.offer__name { font-size: 22px; color: var(--blue); letter-spacing: -0.015em; line-height: 1.2; }
.offer__name small { display: block; margin-top: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .18em; color: var(--blue-deep); }
.offer p { font-size: 16px; }
.offer__key { font-size: 15px; color: var(--blue); }
.offer--featured { background: #FCF1DC; padding-left: 28px; padding-right: 28px; border-top-right-radius: 40px; border-bottom: 0; margin-top: 16px; }

/* --- Équipe ---------------------------------------------------------------- */
.team-hero img { width: 100%; height: clamp(320px, 48vw, 720px); object-fit: cover; object-position: center 35%; }
.members { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(56px, 6vw, 96px) clamp(32px, 5vw, 80px); }
.member__photo { overflow: hidden; border-top-right-radius: clamp(48px, 6vw, 100px); background: #1d2d4d; }
.member__photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 30%; transition: transform 1.2s var(--ease); }
.member:hover .member__photo img { transform: scale(1.03); }
.member__head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.member h3 { font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -0.03em; font-weight: 400; }
.member__role { margin-top: 0; }
.member__bio { margin-top: 22px; font-size: 16.5px; }
.member__quote {
  position: relative; margin: 24px 0 0; padding-left: 28px; font-size: 19px; line-height: 1.45; color: var(--blue); letter-spacing: -0.01em; font-weight: 300;
}
.member__quote::before { content: "\201C"; position: absolute; left: 0; top: -6px; font-size: 40px; line-height: 1; color: var(--orange); font-weight: 400; }
.member__contact { margin-top: 22px; font-size: 14px; color: var(--muted); }
.member__contact a { color: var(--blue); border-bottom: 1px solid var(--line); }
.member__contact a:hover { border-color: var(--orange); }

.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.skill { padding: 28px 28px 28px 0; }
.skill + .skill { padding-left: 28px; border-left: 1px solid var(--line); }
.skill h3, .skill h4 { font-size: 21px; color: var(--blue); margin: 0; font-weight: 400; letter-spacing: -0.015em; }
.skill p { margin-top: 10px; font-size: 15.5px; color: var(--muted); }

/* --- Références -------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.filter {
  padding: 10px 18px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit;
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
  transition: background .3s, color .3s, border-color .3s;
}
.filter:hover { border-color: var(--blue); }
.filter.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px); }
.card { background: #fff; border-top: 2px solid var(--blue); display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card__media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #E9ECF3, #F6F5F1); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media .card__placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
}
.card__media .card__placeholder svg { width: 72px; height: 72px; margin-bottom: 14px; }
.card__media .card__placeholder span { display: flex; flex-direction: column; align-items: center; }
.card__body { padding: clamp(24px, 2.6vw, 36px); flex: 1; display: flex; flex-direction: column; }
.card__top { display: flex; justify-content: space-between; gap: 16px; }
.card__top .label:first-child { color: var(--blue); font-weight: 600; }
.card h3 { margin: 16px 0 6px; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.03em; font-weight: 400; }
.card__loc { font-size: 15px; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 24px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 15.5px; color: var(--blue); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 24px; }
.tag { padding: 5px 10px; border: 1px solid var(--line); font-size: 11.5px; letter-spacing: .06em; color: var(--muted); }

.missions { border-top: 1px solid var(--blue); }
.mission { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 220px); gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.mission__num { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--orange); }
.mission h3 { font-size: 22px; font-weight: 400; letter-spacing: -0.015em; line-height: 1.25; }
.mission p { margin-top: 8px; font-size: 15.5px; color: var(--muted); }
.mission__type { text-align: right; }

/* --- Contact --------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.field label span { color: var(--blue-deep); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 0; font: inherit; font-size: 17px; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--grey); background: transparent; border-radius: 0;
  transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%);
  background-position: calc(100% - 12px) 22px, calc(100% - 7px) 22px; background-size: 5px 5px; background-repeat: no-repeat;
  padding-right: 28px; cursor: pointer;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--blue); box-shadow: 0 1px 0 0 var(--blue); }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: #B3261E; }
.consent { grid-column: 1 / -1; display: flex; gap: 14px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--blue); flex: none; }
.consent a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.form__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form__actions button { cursor: pointer; font-family: inherit; }
.form__actions button[disabled] { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; padding: 18px 22px; font-size: 15px; border-left: 2px solid var(--blue); background: var(--paper-warm); color: var(--blue); }
.form-status[hidden] { display: none; }
.form-status.is-error { border-left-color: #B3261E; color: #8C1D18; }

.info-block { padding: 28px 0; border-bottom: 1px solid var(--line); }
.info-block:first-child { border-top: 1px solid var(--blue); }
.info-block h2, .info-block h3 { font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.info-block p, .info-block li { font-size: 16px; }
.info-block ul { list-style: none; margin: 0; padding: 0; }
.info-block li { padding: 3px 0; }
.info-block a { color: var(--blue); border-bottom: 1px solid var(--line); }
.info-block a:hover { border-color: var(--orange); }
.info-block small { color: var(--muted); font-size: 13px; letter-spacing: .04em; }

.contacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--blue); }
.contact-card { padding: 28px 24px 28px 0; }
.contact-card + .contact-card { padding-left: 24px; border-left: 1px solid var(--line); }
.contact-card h3 { font-size: 21px; font-weight: 400; letter-spacing: -0.015em; }
.contact-card .label { display: block; margin: 8px 0 18px; line-height: 1.5; }
.contact-card a { display: block; font-size: 15px; color: var(--blue); padding: 2px 0; word-break: break-word; }
.contact-card a:hover { color: var(--blue-light); }

/* --- Mentions légales ------------------------------------------------------ */
.legal { max-width: 70ch; }
.legal h2 { font-size: 26px; font-weight: 400; letter-spacing: -0.02em; margin: 56px 0 18px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 16.5px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal dl { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 10px 24px; margin: 0; }
.legal dt { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.legal dd { margin: 0; color: var(--blue); }

/* --- Responsive pages intérieures ------------------------------------------ */
@media (max-width: 1100px) {
  .cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card:nth-child(3) { padding-left: 0; border-left: 0; }
  .contact-card:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .page-hero__grid, .service, .contact-grid { grid-template-columns: 1fr; }
  .service--reverse .service__media { order: 0; }
  .service__media img { aspect-ratio: 3 / 2; }
  .members, .cards { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr; }
  .skill + .skill { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .offers__head { display: none; }
  .offer { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 640px) {
  .values, .cycle, .contacts { grid-template-columns: 1fr; }
  .value, .value:nth-child(even) { padding: 28px 0; border-left: 0; }
  .contact-card, .contact-card + .contact-card { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .contact-card:first-child { border-top: 0; }
  .form { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .mission { grid-template-columns: 1fr; gap: 6px; }
  .mission__num { display: none; }
  .mission__type { text-align: left; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 14px; }
}

/* ==========================================================================
   ACCESSIBILITÉ RENFORCÉE (objectif WCAG 2.2 AAA) ET ANIMATION D'ACCUEIL
   ========================================================================== */

/* Zones cliquables d'au moins 44 × 44 px (WCAG 2.5.5) */
.nav a:not(.btn) { padding: 12px 0; }
.nav .btn, .btn, .filter { min-height: 44px; }
.link { min-height: 44px; }
.footer li { margin-bottom: 0; }
.footer__legal a { display: inline-flex; align-items: center; min-height: 44px; }
/* Colonnes du pied de page : même interligne que l'adresse */
.footer__grid li a { display: inline-block; line-height: 1.65; padding-block: 1px; }
.contact-card a, .member__contact a, .info-block li a { display: inline-flex; align-items: center; min-height: 44px; }
.footer .logo { display: inline-block; padding: 8px 0; }

/* Liens légaux du pied de page */
.footer__legal { display: flex; flex-wrap: wrap; gap: 0 28px; list-style: none; margin: 0; padding: 0; }
.footer__bottom { align-items: center; }
.footer nav { display: block; }

/* Ouverture de l'accueil : lent zoom de la photo (moins de 5 s, WCAG 2.2.2) */
.hero__bg { animation: stelyce-zoom 4.8s cubic-bezier(.2,.6,.2,1) both; transform-origin: 40% 50%; }
@keyframes stelyce-zoom { from { transform: scale(1.08); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero__bg { animation: none; }
}
.header .logo { padding: 3px 0; min-height: 44px; display: flex; align-items: center; }

/* --- Page Contact : texte, formulaire puis informations ------------------- */
.contact-stack { max-width: 920px; }
.contact-intro { font-size: clamp(20px, 2vw, 24px); line-height: 1.45; color: var(--blue); letter-spacing: -0.01em; margin: 0 0 48px; max-width: 46ch; }
.contact-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin-top: clamp(56px, 7vw, 88px); }
.contact-info .info-block { border-top: 1px solid var(--blue); }
@media (max-width: 640px) { .contact-info { grid-template-columns: 1fr; } .contact-info .info-block + .info-block { border-top-color: var(--line); } }
/* ==========================================================================
   ACCUEIL PAR BLOCS ÉCRAN, BANDEAU CONTACT CLAIR, BOUTONS HARMONISÉS
   ========================================================================== */

/* Un bloc = un écran (hauteur de fenêtre moins le menu) */
.section--screen { min-height: calc(100vh - 88px); display: flex; align-items: center; padding-block: clamp(56px, 6vw, 88px); }
.section--screen .stats { margin-top: clamp(40px, 5vw, 72px); }
.section--screen .section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.section--screen .contracts { margin-top: clamp(32px, 4vw, 48px); }
.section--screen > .wrap { width: 100%; }
@media (max-width: 640px) { .section--screen { min-height: 0; } }

/* Boutons : un seul style pour tous les appels à l'action */
.btn { padding: 17px 28px; font-size: 12px; font-weight: 600; letter-spacing: .18em; }
.section-cta { margin-top: 36px; }
.section-head .section-cta, .map__bar .section-cta { margin-top: 0; }
.nav .btn { padding: 13px 20px; font-size: 11px; }

/* Expertises : listes factuelles */
.facts-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--text); }

/* Bandeau contact sur fond clair, séparé du pied de page bleu */
.cta { background: var(--paper-warm); color: var(--text); border-top: 1px solid var(--line); }
.cta h2 { color: var(--blue); }
.cta h2 em { color: #4A66A0; }
.cta::before { border-color: rgba(249,177,34,.7); }
.cta :focus-visible { outline-color: var(--blue-deep); }
/* --- Contact : invitation et alignement des interlocuteurs ---------------- */
.contact-invite { margin: 48px 0 0; }
.contacts { grid-auto-rows: auto; }
.contact-card { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.contact-card .label { margin: 8px 0 18px; }
/* --- Rangées de boutons ---------------------------------------------------- */
.cta-row { display: flex; margin-top: 40px; }
.cta-row--end { justify-content: flex-end; }
.cta-row .section-cta { margin-top: 0; }
/* Textes de la page Contact : retour à la ligne après les deux-points */
.contact-intro { max-width: none; }
.contact-intro > span { display: block; }
@media (min-width: 961px) { .contact-intro > span { white-space: nowrap; } }
/* ==========================================================================
   BOUTONS — DESIGN B « LIEN ÉDITORIAL » (texte souligné + pastille flèche)
   ========================================================================== */
.btn, .nav .btn {
  display: inline-flex; align-items: center; gap: 16px;
  min-height: 44px; padding: 6px 0 8px; margin: 0;
  background: transparent; color: var(--blue);
  border: 0; border-bottom: 1.5px solid currentColor; border-radius: 0;
  font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer; transition: color .3s var(--ease);
}
.btn::after, .nav .btn::after {
  content: "\2192"; content: "\2192" / ""; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--orange); color: var(--blue-deep);
  font-size: 16px; font-weight: 500; letter-spacing: 0; line-height: 1;
  transition: transform .35s var(--ease);
}
.btn:hover, .nav .btn:hover { background: transparent; color: var(--blue-deep); border-color: currentColor; }
.btn:hover::after, .nav .btn:hover::after { width: 34px; transform: translateX(6px); }
/* Menu : version compacte */
.nav .btn { font-size: 11px; gap: 12px; padding: 4px 0 6px; }
.nav .btn::after { width: 28px; height: 28px; font-size: 14px; }
.nav .btn:hover::after { width: 28px; }
.nav .btn[aria-current="page"] { color: var(--blue-deep); }
/* Sur fond sombre (photo d'ouverture) */
.btn--light, .btn--light:hover { color: #fff; background: transparent; border-color: #fff; }
.hero--cover .btn:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) { .btn::after { transition: none; } }
@media (max-width: 960px) { .nav .btn { margin-top: 24px; padding: 4px 0 6px; } }.btn::after, .nav .btn::after { padding-bottom: 3px; box-sizing: border-box; }
.cta::before { right: -230px; top: -170px; }
.nav .btn[aria-current="page"]::after { width: 28px; position: static; height: 28px; background: var(--orange); }

/* --- Accueil : vitrine des références ------------------------------------- */
.section--navy-refs { background: var(--blue-deep); color: #fff; }
.section--navy-refs .h2 { color: #fff; }
.section--navy-refs :focus-visible { outline-color: #fff; }
.showcase { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: repeat(2, minmax(190px, 1fr)); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: clamp(22px, 2.4vw, 34px); color: #fff; overflow: hidden;
  background: #24324F; border: 1px solid rgba(255,255,255,.14);
  background-size: cover; background-position: center;
  transition: background-color .5s var(--ease), border-color .5s var(--ease);
}
.tile--lg { grid-row: span 2; border-top-right-radius: clamp(48px, 6vw, 110px); }
.tile::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 180px; height: 180px;
  border: 1.5px solid rgba(249,177,34,.55); border-radius: 0 0 0 180px; transition: transform .6s var(--ease);
}
.tile:hover { background-color: #2B3B5E; border-color: rgba(249,177,34,.6); }
.tile:hover::after { transform: translate(-14px, -14px); }
.tile__tag { font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.86); }
.tile__num { font-size: clamp(44px, 5vw, 80px); font-weight: 200; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tile--lg .tile__num { font-size: clamp(60px, 7.5vw, 124px); }
.tile__num small { font-size: .32em; font-weight: 300; margin-left: 6px; letter-spacing: 0; }
.tile__name { font-size: clamp(19px, 1.6vw, 24px); letter-spacing: -0.015em; position: relative; z-index: 1; }
@media (max-width: 960px) { .showcase { grid-template-columns: 1fr 1fr; grid-template-rows: none; } .tile--lg { grid-column: span 2; grid-row: auto; } }
@media (max-width: 640px) { .showcase { grid-template-columns: 1fr; } .tile--lg { grid-column: auto; } }
@media (prefers-reduced-motion: reduce) { .tile::after { transition: none; } }.tile::after { right: -36px; bottom: -36px; width: 96px; height: 96px; border-radius: 0 0 0 96px; }
.tile--lg::after { right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 0 0 0 200px; }
.showcase { grid-template-rows: repeat(2, minmax(170px, 1fr)); }
.section--navy-refs .section-head { margin-bottom: clamp(28px, 3vw, 44px); }.tile:not(.tile--lg)::after { display: none; }
.section--navy-refs .h2 { font-size: clamp(32px, 3.6vw, 52px); }

/* ==========================================================================
   GRILLE DE TEXTE : titres ferrés à gauche, appels à l'action sous le texte
   qu'ils prolongent, ferrés à gauche de ce texte.
   ========================================================================== */
.section-head { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 24px; }
.section-head > p, .section-head > .label { max-width: 62ch; }
.cta__inner { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 40px; }
.map__bar { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 20px; }
.cta-row, .cta-row--end { justify-content: flex-start; }
.h2, h1, h2, h3, .eyebrow, .prose, .page-hero__lead, .hero__lead { text-align: left; }
/* --- Accueil : infographie des expertises (parcours en 4 étapes) --------- */
.journey { list-style: none; margin: clamp(24px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.journey::before { content: ""; position: absolute; left: 0; right: 0; top: 96px; height: 1.5px; background: var(--blue); }
.journey::after { content: ""; position: absolute; right: -2px; top: 91px; width: 11px; height: 11px; border-top: 1.5px solid var(--blue); border-right: 1.5px solid var(--blue); transform: rotate(45deg); }
.journey__step { position: relative; padding-right: 24px; }
.journey__icon { display: block; width: 64px; height: 64px; color: var(--blue); }
.journey__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.journey__dot { display: block; width: 14px; height: 14px; margin: 25px 0 32px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px var(--paper-warm); position: relative; z-index: 1; }
.journey h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; color: var(--blue); }
@media (max-width: 960px) {
  .journey { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .journey::before, .journey::after { display: none; }
  .journey__dot { margin: 18px 0 20px; }
}
@media (max-width: 480px) { .journey { grid-template-columns: 1fr; } }

/* --- Accueil : références sur photo de fond ------------------------------- */
.section--navy-refs { position: relative; overflow: hidden; isolation: isolate; }
.refs__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.section--navy-refs::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(30,42,70,.82); }
.tile { background: rgba(20,30,52,.55); border-color: rgba(255,255,255,.22); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.tile:hover { background: rgba(20,30,52,.8); }
.tile--lg { border-top-right-radius: 0; }
.tile::after, .tile--lg::after { display: none; }
.showcase { grid-template-rows: repeat(2, minmax(150px, 1fr)); }
.section--navy-refs .cta-row { margin-top: 32px; }

/* Chapô d'introduction */
.chapo { margin: 0; max-width: 58ch; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--text); }
/* --- Sous-menu « À propos » ------------------------------------------------ */
.nav__item { position: relative; display: flex; align-items: center; gap: 2px; }
.nav__toggle { width: 28px; height: 44px; padding: 0; border: 0; background: none; color: var(--blue); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.nav__toggle svg { width: 10px; height: 7px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .25s var(--ease); }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.subnav {
  position: absolute; top: 100%; left: -20px; min-width: 220px; margin: 0; padding: 10px 0; list-style: none;
  background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--orange);
  box-shadow: 0 18px 40px -24px rgba(31,43,71,.35);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, transform .2s var(--ease), visibility .2s;
  z-index: 60;
}
.nav__item:hover .subnav, .nav__item:focus-within .subnav, .nav__item.is-open .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav a { display: flex; align-items: center; min-height: 44px; padding: 0 20px; font-size: 14px; color: var(--blue); white-space: nowrap; }
.subnav a::after { display: none !important; }
.subnav a:hover { background: var(--paper-warm); color: var(--blue-deep); }
@media (max-width: 960px) {
  .nav__item { flex-wrap: wrap; width: 100%; }
  .nav__item > a { flex: 1; }
  .nav__toggle { display: none; }
  .subnav { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 8px 16px; min-width: 0; width: 100%; background: transparent; }
  .subnav a { font-size: 15px; padding: 0; border-bottom: 1px solid var(--line); color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) { .subnav, .nav__toggle svg { transition: none; } }
.nav .subnav a { padding: 0 20px; }
@media (max-width: 960px) { .nav .subnav a { padding: 12px 0; } }

/* ==========================================================================
   PAGE À PROPOS (refonte)
   ========================================================================== */
/* Sous-menu décalé sous le filet de sélection, avec zone de survol continue */
.subnav { top: calc(100% + 14px); }
.subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }

/* En-tête de page : photo + titre + chapô + texte */
.page-cover { position: relative; overflow: hidden; isolation: isolate; background: var(--blue-deep); color: #fff; }
.page-cover__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-cover::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(30,42,70,.9) 0%, rgba(30,42,70,.78) 55%, rgba(30,42,70,.55) 100%); }
.page-cover__content { padding-block: clamp(96px, 11vw, 160px) clamp(72px, 8vw, 120px); }
.page-cover h1 { margin-top: 28px; max-width: 16ch; font-size: clamp(42px, 6vw, 92px); line-height: 1; letter-spacing: -0.045em; color: #fff; font-weight: 300; }
.page-cover h1 em { font-style: normal; color: var(--sand); }
.page-cover .chapo { margin-top: 36px; color: #fff; font-size: clamp(19px, 1.8vw, 24px); max-width: 52ch; }
.page-cover__text { margin-top: 28px; max-width: 64ch; color: #fff; font-size: 17px; }
.page-cover__text p { margin-bottom: 1.2em; }
.page-cover .cta-row { margin-top: 32px; }
.page-cover :focus-visible { outline-color: #fff; }

/* Convictions : pictogrammes */
.beliefs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.belief { background: #fff; padding: clamp(24px, 2.4vw, 36px); border-top: 2px solid var(--orange); }
.belief__icon { width: 56px; height: 56px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.belief h3 { margin: 24px 0 12px; font-size: 21px; font-weight: 400; line-height: 1.2; letter-spacing: -0.015em; color: var(--blue); }
.belief p { font-size: 15.5px; color: var(--text); }
#convictions .cta-row { margin-top: 48px; }

/* Équipe : photo immersive + texte */
.team-cover { position: relative; overflow: hidden; isolation: isolate; min-height: clamp(480px, 60vw, 760px); display: flex; align-items: flex-end; color: #fff; background: var(--blue-deep); }
.team-cover__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: -2; }
.team-cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30,42,70,0) 35%, rgba(30,42,70,.9) 100%); }
.team-cover__content { padding-block: 0 clamp(40px, 5vw, 72px); }
.team-cover .h2 { color: #fff; margin-top: 18px; }
.team-cover p { margin-top: 18px; max-width: 60ch; font-size: 17px; color: #fff; }

/* Interlocuteurs compacts */
.team-list { padding-top: clamp(48px, 6vw, 80px); }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 25%; background: #1d2d4d; }
.person h3 { margin-top: 18px; font-size: 21px; font-weight: 400; letter-spacing: -0.015em; color: var(--blue); }
.person .label { display: block; margin-top: 6px; min-height: 2.6em; line-height: 1.3; }
.person details { margin-top: 10px; border-top: 1px solid var(--line); }
.person summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); list-style: none; }
.person summary::-webkit-details-marker { display: none; }
.person summary::after { content: "+"; margin-left: auto; font-size: 18px; font-weight: 400; color: var(--orange); }
.person details[open] summary::after { content: "\2212"; }
.person details p { font-size: 15px; padding-bottom: 12px; }
.person > a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--blue); border-top: 1px solid var(--line); width: 100%; }
.team-list .cta-row { margin-top: 40px; }

@media (max-width: 1100px) { .beliefs, .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .beliefs, .people { grid-template-columns: 1fr; } }
.team-cover::after { background: linear-gradient(180deg, rgba(30,42,70,0) 25%, rgba(30,42,70,.6) 55%, rgba(30,42,70,.94) 100%); }

.nav__toggle { width: 44px; margin-left: -10px; margin-right: -10px; }

/* --- Charte : un angle arrondi (forme « feuille ») sur les blocs ---------- */
.belief, .tile, .card, .callout { border-top-right-radius: clamp(32px, 3.5vw, 56px); }
.tile--lg { border-top-right-radius: clamp(48px, 6vw, 96px); }
.callout { border-left: 0; }

/* --- Équipe : portraits avec léger zoom au survol ------------------------- */
.team-list { padding-top: var(--section); }
.person__photo { overflow: hidden; border-top-right-radius: clamp(40px, 4vw, 64px); background: #1d2d4d; }
.person__photo img { display: block; transition: transform 1.2s var(--ease); }
.person:hover .person__photo img, .person:focus-within .person__photo img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .person__photo img { transition: none; } .person:hover .person__photo img { transform: none; } }

/* --- Trait de couleur en haut des blocs : droit, fixe, arrêté avant l'arrondi */
.belief, .card { position: relative; border-top: 0; }
.belief::before, .card::before {
  content: ""; position: absolute; top: 0; left: 0; height: 2px;
  right: clamp(32px, 3.5vw, 56px);
}
.belief::before { background: var(--orange); }
.card::before { background: var(--blue); }
/* --- Équipe : lignes alignées d'une carte à l'autre (parcours, e-mail) ---- */
.people { grid-auto-rows: auto; }
.person { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
/* Bandeau contact sur fond blanc quand la section précédente est grège */
.cta--white { background: var(--paper); border-top: 0; }

#gate-one .card__media img { object-position: center 40%; }

.card { overflow: hidden; }
.card::before { z-index: 2; }

/* --- Mosaïque : cases avec photo de l'opération ---------------------------- */
.tile--photo { isolation: isolate; }
.tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.tile--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,30,52,.82) 0%, rgba(20,30,52,.5) 45%, rgba(20,30,52,.85) 100%); }
.tile--photo:hover .tile__img { transform: scale(1.05); }
.tile--photo { background: transparent; }
#fleurus .card__media img { object-position: center 30%; }
@media (prefers-reduced-motion: reduce) { .tile__img { transition: none; } .tile--photo:hover .tile__img { transform: none; } }
#m-cube .card__media img { object-position: center 35%; }

/* Cadrages dézoomés : New Corner en entier (3:2), Gate One en entier fondu dans la nuit */
.card__media, #new-corner .card__media { aspect-ratio: 3 / 2; }
#new-corner .card__media img { object-fit: contain; }
.tile[href$="#new-corner"] { background: linear-gradient(180deg, #759AAA 0%, #759AAA 50%, #2C2B26 100%); }
.tile[href$="#new-corner"] .tile__img { object-fit: contain; }

.tile[hidden] { display: none; }

#rocher .card__media img { object-position: center 40%; }

/* Filtres répétés en bas de la liste des références */
.filters--bottom { margin: 48px 0 0; }
.nowrap { white-space: nowrap; }

/* Pagination des références */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 48px; }
.pager[hidden] { display: none; }
.pager__btn {
  min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: #fff;
  font: inherit; font-size: 14px; color: var(--blue); cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.pager__btn:hover:not([disabled]) { border-color: var(--blue); }
.pager__btn[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.pager__btn--nav { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.pager__btn[disabled] { color: var(--muted); opacity: .55; cursor: default; }
.pager + .filters--bottom { margin-top: 24px; }
/* Pagination : traitement typographique distinct des filtres, centrée */
.pager { justify-content: center; gap: 4px; }
.pager__btn { border: 0; background: transparent; font-size: 17px; color: var(--muted); padding: 0 10px; position: relative; }
.pager__btn:hover:not([disabled]) { color: var(--blue); }
.pager__btn[aria-current="page"] { background: transparent; color: var(--blue); font-weight: 600; }
.pager__btn[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 8px; width: 16px; height: 2px; margin-left: -8px; background: var(--orange); }
.pager__btn--nav { font-size: 20px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--blue); }
.pager__btn[disabled] { color: var(--muted); opacity: .4; }

/* ==========================================================================
   PAGE EXPERTISES : en-tête avec cycle de vie, sections alignées
   ========================================================================== */
.page-cover--cycle .page-cover__bg { object-position: center 35%; }
.cycle--cover { list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; }
.cycle--cover .cycle__step { border-top-color: rgba(255,255,255,.35); }
.cycle--cover .cycle__step h2 { color: #fff; font-size: 20px; font-weight: 400; letter-spacing: -0.015em; line-height: 1.2; margin: 0; }
.cycle--cover .cycle__step p { color: #fff; }

/* Les 4 métiers : l'image occupe toute la hauteur du texte ; le haut et le bas
   de l'encadré « Valeur ajoutée » s'alignent sur ceux de l'image */
@media (min-width: 961px) {
  .service { align-items: stretch; }
  .service__media { position: static; height: 100%; }
  .service__media img, .service__media--wide img { height: 100%; aspect-ratio: auto; object-fit: cover; }
  .service > div { display: flex; flex-direction: column; }
  .service .callout { margin-top: auto; }
  .service .checklist { margin-bottom: 40px; }
}
.service__num { line-height: 1; }
.page-cover--cycle + .section--tight { padding-top: var(--section); }
.service__eyebrow { margin-top: 3px; }
/* Espace normal entre le dernier métier et « Nos offres » */
.service:last-child { padding-bottom: 0; }
.page-cover--cycle + .section--tight { padding-bottom: 0; }

/* En-têtes : tous les textes visibles sans défiler (ligne de flottaison) */
.page-cover__content { padding-block: clamp(56px, 7vw, 104px) clamp(48px, 6vw, 88px); }
.page-cover h1 { font-size: clamp(40px, 5.2vw, 80px); }
.page-cover .chapo { margin-top: 28px; }
@media (min-width: 961px) {
  .page-cover--split .page-cover__content { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: clamp(40px, 6vw, 96px); align-items: end; }
  .page-cover--split h1, .page-cover--split .chapo { grid-column: 1; }
  .page-cover--split .page-cover__text { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin-top: 0; font-size: 16px; }
  .page-cover--split .cta-row { grid-column: 2; margin-top: 8px; }
}
.page-cover--split .page-cover__text p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .page-cover__content { padding-block: 36px 32px; }
  .page-cover h1 { font-size: 34px; margin-top: 0; }
  .page-cover .chapo { margin-top: 18px; font-size: 17px; line-height: 1.45; }
  .page-cover__text { margin-top: 16px; font-size: 15px; line-height: 1.5; }
  .page-cover__text p { margin-bottom: .8em; }
  .page-cover .cta-row { margin-top: 16px; }
}

/* Accueil : références sur fond bleu nuit uni */
.section--navy-refs::after { display: none; }
.section--navy-refs .tile:not(.tile--photo) { background: rgba(255,255,255,.06); }

/* Accueil : titre à la même hauteur que sur les autres en-têtes */
.hero--cover { align-items: flex-start; }
.hero--cover .hero__content { padding-top: clamp(56px, 7vw, 104px); }
.hero--cover h1 { margin-top: 0; }
@media (max-width: 640px) { section.hero--cover .hero__content { padding-top: 36px; } }

/* Chronologie cliquable en tête de la page Expertises */
.journey--nav { margin: 0 0 clamp(72px, 9vw, 128px); }
.journey--nav .journey__dot { box-shadow: 0 0 0 6px var(--paper); }
.journey__link { display: block; color: inherit; padding-bottom: 8px; }
.journey__title { font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; color: var(--blue); margin: 0; transition: color .3s var(--ease); }
.journey__link .journey__icon { transition: transform .4s var(--ease); }
.journey__link .journey__dot { transition: transform .4s var(--ease); }
.journey__link:hover .journey__title, .journey__link:focus-visible .journey__title { color: var(--blue-deep); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 6px; }
.journey__link:hover .journey__icon { transform: translateY(-4px); }
.journey__link:hover .journey__dot { transform: scale(1.35); }
.service .cta-row { margin-top: 28px; }
@media (min-width: 961px) { .service .callout { margin-top: auto; } }

/* Animation d'entrée : la ligne se trace, puis chaque étape apparaît */
.journey--nav.reveal { opacity: 1; transform: none; }
.journey--nav::before, .journey--nav::after { transition: transform 1.4s var(--ease), opacity .4s ease 1.2s; }
.journey--nav.reveal:not(.is-visible)::before { transform: scaleX(0); transform-origin: left; }
.journey--nav.reveal:not(.is-visible)::after { opacity: 0; }
.journey--nav::before { transform-origin: left; }
.journey--nav .journey__step { transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 1) * 280ms); }
.journey--nav.reveal:not(.is-visible) .journey__step { opacity: 0; transform: translateY(16px); }
@media (prefers-reduced-motion: reduce) {
  .journey--nav::before, .journey--nav::after, .journey--nav .journey__step { transition: none; }
  .journey--nav.reveal:not(.is-visible)::before { transform: none; }
  .journey--nav.reveal:not(.is-visible)::after, .journey--nav.reveal:not(.is-visible) .journey__step { opacity: 1; transform: none; }
}

/* Pictogramme dans l'encadré « Valeur ajoutée » */
.callout { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 20px; align-items: start; }
.callout__icon { grid-row: span 2; width: 48px; height: 48px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.callout .label { align-self: end; }
.callout p { margin-top: 6px; }