/* ═══════════════════════════════════════════════════════════════════════════
   LEAD DESIGN ENGINEER — ARCHITECTURE VISUELLE, TYPOGRAPHIE & MICRO-INTERACTIONS
   Conforme aux standards : Linear / Stripe / Vercel / Apple Craft
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    /* Grille spatiale stricte (multiples de 4px / 8px) */
    --lde-space-1: 0.25rem;  /* 4px */
    --lde-space-2: 0.5rem;   /* 8px */
    --lde-space-3: 0.75rem;  /* 12px */
    --lde-space-4: 1rem;     /* 16px */
    --lde-space-6: 1.5rem;   /* 24px */
    --lde-space-8: 2rem;     /* 32px */
    --lde-space-12: 3rem;    /* 48px */
    --lde-space-16: 4rem;    /* 64px */
    --lde-space-24: 6rem;    /* 96px */

    /* Courbes d'accélération calibrées (Motion & Feedback) */
    --lde-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --lde-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --lde-duration-fast: 160ms;
    --lde-duration-base: 240ms;

    /* Ombres multicouches subtiles (Élévation architecturale) */
    --lde-shadow-sm: 0 2px 8px -1px rgba(15, 23, 42, 0.05), 0 1px 3px -1px rgba(15, 23, 42, 0.03);
    --lde-shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 12px 28px -4px rgba(15, 23, 42, 0.04);
    --lde-shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.10), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
    --lde-border-subtle: 1px solid rgba(15, 23, 42, 0.08);
}

/* ── 0. NAVIGATION HAUTE PRÉCISION (Correction Haut à Droite & Alignement) ── */
header nav,
nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    height: 72px !important;
    padding: 0 2rem !important;
    gap: 1.25rem !important;
    box-sizing: border-box !important;
}

.nav-logo {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.nav-logo span {
    white-space: nowrap !important;
    line-height: 1 !important;
}

.nav-links {
    display: flex !important;
    align-items: center !important;
    gap: 1.25rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
}

.nav-links li {
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

.nav-links a {
    white-space: nowrap !important;
}

#availability-badge,
.availability-badge,
.nav-links .nav-gmaps,
.nav-links li:has(.nav-gmaps),
#reviews-badge {
    display: none !important;
}

.nav-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.75rem !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    height: 100% !important;
}

.btn-call,
.nav-phone-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    height: 42px !important;
    padding: 0 1.15rem !important;
    line-height: 1 !important;
    border-radius: 8px !important;
}

@media (max-width: 1150px) {
    .nav-links {
        gap: 0.85rem !important;
    }
    .nav-links a {
        font-size: 0.8rem !important;
    }
    header nav,
    nav {
        padding: 0 1.25rem !important;
    }
}

/* ── 1. RENDU TYPOGRAPHIQUE & HIÉRARCHIE (Typography & Hierarchy) ── */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    line-height: 1.65;
}

/* Titres : interlignage serré (leading-tight 1.08–1.15) & équilibre des lignes */
h1, h2, h3, h4,
.hero-title,
.section-title,
.real-pair-title,
.service-detail-text h3 {
    line-height: 1.12 !important;
    text-wrap: balance;
}

/* Paragraphes : interlignage aéré (leading-relaxed 1.65–1.75) & largeur 65ch–75ch */
p,
.hero-sub,
.card p,
.service-card p,
.zone-card p,
.dept-card p,
.avis-text,
.rtc-text,
.faq-answer,
.service-detail-text p,
.service-desc {
    line-height: 1.7 !important;
    max-width: 68ch;
}

/* Centrage automatique des paragraphes dans les en-têtes centrés */
.section-header p,
.avis-cta-block p,
footer p {
    margin-left: auto;
    margin-right: auto;
}

/* Métadonnées & Eyebrow tags : hiérarchie nette */
.section-tag,
.hero-badge,
.service-badge,
.service-detail-tag,
.hero-tag {
    letter-spacing: 0.1em;
    font-weight: 700;
    text-transform: uppercase;
}

/* ── 2. MICRO-INTERACTIONS & ÉTATS INTERACTIFS (Motion & Feedback) ── */
a,
button,
.btn,
input,
select,
textarea,
.card,
.service-card,
.zone-card,
.dept-card,
.avis-card,
.material,
.real-img-box,
.contact-block,
.engagement-tab-btn,
.help-btn,
.gmb-ticker-fixed a {
    transition:
        transform var(--lde-duration-base) var(--lde-ease-out),
        box-shadow var(--lde-duration-base) var(--lde-ease-out),
        background-color var(--lde-duration-fast) ease-out,
        border-color var(--lde-duration-fast) ease-out,
        color var(--lde-duration-fast) ease-out,
        opacity var(--lde-duration-fast) ease-out;
}

/* État :hover sur les cartes (élévation subtile) */
.card:hover,
.service-card:hover,
.zone-card:hover,
.dept-card:hover,
.avis-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--lde-shadow-lg) !important;
}

/* État :hover et :active sur les boutons (feedback tactile immédiat) */
.btn:hover,
button.btn:hover,
a.btn:hover {
    transform: translateY(-2px);
}

.btn:active,
button:active,
a.btn:active,
.help-btn:active,
.gmb-ticker-fixed a:active {
    transform: translateY(0) scale(0.985) !important;
}

/* État :focus-visible (Accessibilité clavier WCAG AAA) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent, var(--vert, #2563EB)) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18) !important;
}

/* Respect des préférences utilisateur (Reduced Motion) */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ── 3. RYTHME SPATIAL, FORMULAIRES HAUTE CONVERSION & CONTRASTE ── */
/* Formulaire rapide Hero & Devis */
.hero-fast-form,
.devis-card {
    background: #FFFFFF !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 14px !important;
    padding: 1.5rem !important;
    box-shadow: var(--lde-shadow-md) !important;
    color: #0F172A !important;
}

.hero-fast-form h3,
.devis-card h3 {
    color: #1E3A5F !important;
    margin-top: 0 !important;
    margin-bottom: 0.85rem !important;
    line-height: 1.2 !important;
}

.hero-fast-form input,
.hero-fast-form select,
.hero-fast-form textarea,
.devis-card input,
.devis-card select,
.devis-card textarea,
.contact-form-bottom input,
.contact-form-bottom select,
.contact-form-bottom textarea {
    background: #F8FAFC !important;
    color: #0F172A !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 8px !important;
    padding: 0.8rem 1rem !important;
    font-size: 0.95rem !important;
    min-height: 46px;
}

.hero-fast-form input::placeholder,
.hero-fast-form textarea::placeholder,
.devis-card input::placeholder,
.devis-card textarea::placeholder,
.contact-form-bottom input::placeholder,
.contact-form-bottom textarea::placeholder {
    color: #64748B !important;
    opacity: 1 !important;
}

.hero-fast-form input:focus,
.hero-fast-form select:focus,
.hero-fast-form textarea:focus,
.contact-form-bottom input:focus,
.contact-form-bottom select:focus,
.contact-form-bottom textarea:focus {
    background: #FFFFFF !important;
    border-color: var(--accent, var(--vert, #2563EB)) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.contact-form-bottom {
    background: #FFFFFF !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    box-shadow: var(--lde-shadow-md) !important;
    color: #0F172A !important;
}

.contact-form-bottom h3 {
    color: #1E3A5F !important;
}

.contact-form-bottom button[type="submit"],
.hero-fast-form button[type="submit"] {
    background: linear-gradient(135deg, #1E3A5F 0%, var(--accent, var(--vert, #2563EB)) 100%) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 8px !important;
    min-height: 48px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(30, 58, 95, 0.22) !important;
}

/* ── 4. WIDGETS FLOTTANTS (GMB TICKER & HELP BTN) SANS CHEVAUCHEMENT ── */
.gmb-ticker-fixed {
    position: fixed !important;
    bottom: 18px !important;
    left: 18px !important;
    z-index: 9998 !important;
}

.gmb-ticker-fixed a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #FFFFFF !important;
    color: #0F172A !important;
    padding: 10px 16px !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14) !important;
}

.gmb-ticker-fixed .gmb-stars {
    color: #F59E0B !important;
    letter-spacing: 1px;
}

.help-btn {
    position: fixed !important;
    bottom: 18px !important;
    right: 18px !important;
    z-index: 9999 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 22px !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #1E3A5F 0%, var(--accent, var(--vert, #2563EB)) 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.28) !important;
}

/* ── 5. RESPONSIVE DESIGN MOBILE-FIRST (375px / 768px / 1024px / 1440px) ── */
@media (max-width: 1024px) {
    .hero-grid,
    .engagements-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .service-detail-row {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .grid,
    .services-grid,
    .zones-grid,
    .avis-grid,
    .reviews-grid,
    .contact-row,
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .real-pair-images {
        flex-direction: column !important;
    }

    .hero-fast-form .form-row {
        flex-direction: column !important;
        gap: 0.65rem !important;
    }

    .contact-form-bottom {
        padding: 1.4rem !important;
    }
}

@media (max-width: 480px) {
    .gmb-ticker-fixed {
        bottom: 12px !important;
        left: 10px !important;
    }
    .gmb-ticker-fixed a {
        padding: 8px 12px !important;
        font-size: 0.78rem !important;
        gap: 5px !important;
    }
    .help-btn {
        bottom: 12px !important;
        right: 10px !important;
        padding: 9px 14px !important;
        font-size: 0.82rem !important;
    }
}