/* ==========================================================================
   STYLE COMPATIBLE POUR LA PAGE ACTIVE (TEXTE VERT + TRAIT VERT)
   ========================================================================== */
.nav-menu a.active {
    color: #16a34a !important; 
    border-bottom: 3px solid #16a34a !important; 
    padding-bottom: 4px !important; 
}

/* ==========================================================================
   BANNIÈRE HERO PLEIN ÉCRAN RESTRICT (ZÉRO VIDE BLANC)
   ========================================================================== */
.pac-hero-banner {
    margin-top: 62px;
    position: relative;
    width: 100%;
    height: calc(100vh - 62px); /* Plein écran par défaut */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   🎯 GESTION ET CADRAGE DE L'IMAGE HERO (ADAPTATION PLOMBERIE)
   -------------------------------------------------------------------------- */
.pac-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    
    /* 📱 PAR DÉFAUT (Smartphones) : Centrage pour garder l'aspect technique visible */
    object-position: center center; 
}

/* 📋 MULTI-ÉCRANS : TABLETTES */
@media (min-width: 641px) and (max-width: 1024px) {
    .pac-hero-img {
        object-position: center center !important;
    }
}

/* 💻 MULTI-ÉCRANS : ORDINATEURS (> 1024px) */
@media (min-width: 1025px) {
    .pac-hero-img {
        /* Cadrage optimisé pour les grands écrans */
        object-position: center center; 
    }
}

/* --------------------------------------------------------------------------
   CONTENU TEXTES ET BOUTONS
   -------------------------------------------------------------------------- */
.pac-hero-content {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pac-badge {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #cbd5e1;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.pac-hero-title {
    color: #01fbff;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 5px 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.pac-hero-subtitle {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.pac-hero-target {
    color: #000000;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgb(255, 255, 255);
}

.pac-hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.btn-pac {
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-pac:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

.btn-blue-pac {
    background-color: #006097;
}

.btn-cyan-pac {
    background-color: #00a2cc;
}

/* ==========================================================================
   📱 CONFIGURATION STRICTE EXCLUSIVE AUX SMARTPHONES
   ========================================================================== */
@media (max-width: 640px) {
    .pac-hero-banner {
        height: 65vh !important; 
    }

    .pac-hero-title {
        font-size: 20px !important;
    }
    
    .pac-hero-subtitle {
        font-size: 14px;
    }
    
    .pac-hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 260px;
        gap: 8px !important;
    }

    .btn-pac {
        width: 100%;
        padding: 12px 15px !important;
        font-size: 13px !important;
    }
}

/* ==========================================================================
   ZONE DE TEXTE D'INTRODUCTION (PAGE PLOMBERIE)
   ========================================================================== */
.pac-content-container {
    width: 100%;
    max-width: 1200px;
    margin: 50px auto 30px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.pac-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.pac-intro h1 {
    font-size: 32px;
    font-weight: 800;
    color: #006097; 
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.pac-intro p {
    font-size: 16px;
    line-height: 1.6;
    color: #475569;
}

/* 📱 Ajustement introduction mobile */
@media (max-width: 768px) {
    .pac-content-container {
        margin: 35px auto 15px auto;
    }
    .pac-intro h1 {
        font-size: 24px;
    }
    .pac-intro p {
        font-size: 15px;
    }
}

/* ==========================================================================
   DESIGN DES SECTIONS PRINCIPALES (INSTALLATION, RÉSEAUX & DÉPANNAGE)
   ========================================================================== */
.pac-service-section {
    padding: 40px 20px 70px 20px;
    background-color: #ffffff;
    box-sizing: border-box;
}

.pac-section-dark {
    background-color: #f8fafc;
}

.pac-service-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

/* Visuels de plomberie */
.pac-service-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   BADGES PROFESSIONNELS CONTEXTUELS
   ========================================================================== */
.pac-section-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: #f0fdf4;
    color: #16a34a; 
    font-size: 13px;
    font-weight: 700;
    border-radius: 30px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.pac-section-badge.badge-red {
    background-color: #fef2f2;
    color: #dc2626;
}

.pac-service-text h2 {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 15px 0;
}

.pac-section-lead {
    font-size: 18px;
    font-weight: 600;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 20px;
}

.pac-service-text p {
    font-size: 16px;
    color: #475569; /* Gris lisible */
    line-height: 1.7;
    margin-bottom: 25px;
}

/* ==========================================================================
   ÉLÉMENTS D'URGENCE ET ACTION
   ========================================================================== */
.btn-service-action {
    display: inline-block;
    background-color: #006097;
    color: #ffffff;
    text-decoration: none;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    transition: background-color 0.2s, transform 0.2s;
    
    /* Ajout de la marge pour décoller le bouton de la liste au-dessus */
    margin-top: 35px; 
}

.btn-service-action:hover {
    background-color: #004c77;
    transform: translateY(-2px);
}

.emergency-box {
    background-color: #ffffff;
    border-left: 4px solid #dc2626;
    padding: 15px 25px;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: inline-block;
    margin-top: 10px;
}

.emergency-title {
    font-size: 13px !important;
    font-weight: 700;
    color: #94a3b8 !important;
    margin: 0 0 4px 0 !important;
    text-transform: uppercase;
}

.emergency-phone {
    font-size: 22px;
    font-weight: 800;
    color: #dc2626;
    text-decoration: none;
}

/* ==========================================================================
   ANIMATIONS DE GLISSEMENT AU SCROLL (AVEC DÉLAI)
   ========================================================================== */
.pac-service-section {
    overflow-x: hidden;
}

/* 1. Installation (Depuis la Gauche) */
#installation .pac-service-image {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 0.2s;
}

/* 2. Dépannage (Depuis la Droite) */
#depannage .pac-service-image {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 0.2s;
}

/* 3. État final une fois visible */
.pac-service-image.visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* ==========================================================================
   SECTION EXPLICATIVE : FONCTIONNEMENT DU RÉSEAU PLOMBERIE
   ========================================================================== */
.pac-how-it-works-section {
    padding: 80px 20px;
    background-color: #ffffff;
    width: 100%;
    box-sizing: border-box;
}

.pac-how-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 60px;
}

/* Style du texte explicatif technique */
.pac-how-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.pac-how-text h2 {
    color: #0f172a;
    font-size: 36px;
    font-weight: 800;
    margin: 15px 0;
    line-height: 1.2;
}

.pac-how-text p {
    color: #475569;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Badge thématique bleu (Expertise technique) */
.badge-blue {
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

/* Structure de la liste à étapes du réseau sanitaire */
.pac-steps-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pac-steps-list li {
    position: relative;
    padding-left: 24px;
    color: #334155;
    font-size: 15px;
    line-height: 1.5;
}

/* Flèches personnalisées pour la liste */
.pac-steps-list li::before {
    content: "›";
    position: absolute;
    left: 0;
    top: -2px;
    color: #0369a1;
    font-size: 22px;
    font-weight: bold;
}

/* Style de l'image technique/schéma de climatisation */
.pac-how-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.pac-how-image img {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 16px; /* Coins arrondis modernes */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Ombre douce professionnelle */
}

/* ==========================================================================
   ANIMATIONS DE SCROLL / REVEAL (FONDU FLUIDE)
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- GESTION DU DOUBLE AFFICHAGE BUREAU / MOBILE ---- */
.pac-mobile-only {
    display: none !important;
}

.pac-desktop-only {
    display: flex !important;
}

/* ==========================================================================
   RESPONSIVE : ADAPTATION RESTRUCTURÉE POUR ÉCRANS MOBILES
   ========================================================================== */
@media (max-width: 992px) {
    .pac-desktop-only {
        display: none !important;
    }
    
    .pac-mobile-only {
        display: flex !important;
        width: 100%;
        justify-content: center;
        margin: 20px 0;
    }

    .pac-how-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .pac-how-text {
        display: block; 
        text-align: center;
    }
    
    .pac-how-text h2 {
        font-size: 28px;
    }
    
    .pac-steps-list {
        text-align: left;
        margin-top: 20px;
        display: inline-block;
    }
}

/* ==========================================================================
   SECTION ENCADRÉ DEVIS / CONSEIL (PAGE PLOMBERIE)
   ========================================================================== */
.pac-cta-section {
    padding: 40px 0;
    background-color: #ffffff;
    width: 100%;
}

.pac-cta-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #0f172a; /* Bleu nuit professionnel pour la plomberie */
    border-radius: 24px;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.pac-cta-content {
    flex: 1.2;
    color: #ffffff;
}

/* LIGNE MULTICOLORE */
.pac-cta-line-color {
    width: 120px;
    height: 6px;
    margin: 0 0 25px 0;
    border-radius: 10px;
    background: linear-gradient(
        to right,
        #0263ff 0%, #16a34a 25%, #0f2c59 50%, #ea5a0c 75%, #dc2626 100%
    );
}

.pac-cta-content h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.pac-cta-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 35px;
    max-width: 550px;
}

/* Boutons */
.pac-cta-buttons {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.btn-cta-primary {
    background-color: #ffffff;
    color: #0f172a;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.2s;
}

.btn-cta-primary:hover {
    background-color: #f1f2f6;
}

.pac-cta-phone-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.btn-cta-secondary {
    border: 2px solid #ffffff;
    color: #ffffff;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 26px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.pac-cta-availability {
    font-size: 11px;
    color: #dcdde1;
}

/* Visuel camionnette */
.pac-cta-logo-holder {
    flex: 0.8;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.pac-logo-animated-wrapper {
    position: relative;
    width: 100%;
    max-width: 390px;
    display: inline-block;
}

.pac-logo-base {
    display: block;
    width: 100%;
    height: auto;
}

/* ==========================================================================
   RESPONSIVE MOBILE POUR LE BLOCK CTA
   ========================================================================== */
@media (max-width: 992px) {
    .pac-cta-container {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
        margin: 0 15px;
    }

    .pac-cta-line-color {
        margin: 0 auto 25px auto;
    }

    .pac-cta-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .pac-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        width: 100%;
    }

    .btn-cta-primary, .btn-cta-secondary {
        width: 100%;
        max-width: 280px;
    }

    .pac-cta-logo-holder {
        width: 100%;
        max-width: 320px;
        padding: 20px;
    }
}

/* ==========================================================================
   BANDEAU DE RÉASSURANCE / CONFIANCE
   ========================================================================== */
.pac-trust-bar {
    background-color: #f1f7fa; 
    padding: 30px 0;
    width: 100%;
}

.pac-trust-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.pac-trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pac-trust-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.pac-trust-item span {
    font-size: 15px;
    font-weight: 700;
    color: #102454;
}

/* RESPONSIVE BANDEAU DE CONFIANCE */
@media (max-width: 992px) {
    .pac-trust-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 25px 40px;
    }
    
    .pac-trust-item {
        width: 100%;
    }
    
    .pac-trust-item span {
        font-size: 14px;
    }
}

/* ==========================================================================
   FOOTER MINIMALISTE
   ========================================================================== */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.pac-minimal-footer {
    background-color: #0b0b0b;
    border-top: 1px solid #222222;
    padding: 30px 0;
    width: 100%;
    margin-top: auto;
    text-align: center;
}

.pac-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.pac-footer-link {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}

.pac-footer-link:hover {
    opacity: 0.8;
}

.pac-minimal-footer p {
    color: #cccccc;
    font-size: 13px;
    margin: 0;
}

/* ==========================================================================
   RESPONSIVE GÉNÉRAL DES BLOCS (CORRIGÉ)
   ========================================================================== */
@media (max-width: 992px) {
    .pac-service-section {
        padding: 30px 15px !important;
    }

    .pac-service-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    #entretien .pac-service-container,
    #depannage .pac-service-container {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .pac-service-image img {
        height: 280px;
    }
    
    .pac-service-text h2 {
        font-size: 26px;
    }

    .pac-bullet-points {
        margin-bottom: 20px !important;
    }
}