/*
 * Hapsis Web Studio · feuille de style du site public.
 * Référence : docs/DESIGN.md (design system v2) et maquette d'accueil validée (ADR-025).
 * Aucun style en ligne : la politique de sécurité du contenu les interdit (docs/SECURITY.md §5).
 */

/* ---------------------------------------------------------------- Polices auto-hébergées (OFL 1.1) */
@font-face {
    font-family: 'Newsreader';
    src: url("../fonts/newsreader-latin-opsz-wght-Fay8EF3.woff2") format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Newsreader';
    src: url("../fonts/newsreader-latin-400-italic-SQMF5nz.woff2") format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Hanken Grotesk';
    src: url("../fonts/hanken-grotesk-latin-wght-vOuBqtB.woff2") format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ---------------------------------------------------------------- Jetons (docs/DESIGN.md §2) */
:root {
    --cream: #F5F1E8;
    --white: #FFFFFF;
    --sand: #EDE6D8;
    --sand-hover: #EFE9DD;
    --ink: #24231F;
    --ink-hover: #3A3832;
    --night: #1A1916;
    --gold: #B58A4A;
    --gold-deep: #7F5F2E;
    --gold-deeper: #5E4520;
    --muted: #5E584D;
    --body-dark: #3A3832;
    --line: #CFC6B4;
    --line-soft: #E6DFD1;
    --chip-border: #8A8478;
    --paper: #FAF8F3;
    --on-dark-muted: #C9C1B2;

    --serif: 'Newsreader', Georgia, serif;
    --sans: 'Hanken Grotesk', 'Segoe UI', system-ui, sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --container: 1280px;
    --gutter: 32px;
}

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    font-feature-settings: "kern", "liga", "onum";
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
a { color: var(--gold-deep); }
a:hover { color: var(--gold-deeper); }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; }
main:focus { outline: none; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
    white-space: nowrap;
}
.skip-link {
    position: absolute; left: 16px; top: -64px; z-index: 100;
    padding: 12px 18px; border-radius: 4px;
    background: var(--ink); color: var(--cream); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--cream); }

.container { max-width: var(--container); margin: 0 auto; }
.stack-56 { display: flex; flex-direction: column; gap: 56px; }

/* ---------------------------------------------------------------- Typographie (docs/DESIGN.md §3) */
.display {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(52px, 6.6vw, 92px); line-height: .98; letter-spacing: -.02em;
}
.section-title {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(40px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.02em;
}
.lead { font-size: 20px; line-height: 1.6; color: var(--body-dark); max-width: 580px; }
.eyebrow {
    font-variant-caps: all-small-caps; letter-spacing: .06em;
    font-size: 18px; color: var(--muted);
}
.eyebrow--numbered {
    font-size: 16px; color: var(--gold-deep);
    font-feature-settings: "lnum", "tnum";
}
.eyebrow--gold { color: var(--gold); }

/* ---------------------------------------------------------------- Liens et boutons (docs/DESIGN.md §6) */
.btn {
    display: inline-flex; align-items: center; gap: 12px;
    min-height: 58px; padding: 0 30px; border: 0; border-radius: 4px;
    background: var(--ink); color: var(--cream);
    font: inherit; font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer;
    transition: background-color .25s ease;
}
.btn:hover { background: var(--ink-hover); color: var(--cream); }
.btn--small { min-height: 46px; padding: 0 20px; gap: 10px; font-size: 16px; }
.btn--medium { min-height: 56px; padding: 0 28px; }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: var(--white); color: var(--ink); }
.btn__arrow { display: inline-block; transition: transform .25s ease; }
.btn:hover .btn__arrow, .tile:hover .btn__arrow { transform: translateX(5px); }

.link-underline {
    color: var(--ink); font-size: 17px; font-weight: 500; text-decoration: none;
    padding-bottom: 3px;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
    transition: background-size .3s ease;
}
.link-underline:hover { color: var(--ink); background-size: 0 1px; background-position: 100% 100%; }
.link-underline--light, .link-underline--light:hover { color: var(--cream); font-weight: 400; }

/* ---------------------------------------------------------------- En-tête */
.site-header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(245, 241, 232, .6);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 1px 0 rgba(216, 208, 192, 0);
    transition: box-shadow .3s ease, background-color .3s ease;
}
.site-header.is-scrolled {
    background: rgba(245, 241, 232, .78);
    box-shadow: 0 1px 0 #D8D0C0, 0 10px 30px rgba(36, 35, 31, .06);
}
.site-header__inner {
    max-width: var(--container); margin: 0 auto; padding: 22px var(--gutter);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    transition: padding .3s ease;
}
.site-header.is-scrolled .site-header__inner { padding-top: 10px; padding-bottom: 10px; }
.site-header__brand { display: inline-flex; align-items: center; min-height: 44px; }
.site-header__logo { height: 46px; width: auto; transition: height .3s ease; }
.site-header.is-scrolled .site-header__logo { height: 36px; }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; font-size: 16px; }
.site-nav__link { position: relative; padding: 10px 0; color: var(--ink); text-decoration: none; }
.site-nav__link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
    background: var(--ink); transform: scaleX(0); transform-origin: right;
    transition: transform .3s ease;
}
.site-nav__link:hover { color: var(--ink); }
.site-nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
/* Page en cours : graisse et filet doré, comme sur les maquettes */
.site-nav__link[aria-current="page"] { font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold); }
.site-nav__link[aria-current="page"]::after { content: none; }

/* Bouton « Menu » et menu plein écran (petits écrans, avec JavaScript seulement) */
.menu-toggle {
    display: none; min-width: 44px; min-height: 44px; padding: 0 16px;
    border: 1px solid var(--line); border-radius: 4px; background: var(--cream);
    color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
@media (max-width: 860px) {
    .js .menu-toggle { display: inline-flex; align-items: center; position: relative; z-index: 2; }
    .js .site-header__inner { flex-wrap: nowrap; }
    .js .site-nav { display: none; }
    .js .site-header.is-menu-open .site-nav {
        display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
        position: fixed; inset: 0; z-index: 1; padding: 112px var(--gutter) 40px;
        background: var(--cream); overflow-y: auto;
    }
    .js .site-header.is-menu-open .site-nav__link { font-family: var(--serif); font-size: 36px; line-height: 1.2; }
    .js .site-header.is-menu-open .btn { margin-top: 24px; }
    .js .site-header.is-menu-open .site-header__brand { position: relative; z-index: 2; }
}
.menu-open { overflow: hidden; }
/* Le flou de fond ferait du bandeau le repère du menu fixe : on le retire pendant l'ouverture */
.site-header.is-menu-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--cream); }

/* ---------------------------------------------------------------- Accueil : haut de page */
.hero {
    position: relative; max-width: var(--container); margin: 0 auto;
    padding: 56px var(--gutter) 128px; overflow-x: clip;
    display: flex; flex-wrap: wrap; gap: 40px; align-items: center;
}
.hero__text { flex: 1 1 600px; display: flex; flex-direction: column; gap: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.hero__note { font-size: 15px; color: var(--muted); }
.hero__visual { flex: 1 1 420px; position: relative; min-height: 460px; }
.hero__plate { position: absolute; left: 16%; right: -40%; top: 6%; bottom: -4%; background: var(--sand); }
.hero__rule { position: absolute; left: 16%; top: 6%; width: 64px; height: 1px; background: var(--gold); }
/* Monogramme posé au centre du panneau sable (plus large et moins haut que l'ancienne enclume) */
.hero__mark { position: relative; width: 76%; max-width: 520px; height: auto; margin: clamp(96px, 11vw, 158px) 0 0 24%; }

.ink-word { position: relative; white-space: nowrap; }
.ink-word em { font-style: italic; }
.ink-word__stroke { position: absolute; left: -2%; bottom: -14px; width: 118%; height: 30px; overflow: visible; }
.ink-word__path {
    fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round;
    stroke-dasharray: 420; stroke-dashoffset: 420;
    animation: ows-ink 1.1s .75s cubic-bezier(.6, .1, .3, 1) forwards;
}
.ink-word__spark { fill: var(--gold); animation: ows-spark .5s cubic-bezier(.2, .8, .3, 1.3) both; }
.ink-word__spark--1 { animation-delay: 1.75s; }
.ink-word__spark--2 { fill: var(--ink); animation-delay: 1.9s; }
.ink-word__spark--3 { animation-delay: 2.05s; }

/* Cascade au chargement (docs/DESIGN.md §7) */
.hero__in { animation: ows-in .9s var(--ease) both; }
.hero__in--1 { animation-delay: .08s; }
.hero__in--2 { animation-delay: .18s; }
.hero__in--3 { animation-delay: .28s; }
.hero__in--4 { animation-delay: .36s; }
.hero__mark { animation: ows-mark 1.1s .25s var(--ease) both; }

@keyframes ows-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes ows-ink { to { stroke-dashoffset: 0; } }
@keyframes ows-spark {
    0% { opacity: 0; transform: translate(-6px, 6px) scale(.4); }
    60% { opacity: 1; }
    100% { opacity: 1; transform: none; }
}
@keyframes ows-mark { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- Sections */
.section { padding: 128px var(--gutter); }
.section--white { background: var(--white); }
.section--banner { padding-bottom: 136px; }
.section--night { position: relative; overflow: hidden; background: var(--night); color: var(--cream); padding-top: 136px; padding-bottom: 136px; }
.section--ink { position: relative; overflow: hidden; background: var(--ink); color: var(--cream); padding-top: 112px; padding-bottom: 112px; }

.section-head { display: flex; flex-wrap: wrap; gap: 24px 64px; justify-content: space-between; align-items: flex-end; }
.section-head__main { flex: 1 1 560px; display: flex; flex-direction: column; gap: 20px; }
.section-head__aside { flex: 0 1 380px; font-size: 18px; line-height: 1.6; color: var(--muted); }

/* Blocs de solution */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 20px; }
.tiles__item { display: flex; }
.tile {
    width: 100%; min-height: 360px; padding: 40px;
    display: flex; flex-direction: column; gap: 18px;
    background: var(--cream); border: 1px solid var(--cream); border-radius: 8px;
    color: var(--ink); text-decoration: none;
    transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.tile:hover { color: var(--ink); background: var(--sand-hover); border-color: var(--gold); box-shadow: 0 18px 40px rgba(36, 35, 31, .06); }
.icon { color: var(--gold); flex: none; }
.tile__title { margin-top: 8px; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; letter-spacing: -.01em; }
.tile__text { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 440px; }
.tile__more { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 8px; color: var(--gold-deep); font-weight: 600; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags__item { padding: 6px 12px; border-radius: 999px; background: var(--white); font-size: 14px; line-height: 1.4; color: var(--body-dark); }

/* Carte « Notre métier » */
.banner {
    position: relative; overflow: hidden; max-width: var(--container); margin: 0 auto;
    background: var(--white); border: 1px solid var(--line-soft); border-radius: 8px;
    box-shadow: 0 30px 70px rgba(36, 35, 31, .07);
}
.banner__watermark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(70%, 640px); height: auto; opacity: .05; pointer-events: none; }
.banner__head {
    position: relative; display: flex; flex-wrap: wrap; gap: 40px 64px;
    align-items: flex-end; justify-content: space-between; padding: 72px 64px 56px;
}
.banner__main { flex: 1 1 620px; display: flex; flex-direction: column; gap: 22px; }
.section-title--banner { font-size: clamp(38px, 4.2vw, 58px); line-height: 1.04; }
.banner__aside { flex: 0 1 340px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.banner__text { font-size: 18px; line-height: 1.6; color: var(--body-dark); }
.qualities { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); padding: 0 32px 24px; }
.quality { display: flex; flex-direction: column; gap: 14px; padding: 36px 32px; border-top: 1px solid var(--line-soft); }
.quality__title { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; }
.quality__text { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Frise des étapes */
.night-glow {
    position: absolute; left: 50%; top: -340px; width: 1100px; height: 620px;
    transform: translateX(-50%); border-radius: 50%;
    background: radial-gradient(closest-side, rgba(181, 138, 74, .16), rgba(181, 138, 74, 0));
}
.steps-wrap { position: relative; max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 88px; }
.steps-head { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.steps-head .section-title { font-size: clamp(40px, 4.6vw, 64px); }
.steps-head__lead { font-size: 20px; line-height: 1.6; color: var(--on-dark-muted); max-width: 620px; }
.steps { position: relative; }
.steps__rail { position: absolute; left: 18px; top: 8px; bottom: 8px; width: 2px; background: var(--ink-hover); }
.steps__rail-fill { display: block; width: 2px; height: 0; background: var(--gold); transition: height .6s var(--ease); }
.steps__list { position: relative; list-style: none; padding: 0 0 0 72px; display: flex; flex-direction: column; gap: 72px; }
.step {
    position: relative; display: flex; flex-wrap: wrap; gap: 12px 48px;
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.step__dot { position: absolute; left: -61px; top: 14px; width: 12px; height: 12px; background: var(--ink-hover); transition: background-color .8s ease; }
.step__number {
    flex: 0 0 120px; font-family: var(--serif); font-weight: 300; font-size: 64px; line-height: .9;
    font-feature-settings: "lnum", "tnum"; color: var(--muted); transition: color .8s ease;
}
.step.is-reached .step__dot { background: var(--gold); }
.step.is-reached .step__number { color: var(--gold); }
.step__body { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.step__name { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; }
.step__text { font-size: 18px; line-height: 1.65; color: var(--on-dark-muted); max-width: 620px; }
.step__commit { margin-top: 6px; font-size: 15px; color: var(--cream); }
.step__commit-label { font-variant-caps: all-small-caps; letter-spacing: .06em; color: var(--gold); }

/* Engagements */
.commitments { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.commitments__quote { flex: 1 1 520px; display: flex; flex-direction: column; gap: 22px; }
.commitments__title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.6vw, 50px); line-height: 1.15; letter-spacing: -.015em; }
.commitments__title em { color: var(--gold-deep); }
.commitments__list { flex: 1 1 380px; list-style: none; padding: 0; display: flex; flex-direction: column; }
.commitments__item {
    display: flex; gap: 16px; align-items: baseline; padding: 20px 0;
    border-top: 1px solid var(--line); font-size: 17px; line-height: 1.5;
}
.commitments__item:last-child { border-bottom: 1px solid var(--line); }
.commitments__item::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; background: var(--gold); transform: translateY(-2px); }

/* Appel final */
.cta__watermark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(70%, 640px); height: auto; opacity: .07; pointer-events: none; }
.cta__inner { position: relative; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-end; }
.cta__intro { flex: 1 1 460px; display: flex; flex-direction: column; gap: 18px; }
.cta__intro .section-title { font-size: clamp(40px, 4.4vw, 62px); line-height: 1; letter-spacing: -.015em; }
.cta__lead { font-size: 18px; line-height: 1.6; color: var(--on-dark-muted); max-width: 460px; }
.cta__form { flex: 1 1 520px; display: flex; flex-direction: column; gap: 22px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.cta__count { font-size: 15px; color: var(--on-dark-muted); }

/* Pastilles de choix */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; }
.chip { position: relative; display: inline-flex; }
.chip__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip__label {
    display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px;
    border: 1px solid var(--chip-border); border-radius: 999px;
    color: var(--cream); font-size: 16px; cursor: pointer; user-select: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.chip__label:hover { border-color: var(--cream); }
.chip__input:checked + .chip__label { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.chip__input:focus-visible + .chip__label { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------------------------------------------------------------- Pied de page */
.site-footer { background: var(--sand); padding: 72px var(--gutter) 36px; }
.site-footer__inner { max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; gap: 44px; }
.site-footer__columns { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.site-footer__brand { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.site-footer__brand img { width: 210px; height: auto; }
.site-footer__nav { flex: 1 1 200px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.site-footer__nav a { color: var(--ink); padding: 2px 0; }
.site-footer__copyright { padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- Pages intérieures : tête de page */
.page-hero { max-width: var(--container); margin: 0 auto; padding: 72px var(--gutter) 112px; overflow-x: clip; }
.page-hero--tall { padding-bottom: 128px; }
.page-hero__inner { display: flex; flex-direction: column; gap: 30px; max-width: 900px; }
.page-hero__inner--wide { max-width: 920px; }
.page-title {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(48px, 6vw, 84px); line-height: 1; letter-spacing: -.02em;
}
.lead--wide { max-width: 640px; }
.lead--wider { max-width: 660px; }
.anchor-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.anchor-chip {
    display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
    color: var(--ink); font-size: 15px; text-decoration: none;
    transition: border-color .25s ease, background-color .25s ease;
}
.anchor-chip:hover { color: var(--ink); border-color: var(--gold); background: var(--white); }
.anchor-chip__number { color: var(--gold-deep); font-weight: 600; font-feature-settings: "lnum", "tnum"; }

/* ---------------------------------------------------------------- Solutions : une famille par section */
.family { scroll-margin-top: 72px; }
.family__inner { display: flex; flex-wrap: wrap; gap: 56px 80px; align-items: stretch; }
.family--reverse .family__inner { flex-direction: row-reverse; }
.family__text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 24px; }
.family__label { display: flex; align-items: center; gap: 18px; }
.family__intro { font-size: 19px; line-height: 1.65; color: var(--body-dark); max-width: 560px; }
.family__action { margin-top: 8px; }
.family__card { flex: 1 1 440px; display: flex; flex-direction: column; gap: 32px; padding: 44px; border-radius: 8px; background: var(--cream); }
.family__card--white { background: var(--white); }
.family__group { display: flex; flex-direction: column; gap: 6px; }
.family__group--fits { gap: 16px; }
.family__subtitle { margin-bottom: 8px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; }
.family__group--fits .family__subtitle { margin-bottom: 0; }
.family__list { list-style: none; padding: 0; }
.family__list li { padding: 14px 0; border-top: 1px solid var(--line-soft); font-size: 17px; line-height: 1.5; }
.fit-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fit-list li { display: flex; gap: 14px; align-items: baseline; font-size: 17px; line-height: 1.55; color: var(--body-dark); }
.fit-list li::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; background: var(--gold); transform: translateY(-2px); }

/* Appels de fin de page */
.end__inner { position: relative; max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.end__title { font-size: clamp(40px, 4.6vw, 64px); }
.end__lead { font-size: 20px; line-height: 1.6; color: var(--on-dark-muted); max-width: 620px; }
.end__actions { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; align-items: center; margin-top: 6px; }
.end-band { padding-top: 120px; padding-bottom: 120px; }
.end-band__inner { position: relative; display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-end; justify-content: space-between; }
.end-band__text { flex: 1 1 560px; display: flex; flex-direction: column; gap: 18px; }
.end-band__title { font-size: clamp(40px, 4.4vw, 62px); letter-spacing: -.015em; }
.end-band__lead { max-width: 520px; }

/* ---------------------------------------------------------------- Notre approche */
.steps--detailed .steps__list { gap: 88px; }
.steps--detailed .step { gap: 16px 56px; }
.steps--detailed .step__dot { top: 16px; }
.steps--detailed .step__number { flex-basis: 110px; }
.steps--detailed .step__body { flex: 1 1 560px; gap: 18px; }
.steps--detailed .step__name { font-size: clamp(30px, 3vw, 40px); }
.steps--detailed .step__text { max-width: 680px; }
.step__meta { display: flex; flex-wrap: wrap; gap: 14px 40px; padding-top: 18px; border-top: 1px solid var(--ink-hover); }
.step__meta-item { flex: 1 1 280px; font-size: 15px; line-height: 1.55; color: var(--cream); }
.step__meta-label { display: block; margin-bottom: 4px; font-variant-caps: all-small-caps; letter-spacing: .06em; color: var(--gold); }

.section-head__aside--wide { flex-basis: 400px; }
.durations { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.duration { display: flex; flex-direction: column; gap: 14px; padding: 40px 34px; border-radius: 8px; background: var(--cream); }
.duration__number { font-family: var(--serif); font-size: 30px; color: var(--gold-deep); font-feature-settings: "lnum", "tnum"; }
.duration__title { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; }
.duration__text { font-size: 17px; line-height: 1.6; color: var(--muted); }

.principles { display: flex; flex-wrap: wrap; gap: 56px 80px; align-items: flex-start; }
.principles__head { flex: 1 1 420px; display: flex; flex-direction: column; gap: 20px; }
.principles__list { flex: 1 1 480px; list-style: none; padding: 0; border-bottom: 1px solid var(--line); }
.principles__item {
    padding: 22px 0; border-top: 1px solid var(--line);
    font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.25;
}
.reveal--s1 { transition-delay: .06s; }
.reveal--s2 { transition-delay: .12s; }
.reveal--s3 { transition-delay: .18s; }
.reveal--s4 { transition-delay: .24s; }
.reveal--s5 { transition-delay: .3s; }

/* ---------------------------------------------------------------- Tarifs */
.pricing-vat { font-size: 15px; color: var(--muted); }
.offer-grid { display: grid; gap: 20px; }
.offer-grid--sites { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.offer-grid--shops { grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); }
.offer-grid--support { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.offer-card { display: flex; flex-direction: column; gap: 22px; padding: 36px 30px; border-radius: 8px; background: var(--cream); }
.offer-card--white { gap: 20px; padding: 36px 32px; background: var(--white); }
.offer-card__name { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; }
.offer-card__tagline { font-size: 16px; line-height: 1.55; color: var(--muted); }
.offer-card__bottom { margin-top: auto; display: flex; flex-direction: column; gap: 22px; }
.offer-card__bottom--support { gap: 20px; }
.offer-card--white .price__amount { font-size: 34px; }
.price { display: flex; flex-direction: column; gap: 4px; }
.price__from { font-size: 14px; color: var(--muted); }
.price__amount { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: -.01em; color: var(--ink); font-feature-settings: "lnum"; }
.price__unit { font-family: var(--sans); font-size: 15px; letter-spacing: 0; color: var(--muted); }
.btn--card { justify-content: center; min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn--outline.btn--card { min-height: 52px; }

.shop-card { display: flex; flex-direction: column; gap: 26px; padding: 48px 44px; border-radius: 8px; background: var(--white); color: var(--ink); }
.shop-card__head { display: flex; flex-direction: column; gap: 10px; }
.shop-card__name { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.1; }
.shop-card__tagline { font-size: 17px; line-height: 1.55; color: var(--muted); }
.shop-card__action { margin-top: auto; padding-top: 8px; }
.shop-card--dark { background: var(--ink); color: var(--cream); }
.shop-card--dark .shop-card__tagline, .shop-card--dark .price__from, .shop-card--dark .price__unit { color: var(--on-dark-muted); }
.shop-card--dark .price__amount { color: var(--cream); }
.check-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: baseline; font-size: 16px; line-height: 1.5; }
.check-list svg { flex: 0 0 auto; color: var(--gold); transform: translateY(2px); }
.pricing-note { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 820px; }
.pricing-note--strong { font-size: 16px; color: var(--body-dark); max-width: none; }

.custom-offer {
    position: relative; overflow: hidden; max-width: var(--container); margin: 0 auto;
    display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: center;
    padding: 72px 64px; border-radius: 8px; background: var(--cream);
}
.custom-offer__watermark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(70%, 560px); height: auto; opacity: .06; pointer-events: none; }
.custom-offer__text { position: relative; flex: 1 1 560px; display: flex; flex-direction: column; gap: 20px; }
.custom-offer__intro { max-width: 600px; }
.custom-offer__aside { position: relative; flex: 0 1 320px; display: flex; flex-direction: column; gap: 22px; }
.custom-offer__quote { font-family: var(--serif); font-size: 44px; line-height: 1; }
.custom-offer__inclusion { font-size: 16px; color: var(--muted); }

.always { position: relative; max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 56px; }
.always__list { list-style: none; padding: 0; border-bottom: 1px solid var(--ink-hover); }
.always__item { display: flex; gap: 22px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--ink-hover); font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25; }
.always__number { flex: 0 0 48px; font-size: 30px; color: var(--gold); font-feature-settings: "lnum", "tnum"; }
.end__inner--light { gap: 24px; }
.end__title--light { font-size: clamp(38px, 4.4vw, 60px); line-height: 1.04; }
.end__lead--light { font-size: 19px; color: var(--muted); max-width: 600px; }
.reveal--o1 { transition-delay: .08s; }
.reveal--o2 { transition-delay: .16s; }
.reveal--o3 { transition-delay: .24s; }

/* ---------------------------------------------------------------- Pages légales */
.page-hero--legal { padding-bottom: 96px; }
.page-hero--legal .page-hero__inner { gap: 28px; }
.legal-updated { font-size: 16px; color: var(--muted); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.legal-nav__link {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 15px; text-decoration: none;
}
.legal-nav__link:hover { color: var(--ink); border-color: var(--gold); }
.legal-nav__link[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.legal { padding-top: 96px; padding-bottom: 136px; }
.legal__inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 48px 96px; align-items: flex-start; }
.legal-toc { flex: 0 1 300px; display: flex; flex-direction: column; gap: 14px; }
.legal-toc__title { font-size: 15px; color: var(--muted); font-variant-caps: all-small-caps; letter-spacing: .06em; }
.legal-toc__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.legal-toc__link { display: inline-flex; gap: 14px; padding: 6px 0; color: var(--ink); font-size: 16px; text-decoration: none; }
.legal-toc__link:hover { color: var(--gold-deep); }
.legal-toc__number { min-width: 24px; color: var(--gold-deep); font-feature-settings: "lnum", "tnum"; }
.legal-article { flex: 1 1 620px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 44px; }
.legal-section { display: flex; flex-direction: column; gap: 18px; padding-top: 44px; border-top: 1px solid var(--line-soft); scroll-margin-top: 90px; }
.legal-section__title { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.15; letter-spacing: -.01em; }
.legal-section__number { margin-right: 14px; color: var(--gold); font-feature-settings: "lnum", "tnum"; }
.legal-section__body { display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.75; color: var(--body-dark); }
.legal-section__body h3 { margin-top: 10px; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--ink); }
.legal-section__body ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; line-height: 1.7; }
.legal-section__body strong { color: var(--ink); font-weight: 600; }
.legal-section__body table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.legal-section__body th, .legal-section__body td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; min-width: 140px; }
.legal-section__body th { font-weight: 600; color: var(--ink); background: var(--cream); }

/* ---------------------------------------------------------------- Contact et formulaire à étapes */
.contact {
    max-width: var(--container); margin: 0 auto; padding: 64px var(--gutter) 136px;
    display: flex; flex-wrap: wrap; gap: 56px 80px; align-items: flex-start;
}
.contact__aside { flex: 1 1 400px; display: flex; flex-direction: column; gap: 30px; padding-top: 12px; }
.contact__title { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 5.4vw, 76px); line-height: 1; letter-spacing: -.02em; }
.contact__lead { font-size: 19px; line-height: 1.6; color: var(--body-dark); max-width: 460px; }
.contact__promises li { color: var(--ink); line-height: 1.5; }
.contact__direct { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 17px; }
.contact__direct-label { font-size: 15px; color: var(--muted); }
.contact__privacy { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 420px; }
.contact__panel {
    flex: 1 1 560px; min-width: 0; padding: 48px; border-radius: 8px; background: var(--white);
    box-shadow: 0 30px 70px rgba(36, 35, 31, .07);
}
.contact-nojs { display: flex; flex-direction: column; gap: 16px; }
.js .contact-nojs { display: none; }
.contact-form { display: none; position: relative; flex-direction: column; gap: 28px; }
.js .contact-form { display: flex; }
.contact-form [hidden] { display: none !important; }

.progress { display: flex; flex-direction: column; gap: 10px; }
.progress__labels { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.progress__count { font-variant-caps: all-small-caps; letter-spacing: .06em; font-feature-settings: "lnum", "tnum"; }
.progress__track { height: 3px; border-radius: 2px; background: var(--line-soft); }
.progress__bar { width: 0; height: 3px; border-radius: 2px; background: var(--gold); transition: width .5s var(--ease); }

.form-alert { padding: 18px 20px; border-radius: 8px; background: #FDECEA; color: #8C1D18; font-size: 15px; line-height: 1.5; }
.form-alert a { color: #8C1D18; }
.form-alert__title { font-weight: 700; }
.form-alert__list { margin: 8px 0 0; padding-left: 20px; }

.form-step { display: flex; flex-direction: column; gap: 28px; }
.form-step__head { display: flex; flex-direction: column; gap: 8px; }
.form-step__title { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; letter-spacing: -.01em; }
.form-step__title:focus { outline: none; }
.form-step__intro { color: var(--muted); }
.form-note { padding: 18px 20px; border-radius: 8px; background: var(--cream); font-size: 15px; line-height: 1.5; }
.form-note--privacy { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; line-height: 1.6; color: var(--body-dark); }
.form-note__icon { flex: 0 0 auto; margin-top: 2px; color: var(--gold-deep); }

.situation-block { display: flex; flex-direction: column; gap: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.situation-block__title { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.question { display: flex; flex-direction: column; }

.choice-group { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.choice-group__legend { margin-bottom: 10px; padding: 0; font-size: 16px; font-weight: 600; }
.option {
    display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 10px 18px;
    border: 1px solid var(--line-soft); border-radius: 8px; background: var(--white);
    font-size: 16px; cursor: pointer; transition: border-color .2s ease, background-color .2s ease;
}
.option:hover { border-color: var(--chip-border); }
.option:has(.option__input:checked) { border: 1.5px solid var(--ink); background: var(--cream); }
.option:has(.option__input:focus-visible) { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
.option__input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }

.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 16px; font-weight: 600; }
.field__optional { color: var(--muted); font-weight: 400; }
.field__hint { font-size: 14px; color: var(--muted); }
.field__control {
    width: 100%; min-height: 52px; padding: 0 16px;
    border: 1px solid var(--chip-border); border-radius: 6px; background: var(--white);
    color: var(--ink); font: inherit; font-size: 16px;
}
.field__control--area { min-height: 132px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.field__control:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 1px; }
.has-error .field__control { border: 2px solid #B3261E; }
.field__error { font-size: 14px; font-weight: 600; color: #B3261E; }
.fields-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }

.recap { display: flex; flex-direction: column; }
.recap__row { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line-soft); }
.recap__head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.recap__title { font-size: 15px; font-weight: 400; font-variant-caps: all-small-caps; letter-spacing: .06em; color: var(--gold-deep); }
.recap__text { font-size: 16px; line-height: 1.6; color: var(--body-dark); white-space: pre-line; overflow-wrap: anywhere; }

.form-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.form-nav__actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.form-status { min-height: 1.5em; font-size: 15px; color: var(--muted); }
.btn--form { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--outline { min-height: 54px; padding: 0 28px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); font-size: 16px; }
.btn--outline:hover { background: var(--cream); color: var(--ink); }
.text-button {
    min-height: 44px; padding: 0 0 3px; border: 0; background: none; cursor: pointer;
    color: var(--ink); font: inherit; font-size: 16px;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 100% 1px; background-position: 0 calc(100% - 10px); background-repeat: no-repeat;
}
.text-button:hover { background-size: 0 1px; }

.form-done { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding: 12px 0; }
.form-done:focus, .form-blocked:focus { outline: none; }
.form-done__icon { stroke: var(--gold); }
.form-done__check { stroke-dasharray: 420; stroke-dashoffset: 420; animation: ows-ink 1.1s .2s cubic-bezier(.6, .1, .3, 1) forwards; }
.form-done__title { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.1; letter-spacing: -.01em; }
.form-done__lead { font-size: 18px; line-height: 1.6; color: var(--body-dark); }
.form-done__reference { font-size: 15px; color: var(--muted); }
.form-done__reference b { color: var(--ink); font-feature-settings: "lnum", "tnum"; }
.form-done__next { width: 100%; margin-top: 8px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.form-done__next li { display: flex; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.form-done__next span { font-family: var(--serif); font-size: 22px; color: var(--gold-deep); font-feature-settings: "lnum", "tnum"; }
.form-blocked { display: flex; flex-direction: column; gap: 22px; }

/* Champs pièges : chacun caché autrement, jamais atteignables au clavier ni annoncés */
.trap { pointer-events: none; }
.trap--offscreen { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.trap--collapsed { max-height: 0; overflow: hidden; opacity: 0; margin: 0; }
.trap--clipped { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------------------------------------------------------------- Apparition au défilement (docs/DESIGN.md §7) */
/* Sans JavaScript, tout reste visible : l'effet n'existe que si la page est marquée « js ». */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: .05s; }
.reveal--d2 { transition-delay: .1s; }
.reveal--d3 { transition-delay: .15s; }
.reveal--d4 { transition-delay: .2s; }
.reveal--d5 { transition-delay: .3s; }
.reveal--d6 { transition-delay: .4s; }
.js .step { opacity: 0; transform: translateY(36px); }
.js .step.is-reached { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- Petits écrans */
@media (max-width: 720px) {
    :root { --gutter: 20px; }
    .section { padding-top: 88px; padding-bottom: 88px; }
    .hero { padding-top: 32px; padding-bottom: 88px; }
    .hero__visual { min-height: 260px; }
    .tile { padding: 28px; min-height: 0; }
    .banner__head { padding: 48px 24px 40px; }
    .qualities { padding: 0 8px 8px; }
    .quality { padding: 28px 16px; }
    .site-nav { gap: 4px 20px; }
    .steps__list { gap: 56px; padding-left: 56px; }
    .step__dot { left: -45px; }
    .step__number, .steps--detailed .step__number { flex-basis: auto; font-size: 48px; }
    .family__card { padding: 28px; }
    .page-hero { padding-top: 40px; padding-bottom: 72px; }
    .contact { padding-top: 32px; padding-bottom: 88px; }
    .custom-offer { padding: 40px 24px; }
    .shop-card { padding: 32px 24px; }
    .contact__panel { padding: 28px 20px; }
    .form-step__title { font-size: 30px; }
}

/* ---------------------------------------------------------------- Mouvement réduit : tout s'affiche immédiatement */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .ink-word__path, .form-done__check { stroke-dashoffset: 0; }
    .js .reveal, .js .step { opacity: 1; transform: none; }
}
.error-page { min-height: 52vh; padding-bottom: 128px; }

/* Aperçu du back-office : bandeau au-dessus de la page, jamais présent sur le site public */
.preview-banner { position: sticky; top: 0; z-index: 60; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; align-items: center; padding: 12px 20px; background: #24231F; color: #F5F1E8; font-size: 15px; }
.preview-banner a { color: #F5F1E8; font-weight: 600; }
.preview-banner__action { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 4px; background: #F5F1E8; color: #24231F !important; text-decoration: none; }
