/* =========================================================================
   D-EVIDENCES - feuille de style principale
   Palette de marque : vert sauge #95A77F, anthracite chaud, papier neutre.
   Rayon unique de 2px sur tous les éléments. Thème clair et sombre.
   ========================================================================= */

/* ---------- Polices auto-hébergées ---------- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/playfair-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/playfair-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/playfair-var-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/manrope-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/manrope-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Jetons de design ---------- */
:root {
  --sage:        #95a77f;
  --sage-deep:   #4c5c39;
  --sage-hover:  #3d4a2d;
  --sage-wash:   #eef1e9;
  --sage-line:   #cdd6c0;

  --paper:       #fcfcfb;
  --paper-2:     #f1f2ee;
  /* Bloc anthracite de marque : reste sombre dans les deux thèmes, contrairement à --ink
     qui est la couleur du texte et s'inverse. */
  --ink-surface: #23261f;
  --on-ink:      #f4f5f0;
  --on-ink-2:    #b9bdb0;
  --on-ink-3:    #8f9486;
  --on-ink-line: rgba(255, 255, 255, .09);
  --paper-3:     #e7e9e2;
  --surface:     #ffffff;
  --ink:         #23261f;
  --ink-2:       #565b4e;
  --ink-3:       #7d8274;
  --line:        #e0e2d9;
  --line-strong: #c8ccbf;

  --danger:      #9a3b26;
  --danger-wash: #f8ece8;
  --info-wash:   #eaeeef;

  --radius:      2px;
  --wrap:        1240px;
  --gutter:      clamp(1.25rem, 4vw, 3rem);

  --shadow-sm:   0 1px 2px rgba(35, 38, 31, .06);
  --shadow-md:   0 12px 32px -12px rgba(35, 38, 31, .18);
  --shadow-lg:   0 28px 64px -28px rgba(35, 38, 31, .28);

  --ease:        cubic-bezier(.16, 1, .3, 1);
  --dur:         .28s;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sage:        #a8ba8e;
    --sage-deep:   #a8ba8e;
    --sage-hover:  #bdcda5;
    --sage-wash:   #232a1d;
    --sage-line:   #3c4733;

    --paper:       #191b16;
    --paper-2:     #20231c;
    --ink-surface: #101209;
    --on-ink:      #f0f1ea;
    --on-ink-2:    #b3b8a8;
    --on-ink-3:    #8a8f80;
    --on-ink-line: rgba(255, 255, 255, .10);
    --paper-3:     #282c23;
    --surface:     #1e211a;
    --ink:         #eff0e9;
    --ink-2:       #b3b8a8;
    --ink-3:       #8d9384;
    --line:        #333729;
    --line-strong: #454b3a;

    --danger:      #e0937e;
    --danger-wash: #2c211d;
    --info-wash:   #21262a;

    --shadow-sm:   0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md:   0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg:   0 28px 64px -28px rgba(0, 0, 0, .75);

    color-scheme: dark;
  }
}

/* ---------- Remise à zéro ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* Doit primer sur les display: des composants, sinon un bouton masqué reste visible. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--sage-deep);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: var(--radius);
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* ---------- Typographie ---------- */
.display, h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.005em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 1.4rem + 3vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.1vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }

h4, h5 {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

/* Titre de section repris de la charte : mot en anthracite, mot en sauge. */
.section-title {
  text-transform: uppercase;
  letter-spacing: .012em;
  font-weight: 700;
}
.section-title em { font-style: normal; color: var(--sage-deep); }

/* Trait court sous le titre, signature graphique de la marque. */
.rule {
  display: block;
  width: 2.25rem;
  height: 2px;
  margin: 1.1rem 0 0;
  background: var(--sage);
  border: 0;
}
.rule::after {
  content: '';
  display: block;
  width: 3px; height: 3px;
  background: var(--sage);
  margin: 5px 0 0 3.25rem;
}

p { margin: 0 0 1.1rem; }
.lede {
  font-size: clamp(1.05rem, 1rem + .35vw, 1.24rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}
.prose { max-width: 68ch; color: var(--ink-2); }
.prose h2 { margin: 3rem 0 .25rem; }
.prose h3 { margin: 2.25rem 0 .5rem; color: var(--ink); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 1.15rem; margin: 0 0 1.25rem; }
.prose li { margin-bottom: .5rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: .7rem .9rem; vertical-align: top; }
.prose thead th { background: var(--paper-2); color: var(--ink); font-weight: 600; }
.prose tbody tr + tr td { border-top: 1px solid var(--line); }

.eyebrow {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 .9rem;
}

.muted { color: var(--ink-2); }
.small { font-size: .875rem; }

/* ---------- Grille ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 820px; }

.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-tint { background: var(--paper-2); }
.section-ink { background: var(--ink-surface); color: var(--on-ink); }
.section-ink h2, .section-ink h3, .section-ink .section-title { color: var(--on-ink); }
.section-ink .section-title em { color: var(--sage); }
.section-ink .lede, .section-ink p { color: var(--on-ink-2); }

.stack > * + * { margin-top: var(--gap, 1rem); }

/* ---------- Icônes ---------- */
.ic {
  /* Le reset passe les svg en display:block ; il faut le neutraliser
     pour les icônes posées au fil du texte. */
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
  flex: none;
  vertical-align: -.22em;
}
.ic-lg { width: 1.75rem; height: 1.75rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .78rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--sage-deep); color: #fff; }
.btn-primary:hover { background: var(--sage-hover); }
@media (prefers-color-scheme: dark) {
  .btn-primary { color: #1a1d16; }
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--sage-deep); color: var(--sage-deep); }

.btn-ghost { background: transparent; color: var(--sage-deep); padding-inline: 0; }
.btn-ghost:hover { color: var(--sage-hover); }
.btn-ghost .ic { transition: transform var(--dur) var(--ease); }
.btn-ghost:hover .ic { transform: translateX(3px); }

.btn-on-ink { background: var(--sage); color: #1d2018; }
.btn-on-ink:hover { background: #a9bb90; }

.btn-block { width: 100%; }
.btn-sm { padding: .5rem .9rem; font-size: .85rem; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------- En-tête ---------- */
.topbar {
  background: var(--ink-surface);
  color: var(--on-ink-2);
  font-size: .84rem;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 40px;
  padding-block: .35rem;
}
.topbar a { text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar-note { color: #9aa091; }
@media (max-width: 767px) { .topbar-note { display: none; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--paper); }
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { width: 168px; height: auto; }
.brand-light { display: none; }
@media (prefers-color-scheme: dark) {
  .brand-dark { display: none; }
  .brand-light { display: block; }
}

.nav { display: flex; align-items: center; gap: clamp(.85rem, 1.6vw, 1.6rem); }
.nav a {
  text-decoration: none;
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current='page'] { color: var(--ink); border-bottom-color: var(--sage); }

.header-cta { display: flex; align-items: center; gap: .75rem; flex: none; }
.header-cta .label-long  { display: inline; }
.header-cta .label-short { display: none; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: .5rem .6rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 767px) {
  .brand img { width: 132px; }
  .header-cta .btn { padding-inline: .95rem; font-size: .88rem; }
  .header-cta .label-long  { display: none; }
  .header-cta .label-short { display: inline; }
  .site-header .wrap { gap: .75rem; min-height: 64px; }
}

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 0 0 auto;
    top: var(--header-offset, 72px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: .5rem var(--gutter) 1.25rem;
    max-height: calc(100dvh - var(--header-offset, 72px));
    overflow-y: auto;
  }
  .nav[hidden] { display: none; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a[aria-current='page'] { border-bottom-color: var(--sage); }
  .header-cta .btn-outline { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.1rem; font-size: clamp(2.05rem, 1.35rem + 2.5vw, 3.05rem); }
.hero h1 em { font-style: normal; color: var(--sage-deep); }
.hero .lede { margin-bottom: 1.75rem; }
@media (max-width: 979px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Carte formulaire du hero */
.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--sage);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-md);
}
.quote-card h2 {
  font-size: 1.32rem;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-weight: 700;
}
.quote-card .quote-card-note {
  font-size: .89rem;
  color: var(--ink-2);
  margin: .5rem 0 1.35rem;
}

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.field > label, .fieldset-legend {
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .01em;
}
.field .hint { font-size: .8rem; color: var(--ink-2); }
.req { color: var(--danger); }

.input, .select, .textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: .7rem .85rem;
  font-size: .95rem;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--sage); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 32%, transparent);
}
.textarea { min-height: 128px; resize: vertical; }
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%),
                    linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 559px) { .field-row { grid-template-columns: 1fr; } }

.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.error-msg {
  font-size: .82rem;
  color: var(--danger);
  display: flex;
  align-items: flex-start;
  gap: .35rem;
}

fieldset { border: 0; padding: 0; margin: 0 0 1.35rem; }
.fieldset-legend { display: block; margin-bottom: .6rem; }

/* Choix en cartes radio */
.choice-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: .6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: .8rem .9rem;
  cursor: pointer;
  background: var(--surface);
  font-size: .92rem;
  font-weight: 500;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .dot {
  width: 16px; height: 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  flex: none;
  position: relative;
  transition: border-color var(--dur) var(--ease);
}
.choice:hover { border-color: var(--sage); }
.choice:has(input:checked) { border-color: var(--sage-deep); background: var(--sage-wash); }
.choice:has(input:checked) .dot { border-color: var(--sage-deep); border-width: 5px; }
.choice:has(input:focus-visible) { outline: 2px solid var(--sage-deep); outline-offset: 2px; }

.check {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .86rem;
  color: var(--ink-2);
  line-height: 1.55;
  cursor: pointer;
}
.check input {
  width: 18px; height: 18px;
  margin: .15rem 0 0;
  accent-color: var(--sage-deep);
  flex: none;
}
.check a { color: var(--sage-deep); }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* ---------- Assistant devis par étapes ---------- */
.wizard { max-width: 760px; }
.wizard-progress {
  display: flex;
  gap: .4rem;
  margin-bottom: 2rem;
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.wizard-progress li {
  flex: 1;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: .6rem;
  border-top: 3px solid var(--line);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.wizard-progress li[data-state='done'] { color: var(--ink-2); border-top-color: var(--sage); }
.wizard-progress li[data-state='current'] { color: var(--sage-deep); border-top-color: var(--sage-deep); }
@media (max-width: 639px) {
  .wizard-progress li { font-size: 0; padding-top: .5rem; }
  .wizard-progress li::after { content: ''; }
}

.wizard-step[hidden] { display: none; }
.wizard-step h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); margin-bottom: .35rem; }
.wizard-step > .step-note { color: var(--ink-2); font-size: .93rem; margin-bottom: 1.6rem; }

.wizard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.wizard-nav [data-next], .wizard-nav [data-submit] { margin-left: auto; }
.wizard-nav .btn { white-space: normal; }
@media (max-width: 479px) {
  .wizard-nav { flex-direction: column-reverse; }
  .wizard-nav .btn { width: 100%; margin-left: 0; }
}

/* Récapitulatif des obligations */
.recap {
  background: var(--sage-wash);
  border: 1px solid var(--sage-line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.5rem;
}
.recap h3 { font-family: 'Manrope', sans-serif; font-size: .95rem; font-weight: 700; margin-bottom: .85rem; }
.recap ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.recap li { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: baseline; font-size: .9rem; }
.recap .tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .18rem .45rem;
  border-radius: var(--radius);
  background: var(--sage-deep);
  color: #fff;
  white-space: nowrap;
}
.recap .tag[data-s='verifier'], .recap .tag[data-s='probable'] {
  background: transparent;
  color: var(--sage-deep);
  border: 1px solid var(--sage-deep);
}
@media (prefers-color-scheme: dark) {
  .recap .tag { color: #1a1d16; }
}
.recap .motif { color: var(--ink-2); }

/* ---------- Bandeau de confiance ---------- */
.trust {
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.trust .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 5vw, 4.5rem);
  flex-wrap: wrap;
  padding-block: 1.9rem;
}
.trust img {
  height: 52px;
  width: auto;
  opacity: .92;
  transition: opacity var(--dur) var(--ease);
}
.trust li:hover img { opacity: 1; }
.trust ul { display: contents; list-style: none; margin: 0; padding: 0; }
@media (prefers-color-scheme: dark) {
  /* Les logos sont fournis sur fond blanc : une plaque claire préserve leurs couleurs. */
  .trust li {
    background: #f7f7f4;
    padding: .6rem 1rem;
    border-radius: var(--radius);
  }
  .trust img { opacity: 1; }
}

/* ---------- Grille bento des diagnostics ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.bento-cell {
  grid-column: span 2;
  background: var(--surface);
  padding: clamp(1.35rem, 2.5vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: .7rem;
  text-decoration: none;
  transition: background var(--dur) var(--ease);
  min-height: 200px;
}
.bento-cell:hover { background: var(--sage-wash); }
.bento-cell.is-wide { grid-column: span 3; }
.bento-cell.is-feature {
  grid-column: span 3;
  background: var(--sage-wash);
  box-shadow: inset 3px 0 0 var(--sage);
  min-height: 260px;
}
.bento-cell.is-feature h3 { color: var(--sage-hover); }
.bento-cell.is-feature:hover { background: var(--sage-line); }
.bento-illus { height: 76px; margin-bottom: .1rem; }
.bento-illus svg { height: 100%; width: auto; }
.bento-cell h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -.005em;
}
.bento-cell p { font-size: .89rem; color: var(--ink-2); margin: 0; flex: 1; }
.bento-more {
  font-size: .82rem;
  font-weight: 600;
  color: var(--sage-deep);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.bento-cell:hover .bento-more .ic { transform: translateX(3px); }
.bento-more .ic { transition: transform var(--dur) var(--ease); width: 1rem; height: 1rem; }

@media (max-width: 899px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento-cell, .bento-cell.is-wide, .bento-cell.is-feature { grid-column: span 2; min-height: 0; }
}
@media (max-width: 559px) {
  .bento { grid-template-columns: 1fr; }
  .bento-cell, .bento-cell.is-wide, .bento-cell.is-feature { grid-column: span 1; }
}

/* ---------- Colonnes éditoriales ---------- */
.editorial {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 899px) { .editorial { grid-template-columns: 1fr; } }

.pillars { display: grid; gap: 2rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pillar { display: grid; gap: .5rem; }
.pillar .ic-lg { color: var(--sage-deep); }
.pillar h3 { font-family: 'Manrope', sans-serif; font-size: 1rem; font-weight: 700; }
.pillar p { font-size: .91rem; color: var(--ink-2); margin: 0; }

/* ---------- Déroulé de mission ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.flow > div { background: var(--paper); padding: 1.75rem 1.5rem 1.9rem; }
.flow h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .45rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.flow h3 .ic { color: var(--sage-deep); }
.flow p { font-size: .89rem; color: var(--ink-2); margin: 0; }
.section-tint .flow > div { background: var(--paper-2); }
@media (max-width: 899px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 519px) { .flow { grid-template-columns: 1fr; } }

/* ---------- Agences ---------- */
.agences { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 767px) { .agences { grid-template-columns: 1fr; } }
.agence {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sage);
  border-radius: var(--radius);
  padding: 1.6rem 1.75rem;
}
.agence h3 { font-family: 'Manrope', sans-serif; font-size: 1.1rem; font-weight: 700; }
.agence .role { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin: .2rem 0 .9rem; }
.agence address { font-style: normal; color: var(--ink-2); font-size: .95rem; line-height: 1.7; }
.agence .zone { font-size: .86rem; color: var(--ink-2); margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }

/* ---------- Bandeau d'appel ---------- */
.cta-band .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 767px) { .cta-band .wrap { grid-template-columns: 1fr; } }
.cta-band h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.15rem); }
.cta-band p { margin: .7rem 0 0; max-width: 52ch; }

/* ---------- Page diagnostic ---------- */
.page-head { border-bottom: 1px solid var(--line); padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.breadcrumb { font-size: .82rem; color: var(--ink-3); margin-bottom: 1rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.breadcrumb a { text-decoration: none; color: var(--ink-2); }
.breadcrumb a:hover { color: var(--sage-deep); text-decoration: underline; }
.breadcrumb li + li::before { content: '/'; margin-right: .45rem; color: var(--line-strong); }

.diag-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 767px) { .diag-head { grid-template-columns: 1fr; } .diag-head .diag-illus { max-width: 190px; } }
.diag-illus svg { width: 100%; height: auto; }

.duty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 767px) { .duty-grid { grid-template-columns: 1fr; } }
.duty { background: var(--surface); padding: 1.4rem 1.5rem; }
.duty .k {
  font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: .5rem;
}
.duty p { margin: 0; font-size: .92rem; color: var(--ink-2); }

.callout {
  display: flex;
  gap: .9rem;
  background: var(--sage-wash);
  border-left: 3px solid var(--sage-deep);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  font-size: .93rem;
  color: var(--ink-2);
}
.callout .ic { color: var(--sage-deep); margin-top: .15rem; }
.callout p:last-child { margin-bottom: 0; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .95rem; color: var(--ink-2); }
.checklist .ic { color: var(--sage-deep); margin-top: .28rem; width: 1.05rem; height: 1.05rem; }

.diag-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .6rem; }
.diag-nav a {
  display: block;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  background: var(--surface);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.diag-nav a:hover { border-color: var(--sage-deep); color: var(--sage-deep); }
.diag-nav a[aria-current='page'] { background: var(--sage-wash); border-color: var(--sage); color: var(--sage-deep); }

/* ---------- Messages ---------- */
.alert {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: .92rem;
  margin-bottom: 1.5rem;
}
.alert-error { background: var(--danger-wash); border-color: color-mix(in srgb, var(--danger) 40%, transparent); color: var(--danger); }
.alert-ok { background: var(--sage-wash); border-color: var(--sage-line); color: var(--ink); }
.alert .ic { margin-top: .12rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink-surface); color: var(--on-ink-2); font-size: .92rem; }
.footer-contact { border-bottom: 1px solid var(--on-ink-line); }
.footer-contact .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}
@media (max-width: 899px) { .footer-contact .wrap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 519px) { .footer-contact .wrap { grid-template-columns: 1fr; } }
.footer-contact div {
  padding: 1.5rem 1.5rem 1.5rem 0;
  display: flex;
  gap: .8rem;
  align-items: flex-start;
}
.footer-contact .ic { color: var(--sage); margin-top: .2rem; }
.footer-contact strong { display: block; color: var(--on-ink); font-weight: 600; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }

.footer-main .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
@media (max-width: 899px) { .footer-main .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 519px) { .footer-main .wrap { grid-template-columns: 1fr; } }
.footer-main img { width: 180px; margin-bottom: 1.1rem; }
.footer-main h4 {
  color: var(--sage);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-main ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-main a { text-decoration: none; }
.footer-main a:hover { color: #fff; text-decoration: underline; }

.footer-legal {
  border-top: 1px solid var(--on-ink-line);
  font-size: .82rem;
  color: var(--on-ink-3);
}
.footer-legal .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  padding-block: 1.35rem;
}
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }

/* ---------- Entrée de page ----------
   Une seule animation, au chargement, sur le bloc d'accroche. Pas de contenu
   masqué en attente de JavaScript ailleurs dans la page. */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-grid > *          { animation: hero-in .55s var(--ease) both; }
  .hero-grid > * + *      { animation-delay: .12s; }
}

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

/* ---------- Impression ---------- */
@media print {
  .site-header, .topbar, .site-footer, .quote-card, .cta-band, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: .8em; }
}

/* ---------- Illustrations techniques ---------- */
.bento-illus svg, .diag-illus svg { color: var(--ink); }
svg .ac  { fill: var(--sage); }
svg .acs { stroke: var(--sage); }

/* ---------- Tableau comparatif des obligations ----------
   Trois colonnes de prose au-dessus de 860px, blocs empilés en dessous :
   un tableau à défilement horizontal serait illisible sur un téléphone. */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

table.compare { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.compare thead th {
  text-align: left;
  font-family: 'Manrope', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: .95rem 1.25rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
table.compare tbody tr + tr { border-top: 1px solid var(--line); }
table.compare th[scope='row'], table.compare td { padding: 1.15rem 1.25rem; vertical-align: top; text-align: left; }
table.compare th[scope='row'] { width: 20%; font-weight: 400; }
table.compare th[scope='row'] a {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--sage);
}
table.compare th[scope='row'] a:hover { color: var(--sage-deep); }
table.compare th[scope='row'] .off { display: block; font-size: .8rem; color: var(--ink-3); margin-top: .3rem; }
table.compare td { color: var(--ink-2); }
table.compare tbody tr:hover { background: var(--sage-wash); }

@media (max-width: 859px) {
  .table-wrap { border: 0; background: transparent; }
  table.compare, table.compare tbody, table.compare tr, table.compare th, table.compare td { display: block; width: auto; }
  table.compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.compare tbody tr {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--sage);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
  }
  table.compare tbody tr + tr { margin-top: .85rem; border-top: 1px solid var(--line); border-left: 3px solid var(--sage); }
  table.compare th[scope='row'], table.compare td { padding: 0; }
  table.compare th[scope='row'] { width: auto; margin-bottom: .9rem; }
  table.compare td + td { margin-top: .85rem; }
  table.compare td::before {
    content: attr(data-l);
    display: block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: .25rem;
  }
}

/* ---------- En-têtes de page et de section ---------- */
.head-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
}
@media (max-width: 767px) {
  .head-split { grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
  .head-split .actions .btn { width: 100%; }
}

.section-head { max-width: 58ch; margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.section-head .lede { margin-top: 1.5rem; margin-bottom: 0; }
.section-head-narrow { max-width: 52ch; }

/* Le trait de marque appelle une respiration avant le texte qui suit. */
.rule + p, .rule + .lede, .rule + .prose, .rule + ul { margin-top: 1.5rem; }

/* Bande pleine largeur qui referme la grille : disposition horizontale,
   pour qu'elle se lise comme une clôture et non comme une carte étirée. */
.bento-cell.is-full { grid-column: span 6; min-height: 0; }
@media (min-width: 900px) {
  .bento-cell.is-full {
    display: grid;
    grid-template-columns: 118px minmax(150px, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
    padding-block: 1.6rem;
  }
  .bento-cell.is-full .bento-illus { height: 68px; margin: 0; }
  .bento-cell.is-full h3 { margin-bottom: .3rem; }
  .bento-cell.is-full p { flex: none; max-width: 62ch; }
  .bento-cell.is-full .bento-more { white-space: nowrap; }
}
@media (max-width: 899px) { .bento-cell.is-full { grid-column: span 2; } }
@media (max-width: 559px) { .bento-cell.is-full { grid-column: span 1; } }
