/*
 * Site vitrine B-Clean — tokens du système de design B-Clean.
 * Bleu lettrage, cyan éclat, magenta étincelle, neutres ardoise ;
 * Exo 2 italique pour les titres, Manrope pour le texte.
 */
:root {
    --blue-50: #EAF3FD; --blue-100: #D2E5FB; --blue-200: #A6CBF6; --blue-400: #3A86E2;
    --blue-500: #1467D1; --blue-600: #0B55B5; --blue-700: #0A4594; --blue-800: #0B3572; --blue-900: #0A2550;
    --cyan-400: #1FAEF0; --cyan-500: #0896D6;
    --magenta-50: #FDEAF4; --magenta-400: #EE3895; --magenta-500: #E01A7E; --magenta-600: #BC1069;
    --slate-0: #FFFFFF; --slate-25: #F8FAFD; --slate-50: #F2F5FA; --slate-100: #E6EBF3; --slate-200: #D3DBE7;
    --slate-300: #B3BFD1; --slate-500: #617089; --slate-600: #47546B; --slate-700: #333E52; --slate-900: #111826;
    --green-50: #E8F7EF; --green-700: #0D6B41; --red-50: #FDECEC; --red-700: #A21F1F;

    --gradient-brand: linear-gradient(100deg, var(--cyan-400) 0%, var(--blue-600) 55%, var(--blue-700) 100%);
    --font-display: 'Exo 2', system-ui, sans-serif;
    --font-body: 'Manrope', system-ui, sans-serif;
    --radius-md: 10px; --radius-lg: 14px; --radius-xl: 20px;
    --shadow-sm: 0 1px 3px rgba(10, 37, 80, .08), 0 1px 2px rgba(10, 37, 80, .04);
    --shadow-md: 0 6px 16px -4px rgba(10, 37, 80, .12), 0 2px 4px rgba(10, 37, 80, .05);
    --shadow-lg: 0 18px 40px -12px rgba(10, 37, 80, .22);
    --ring-focus: 0 0 0 3px rgba(31, 174, 240, .35);
    --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
    margin: 0;
    background: var(--slate-25);
    color: var(--slate-700);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--blue-600); }
a:hover { color: var(--blue-800); }
:focus-visible { outline: none; box-shadow: var(--ring-focus); border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-md); background: var(--blue-900); color: #fff; }
.skip-link:focus { top: 12px; }

/* Titres */
.display, h1, h2 { font-family: var(--font-display); font-style: italic; font-weight: 800; letter-spacing: -0.01em; color: var(--blue-900); }
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; margin: 0 0 20px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin: 0 0 12px; }
h3 { font-size: 19px; line-height: 1.3; margin: 0 0 6px; color: var(--slate-900); font-weight: 800; }
.overline {
    display: inline-flex; align-items: center; gap: 8px;
    margin-bottom: 12px;
    font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--magenta-500);
}
.overline::before { content: ''; width: 18px; height: 3px; border-radius: 3px; background: var(--magenta-500); }
.lead { font-size: 18px; color: var(--slate-600); max-width: 640px; }

/* Boutons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 22px;
    border: 1px solid transparent; border-radius: var(--radius-md);
    font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-accent { background: var(--magenta-500); color: #fff; }
.btn-accent:hover { background: var(--magenta-600); color: #fff; }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-700); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn-outline { background: #fff; border-color: var(--slate-200); color: var(--blue-900); }
.btn-outline:hover { border-color: var(--blue-400); color: var(--blue-700); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* En-tête */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-100);
}
.site-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--gradient-brand); }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand img { height: 46px; width: auto; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { padding: 10px 14px; border-radius: var(--radius-md); color: var(--slate-700); font-weight: 700; text-decoration: none; }
.site-nav a:hover { background: var(--blue-50); color: var(--blue-700); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--blue-900); text-decoration: none; }
.nav-toggle { display: none; }

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(120% 90% at 85% 10%, rgba(31, 174, 240, .45) 0%, transparent 55%), linear-gradient(160deg, #071A3A 0%, var(--blue-900) 45%, var(--blue-700) 100%);
    color: #fff;
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; background: linear-gradient(100deg, #8FDAFA, var(--cyan-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #D2E5FB; }
.hero .overline { color: #F7A1CC; }
.hero .overline::before { background: #F7A1CC; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 32px 0 0; padding: 0; list-style: none; color: #D2E5FB; font-weight: 600; font-size: 15px; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--cyan-400); }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--radius-xl); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.hero-badge {
    position: absolute; left: -18px; bottom: 28px;
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px; border-radius: var(--radius-lg);
    background: #fff; color: var(--slate-900); box-shadow: var(--shadow-lg);
    font-weight: 800; font-size: 15px;
}
.hero-badge span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--magenta-50); color: var(--magenta-500); }
.hero-badge small { display: block; color: var(--slate-500); font-weight: 600; font-size: 13px; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--slate-100); border-bottom: 1px solid var(--slate-100); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }

/* Atouts */
.assets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -44px; position: relative; z-index: 2; }
.asset { padding: 22px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-md); border: 1px solid var(--slate-100); }
.asset-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); }
.asset-icon svg { width: 22px; height: 22px; }
.asset p { margin: 0; color: var(--slate-600); font-size: 15px; }

/* Prestations */
.service-category { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
    display: flex; flex-direction: column;
    overflow: hidden; border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--slate-100); box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px; }
.service-body p { margin: 0; color: var(--slate-600); font-size: 15px; flex: 1; }
.service-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--slate-100); }
.price { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 24px; color: var(--blue-600); }
.price small { font-family: var(--font-body); font-style: normal; font-weight: 600; font-size: 13px; color: var(--slate-500); margin-right: 4px; }
.duration { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--slate-500); }
.duration svg { width: 16px; height: 16px; }
.services-note { margin-top: 24px; font-size: 14px; color: var(--slate-500); }

/* Professionnels */
.pro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pro img { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.checklist { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--slate-700); }
.checklist svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--magenta-500); }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 24px 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--slate-100); box-shadow: var(--shadow-sm); }
.step::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    display: block; margin-bottom: 12px;
    font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 40px; line-height: 1;
    background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step p { margin: 0; color: var(--slate-600); font-size: 15px; }

/* Avant / après */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.compare { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; background: var(--slate-100); --position: 50%; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .compare-after { clip-path: inset(0 0 0 var(--position)); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--position); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .35); pointer-events: none; }
.compare-handle::after { content: '⇆'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--blue-700); font-weight: 800; box-shadow: var(--shadow-md); }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-label { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(10, 37, 80, .75); pointer-events: none; }
.compare-label-before { left: 12px; }
.compare-label-after { right: 12px; background: var(--magenta-500); }
.gallery figcaption { margin-top: 10px; font-weight: 700; color: var(--slate-700); }

/* Devis / contact */
.quote { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list span.icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); }
.contact-list svg { width: 20px; height: 20px; }
.contact-list strong { display: block; color: var(--slate-900); }
.contact-list small { color: var(--slate-500); font-size: 14px; }

.form-card { padding: 32px; border-radius: var(--radius-xl); background: #fff; border: 1px solid var(--slate-100); box-shadow: var(--shadow-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 700; color: var(--slate-900); }
.field .hint { font-size: 13px; color: var(--slate-500); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 48px; padding: 10px 14px;
    border: 1px solid var(--slate-200); border-radius: var(--radius-md);
    background: #fff; color: var(--slate-900); font: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan-400); box-shadow: var(--ring-focus); }
.field [aria-invalid=true] { border-color: #D63434; background: #FFFAFA; }
.field-error { font-size: 13px; font-weight: 700; color: var(--red-700); }
.plates-input { text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.plates-input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.segmented { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--slate-50); border: 1px solid var(--slate-100); }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; min-height: 40px; padding: 8px 18px; border-radius: 9px; font-weight: 700; color: var(--slate-600); }
.segmented input:checked + span { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span { box-shadow: var(--ring-focus); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--slate-600); }
.consent input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; accent-color: var(--blue-600); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.form-actions small { color: var(--slate-500); }
.alert { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; padding: 14px 16px; border-radius: var(--radius-md); font-weight: 600; }
.alert svg { flex: none; width: 22px; height: 22px; }
.alert-success { background: var(--green-50); color: var(--green-700); }
.alert-error { background: var(--red-50); color: var(--red-700); }

/* CTA final */
.cta-band { position: relative; overflow: hidden; padding: 56px 0; background: var(--gradient-brand); color: #fff; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 6px 0 0; color: var(--blue-50); }

/* Pied de page */
.site-footer { padding: 56px 0 28px; background: var(--blue-900); color: #A6CBF6; font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { display: inline-block; padding: 10px 14px; border-radius: var(--radius-md); background: #fff; }
.footer-logo img { height: 40px; width: auto; }
.footer-title { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(166, 203, 246, .2); font-size: 14px; }

/* Pages de contenu (mentions légales) */
.page { padding: 64px 0 88px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin-top: 40px; }
.prose dl { display: grid; grid-template-columns: 220px 1fr; gap: 8px 16px; }
.prose dt { font-weight: 700; color: var(--slate-900); }
.prose dd { margin: 0; }
.todo { color: var(--magenta-600); font-weight: 700; }

/* Barre d'action mobile */
.mobile-cta { display: none; }

@media (max-width: 1024px) {
    .services, .steps, .gallery { grid-template-columns: repeat(2, 1fr); }
    .assets { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .site-nav, .header-phone { display: none; }
    .nav-toggle {
        display: inline-grid; place-items: center; margin-left: auto;
        width: 44px; height: 44px; border: 1px solid var(--slate-200); border-radius: var(--radius-md);
        background: #fff; color: var(--blue-900); cursor: pointer;
    }
    .site-header.is-open .site-nav {
        display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
        padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid var(--slate-100); box-shadow: var(--shadow-md);
    }
    .site-header.is-open .site-nav a { padding: 14px; font-size: 18px; }
    .header-cta .btn { display: none; }
    .hero .container, .pro, .quote { grid-template-columns: 1fr; }
    .hero .container { padding-top: 40px; padding-bottom: 72px; gap: 32px; }
    .hero-badge { left: 12px; bottom: 12px; }
    .section { padding: 64px 0; }
    .form-card { padding: 22px; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .prose dl { grid-template-columns: 1fr; }
    .prose dd { margin-bottom: 8px; }
    body { padding-bottom: 76px; }
    .mobile-cta {
        display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
        border-top: 1px solid var(--slate-100); box-shadow: 0 -6px 20px -8px rgba(10, 37, 80, .2);
    }
}

@media (max-width: 560px) {
    .services, .steps, .gallery, .assets { grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }
}

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