/*
Theme Name: MLB Plomberie Child
Template: mlb-plomberie
Author: web6fast.fr
Description: Thème enfant pour MLB Plomberie — Version finale responsive.
Version: 1.3
*/

/* ==========================================================================
   1. POLICES & VARIABLES DE COULEURS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Barlow:wght@400;500;600;700&display=swap');

:root {
    --bleu-mlb: #004AAD;
    --bleu-azur: #0262BA;
    --bleu-nuit: #0B1F3A;
    --gris-ardoise: #1E2B3C;
    --gris-clair: #EEF3FA;
    --blanc: #FFFFFF;
    --corail-urgence: #C0392B; 
    --corail-bg: #FDECEA;
    --corail-border: #F5C6BE;
}

/* ==========================================================================
   2. BASE & RÉINITIALISATION
   ========================================================================== */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    font-family: 'Barlow', sans-serif;
    background-color: var(--blanc);
    color: var(--gris-ardoise);
    font-size: 16px;
    line-height: 1.6;
}

::selection {
    background: var(--bleu-mlb);
    color: var(--blanc);
}

a {
    color: var(--bleu-azur);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--bleu-mlb);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   3. TYPOGRAPHIE
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--bleu-nuit);
    margin-top: 0;
}

h1 { font-size: 52px; line-height: 1.08; }
h2 { font-size: 44px; letter-spacing: 0.005em; }

p {
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    color: var(--gris-ardoise);
    line-height: 1.7;
}

/* ==========================================================================
   4. COMPOSANTS & BOUTONS (BASE DESKTOP)
   ========================================================================== */
.btn {
    display: inline-block;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 28px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.btn-primary {
    background: var(--blanc);
    color: var(--bleu-mlb) !important;
    font-weight: 800;
}

.btn-primary:hover {
    background: var(--gris-clair);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--blanc) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-emergency {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--corail-urgence) !important;
    background: var(--corail-bg);
    border: 1px solid var(--corail-border);
    border-radius: 999px;
    padding: 10px 16px;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-quote {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--blanc) !important;
    background: var(--bleu-mlb);
    border-radius: 10px;
    padding: 11px 20px;
    text-decoration: none;
    white-space: nowrap;
}

/* ==========================================================================
   5. HEADER & NAVIGATION DESKTOP
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: var(--blanc);
    border-bottom: 1px solid #DCE4F0;
}

.header-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-branding a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.main-navigation a {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--bleu-nuit);
    text-decoration: none;
}

.header-actions-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-burger-btn, .mobile-quote-item, .btn-emergency-mobile-text {
    display: none;
}

/* ==========================================================================
   6. HERO SECTION DESKTOP (2 COLONNES)
   ========================================================================== */
.hero-section {
    background: var(--bleu-mlb);
    color: var(--blanc);
    padding: 60px 24px;
}

.hero-container {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.hero-content {
    flex: 1.2;
}

.hero-image-wrapper {
    flex: 0.8;
    display: block;
}

.hero-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 16px 32px rgba(11, 31, 58, 0.25);
    display: block;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.badge-urgency {
    background: var(--corail-bg);
    color: var(--corail-urgence) !important;
    border: 1px solid var(--corail-border);
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 999px;
}

.badge-location {
    background: rgba(255, 255, 255, 0.15);
    color: var(--blanc);
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 999px;
}

.hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 44px;
    text-transform: uppercase;
    line-height: 1.05;
    margin: 0 0 20px;
    color: var(--blanc);
}

.hero-subtitle {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #D7E6FA;
    margin: 0 0 28px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-actions a {
    padding: 14px 28px;
    border-radius: 10px;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    text-decoration: none;
}

/* ==========================================================================
   7. MEDIA QUERIES (ADAPTATION MOBILE & TABLETTE <= 992PX)
   ========================================================================== */
@media (max-width: 992px) {
    
    /* Header Mobile & Burger */
    .mobile-burger-btn {
        display: flex;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--blanc);
        flex-direction: column;
        padding: 24px;
        box-shadow: 0 12px 24px rgba(11, 31, 58, 0.12);
        border-bottom: 2px solid var(--bleu-mlb);
        box-sizing: border-box;
    }

    .main-navigation.active {
        display: flex;
    }

    .main-navigation ul {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .btn-quote-desktop {
        display: none;
    }

    .mobile-quote-item {
        display: block;
        margin-top: 8px;
    }

    .mobile-quote-btn {
        display: block;
        text-align: center;
        background: var(--bleu-mlb);
        color: var(--blanc) !important;
        padding: 12px !important;
        border-radius: 10px;
        font-weight: 700 !important;
    }

    .mobile-burger-btn.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
    .mobile-burger-btn.open span:nth-child(2) { opacity: 0; }
    .mobile-burger-btn.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

    /* Masquage strict de l'image sur Mobile */
    .hero-image-wrapper, .hero-img {
        display: none !important;
    }

    /* Layout Hero Mobile 1 colonne */
    .hero-section {
        padding: 28px 16px 56px !important;
    }

    .hero-container {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .hero-badges {
        justify-content: center !important;
        margin-bottom: 14px !important;
    }

    .badge-urgency {
        display: none !important;
    }

    .hero-title {
        font-size: 26px !important;
        line-height: 1.15 !important;
        margin-bottom: 12px !important;
    }

    .hero-subtitle {
        font-size: 14px !important;
        line-height: 1.4 !important;
        margin-bottom: 20px !important;
    }

    .hero-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .hero-actions a {
        width: 100% !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 576px) {
    .header-wrapper {
        padding: 0 12px;
        min-height: 72px;
    }

    .btn-emergency-text {
        display: none;
    }

    .btn-emergency-mobile-text {
        display: inline;
    }
}

/* ==========================================================================
   AMÉLIORATION DU CONTRASTE ET DE LA LISIBILITÉ (TOUTES LES PAGES)
   ========================================================================== */
:root {
    /* Nouvelle couleur plus sombre pour le texte courant */
    --gris-ardoise: #1E2B3C; 
}

/* Application globale sur tous les textes de paragraphe, listes et corps */
body, 
p, 
li, 
td, 
label, 
span {
    color: var(--gris-ardoise) !important;
    font-weight: 500; /* Épaissit légèrement la police pour une meilleure lecture */
}

p {
    line-height: 1.7;
    font-size: 16px;
}
/* ==========================================================================
   CORRECTION DES BOUTONS SUR FOND BLANC
   ========================================================================== */

/* Boutons par défaut (Sections blanches / standard) */
.btn-primary,
a.btn-primary,
.cta-block .btn-primary {
    background: #004AAD !important;
    color: #FFFFFF !important;
    padding: 14px 28px !important;
    border-radius: 10px !important;
    font-family: 'Barlow', sans-serif !important;
    font-weight: 700 !important;
    display: inline-block !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 74, 173, 0.2) !important;
}

.btn-primary:hover,
a.btn-primary:hover {
    background: #0B1F3A !important;
    color: #FFFFFF !important;
}

.btn-secondary,
a.btn-secondary,
.cta-block .btn-secondary {
    background: #EEF3FA !important;
    color: #004AAD !important;
    border: 1px solid #DCE4F0 !important;
    padding: 14px 28px !important;
    border-radius: 10px !important;
    font-family: 'Barlow', sans-serif !important;
    font-weight: 700 !important;
    display: inline-block !important;
    text-decoration: none !important;
}

.btn-secondary:hover,
a.btn-secondary:hover {
    background: #DCE4F0 !important;
    color: #0B1F3A !important;
}

/* Conservation des boutons spécifiques au HERO (fond bleu) */
.hero-section .btn-primary {
    background: #FFFFFF !important;
    color: #004AAD !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.hero-section .btn-secondary {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}
/* ==========================================================================
   STYLE RÉASSURANCE ET IMAGE MOBILE TEMPLATES
   ========================================================================== */

/* Structure Réassurance Desktop */
.reassurance-bar {
    max-width: 1180px;
    margin: -36px auto 0;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(11, 31, 58, 0.14);
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.reassurance-item {
    padding: 24px;
    text-align: center;
    border-right: 1px solid #EEF3FA;
}

.reassurance-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    color: #0B1F3A;
}

.reassurance-sub {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    color: #1E2B3C;
    font-weight: 500;
}

/* Image sous réassurance : Masquée sur Desktop */
.mobile-section-image {
    display: none;
}

/* Adaptation Mobile & Tablette <= 768px */
@media (max-width: 768px) {
    
    /* Passage de la réassurance en grille 2x2 propre */
    .reassurance-bar {
        grid-template-columns: repeat(2, 1fr) !important;
        margin: 20px 16px 0 !important;
        border-radius: 12px !important;
    }

    .reassurance-item {
        padding: 16px 10px !important;
        border-right: 1px solid #EEF3FA !important;
        border-bottom: 1px solid #EEF3FA !important;
    }

    .reassurance-item:nth-child(2n) {
        border-right: none !important;
    }

    .reassurance-title {
        font-size: 14px !important;
    }

    .reassurance-sub {
        font-size: 12px !important;
    }

    /* Affichage de l'image sous la réassurance sur mobile */
    .mobile-section-image {
        display: block !important;
        padding: 24px 16px 0 !important;
    }

    .mobile-img-show {
        width: 100% !important;
        height: 220px !important;
        object-fit: cover !important;
        border-radius: 16px !important;
        box-shadow: 0 8px 20px rgba(11, 31, 58, 0.12) !important;
    }
}
/* ==========================================================================
   CORRECTION LISIBILITÉ DU FOOTER (FOND FONCÉ)
   ========================================================================== */
.site-footer,
.site-footer p,
.site-footer li,
.site-footer span,
.site-footer div {
    color: #D7E6FA !important;
}

.site-footer h3,
.site-footer strong,
.site-footer a {
    color: #FFFFFF !important;
}

.site-footer a:hover {
    color: #004AAD !important;
}