/* ==========================================================================
   BWash Auto — design system
   ========================================================================== */

:root {
    --navy-900: #071a33;
    --navy-800: #0e2c52;
    --blue-700: #0b63d6;
    --blue-600: #1f7aec;
    --blue-500: #4da0ff;
    --blue-100: #e6f1fd;
    --purple-700: #4a2f99;
    --purple-600: #6c4bd1;
    --purple-100: #efeafb;
    --ink-900: #0b1f3a;
    --ink-600: #51607a;
    --ink-400: #8697b3;
    --bg: #f3f7fc;
    --surface: #ffffff;
    --border: #e3ebf5;
    --success: #19a263;

    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;

    --shadow-sm: 0 2px 10px rgba(11, 31, 58, .06);
    --shadow-md: 0 10px 30px rgba(11, 31, 58, .12);
    --shadow-lg: 0 22px 48px rgba(11, 31, 58, .20);

    --font-head: 'Poppins', Arial, sans-serif;
    --font-body: 'Inter', Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink-900);
}

main {
    text-align: center;
}

img { max-width: 100%; }

a { color: inherit; }

h1, h2, h3 {
    font-family: var(--font-head);
    margin: 0 0 .5em;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 70px 20px;
    text-align: center;
}

section.tight {
    padding: 44px 20px;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .85em;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--blue-700);
    background: var(--blue-100);
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}

section h2 {
    font-size: 2.1em;
    font-weight: 700;
    color: var(--ink-900);
}

.section-sub {
    color: var(--ink-600);
    max-width: 560px;
    margin: 0 auto 36px;
    font-size: 1.05em;
}

.section-alt {
    background: linear-gradient(180deg, #ffffff 0%, var(--blue-100) 100%);
}

/* ==========================================================================
   Header
   ========================================================================== */

header {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--blue-700) 65%, var(--blue-600) 100%);
    color: white;
    text-align: center;
    padding: 46px 20px 54px;
    border-radius: 0 0 36px 36px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .12) 0, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(255, 255, 255, .10) 0, transparent 40%);
    pointer-events: none;
}

.header-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    flex-wrap: wrap;
    animation: fadeInUp .7s ease both;
}

header .logo {
    width: 128px;
    height: 128px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 50%;
    padding: 6px;
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

.title-text {
    text-align: left;
}

header h1 {
    font-size: 2.6em;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .18);
    margin: 0;
}

header h1 .bwash { color: #ffffff; }
header h1 .auto { color: var(--blue-500); }

header .accroche {
    font-size: 1.15em;
    margin: 8px 0 0;
    font-weight: 400;
    color: rgba(255, 255, 255, .88);
}

/* quick nav pills under the header */
.quick-nav {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
    animation: fadeInUp .8s ease .1s both;
}

.quick-nav a {
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .3);
    padding: 9px 18px;
    border-radius: 999px;
    font-size: .92em;
    font-weight: 500;
    backdrop-filter: blur(4px);
    transition: all .25s ease;
}

.quick-nav a:hover {
    background: rgba(255, 255, 255, .26);
    transform: translateY(-2px);
}

@media screen and (max-width: 600px) {
    header { padding: 36px 16px 42px; border-radius: 0 0 26px 26px; }
    header .logo { width: 92px; height: 92px; }
    .title-text { text-align: center; }
    .header-content { flex-direction: column; gap: 14px; }
    header h1 { font-size: 2em; }
    header .accroche { font-size: 1em; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .header-content, .quick-nav { animation: none; }
}

/* ==========================================================================
   Intro
   ========================================================================== */

#intro .wrap {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 44px 36px;
    max-width: 760px;
}

#intro p.lead {
    font-family: var(--font-head);
    font-size: 1.3em;
    font-weight: 600;
    color: var(--ink-900);
    margin-bottom: 14px;
}

#intro p {
    color: var(--ink-600);
    margin: 10px 0;
    line-height: 1.6;
}

.feature-chips {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
    list-style: none;
    padding: 0;
}

.feature-chips li {
    background: var(--blue-100);
    color: var(--blue-700);
    font-weight: 600;
    font-size: .92em;
    padding: 9px 16px;
    border-radius: 999px;
}

/* ==========================================================================
   Zone d'intervention
   ========================================================================== */

#zoneintervention {
    padding: 44px 20px;
}

#zoneintervention h2 {
    font-size: 1.5em;
    margin-bottom: 18px;
}

.zone-pills {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.zone-pills p {
    margin: 0;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 500;
    color: var(--ink-900);
}

.zone-pills span { font-size: 1.2em; margin-right: 6px; }

/* ==========================================================================
   Contact rapide (bande CTA)
   ========================================================================== */

#contact-rapide {
    background: linear-gradient(120deg, var(--blue-700), var(--navy-800));
    color: #fff;
    border-radius: var(--radius-xl);
    max-width: 1040px;
    margin: 0 auto;
    padding: 46px 24px;
    box-shadow: var(--shadow-md);
}

.contact-intro {
    font-family: var(--font-head);
    font-size: 1.35em;
    font-weight: 600;
    margin-bottom: 22px;
    color: #fff;
}

.contact-quick {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-contact {
    background: #ffffff;
    color: var(--blue-700);
}

.btn-contact.outline {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .6);
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(120deg, var(--blue-600), var(--blue-700));
    color: #fff;
    width: 100%;
}

.btn-ghost {
    background: var(--surface);
    color: var(--blue-700);
    border: 1.5px solid var(--blue-600);
}

.btn-galerie {
    background: linear-gradient(120deg, var(--blue-600), var(--blue-700));
    color: #fff;
}

/* ==========================================================================
   Galerie (teaser sur l'accueil)
   ========================================================================== */

#galerie h2 { margin-bottom: 8px; }

.galerie-preview {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    max-width: 560px;
    margin: 0 auto 30px;
}

.galerie-preview img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}

.galerie-preview img:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Tarifs — cartes de prix
   ========================================================================== */

#tarifs { padding-top: 70px; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
}

.price-card {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: 30px 26px 28px;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}

.price-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.price-card--featured {
    border: 2px solid var(--purple-600);
    transform: translateY(-10px);
}

.price-card--featured:hover {
    transform: translateY(-14px);
}

.price-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(120deg, var(--purple-600), var(--purple-700));
    color: #fff;
    font-size: .78em;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.price-card h3 {
    font-size: 1.25em;
    color: var(--ink-900);
    margin-bottom: 4px;
}

.price-card .price {
    font-family: var(--font-head);
    font-size: 2.1em;
    font-weight: 800;
    margin-bottom: 18px;
}

.price-card--eco .price,
.price-card--eco h3 { color: var(--blue-700); }
.price-card--basique .price,
.price-card--basique h3 { color: var(--blue-700); }
.price-card--premium .price,
.price-card--premium h3 { color: var(--purple-700); }

.check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    flex-grow: 1;
}

.check-list li {
    position: relative;
    padding: 7px 0 7px 30px;
    font-size: .98em;
    color: var(--ink-600);
    line-height: 1.4;
}

.check-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--blue-100);
    color: var(--blue-700);
    font-size: .72em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-card--premium .check-list li::before {
    background: var(--purple-100);
    color: var(--purple-700);
}

.price-card .temps {
    font-size: .85em;
    color: var(--ink-400);
    font-style: italic;
    margin: 0 0 16px;
    text-align: right;
}

.price-card--premium .btn-primary {
    background: linear-gradient(120deg, var(--purple-600), var(--purple-700));
}

/* bannière devis sur mesure */
.devis-banner {
    max-width: 1000px;
    margin: 30px auto 0;
    background: linear-gradient(120deg, var(--purple-700), var(--navy-900));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    flex-wrap: wrap;
}

.devis-banner__text h3 {
    font-size: 1.3em;
    margin-bottom: 6px;
    color: #fff;
}

.devis-banner__text ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    color: rgba(255, 255, 255, .85);
}

.devis-banner__text ul li {
    padding: 3px 0 3px 22px;
    position: relative;
    font-size: .95em;
}

.devis-banner__text ul li::before {
    content: "\2726";
    position: absolute;
    left: 0;
    color: var(--blue-500);
}

.devis-banner__text p.note {
    color: rgba(255, 255, 255, .78);
    font-size: .92em;
    max-width: 420px;
}

.devis-banner .btn {
    background: #fff;
    color: var(--purple-700);
    flex-shrink: 0;
    white-space: nowrap;
}

@media screen and (max-width: 860px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
    .price-card--featured { transform: none; }
    .price-card--featured:hover { transform: translateY(-6px); }
}

/* ==========================================================================
   Rendez-vous
   ========================================================================== */

#rendezvous {
    scroll-margin-top: 110px;
    text-align: center;
    padding: 50px 20px;
    max-width: 640px;
    margin: 50px auto 0;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

#rendezvous h3 {
    font-size: 1.4em;
    color: var(--ink-900);
}

#rendezvous p {
    font-size: 1.15em;
    color: var(--ink-600);
    margin: 8px 0;
}

/* ==========================================================================
   Modal — formulaire de devis
   ========================================================================== */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 26, 51, .66);
    z-index: 1000;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.modal-overlay.is-open { display: flex; }

.modal-box {
    background: linear-gradient(160deg, var(--purple-600), var(--navy-900));
    color: #fff;
    width: 100%;
    max-width: 420px;
    padding: 30px 26px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-box h3 {
    text-align: center;
    font-size: 1.3em;
    margin-bottom: 18px;
}

.modal-box input,
.modal-box textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: var(--radius-sm);
    border: none;
    font-family: var(--font-body);
    font-size: .98em;
    background: rgba(255, 255, 255, .95);
}

.modal-box textarea { min-height: 90px; resize: vertical; }

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
}

.modal-actions .btn-send {
    background: #fff;
    color: var(--purple-700);
}

.modal-actions .btn-cancel {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .4);
}

/* ==========================================================================
   Contact + réseaux sociaux
   ========================================================================== */

#contact-block {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    text-align: left;
}

#contact-block .card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: 30px 32px;
    flex: 1 1 320px;
}

#contact-block h2 {
    font-size: 1.5em;
    text-align: left;
}

#contact-block p {
    color: var(--ink-600);
    margin: 8px 0;
}

#socials-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

#socials-row p {
    margin: 0;
    width: 100%;
    font-weight: 600;
    color: var(--ink-900);
}

.social-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--blue-100);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, background .25s ease;
}

.social-icon img { width: 22px; height: 22px; }

.social-icon:hover {
    transform: translateY(-3px) scale(1.06);
    background: var(--blue-600);
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer#paiement {
    text-align: center;
    padding: 40px 20px 50px;
    font-size: .95em;
    color: rgba(255, 255, 255, .85);
    background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
    border-radius: 36px 36px 0 0;
    margin-top: 50px;
}

footer#paiement p:first-child {
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
}

footer#paiement a {
    color: var(--blue-500);
    text-decoration: underline;
}

/* ==========================================================================
   Bouton de contact flottant
   ========================================================================== */

.contact-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 9999;
    touch-action: manipulation;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.contact-btn {
    background: linear-gradient(135deg, var(--purple-600), var(--blue-700));
    color: white;
    font-size: 24px;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2.4s infinite;
}

.contact-btn:hover {
    filter: brightness(1.1);
    transform: scale(1.08);
}

.contact-options {
    display: none;
    flex-direction: column;
    margin-bottom: 12px;
    gap: 8px;
}

.contact-options a {
    text-decoration: none;
    background: var(--surface);
    color: var(--navy-900);
    padding: 11px 18px;
    border-radius: 999px;
    font-size: .95em;
    font-weight: 600;
    text-align: center;
    box-shadow: var(--shadow-md);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(108, 75, 209, .45), var(--shadow-md); }
    70% { box-shadow: 0 0 0 14px rgba(108, 75, 209, 0), var(--shadow-md); }
    100% { box-shadow: 0 0 0 0 rgba(108, 75, 209, 0), var(--shadow-md); }
}

/* ==========================================================================
   Page Galerie
   ========================================================================== */

.gallery-header {
    background: linear-gradient(135deg, var(--navy-900), var(--blue-700));
    color: #fff;
    border-radius: 0 0 36px 36px;
    padding: 46px 20px;
    box-shadow: var(--shadow-lg);
}

.gallery-header h1 {
    font-size: 2.1em;
    font-weight: 700;
}

.gallery-header p {
    color: rgba(255, 255, 255, .85);
    font-size: 1.1em;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .9);
    text-decoration: none;
    font-weight: 500;
    font-size: .95em;
    margin-bottom: 18px;
}

.back-link:hover { text-decoration: underline; }

.photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    padding: 50px 20px;
    max-width: 920px;
    margin: 0 auto;
}

.photo {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: 14px 14px 18px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.photo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.photo img {
    width: 100%;
    max-width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
}

.photo p {
    text-align: center;
    margin: 12px 0 0;
    font-weight: 600;
    color: var(--ink-900);
}

/* ==========================================================================
   Page Mentions légales
   ========================================================================== */

.legal-content {
    max-width: 760px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: 40px 36px;
    text-align: left;
}

.legal-content section {
    text-align: left;
}

.legal-content h2 {
    font-size: 1.5em;
    text-align: center;
}

.legal-content h3 {
    font-size: 1.1em;
    color: var(--blue-700);
    margin-top: 26px;
}

.legal-content p, .legal-content li {
    color: var(--ink-600);
    line-height: 1.6;
}

.legal-content ul { padding-left: 20px; }

.legal-content section + section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ==========================================================================
   Responsive — ajustements généraux
   ========================================================================== */

@media screen and (max-width: 600px) {
    section { padding: 50px 16px; }
    section h2 { font-size: 1.7em; }
    #intro .wrap { padding: 30px 22px; }
    .devis-banner { flex-direction: column; text-align: center; }
    .devis-banner__text { text-align: center; }
    .devis-banner__text ul { display: inline-block; text-align: left; }
    #contact-block { text-align: center; }
    #contact-block h2 { text-align: center; }
}
