/* ---------- Tokens ---------- */
:root {
    --stone: #E6E7E2;        /* fond de page, gris pierre */
    --paper: #FBFBF9;        /* panneaux */
    --velvet: #16352C;       /* vert velours du plateau */
    --velvet-deep: #0F2620;
    --gold: #B99653;         /* champagne */
    --gold-soft: #E4D3A6;
    --ink: #1B211E;
    --ink-2: #4E5751;
    --line: #CDD0C8;
    --danger: #A1382E;

    --serif: "Fraunces", Georgia, serif;
    --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;

    --radius: 6px;
    --radius-lg: 14px;
    --gutter: clamp(16px, 4vw, 40px);
    --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--stone);
    color: var(--ink);
    font: 400 16px/1.55 var(--sans);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- Top bar ---------- */
.topbar {
    max-width: var(--maxw); margin: 0 auto; padding: 18px var(--gutter);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-logo { height: 52px; width: auto; display: block; flex-shrink: 0; }
.brand-title { font-family: "Montserrat", "Futura", "Avenir Next", system-ui, sans-serif; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.9em; }
.brand-title sup { font-size: 0.6em; line-height: 0; vertical-align: 0.45em; text-transform: none; letter-spacing: 0; margin-right: 0.35em; }
.brand-names { display: flex; flex-direction: column; font-family: var(--serif); font-size: 17px; letter-spacing: 0.01em; line-height: 1.12; white-space: nowrap; }
.brand-tagline { font-family: var(--sans); font-size: 10px; font-weight: 400; letter-spacing: .4px; text-transform: uppercase; color: rgba(27,33,30,.6); line-height: 1.32; margin-top: 3px; }
.brand-address { font-family: var(--serif); font-size: 14px; color: var(--ink-2); letter-spacing: 0.01em; margin-top: 0; }
@media (max-width: 640px) {
    .brand { gap: 10px; }
    .brand-logo { height: 42px; }
    .brand-names { font-size: 14px; }
    .brand-address { font-size: 12px; }
}
.topbar-nav { display: flex; gap: 20px; font-size: 15px; }
.topbar-nav a { text-decoration: none; color: var(--ink-2); }
.topbar-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.topbar-nav a { white-space: nowrap; }
.nav-toggle { display: none; }
@media (max-width: 760px) {
    .topbar { flex-wrap: wrap; row-gap: 0; padding-top: 12px; padding-bottom: 12px; }
    .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; margin-left: auto; padding: 8px; background: none; border: 0; border-radius: 0; box-shadow: none; cursor: pointer; }
    .nav-toggle span { display: block; height: 1.5px; background: var(--ink); transition: transform .2s, opacity .2s; }
    .topbar.is-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .topbar.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .topbar.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
    .topbar-nav { display: none; width: 100%; flex-direction: column; gap: 0; font-size: 15px; margin-top: 12px; border-top: 1px solid var(--line); }
    .topbar.is-open .topbar-nav { display: flex; }
    .topbar-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .topbar-nav a:last-child { border-bottom: 0; }
    .topbar-nav a[href="#historique"] { display: block; }
}

/* ---------- Page ---------- */
.page { max-width: var(--maxw); margin: 0 auto; padding: 8px var(--gutter) 48px; }
.intro { max-width: 640px; margin: 24px 0 32px; }
.intro h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.05; font-variation-settings: "opsz" 144, "SOFT" 50; }
.intro p { margin-top: 14px; color: var(--ink-2); font-size: 17px; max-width: 58ch; }

.workspace { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 900px) {
    .workspace { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; }
    .panel-result { position: sticky; top: 20px; }
}

.panel { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 30px); }

/* ---------- Champs ---------- */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; width: 100%; }
.field { margin-top: 22px; }
.field-label {
    display: flex; justify-content: space-between; align-items: baseline;
    font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0;
}
.field-hint { font-weight: 400; color: var(--ink-2); font-size: 13px; }
.field-help { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); max-width: 60ch; }

textarea {
    width: 100%; resize: vertical; min-height: 96px;
    font: inherit; color: var(--ink); background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
}
textarea:focus { outline: none; border-color: var(--velvet); box-shadow: 0 0 0 3px rgba(22,53,44,.12); }
textarea::placeholder { color: #8B928C; }

input[type="text"], input[type="number"], input[type="email"], input[type="tel"], input[type="date"], input[type="search"], input[type="password"], input[type="url"], select {
    width: 100%; font: inherit; color: var(--ink); background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px;
}
input[type="text"]:focus, input[type="number"]:focus, input[type="email"]:focus, input[type="tel"]:focus, input[type="date"]:focus, input[type="search"]:focus, input[type="password"]:focus, input[type="url"]:focus, select:focus { outline: none; border-color: var(--velvet); box-shadow: 0 0 0 3px rgba(22,53,44,.12); }
input::placeholder { color: #8B928C; }

.details-block { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.details-block summary {
    cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 10px;
    padding: 12px 14px; font-weight: 600; font-size: 15px;
}
.details-block summary::-webkit-details-marker { display: none; }
.details-block summary .field-hint { flex: 1; }
.details-block summary::after { content: "+"; margin-left: auto; color: var(--gold); font-weight: 600; }
.details-block[open] summary::after { content: "–"; }
.details-block[open] summary { border-bottom: 1px solid var(--line); }
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; padding: 0 14px 14px; }
.field-compact { margin-top: 14px; }
.field-compact .field-label { font-size: 14px; margin-bottom: 6px; }
.input-unit { position: relative; }
.input-unit input { padding-right: 36px; }
.input-unit .unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-2); font-size: 14px; }
@media (max-width: 480px) { .details-grid { grid-template-columns: 1fr; } }

/* ---------- Le plateau ---------- */
.tray {
    --slot-gap: 12px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--slot-gap);
    padding: var(--slot-gap);
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.08), transparent 60%),
        var(--velvet);
    border-radius: 10px;
    box-shadow: inset 0 2px 0 rgba(255,255,255,.06), inset 0 -3px 0 var(--velvet-deep), 0 1px 0 var(--velvet-deep);
    transition: box-shadow .2s;
}
.tray.is-dragover { box-shadow: inset 0 0 0 2px var(--gold), inset 0 -3px 0 var(--velvet-deep); }
@media (max-width: 480px) {
    .tray { grid-template-columns: 1fr 1fr; }
    .slot[data-slot="1"] { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
}

.slot {
    position: relative; aspect-ratio: 1 / 1;
    background: var(--velvet-deep);
    border-radius: 8px;
    box-shadow: inset 0 3px 8px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.05);
    overflow: hidden;
}
.slot-add {
    position: absolute; inset: 0; width: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    background: transparent; border: 0; color: var(--gold-soft);
    font-size: 12.5px; letter-spacing: .01em; text-align: center; padding: 8px;
}
.slot-add svg { width: 22px; height: 22px; opacity: .8; }
.slot-add:hover { color: #fff; background: rgba(255,255,255,.04); }
.slot-add:focus-visible { outline-offset: -4px; }
.slot.is-filled .slot-add { display: none; }
.slot-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot-remove {
    position: absolute; top: 6px; right: 6px; width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%; background: rgba(15,38,32,.85); color: #fff; padding: 0;
}
.slot-remove svg { width: 14px; height: 14px; }
.slot-remove:hover { background: var(--danger); }
.slot.is-next .slot-add { color: #fff; }
.slot.is-next .slot-add svg { opacity: 1; }

/* ---------- Consentement & soumission ---------- */
.consent {
    display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
    margin-top: 22px; font-size: 14px; color: var(--ink-2); cursor: pointer;
}
.consent input { margin: 4px 0 0; width: 16px; height: 16px; accent-color: var(--velvet); }
.consent:has(input:checked) { color: var(--ink); }

.submit-row { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.btn-primary {
    width: 100%; padding: 15px 20px;
    background: var(--velvet); color: #fff; border: 0; border-radius: var(--radius);
    font-weight: 600; font-size: 16px;
    box-shadow: inset 0 -2px 0 var(--velvet-deep);
}
.btn-primary:hover { background: #1C4437; }
.btn-primary:disabled { opacity: .55; cursor: wait; }
@media (min-width: 900px) { .btn-primary { width: auto; align-self: flex-start; min-width: 240px; } }
.form-error { color: var(--danger); font-size: 14px; }

.btn-secondary {
    display: inline-block; padding: 10px 16px; border-radius: var(--radius);
    border: 1px solid var(--velvet); color: var(--velvet); text-decoration: none; font-weight: 500; font-size: 14.5px;
}
.btn-secondary:hover { background: var(--velvet); color: #fff; }
.btn-text { background: none; border: 0; padding: 10px 4px; color: var(--ink-2); font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; }
.btn-text:hover { color: var(--ink); }

/* ---------- Résultat ---------- */
.panel-result { min-height: 260px; border: 1px solid var(--line); }

.result-empty { height: 100%; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--ink-2); text-align: center; }
.result-empty-glyph { width: 40px; height: 40px; border: 1.5px solid var(--gold); border-radius: 50%; position: relative; }
.result-empty-glyph::after { content: ""; position: absolute; width: 14px; height: 1.5px; background: var(--gold); right: -9px; bottom: -4px; transform: rotate(45deg); }

.result-busy { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--ink-2); }
.loupe { width: 44px; height: 44px; border: 2px solid var(--gold); border-radius: 50%; border-top-color: transparent; animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loupe { animation: none; border-top-color: var(--gold); } }

.result-kicker { font-size: 13px; color: var(--ink-2); text-transform: none; }
.result-title { font-size: clamp(22px, 3vw, 28px); line-height: 1.15; margin-top: 4px; }
.result-range { margin-top: 18px; padding: 16px 18px; background: var(--velvet); color: #fff; border-radius: var(--radius); }
.range-figure { font-family: var(--serif); font-size: clamp(26px, 4vw, 34px); line-height: 1.1; color: var(--gold-soft); font-variation-settings: "opsz" 144; }
.range-basis { margin-top: 6px; font-size: 13.5px; opacity: .8; }
.result-confidence { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.result-confidence b { font-weight: 600; color: var(--ink); }

.result-facts { margin: 20px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.result-facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.result-facts dt { color: var(--ink-2); }
.result-facts dd { margin: 0; }

.result-card h3 { font-size: 17px; margin-top: 22px; margin-bottom: 6px; }
.result-reasoning { font-size: 15px; line-height: 1.6; }
.result-card ul { margin: 0; padding-left: 18px; font-size: 14.5px; line-height: 1.55; }
.result-card li + li { margin-top: 4px; }
.result-warnings { margin-top: 20px; padding: 14px 16px; background: #F6EFE0; border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; }
.result-warnings h3 { margin-top: 0; }
.result-footer { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }

/* ---------- Historique ---------- */
.history { margin-top: 56px; }
.history h2 { font-size: 24px; }
.history-empty { margin-top: 10px; color: var(--ink-2); max-width: 60ch; }
.history-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.history-item a { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; background: var(--paper); border-radius: var(--radius-lg); padding: 10px; text-decoration: none; }
.history-item a:hover { outline: 1px solid var(--gold); }
.history-item img, .history-thumb-empty { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--velvet-deep); }
.history-body { display: grid; gap: 2px; min-width: 0; }
.history-title { font-family: var(--serif); font-size: 17px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-meta { font-size: 13px; color: var(--ink-2); }
.history-range { font-size: 14px; color: var(--velvet); font-weight: 600; }
.history-failed { color: var(--danger); font-weight: 400; }

/* ---------- Page show ---------- */
.show-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.show-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--velvet-deep); }
.show-photos img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.show-description { margin-top: 6px; color: var(--ink-2); }
.show-details { margin: 6px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; color: var(--ink-2); }
.show-details dt { font-weight: 600; color: var(--ink); }
.show-details dd { margin: 0; }
.page-show h3 { font-size: 17px; margin-top: 20px; }
.show-meta { margin-top: 18px; font-size: 13px; color: var(--ink-2); }


/* ---------- Auth ---------- */
.auth { max-width: 440px; margin: 24px auto 0; }
.auth h1 { font-size: 30px; line-height: 1.1; }
.auth-lead { margin-top: 10px; color: var(--ink-2); }
.auth-form { margin-top: 20px; }
.auth-form .field:first-of-type { margin-top: 0; }
.auth-form input[type="email"], .auth-form input[type="password"] {
    width: 100%; font: inherit; color: var(--ink); background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
}
.auth-form input:focus { outline: none; border-color: var(--velvet); box-shadow: 0 0 0 3px rgba(22,53,44,.12); }
.auth-form .btn-primary { width: 100%; }
.auth-alt { margin-top: 16px; font-size: 14px; color: var(--ink-2); }

/* ---------- Fourchette verrouillée + modal coordonnées ---------- */
.result-range { position: relative; }
.is-locked .range-figure, .is-locked .range-basis { filter: blur(9px); user-select: none; pointer-events: none; }
.range-unlock {
    position: absolute; inset: 0; margin: auto; width: max-content; height: max-content;
    font: inherit; font-weight: 600; font-size: 14px; color: var(--velvet); background: var(--gold-soft);
    border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.range-unlock:hover { background: #F0E3BF; }

.modal { border: 0; border-radius: var(--radius); padding: 0; width: min(520px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); box-shadow: 0 24px 64px rgba(0,0,0,.3); }
.modal::backdrop { background: rgba(15,38,32,.55); backdrop-filter: blur(3px); }
.modal-body { padding: 28px 28px 22px; }
.modal-kicker { margin: 0 0 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.modal h2 { font-size: 24px; margin-bottom: 12px; }
.modal-text { margin: 0; color: var(--ink-2); }
.modal-reassure { margin: 12px 0 0; padding: 10px 14px; border-left: 3px solid var(--gold); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 8px; }
.modal-grid .field:first-child { grid-column: 1 / -1; }
.modal-actions { display: flex; align-items: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.modal-legal { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 480px) { .modal-body { padding: 22px 18px 18px; } .modal-grid { grid-template-columns: 1fr; } .modal h2 { font-size: 21px; } }

/* ---------- Backoffice ---------- */
.topbar-nav a.is-active { color: var(--ink); font-weight: 600; }
.flash { padding: 10px 14px; border-radius: var(--radius); margin: 0 0 16px; }
.flash-success { background: #E6F0EA; color: var(--velvet); }
.flash-error { background: #F6E4E1; color: var(--danger); }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-head h1 { font-size: 30px; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat { background: var(--paper); border-radius: var(--radius); padding: 10px 14px; min-width: 96px; display: flex; flex-direction: column; }
.stat b { font-family: var(--serif); font-size: 24px; line-height: 1; }
.stat span { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.stat-hot b { color: var(--danger); }
.stat-gold b { color: var(--gold); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.filters input[type="search"] { flex: 1 1 260px; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.filters select { width: auto; }
.admin-count { color: var(--ink-2); font-size: 13.5px; margin: 6px 0 12px; }
.admin-empty { background: var(--paper); border-radius: var(--radius-lg); padding: 40px; text-align: center; color: var(--ink-2); }
.table-wrap { overflow-x: auto; background: var(--paper); border-radius: var(--radius-lg); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.admin-table th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding: 14px 16px 8px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: #fff; }
.row-hot td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.admin-table small { display: block; color: var(--ink-2); font-size: 12.5px; }
.jewel-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.jewel-link img, .jewel-link .history-thumb-empty { width: 48px; height: 48px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; background: var(--velvet); }
.cell-contact a { display: block; color: var(--ink-2); text-decoration: none; font-size: 13px; }
.cell-contact a:hover { color: var(--ink); text-decoration: underline; }
.cell-contact b { display: block; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--gold-soft); color: var(--velvet); font-size: 11px; font-style: normal; }
.tag-danger { background: #F6E4E1; color: var(--danger); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: #E8EAE4; color: var(--ink-2); }
.badge-nouveau { background: #E8EAE4; }
.badge-a_contacter { background: #F6E4E1; color: var(--danger); }
.badge-contacte { background: #E6F0EA; color: var(--velvet); }
.badge-mandat { background: var(--gold-soft); color: #6E5620; }
.badge-sans_suite { background: #EEE; color: #777; text-decoration: line-through; }
.pagination { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.pagination a, .pagination .is-current { padding: 6px 11px; border-radius: var(--radius); background: var(--paper); text-decoration: none; color: var(--ink); }
.pagination .is-current { background: var(--velvet); color: #fff; }
.breadcrumb { margin: 0 0 12px; }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.admin-show { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 900px) { .admin-show { grid-template-columns: minmax(0, 1fr) 340px; } }
.admin-show h1 { font-size: 28px; }
.admin-photos { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.admin-photos img { width: 140px; height: 140px; object-fit: cover; border-radius: var(--radius); background: var(--velvet); }
.admin-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 16px; }
.admin-side h2 { font-size: 20px; margin-bottom: 10px; }
.contact-name { font-weight: 600; font-size: 17px; margin: 0 0 4px; }
.admin-side p { margin: 4px 0; }
.follow-form .btn-primary { margin-top: 14px; width: 100%; }
.tech { margin-top: 22px; }
.tech-body { padding: 12px 14px; font-size: 13px; }
.tech-body pre { white-space: pre-wrap; font-size: 12px; background: #fff; padding: 12px; border-radius: var(--radius); max-height: 420px; overflow: auto; }

/* ---------- Clients / intervenants ---------- */
.admin-head .btn-primary { text-decoration: none; }
.type-switch { display: flex; gap: 22px; margin-bottom: 6px; font-weight: 600; }
.type-switch input { accent-color: var(--velvet); margin-right: 6px; }
.client-form h2 { font-size: 18px; margin-top: 26px; padding-bottom: 6px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.client-form h2 .field-hint { font-family: var(--sans, inherit); font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.inline-check { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.inline-check input { accent-color: var(--danger); }
.party-list { list-style: none; margin: 0; padding: 0; }
.party-list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.party-list li:last-child { border-bottom: 0; }
.party-list li a { color: var(--ink); text-decoration: none; }
.party-list li a:hover { text-decoration: underline; }
.party-list li small { grid-column: 1; color: var(--ink-2); font-size: 12.5px; }
.party-list .inline-form { grid-row: 1 / span 2; grid-column: 2; margin: 0; }
.btn-danger { color: var(--danger); font-size: 13px; padding: 4px; }
.party-add { margin-top: 14px; background: transparent; }
.party-form { padding: 0 14px 14px; }
.party-form .btn-secondary { margin-top: 12px; }
.party-form .btn-text { display: block; margin-top: 8px; padding-left: 0; font-size: 13.5px; }
.suggest { position: relative; }
.suggest-list { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.12); max-height: 260px; overflow: auto; }
.suggest-list li { padding: 8px 12px; cursor: pointer; display: flex; flex-direction: column; }
.suggest-list li:hover { background: var(--paper); }
.suggest-list li small { color: var(--ink-2); font-size: 12px; }
.suggest-list li.muted { color: var(--ink-2); cursor: default; }

/* ---------- Biens / mandats ---------- */
.badge-item-brouillon { background: #F6E4E1; color: var(--danger); }
.badge-item-verifie { background: #E6F0EA; color: var(--velvet); }
.badge-item-sous_mandat { background: var(--gold-soft); color: #6E5620; }
.badge-item-vendu { background: var(--velvet); color: #fff; }
.badge-item-retire { background: #EEE; color: #777; }
.badge-mandate-brouillon { background: #E8EAE4; }
.badge-mandate-envoye { background: #E3ECF6; color: #2B4C7E; }
.badge-mandate-signe { background: var(--gold-soft); color: #6E5620; }
.badge-mandate-annule { background: #EEE; color: #777; text-decoration: line-through; }
.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 560px) { .form-grid-3 { grid-template-columns: 1fr; } }
.photo-pick label { position: relative; cursor: pointer; border: 3px solid transparent; border-radius: calc(var(--radius) + 3px); }
.photo-pick label.is-main, .photo-pick label:has(input:checked) { border-color: var(--gold); }
.photo-pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.item-actions { display: flex; flex-direction: row; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.item-actions .btn-primary { width: auto; min-width: 0; padding: 12px 22px; font-size: 15px; align-self: auto; }
.item-actions .btn-secondary { padding: 11px 16px; background: #fff; }
.item-actions .btn-secondary:hover { background: var(--velvet); }
.status-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); margin-left: auto; }
@media (max-width: 640px) { .status-inline { margin-left: 0; width: 100%; } .status-inline select { flex: 1; } }
input[type="date"] { min-height: 42px; -webkit-appearance: none; appearance: none; }
.filters input[type="search"] { padding: 10px 12px; }
.status-inline select { width: auto; padding: 8px 10px; }
.compact-list { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.stack-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.stack-actions .btn-primary { text-align: center; text-decoration: none; }
.pick-list { list-style: none; margin: 0; padding: 0; }
.pick-list li { border-bottom: 1px solid var(--line); }
.pick-list label { display: flex; align-items: center; gap: 14px; padding: 12px 4px; cursor: pointer; }
.pick-list label:hover { background: #fff; }
.pick-list input { width: 18px; height: 18px; accent-color: var(--velvet); flex-shrink: 0; }
.pick-list img, .pick-list .history-thumb-empty { width: 56px; height: 56px; border-radius: var(--radius); object-fit: cover; background: var(--velvet); flex-shrink: 0; }
.pick-body { display: flex; flex-direction: column; }
.pick-body small { color: var(--ink-2); font-size: 13px; }
.mandate-layout { grid-template-columns: 1fr; }
@media (min-width: 1100px) { .mandate-layout { grid-template-columns: minmax(0, 1fr) 360px; } }
.mandate-preview { padding: 0; overflow: hidden; background: #e9e9e6; }
.preview-iframe { display: block; width: 100%; min-height: 900px; border: 0; background: #fff; }

/* ---------- Profil maison ---------- */
.logo-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.logo-preview { max-height: 90px; max-width: 220px; background: #fff; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); }
.head-preview { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px; }
.head-preview img { max-height: 70px; max-width: 200px; margin-bottom: 8px; }
.hp-house { font-size: 15px; letter-spacing: 2px; }
.hp-house span { font-size: 11px; letter-spacing: 1.5px; margin-left: 8px; }
.hp-tagline { font-size: 14px; letter-spacing: 4px; margin-top: 4px; }

/* ---------- Pages légales (style maison de ventes : sobre, numéroté, sommaire latéral) ---------- */
.legal-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--velvet) center 38% / cover no-repeat; color: #fff; padding: clamp(56px, 9vw, 120px) var(--gutter) clamp(48px, 7vw, 96px); }
.legal-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(15,38,32,.6) 0%, rgba(22,53,44,.7) 50%, rgba(22,53,44,.8) 100%); mix-blend-mode: multiply; }
.legal-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,38,32,.12), rgba(15,38,32,.4)); }
.legal-hero-inner { max-width: var(--maxw); margin: 0 auto; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.legal-hero .legal-kicker { color: var(--gold-soft); }
.legal-hero h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 300; letter-spacing: -0.015em; line-height: 1.05; margin: 10px 0 22px; max-width: none; white-space: nowrap; font-variation-settings: "opsz" 144; }
@media (max-width: 640px) { .legal-hero h1 { white-space: normal; } }
.legal-hero h1 sup { font-size: .5em; vertical-align: .55em; line-height: 0; }
.legal-lede { max-width: 62ch; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.6; color: rgba(255,255,255,.82); margin: 0 0 22px; }
.legal-lede:empty { display: none; }
.legal-hero .legal-updated { color: rgba(255,255,255,.55); margin: 0; }
.legal-kicker { font-family: var(--sans); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0; }
.legal-updated { font-family: var(--sans); font-size: 13px; letter-spacing: .04em; color: var(--ink-2); margin: 0; }
.legal.page { padding-top: clamp(32px, 5vw, 64px); }
.legal-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 960px) { .legal-grid { grid-template-columns: 220px minmax(0, 66ch); gap: clamp(48px, 7vw, 110px); } }
.legal-toc { position: sticky; top: 28px; font-family: var(--sans); }
.legal-toc-title { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 14px; font-weight: 600; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-left: 1px solid var(--line); }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: 12px; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--ink-2); text-decoration: none; font-size: 13.5px; line-height: 1.4; transition: color .15s, border-color .15s; }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); font-size: 11px; letter-spacing: .08em; color: var(--gold); font-variant-numeric: tabular-nums; padding-top: 2px; flex-shrink: 0; }
.legal-toc a:hover, .legal-toc a.is-current { color: var(--ink); border-left-color: var(--gold); }
@media (max-width: 959px) { .legal-toc { display: none; } }
.legal-body { font-size: 16.5px; }
.legal-body section { padding: 0 0 40px; margin: 0 0 40px; border-bottom: 1px solid var(--line); }
.legal-body section:last-child { border-bottom: 0; }
.legal-body h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 400; margin: 0 0 20px; display: flex; align-items: baseline; gap: 16px; letter-spacing: -0.005em; }
.legal-body h2 .num { font-family: var(--sans); font-size: 12px; letter-spacing: .16em; color: var(--gold); font-weight: 600; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.legal-body h2 .num::before { content: "Article "; }
.legal-body p { line-height: 1.72; margin: 0 0 14px; color: #2A302C; }
.legal-body .clause { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); margin-right: 10px; font-variant-numeric: tabular-nums; }
.legal-body strong { font-weight: 600; color: var(--ink); }
.legal-body a { color: var(--velvet); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.legal-facts { margin: 6px 0 24px; padding: 0; }
.legal-facts > div { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.legal-facts > div:first-child { border-top: 1px solid var(--line); }
.legal-facts dt { font-family: var(--sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding-top: 4px; }
.legal-facts dd { margin: 0; line-height: 1.6; }
@media (max-width: 560px) { .legal-facts > div { grid-template-columns: 1fr; gap: 4px; } }
.legal-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 6px 0 18px; }
.legal-table th { text-align: left; font-family: var(--sans); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding: 10px 12px; border-bottom: 1px solid var(--ink); font-weight: 600; }
.legal-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
.legal-table td:last-child { color: var(--ink-2); font-size: 14px; }
.todo { color: var(--danger); font-style: italic; }

/* ---------- Bandeau collant (page Bijoux) ---------- */
.topbar-fixed { position: sticky; top: 0; z-index: 40; background: var(--stone); border-bottom: 1px solid var(--line); }
.topbar-fixed .topbar { max-width: none; padding: 12px clamp(16px, 6vw, 97px); }
.topbar-fixed .brand-logo { height: 36px; }
.topbar-fixed .brand-address { display: none; }

/* ---------- Page Bijoux (qui sommes-nous), mise en page « spécialité » ---------- */
.spec { --spec-line: #E5E5E5; --spec-grey: #7E7E7E; padding-bottom: 40px; color: #222; background: var(--stone); }
.spec-wrap { padding: 0 clamp(16px, 6vw, 97px); }

.spec .legal-hero { padding-left: clamp(16px, 6vw, 97px); padding-right: clamp(16px, 6vw, 97px); }
.spec .legal-hero-inner { max-width: none; }
.spec .legal-hero .legal-lede { max-width: 75ch; }
.spec-top { padding-top: clamp(40px, 5vw, 72px); }
.spec-cols { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 1000px) { .spec-cols { grid-template-columns: minmax(260px, 3.3fr) minmax(0, 5.95fr) minmax(300px, 3.5fr); column-gap: clamp(30px, 4vw, 130px); } }

.spec-portrait { width: 100%; max-width: 234px; aspect-ratio: 234 / 300; background: #D9D9D9 center / cover no-repeat; filter: grayscale(1); margin-bottom: 24px; }
.spec-portrait-sm { max-width: 90px; aspect-ratio: 1; margin-bottom: 20px; }
.spec-role { font-size: 13px; line-height: 1.32; font-weight: 700; text-transform: uppercase; margin: 0 0 6px; max-width: 234px; }
.spec-name { font-size: 14px; line-height: 1.4; margin: 0 0 8px; }
.spec-mail, .spec-tel { display: block; font-size: 14px; line-height: 1.4; color: #222; text-decoration: none; }
.spec-mail:hover, .spec-tel:hover { text-decoration: underline; }
.spec-arrow { display: inline-block; margin-top: 24px; font-size: 16px; line-height: 24px; color: #222; text-decoration: none; border-bottom: 1px solid #222; padding-bottom: 1px; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; font-family: inherit; }
.spec-arrow span { font-size: 14px; margin-left: 2px; }

.spec-body h2 { font-family: var(--serif); font-size: 32px; line-height: 1.2; font-weight: 400; color: #222; margin: 0 0 16px; font-variation-settings: "opsz" 144; }
.spec-body h2 + h2, .spec-body p + h2 { margin-top: 40px; }
.spec-body h3 { font-family: var(--serif); font-size: 24px; line-height: 1.2; font-weight: 400; color: #222; margin: 28px 0 14px; }
.spec-body p { font-size: 16px; line-height: 22.4px; margin: 0 0 12px; color: #222; }
.spec-body a { color: #222; text-decoration: underline; text-underline-offset: 3px; }
.spec-more { position: relative; max-height: 330px; overflow: hidden; }
.spec-more::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(180deg, rgba(230,231,226,0), rgba(230,231,226,.92)); pointer-events: none; }
.spec-more.is-open { max-height: none; }
.spec-more.is-open::after { display: none; }
button.spec-readmore, button.spec-voirplus { appearance: none; background: none; border: 0; border-bottom: 1px solid #222; border-radius: 0; padding: 0 0 1px; margin-top: 0; font: inherit; font-size: 16px; line-height: 24px; color: #222; cursor: pointer; box-shadow: none; }
button.spec-readmore:hover, button.spec-voirplus:hover { background: none; color: #222; }

.spec-rail-head { display: flex; justify-content: space-between; align-items: center; }
.spec-hr { border: 0; border-top: 1px solid #CCC; margin: 12px 0 16px; }
.spec-kicker { font-size: 13px; line-height: 1.32; text-transform: uppercase; letter-spacing: .02em; color: #222; margin: 0; }
.spec-nav { display: flex; gap: 18px; }
.spec-nav button { appearance: none; background: none; border: 0; border-radius: 0; box-shadow: none; padding: 6px 0; cursor: pointer; width: 34px; }
.spec-nav button:hover { background: none; }
.spec-nav button span { position: relative; display: block; width: 34px; height: 1px; background: #222; }
.spec-nav button span::after { content: ""; position: absolute; top: -4px; width: 8px; height: 8px; border-top: 1px solid #222; }
.spec-nav-next span::after { right: 0; border-right: 1px solid #222; transform: rotate(45deg); }
.spec-nav-prev span::after { left: 0; border-left: 1px solid #222; transform: rotate(-45deg); }
.spec-sales { display: flex; overflow: hidden; }
.spec-sale { flex: 0 0 100%; transition: transform .3s; text-align: center; }
.spec-sale-title { font-family: var(--serif); font-size: 28px; line-height: 1.1; margin: 0 0 16px; color: #222; }
.spec-sale-meta { font-size: 13px; line-height: 1.32; text-transform: uppercase; margin: 0 0 6px; }
.spec-sale-meta span { display: inline-block; }
.spec-sale-flag { font-size: 13px; line-height: 1.32; font-weight: 700; text-transform: uppercase; margin: 0 0 12px; }
.spec-btn { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 18px; padding: 11px 24px; border: 1px solid #222; color: #222; text-decoration: none; background: transparent; }
.spec-btn:hover { background: #222; color: #fff; }
.spec-rail-img { width: 100%; aspect-ratio: 351 / 219; background: var(--stone) center / cover no-repeat; background-blend-mode: multiply; margin: 0; -webkit-mask-image: radial-gradient(ellipse 72% 70% at center, #000 55%, rgba(0,0,0,0) 100%); mask-image: radial-gradient(ellipse 72% 70% at center, #000 55%, rgba(0,0,0,0) 100%); }
.spec-sale .spec-btn { margin-bottom: 12px; }
.spec-sale .spec-hr:last-child { margin-bottom: 0; }
.spec-kicker-2 { margin-top: 56px; }
.spec-brands { list-style: none; margin: 0; padding: 0; }
.spec-brands li.is-extra { display: none; }
.spec-brands.is-open li.is-extra { display: list-item; }
.spec-brands a { font-size: 16px; line-height: 22.4px; color: #222; text-decoration: none; }
.spec-brands a:hover { text-decoration: underline; }

.spec-contacts { margin-top: 96px; }
@media (min-width: 1000px) { .spec-contacts { display: grid; grid-template-columns: minmax(260px, 3.3fr) minmax(0, 5.95fr) minmax(300px, 3.5fr); column-gap: clamp(30px, 4vw, 130px); } .spec-contacts-inner { grid-column: 2 / 4; } }
.spec-contacts-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 30px; }
@media (min-width: 760px) { .spec-contacts-grid { grid-template-columns: repeat(2, minmax(0, 373px)); gap: 30px; } }
.spec-contact { border-left: 1px solid #222; padding-left: 20px; }
.spec-contact .spec-name { margin-bottom: 2px; }

.spec-faq { margin-top: 96px; border-top: 1px solid var(--spec-line); }
.spec-q { border-bottom: 1px solid var(--spec-line); }
.spec-q summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 18px; line-height: 27px; padding: 20px 0; color: #222; }
.spec-q summary::-webkit-details-marker { display: none; }
.spec-chev { width: 8px; height: 8px; border-right: 1px solid #222; border-bottom: 1px solid #222; transform: rotate(45deg); flex-shrink: 0; transition: transform .2s; margin-right: 6px; }
.spec-q[open] .spec-chev { transform: rotate(225deg); }
.spec-a { padding: 0 0 24px; }
.spec-a p { font-size: 16px; line-height: 24px; margin: 0 0 12px; max-width: 1440px; }


/* ---------- Cours des métaux ---------- */
.metals {
    position: relative; overflow: hidden; color: #fff; border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 22px;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(185,150,83,.32) 0%, rgba(185,150,83,0) 55%),
        radial-gradient(80% 70% at 0% 100%, rgba(228,211,166,.14) 0%, rgba(228,211,166,0) 60%),
        linear-gradient(135deg, #0F2620 0%, var(--velvet) 55%, #1E4A3C 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 32px rgba(15,38,32,.18);
}
.metals::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.08)); }
.metals > * { position: relative; z-index: 1; }
.metals-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: nowrap; }
.metals-head h2 { font-size: 18px; font-weight: 400; margin: 0; color: var(--gold-soft); white-space: nowrap; }
.metals-head .inline-form { display: flex; align-items: baseline; gap: 6px; margin: 0; flex-wrap: nowrap; white-space: nowrap; }
.metals-head .inline-form .metals-meta { margin-right: 10px; }
.metals-meta { font-size: 13px; color: rgba(255,255,255,.75); }
.metals-head .btn-text { padding: 6px 8px; color: var(--gold-soft); }
@media (max-width: 700px) { .metals-head { flex-wrap: wrap; } }
.metals-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
@media (min-width: 720px) { .metals-grid { grid-template-columns: repeat(3, 1fr); } }
.metal { border-top: 1px solid rgba(255,255,255,.18); padding-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.metal-name { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); }
.metal b { font-family: var(--serif); font-weight: 300; font-size: 30px; line-height: 1.1; }
.metal b small { font-size: 14px; font-weight: 400; margin-left: 4px; color: rgba(255,255,255,.7); }
.metal-kg { font-size: 13px; color: rgba(255,255,255,.75); }
.metal-sub { font-size: 12.5px; color: rgba(255,255,255,.6); }
.metals-note { margin: 14px 0 0; font-size: 12px; color: rgba(255,255,255,.55); }

.metals-head .metals-settings-btn { color: var(--gold-soft); }
.metals-table { width: 100%; border-collapse: collapse; margin: 14px 0 4px; }
.metals-table th { text-align: left; font-family: var(--sans); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.metals-table td { padding: 8px; vertical-align: middle; }
.metals-table td:first-child { font-weight: 600; white-space: nowrap; }
.metals-table input { width: 100%; min-width: 80px; text-align: right; padding: 8px 10px; }
.metals-table input:disabled { background: var(--paper); color: var(--ink-2); border-color: transparent; }

/* ---------- Pied de page commun (filigrane 7) ---------- */
.site-footer { position: relative; overflow: hidden; background: #fff; color: var(--ink); margin-top: 64px; }
.site-footer-mark { position: absolute; left: 50%; top: 0; bottom: 0; height: 100%; width: auto; transform: translateX(-50%); pointer-events: none; user-select: none; }
.site-footer-inner { position: relative; padding: 36px clamp(16px, 6vw, 97px) 20px; }
.site-footer-brand { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--ink); margin-bottom: 32px; }
.site-footer-brand .brand-title { font-size: 28px; letter-spacing: .06em; line-height: 1; }
.site-footer-brand .brand-title sup { font-size: .45em; vertical-align: .6em; line-height: 0; }
.site-footer-tagline { font-family: var(--sans); font-size: 10px; letter-spacing: .4px; text-transform: uppercase; color: rgba(27,33,30,.6); margin-top: 6px; }
.site-footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
@media (min-width: 900px) { .site-footer-cols { grid-template-columns: repeat(4, 1fr); } }
.site-footer-head { font-family: var(--sans); font-size: 13px; font-weight: 600; text-transform: uppercase; margin: 0 0 14px; }
.site-footer-cols ul { list-style: none; margin: 0; padding: 0; }
.site-footer-cols li { font-size: 13.5px; line-height: 1.5; margin-bottom: 8px; }
.site-footer-cols a { color: var(--ink); text-decoration: none; }
.site-footer-cols a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer-social { display: flex; gap: 12px; margin: 32px 0 24px; }
.site-footer-social a { width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.site-footer-social a:hover { background: var(--velvet); }
.site-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; }
.site-footer-bottom p { margin: 0; }
.site-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 14px; }
.site-footer-bottom a { color: var(--ink); text-decoration: none; }
.site-footer-bottom a:hover { text-decoration: underline; }

/* ---------- Accueil : bloc "maison de confiance" ---------- */
.home-story { display: grid; grid-template-columns: 1fr; gap: 32px; padding: clamp(40px, 6vw, 88px) clamp(16px, 6vw, 97px); }
@media (min-width: 900px) { .home-story { grid-template-columns: minmax(280px, 380px) minmax(0, 720px); column-gap: clamp(40px, 5vw, 80px); justify-content: center; align-items: start; } }
.home-story-left { text-align: center; padding-top: 44px; }
.home-story-left h2 { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.5; font-weight: 400; margin: 0 0 24px; }
.home-story-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-dark, .btn-outline { display: block; padding: 14px 20px; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; text-align: center; border: 1px solid var(--ink); border-radius: 0; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--velvet); border-color: var(--velvet); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.home-story-brand { font-family: "Montserrat", var(--sans); font-size: 28px; font-weight: 700; letter-spacing: .16em; margin: 0 0 12px; color: var(--ink); }
.home-story-brand sup { font-size: .5em; vertical-align: .6em; line-height: 0; }
.home-story-right p:not(.home-story-brand) { font-family: var(--serif); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; margin: 0 0 14px; color: var(--ink); }
.home-story-right p sup { font-size: .6em; vertical-align: .4em; line-height: 0; }
.home-cta { text-align: center; padding: clamp(40px, 6vw, 80px) var(--gutter); border-top: 1px solid var(--line); }
.home-cta h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 400; margin: 0 0 10px; }
.home-cta p { color: var(--ink-2); margin: 0 0 22px; }
.home-cta .btn-dark { display: inline-block; padding: 14px 28px; }

/* ---------- Accueil : 3 étapes ---------- */
.home-steps { padding: clamp(40px, 6vw, 72px) clamp(16px, 6vw, 97px); background: var(--paper); text-align: center; }
.home-steps h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 400; margin: 0 0 32px; }
.home-steps-grid { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 1000px; margin: 0 auto; text-align: left; }
@media (min-width: 760px) { .home-steps-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.home-step-img { aspect-ratio: 3 / 2; background: var(--stone) center / cover no-repeat; margin-bottom: 26px; }
.home-step-num { font-family: var(--sans); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 6px; }
.home-steps h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.home-steps article p:not(.home-step-num) { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin: 0; }
@media (max-width: 600px) { 

/* ---------- Ajustements responsive ---------- */
@media (max-width: 999px) { .spec-rail { max-width: 480px; } .spec-expert { max-width: 480px; } }
@media (max-width: 899px) { .panel-result { min-height: 0; } .panel-result:empty { display: none; } }
@media (max-width: 640px) { .legal-hero { padding-top: 44px; padding-bottom: 40px; } .spec-portrait { max-width: 190px; } .site-footer-cols { gap: 24px 20px; } }
@media (max-width: 899px) { .home-story { padding-top: 28px; gap: 48px; } .home-story-left { padding-top: 0; } }
