/*
 * Direction : bleu marine + rouge sur fond clair, cartes arrondies et photos (maquette validée le 2026-11-06).
 * Couleurs provisoires en attendant la charte graphique du client.
 */
@font-face {
    font-family: "Bricolage Grotesque";
    src: url("../fonts/bricolage-grotesque-latin-wght-XEJcKrT.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
}

:root {
    --navy: #14305c;
    --navy-2: #1d4178;
    --navy-soft: #3b5277;
    --blue: #1f6fc5;
    --red: #d7202e;
    --red-dark: #b3141f;
    --red-text: #c41a27; /* rouge lisible sur fond clair (contraste AA) */
    --red-tint: #fde7e8;
    --bg: #f4f6fa;
    --bg-2: #e9edf4;
    --white: #ffffff;
    --line: #dde3ec;
    --muted: #55607a;
    --shadow: 0 1px 2px rgb(20 48 92 / .06), 0 18px 40px -22px rgb(20 48 92 / .35);
    --error: #b42318;
    --success: #1f7a4d;

    --font-display: "Bricolage Grotesque", system-ui, sans-serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --r-sm: 8px;
    --r: 16px;
    --space-section: clamp(3.5rem, 8vw, 6.5rem);
    --ease-out: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--navy);
    background: var(--bg);
}
img, svg { max-width: 100%; }
a { color: var(--red-text); text-underline-offset: .2em; }
a:hover { color: var(--red-dark); }
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.02em;
    margin: 0 0 .5em;
    color: var(--navy);
    text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--red); color: var(--white); }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--white); padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40rem; }

/* Sur-titre façon étiquette d'atelier */
.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--red-text); margin-bottom: 1.25rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: currentColor; }

/* Boutons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    min-height: 3.25rem; padding: .75rem 1.5rem;
    border-radius: var(--r-sm); border: 2px solid transparent;
    font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn .icon-arrow { transition: transform .15s; }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--bg); color: var(--navy); }
.btn-block { width: 100%; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-mark { width: 3rem; height: 3rem; flex: none; }
.mark-navy { fill: var(--navy); }
.mark-red { fill: var(--red); }
.footer-brand .mark-navy { fill: var(--white); }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-display); }
.brand-text strong { font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; color: var(--navy); }
.brand-text strong span { color: var(--red); }
.brand-text small { margin-top: .35rem; color: var(--navy-soft); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: .62rem; }
.site-nav { display: flex; align-items: center; gap: 2.25rem; }
.site-nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { position: relative; text-decoration: none; color: var(--navy); font-weight: 500; padding-block: .4rem; }
.site-nav ul a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--red);
    transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.site-nav ul a:hover::after, .site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.header-phone { min-height: 2.75rem; padding: .5rem 1rem; font-size: .95rem; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; color: var(--navy); cursor: pointer; }
.nav-toggle .icon { width: 1.75rem; height: 1.75rem; }

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none; position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; gap: 1rem;
        background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.5rem;
    }
    .site-nav.is-open { display: flex; }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav ul a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
    .site-nav ul a::after { display: none; }
    .site-nav ul a[aria-current="page"] { color: var(--red-text); }
}

/* ---------- Héros ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero-photo { position: absolute; inset: 0 0 0 auto; width: 62%; height: 100%; object-fit: cover; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, var(--bg) 38%, rgb(244 246 250 / .85) 52%, rgb(244 246 250 / 0) 75%);
}
.hero-content {
    position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem;
    max-width: 34rem; padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(5.5rem, 10vw, 8.5rem);
}
.hero-content::before { content: ""; width: 3.5rem; height: 4px; border-radius: 2px; background: var(--red); }
.hero h1 { margin: 0; font-size: clamp(2.3rem, 5.4vw, 3.9rem); color: var(--navy); }
.hero .lead { margin: 0; color: var(--navy-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-wave { position: absolute; inset: auto 0 -1px; z-index: 3; width: 100%; height: clamp(2.5rem, 6vw, 5rem); }
@media (max-width: 760px) {
    .hero-photo { position: relative; display: block; width: 100%; height: 14rem; }
    .hero::before { display: none; }
    .hero-content { max-width: none; padding-block: 2.5rem 4.5rem; }
}

/* Vague bleu/rouge en bas du héros */
.wave-navy { fill: var(--navy); }
.wave-red { fill: var(--red); }
.wave-bg { fill: var(--white); }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-section); }
.section-white { background: var(--white); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; align-items: end; margin-bottom: 3rem; }
.section-head h2 { margin: 0; }
.section-head p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }
.section-head-center { display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center; margin-bottom: 2.5rem; }
.section-head-center .eyebrow { margin: 0; }
.section-head-center .eyebrow::before { display: none; }
.dot { color: var(--red); }

/* Cartes prestations avec photo (accueil) */
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.service-card a {
    display: flex; flex-direction: column; height: 100%; overflow: hidden;
    background: linear-gradient(var(--white), var(--bg)); border-radius: var(--r); box-shadow: var(--shadow);
    border-bottom: 4px solid var(--blue); color: var(--navy); text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.service-card:nth-child(2) a { border-bottom-color: var(--red); }
.service-card a:hover { color: var(--navy); transform: translateY(-4px); }
.service-card-body { display: flex; flex-direction: column; gap: .75rem; padding: 1.75rem 1.75rem 1rem; }
.service-card h3 { display: flex; align-items: center; gap: .75rem; margin: 0; font-size: 1.6rem; }
.service-card h3 .icon { width: 2.25rem; height: 2.25rem; color: var(--blue); }
.service-card:nth-child(2) h3 .icon { color: var(--red); }
.service-card p { margin: 0; color: var(--navy-soft); }
.service-card img { display: block; width: 100%; height: 11rem; margin-top: auto; object-fit: cover; }
.services-more { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin: 1.75rem 0 3rem; }
.services-more a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
@media (max-width: 900px) { .service-cards { grid-template-columns: 1fr; } }

/* Pourquoi nous choisir */
.reasons-panel { display: flex; flex-direction: column; align-items: center; gap: 2rem; padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 3rem); background: var(--bg); border-radius: var(--r); }
.reasons-panel h2 { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.reasons-panel h2::after { content: ""; width: 3.5rem; height: 4px; border-radius: 2px; background: var(--red); }
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; list-style: none; margin: 0; padding: 0; }
.reasons li { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: .5rem 1.5rem; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
.reasons li + li { border-left: 1px solid var(--line); }
.reasons .icon { width: 3.25rem; height: 3.25rem; color: var(--navy); stroke-width: 1.6; }
@media (max-width: 760px) {
    .reasons { grid-template-columns: 1fr; gap: 1.5rem; }
    .reasons li + li { border-left: 0; border-top: 1px solid var(--line); padding-top: 1.5rem; }
}

/* Étapes reliées par un tuyau */
.process { background: var(--navy); color: var(--bg); }
.process h2 { color: var(--white); }
.process .section-head p { color: #b9c3cb; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 1.6rem; left: 1.6rem; right: calc((100% - 6rem) / 4 - 1.6rem); height: 6px; margin-top: -3px; background: linear-gradient(90deg, var(--navy), var(--red)); border-radius: 3px; }
.steps li { position: relative; counter-increment: step; }
.steps li::before {
    content: counter(step); display: grid; place-items: center; position: relative;
    width: 3.2rem; height: 3.2rem; margin-bottom: 1.25rem; border-radius: 50%;
    background: var(--navy); border: 3px solid var(--red); color: var(--white);
    font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
}
.steps strong { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--white); margin-bottom: .35rem; }
.steps p { color: #b9c3cb; margin: 0; }
@media (max-width: 900px) {
    .steps { grid-template-columns: 1fr; gap: 1.75rem; }
    .steps::before { top: 1.6rem; bottom: 1.6rem; left: 1.6rem; right: auto; width: 6px; height: auto; margin: 0 0 0 -3px; }
    .steps li { padding-left: 4.5rem; }
    .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
}

/* Zone d'intervention */
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.zone-map { aspect-ratio: 1; max-width: 26rem; justify-self: center; width: 100%; color: var(--red); }
.zone-map text { font-family: var(--font-display); }
@media (max-width: 760px) { .zone { grid-template-columns: 1fr; } }

/* ---------- En-tête des pages internes ---------- */
.page-head { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-head .lead { margin: 0; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }

/* Page Services : blocs détaillés */
.service-detail { display: grid; grid-template-columns: 5rem 1fr 1fr; gap: 1rem 2.5rem; padding-block: 2.75rem; border-bottom: 1px solid var(--line); scroll-margin-top: 6rem; }
.service-detail:first-child { padding-top: 0; }
.service-detail .num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; line-height: 1; color: var(--red); }
.service-detail h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
.service-detail p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .service-detail { grid-template-columns: 1fr; } }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; }
.checklist .icon { color: var(--red); margin-top: .2em; }

.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }

.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.fact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.75rem; }
.fact-card dl { display: grid; grid-template-columns: auto 1fr; gap: .75rem 1.25rem; margin: 0; }
.fact-card dt { color: var(--muted); font-size: .9rem; }
.fact-card dd { margin: 0; font-weight: 600; }

/* ---------- Appel à l'action ---------- */
.cta { padding-block: 0 var(--space-section); }
.cta-inner {
    position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem;
    padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 5vw, 4rem); border-radius: var(--r);
    background: radial-gradient(120% 140% at 100% 100%, var(--navy-2) 0 35%, transparent 35.2%), var(--navy); color: var(--white);
}
.cta-icon { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; flex: none; border-radius: var(--r); background: var(--white); color: var(--navy); }
.cta-icon .icon { width: 2rem; height: 2rem; }
.cta-text { display: flex; flex-direction: column; gap: .25rem; flex: 1 1 18rem; }
.cta h2 { color: var(--white); margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta p { color: rgb(255 255 255 / .85); margin: 0; font-size: 1.1rem; }
.cta .hero-actions { flex: none; }

/* ---------- Formulaire ---------- */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-card h2 { font-size: 1.6rem; }
.form-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 1.25rem; }
.form-row { margin-bottom: 1.25rem; }
.form-row label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.form-row input:not([type="checkbox"]), .form-row select, .form-row textarea {
    width: 100%; min-height: 3rem; padding: .7rem .9rem; font: inherit; color: inherit;
    border: 1px solid #b4bfd0; border-radius: var(--r-sm); background: var(--white);
    transition: border-color .15s, box-shadow .15s;
}
.form-row textarea { resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgb(215 32 46 / .2); }
.form-check { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; }
.form-check input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--red); }
.form-check label { font-weight: 400; font-size: .9rem; color: var(--muted); margin: 0; }
.form-check .form-errors { grid-column: 1 / -1; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--error) !important; }
.form-errors { list-style: none; margin: .4rem 0 0; padding: 0; color: var(--error); font-size: .9rem; font-weight: 600; }
form > .form-errors { margin-bottom: 1.25rem; padding: .85rem 1rem; background: #fdf0ee; border-left: 4px solid var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.contact-info { background: var(--navy); color: var(--bg); border-radius: var(--r); padding: 2rem; }
.contact-info h2 { color: var(--white); font-size: 1.5rem; }
.contact-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1.25rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .icon { color: #ff8f95; margin-top: .2em; }
.contact-list a { color: var(--white); font-weight: 600; word-break: break-word; }
.contact-list small { display: block; color: #b9c3cb; font-size: .85rem; }
address { font-style: normal; }

.thanks { text-align: center; max-width: 36rem; margin-inline: auto; }
.thanks .lead { margin-inline: auto; }
.thanks-badge { display: inline-grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--red); color: var(--white); margin-bottom: 1.5rem; }
.thanks-badge .icon { width: 2rem; height: 2rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: #b9c3cb; padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: #ff8f95; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { color: var(--white); margin-bottom: 1rem; }
.footer-brand .brand-text strong { color: var(--white); }
.footer-brand .brand-text small { color: #c7d2e3; }
.footer-title { color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: .9rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; border-top: 1px solid rgb(255 255 255 / .1); margin-top: 3rem; padding-block: 1.5rem; font-size: .875rem; }
.footer-bottom p { margin: 0; }

/* Bouton d'appel fixe, mobile uniquement */
.call-fab { display: none; }
@media (max-width: 900px) {
    .call-fab {
        display: flex; align-items: center; justify-content: center; gap: .6rem;
        position: fixed; left: 1rem; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom));
        z-index: 60; min-height: 3.5rem; border-radius: var(--r);
        background: var(--red); color: var(--white); font-weight: 700; text-decoration: none;
        box-shadow: 0 10px 30px rgb(20 48 92 / .35);
    }
    .call-fab:hover { color: var(--white); }
    body { padding-bottom: 5.5rem; }
}

/* ---------- Animations ---------- */
.turbo-progress-bar { height: 3px; background: var(--red); }

/* Tout le mouvement reste dans ce bloc : rien ne bouge si le visiteur a demandé moins d'animations. */
@media (prefers-reduced-motion: no-preference) {
    @keyframes rise { from { opacity: 0; translate: 0 1.25rem; } }
    @keyframes fade-in { from { opacity: 0; } }
    @keyframes settle { from { opacity: 0; scale: 1.04; } }

    /* Changement de page (Turbo + View Transitions) : simple fondu, en-tête et bouton d'appel restent fixes.
       Le mouvement vient des entrées ci-dessous ; un glissement de page en plus ferait bouger le contenu deux fois. */
    .site-header { view-transition-name: site-header; }
    .call-fab { view-transition-name: call-fab; }
    ::view-transition-group(root) { animation-duration: .2s; }

    /* Entrée du haut de page, en cascade */
    .hero-photo { animation: settle 1.2s var(--ease-out) both; }
    .hero-content > *,
    .page-head .breadcrumb, .page-head .eyebrow, .page-head h1, .page-head .lead {
        animation: rise .6s var(--ease-out) both;
    }
    .hero h1, .page-head .eyebrow { animation-delay: .06s; }
    .page-head h1 { animation-delay: .12s; }
    .hero .lead, .page-head .lead { animation-delay: .2s; }
    .hero .hero-actions { animation-delay: .28s; }

    .site-nav.is-open { animation: rise .2s ease-out both; }

    /* Apparition au défilement, une seule fois (classes posées par reveal_controller.js) */
    .reveal { opacity: 0; translate: 0 1.5rem; transition: opacity .6s var(--ease-out), translate .6s var(--ease-out); }
    .reveal.is-revealed { opacity: 1; translate: none; }
    .service-card:nth-child(2), .steps li:nth-child(2), .about-grid > :nth-child(2), .zone > :nth-child(2) { transition-delay: .08s; }
    .service-card:nth-child(3), .steps li:nth-child(3) { transition-delay: .16s; }
    .steps li:nth-child(4) { transition-delay: .24s; }

    /* Le trait des étapes se trace quand la première étape apparaît */
    .steps::before { transform-origin: left; transition: scale 1.1s var(--ease-out) .1s; }
    .steps:has(.reveal):not(:has(.is-revealed))::before { scale: 0 1; }
    @media (max-width: 900px) {
        .steps::before { transform-origin: top; }
        .steps:has(.reveal):not(:has(.is-revealed))::before { scale: 1 0; }
    }
}

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