/* ==========================================================================
   Gequus — design system
   ========================================================================== */

:root {
    --bg: #FBFBF9;
    --surface: #F2F2EE;
    --card: #FFFFFF;
    --ink: #0D1B26;
    --ink-2: #4B5864;
    --ink-3: #87919A;
    --line: #E3E3DD;
    --line-strong: #CFCFC7;

    /* Brand — sampled from the logo */
    --brand: #0B4368;
    --brand-hover: #083452;
    --brand-light: #3B9BDA;
    --brand-tint: #EAF3FA;
    --accent: var(--brand);
    --accent-soft: var(--brand-light);

    --dark: #0A1620;
    --dark-2: #12212D;
    --dark-line: rgba(255, 255, 255, 0.1);
    --dark-ink: #EEF2F5;
    --dark-ink-2: #9AA8B4;

    /* Status */
    --ok: #0E7A4F;
    --ok-bg: #E7F5EE;
    --warn: #A15C07;
    --warn-bg: #FDF1DE;
    --risk: #B42318;
    --risk-bg: #FDECEA;
    --info: var(--brand);
    --info-bg: var(--brand-tint);

    --display: "Quicksand", "Geist", ui-rounded, system-ui, sans-serif;
    --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

    --container: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
    --radius: 14px;
    --radius-lg: 24px;
    --header-h: 76px;
    --shadow: 0 1px 2px rgba(13, 27, 38, .04), 0 12px 32px -12px rgba(13, 27, 38, .14);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 3px; border-radius: 6px; }

/* Lucide icons */
.lucide { width: 1em; height: 1em; stroke-width: 1.75; flex: none; }

.skip-link {
    position: absolute; left: 16px; top: -100px; z-index: 200;
    padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Type ------------------------------------------------------------------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin-bottom: 20px;
}
.eyebrow::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--brand-light);
}
.eyebrow--light { color: var(--dark-ink-2); }

.section__title {
    font-family: var(--display);
    font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    font-weight: 700;
    text-wrap: balance;
}
.section__lead {
    margin-top: 20px;
    max-width: 56ch;
    font-size: 1.125rem;
    color: var(--ink-2);
    text-wrap: pretty;
}
.section__lead a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn .lucide { font-size: 17px; transition: transform .3s var(--ease); }
.btn:hover .lucide-arrow-right { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); }
.btn--ghost { border-color: var(--line-strong); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--dark-ink); color: var(--dark); }
.btn--light:hover { background: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Chips ------------------------------------------------------------------ */
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: 999px;
    font-size: 12.5px; font-weight: 500; line-height: 1.5; white-space: nowrap;
}
.chip--ok { color: var(--ok); background: var(--ok-bg); }
.chip--warn { color: var(--warn); background: var(--warn-bg); }
.chip--risk { color: var(--risk); background: var(--risk-bg); }
.chip--info { color: var(--info); background: var(--info-bg); }
.chip--neutral { color: var(--ink-2); background: var(--surface); }

/* Brand ------------------------------------------------------------------ */
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 38px; width: auto; }

/* Header ----------------------------------------------------------------- */
.header {
    position: fixed; inset: 0 0 auto; z-index: 100;
    height: var(--header-h);
    transition: background-color .3s, border-color .3s, backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}
.header.is-scrolled {
    background: rgba(251, 251, 249, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom-color: var(--line);
}
.nav { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav__menu { display: flex; gap: 4px; margin-left: auto; }
.nav__link {
    display: block; padding: 8px 12px;
    font-size: 14.5px; color: var(--ink-2);
    border-radius: 8px;
    transition: color .2s;
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 16px; }

.lang { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang__btn {
    border: 0; background: none; cursor: pointer;
    padding: 4px 9px; border-radius: 999px;
    font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
    color: var(--ink-3);
    transition: background-color .2s, color .2s;
}
.lang__btn:hover { color: var(--ink); }
.lang__btn[aria-pressed="true"] { background: var(--brand); color: #fff; }

.nav__toggle {
    display: none;
    width: 40px; height: 40px; border: 0; background: none; cursor: pointer;
    position: relative;
}
.nav__toggle span {
    position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink);
    transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* Hero ------------------------------------------------------------------- */
.hero {
    position: relative;
    padding-top: calc(var(--header-h) + clamp(48px, 9vw, 112px));
    overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; z-index: -1;
    width: 900px; height: 900px; right: -320px; top: -360px;
    background: radial-gradient(closest-side, rgba(59, 155, 218, .14), transparent 70%);
    pointer-events: none;
}
.hero__copy { max-width: 980px; }
.hero__title {
    font-family: var(--display);
    font-size: clamp(2.75rem, 1.2rem + 5.6vw, 6rem);
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 700;
}
.hero__title span { color: var(--brand); }
.hero__lead { margin-top: 28px; font-size: 1.125rem; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.hero { padding-bottom: clamp(56px, 8vw, 104px); border-bottom: 1px solid var(--line); }


/* Sections --------------------------------------------------------------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section--surface { background: var(--surface); }
.section__head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .section__lead { margin-inline: auto; }
.section__head--row {
    max-width: none;
    display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
}
.section__head--row > div { max-width: 720px; }

.section--dark { background: var(--dark); color: var(--dark-ink); }
.section--dark .section__lead { color: var(--dark-ink-2); }

.split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}
.split__head { position: sticky; top: calc(var(--header-h) + 32px); }

/* Benefit rows */
.rows { border-top: 1px solid var(--line); }
.row {
    display: grid; grid-template-columns: 56px 1fr; gap: 16px;
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
}
.row__index { font-family: var(--mono); font-size: 13px; color: var(--brand-light); padding-top: 4px; }
.row__title { font-family: var(--display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.row__text { margin-top: 8px; color: var(--ink-2); max-width: 54ch; }

/* Timeline (process) ----------------------------------------------------- */
.timeline {
    --node: 72px;
    display: grid; grid-template-columns: repeat(5, 1fr);
}
.timeline__step { position: relative; padding: 0 12px; text-align: center; }
/* Connector: from this node centre to the next node centre */
.timeline__step:not(:last-child)::before,
.timeline__step:not(:last-child)::after {
    content: ""; position: absolute; z-index: 0;
    top: calc(var(--node) / 2 - 1px); left: 50%;
    width: 100%; height: 2px;
}
.timeline__step:not(:last-child)::before { background: var(--line-strong); }
.timeline__step:not(:last-child)::after {
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
    transform: scaleX(0); transform-origin: left;
    transition: transform .45s linear;
}
.timeline__step.is-linked::after { transform: scaleX(1); }

.timeline__node {
    position: relative; z-index: 1;
    width: var(--node); height: var(--node);
    margin: 0 auto;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--line-strong);
    color: var(--ink-3);
    font-size: 26px;
    box-shadow: 0 0 0 8px var(--surface);
    transition: border-color .5s, color .5s, background-color .5s, box-shadow .5s, transform .5s var(--ease);
}
.timeline__num {
    position: absolute; top: -4px; right: -4px;
    width: 24px; height: 24px; border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--mono); font-size: 11px; font-weight: 500;
    background: var(--card); color: var(--ink-3);
    border: 1px solid var(--line-strong);
    transition: background-color .5s, color .5s, border-color .5s;
}
.timeline__step.is-active .timeline__node {
    border-color: var(--brand); color: var(--brand); background: var(--brand-tint);
    box-shadow: 0 0 0 8px var(--surface), 0 12px 28px -12px rgba(11, 67, 104, .5);
}
.timeline__step:hover .timeline__node { transform: translateY(-3px); }
.timeline__step.is-active .timeline__num { background: var(--brand); color: #fff; border-color: var(--brand); }
.timeline__title { margin-top: 28px; font-family: var(--display); font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.timeline__text { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); max-width: 24ch; margin-inline: auto; }

/* Report (dossier + table of contents) ------------------------------------ */
.dossier {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: start;
}
.dossier__doc {
    position: sticky; top: calc(var(--header-h) + 32px);
    display: block;
    padding: clamp(16px, 2.4vw, 28px);
    background: var(--surface);
    border-radius: var(--radius-lg);
}
.dossier__doc img {
    width: 100%; height: auto;
    border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(13, 27, 38, .05), 0 18px 40px -20px rgba(13, 27, 38, .25);
    transition: transform .5s var(--ease);
}
.dossier__doc:hover img { transform: translateY(-4px); }

.toc { border-top: 1px solid var(--ink); }
.toc a {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto 44px;
    gap: 4px 20px;
    align-items: baseline;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
    transition: background-color .2s;
}
.toc__num { font-family: var(--display); font-weight: 700; font-size: 1.125rem; color: var(--brand-light); }
.toc__title { display: block; font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1.25; transition: color .2s; }
.toc__desc { display: block; margin-top: 6px; font-size: 15px; color: var(--ink-2); max-width: 46ch; }
.toc__count { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.toc__page { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); text-align: right; }
.toc a:hover .toc__title { color: var(--brand); }

.dossier__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 32px; }
.dossier__meta { margin-top: 16px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.population__cta { margin-top: 32px; }

/* Features (dark) */
.grid-4 {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--dark-line);
}
.feature { padding: 36px 28px 8px 0; }
.feature + .feature { padding-left: 28px; border-left: 1px solid var(--dark-line); }
.feature__icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center; font-size: 22px;
    color: var(--brand-light); background: rgba(59, 155, 218, .12);
}
.feature__title { margin-top: 32px; font-family: var(--display); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.feature__text { margin-top: 10px; font-size: 15px; color: var(--dark-ink-2); }

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__item summary {
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
    padding: 24px 0;
    font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em;
    cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: ""; flex: none;
    width: 14px; height: 14px;
    background:
        linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
    transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--brand); }
.faq__item p { padding: 0 48px 28px 0; color: var(--ink-2); max-width: 64ch; }

/* Contact */
.contact {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(40px, 6vw, 96px);
    padding: clamp(32px, 6vw, 80px);
    background: var(--dark);
    color: var(--dark-ink);
    border-radius: var(--radius-lg);
}
.contact__title {
    font-family: var(--display);
    font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem);
    font-weight: 700; letter-spacing: -0.03em; line-height: 1.02;
}
.contact__text { margin-top: 24px; color: var(--dark-ink-2); max-width: 40ch; font-size: 1.0625rem; }
.contact__mail {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 40px;
    font-size: 1.125rem; padding-bottom: 4px;
    border-bottom: 1px solid var(--dark-line);
    transition: border-color .2s;
}
.contact__mail .lucide { color: var(--brand-light); }
.contact__mail:hover { border-color: var(--dark-ink); }

.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; color: var(--dark-ink-2); }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 13px 14px;
    background: var(--dark-2);
    border: 1px solid var(--dark-line);
    border-radius: 10px;
    color: var(--dark-ink);
    font-size: 15px;
    transition: border-color .2s, background-color .2s;
}
.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%239AA8B4' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
    padding-right: 40px;
}
.field select option { color: var(--ink); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255,255,255,.2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-light); }
.field.has-error input, .field.has-error textarea { border-color: #F97066; }
.field__error { font-size: 13px; color: #F97066; }
.field__error:empty { display: none; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--dark-ink-2); cursor: pointer; }
.check input {
    appearance: none; flex: none;
    width: 18px; height: 18px; margin-top: 2px;
    border: 1px solid rgba(255,255,255,.3); border-radius: 5px;
    display: grid; place-content: center; cursor: pointer;
}
.check input::after {
    content: ""; width: 10px; height: 10px;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    background: var(--dark); transform: scale(0); transition: transform .15s;
}
.check input:checked { background: var(--dark-ink); border-color: var(--dark-ink); }
.check input:checked::after { transform: scale(1); }
.check a { color: var(--dark-ink); text-decoration: underline; text-underline-offset: 3px; }

.form .btn { margin-top: 4px; }
.form__status { font-size: 14px; min-height: 1.4em; }
.form__status.is-success { color: #6CE9A6; }
.form__status.is-error { color: #F97066; }

/* Footer ----------------------------------------------------------------- */
.footer { padding: 72px 0 32px; }
.footer__top {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap;
    padding-bottom: 48px; border-bottom: 1px solid var(--line);
}
.footer__tagline { margin-top: 14px; color: var(--ink-2); font-size: 15px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14.5px; color: var(--ink-2); }
.footer__nav a:hover { color: var(--ink); }
.footer__bottom {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding-top: 24px; font-size: 13.5px; color: var(--ink-3);
}
.footer__bottom a:hover { color: var(--ink); }

/* Cookies ---------------------------------------------------------------- */
.cookies {
    position: fixed; left: 16px; bottom: 16px; z-index: 150;
    width: min(420px, calc(100% - 32px));
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px -20px rgba(13, 27, 38, .25);
    font-size: 14px; color: var(--ink-2);
    animation: slide-up .5s var(--ease);
}
.cookies[hidden] { display: none; }
.cookies a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cookies__actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
@keyframes slide-up { from { opacity: 0; transform: translateY(16px); } }

/* Reveal ----------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Legal pages ------------------------------------------------------------ */
.legal { padding: calc(var(--header-h) + 64px) 0 96px; }
.legal .container { max-width: calc(760px + var(--gutter) * 2); }
.legal .section__header { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.legal .section__subtitle { margin-top: 12px; color: var(--ink-3); font-family: var(--mono); font-size: 13px; }
.legal-content { color: var(--ink-2); }
.legal-content h2 { margin: 48px 0 12px; color: var(--ink); font-family: var(--display); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.legal-content h3 { margin: 28px 0 8px; color: var(--ink); font-size: 1.0625rem; font-weight: 500; }
.legal-content p, .legal-content ul, .legal-content ol { margin-bottom: 14px; }
.legal-content ul { list-style: disc; padding-left: 1.25em; }
.legal-content ol { list-style: decimal; padding-left: 1.25em; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.legal-content strong { color: var(--ink); font-weight: 500; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
.legal-content th, .legal-content td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal-content th { color: var(--ink); font-weight: 500; }
.footer--legal { padding-top: 0; }
.footer--legal .footer__bottom { border-top: 1px solid var(--line); }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1080px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .feature:nth-child(3) { padding-left: 0; border-left: 0; }
    .feature:nth-child(n+3) { border-top: 1px solid var(--dark-line); margin-top: 28px; }
}

/* Vertical timeline */
@media (max-width: 900px) {
    .timeline { --node: 56px; grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
    .timeline__step {
        display: grid; grid-template-columns: var(--node) 1fr; column-gap: 20px;
        text-align: left; padding: 0 0 36px;
    }
    .timeline__step:last-child { padding-bottom: 0; }
    .timeline__step:not(:last-child)::before,
    .timeline__step:not(:last-child)::after {
        top: calc(var(--node) / 2); left: calc(var(--node) / 2 - 1px);
        width: 2px; height: 100%;
    }
    .timeline__step:not(:last-child)::after {
        background: linear-gradient(180deg, var(--brand), var(--brand-light));
        transform: scaleY(0); transform-origin: top;
    }
    .timeline__step.is-linked::after { transform: scaleY(1); }
    .timeline__node { grid-row: span 2; margin: 0; font-size: 22px; }
    .timeline__title { margin-top: 6px; }
    .timeline__text { margin-inline: 0; max-width: none; }
}

@media (max-width: 900px) {
    :root { --header-h: 64px; }
    .brand__logo { height: 32px; }
    .nav { gap: 12px; }
    .nav__toggle { display: block; }
    .nav__cta { display: none; }
    .nav__menu {
        position: fixed; inset: var(--header-h) 0 auto 0;
        flex-direction: column; gap: 0;
        padding: 8px var(--gutter) 24px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .25s, transform .3s var(--ease), visibility .25s;
    }
    .nav__menu.is-open { opacity: 1; visibility: visible; transform: none; }
    .nav__menu li + li { border-top: 1px solid var(--line); }
    .nav__link { padding: 16px 0; font-size: 1.125rem; color: var(--ink); }
    .nav__actions { margin-left: auto; }
    .header.menu-open { background: var(--bg); border-bottom-color: var(--line); }


    .split { grid-template-columns: 1fr; }
    .split__head { position: static; }
    .dossier { grid-template-columns: 1fr; }
    .dossier__doc { position: static; max-width: 420px; }
    .contact { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .lang__btn { padding: 4px 7px; }
    .hero__ctas .btn { flex: 1; }
    .grid-4 { grid-template-columns: 1fr; }
    .feature, .feature + .feature { padding: 28px 0; border-left: 0; margin-top: 0; }
    .feature + .feature { border-top: 1px solid var(--dark-line); }
    .feature__title { margin-top: 20px; }
    .row { grid-template-columns: 40px 1fr; padding: 24px 0; }
    .toc a { grid-template-columns: 28px minmax(0, 1fr) 36px; }
    .toc__count { grid-column: 2; grid-row: 2; }
    .toc__page { grid-column: 3; grid-row: 1; }
    .toc__title { font-size: 1.15rem; }
    .form__row { grid-template-columns: 1fr; }
    .contact { padding: 28px 20px; border-radius: 20px; margin-inline: calc(var(--gutter) * -0.5); }
    .faq__item p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
    .timeline__step::after { transform: none !important; }
}
