/* =====================================================================
   SOS Ciel de Toit - Feuille de style publique
   Rouge sport #DC2626 / #991B1B, orange d'accent #EA580C, fond #F8FAFC
   ===================================================================== */

:root {
    --red: #DC2626;
    --red-dark: #991B1B;
    --red-soft: #FEE2E2;
    --orange: #EA580C;
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --ink: #0F172A;
    --text: #334155;
    --muted: #64748B;
    --line: #E2E8F0;
    --night: #160B0C;
    --night-2: #241113;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
    --shadow-lg: 0 24px 60px -20px rgba(153, 27, 27, .35);
    --grad: linear-gradient(135deg, var(--red) 0%, var(--orange) 100%);
    --font-title: 'Poppins', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 16px/1.6 var(--font-body);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { font-family: var(--font-title); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.ico { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(234, 88, 12, .55); outline-offset: 2px; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 32px); }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
    font: 600 .95rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(220, 38, 38, .7); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 26px -8px rgba(220, 38, 38, .8); transform: translateY(-1px); }
.btn-outline { border-color: var(--red); color: var(--red); background: transparent; }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-ghost { background: rgba(15, 23, 42, .05); color: var(--ink); }
.btn-ghost:hover { background: rgba(15, 23, 42, .1); color: var(--ink); }
.btn-sm { padding: .55em 1em; font-size: .88rem; }
.btn-lg { padding: 1em 1.7em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- En-tete ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -12px rgba(15, 23, 42, .2); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand-logo { height: 44px; width: auto; max-width: 210px; object-fit: contain; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { padding: .5em .8em; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: .94rem; text-decoration: none; }
.main-nav a:hover, .main-nav a.active { color: var(--red); background: var(--red-soft); }
.nav-actions-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; -webkit-tap-highlight-color: transparent; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; border-radius: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(234, 88, 12, .14), transparent 60%),
        radial-gradient(700px 500px at 10% 90%, rgba(220, 38, 38, .10), transparent 60%),
        linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(153, 27, 27, .10) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .6em; padding: .45em 1em; border-radius: 999px;
    background: #fff; border: 1px solid #FECACA; color: var(--red-dark); font-weight: 600; font-size: .85rem;
    box-shadow: var(--shadow); margin-bottom: 20px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(220, 38, 38, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); } 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); } }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; margin-bottom: 18px; }
.hero h1::first-line { color: var(--ink); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hero-points li { display: flex; gap: 10px; align-items: center; font-weight: 500; color: var(--ink); }
.hero-points .ico { color: #fff; background: var(--grad); border-radius: 50%; padding: 3px; width: 1.4em; height: 1.4em; stroke-width: 3; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; filter: drop-shadow(0 30px 40px rgba(153, 27, 27, .18)); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.section-dark { background: radial-gradient(900px 500px at 100% 0%, rgba(220, 38, 38, .35), transparent 60%), linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%); color: #E2E8F0; }
.section-head { max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.section-head.light h2 { color: #fff; }
.section-head.light p { color: #CBD5E1; }
.kicker { display: inline-block; font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
.sub-title { text-align: center; margin: 56px 0 24px; font-size: 1.4rem; }
.empty { text-align: center; color: var(--muted); padding: 24px; }
.page-top { padding-top: clamp(40px, 6vw, 72px); }
.page-title { font-size: clamp(1.7rem, 3vw, 2.3rem); }

/* ---------- Etapes ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; position: relative; }
.steps::before {
    content: ""; position: absolute; top: 58px; left: 16%; right: 16%; height: 2px;
    background: repeating-linear-gradient(90deg, #FCA5A5 0 10px, transparent 10px 18px);
}
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 26px 28px; box-shadow: var(--shadow); text-align: center; transition: transform .25s, box-shadow .25s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-num { position: absolute; top: 16px; right: 20px; font: 800 2.6rem/1 var(--font-title); color: #FEE2E2; }
.step-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--grad); color: #fff; margin-bottom: 18px; box-shadow: 0 10px 24px -10px rgba(220, 38, 38, .8); position: relative; z-index: 1; }
.step-icon .ico { width: 30px; height: 30px; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Tarifs ---------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow); }
.price-card.featured { border: 2px solid var(--red); box-shadow: var(--shadow-lg); }
.ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font: 700 .75rem/1 var(--font-body); padding: .55em 1.1em; border-radius: 999px; letter-spacing: .04em; white-space: nowrap; }
.price-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.price-card > .muted { font-size: .92rem; min-height: 2.8em; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 10px 0 6px; }
.price small { width: 100%; color: var(--muted); font-size: .82rem; }
.price strong { font: 800 2.5rem/1 var(--font-title); color: var(--ink); }
.duration { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 8px 0 24px; flex: 1; }
.checklist li { position: relative; padding: 6px 0 6px 28px; font-size: .95rem; border-bottom: 1px dashed var(--line); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DC2626' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }

.fabrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.fabric { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.fabric h4 { margin: 0 0 2px; font-size: 1.02rem; }
.fabric p { margin: 0; font-size: .88rem; }
.fabric-price { font-weight: 700; color: var(--red-dark); white-space: nowrap; text-align: right; }
.fabric-price small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; }
.swatch { width: 52px; height: 52px; border-radius: 12px; background: var(--sw); position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.swatch::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,.12) 0 2px, transparent 2px 5px), linear-gradient(135deg, rgba(255,255,255,.25), transparent 60%); }
.swatch.sm { width: 34px; height: 34px; border-radius: 9px; margin-bottom: 8px; }

/* ---------- Avant / apres ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; }
.gallery.single { max-width: 820px; margin: 0 auto; grid-template-columns: 1fr; }
.ba { margin: 0; }
.ba-frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #1f1f1f; user-select: none; touch-action: pan-y; }
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.4); pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--grad); border: 3px solid #fff; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.ba-handle span::before, .ba-handle span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 7px solid transparent; margin-top: -7px; }
.ba-handle span::before { left: 4px; border-right-color: #fff; }
.ba-handle span::after { right: 4px; border-left-color: #fff; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba-range:focus-visible + * { outline: none; }
.ba-frame:focus-within .ba-handle span { outline: 3px solid rgba(234, 88, 12, .7); outline-offset: 3px; }
.ba-tag { position: absolute; top: 14px; padding: .35em .8em; border-radius: 999px; font: 700 .75rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.ba-tag-before { left: 14px; background: rgba(15, 23, 42, .75); color: #fff; }
.ba-tag-after { right: 14px; background: var(--red); color: #fff; }
.ba figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 4px 0; }

/* ---------- Formulaires ---------- */
.card { background: #fff; border-radius: var(--radius-lg); padding: clamp(20px, 3.5vw, 36px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > span, .field > label, .group-label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.group-label { margin: 18px 0 10px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=date], input[type=search], select, textarea {
    width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
    border: 1.5px solid #CBD5E1; border-radius: 10px; padding: .72em .9em; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(220, 38, 38, .14); }
input.invalid, select.invalid, textarea.invalid { border-color: var(--red); background: #FFF7F7; }
textarea { resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1.3fr .8fr; gap: 0 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 12px; cursor: pointer; font-size: .94rem; }
.check input { width: 20px; height: 20px; accent-color: var(--red); margin-top: 1px; flex-shrink: 0; }
.form-error { color: #B91C1C; background: #FEF2F2; border: 1px solid #FECACA; border-radius: 10px; padding: 10px 14px; font-size: .92rem; margin: 10px 0; }
.form-success { color: #166534; background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 10px; padding: 10px 14px; }

/* ---------- Reservation ---------- */
.booking-wrap { max-width: 920px; }
.booking { position: relative; color: var(--text); }
.progress { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 0 0 28px; counter-reset: p; }
.progress li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--muted); text-align: center; }
.progress li::before { content: ""; position: absolute; top: 17px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
.progress li:first-child::before { display: none; }
.progress li span { position: relative; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 2px solid var(--line); font-weight: 700; transition: all .25s; }
.progress li.active, .progress li.done { color: var(--ink); }
.progress li.active span { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 5px rgba(220, 38, 38, .12); }
.progress li.done span { background: var(--grad); border-color: transparent; color: #fff; }
.progress li.done::before, .progress li.active::before { background: var(--grad); }
.step-panel { border: 0; padding: 0; margin: 0; min-width: 0; animation: fadeIn .3s ease; }
.step-panel legend { font: 700 1.3rem/1.2 var(--font-title); color: var(--ink); margin-bottom: 18px; padding: 0; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 16px 14px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; }
.choice-body strong { color: var(--ink); font-size: .98rem; }
.choice-body small { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.choice-body em { font-style: normal; font-weight: 700; color: var(--red-dark); margin-top: auto; padding-top: 6px; font-size: .9rem; }
.choice:hover .choice-body { border-color: #FCA5A5; }
.choice input:checked + .choice-body { border-color: var(--red); background: #FFF7F7; box-shadow: 0 0 0 4px rgba(220, 38, 38, .1); }
.choice input:focus-visible + .choice-body { outline: 3px solid rgba(234, 88, 12, .55); outline-offset: 2px; }
.choice input:checked + .choice-body::after { content: "✓"; position: absolute; top: 10px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 700; }

.address-field { position: relative; }
.suggestions { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; list-style: none; margin: 4px 0 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(15, 23, 42, .3); max-height: 280px; overflow: auto; }
.suggestions li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: .94rem; }
.suggestions li small { display: block; color: var(--muted); }
.suggestions li:hover, .suggestions li.active { background: var(--red-soft); }
.zone-status { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 10px; font-size: .92rem; font-weight: 500; }
.zone-status.ok { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.zone-status.ko { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }

.calendar { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--bg); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { font-family: var(--font-title); color: var(--ink); text-transform: capitalize; }
.cal-nav { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .dow { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; padding: 4px 0; }
.cal-day { height: 50px; display: grid; place-items: center; border-radius: 10px; border: 0; font: 600 .92rem var(--font-body); background: transparent; color: #CBD5E1; cursor: default; position: relative; }
.cal-day.free { background: #fff; color: var(--ink); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.cal-day.free::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: #22C55E; }
.cal-day.free:hover { box-shadow: inset 0 0 0 2px #FCA5A5; }
.cal-day.selected { background: var(--grad) !important; color: #fff; box-shadow: none; }
.cal-day.selected::after { background: #fff; }
.cal-day.today { text-decoration: underline; text-underline-offset: 3px; }
.cal-legend { display: flex; gap: 14px; align-items: center; font-size: .78rem; color: var(--muted); margin: 10px 0 0; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: -8px; }
.dot.free { background: #22C55E; }
.dot.full { background: #CBD5E1; }
.cal-loading { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 30px 0; }
/* Choix de l'intervenant (etape 3) */
.staff-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 18px; }
.staff-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; -webkit-tap-highlight-color: transparent; }
.staff-opt input { position: absolute; opacity: 0; pointer-events: none; }
.staff-opt strong { display: block; color: var(--ink); font-size: .95rem; }
.staff-opt small { display: block; color: var(--muted); font-size: .8rem; }
.staff-opt:hover { border-color: #FCA5A5; }
.staff-opt.selected { border-color: var(--red); background: #FFF7F7; box-shadow: 0 0 0 4px rgba(220, 38, 38, .1); }
.staff-opt:has(input:focus-visible) { outline: 3px solid rgba(234, 88, 12, .55); outline-offset: 2px; }
.staff-avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--c, var(--red)); color: #fff; font: 700 1rem var(--font-title); }
.staff-avatar.any { background: var(--grad); font-size: .9rem; }

.slots { margin-top: 6px; }
.slot-list { display: flex; flex-wrap: wrap; gap: 10px; }
.slot-btn { flex: 1 1 180px; padding: 14px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font: 600 .95rem var(--font-body); color: var(--ink); cursor: pointer; text-align: left; }
.slot-btn small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.slot-btn:hover:not(:disabled) { border-color: #FCA5A5; }
.slot-btn.selected { border-color: var(--red); background: #FFF7F7; box-shadow: 0 0 0 4px rgba(220, 38, 38, .1); }
.slot-btn:disabled { opacity: .45; cursor: not-allowed; }

.summary { background: var(--bg); border: 1px dashed #FCA5A5; border-radius: var(--radius); padding: 18px 20px; margin: 8px 0 16px; }
.summary h4 { margin: 0 0 10px; font-size: 1rem; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: .92rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; color: var(--ink); font-weight: 500; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.summary .total strong { font: 800 1.6rem var(--font-title); color: var(--red); }

.booking-nav { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.booking-nav [data-next], .booking-nav [data-submit] { margin-left: auto; }
.booking-nav [data-prev]:not([hidden]) + .estimate { margin-left: auto; }
.estimate { font-size: .9rem; color: var(--muted); }
.estimate strong { color: var(--red-dark); font-size: 1.05rem; }
.booking-done { text-align: center; padding: 30px 0 10px; animation: fadeIn .4s ease; }
.done-icon { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(220, 38, 38, .8); }
.done-icon .ico { width: 38px; height: 38px; stroke-width: 3; }
.booking.is-done > :not(.booking-done) { display: none !important; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-grid h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-weight: 500; color: var(--ink); }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--red); }
.ci { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--red-soft); color: var(--red); flex-shrink: 0; }

/* ---------- Suivi ---------- */
.tracker { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.tracker li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: .82rem; font-weight: 600; color: var(--muted); }
.tracker li::before { content: ""; position: absolute; top: 18px; left: -50%; right: 50%; height: 3px; background: var(--line); }
.tracker li:first-child::before { display: none; }
.tracker-dot { position: relative; z-index: 1; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 2px solid var(--line); }
.tracker li.done, .tracker li.current { color: var(--ink); }
.tracker li.done .tracker-dot { background: var(--grad); border-color: transparent; color: #fff; }
.tracker li.done::before, .tracker li.current::before { background: var(--grad); }
.tracker li.current .tracker-dot { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 6px rgba(220, 38, 38, .14); }
.details { display: grid; grid-template-columns: 150px 1fr; gap: 10px 18px; margin: 0; }
.details dt { color: var(--muted); font-size: .92rem; }
.details dd { margin: 0; color: var(--ink); font-weight: 500; }
.track-card { margin-bottom: 20px; }
.notice { padding: 16px 20px; border-radius: var(--radius); margin: 24px 0; }
.notice-muted { background: #F1F5F9; color: var(--text); }
.prose { line-height: 1.75; }
.big-404 { font: 800 6rem/1 var(--font-title); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--night); color: #CBD5E1; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer-logo { height: 56px; width: auto; margin-bottom: 14px; background: #fff; padding: 6px 12px; border-radius: 12px; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer .muted { color: #94A3B8; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .94rem; }
.footer-links a { color: #CBD5E1; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: .85rem; color: #94A3B8; }
.footer-bottom a { color: #94A3B8; }
.footer-bottom-links { display: inline-flex; align-items: center; gap: 18px; }
/* Acces administration : discret, en bas de page */
.footer-bottom .admin-link { background: none; border: 0; padding: 0; font: inherit; font-size: .78rem; color: #64748B; opacity: .7; cursor: pointer; text-decoration: none; }
.footer-bottom .admin-link:hover, .footer-bottom .admin-link:focus-visible { opacity: 1; color: #CBD5E1; text-decoration: underline; }

/* ---------- Modale admin ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: calc(100% - 32px); width: 400px; }
.modal::backdrop { background: rgba(22, 11, 12, .6); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }
.modal-card { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 32px 28px 26px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); text-align: left; }
.modal-card h2 { font-size: 1.4rem; margin-bottom: 4px; }
.modal-card > .muted { font-size: .9rem; margin-bottom: 20px; }
.modal-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 14px; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-close:hover { background: var(--bg); color: var(--ink); }

/* ---------- Bouton flottant mobile ---------- */
.fab-rdv { display: none; }

/* ---------- Apparition au defilement ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
    .main-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
        flex-direction: column; gap: 2px; padding: 16px; background: #fff;
        transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
    }
    .main-nav.open { transform: none; }
    .main-nav a { padding: 14px 16px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav-actions-mobile { display: block; margin-top: 18px; }
    .nav-actions-mobile .btn { width: 100%; border-bottom: 0; border-radius: 999px; color: #fff; }
    .header-actions { margin-left: auto; }
    .nav-toggle { display: block; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 560px; margin: 0 auto; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    :root { --header-h: 64px; }
    .brand-logo { height: 38px; max-width: 160px; }
    .hide-sm { display: none !important; }
    .steps { grid-template-columns: 1fr; }
    .steps::before { display: none; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .progress li { font-size: 0; gap: 0; }
    .tracker { grid-template-columns: 1fr; gap: 0; }
    .tracker li { flex-direction: row; text-align: left; gap: 14px; padding: 6px 0; font-size: .92rem; }
    .tracker li::before { top: -50%; bottom: 50%; left: 18px; right: auto; width: 3px; height: auto; }
    .details { grid-template-columns: 1fr; gap: 2px; }
    .details dd { margin-bottom: 10px; }
    .fabric { grid-template-columns: auto 1fr; }
    .fabric-price { grid-column: 2; text-align: left; }
    .booking-nav { flex-wrap: wrap; }
    .estimate { order: -1; width: 100%; text-align: center; }
    .booking-nav [data-prev]:not([hidden]) + .estimate { margin-left: 0; }
    .fab-rdv {
        display: block; position: fixed; z-index: 40; left: 16px; right: 16px; bottom: 16px;
        text-align: center; padding: 15px; border-radius: 999px; background: var(--grad); color: #fff;
        font-weight: 700; text-decoration: none; box-shadow: 0 12px 30px -8px rgba(153, 27, 27, .7);
        transform: translateY(140%); transition: transform .3s ease;
    }
    .fab-rdv.show { transform: none; }
    .fab-rdv:hover { color: #fff; }
    .site-footer { padding-bottom: 90px; }
}
@media (max-width: 420px) {
    .hide-xs { display: none; }
    .hero-cta .btn { width: 100%; }
}
