/* Strasbourg Justice — single-page lead site. No framework, no web fonts. */

:root {
    --navy: #10233f;
    --navy-2: #1b355a;
    --gold: #b8863b;
    --gold-2: #9c6f2c;
    --gold-soft: #f3e9d6;
    --ink: #1c2333;
    --muted: #5a6274;
    --line: #e2e4ea;
    --tint: #f7f5f0;
    --err: #b42318;
    --ok: #1f7a4d;
    --radius: 10px;
    --serif: Georgia, "Times New Roman", Times, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 17px/1.55 var(--sans);
    color: var(--ink);
    background: #fff;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(640px, 100% - 40px); }
.sr, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 52px; padding: .7em 1.4em;
    border: 0; border-radius: 8px; cursor: pointer;
    font: 600 1.02rem/1.2 var(--sans); text-decoration: none; text-align: center;
    transition: background-color .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid #f0c674; outline-offset: 2px;
}
.btn-gold { background: linear-gradient(180deg, #c6964a, var(--gold)); color: #fff; box-shadow: 0 6px 18px -8px rgba(156, 111, 44, .8); }
.btn-gold:hover { background: var(--gold-2); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn-wide { width: 100%; margin-top: 1.4em; }

/* Header */
.top {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px max(20px, calc((100% - 1080px) / 2));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 38px; height: auto; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font: 400 1.2rem var(--serif); }
.brand small { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.top-act { display: flex; align-items: center; gap: 8px; }
.lang {
    font-weight: 600; font-size: .85rem; text-decoration: none; color: var(--navy);
    padding: .5em .7em; border: 1px solid var(--line); border-radius: 6px;
}
.top-call {
    display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
    color: #fff; background: var(--navy); border-radius: 6px; padding: .55em .8em; font-weight: 600; font-size: .9rem;
}
.top-call span { display: none; }

/* Hero */
.hero {
    position: relative; overflow: hidden; color: #e8ecf3;
    padding: 56px 0 48px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-60 -60 120 120'%3E%3Cg fill='%23d9b46a' fill-opacity='.38'%3E%3Cpath id='s' d='M0-50l1.8 5.5h5.8l-4.7 3.4 1.8 5.5L0-39l-4.7 3.4 1.8-5.5-4.7-3.4h5.8z'/%3E%3Cuse href='%23s' transform='rotate(30)'/%3E%3Cuse href='%23s' transform='rotate(60)'/%3E%3Cuse href='%23s' transform='rotate(90)'/%3E%3Cuse href='%23s' transform='rotate(120)'/%3E%3Cuse href='%23s' transform='rotate(150)'/%3E%3Cuse href='%23s' transform='rotate(180)'/%3E%3Cuse href='%23s' transform='rotate(210)'/%3E%3Cuse href='%23s' transform='rotate(240)'/%3E%3Cuse href='%23s' transform='rotate(270)'/%3E%3Cuse href='%23s' transform='rotate(300)'/%3E%3Cuse href='%23s' transform='rotate(330)'/%3E%3C/g%3E%3C/svg%3E") no-repeat right -150px top -40px / 320px auto,
        radial-gradient(120% 90% at 100% 0%, #24456f 0%, transparent 60%),
        linear-gradient(160deg, #142a4a 0%, var(--navy) 55%, #0b1930 100%);
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 35, 63, .55) 40%, transparent); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 15ch; }
.eyebrow { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: #d9b46a; margin-bottom: 1.1em; }
.lead { font-size: 1.1rem; max-width: 36em; color: #d3dae6; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 1.8em 0 1.6em; }
.hero-cta .btn { min-height: 56px; font-size: 1.08rem; }
.hero-call { color: #d3dae6; text-decoration: none; }
.hero-call b { color: #fff; white-space: nowrap; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .92rem; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before {
    content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%;
    background: #d9b46a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8 2.3 2.3 4.7-4.6' fill='none' stroke='%2310233f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100%;
}

/* Sections */
.sec { padding: 56px 0; }
#request, #services, #cases { scroll-margin-top: 64px; }
.sec-tint { background: var(--tint); }
.sec-lead { color: var(--muted); max-width: 40em; margin-bottom: 1.6em; }
.note { color: var(--muted); font-size: .93rem; margin-top: 1.4em; padding-left: 12px; border-left: 3px solid var(--gold); }

.cards { display: grid; gap: 14px; }
.card {
    display: flex; flex-direction: column;
    padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.card .ic { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-2); margin-bottom: 12px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); flex: 1; }
.card-btn { align-self: flex-start; font-weight: 600; color: var(--gold-2); text-decoration: none; padding: .4em 0; }
.card-btn:hover { text-decoration: underline; }

.chips { list-style: none; padding: 0; margin: 0 0 2.4em; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a {
    display: inline-block; padding: .6em 1em; border-radius: 999px;
    background: #fff; border: 1px solid #ddd6c8; color: var(--navy); text-decoration: none; font-size: .95rem;
}
.chips a:hover { border-color: var(--gold); background: var(--gold-soft); }
.reqs-h { font-size: 1.25rem; }
.reqs { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.reqs li { display: grid; gap: 2px; padding: 14px 16px; background: #fff; border-radius: var(--radius); border-left: 3px solid var(--gold); }
.reqs b { font-family: var(--serif); font-weight: 400; font-size: 1.12rem; color: var(--navy); }
.reqs strong { font-weight: 700; }
.reqs span { color: var(--muted); font-size: .95rem; }

/* Form */
.form-sec { background: linear-gradient(180deg, #fff, var(--tint)); }
.lead-form, .ok {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 22px; box-shadow: 0 20px 40px -28px rgba(16, 35, 63, .45);
}
.progress { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; margin-bottom: .6em; }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step + .step { margin-top: 1.6em; }
.lbl { display: block; font-weight: 600; font-size: .95rem; margin: 1.1em 0 .4em; padding: 0; color: var(--navy); }
.step > .lbl:first-child, legend.lbl { margin-top: 0; }
input:not([type=radio]):not([type=checkbox]), select, textarea {
    width: 100%; min-height: 50px; padding: .7em .85em;
    font: 1rem/1.4 var(--sans); color: var(--ink);
    background: #fff; border: 1px solid #cfd3dc; border-radius: 8px;
    -webkit-appearance: none; appearance: none;
}
select {
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2310233f' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center / 12px;
    padding-right: 2.4em;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
[aria-invalid=true] { border-color: var(--err) !important; background: #fff8f7 !important; }
.field-err { color: var(--err); font-size: .88rem; margin: .35em 0 0; }
.hint { font-size: .85rem; color: var(--muted); margin: .35em 0 .2em; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg-3 { grid-template-columns: repeat(3, 1fr); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
    display: flex; align-items: center; justify-content: center; text-align: center;
    min-height: 50px; padding: .5em; border: 1px solid #cfd3dc; border-radius: 8px;
    font-size: .93rem; line-height: 1.25; cursor: pointer;
}
.seg input:checked + span { border-color: var(--gold); background: var(--gold-soft); color: var(--navy); font-weight: 600; box-shadow: inset 0 0 0 1px var(--gold); }
.seg input:focus-visible + span { outline: 3px solid #f0c674; outline-offset: 2px; }

.check { display: flex; align-items: flex-start; gap: 10px; margin-top: .8em; font-size: .93rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--gold); }
.consent { margin-top: 1.4em; color: var(--muted); }

.urgent { margin: .9em 0 0; padding: .7em .9em; border-radius: 8px; font-size: .92rem; background: #fff4e5; color: #7a4a00; border: 1px solid #f1d29b; }
.form-err { margin: 1em 0 0; color: var(--err); font-weight: 600; }
.step-nav { display: flex; gap: 10px; margin-top: 1.4em; }
.step-nav .btn-gold { flex: 1; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 1.2em 0 0; font-size: .85rem; color: var(--muted); text-align: center; }

/* Two steps when JS runs; head.php's <noscript> shows the whole form at once. */
.step:not(.on) { display: none; }

.ok { text-align: center; }
.ok > svg { width: 56px; height: 56px; color: var(--ok); margin: 0 auto 12px; display: block; }
.ok h1, .ok h3 { font-size: 1.6rem; }
.ok .ref b { font-family: ui-monospace, monospace; letter-spacing: .05em; }
.ok-err h1 { color: var(--err); font-size: 1.3rem; }

/* How it works */
.how { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: none; }
.how li { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: start; align-content: start; }
.how .num {
    grid-row: span 2; width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center; background: var(--gold); color: #fff; font: 1.2rem var(--serif);
}
.how b { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; color: var(--navy); }
.how li > span:last-child { color: var(--muted); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary, .privacy summary {
    list-style: none; cursor: pointer; padding: 16px 32px 16px 0; position: relative;
    font-weight: 600; color: var(--navy);
}
.faq summary::-webkit-details-marker, .privacy summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; color: var(--gold); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 6px; }
.faq-cta { margin-top: 2em; text-align: center; }

/* Footer */
.foot { background: var(--navy); color: #b9c3d3; padding: 40px 0 120px; font-size: .9rem; }
.foot a { color: #fff; }
.foot-brand b { font: 400 1.15rem var(--serif); color: #fff; }
.foot-contact { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.privacy summary { color: #fff; padding: 10px 0; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.privacy p { max-width: 52em; }
.disclaimer { font-size: .82rem; color: #8f9bb0; max-width: 52em; }
.copy { font-size: .8rem; color: #8f9bb0; margin: 0; }

/* Sticky action bar (mobile) */
.bar {
    position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -16px rgba(16, 35, 63, .5);
    transition: transform .2s ease;
}
.bar .btn { min-height: 50px; padding-inline: .6em; }
.bar.off { transform: translateY(110%); }

@media (min-width: 760px) {
    body { font-size: 18px; }
    .top-call span { display: inline; }
    .hero { padding: 96px 0 84px; background-position: right 4% center, 0 0, 0 0; background-size: 440px auto, auto, auto; }
    .sec { padding: 80px 0; }
    .cards { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .reqs { grid-template-columns: repeat(3, 1fr); }
    .how { grid-template-columns: repeat(3, 1fr); gap: 28px; }
    .lead-form, .ok { padding: 34px; }
    .seg { grid-template-columns: repeat(4, 1fr); }
    .seg-3 { grid-template-columns: repeat(3, 1fr); }
    .bar { display: none; }
    .foot { padding-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .bar { transition: none; }
}
