/* ═══════════════════════════════════════════════════════════
   Advice AI · feuille de style partagée
   1. Règles d'origine (index.html, reprises à l'identique,
      sauf défilement et hauteur des sections, voir « SECTIONS »)
   2. Navigation (reprise de legals.html)
   3. Composants dérivés
   ═══════════════════════════════════════════════════════════ */

  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  :root {
    --black: #0a0a0a;
    --white: #f8f8f6;
    --gray-faint: #f0f0ee;
    --gray-mid: #c8c8c4;
    --gray-dark: #5a5a58;
    --accent-blue: #3a7bd5;
    --accent-teal: #00c4b4;
    --accent-violet: #7c5cbf;
    --rule: #e4e4e0; /* repris de legals.html */
  }

  html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    scroll-padding-top: 64px;
    overflow-y: scroll;
  }

  body {
    font-family: 'Inter Tight', sans-serif;
    background: var(--white);
    color: var(--black);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  /* ── SECTIONS ──
     Modifié : plus de hauteur minimale 100vh (sauf le hero),
     défilement magnétique en "proximity" (désactivé sous 680 px). */
  section {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 120px 60px;
  }

  /* ── HERO ── */
  #hero {
    background: var(--white);
    overflow: hidden;
    min-height: 100vh;
    padding-top: 144px;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
    position: relative;
    z-index: 2;
  }

  .logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 64px;
  }

  .logo-wrap svg {
    height: 150px;
    width: auto;
    filter: invert(0);
    opacity: 0;
    animation: fadeUp 1.2s cubic-bezier(0.16,1,0.3,1) 0.3s forwards;
  }

  .hero-subtitle {
    font-size: clamp(14px, 1.3vw, 17px);
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gray-dark);
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) 0.7s forwards;
  }

  .hero-rule {
    width: 1px;
    height: 90px;
    background: linear-gradient(to bottom, transparent, var(--gray-mid), transparent);
    margin: 48px auto;
    opacity: 0;
    animation: fadeIn 1.2s ease 1.2s forwards;
  }

  .hero-scroll-hint {
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gray-mid);
    opacity: 0;
    animation: fadeIn 1s ease 2s forwards;
  }

  /* Grid lines background — Lumon feel */
  .grid-bg {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 0;
  }

  /* corner markers */
  .corner {
    position: absolute;
    width: 16px;
    height: 16px;
    opacity: 0.18;
  }
  .corner-tl { top: 32px; left: 32px; border-top: 1px solid var(--black); border-left: 1px solid var(--black); }
  .corner-tr { top: 32px; right: 32px; border-top: 1px solid var(--black); border-right: 1px solid var(--black); }
  .corner-bl { bottom: 32px; left: 32px; border-bottom: 1px solid var(--black); border-left: 1px solid var(--black); }
  .corner-br { bottom: 32px; right: 32px; border-bottom: 1px solid var(--black); border-right: 1px solid var(--black); }
  /* sous la barre de navigation fixe */
  #hero .corner-tl, #hero .corner-tr { top: 96px; }

  /* ── ABOUT ── */
  #about {
    background: var(--black);
    color: var(--white);
    align-items: flex-start;
  }

  .about-inner {
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
  }

  .section-tag {
    font-size: clamp(12px, 1.05vw, 14px);
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gray-mid);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .section-tag::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--gray-dark);
  }

  .about-headline {
    font-size: clamp(32px, 4.5vw, 64px);
    font-weight: 300;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 56px;
    color: var(--white);
  }

  .about-headline em {
    font-style: normal;
    color: var(--gray-mid);
    font-weight: 800;
  }

  .about-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    border-top: 1px solid #222;
    padding-top: 48px;
  }

  .about-col p {
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.75;
    font-weight: 300;
    color: #a0a09e;
  }

  .about-col p + p {
    margin-top: 20px;
  }

  .services-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 40px;
  }

  .service-chip {
    padding: 6px 14px;
    border: 1px solid #2a2a2a;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #888;
    font-weight: 400;
    transition: border-color 0.2s, color 0.2s;
  }
  .service-chip:hover {
    border-color: #555;
    color: #ccc;
  }

  /* ── CONTACT ── */
  #contact {
    background: var(--white);
    position: relative;
    overflow: hidden;
  }

  .contact-inner {
    max-width: 700px;
    text-align: center;
    position: relative;
    z-index: 2;
  }

  .contact-eyebrow {
    font-size: clamp(12px, 1.05vw, 14px);
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gray-dark);
    margin-bottom: 40px;
  }

  .contact-headline {
    font-size: clamp(40px, 4vw, 54px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--black);
  }

  .contact-sub {
    font-size: 15px;
    font-weight: 300;
    color: var(--gray-dark);
    line-height: 1.6;
    margin-bottom: 52px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 24px 56px;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    transition: 0.4s all ease;
  }

  .visible .contact-btn {
position: relative;
  display: block;
  margin: auto;

  }
  .contact-btn::after {
    content: '→';
    font-size: 18px;
    transition: transform 0.25s;
  }

  .contact-btn:hover {
    background: #1a1a1a;
    transform: scale(0.98)
  }
  .contact-btn:hover::after {
    transform: translateX(4px);
  }

  /* Large faint text behind */
  .contact-bg-text {
    position: absolute;
    font-size: clamp(90px, 18vw, 220px);
    font-weight: 800;
    letter-spacing: -0.05em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0,0,0,0.045);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    z-index: 1;
  }

  /* address strip */
  .address-strip {
    position: absolute;
    bottom: 52px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray-mid);
    z-index: 2;
  }

  /* ── FOOTER ── */
  footer {
    background: var(--black);
    color: #555;
    padding: 28px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    scroll-snap-align: none;
  }

  a {
    color: var(--black);
    text-decoration: none;
  }
  footer a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
  }
  footer a:hover {
    color: #aaa;
  }

  .footer-logo {
    color: #333;
    font-weight: 500;
    letter-spacing: 0.08em;
  }

  /* ── REVEAL ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
  .reveal-d1 { transition-delay: 0.1s; }
  .reveal-d2 { transition-delay: 0.22s; }
  .reveal-d3 { transition-delay: 0.36s; }
  .reveal-d4 { transition-delay: 0.5s; }


/* ═══════════════════════════════════════════════════════════
   2. NAVIGATION (reprise du nav de legals.html)
   ═══════════════════════════════════════════════════════════ */

  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    z-index: 100;
  }

  .nav-logo {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: var(--black);
    text-transform: uppercase;
  }

  nav .logo-wrap { margin-bottom: 0; }
  nav .logo-wrap svg {
    height: 20px;
    width: auto;
    display: block;
    opacity: 1;
    animation: none;
  }

  /* liens : style de .nav-back */
  .nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
    margin-left: auto;
  }

  /* Bouton de réservation dans la barre (version compacte de .contact-btn) */
  nav .nav-cta {
    margin-left: 40px;
    padding: 12px 22px;
    font-size: 11px;
    letter-spacing: 0.16em;
    gap: 10px;
    white-space: nowrap;
  }
  nav .nav-cta::after { font-size: 13px; }
  .nav-cta-short { display: none; }
  .nav-links a,
  .nav-toggle {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-dark);
    text-decoration: none;
    transition: color 0.2s;
  }
  .nav-links a:hover,
  .nav-links a[aria-current="page"] { color: var(--black); }

  .nav-toggle {
    display: none;
    background: none;
    border: 0;
    font-family: inherit;
    padding: 8px 0;
  }


/* ═══════════════════════════════════════════════════════════
   3. COMPOSANTS DÉRIVÉS
   ═══════════════════════════════════════════════════════════ */


  .wrap {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
  }


  /* Hero : signature en titre, phrase en sous-titre, puis bouton */
  .hero-signature {
    font-size: clamp(30px, 3.9vw, 56px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    color: var(--black);
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) 0.5s forwards;
  }
  .hero-title {
    font-size: clamp(18px, 1.75vw, 25px);
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: var(--gray-dark);
    max-width: 1120px;
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) 0.7s forwards;
  }
  .scroll-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--gray-dark);
    opacity: 0;
    animation: fadeIn 1s ease 1.6s forwards, nudge 2.4s ease-in-out 2.6s infinite;
  }
  .scroll-arrow svg { width: 22px; height: 22px; }
  .scroll-arrow:hover { color: var(--black); }
  @keyframes nudge {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(7px); }
  }
  #hero .logo-wrap { margin-bottom: 48px; }
  .hero-cta {
    margin-top: 48px;
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) 0.9s forwards;
  }

  /* Texte d'introduction sous un titre */
  .lead {
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.7;
    font-weight: 300;
    max-width: 720px;
    margin-bottom: 56px;
  }

  /* Grilles (dérivées de .about-columns) */
  .cols {
    display: grid;
    gap: 48px;
    border-top: 1px solid var(--line);
    padding-top: 48px;
  }
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .list-reset { list-style: none; }

  /* Bloc de texte avec titre fort */
  .block-title {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 14px;
  }
  .block-meta {
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 16px;
  }
  .block-text {
    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 1.75;
    font-weight: 300;
  }

  /* Numéro d'étape (dérivé de .doc-section-num de legals.html) */
  .step-num {
    font-size: 10px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--gray-mid);
  }

  /* Bandeau mis en avant (bordure fine, dérivée de .service-chip) */
  .callout {
    margin-top: 64px;
    padding: 40px 48px;
    border: 1px solid var(--frame);
    background: var(--callout-bg);
  }
  .callout-title {
    font-size: clamp(22px, 2.6vw, 34px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
  }
  .callout-text {
    margin-top: 14px;
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.75;
    font-weight: 300;
  }
  .callout-plain {
    font-size: clamp(15px, 1.6vw, 18px);
    font-weight: 400;
    line-height: 1.6;
  }

  /* Lien fléché (dérivé de .nav-back, flèche à droite) */
  .link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s;
  }
  .link-arrow::after { content: '→'; font-size: 13px; transition: transform 0.25s; }
  .link-arrow:hover::after { transform: translateX(4px); }

  .section-actions {
    margin-top: 56px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
  }

  /* Bouton secondaire : version contour de .contact-btn */
  .contact-btn.btn-outline {
    background: transparent;
    color: var(--black);
    border: 1px solid var(--black);
  }
  .contact-btn.btn-outline:hover { background: var(--black); color: var(--white); }

  /* Carte (bordure fine, dérivée de .service-chip / .about-columns) */
  .card {
    border: 1px solid var(--frame, var(--rule));
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
  }
  .card:hover { border-color: var(--frame-hover, var(--gray-mid)); }

  /* Carte cas client */
  .case-logo {
    height: 48px;
    display: flex;
    align-items: center;
    margin-bottom: 28px;
  }
  .case-logo img {
    height: 48px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    display: block;
  }
  .case-friction {
    font-size: 15px;
    line-height: 1.6;
    font-weight: 300;
    color: var(--gray-dark);
    margin-bottom: 28px;
  }
  .case-figure {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
    margin-bottom: 24px;
  }

  /* Chiffre clé : chiffre en 800 au-dessus de l'explication en 300 */
  .stat-value {
    display: block;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
  }
  .stat-label {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 300;
    color: var(--gray-dark);
  }

  /* Ligne discrète (dérivée de .address-strip, sans positionnement absolu) */
  .strip {
    margin-top: 48px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1.9;
  }
  .strip strong { font-weight: 500; }

  /* Carte équipe : pastille d'initiales, sans photo */
  .initials {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--frame);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--soft);
    margin-bottom: 28px;
  }

  /* Liste de garanties (dérivée de .doc-section ul de legals.html) */
  .checklist {
    list-style: none;
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 48px;
  }
  .checklist li {
    position: relative;
    padding-left: 22px;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
  }
  .checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.8em;
    width: 10px;
    height: 1px;
    background: currentColor;
  }

  /* Étapes de démarrage (section contact) */
  .steps-inline {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: left;
    border-top: 1px solid var(--rule);
    padding-top: 32px;
    margin-bottom: 64px;
  }
  .steps-inline .step-num { color: var(--gray-dark); }
  .steps-inline .step-num-big { color: var(--gray-dark); }
  .steps-inline .block-title { color: var(--black); }
  .steps-inline .block-text { font-size: 16px; color: var(--gray-dark); }
  .steps-inline strong { color: var(--black); font-weight: 500; }

  /* Formulaire de contact */
  #contact .contact-inner { max-width: 760px; width: 100%; }
  /* mot de fond : derrière le titre, plus derrière le formulaire */
  #contact .contact-bg-text { top: clamp(170px, 18vw, 300px); }
  .contact-form {
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 32px;
  }
  .field { display: flex; flex-direction: column; gap: 10px; }
  .field-full { grid-column: 1 / -1; }
  .field label {
    font-size: 10px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gray-dark);
  }
  .field input,
  .field textarea {
    font-family: inherit;
    font-size: 15px;
    font-weight: 300;
    color: var(--black);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--gray-mid);
    border-radius: 0;
    padding: 10px 0;
    outline: none;
    transition: border-color 0.2s;
  }
  .field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
  .field input:focus,
  .field textarea:focus { border-bottom-color: var(--black); }
  .field input:focus-visible,
  .field textarea:focus-visible { box-shadow: 0 1px 0 0 var(--black); }
  .form-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .form-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .form-actions button { border: 0; font-family: inherit; }
  .form-actions button[disabled] { opacity: 0.5; }
  .form-note {
    font-size: 12px;
    line-height: 1.6;
    font-weight: 300;
    color: var(--gray-dark);
    max-width: 360px;
  }
  .form-note a { text-decoration: underline; text-underline-offset: 2px; }
  .form-status {
    grid-column: 1 / -1;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    min-height: 1.6em;
  }
  .form-status:empty { display: none; }

  /* Pied de page : bloc d'adresse au centre */
  .footer-address { text-align: center; }

  /* Accessibilité */
  .skip-link {
    position: absolute;
    left: -10000px;
    top: 0;
  }
  .skip-link:focus {
    left: 16px;
    top: 16px;
    z-index: 200;
    background: var(--black);
    color: var(--white);
    padding: 12px 20px;
    font-size: 12px;
  }
  a:focus-visible,
  button:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .logo-wrap svg, .hero-subtitle, .hero-rule, .hero-scroll-hint, .hero-title, .hero-cta,
    .hero-signature, .scroll-arrow {
      opacity: 1; transform: none; animation: none; transition: none;
    }
  }


/* ═══════════════════════════════════════════════════════════
   4. COMPOSANTS DU BRIEF V2
   ═══════════════════════════════════════════════════════════ */

  /* Ligne discrète sous un bloc (remplace un encadré) */
  .note {
    margin-top: 48px;
    font-size: 15px;
    font-style: italic;
    font-weight: 300;
    line-height: 1.6;
  }

  /* Ligne cas client : un cas par ligne, toute la ligne cliquable */
  .case-list { display: flex; flex-direction: column; gap: 24px; }
  .case-row {
    display: grid;
    grid-template-columns: minmax(200px, 0.8fr) 3fr;
    gap: 36px;
    padding: 36px;
    border: 1px solid var(--frame);
    color: var(--fg);
    text-decoration: none;
    transition: border-color 0.25s, transform 0.25s cubic-bezier(0.16,1,0.3,1);
  }
  .case-row:hover { border-color: var(--soft); transform: translateY(-3px); }
  .case-row:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }
  .case-id { display: flex; flex-direction: column; align-items: flex-start; }
  .logo-box {
    display: inline-flex;
    align-items: center;
    height: 64px;
    padding: 8px 12px;
    background: var(--white);
    margin-bottom: 28px;
    border-radius: 10px;
    transform: rotate(-2deg);
    margin-top: -50px;
  }
  .logo-box img { height: 48px; width: auto; display: block; }
  .case-title {
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
  }
  .case-side { display: flex; flex-direction: column; gap: 20px; }
  .flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1.1fr;
    align-items: stretch;
    gap: 12px;
  }
  .flow-arrow {
    align-self: center;
    font-size: 18px;
    color: var(--gray-dark);
  }
  .flow-step { padding: 22px; display: flex; flex-direction: column; }
  .flow-step .block-meta { margin-bottom: 12px; }
  .flow-step p.flow-text {
    font-size: 15px;
    line-height: 1.6;
    font-weight: 300;
    color: var(--muted);
  }
  .flow-friction { border: 1px solid var(--frame); }
  .flow-done     { background: var(--panel); border: 1px solid var(--panel-frame); }
  .flow-result   { background: var(--panel-strong); border: 1px solid var(--panel-strong-frame); }
  /* sur fond sombre : carte résultat claire, chiffre et texte en noir */
  .section-dark .flow-result {
    --fg: var(--black);
    --muted: var(--gray-dark);
    --soft: var(--gray-dark);
    --panel-line: var(--rule);
    color: var(--black);
  }
  .flow-result .stat-value { font-size: clamp(36px, 3.6vw, 52px); color: var(--fg); }
  .flow-result .stat-label { color: var(--muted); }
  .stats-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--panel-line);
  }
  .stats-mini .stat-value { font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
  .stats-mini .stat-label { font-size: 12px; margin-top: 6px; }
  .case-more {
    align-self: flex-end;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--soft);
    display: inline-flex;
    gap: 10px;
    transition: color 0.2s;
  }
  .case-more::after { content: '→'; font-size: 13px; transition: transform 0.25s; }
  .case-row:hover .case-more { color: var(--fg); }
  .case-row:hover .case-more::after { transform: translateX(4px); }

  /* Sous-titre de niveau inférieur (formulaire secondaire) */
  .form-block { margin-top: 96px; padding-top: 56px; border-top: 1px solid var(--rule); }
  .subhead {
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 12px;
  }
  .subhead-text {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--gray-dark);
    margin-bottom: 40px;
  }

  /* En-tête de page (repris de .page-header de legals.html) */
  .page-header {
    margin-top: 64px;
    padding: 96px 60px 72px;
    border-bottom: 1px solid var(--rule);
  }
  .page-header .wrap { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
  .page-header .tag {
    font-size: clamp(12px, 1.05vw, 14px);
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
  }
  .page-header .tag::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--gray-mid);
  }
  .page-header .tag a { color: var(--gray-dark); text-decoration: underline; text-underline-offset: 3px; }
  .page-header .tag a:hover { color: var(--black); }
  .page-header h1 {
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--black);
    max-width: 1100px;
  }
  .page-header .lead { margin: 8px 0 0; color: var(--gray-dark); }
  .page-header .logo-box { margin: 8px 0 0; background: none; padding: 0; }

  /* Corps d'une page de cas */
  .prose-block { max-width: 860px; }
  .prose-block + .prose-block { margin-top: 72px; }
  .prose h2 {
    font-size: clamp(12px, 1.05vw, 14px);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--gray-dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .prose h2::before { content: ''; width: 24px; height: 1px; background: var(--gray-mid); }
  .prose .strong-line {
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 20px;
  }
  .prose p.body {
    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 1.75;
    font-weight: 300;
    color: var(--gray-dark);
  }
  .checklist.one-col { grid-template-columns: 1fr; margin-top: 24px; gap: 14px; }
  .checklist.one-col li { font-size: clamp(16px, 1.4vw, 18px); font-weight: 300; }

  /* Bloc final centré (dérivé de #contact) */
  .cta-block { text-align: center; }
  .cta-block .wrap { max-width: 760px; }
  .cta-actions {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  /* Pages d'atterrissage : barre réduite au logo, pied de page réduit */
  nav.nav-minimal { justify-content: flex-start; }
  .landing-hero { padding-top: 160px; text-align: left; }
  .landing-hero h1 {
    font-size: clamp(36px, 4.5vw, 64px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    max-width: 900px;
    margin-bottom: 28px;
  }
  .landing-hero .lead { margin-bottom: 40px; }
  .promises { margin-top: 0; }
  .calendar-embed {
    width: 100%;
    margin-top: 56px;
    border: 1px solid var(--rule);
    background: var(--white);
  }
  .calendar-embed { min-height: 600px; }
  /* Formulaire TidyCal ouvert : sa fenêtre interne mesure environ 1 220 px.
     !important : le script de TidyCal écrit un min-height en ligne sur le cadre. */
  .calendar-embed.formulaire-ouvert iframe { min-height: 1260px !important; }
  .calendar-placeholder {
    padding: 96px 32px;
    text-align: center;
    border: 1px dashed var(--gray-mid);
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gray-dark);
    line-height: 2;
  }
  .proof-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
  .proof-list li { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; font-weight: 300; color: var(--gray-dark); }
  .proof-list strong { font-weight: 500; color: var(--black); }
  .text-links { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-top: 40px; }
  footer.footer-min { justify-content: center; gap: 32px; }

  /* Références courtes (page cas clients) */
  .ref-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
  .ref-list li { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; font-weight: 300; color: var(--gray-dark); }
  .ref-list strong { font-weight: 500; color: var(--black); }

  .form-block { text-align: left; }
  .cols-spaced { margin-top: 64px; }
  .contact-sub-wide { max-width: 560px; }
  .proof-list { margin-top: 64px; }

  @media (max-width: 980px) {
    .case-row { grid-template-columns: 1fr; gap: 28px; }
  }
  @media (max-width: 680px) {
    .case-row { padding: 28px 22px; }
    .flow { grid-template-columns: 1fr; }
    .flow-arrow { transform: rotate(90deg); justify-self: center; }
    .page-header { padding: 72px 28px 48px; }
    .landing-hero { padding-top: 112px; }
    footer.footer-min { gap: 12px; }
  }


/* ═══════════════════════════════════════════════════════════
   6. COMPOSANTS DU BRIEF V3
   ═══════════════════════════════════════════════════════════ */

  .cols-2 { grid-template-columns: repeat(2, 1fr); gap: 48px 64px; }

  /* Ligne de transition, un peu plus grande que le corps, sans encadré */
  .transition-line {
    margin-top: 64px;
    max-width: 860px;
    font-size: clamp(18px, 1.8vw, 23px);
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: -0.01em;
  }
  .section-dark .transition-line, .section-light .transition-line { color: var(--fg); }

  /* Grands repères d'étape (01, 02, 03) */
  .step-num-big {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 20px;
  }
  .section-dark .step-num-big, .section-light .step-num-big { color: var(--soft); }

  /* Bandeau clair sur fond sombre */
  .section-dark .callout.callout-inverse {
    background: var(--white);
    border-color: var(--white);
    color: var(--black);
  }

  /* Bouton principal sur fond sombre : version inversée de .contact-btn */
  .section-dark .contact-btn:not(.btn-outline) { background: var(--white); color: var(--black); }
  .section-dark .contact-btn:not(.btn-outline):hover { background: var(--gray-faint); }

  /* Cas clients sur fond clair : friction et réalisation claires, résultat sombre */
  .section-light .flow-result {
    --fg: var(--white);
    --muted: #a0a09e;
    --soft: var(--gray-mid);
    --panel-line: #333;
    color: var(--white);
  }


  /* Page méthode : étape détaillée (repère + titre à gauche, détails à droite) */
  .step-detail {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    align-items: start;
  }
  .step-detail .about-headline.step-title {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin-bottom: 0;
  }
  .step-facts { display: flex; flex-direction: column; }
  .step-facts > div { padding: 28px 0; border-top: 1px solid var(--line); }
  .step-facts > div:first-child { padding-top: 0; border-top: 0; }
  .step-facts dt { margin-bottom: 12px; }
  /* intitulés plus visibles : taille des surtitres, couleur du texte principal */
  .section-dark .step-facts dt.block-meta,
  .section-light .step-facts dt.block-meta {
    font-size: clamp(12px, 1.05vw, 14px);
    font-weight: 500;
    letter-spacing: 0.22em;
    color: var(--fg);
  }

  /* Partie en gras d'un titre, dans la couleur du texte (et non grisée) */
  .section-dark .about-headline em.em-ink, .section-light .about-headline em.em-ink { color: var(--fg); }

  /* Bloc final sur fond sombre */
  .section-dark .contact-eyebrow { color: var(--soft); }
  .section-dark .contact-headline { color: var(--fg); }

  @media (max-width: 980px) {
    .step-detail { grid-template-columns: 1fr; gap: 40px; }
  }


  /* Page diagnostic : sections claires successives, séparées par un filet */
  .section-compact { padding-top: 88px; padding-bottom: 88px; }
  .section-light + .section-light.section-compact { border-top: 1px solid var(--rule); }
  .subhead.subhead-lg { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 32px; }
  .fit-col .block-title { margin-bottom: 20px; }
  .fit-line { margin-top: 48px; max-width: 860px; }
  .after-text p + p { margin-top: 16px; }
  .after-text { max-width: 860px; }
  .calendar-embed.calendar-flush { margin-top: 0; }
  .proof-list.proof-flush { margin-top: 0; }
  .form-block.form-flush { margin-top: 0; padding-top: 0; border-top: 0; }

  @media (max-width: 680px) {
    .section-compact { padding-top: 56px; padding-bottom: 56px; }
  }


  /* Page diagnostic (gabarit des autres pages) */
  h2.section-tag { font-family: inherit; }
  .landing-hero h1 .h1-suite {
    display: block;
    margin-top: 8px;
    font-size: 0.7em;
    letter-spacing: -0.03em;
  }
  .checklist.checklist-lg li { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; }
  .checklist.checklist-lg { gap: 20px; margin-top: 0; }
  .after-text { margin-bottom: 96px; }
  .booking-title { margin-bottom: 48px; }
  .section-dark .proof-list li { color: var(--muted); }
  .section-dark .proof-list strong { color: var(--fg); }
  .section-dark .checklist li, .section-light .checklist li { color: var(--fg); }

  @media (max-width: 680px) {
    .after-text { margin-bottom: 64px; }
  }


  /* Titre des pages de cas : nom en gras, résultat en graisse légère */
  .page-header h1.h1-cas {
    font-size: clamp(30px, 3.4vw, 48px);
    line-height: 1.15;
    letter-spacing: -0.035em;
  }
  .h1-cas .h1-nom { display: block; font-weight: 800; }
  .h1-cas .h1-resultat { display: block; font-weight: 300; }
  .section-actions.section-actions-flush { margin-top: 0; }


/* ═══════════════════════════════════════════════════════════
   7. VARIANTES DU BRIEF V4 (page /diagnostic/)
   ═══════════════════════════════════════════════════════════ */

  /* Ligne de réassurance : format des surtitres, sans trait */
  .reassurance {
    margin-top: 24px;
    font-size: clamp(12px, 1.05vw, 14px);
    font-weight: 500;
    letter-spacing: 0.22em;
    line-height: 1.8;
    text-transform: uppercase;
    color: var(--gray-dark);
  }

  /* Flèches verticales pour les boutons d'ancre */
  .contact-btn.btn-down::after { content: '↓'; }
  .contact-btn.btn-up::after { content: '↑'; }
  .contact-btn.btn-down:hover::after { transform: translateY(3px); }
  .contact-btn.btn-up:hover::after { transform: translateY(-3px); }

  /* Bouton visible uniquement sous 768 px */
  .btn-mobile-only { display: none; margin-top: 32px; }
  @media (max-width: 767px) {
    .btn-mobile-only { display: block; }
  }

  /* Calendrier dans l'en-tête, cible des ancres */
  #calendrier { scroll-margin-top: 24px; margin-top: 48px; }

  /* Contenu qui suit le calendrier dans la même section */
  .header-follow { margin-top: 120px; }
  /* Bloc « Et vous ? » à la suite des rangées de cas, dans la même section */
  .cta-follow {
    max-width: 760px;
    margin: 120px auto 0;
    padding-top: 96px;
    border-top: 1px solid var(--line);
  }
  @media (max-width: 680px) {
    .header-follow { margin-top: 72px; }
    .cta-follow { margin-top: 72px; padding-top: 64px; }
  }  /* + scroll-padding-top de 64 px sur html */


/* ═══════════════════════════════════════════════════════════
   5. THÈMES
   Couleurs des sections en variables. Le thème par défaut alterne
   sections claires et sombres ; la classe `theme-light` sur <body>
   passe tout le site en clair (fond gris du hero, grille fine,
   sections séparées par des filets, encadrés en cadres).
   ═══════════════════════════════════════════════════════════ */

  .section-dark {
    --bg: var(--black);
    --bg-solid: var(--black);
    --fg: var(--white);
    --muted: #a0a09e;
    --soft: var(--gray-mid);
    --tag-line: var(--gray-dark);
    --line: #222;
    --frame: #2a2a2a;
    --frame-hover: #555;
    --callout-bg: transparent;
    --panel: #1a1a1a;
    --panel-frame: transparent;
    --panel-strong: var(--white);
    --panel-strong-frame: transparent;
    --panel-line: #333;
  }
  .section-light,
  body.theme-light .section-dark {
    --bg: var(--white);
    --bg-solid: var(--white);
    --fg: var(--black);
    --muted: var(--gray-dark);
    --soft: var(--gray-dark);
    --tag-line: var(--gray-mid);
    --line: var(--rule);
    --frame: var(--rule);
    --frame-hover: var(--gray-mid);
    --callout-bg: var(--gray-faint);
    --panel: var(--gray-faint);
    --panel-frame: var(--rule);
    --panel-strong: #161616;
    --panel-strong-frame: #161616;
    --panel-line: var(--rule);
  }

  .section-dark, .section-light { background: var(--bg); color: var(--fg); }
  .section-dark .section-tag, .section-light .section-tag { color: var(--soft); }
  .section-dark .section-tag::before, .section-light .section-tag::before { background: var(--tag-line); }
  .section-dark .about-headline, .section-light .about-headline { color: var(--fg); }
  .section-dark .about-headline em, .section-light .about-headline em { color: var(--soft); }
  .section-dark .lead, .section-light .lead,
  .section-dark .block-text, .section-light .block-text,
  .section-dark .callout-text, .section-light .callout-text,
  .section-dark .stat-label, .section-light .stat-label,
  .section-dark .note, .section-light .note { color: var(--muted); }
  .section-dark .block-meta, .section-light .block-meta,
  .section-dark .step-num, .section-light .step-num,
  .section-dark .strip, .section-light .strip,
  .section-dark .link-arrow, .section-light .link-arrow { color: var(--soft); }
  .section-dark .link-arrow:hover, .section-light .link-arrow:hover { color: var(--fg); }
  .section-dark .contact-btn.btn-outline { color: var(--fg); border-color: var(--fg); }
  .section-dark .contact-btn.btn-outline:hover { background: var(--fg); color: var(--bg-solid); }

  /* ── Thème clair ── */
  body.theme-light {
    background-color: var(--white);
    background-image:
      linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px);
    background-size: 80px 80px;
  }
  body.theme-light .section-dark,
  body.theme-light .section-light {
    --bg: transparent;
    --callout-bg: transparent;
    --panel: transparent;
    --panel-frame: var(--rule);
    --panel-strong: transparent;
    --panel-strong-frame: var(--gray-mid);
  }
  body.theme-light .flow-result {
    --fg: var(--black);
    --muted: var(--gray-dark);
    --soft: var(--gray-dark);
    --panel-line: var(--rule);
    color: var(--black);
  }
  body.theme-light #hero,
  body.theme-light #contact { background: transparent; }
  body.theme-light #hero .grid-bg { display: none; }  /* la grille est portée par <body> */
  body.theme-light main > section + section,
  body.theme-light main > header + section { border-top: 1px solid var(--rule); }
  body.theme-light .logo-box { background: transparent; padding: 0; }
  body.theme-light footer {
    background: transparent;
    color: var(--gray-dark);
    border-top: 1px solid var(--rule);
  }
  body.theme-light footer a { color: var(--gray-dark); }
  body.theme-light footer a:hover { color: var(--black); }
  body.theme-light .footer-logo { color: var(--gray-dark); }


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

  @media (max-width: 980px) {
    .cols-4 { grid-template-columns: 1fr 1fr; }
    .cols-3, .grid-3, .checklist, .cols-2 { grid-template-columns: 1fr; gap: 32px; }
    .grid-3 { gap: 24px; }
  }

  /* d'origine */
  @media (max-width: 680px) {
    .logo-wrap svg {
    height: 90px;
    }
    .hero-subtitle {letter-spacing: 0.4px; font-size: 8px;}
    .logo-wrap { margin-bottom: 10px; }
    section { padding: 60px 28px; }
    .about-columns { grid-template-columns: 1fr; gap: 32px; }
    footer { flex-direction: column; gap: 16px; text-align: center; padding: 28px; }
  }

  @media (max-width: 480px) {
    .nav-cta-long { display: none; }
    .nav-cta-short { display: inline; }
  }

  /* dérivés */
  @media (max-width: 680px) {
    html { scroll-snap-type: none; }
    section { scroll-snap-align: none; }
    #hero { padding-top: 112px; }
    #hero .logo-wrap { margin-bottom: 32px; }
    #hero .corner-tl, #hero .corner-tr { top: 80px; }
    .hero-subtitle { font-size: 13px; letter-spacing: 0.2em; }
    .hero-signature { margin-bottom: 20px; }
    .section-tag { margin-bottom: 28px; gap: 12px; }
    .section-tag::before { width: 20px; }
    .hero-rule { height: 60px; margin: 36px auto; }

    nav { padding: 0 28px; }
    .nav-toggle { display: block; margin-left: 20px; }
    nav .nav-cta { display: inline-flex; width: auto; margin-left: auto; padding: 10px 16px; font-size: 11px; }
    .nav-links {
      display: none;
      position: absolute;
      top: 64px; left: 0; right: 0;
      flex-direction: column;
      align-items: flex-start;
      gap: 0;
      background: var(--white);
      border-bottom: 1px solid var(--rule);
      padding: 8px 28px 16px;
    }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 14px 0; }

    .cols-4 { grid-template-columns: 1fr; }
    .callout { padding: 28px 24px; }
    .steps-inline { grid-template-columns: 1fr; }
    .contact-form { grid-template-columns: 1fr; }
    .section-actions { gap: 24px; }
    .contact-btn { display: flex; width: 100%; justify-content: center; padding: 22px 24px; font-size: 15px; }
    .hero-cta, .hero-cta .contact-btn { width: 100%; }
  }
