/* ==========================================================================
   HATA Consulting — feuille de style unique
   Concept « le plan d'ingénieur » : papier blanc à trame discrète, encre bleu
   nuit, une seule couleur d'action (émeraude) réservée aux boutons principaux
   et au filet levé du logo ; annotations en forme de cotes.
   Sommaire : 1 jetons · 2 base · 3 mise en page · 4 en-tête · 5 boutons
              6 composants · 7 formulaires · 8 pied de page · 9 utilitaires
   ========================================================================== */

/* 1. Jetons ---------------------------------------------------------------- */
:root {
  --paper: #fbfcfd;
  --paper-2: #f0f4f7;
  --surface: #ffffff;
  --ink: #0e2236;
  --ink-2: #44576c;
  --line: #d9e1e8;
  --accent: #0b7d55;
  --accent-hover: #096a48;
  --accent-soft: #e2f2ea;
  --on-accent: #ffffff;
  --grid: rgba(14, 34, 54, .055);
  --error: #b42318;
  --flag: #a3306a;
  --deep: #0e2236;
  --on-deep: #e8eef4;
  --on-deep-2: #a9b8c7;
  --water: #9fc3dc;

  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.2rem, 1.1rem + .4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --step-3: clamp(1.85rem, 1.4rem + 1.9vw, 2.75rem);
  --step-4: clamp(2.2rem, 1.5rem + 3vw, 3.75rem);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 7vw, 104px);
  --radius: 6px;
  --radius-lg: 12px;
  --header-h: 100px;
  --shadow: 0 18px 40px -24px rgba(14, 34, 54, .35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1724; --paper-2: #102233; --surface: #0f1f2f; --ink: #e8eef4; --ink-2: #a8b7c6;
    --line: #22374b; --accent: #2fc28b; --accent-hover: #52d3a2; --accent-soft: #0f2f28;
    --on-accent: #06150f; --grid: rgba(232, 238, 244, .05); --error: #ff8a7a; --flag: #f08cb8; --deep: #07111b; --water: #3d6a8a;
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1724; --paper-2: #102233; --surface: #0f1f2f; --ink: #e8eef4; --ink-2: #a8b7c6;
  --line: #22374b; --accent: #2fc28b; --accent-hover: #52d3a2; --accent-soft: #0f2f28;
  --on-accent: #06150f; --grid: rgba(232, 238, 244, .05); --error: #ff8a7a; --flag: #f08cb8; --deep: #07111b; --water: #3d6a8a;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; }
img, video { height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--display); font-stretch: 116%; font-weight: 800;
  line-height: 1.06; letter-spacing: -.01em; margin: 0; text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.2; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent-soft); color: var(--ink); }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper);
  padding: 10px 14px; border-radius: var(--radius); text-decoration: none;
}
.skip:focus { top: 12px; }

/* 3. Mise en page ---------------------------------------------------------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.section--tint { background: var(--paper-2); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.grid-bg {
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split--center { align-items: center; }
@media (max-width: 860px) { .split, .split--even { grid-template-columns: minmax(0, 1fr); } }
.stack > * + * { margin-top: var(--stack, 16px); }
.lead { font-size: var(--step-1); color: var(--ink-2); max-width: 46ch; line-height: 1.5; }
.muted { color: var(--ink-2); }
.measure { max-width: 62ch; }

/* 4. En-tête --------------------------------------------------------------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: var(--header-h); }
.brand { display: inline-flex; text-decoration: none; }
.logo { display: block; height: 62px; width: auto; overflow: visible; }
.logo__name { font-family: var(--display); font-weight: 700; font-stretch: 125%; font-size: 60px; letter-spacing: 6px; fill: var(--ink); }
.logo__sub { font-family: var(--display); font-weight: 500; font-stretch: 125%; font-size: 16px; letter-spacing: 8px; fill: var(--ink-2); }
.logo__rule, .logo__lift { fill: none; stroke: var(--accent); stroke-width: 4; }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 1rem; padding-block: 6px; white-space: nowrap; }
@media (max-width: 1280px) and (min-width: 1041px) { .site-nav { gap: 24px; } .site-nav ul { gap: 20px; } .site-nav ul a { font-size: .95rem; } }
.site-nav ul a:hover { color: var(--ink); }
.site-nav ul a[aria-current="page"] { color: var(--ink); box-shadow: 0 2px 0 var(--accent); }
/* Sélecteur de langue : le drapeau de l'autre langue, dans la barre du haut (hors du menu, pour rester
   visible sur téléphone à côté du bouton du menu) */
.brand { margin-right: auto; }
.site-header__lang { display: inline-flex; padding: 6px; border-radius: var(--radius); }
.site-header__lang .flag { display: block; height: 16px; width: auto; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
.site-header__lang:hover .flag, .site-header__lang:focus-visible .flag { box-shadow: 0 0 0 2px var(--ink-2); }
.nav-toggle { display: none; }
@media (max-width: 1040px) {
  :root { --header-h: 80px; }
  .logo { height: 50px; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1.5px solid var(--line);
    border-radius: var(--radius); background: var(--surface); color: var(--ink); cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 20px; height: 2px; background: currentColor; border-radius: 1px; position: relative; transition: transform .2s ease;
  }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 18px;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 18px var(--gutter) 24px;
    box-shadow: var(--shadow);
  }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav ul a { display: block; padding: 10px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .site-nav ul a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
  .site-nav__cta { align-self: flex-start; }
  .site-header__bar { gap: 12px; }
  .no-js .site-nav, html:not(.js) .site-nav { flex-wrap: wrap; }
}

/* 5. Boutons --------------------------------------------------------------- */
.btn {
  --pad: .95em 1.35em;
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: 1rem; line-height: 1;
  padding: var(--pad); border-radius: var(--radius); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn__arrow { display: inline-block; transition: transform .18s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 6px 18px -8px var(--accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-sm { --pad: .72em 1.05em; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.link {
  color: var(--ink); text-decoration: none; font-family: var(--display); font-stretch: 108%; font-weight: 700;
  border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}
.link:hover { color: var(--accent); }
@media (max-width: 480px) { .btn-row .btn { width: 100%; } }

/* 6. Composants ------------------------------------------------------------ */
/* Cote : annotation en ligne de cote */
.cote {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.cote::before {
  content: ""; flex: none; width: 26px; height: 9px;
  border-left: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
}
.cote--accent { color: var(--accent); }
.eyebrow { margin-bottom: 14px; }
.mono-text { font-family: var(--mono); font-size: .95em; }
.highlight { background: linear-gradient(transparent 70%, var(--accent-soft) 70%); }

/* Filet levé : séparateur et signature animée */
.lifted-rule { display: block; width: 100%; height: 34px; overflow: visible; }
.lifted-rule__base { stroke: var(--line); stroke-width: 2; fill: none; }
.lifted-rule__lift { stroke: var(--accent); stroke-width: 3; fill: none; }
.js .lifted-rule--draw .lifted-rule__base { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); }
.js .lifted-rule--draw .lifted-rule__lift { stroke-dasharray: 220; stroke-dashoffset: 220; }
.js .lifted-rule--draw.is-drawn .lifted-rule__base { transition: stroke-dashoffset 1.2s ease; stroke-dashoffset: 0; }
.js .lifted-rule--draw.is-drawn .lifted-rule__lift { transition: stroke-dashoffset .6s ease 1.1s; stroke-dashoffset: 0; }

/* Pastille de validation */
.check { display: inline-flex; gap: 10px; align-items: center; font-size: var(--step--1); color: var(--ink-2); }
.check::before {
  content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-hover); font-size: 12px; font-weight: 700;
}

/* Phases numérotées */
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.phase { padding: 26px 26px 0 0; min-width: 0; }
.phase + .phase { padding-left: 26px; border-left: 1px solid var(--line); }
.phase__num { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 3rem; line-height: 1; color: var(--accent); }
.phase h3 { margin-top: 12px; font-size: var(--step-2); }
.phase p { margin-top: 10px; color: var(--ink-2); }
.phase .check { margin-top: 16px; }
.tag {
  display: inline-block; margin-left: 8px; vertical-align: 4px; font-family: var(--mono); font-size: .7rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent);
  padding: 2px 7px; border-radius: 3px; font-stretch: 100%; font-weight: 500;
}
@media (max-width: 860px) {
  .phases { grid-template-columns: minmax(0, 1fr); }
  .phase, .phase + .phase { padding: 22px 0 24px; border-left: 0; }
  .phase + .phase { border-top: 1px solid var(--line); }
}

/* Carte */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 28px); min-width: 0; }
.card--raised { box-shadow: var(--shadow); }

/* Liste à puces « filet levé » */
.list-lift { list-style: none; padding: 0; }
.list-lift li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.list-lift li:last-child { border-bottom: 1px solid var(--line); }
.list-lift li::before {
  content: ""; width: 24px; height: 12px; margin-top: .45em;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 58% 2px no-repeat,
              linear-gradient(var(--accent), var(--accent)) 58% 0 / 42% 2px no-repeat,
              linear-gradient(var(--accent), var(--accent)) 58% 0 / 2px 100% no-repeat;
}

/* Bandeau d'appel à l'action */
.cta-band { background: var(--deep); color: var(--on-deep); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; padding-block: clamp(48px, 6vw, 80px); }
.cta-band h2 { font-size: var(--step-3); max-width: 22ch; }
.cta-band p { color: var(--on-deep-2); margin-top: 12px; }
.cta-band .btn-primary { box-shadow: none; }

/* Questions fréquentes */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative; padding: 20px 40px 20px 0;
  font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: var(--step-1);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.7rem; font-weight: 500; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 22px; color: var(--ink-2); max-width: 62ch; }

/* Marqueur provisoire (à retirer avant mise en ligne) */
.todo {
  display: inline-block; margin-left: 6px; vertical-align: 2px; font-family: var(--mono); font-size: .68rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--flag); border: 1px dashed var(--flag);
  padding: 1px 6px; border-radius: 3px; font-style: normal; font-weight: 500;
}

/* 7. Formulaires ----------------------------------------------------------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .875rem; color: var(--ink-2); font-weight: 400; }
.field .req { color: var(--accent); }
.input, .textarea, .select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 11px 13px;
}
.textarea { min-height: 128px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field[aria-invalid="true"] .input, .field[aria-invalid="true"] .textarea { border-color: var(--error); }
.error { color: var(--error); font-size: .875rem; }
.error:empty { display: none; }

/* 8. Pied de page ---------------------------------------------------------- */
.site-footer { background: var(--deep); color: var(--on-deep-2); font-size: .95rem; }
.site-footer a { color: var(--on-deep); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 36px; padding-block: 56px 40px; }
.site-footer .logo { height: 58px; }
.site-footer .logo__name { fill: var(--on-deep); }
.site-footer .logo__sub { fill: var(--on-deep-2); }
.site-footer__tagline { margin-top: 16px; max-width: 30ch; }
.site-footer__links { list-style: none; padding: 0; display: grid; gap: 8px; }
.site-footer__contact { display: grid; gap: 8px; align-content: start; }
.site-footer .cote { color: var(--on-deep-2); }
.site-footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 18px 28px;
  border-top: 1px solid rgba(232, 238, 244, .16); font-size: .85rem;
}
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* 9. Utilitaires ----------------------------------------------------------- */
.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;
}
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .lifted-rule--draw .lifted-rule__base, .js .lifted-rule--draw .lifted-rule__lift { stroke-dashoffset: 0; }
}

/* 10. Pages ----------------------------------------------------------------- */
/* Bandeau de titre des pages intérieures */
.page-head { border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); align-items: end; }
.page-head h1 { margin-top: 14px; }
.page-head .lead { max-width: 44ch; }
.crumbs { font-family: var(--mono); font-size: .75rem; color: var(--ink-2); margin-bottom: 18px; }
.crumbs a { color: var(--ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
@media (max-width: 860px) { .page-head .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Accueil : haut de page avec auto-diagnostic */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding-block: clamp(48px, 7vw, 104px); }
.hero h1 { margin-top: 18px; font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); }
.hero .lead { margin-top: 22px; }
.hero .btn-row { margin-top: 30px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; }
.hero .wrap > :only-child { grid-column: 1 / -1; max-width: 860px; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

.diag { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 28px); min-width: 0; }
.diag__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.diag__title { font-size: 1.2rem; font-weight: 800; }
.diag__progress { display: flex; gap: 6px; margin-top: 14px; }
.diag__progress i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.diag__progress i.is-on { background: var(--accent); }
.diag__q { font-family: var(--display); font-stretch: 106%; font-weight: 600; font-size: 1.08rem; line-height: 1.3; margin-top: 18px; }
.diag__opts { display: grid; gap: 8px; margin-top: 14px; }
.diag__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; width: 100%;
  font: inherit; font-size: .97rem; color: var(--ink); background: var(--paper-2); border: 1.5px solid transparent;
  border-radius: 8px; padding: 12px 14px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
.diag__opt::after { content: "→"; color: var(--accent); font-weight: 600; }
.diag__opt:hover { border-color: var(--accent); background: var(--surface); }
.diag__verdict { display: inline-block; margin-top: 16px; font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-hover); background: var(--accent-soft); padding: 4px 8px; border-radius: 4px; }
.diag__text { margin-top: 12px; color: var(--ink-2); font-size: .97rem; }
.diag .btn { margin-top: 18px; }
.diag__small { margin-top: 14px; font-size: .8rem; color: var(--ink-2); }
.diag__back { font: inherit; font-size: .85rem; color: var(--ink-2); background: none; border: 0; padding: 0; margin-top: 14px; cursor: pointer; text-decoration: underline; }

/* Accueil : arguments et référentiels */
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; margin-top: 44px; }
.why-grid p { margin-top: 8px; color: var(--ink-2); }
.refs { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; }
@media (max-width: 760px) { .why-grid { grid-template-columns: minmax(0, 1fr); } }

/* Bandeau cas d'étude */
.case-band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--paper-2); border-block: 1px solid var(--line); }
.case-band__img { min-height: 320px; background: url("../img/canalisations.jpg") center 60% / cover; background-image: image-set(url("../img/canalisations.webp") type("image/webp"), url("../img/canalisations.jpg") type("image/jpeg")); }
.case-band__body { padding: clamp(40px, 6vw, 80px) clamp(16px, 5vw, 72px); display: grid; gap: 18px; align-content: center; max-width: 700px; }
.case-band p { color: var(--ink-2); }
@media (max-width: 860px) { .case-band { grid-template-columns: minmax(0, 1fr); } }
.ops { display: flex; flex-wrap: wrap; gap: 8px 14px; font-family: var(--mono); font-size: .8rem; }
.ops s { color: var(--ink-2); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.ops b { font-weight: 500; color: var(--ink); }

/* L'offre : phases détaillées en escalier */
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); padding-block: 40px; border-top: 2px solid var(--ink); }
/* Le titre suit la largeur de sa colonne, pour que le plus long (« Accompagnement ») y tienne toujours */
.step > div:first-child { container-type: inline-size; }
.step:nth-of-type(1) { margin-right: 14%; }
.step:nth-of-type(2) { margin-inline: 7%; }
.step:nth-of-type(3) { margin-left: 14%; }
.step__num { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 4.2rem; line-height: .9; color: var(--accent); }
.step h2 { font-size: min(var(--step-3), 10cqi); margin-top: 10px; }
.step__dur { display: flex; margin-top: 12px; }
.step__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 40px; }
.step__lede { grid-column: 1 / -1; font-size: var(--step-1); max-width: 56ch; line-height: 1.45; }
.step h3 { font-family: var(--mono); font-stretch: 100%; font-weight: 500; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.step ul { padding-left: 1.1em; display: grid; gap: 8px; }
.step li::marker { color: var(--accent); }
.checkpoint { display: flex; align-items: center; gap: 14px; padding-block: 18px; font-family: var(--display); font-stretch: 108%; font-weight: 600; color: var(--ink-2); }
.checkpoint::before { content: "✓"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-hover); font-weight: 700; }
.checkpoint:nth-of-type(1) { margin-left: 7%; }
.checkpoint:nth-of-type(2) { margin-left: 14%; }
.funding { grid-column: 1 / -1; border: 1px dashed var(--line); background: var(--paper-2); border-radius: var(--radius); padding: 16px 18px; color: var(--ink-2); font-size: .95rem; }
.funding b { color: var(--ink); }
.figures { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.figures > div { padding: 20px 22px; }
.figures > div + div { border-left: 1px solid var(--line); }
.figures__n { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 2.1rem; line-height: 1; font-variant-numeric: tabular-nums; }
.figures__n small { font-size: 1rem; font-weight: 600; margin-left: 4px; }
.figures__l { color: var(--ink-2); font-size: .9rem; margin-top: 6px; }
.nots { list-style: none; padding: 0; }
.nots li { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line); }
.nots li:last-child { border-bottom: 1px solid var(--line); }
.nots b { font-family: var(--display); font-stretch: 110%; font-size: var(--step-1); }
.nots span { color: var(--ink-2); }
@media (max-width: 860px) {
  .step, .step:nth-of-type(n), .checkpoint:nth-of-type(n) { margin-inline: 0; }
  .step { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .step__body { grid-template-columns: minmax(0, 1fr); }
  .figures { grid-template-columns: minmax(0, 1fr); }
  .figures > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* Notre approche */
.quote-band { border-bottom: 1px solid var(--line); }
.quote-band .wrap { padding-block: clamp(56px, 8vw, 112px) clamp(48px, 6vw, 80px); }
.quote-band blockquote p { font-family: var(--display); font-stretch: 106%; font-style: italic; font-weight: 500; font-size: clamp(1.6rem, 1rem + 2.2vw, 2.7rem); line-height: 1.22; max-width: 30ch; text-wrap: balance; }
.quote-band blockquote p::before { content: "\00ab\00a0"; color: var(--accent); }
.quote-band blockquote p::after { content: "\00a0\00bb"; color: var(--accent); }
.quote-band figcaption { margin-top: 22px; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.duo figure { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 18px 14px; }
.duo svg { display: block; width: 100%; height: auto; }
.duo figcaption { margin-top: 10px; font-family: var(--display); font-stretch: 110%; font-weight: 700; }
.duo figcaption span { display: block; font-family: var(--body); font-stretch: 100%; font-weight: 400; font-size: .9rem; color: var(--ink-2); margin-top: 2px; }
.d-node { fill: var(--ink); } .d-line { stroke: var(--ink); stroke-width: 2; fill: none; } .d-acc { stroke: var(--accent); stroke-width: 2.5; fill: none; } .d-acc-fill { fill: var(--accent); }
@media (max-width: 520px) { .duo { grid-template-columns: minmax(0, 1fr); } }
.principles { border-top: 2px solid var(--ink); }
.principle { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); padding-block: clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--line); }
.principle h2 { font-size: var(--step-2); }
.principle__text { font-size: var(--step-1); line-height: 1.45; max-width: 50ch; }
.principle__ex { margin-top: 20px; padding: 16px 18px; background: var(--paper-2); border-radius: var(--radius); }
.principle__ex p { margin-top: 6px; color: var(--ink-2); font-size: .97rem; }
@media (max-width: 860px) { .principle { grid-template-columns: minmax(0, 1fr); } }
.track { list-style: none; padding: 0; margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.track li { position: relative; padding-right: 18px; min-width: 0; }
.track li::after { content: ""; position: absolute; left: 36px; right: 0; top: 17px; border-top: 2px solid var(--accent); }
.track li:last-child::after { display: none; }
.track__dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-hover); font-weight: 700; }
.track b { display: block; margin-top: 14px; font-family: var(--display); font-stretch: 108%; font-size: 1.08rem; }
.track span:not(.track__dot) { display: block; margin-top: 4px; color: var(--ink-2); font-size: .93rem; }
@media (max-width: 760px) {
  .track { grid-template-columns: minmax(0, 1fr); }
  .track li { padding: 0 0 22px 52px; }
  .track__dot { position: absolute; left: 0; top: 0; }
  .track li::after { left: 17px; right: auto; top: 36px; bottom: 0; border-top: 0; border-left: 2px solid var(--accent); }
  .track b { margin-top: 4px; }
}

/* Exemples : cas d'étude */
.case-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); align-items: end; padding-bottom: 32px; border-bottom: 2px solid var(--ink); }
.case-head h2 { margin-top: 12px; }
.meta { display: grid; gap: 10px; font-size: .95rem; }
.meta div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.meta dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding-top: 3px; }
.meta dd { margin: 0; }
.status { font-family: var(--display); font-stretch: 108%; font-weight: 700; color: var(--accent); }
.block { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(20px, 4vw, 56px); padding-block: 40px; border-bottom: 1px solid var(--line); }
.block__label { padding-top: 6px; }
.block__big { font-family: var(--display); font-stretch: 108%; font-weight: 600; font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); line-height: 1.3; max-width: 34ch; }
.block__text { color: var(--ink-2); margin-top: 12px; max-width: 62ch; }
@media (max-width: 860px) { .case-head, .block { grid-template-columns: minmax(0, 1fr); } }
.fails { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.fails > div { padding: 20px 22px; min-width: 0; }
.fails > div + div { border-left: 1px solid var(--line); }
.fails b { display: block; font-family: var(--display); font-stretch: 108%; font-size: 1.1rem; }
.fails p { margin-top: 8px; color: var(--ink-2); font-size: .95rem; }
.fails .cote { margin-top: 12px; color: var(--accent); }
@media (max-width: 860px) { .fails { grid-template-columns: minmax(0, 1fr); } .fails > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.pipes { display: grid; gap: 22px; margin-top: 28px; }
.pipes svg { display: block; width: 100%; height: auto; }
.pipes figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-top: 8px; font-size: .95rem; }
.pipes figcaption b { font-family: var(--display); font-stretch: 108%; }
.pipes figcaption span { color: var(--ink-2); }
.p-steel { fill: var(--ink-2); } .p-water { fill: var(--water); } .p-wheel { fill: var(--water); stroke: var(--accent); stroke-width: 2.5; } .p-gas { fill: var(--paper-2); } .p-tool { fill: var(--ink); } .p-acc { stroke: var(--accent); fill: none; }
.proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.proof h3 { margin-bottom: 10px; }
.proof ul { padding-left: 1.1em; display: grid; gap: 6px; color: var(--ink-2); font-size: .97rem; }
.proof li::marker { color: var(--accent); }
.proof .card--pending { border-style: dashed; background: transparent; }
@media (max-width: 620px) { .proof { grid-template-columns: minmax(0, 1fr); } }
.situations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 36px; border-top: 1px solid var(--line); }
.situation { padding: 26px 28px 28px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.situation:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--line); }
.situation p { margin-top: 8px; color: var(--ink-2); }
@media (max-width: 720px) { .situations { grid-template-columns: minmax(0, 1fr); } .situation:nth-child(even) { padding-left: 0; border-left: 0; } }

/* Partenaires */
.model svg { display: block; width: 100%; height: auto; }
.m-box { fill: var(--ink); } .m-box-t { fill: var(--paper); font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 17px; }
.m-hata { fill: var(--accent); } .m-hata-t { fill: var(--on-accent); font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 17px; }
.m-line { stroke: var(--line); stroke-width: 2; fill: none; } .m-arm { fill: var(--line); }
.m-acc { stroke: var(--accent); stroke-width: 2.5; fill: none; } .m-arr { fill: var(--accent); }
.m-lbl { fill: var(--ink-2); font-family: var(--body); font-size: 14px; }
.m-lbl-acc { fill: var(--accent); font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; }
.roles { list-style: none; padding: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.roles li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(12px, 4vw, 48px); padding: 22px 0; border-bottom: 1px solid var(--line); }
.roles b { font-family: var(--display); font-stretch: 108%; font-size: 1.15rem; }
.roles span { color: var(--ink-2); }
@media (max-width: 720px) { .roles li { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin-top: 32px; }
.paths__item { display: flex; flex-direction: column; gap: 12px; color: inherit; text-decoration: none; transition: box-shadow .2s ease, transform .2s ease; }
.paths__item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.paths__item h3 { font-size: var(--step-1); }
.paths__item p:not(.cote) { color: var(--ink-2); }
.paths__item .link { margin-top: auto; align-self: flex-start; }
@media (max-width: 860px) { .paths { grid-template-columns: minmax(0, 1fr); } }
.profiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin-top: 40px; }
.profiles .card { display: flex; flex-direction: column; gap: 12px; }
.profiles h3 { font-size: var(--step-1); }
.profiles p { color: var(--ink-2); }
.profiles__gain { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.profiles__gain b { display: block; font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
@media (max-width: 860px) { .profiles { grid-template-columns: minmax(0, 1fr); } }

.commit { list-style: none; padding: 0; display: grid; gap: 22px; margin-top: 24px; }
.commit b { display: block; font-family: var(--display); font-stretch: 108%; font-size: 1.15rem; }
.commit span { display: block; color: var(--ink-2); margin-top: 4px; }

/* À propos */
.founder { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.photo-slot { aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center; border: 1.5px dashed var(--flag); border-radius: var(--radius-lg); color: var(--flag); font-family: var(--mono); font-size: .8rem; background: var(--paper-2); padding: 16px; }
.founder__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); background: var(--paper-2); }
.idstrip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; border-block: 1px solid var(--line); }
.idstrip > div { padding: 16px 16px 16px 0; min-width: 0; }
.idstrip > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.idstrip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .idstrip { grid-template-columns: minmax(0, 1fr); }
  .idstrip > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .idstrip > div + div { border-top: 1px solid var(--line); }
}
.idstrip dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.idstrip dd { margin: 6px 0 0; font-family: var(--display); font-stretch: 108%; font-weight: 700; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; border-top: 2px solid var(--ink); }
.values > div { padding: 24px 28px 0 0; min-width: 0; }
.values > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.values p { margin-top: 8px; color: var(--ink-2); }
@media (max-width: 860px) {
  .founder { grid-template-columns: minmax(0, 1fr); }
  .photo-slot, .founder__photo { max-width: 320px; }
  .values { grid-template-columns: minmax(0, 1fr); }
  .values > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 22px; }
}

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.form { display: grid; gap: 28px; }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 18px; min-width: 0; }
.form legend { padding: 0; margin-bottom: 4px; font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: 1.3rem; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; font-weight: 500; font-size: .95rem; }
.choice input { margin-top: 4px; accent-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.consent input { margin-top: 4px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.notice { border-radius: var(--radius); padding: 14px 16px; font-size: .95rem; background: var(--accent-soft); color: var(--ink); }
.notice--err { background: color-mix(in srgb, var(--error) 12%, transparent); }
.notice b { display: block; font-family: var(--display); font-stretch: 108%; }
.aside { display: grid; gap: 36px; position: sticky; top: calc(var(--header-h) + 24px); }
.next { list-style: none; padding: 0; margin-top: 16px; }
.next li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.next li:last-child { border-bottom: 1px solid var(--line); }
.next__k { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--accent); }
.next b { display: block; font-family: var(--display); font-stretch: 108%; }
.next li > div > span { display: block; color: var(--ink-2); font-size: .93rem; margin-top: 2px; }
.mailrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.copy { font: inherit; font-size: .85rem; color: var(--ink); background: transparent; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 4px 10px; cursor: pointer; }
.copy:hover { border-color: var(--ink); }
@media (max-width: 960px) { .contact { grid-template-columns: minmax(0, 1fr); } .aside { position: static; } }
@media (max-width: 620px) { .row2, .choices { grid-template-columns: minmax(0, 1fr); } }

/* Texte courant (mentions légales) */
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 12px; color: var(--ink-2); }
.prose a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* Bandeau sombre : bouton secondaire lisible */
.cta-band .btn-secondary { color: var(--on-deep); border-color: var(--on-deep); }
.cta-band .btn-secondary:hover { background: var(--on-deep); color: var(--deep); }

/* Texte courant justifié, avec césure française pour éviter les grands blancs entre les mots.
   Intitulés, titres, boutons, fil d'Ariane, petites mentions et colonnes étroites (cartes, phases)
   restent alignés à gauche : justifiés, ils créeraient de grands blancs entre les mots.
   Sur téléphone, les colonnes sont trop étroites : retour à l'alignement à gauche. */
main p, main li {
  text-align: justify; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 7 3 3;
}
main p.cote, main .cote, main p.crumbs, main .btn-row, main .hint, main .check, main .tag,
main .ops, main .trust, main .refs, main .link, main .error, main figcaption,
main .phase p, main .card p, main .card li, main .fails p, main .principle__ex p,
main .step__body li, main .step__body > div > p, main .duo p, main .proof li, main .values p, main .values span,
main blockquote p, main .step__lede, main .roles b, main .track li {
  text-align: left; hyphens: manual;
}
/* Justifiés aussi, à la demande de Miloud (02/11/2026), parce que leurs colonnes sont assez larges : chapeaux,
   principes, listes à repère, engagements, « ce que nous ne faisons pas » et cartes « Vous êtes… » de l'accueil. */
main .paths .card p:not(.cote) { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 640px) {
  main p, main li, main .paths .card p:not(.cote) { text-align: left; hyphens: manual; }
}

/* Split « intitulé + titre | texte » : l'intitulé passe au-dessus des deux colonnes,
   pour que le texte de droite démarre à la hauteur du titre et non de l'intitulé. */
.split > div:first-child:has(> .eyebrow:first-child + h2:last-child) { display: contents; }
.split > div:first-child > .eyebrow:first-child:has(+ h2:last-child) { grid-column: 1 / -1; margin-bottom: 0; }
.split:has(> div:first-child > .eyebrow:first-child + h2:last-child) { row-gap: 14px; }

/* Titre découpé en lignes imposées : chaque ligne reste entière, la taille s'adapte à la colonne */
.h-lines span { display: block; }
@media (min-width: 861px) { .h-lines { font-size: min(var(--step-3), 3.5vw); } .h-lines span { white-space: nowrap; } }
/* Même principe pour un titre de page : la taille suit la largeur de sa colonne (container), à toutes les largeurs */
.title-fit { container-type: inline-size; }
.title-fit h1 { font-size: min(var(--step-4), 9.5cqi); }
.title-fit h1 span { display: block; white-space: nowrap; }
.title-fit--long h1 { font-size: min(var(--step-4), 7cqi); }   /* lignes jusqu'à ~27 caractères (Partenaires) */
