/*
 * Méreau & Associés — showcase site.
 * Charter: design system "Méreau & Associés" (REFERENT ADR-0025).
 * No framework, no third-party request: fonts and images are served by the site itself.
 */

@font-face {
    font-family: 'Jost';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../fonts/jost/jost-latin-ext-wght-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Jost';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../fonts/jost/jost-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Caveat';
    font-style: normal;
    font-display: swap;
    font-weight: 400 700;
    src: url('../fonts/caveat/caveat-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --paper: #faf8f3;
    --surface-sunken: #f3f0e7;
    --ink: #1c2723;
    --ink-muted: #5a6560;
    --green: #284139;
    --green-deep: #1d302a;
    --green-night: #111916;
    --gold: #938036;
    --gold-light: #cdb86a;
    --cream: #f4f1e8;
    --sage: #e6ede9;
    --font: 'Jost', 'Avenir Next', 'Futura', system-ui, sans-serif;
    --hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
    --gutter: clamp(1.25rem, 4.5vw, 4rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* Page transitions: fade in on arrival, fade out before leaving (see the inline script). */
body { animation: page-in 0.45s ease-out backwards; }
body.is-leaving { opacity: 0; transition: opacity 0.3s ease-in; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    body { animation: none; }
    body.is-leaving { transition: none; }
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 10;
    padding: 0.75rem 1rem;
    background: var(--cream);
    color: var(--green);
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0 1.5rem;
    border: 1px solid transparent;
    border-radius: 2px;
    font: 500 0.8125rem/1 var(--font);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #7a6a2c; }
.btn-ghost { border-color: rgb(244 241 232 / 0.7); color: var(--cream); }
.btn-ghost:hover { background: rgb(244 241 232 / 0.1); border-color: var(--cream); }

/* ---------- Header (over the hero) ---------- */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 20;
    transition: background-color 0.2s ease, padding 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.75rem var(--gutter);
    background: linear-gradient(180deg, rgb(17 25 22 / 0.7), rgb(17 25 22 / 0));
}
.site-header .logo img { width: auto; height: 3.25rem; transition: height 0.2s ease; }
/* Once the hero is scrolled past, or the menu is open: solid bar. */
.site-header.is-solid,
.site-header.is-open { background: var(--green-night); box-shadow: 0 1px 0 rgb(255 255 255 / 0.06), 0 8px 24px rgb(0 0 0 / 0.25); padding-block: 0.875rem; }
.site-header.is-solid .logo img { height: 2.5rem; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--cream); font-size: 0.9375rem; letter-spacing: 0.02em; text-decoration: none; }
.site-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--gold-light); }
.site-nav .btn { min-height: 2.5rem; padding: 0 1rem; font-size: 0.75rem; }
.site-nav .btn:hover { text-decoration: none; }
.menu-toggle { display: none; }
.burger { position: relative; display: block; width: 1.625rem; height: 1.125rem; }
.burger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: calc(50% - 1px); }
.burger span:nth-child(3) { top: calc(100% - 2px); }
.is-open .burger span:nth-child(1) { top: calc(50% - 1px); transform: rotate(45deg); }
.is-open .burger span:nth-child(2) { opacity: 0; }
.is-open .burger span:nth-child(3) { top: calc(50% - 1px); transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(40rem, 100svh, 54rem);
    overflow: hidden;
    background: #381808; /* dominant colour of the photo while it loads */
    color: #fff;
}
.hero-media,
.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.hero-media img { object-fit: cover; object-position: center 40%; }
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgb(17 25 22 / 0.92) 0%, rgb(17 25 22 / 0.78) 38%, rgb(17 25 22 / 0.15) 72%, rgb(17 25 22 / 0.05) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    width: min(38rem, 100%);
    margin-left: var(--gutter);
    padding: 8rem 0 5rem;
}
.overline {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold-light);
}
.hero h1 {
    margin: 1.125rem 0 0;
    font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.375rem);
    line-height: 1.12;
    font-weight: 300;
    letter-spacing: 0.01em;
    text-wrap: balance;
}
.hero .lead {
    margin: 1.25rem 0 0;
    max-width: 34rem;
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
    line-height: 1.6;
    color: var(--sage);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2.25rem; }

/* Hero entrance (html.fx only): overline, typed title, then lead and CTAs */
.fx .hero .overline,
.fx .hero .lead,
.fx .hero-actions .btn { opacity: 0; }
.fx .hero.is-in .overline { opacity: 1; animation: fade-up 0.7s ease-out backwards; }
.fx .hero.is-typed .lead { opacity: 1; animation: fade-up 0.7s 0.1s ease-out backwards; }
.fx .hero.is-typed .hero-actions .btn { opacity: 1; animation: fade-up 0.7s 0.35s ease-out backwards; }
.fx .hero.is-typed .hero-actions .btn + .btn { animation-delay: 0.5s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fx .hero h1:not(.is-split) { opacity: 0; }
.fx .hero h1 .line { display: block; white-space: nowrap; }
.fx .hero h1 .ch { position: relative; opacity: 0; }
.fx .hero h1 .ch.on { opacity: 1; }
.fx .hero h1 .ch.caret::after { content: ""; position: absolute; right: -0.12em; top: 0.12em; bottom: 0.06em; width: 2px; background: var(--gold-light); animation: caret 1s steps(1) infinite; }

/* ---------- Trust band ---------- */

.trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--green-deep);
    color: var(--sage);
}
.trust li { padding: 1.375rem var(--gutter); border-right: 1px solid rgb(255 255 255 / 0.08); }
.trust li:last-child { border-right: 0; }
.trust strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
}


/* ---------- Sections ---------- */

.section { padding: clamp(4rem, 8vw, 7rem) var(--gutter); scroll-margin-top: 4.5rem; }
.section-inner { width: min(72rem, 100%); margin-inline: auto; }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head .overline { color: #7a6a2c; }
.section h2 {
    margin: 0.75rem 0 0;
    font-size: clamp(1.875rem, 1.3rem + 1.8vw, 2.75rem);
    line-height: 1.15;
    font-weight: 300;
    letter-spacing: 0.01em;
    color: var(--green);
    text-wrap: balance;
}
.section-head p { margin: 1rem 0 0; font-size: 1.0625rem; line-height: 1.7; color: var(--ink-muted); }
.section-alt { background: #fff; }
.section-green { background: var(--green); color: var(--sage); }
.section-green h2 { color: #fff; }
.section-green .overline { color: var(--gold-light); }
.section-green .section-head p { color: var(--sage); }

.card {
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgb(28 39 35 / 0.07), 0 1px 2px rgb(28 39 35 / 0.06), 0 8px 24px rgb(28 39 35 / 0.07);
}

/* Le cabinet */
.firm { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.firm-text p { margin: 0 0 1.125rem; font-size: 1.0625rem; line-height: 1.75; }
.firm-text p:first-child::first-letter { float: left; margin: 0.35rem 0.6rem 0 0; font-size: 3.5rem; line-height: 0.8; font-weight: 300; color: var(--green); }
.quote { margin: 0; overflow: hidden; padding: 0 2.25rem 2rem; background: #fff; border-radius: 3px; box-shadow: 0 0 0 1px rgb(28 39 35 / 0.07), 0 8px 24px rgb(28 39 35 / 0.07); }
.quote-sketch { margin: 0 -2.25rem 1.5rem; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.quote-sketch img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.quote p { position: relative; margin: 0; font-family: var(--hand); font-size: clamp(1.875rem, 1.5rem + 1vw, 2.375rem); line-height: 1.15; font-weight: 500; color: var(--green); }

/* Quote effects (only when JS runs and motion is allowed: html.fx) */
.fx .quote p .ghost { color: transparent; }
.fx .quote p .typed { position: absolute; inset: 0; }
.fx .quote p .typed::after { content: ""; display: inline-block; width: 2px; height: 0.85em; margin-left: 3px; background: var(--gold); vertical-align: -0.06em; animation: caret 1s steps(1) infinite; }
.fx .quote.is-typed p .typed::after { animation: caret 1s steps(1) 3, hide 0s 3s forwards; }
.fx .quote-sketch img { opacity: 0; transform: translateY(var(--parallax, 0px)) scale(1.12); transition: opacity 1.2s ease-out; will-change: transform; }
.fx .quote.is-in .quote-sketch img { opacity: 1; }
.fx .quote footer { opacity: 0; transform: translateY(6px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fx .quote.is-typed footer { opacity: 1; transform: none; }
.quote footer { margin-top: 1.25rem; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: #7a6a2c; font-weight: 500; }
.quote footer span { display: block; margin-top: 0.25rem; letter-spacing: 0.02em; text-transform: none; font-size: 0.875rem; font-weight: 400; color: var(--ink-muted); }

/* Domaines */
/* Domains: library (sticky bookshelf + volumes) */
.lib > * { min-width: 0; }
.lib { display: grid; grid-template-columns: 320px 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; margin-top: 3rem; }

/* Sticky bookshelf (scroll-spy navigation) */
.shelf { position: sticky; top: 7rem; }
.shelf-label { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin: 0 0 1rem; }
.books { list-style: none; margin: 0; padding: 0 0.75rem; display: flex; align-items: flex-end; gap: 0.3125rem; height: 320px; border-bottom: 10px solid #6b5a2a; position: relative; }
.books::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 3px; background: #8c7739; box-shadow: 0 14px 16px -6px rgb(28 39 35 / 0.35); }
.book a { display: flex; flex-direction: column; justify-content: space-between; align-items: center; width: 38px; padding: 0.875rem 0; text-decoration: none; border-radius: 3px 3px 1px 1px; color: var(--cream); background: var(--green); box-shadow: inset 3px 0 0 rgb(255 255 255 / 0.07), inset -4px 0 0 rgb(0 0 0 / 0.18); transition: transform .35s cubic-bezier(.2,.7,.2,1), background .35s, box-shadow .35s; }
.book:nth-child(2n) a { background: var(--green-deep); }
.book:nth-child(3n) a { background: #33503f; }
.book a::before, .book a::after { content: ""; width: 70%; height: 3px; border-top: 1px solid var(--gold-light); border-bottom: 1px solid var(--gold-light); opacity: .7; }
.book span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; white-space: nowrap; }
.book:nth-child(1) a { height: 300px; } .book:nth-child(2) a { height: 270px; } .book:nth-child(3) a { height: 286px; } .book:nth-child(4) a { height: 300px; } .book:nth-child(5) a { height: 262px; } .book:nth-child(6) a { height: 300px; } .book:nth-child(7) a { height: 280px; }
.book a:hover { transform: translateY(-8px); }
.book a[aria-current="true"] { transform: translateY(-22px); background: var(--gold); color: #fff; box-shadow: 0 12px 20px -8px rgb(28 39 35 / 0.5); }
.book a[aria-current="true"]::before, .book a[aria-current="true"]::after { border-color: #fff; }
.shelf-current { margin: 1.25rem 0 0; font-size: 0.9375rem; color: var(--ink-muted); }
.shelf-current strong { display: block; color: var(--green); font-weight: 500; font-size: 1.125rem; }

/* Volumes (content) */
.volume { padding: 0 0 4rem; scroll-margin-top: 7rem; }
.volume + .volume { padding-top: 3.5rem; border-top: 1px solid rgb(28 39 35 / 0.1); }
.volume-no { font-size: 0.75rem; letter-spacing: 0.22em; color: var(--gold); font-weight: 500; margin: 0; }
.volume h3 { margin: 0.375rem 0 1.25rem; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); font-weight: 400; color: var(--green); }
.volume-lead { position: relative; margin: 0 0 1.75rem; font-family: var(--hand); font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); line-height: 1.2; color: var(--green); }
.volume-lead .ghost { color: transparent; }
.volume-lead .typed { position: absolute; inset: 0; }
.volume-lead .typed::after { content: ""; display: inline-block; width: 2px; height: 0.9em; margin-left: 3px; background: var(--gold); vertical-align: -0.08em; animation: caret 1s steps(1) infinite; }
.volume-lead.is-done .typed::after { animation: caret 1s steps(1) 3, hide 0s 3s forwards; }
@keyframes caret { 50% { opacity: 0; } }
@keyframes hide { to { opacity: 0; } }
.volume h4 { margin: 2rem 0 0.75rem; font-size: 1.0625rem; font-weight: 500; color: var(--ink); }
.volume p.body { margin: 0 0 1rem; line-height: 1.75; color: var(--ink); max-width: 68ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
    .book a { transition: none; }
    .volume-lead .typed::after { display: none; }
}

/* Mobile: the shelf lies flat and scrolls sideways at the top */
@media (max-width: 900px) {
    .lib { grid-template-columns: 1fr; gap: 1.5rem; }
    .shelf { top: 4.25rem; z-index: 5; margin: 0 calc(var(--gutter) * -1); padding: 0.75rem var(--gutter); background: var(--surface-sunken); box-shadow: 0 6px 12px -8px rgb(28 39 35 / 0.3); }
    .shelf-label, .shelf-current { display: none; }
    .books { height: auto; flex-direction: row; overflow-x: auto; gap: 0.5rem; padding: 0; border: 0; box-shadow: none; scrollbar-width: none; }
    .books::after { display: none; }
    .book a, .book:nth-child(n) a { height: auto; width: auto; flex-direction: row; gap: 0.625rem; padding: 0.625rem 0.875rem; }
    .book a::before, .book a::after { width: 3px; height: 1.1em; border: 0; border-left: 1px solid var(--gold-light); border-right: 1px solid var(--gold-light); }
    .book span { writing-mode: horizontal-tb; transform: none; font-size: 0.6875rem; }
    .book a[aria-current="true"] { transform: none; }
    .volume { scroll-margin-top: 9rem; }
}

/* Équipe */
/* Team: portrait gallery on a dark wall */
.gallery { background: #0b100e; color: var(--cream); padding: clamp(5rem, 9vw, 8rem) var(--gutter); overflow: hidden; }
.gallery .section-inner { max-width: 72rem; margin: 0 auto; }
.gallery .section-head .overline { color: var(--gold-light); }
.gallery h2 { color: #fff; font-weight: 300; }
.gallery .section-head > p { color: rgb(230 237 233 / 0.72); }

.sitter { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; margin-top: clamp(4rem, 8vw, 7rem); }
.sitter:nth-of-type(even) { grid-template-columns: 7fr 5fr; }
.sitter:nth-of-type(even) .sitter-photo { order: 2; }

/* Giant outlined surname behind the portrait */
.sitter-mark { position: absolute; z-index: -1; bottom: 4%; left: -14%; transform: translate3d(var(--drift, 0px), 0, 0); margin: 0; font-size: clamp(5rem, 14vw, 12rem); line-height: 1; font-weight: 300; letter-spacing: -0.02em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgb(205 184 106 / 0.42); pointer-events: none; user-select: none; }
.sitter:nth-of-type(even) .sitter-mark { left: auto; right: -14%; }

/* Portrait dissolving into the dark background */
.sitter-photo { position: relative; z-index: 1; margin: 0; isolation: isolate; }
.sitter-photo img { display: block; width: 100%; height: auto; -webkit-mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 68%, transparent 100%); mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 68%, transparent 100%); }
.sitter-photo::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 6%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

.sitter-text { position: relative; z-index: 1; }
.sitter-role { margin: 0; font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-light); font-weight: 500; }
.sitter-text h3 sup { font-size: 0.5em; vertical-align: 0.75em; line-height: 0; }
.sitter-text h3 { margin: 0.5rem 0 1.5rem; font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem); font-weight: 300; line-height: 1.05; color: #fff; }
.sitter-text p.bio { margin: 0 0 1rem; max-width: 60ch; font-size: 0.9875rem; line-height: 1.75; color: rgb(230 237 233 / 0.78); }
.sitter-text .credo { margin: 0 0 1.5rem; font-family: var(--hand); font-size: clamp(1.625rem, 1.3rem + 0.9vw, 2rem); line-height: 1.2; color: var(--gold-light); }

.join { position: relative; margin-top: clamp(4rem, 8vw, 7rem); padding: 2.25rem; display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; border: 1px solid rgb(205 184 106 / 0.35); }
.join p { margin: 0; max-width: 46rem; color: rgb(230 237 233 / 0.82); line-height: 1.7; }

/* Entrance: portrait develops out of the dark, text rises */
.fx .sitter-photo img { opacity: 0; filter: blur(10px) brightness(0.4); transform: scale(1.04); transition: opacity 1.4s ease-out, filter 1.8s ease-out, transform 2.2s ease-out; }
.fx .sitter.is-in .sitter-photo img { opacity: 1; filter: none; transform: none; }
.fx .sitter-text > * { opacity: 0; transform: translateY(14px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fx .sitter.is-in .sitter-text > * { opacity: 1; transform: none; }
.fx .sitter.is-in .sitter-text > :nth-child(2) { transition-delay: 0.15s; }
.fx .sitter.is-in .sitter-text > :nth-child(3) { transition-delay: 0.3s; }
.fx .sitter.is-in .sitter-text > :nth-child(n+4) { transition-delay: 0.45s; }

@media (max-width: 900px) {
    .sitter, .sitter:nth-of-type(even) { grid-template-columns: 1fr; gap: 1.5rem; }
    .sitter:nth-of-type(even) .sitter-photo { order: 0; }
    .sitter-photo { max-width: 22rem; }
    .sitter-mark { font-size: 5.5rem; left: -6%; }
    .sitter:nth-of-type(even) .sitter-mark { right: auto; left: -6%; }
}

/* Postulation */
.postulation { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.courts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.courts li { padding: 1rem 1.125rem; border: 1px solid rgb(255 255 255 / 0.14); border-radius: 3px; color: #fff; font-size: 1rem; }
.courts li span { display: block; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); }
.checks { margin: 1.5rem 0 2rem; padding: 0; list-style: none; display: grid; gap: 0.625rem; }
.checks li { display: flex; gap: 0.75rem; align-items: baseline; }
.checks li::before { content: ''; flex: none; width: 0.5rem; height: 0.5rem; background: var(--gold-light); transform: translateY(-0.1rem) rotate(45deg); }

/* Actualités */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.news-item { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.news-item time { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: #7a6a2c; font-weight: 500; }
.news-item h3 { margin: 0; font-size: 1.125rem; line-height: 1.4; font-weight: 500; color: var(--ink); }
.news-item .tag { align-self: flex-start; font-size: 0.75rem; padding: 0.25rem 0.5rem; border-radius: 2px; background: var(--sage); color: var(--green); }

/* Contact */
.contact { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.25rem; align-items: start; }
.contact-side { display: grid; gap: 1.25rem; }
.office { padding: 1.5rem 1.75rem; }
.office h3 { margin: 0; font-size: 1.375rem; font-weight: 400; color: var(--green); }
.office .badge { display: inline-block; margin-left: 0.5rem; font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: #7a6a2c; font-weight: 500; }
.office address { margin: 0.75rem 0 0; font-style: normal; line-height: 1.6; }
.office dl { margin: 0.875rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; font-size: 0.9375rem; }
.office dt { color: var(--ink-muted); }
.office dd { margin: 0; }
.office a.map { display: inline-block; margin-top: 0.875rem; font-size: 0.875rem; color: var(--green); text-underline-offset: 4px; }
.reach { padding: 1.5rem 1.75rem; background: var(--green); color: var(--sage); }
.reach .big { display: block; font-size: 1.5rem; color: #fff; text-decoration: none; letter-spacing: 0.02em; }
.reach .mail { display: block; margin-top: 0.25rem; color: var(--gold-light); text-underline-offset: 4px; overflow-wrap: anywhere; }
.reach .btn { margin-top: 1.25rem; width: 100%; }

.contact-form { padding: clamp(1.5rem, 3vw, 2.5rem); }
.contact-form h3 { margin: 0; font-size: 1.5rem; font-weight: 400; color: var(--green); }
.contact-form > p { margin: 0.5rem 0 1.5rem; color: var(--ink-muted); line-height: 1.6; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.125rem 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--ink); padding: 0; }
.field label .opt { letter-spacing: 0.02em; text-transform: none; font-weight: 400; color: var(--ink-muted); }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 3rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid #8c8576;
    border-radius: 2px;
    background: #fff;
    color: var(--ink);
    font: 400 1rem/1.5 var(--font);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--green); }
.field .help { font-size: 0.8125rem; line-height: 1.5; color: var(--ink-muted); }
.consent { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.875rem; line-height: 1.55; color: var(--ink-muted); }
.consent input { flex: none; width: 1.125rem; height: 1.125rem; margin-top: 0.15rem; accent-color: var(--green); }
.consent a { color: var(--green); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.form-actions .btn { min-width: 12rem; cursor: pointer; font-family: var(--font); }
.form-note { margin: 0; font-size: 0.8125rem; color: var(--ink-muted); }
.form-done { display: none; margin: 0 0 1.25rem; padding: 1rem 1.125rem; border-radius: 2px; background: #e3f1e8; color: #2c6e49; }
.form-done.is-visible { display: block; }

/* Footer */
.site-footer { position: relative; overflow: hidden; background: var(--green-night); color: #a2aca6; padding: clamp(4rem, 7vw, 6rem) var(--gutter) 2rem; font-size: 0.9375rem; }
.footer-grid { position: relative; z-index: 1; width: min(72rem, 100%); margin-inline: auto; display: grid; grid-template-columns: 1.5fr 1.15fr 1fr 1.25fr; gap: 2.5rem 3rem; }
.footer-brand img { height: 3rem; width: auto; }
.footer-brand p { margin: 1.25rem 0 0; max-width: 22rem; line-height: 1.7; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1.75rem; }
.footer-actions .btn { padding: 0.75rem 1.125rem; font-size: 0.6875rem; }
.site-footer h4 { margin: 0 0 1.125rem; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); font-weight: 500; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.625rem; }
.site-footer a { color: #ece8de; text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--gold-light); }
.footer-offices address { display: grid; gap: 0.125rem; margin: 0 0 1.125rem; font-style: normal; line-height: 1.55; }
.footer-offices strong { color: #ece8de; font-weight: 500; }
.footer-offices address span { font-size: 0.8125rem; color: #7f8a84; }
.footer-reach { display: grid; gap: 0.375rem; margin: 0; }
.footer-reach a:first-child { font-size: 1.25rem; font-weight: 300; }
.footer-mark { position: relative; z-index: 0; width: min(72rem, 100%); margin: clamp(3rem, 6vw, 5rem) auto 0; font-size: clamp(2.75rem, 9.2vw, 8.3rem); line-height: 0.9; font-weight: 300; letter-spacing: -0.01em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgb(205 184 106 / 0.32); user-select: none; }
.footer-legal { position: relative; z-index: 1; width: min(72rem, 100%); margin: 1.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.08); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.8125rem; }

/* Footer entrance: columns rise from the bottom, one after the other (html.fx only) */
.fx .site-footer .footer-col,
.fx .site-footer .footer-mark,
.fx .site-footer .footer-legal { opacity: 0; transform: translateY(48px); transition: opacity 0.9s ease-out, transform 0.9s cubic-bezier(.2,.7,.2,1); }
.fx .site-footer.is-in .footer-col,
.fx .site-footer.is-in .footer-mark,
.fx .site-footer.is-in .footer-legal { opacity: 1; transform: none; }
.fx .site-footer.is-in .footer-col:nth-child(2) { transition-delay: 0.1s; }
.fx .site-footer.is-in .footer-col:nth-child(3) { transition-delay: 0.2s; }
.fx .site-footer.is-in .footer-col:nth-child(4) { transition-delay: 0.3s; }
.fx .site-footer.is-in .footer-mark { transition-delay: 0.4s; transition-duration: 1.4s; }
.fx .site-footer.is-in .footer-legal { transition-delay: 0.5s; }

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
    .site-header { padding-block: 1.25rem; }
    .site-header .logo img { height: 2.75rem; }
    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
        width: 2.75rem;
        height: 2.75rem;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--cream);
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    .site-nav { display: none; position: absolute; inset: 100% 0 auto 0; margin: 0; padding: 1rem var(--gutter) 1.5rem; background: var(--green-night); }
    .site-header.is-open .site-nav { display: block; }
    .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
    .site-nav li { width: 100%; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
    .site-nav a { display: block; padding: 0.875rem 0; font-size: 1.0625rem; }
    .site-nav li:last-child { border-bottom: 0; padding-top: 1rem; }
    .site-nav .btn { display: inline-flex; }
}

@media (max-width: 767px) {
    .hero { align-items: flex-end; min-height: 100svh; }
    .hero-media img { object-position: center top; }
    .hero::after { background: linear-gradient(0deg, rgb(17 25 22 / 0.95) 0%, rgb(17 25 22 / 0.82) 42%, rgb(17 25 22 / 0.2) 72%, rgb(17 25 22 / 0.35) 100%); }
    .hero-content { margin: 0; padding: 0 var(--gutter) 2.5rem; }
    .hero-actions .btn { flex: 1 1 100%; }
    .trust { grid-template-columns: 1fr; }
    .trust li { border-right: 0; border-bottom: 1px solid rgb(255 255 255 / 0.08); padding-block: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .btn, .burger span, .site-header { transition: none; }
}

@media (max-width: 1024px) {
    .news { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact { grid-template-columns: 1fr; }
    .contact-side { grid-template-columns: 1fr 1fr; }
    .reach { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
    .firm, .postulation { grid-template-columns: 1fr; }
    .news, .courts, .contact-side, .fields { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }
    .quote { padding: 0 1.5rem 2rem; }
    .quote-sketch { margin: 0 -1.5rem 1.25rem; }
}
