/* =====================================================================
   SOS Ciel de Toit - Feuille de style publique
   Habillage aux couleurs AWS (v1.8.0) : fond anthracite #333C45 / #252B33,
   texte blanc, accent cuivre #A55F46 (survol #B87258), dore #B87D1B.
   Les noms --red / --orange sont gardes pour l'espace intervenant (intervenant.css).
   ===================================================================== */

:root {
    color-scheme: dark;
    --accent: #A55F46;
    --accent-hover: #B87258;
    --accent-dark: #7E4533;
    --accent-soft: rgba(165, 95, 70, .18);
    --accent-line: rgba(184, 114, 88, .55);
    --gold: #B87D1B;
    --gold-soft: rgba(184, 125, 27, .16);
    --red: var(--accent);
    --red-dark: #E0A58E;            /* texte d'accent lisible sur fond sombre */
    --red-soft: var(--accent-soft);
    --orange: var(--gold);
    --bg: #333C45;
    --bg-2: #2E363F;
    --surface: #3A444F;
    --surface-2: #434E5A;
    --field: #2A3139;
    --ink: #FFFFFF;
    --text: #E6EAEE;
    --muted: #B3BDC8;
    --line: rgba(255, 255, 255, .12);
    --line-strong: rgba(255, 255, 255, .24);
    --night: #252B33;
    --night-2: #1E242B;
    --ok: #6EE7A0;
    --ok-bg: rgba(34, 197, 94, .12);
    --ok-line: rgba(110, 231, 160, .35);
    --ko: #FCA5A5;
    --ko-bg: rgba(239, 68, 68, .13);
    --ko-line: rgba(252, 165, 165, .4);
    --radius: 14px;
    --radius-lg: 20px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 10px 26px rgba(0, 0, 0, .22);
    --shadow-lg: 0 26px 60px -22px rgba(0, 0, 0, .6);
    --grad: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    --font-title: 'Poppins', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Pot de miel des formulaires (case a cocher) : hors de la vue, du clavier et des lecteurs d'ecran */
.sc-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; overflow-x: clip; }
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(--accent-hover); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--font-title); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.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(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(184, 125, 27, .7); outline-offset: 2px; }

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

/* ---------- Boutons (style AWS : pilule, majuscules, survol blanc) ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .85em 1.6em; border-radius: 30px; border: 2px solid transparent;
    font: 500 .9rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .04em;
    text-decoration: none; cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .25s ease, color .25s ease, border-color .25s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .7); }
.btn-primary:hover { background: #fff; color: var(--accent); }
.btn-outline { border-color: var(--line-strong); color: #fff; background: transparent; }
.btn-outline:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .08); color: var(--ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #fff; color: var(--gold); }
.btn-sm { padding: .6em 1.15em; font-size: .8rem; }
.btn-lg { padding: 1em 1.9em; font-size: .98rem; }
.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);
    border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
/* Fond flou sur une couche a part : un backdrop-filter sur l'en-tete lui-meme en ferait le repere
   des elements position:fixed, et le menu mobile (top/bottom) serait ecrase dans ses 64 px */
.site-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(37, 43, 51, .92); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
    box-shadow: 0 2px 2px rgba(0, 0, 0, .2);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 22px -14px rgba(0, 0, 0, .6); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand-logo { height: 48px; width: auto; max-width: 220px; object-fit: contain; }
.main-nav { display: flex; gap: 2px; margin-left: auto; }
.main-nav a { position: relative; padding: .55em .8em; color: #fff; font-weight: 500; font-size: .95rem; text-decoration: none; }
/* Soulignement cuivre au survol, comme le menu AWS */
.main-nav a::after { content: ""; position: absolute; left: .8em; bottom: .15em; height: 3px; width: 0; background: var(--accent); transition: width .3s; }
.main-nav a:hover, .main-nav a.active { color: var(--accent-hover); }
.main-nav a:hover::after, .main-nav a.active::after { width: 32px; }
.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: 3px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(44px, 7vw, 100px) 0 clamp(60px, 8vw, 116px); }
.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(900px 520px at 85% 8%, rgba(165, 95, 70, .28), transparent 62%),
        radial-gradient(700px 500px at 8% 92%, rgba(184, 125, 27, .12), transparent 60%),
        linear-gradient(180deg, var(--night) 0%, var(--bg) 100%);
}
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.7), 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: rgba(255, 255, 255, .06); border: 1px solid var(--accent-line); color: #F1D2C6; font-weight: 600; font-size: .85rem;
    margin-bottom: 20px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-hover); box-shadow: 0 0 0 0 rgba(184, 114, 88, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(184, 114, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(184, 114, 88, 0); } }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 700; margin-bottom: 18px; text-transform: uppercase; letter-spacing: .01em; }
.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(--accent); 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(0, 0, 0, .45)); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-dark { background: radial-gradient(900px 500px at 100% 0%, rgba(165, 95, 70, .22), transparent 60%), linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%); color: var(--text); }
.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.5rem); }
.section-head h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--accent); margin: 16px auto 0; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.section-head.light h2 { color: #fff; }
.section-head.light p { color: var(--muted); }
.kicker { display: inline-block; font: 600 .78rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); 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 ---------- */
/* 1 a 6 etapes (Administration > Page d'accueil) : 1 a 4 sur une ligne, 5 et 6 sur 3 colonnes */
.steps { --cols: 3; list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 24px; counter-reset: s; position: relative; }
.steps-1 { --cols: 1; max-width: 440px; }
.steps-2 { --cols: 2; max-width: 860px; }
.steps-4 { --cols: 4; gap: 20px; }
.steps-4 .step { padding: 30px 20px 24px; }
.steps::before {
    /* pointilles reliant les pictogrammes, du centre de la 1re colonne au centre de la derniere */
    content: ""; position: absolute; top: 58px; left: calc(50% / var(--cols)); right: calc(50% / var(--cols)); height: 2px;
    background: repeating-linear-gradient(90deg, var(--accent-line) 0 10px, transparent 10px 18px);
}
.steps-1::before, .steps-5::before, .steps-6::before { display: none; }

/* Raccourci « Modifier » visible seulement par un administrateur connecte */
#concept { position: relative; }
.edit-link {
    position: absolute; top: 14px; right: 14px; z-index: 6; display: inline-flex; align-items: center; gap: 6px;
    padding: .4em .85em; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .8rem; font-weight: 600;
    text-decoration: none; box-shadow: var(--shadow); opacity: .8; transition: opacity .2s;
}
.edit-link:hover, .edit-link:focus-visible { opacity: 1; color: #fff; }
.edit-link .ico { width: 14px; height: 14px; }
.step { position: relative; background: var(--surface); 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, border-color .25s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-line); }
.step-num { position: absolute; top: 16px; right: 20px; font: 700 2.6rem/1 var(--font-title); color: rgba(255, 255, 255, .08); }
.step-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; margin-bottom: 18px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .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: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow); }
.price-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #fff; font: 600 .72rem/1 var(--font-body); padding: .6em 1.2em; border-radius: 999px; letter-spacing: .08em; text-transform: uppercase; 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: 700 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(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D9967C' 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(--surface); 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(255,255,255,.15); }
.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(--accent); 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(184, 125, 27, .8); 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(0, 0, 0, .65); color: #fff; }
.ba-tag-after { right: 14px; background: var(--accent); color: #fff; }
.ba figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 4px 0; }

/* ---------- Formulaires ---------- */
.card { background: var(--surface); 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; }
.group-label small { font-weight: 400; margin-left: 4px; }
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: var(--field);
    border: 1.5px solid var(--line-strong); border-radius: 10px; padding: .72em .9em; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #8C97A3; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-hover); box-shadow: 0 0 0 4px var(--accent-soft); }
input:disabled, select:disabled, textarea:disabled { opacity: .5; }
input.invalid, select.invalid, textarea.invalid { border-color: var(--ko); background: var(--ko-bg); }
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(--accent); margin-top: 1px; flex-shrink: 0; }
.form-error { color: var(--ko); background: var(--ko-bg); border: 1px solid var(--ko-line); border-radius: 10px; padding: 10px 14px; font-size: .92rem; margin: 10px 0; }
.form-success { color: var(--ok); background: var(--ok-bg); border: 1px solid var(--ok-line); border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.stack { display: grid; gap: 4px; }

/* ---------- Reservation ---------- */
.booking-wrap { max-width: 940px; }
.booking { position: relative; color: var(--text); }
.booking-account { font-size: .9rem; color: var(--muted); margin: -6px 0 20px; }
.booking-account strong { color: var(--ink); }
.booking-locked { max-width: 560px; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 6px; }
.booking-locked h3 { font-size: 1.35rem; margin: 6px 0 2px; }
.booking-locked .btn { margin: 10px 0 4px; }
.progress { --n: 4; list-style: none; display: grid; grid-template-columns: repeat(var(--n), 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: .8rem; 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: var(--field); border: 2px solid var(--line-strong); font-weight: 700; transition: all .25s; }
.progress li.active, .progress li.done { color: var(--ink); }
.progress li.active span { border-color: var(--accent-hover); color: #fff; box-shadow: 0 0 0 5px var(--accent-soft); }
.progress li.done span { background: var(--accent); border-color: transparent; color: #fff; }
.progress li.done::before, .progress li.active::before { background: var(--accent); }
.step-panel { border: 0; padding: 0; margin: 0; min-width: 0; animation: fadeIn .3s ease; }
.step-panel legend { font: 600 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-grid.choice-stack { grid-template-columns: 1fr; gap: 10px; }
.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: var(--field); transition: border-color .15s, box-shadow .15s, background .15s; }
.choice-body strong { color: var(--ink); font-size: .98rem; padding-right: 26px; }
.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: var(--accent-line); }
.choice input:checked + .choice-body { border-color: var(--accent-hover); background: var(--accent-soft); box-shadow: 0 0 0 4px rgba(165, 95, 70, .12); }
.choice input:focus-visible + .choice-body { outline: 3px solid rgba(184, 125, 27, .7); 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(--accent); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.leg-modes { gap: 0 20px; }
.leg-modes .group-label { margin-top: 0; }
.discount-note { margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px dashed var(--line-strong); color: var(--muted); font-size: .92rem; transition: background .2s, border-color .2s, color .2s; }
.discount-note.on { background: var(--gold-soft); border: 1px solid rgba(184, 125, 27, .45); color: #F2D7A6; }
.discount-note strong { color: #fff; }
.aws-only-note { padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px dashed var(--line-strong); color: var(--muted); }
.return-block { margin-top: 22px; padding-top: 6px; border-top: 1px dashed var(--line); }

.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: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6); max-height: 280px; overflow: auto; }
.suggestions li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: .94rem; color: var(--ink); }
.suggestions li small { display: block; color: var(--muted); }
.suggestions li:hover, .suggestions li.active { background: var(--accent-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: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); }
.zone-status.ko { background: var(--ko-bg); color: var(--ko); border: 1px solid var(--ko-line); }

.calendar { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--bg-2); }
.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-strong); background: var(--field); 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: rgba(255, 255, 255, .25); cursor: default; position: relative; }
.cal-day.free { background: var(--surface); 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: #4ADE80; }
.cal-day.free:hover { box-shadow: inset 0 0 0 2px var(--accent-hover); }
.cal-day.selected { background: var(--accent) !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: #4ADE80; }
.dot.full { background: rgba(255, 255, 255, .25); }
.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: var(--field); 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: var(--accent-line); }
.staff-opt.selected { border-color: var(--accent-hover); background: var(--accent-soft); box-shadow: 0 0 0 4px rgba(165, 95, 70, .12); }
.staff-opt:has(input:focus-visible) { outline: 3px solid rgba(184, 125, 27, .7); outline-offset: 2px; }
.staff-avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--c, var(--accent)); color: #fff; font: 700 1rem var(--font-title); }
.staff-avatar.any { background: var(--gold); 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: var(--field); 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: var(--accent-line); }
.slot-btn.selected { border-color: var(--accent-hover); background: var(--accent-soft); box-shadow: 0 0 0 4px rgba(165, 95, 70, .12); }
.slot-btn:disabled { opacity: .45; cursor: not-allowed; }

.summary { background: var(--bg-2); border: 1px dashed var(--accent-line); 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: 700 1.6rem var(--font-title); color: var(--accent-hover); }

.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(--ink); font-size: 1.05rem; }
.booking-done { text-align: center; padding: 30px 0 10px; animation: fadeIn .4s ease; }
.booking-done .btn { margin: 4px; }
.done-icon { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .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.5rem); }
.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(--accent-hover); }
.ci { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; 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: var(--field); border: 2px solid var(--line-strong); }
.tracker li.done, .tracker li.current { color: var(--ink); }
.tracker li.done .tracker-dot { background: var(--accent); border-color: transparent; color: #fff; }
.tracker li.done::before, .tracker li.current::before { background: var(--accent); }
.tracker li.current .tracker-dot { border-color: var(--accent-hover); color: #fff; box-shadow: 0 0 0 6px var(--accent-soft); }
.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: rgba(255, 255, 255, .06); color: var(--text); }
.prose { line-height: 1.75; }
.big-404 { font: 700 6rem/1 var(--font-title); color: var(--accent); margin: 0; }

/* ---------- Connexion & espace professionnel (v1.8.0) ---------- */
.login-card { display: grid; gap: 2px; }
.login-card .page-title { margin-bottom: 4px; }
.modal-foot { font-size: .84rem; margin: 14px 0 0; text-align: center; }
.pro-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.pro-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pro-head-actions form { margin: 0; }
.pro-title { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; margin: 26px 0 14px; }
.card .pro-title { margin-top: 0; }
.count-pill { font: 600 .78rem/1 var(--font-body); background: rgba(255, 255, 255, .1); color: var(--text); border-radius: 999px; padding: .35em .8em; }
.pro-list { display: grid; gap: 12px; }
.pro-booking { display: flex; justify-content: space-between; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.pro-booking p { margin: 0 0 4px; }
.pro-booking-ref { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pro-booking-ref strong { color: var(--ink); font-family: var(--font-title); }
.pro-legs { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; font-size: .9rem; }
.pro-booking-side { display: grid; justify-items: end; gap: 8px; text-align: right; }
.pro-price { font: 700 1.25rem/1.1 var(--font-title); color: var(--ink); }
.pro-price small { display: block; font: 400 .75rem var(--font-body); color: var(--muted); }
.leg-tag { display: inline-block; font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; margin-right: 6px; background: rgba(255, 255, 255, .08); color: var(--text); }
.leg-tag.aws { background: var(--gold-soft); color: #F2D7A6; }
.pro-archive { margin-top: 26px; }
.pro-archive summary { cursor: pointer; font: 600 1.05rem var(--font-title); color: var(--muted); display: flex; align-items: center; gap: 10px; }
.pro-archive .pro-list { margin-top: 14px; opacity: .85; }
.pro-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 34px; scroll-margin-top: calc(var(--header-h) + 12px); }
.empty-card { color: var(--muted); }
.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: .25em .75em; border-radius: 999px; color: #fff; background: color-mix(in srgb, var(--badge) 70%, #000); border: 1px solid color-mix(in srgb, var(--badge) 80%, #fff); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--night); color: var(--muted); padding: 56px 0 24px; border-top: 3px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer-logo { height: 56px; width: auto; margin-bottom: 14px; }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer .muted { color: var(--muted); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .94rem; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--accent-hover); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; font-size: .85rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); }
.footer-bottom-links { display: inline-flex; align-items: center; gap: 18px; }

/* ---------- Modale de connexion ---------- */
.modal { border: 0; padding: 0; background: transparent; color: var(--text); max-width: calc(100% - 32px); width: 420px; }
.modal::backdrop { background: rgba(10, 12, 15, .7); 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: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px 24px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); text-align: left; }
.modal-card h2 { font-size: 1.4rem; margin-bottom: 4px; }
.modal-card > .muted { font-size: .9rem; margin-bottom: 14px; }
.modal-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); 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: rgba(255, 255, 255, .08); 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: 1120px) {
    .main-nav a { padding: .55em .55em; font-size: .9rem; }
    .main-nav a::after { left: .55em; }
}
@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: var(--night);
        transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility 0s .3s; overflow-y: auto;
    }
    .main-nav.open { transform: none; visibility: visible; transition: transform .3s ease; }  /* fermé : ni visible ni atteignable au clavier */
    .main-nav a { padding: 14px 16px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
    .main-nav a::after { display: none; }
    .nav-actions-mobile { display: grid; gap: 10px; margin-top: 18px; }
    .nav-actions-mobile .btn { width: 100%; border-bottom: 0; border-radius: 30px; }
    .nav-actions-mobile .btn-primary { 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; }
    .steps-4, .steps-5, .steps-6 { --cols: 2; }
    .steps-4::before { display: none; }
}
@media (max-width: 760px) {
    :root { --header-h: 64px; }
    .brand-logo { height: 38px; max-width: 160px; }
    .hide-sm { display: none !important; }
    .steps, .steps-4, .steps-5, .steps-6 { --cols: 1; }
    .steps::before { display: none; }
    .edit-link { top: 8px; right: 8px; }
    .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; }
    .leg-modes > div + div { margin-top: 8px; }
    .pro-booking { flex-direction: column; align-items: stretch; }
    .pro-booking-side { justify-items: start; text-align: left; grid-template-columns: 1fr auto; align-items: center; }
    .pro-cols { grid-template-columns: 1fr; }
    .pro-head-actions { width: 100%; }
    .fab-rdv {
        display: block; position: fixed; z-index: 40; left: 16px; right: 16px; bottom: 16px;
        text-align: center; padding: 15px; border-radius: 30px; background: var(--accent); color: #fff;
        font-weight: 600; text-transform: uppercase; letter-spacing: .05em; text-decoration: none; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .8);
        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%; }
}
