/* ==========================================================================
   Soudinvest — feuille de style unique (maquette C « Ligne de process »)
   Sans framework. Animations en CSS pur, toutes dans @supports avec repli statique.
   ========================================================================== */

@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/outfit-latin-700-normal.woff2") format("woff2"); }

:root {
  --paper: #FAFAF7;
  --white: #FFFFFF;
  --ink: #101820;
  --ink-2: #3B4652;
  --ink-3: #5C6773;
  --accent: #2148D6;
  --accent-dark: #132E94;
  --accent-soft: #E9EEFB;
  --pipe: #2A3542;
  --flow: #7FA2FF;
  --pipe-text: #9AA7B5;
  --line: #E6E6E0;
  --field: #7A8592;
  --footer-text: #D7DEE6;
  --ok: #1E6B34;
  --error: #B42318;
  --radius-pill: 30px;
  --radius-card: 18px;
  --wrap: 1240px;
  --gutter: 24px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; overflow-wrap: break-word; hyphens: manual; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius-pill); text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 16px 26px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: background-color .25s, color .25s;
}
.btn:hover { background: var(--accent-dark); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--accent-soft); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); padding: 14.5px 24.5px; }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--small { padding: 11px 20px; font-size: 16px; }
.btn--ghost.btn--small { padding: 9.5px 18.5px; }
.btn--choice { background: var(--ink); color: var(--white); }
.btn--choice:hover { background: var(--accent); color: var(--white); }
.arrow { display: inline-block; }

/* ---------- En-tête et pastilles de navigation ---------- */
.site-header {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 5;
}
.logo { text-decoration: none; color: var(--ink); font-weight: 700; font-size: 23px; line-height: 1.3; }
.logo:hover { color: var(--ink); }
.logo span { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip, .nav-sub > summary {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--ink);
  line-height: 1.3;
  transition: background-color .3s, color .3s;
  cursor: pointer;
}
.chip:hover, .nav-sub > summary:hover { background: var(--accent); color: var(--white); }
.chip[aria-current="page"], .nav-sub.is-current > summary { background: var(--accent-soft); color: var(--accent-dark); }
.chip[aria-current="page"]:hover { background: var(--accent); color: var(--white); }
.chip--dark { background: var(--ink); color: var(--white); padding: 10px 18px; }
.chip--dark:hover, .chip--dark[aria-current="page"] { background: var(--accent); color: var(--white); }

.nav-sub { position: relative; }
.nav-sub > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.nav-sub > summary::-webkit-details-marker { display: none; }
.nav-sub > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.nav-sub[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.nav-sub ul {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: 0 18px 40px rgb(16 24 32 / .12);
}
.nav-sub li a { display: block; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.nav-sub li a:hover, .nav-sub li a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-dark); }

.burger {
  display: none;
  align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid currentColor; color: inherit;
  border-radius: 8px; width: 46px; height: 46px; padding: 0; cursor: pointer;
}
.burger .icon-close { display: none; }
.site-header.is-open .burger .icon-close { display: block; }
.site-header.is-open .burger .icon-open { display: none; }

@media (max-width: 760px) {
  .burger { display: inline-flex; }
  .site-header .nav { display: none; }
  .site-header.is-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    width: 100%; padding: 12px 0 4px; border-top: 1px solid var(--line);
    opacity: 1; translate: 0 0;
    transition: opacity .25s ease, translate .25s ease;
  }
  @starting-style {
    .site-header.is-open .nav { opacity: 0; translate: 0 -8px; }
  }
  .site-header.is-open .chip, .site-header.is-open .nav-sub > summary { padding: 14px 16px; font-size: 18px; }
  .site-header.is-open .chip--dark { text-align: center; margin-top: 8px; }
  .nav-sub ul { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; background: transparent; }
}

/* ---------- Bandeau principal (accueil) ---------- */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: 56px var(--gutter) 72px;
  display: flex; flex-wrap: wrap; gap: 40px; align-items: center;
}
.hero__text { flex: 1 1 460px; min-width: 0; }
.hero h1, .page-hero h1 { margin: 0; font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -.03em; font-weight: 700; }
.lead { margin: 22px 0 0; font-size: 19px; line-height: 1.65; color: var(--ink-2); max-width: 520px; }
.hero .btn, .page-hero .btn { margin-top: 30px; }
.hero__visual { flex: 1 1 440px; min-width: 0; background: var(--ink); border-radius: 24px; padding: 28px; }
.pipe { display: block; width: 100%; height: auto; }
.pipe__bed { fill: none; stroke: var(--pipe); stroke-width: 22; stroke-linejoin: round; }
.pipe__flow { fill: none; stroke: var(--flow); stroke-width: 6; stroke-linejoin: round; stroke-dasharray: 16 24; }
.pipe__node { fill: var(--paper); }
.pipe__label { font-family: var(--font); font-size: 14px; fill: var(--pipe-text); }

/* ---------- Bandeau des pages intérieures ---------- */
.page-hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: 32px var(--gutter) 64px;
  display: flex; flex-wrap: wrap; gap: 40px; align-items: center;
}
.page-hero__text { flex: 1 1 520px; min-width: 0; }
.page-hero h1 { font-size: clamp(38px, 4.6vw, 62px); }
.page-hero .lead { max-width: 620px; }
.page-hero__aside { flex: 1 1 380px; min-width: 0; background: var(--ink); color: var(--footer-text); border-radius: 24px; padding: 28px 30px; }
.page-hero__aside h2 { color: var(--white); font-size: 20px; margin: 0 0 14px; letter-spacing: 0; }
.page-hero__aside :is(ul, ol) { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.page-hero__aside li { counter-increment: none; }
.page-hero__aside li { position: relative; padding-left: 26px; line-height: 1.45; }
.page-hero__aside a { color: var(--white); }
.page-hero__aside li::before { content: ""; position: absolute; left: 0; top: .42em; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--flow); }
.page-hero--plain { padding-bottom: 40px; }

.breadcrumb { margin: 0 0 22px; font-size: 15px; color: var(--ink-3); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--ink-3); }
.breadcrumb a { color: var(--ink-2); }

/* ---------- Sections ---------- */
.band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section { max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gutter); }
.section + .section { padding-top: 0; }
.band + .section, .section + .band { margin-top: 0; }
.section-title { margin: 0 0 44px; font-size: 42px; line-height: 1.2; letter-spacing: -.02em; }
.section-title--tight { margin-bottom: 28px; }
.section-intro { margin: -24px 0 40px; max-width: 720px; color: var(--ink-2); font-size: 18px; }

/* ---------- Ligne de méthode en 5 étapes ---------- */
.process { position: relative; padding-left: 56px; }
.process__line { position: absolute; left: 18px; top: 8px; bottom: 8px; width: 3px; background: var(--accent); display: block; transform-origin: top; }
.process__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 34px; }
.step { position: relative; }
.step--media { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.step__dot { position: absolute; left: -48px; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 3px solid var(--accent); }
.step__body { flex: 1 1 360px; min-width: 0; }
.step h3 { margin: 0 0 6px; font-size: 23px; line-height: 1.3; }
.step p { margin: 0; color: var(--ink-2); line-height: 1.6; max-width: 720px; }
.step p + p { margin-top: 10px; }
.step__more { margin-top: 12px !important; }
.step__img { flex: 1 1 320px; min-width: 0; max-width: 460px; display: block; }
.step__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }

/* ---------- Cartes ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: border-color .25s, translate .25s;
}
.card:has(a:hover) { border-color: var(--accent); }
.card h2, .card h3 { margin: 0; font-size: 23px; line-height: 1.25; }
.card p { margin: 0; color: var(--ink-2); }
.card__link { margin-top: auto; padding-top: 8px; font-weight: 600; text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__num { font-weight: 600; color: var(--accent); font-size: 15px; letter-spacing: .04em; }
.card--plain { background: transparent; }

.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.logo-tile { height: 90px; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--ink-3); padding: 12px; text-align: center; }
.logo-tile img { max-height: 60px; width: auto; object-fit: contain; }

/* ---------- Contenu éditorial ---------- */
.content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 1000px) { .content--aside { grid-template-columns: minmax(0, 1fr) 340px; } }
.prose { max-width: 760px; color: var(--ink-2); font-size: 17px; }
.prose h2 { color: var(--ink); font-size: clamp(28px, 2.6vw, 34px); letter-spacing: -.02em; margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--ink); font-size: 22px; margin: 32px 0 10px; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.2em; display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 26px; }
.prose li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose figure { margin: 36px 0; }
.prose figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-card); }
.prose figcaption { font-size: 15px; color: var(--ink-3); margin-top: 8px; }

.aside-box { position: sticky; top: 24px; align-self: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px; display: grid; gap: 12px; }
.aside-box h2 { margin: 0; font-size: 21px; }
.aside-box p { margin: 0; color: var(--ink-2); }
.aside-box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.aside-box .cards { gap: 0; }
.aside-box .card { padding: 14px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; gap: 4px; }
.aside-box .card h3 { font-size: 19px; }

/* Figure isolée */
.figure-wide { margin: 0; }
.figure-wide img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 24px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 600; font-size: 19px; position: relative; list-style: none; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; translate: 0 -50%; font-size: 26px; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 20px; color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Bloc d'appel à l'action ---------- */
.cta-band { background: var(--accent-soft); border-radius: 24px; padding: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0 0 6px; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.02em; }
.cta-band p { margin: 0; color: var(--ink-2); max-width: 640px; }

/* ---------- Offres et références ---------- */
.list-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.offer { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px 28px; }
.offer h3 { margin: 0 0 6px; font-size: 23px; }
.offer__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.offer__meta li { background: var(--accent-soft); color: var(--accent-dark); border-radius: var(--radius-pill); padding: 4px 12px; font-size: 15px; }
.offer p { color: var(--ink-2); }
.ref-card figure { margin: 0 0 6px; }
.ref-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.ref-card__tag { font-size: 15px; color: var(--accent-dark); font-weight: 600; }
.placeholder-note { color: var(--ink-3); font-style: italic; }

/* ---------- Coordonnées ---------- */
.contact-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 360px minmax(0, 1fr); } }
.coords { display: grid; gap: 18px; align-content: start; }
.coords dl { margin: 0; display: grid; gap: 14px; }
.coords dt { font-weight: 600; }
.coords dd { margin: 0; color: var(--ink-2); }

/* ---------- Formulaires ---------- */
.form { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; container-type: inline-size; }
.form__row { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@container (min-width: 560px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: 16px; }
.field .hint { font-size: 14px; color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--field); border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input[type="file"] { padding: 10px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field:has([aria-invalid="true"]) input, .field:has([aria-invalid="true"]) select, .field:has([aria-invalid="true"]) textarea { border-color: var(--error); }
.field__error { color: var(--error); font-size: 15px; min-height: 0; }
.field__error:empty { display: none; }
.req { color: var(--error); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__consent { font-size: 15px; color: var(--ink-3); margin: 0; }
.form__status { margin: 0; padding: 0; border-radius: 12px; font-weight: 600; }
.form__status:not(:empty) { padding: 14px 18px; }
.form__status.is-ok { background: #E6F4EA; color: var(--ok); opacity: 1; transition: opacity .4s; }
@starting-style { .form__status.is-ok { opacity: 0; } }
.form__status.is-error { background: #FDECEA; color: var(--error); }
.form button[disabled] { opacity: .6; cursor: progress; }

/* ---------- Champ fichier (amélioré par JS ; sans JS, le champ natif reste visible) ---------- */
.file { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.file__ui, .file__name, .file__clear { display: none; }
.file.is-enhanced .file__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); padding: 0; border: 0; min-height: 0; }
.file.is-enhanced .file__ui { display: inline-flex; }
.file.is-enhanced .file__name { display: inline; color: var(--ink-3); font-size: 16px; overflow-wrap: anywhere; min-width: 0; }
.file.is-enhanced.has-file .file__name { color: var(--ink); font-weight: 600; }
.file.is-enhanced .file__clear:not([hidden]) { display: inline-block; }
.file__btn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--ink); border-radius: var(--radius-pill); padding: 10px 18px; font-weight: 600; cursor: pointer; background: var(--white); transition: background-color .25s, color .25s; }
.file__btn::before { content: ""; width: 14px; height: 14px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 16V4M6 10l6-6 6 6M4 20h16'/%3E%3C/svg%3E") center / contain no-repeat; }
.file__ui:hover .file__btn { background: var(--ink); color: var(--white); }
.file__input:focus-visible + .file__ui .file__btn { outline: 3px solid var(--accent); outline-offset: 3px; }
.field .file__input:focus-visible { outline: 3px solid var(--accent); }
.file__clear { font: inherit; font-size: 15px; background: none; border: 0; padding: 4px 2px; color: var(--accent); text-decoration: underline; cursor: pointer; }
.file__clear:hover { color: var(--accent-dark); }

/* ---------- Confirmation d'envoi ---------- */
.form-done {
  background: var(--white); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(32px, 5vw, 64px) clamp(22px, 4vw, 56px); min-height: min(560px, 80vh);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px;
  scroll-margin-top: 24px;
}
.form-done__icon { width: 88px; height: 88px; margin-bottom: 8px; }
.form-done__circle { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2.5; }
.form-done__check { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.form-done__title { margin: 0; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.03em; line-height: 1.1; }
.form-done__title:focus { outline: none; }
.form-done__title:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
.form-done__text { margin: 0; font-size: 19px; color: var(--ink-2); max-width: 520px; }
.form-done__recap { margin: 0; color: var(--ink-3); overflow-wrap: anywhere; }
.form-done__recap strong { color: var(--ink); }
.form-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.form-done-page { max-width: 880px; }

/* ---------- Carte (Google Maps après consentement) ---------- */
.map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-card); overflow: hidden; background: var(--ink); color: var(--footer-text); }
.map__placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 24px; text-align: center;
  background:
    linear-gradient(var(--pipe) 1.5px, transparent 1.5px) 0 0 / 36px 36px,
    linear-gradient(90deg, var(--pipe) 1.5px, transparent 1.5px) 0 0 / 36px 36px,
    var(--ink);
}
.map__placeholder p { margin: 0; max-width: 280px; font-size: 16px; line-height: 1.5; }
.map__pin { color: var(--flow); }
.map__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--paper); }
.map.is-loaded .map__placeholder { visibility: hidden; }
.map__link { margin: -6px 0 0; }

/* ---------- Bandeau cookies (non bloquant) ---------- */
.cookie-banner {
  position: fixed; z-index: 30; left: 16px; right: 16px; bottom: 16px;
  max-width: 560px; margin-left: auto;
  background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: 0 24px 60px rgb(16 24 32 / .18);
  max-height: calc(100vh - 32px); overflow: auto;
}
.cookie-banner__inner { padding: 22px 24px; display: grid; gap: 12px; }
.cookie-banner__title { margin: 0; font-size: 21px; letter-spacing: -.01em; }
.cookie-banner__title:focus { outline: none; }
.cookie-banner__title:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.cookie-banner__text { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cookie-banner__actions .btn--choice { flex: 1 1 120px; text-align: center; }
.cookie-banner__more { font: inherit; font-size: 16px; background: none; border: 0; padding: 10px 4px; color: var(--accent); text-decoration: underline; cursor: pointer; }
.cookie-banner__more:hover { color: var(--accent-dark); }
.cookie-banner__details { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.cookie-banner__details > .btn { justify-self: start; }
.cookie-banner__options { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
.cookie-option { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.cookie-option input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.cookie-option label { display: grid; gap: 2px; font-size: 15px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.cookie-option label strong { color: var(--ink); font-size: 16px; }
.cookie-option input:disabled + label { cursor: default; }
@media (min-width: 761px) { .cookie-banner { left: auto; right: 24px; bottom: 24px; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: var(--footer-text); }
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: var(--white); }
.footer-cta { max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter); display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center; }
.footer-cta__title { margin: 0; font-size: 30px; font-weight: 700; color: var(--white); line-height: 1.25; }
.footer-cta p:not(.footer-cta__title) { margin: 8px 0 0; }
.footer-cta .btn--light { color: var(--ink); }
.footer-cta .btn--light:hover { color: var(--ink); }
.footer-nav { max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gutter) 40px; border-top: 1px solid #26313D; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); font-size: 16px; }
.footer-nav h2 { font-size: 16px; color: var(--white); margin: 0 0 10px; letter-spacing: .02em; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-nav a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s ease; }
.footer-nav a:hover, .footer-nav a:focus-visible { background-size: 100% 1px; }
.footer-legal { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 32px; font-size: 14px; color: #A9B4C0; }
.footer-legal p { margin: 0; }
/* Pied de page toujours centré */
.footer-cta { justify-content: center; text-align: center; }
.footer-nav { text-align: center; justify-items: center; }
.footer-nav ul { justify-items: center; }
.footer-legal { text-align: center; }
.footer-legal .footer-credit { margin-top: 8px; font-size: 13px; }

/* ---------- 404 ---------- */
.notfound { min-height: 40vh; }

/* ==========================================================================
   Animations — toutes conditionnées : repli statique propre si non supportées
   ========================================================================== */
@keyframes flow { to { stroke-dashoffset: -80; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes enter { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

@media (prefers-reduced-motion: no-preference) {
  /* Schéma de tuyauterie : fluide animé par stroke-dashoffset */
  @supports (stroke-dashoffset: 0) {
    .pipe__flow { animation: flow 1.6s linear infinite; }
  }

  /* Ligne de méthode qui se dessine au défilement (scroll-driven animations) */
  @supports (animation-timeline: view()) {
    .process__line { animation: grow linear both; animation-timeline: view(); animation-range: entry 10% exit 60%; }
    .step { animation: enter linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    /* léger décalage progressif entre les étapes */
    .step:nth-child(2) { animation-range: entry 4% entry 74%; }
    .step:nth-child(3) { animation-range: entry 8% entry 78%; }
    .step:nth-child(4) { animation-range: entry 12% entry 82%; }
    .step:nth-child(5) { animation-range: entry 16% entry 86%; }
    .step__img { animation: unveil linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
  }

  /* Transitions entre pages (View Transitions API, navigation multi-pages) */
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

  /* Apparition douce du schéma au chargement (le H1, élément LCP, n'est pas retardé) */
  .hero__visual { opacity: 1; translate: 0 0; transition: opacity .6s ease, translate .6s ease; }
  @starting-style { .hero__visual { opacity: 0; translate: 0 12px; } }

  /* ----- Bandeaux : titre (déplacement seul, jamais masqué : LCP), texte et bouton en fondu montant ----- */
  .hero h1, .page-hero h1 { animation: title-in .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .lead, .page-hero .lead { animation: fade-up .7s .12s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .btn, .page-hero .btn { animation: fade-up .7s .24s cubic-bezier(.2, .7, .2, 1) both; }

  /* ----- Schéma de tuyauterie : tracé au chargement, fluide continu, nœuds qui « respirent » ----- */
  .pipe__bed { stroke-dasharray: 680; animation: draw-bed 1.4s .1s cubic-bezier(.6, 0, .2, 1) both; }
  .pipe__node { transform-box: fill-box; transform-origin: center; animation: node-pulse 2.4s ease-in-out infinite; }
  .pipe__node:nth-of-type(2) { animation-delay: .6s; }
  .pipe__node:nth-of-type(3) { animation-delay: 1.2s; }
  .pipe__node:nth-of-type(4) { animation-delay: 1.8s; }

  /* ----- Micro-interactions ----- */
  .btn { transition: background-color .25s, color .25s, translate .2s ease, scale .12s ease; }
  .btn:hover { translate: 0 -1px; }
  .btn:active { scale: .97; translate: 0 0; }
  .card__link .arrow, .step__more .arrow { transition: translate .25s cubic-bezier(.2, .7, .2, 1); }
  .card:hover .card__link .arrow, .step__more a:hover .arrow { translate: 4px 0; }
  .card:has(.card__link) { transition: border-color .25s, translate .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
  .card:has(.card__link):hover { translate: 0 -4px; box-shadow: 0 18px 40px rgb(16 24 32 / .10); }
  @media (min-width: 761px) {
    .nav-sub[open] ul { opacity: 1; translate: 0 0; transition: opacity .2s ease, translate .25s cubic-bezier(.2, .7, .2, 1); }
    @starting-style { .nav-sub[open] ul { opacity: 0; translate: 0 -6px; } }
  }
  @supports selector(::details-content) {
    .faq details { interpolate-size: allow-keywords; }
    .faq details::details-content { height: 0; overflow: clip; transition: height .3s ease, content-visibility .3s allow-discrete; }
    .faq details[open]::details-content { height: auto; }
  }

  /* ----- Bandeau cookies et confirmation ----- */
  .cookie-banner { opacity: 1; translate: 0 0; transition: opacity .3s ease, translate .35s cubic-bezier(.2, .7, .2, 1); }
  @starting-style { .cookie-banner { opacity: 0; translate: 0 16px; } }
  .map__frame { animation: fade-in .4s ease both; }
  .form-done { animation: fade-up .5s cubic-bezier(.2, .7, .2, 1) both; }
  .form-done__circle { stroke-dasharray: 151; stroke-dashoffset: 0; animation: draw-circle .6s .1s ease-out both; }
  .form-done__check { stroke-dasharray: 34; stroke-dashoffset: 0; animation: draw-check .45s .55s cubic-bezier(.6, 0, .2, 1) both; }

  /* ----- Révélations au défilement (seulement si animation-timeline existe : sinon tout reste visible) ----- */
  @supports (animation-timeline: view()) {
    .section-title, .section-intro, .cards > *, .faq details, .cta-band, .logos > *, .offer, .aside-box, .contact-grid > *, .prose > h2 {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%;
    }
    .cards > :nth-child(2) { animation-range: entry 4% entry 60%; }
    .cards > :nth-child(3) { animation-range: entry 8% entry 65%; }
    .cards > :nth-child(4) { animation-range: entry 12% entry 70%; }
    .faq details:nth-child(2) { animation-range: entry 4% entry 60%; }
    .faq details:nth-child(3) { animation-range: entry 8% entry 65%; }
    .prose figure { overflow: hidden; border-radius: var(--radius-card); animation: unveil linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    .prose figure img { animation: parallax linear both; animation-timeline: view(); animation-range: cover; }
    .step__img img { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  }

  /* ----- Transitions entre pages : en-tête fixe, contenu en fondu glissé ----- */
  .site-header { view-transition-name: site-header; }
  main { view-transition-name: main; }
  ::view-transition-old(main) { animation: .2s ease both vt-out; }
  ::view-transition-new(main) { animation: .32s .05s cubic-bezier(.2, .7, .2, 1) both vt-in; }
}

@keyframes title-in { from { transform: translateY(18px); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes draw-bed { from { stroke-dashoffset: 680; } to { stroke-dashoffset: 0; } }
@keyframes node-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes draw-circle { from { stroke-dashoffset: 151; } to { stroke-dashoffset: 0; } }
@keyframes draw-check { from { stroke-dashoffset: 34; } to { stroke-dashoffset: 0; } }
@keyframes parallax { from { transform: translateY(-4%) scale(1.1); } to { transform: translateY(4%) scale(1.1); } }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header .nav, .burger, .footer-nav, .form, .cookie-banner, .map { display: none !important; }
  body { background: #fff; }
}

/* Bandeau d'aperçu (admin, pages non publiées) */
.preview-flag { position: sticky; top: 0; z-index: 20; background: #A3541F; color: #fff; text-align: center; font-weight: 600; padding: 8px 16px; }
