/* ==========================================================================
   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 (Ordinateurs et Tablettes) */
    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 (S'ADAPTE À TOUS LES ÉCRANS)
   -------------------------------------------------------------------------- */
.pac-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    
    /* 📱 PAR DÉFAUT (Smartphones < 640px) : On pousse à 85% pour centrer l'artisan */
    object-position: 60% center; 
}

/* 📋 MULTI-ÉCRANS : TABLETTES (iPad Mini, Air, Pro, Surface...) */
@media (min-width: 641px) and (max-width: 1024px) {
    .pac-hero-img {
        /* On passe en plein écran fluide et on cadre à 75% pour équilibrer l'artisan et la PAC */
        object-position: 60% center !important;
    }
}

/* 💻 MULTI-ÉCRANS : ORDINATEURS (> 1024px) */
@media (min-width: 1025px) {
    .pac-hero-img {
        /* Ton réglage d'ordinateur d'origine */
        object-position: right 15%; 
    }
}

/* --------------------------------------------------------------------------
   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.6);
    border: 1px solid #cbd5e1;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.pac-hero-title {
    color: #000000;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.3;
    margin: 5px 0;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.pac-hero-subtitle {
    color: #0062ff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(98, 30, 30, 0.8);
}

.pac-hero-target {
    color: #ff0000;
    font-size: 25px;
    font-weight: 600;
}

.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.15);
    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 {
        /* Hauteur compacte uniquement pour les téléphones, les tablettes l'ignorent */
        height: 65vh !important; 
        aspect-ratio: auto !important;
        max-height: none !important;
    }

    .pac-hero-content {
        gap: 10px !important;
    }

    .pac-hero-title {
        font-size: 18px !important;
        line-height: 1.3 !important;
    }

    .pac-hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 260px;
        gap: 8px !important;
    }

    .btn-pac {
        width: 100%;
        text-align: center;
        padding: 10px 15px !important;
        font-size: 13px !important;
    }
}
/* ==========================================================================
   ZONE DE TEXTE D'INTRODUCTION (TEXTE DE BIENVENUE)
   ========================================================================== */
.pac-content-container {
    width: 100%;
    max-width: 1200px;
    margin: 50px auto 30px auto; /* Centre le bloc et gère les espaces haut/bas */
    padding: 0 20px;
    box-sizing: border-box;
}

.pac-intro {
    text-align: center; /* Centre les textes horizontalement */
    max-width: 800px;  /* Évite que les lignes de texte soient trop longues à lire */
    margin: 0 auto;    /* Centre la section elle-même */
}

.pac-intro h1 {
    font-size: 32px;
    font-weight: 800;
    color: #006097; /* Reprend le bleu canard profond de tes boutons */
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.pac-intro p {
    font-size: 16px;
    line-height: 1.6;
    color: #475569; /* Un gris doux et lisible, identique à ton ancienne maquette */
}

/* 📱 Ajustement pour les petits écrans mobiles */
@media (max-width: 768px) {
    .pac-content-container {
        margin: 35px auto 15px auto;
    }
    
    .pac-intro h1 {
        font-size: 24px; /* Diminue le titre sur mobile pour éviter qu'il prenne trop de place */
    }
    
    .pac-intro p {
        font-size: 15px;
    }
}
/* ==========================================================================
   DESIGN DES SECTIONS PRINCIPALES (INSTALLATION & DÉPANNAGE)
   ========================================================================== */
.pac-service-section {
    padding: 40px 20px 70px 20px; /* ↕️ Réduit l'espace haut à 40px et garde 70px en bas */
    background-color: #ffffff;
    box-sizing: border-box;
}

/* Fond gris très clair pour faire ressortir visuellement la section dépannage */
.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;
}

/* Stylisation moderne des visuels */
.pac-service-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

/* 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: #64748b;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Listes à puces soignées */
.pac-bullet-points {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.pac-bullet-points li {
    position: relative;
    padding-left: 26px;
    font-size: 15px;
    color: #334155;
    margin-bottom: 12px;
    font-weight: 500;
}

.pac-bullet-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #006097;
    font-weight: 700;
}

/* Bouton d'action principal */
.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;
}

.btn-service-action:hover {
    background-color: #004c77;
    transform: translateY(-2px);
}

/* Encadré d'appel téléphonique d'urgence */
.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.02);
    display: inline-block;
}

.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 (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; /* ⏱ Retarde le départ de l'animation de 200ms */
}

/* 2. Entretien & Dépannage (Droite) */
#entretien .pac-service-image,
#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; /* ⏱ Retarde le départ de l'animation de 200ms */
}

/* 3. État final */
.pac-service-image.visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
}
/* ==========================================================================
   SECTION EXPLICATIVE : FONCTIONNEMENT DE LA PAC
   ========================================================================== */
.pac-how-it-works-section {
    padding: 80px 20px;
    background-color: #ffffff; /* Fond blanc net pour contraster avec la section grise précédente */
    width: 100%;
    box-sizing: border-box;
}

.pac-how-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row; /* Aligne l'image à gauche et le texte à droite */
    align-items: center;
    gap: 60px; /* Grand espace aéré entre l'image et le texte */
}

/* Style du texte explicatif */
.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 */
.badge-blue {
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

/* Structure de la liste à étapes */
.pac-steps-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Écart régulier entre les étapes */
}

.pac-steps-list li {
    position: relative;
    padding-left: 24px;
    color: #334155;
    font-size: 15px;
    line-height: 1.5;
}

/* Petites flèches personnalisées pour la liste */
.pac-steps-list li::before {
    content: "›";
    position: absolute;
    left: 0;
    top: -2px;
    color: #0369a1; /* Couleur bleue assortie au badge */
    font-size: 22px;
    font-weight: bold;
}

/* Style de l'image technique */
.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 pour correspondre à ton design */
    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;
}

/* Quand le JavaScript ou l'observateur ajoute la classe .visible */
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- GESTION UNIQUE DU DOUBLE AFFICHAGE BUR/MOB ---- */
.pac-mobile-only {
    display: none !important; /* Masqué par défaut sur ordinateur */
}

.pac-desktop-only {
    display: flex !important; /* Affiché sur ordinateur */
}


/* ==========================================================================
   RESPONSIVE : ADAPTATION RESTRUCTURÉE POUR ÉCRANS MOBILES
   ========================================================================== */
@media (max-width: 992px) {
    /* 🎯 ON INVERSE LA VISIBILITÉ DES IMAGES */
    .pac-desktop-only {
        display: none !important; /* On cache l'image de gauche du PC */
    }
    
    .pac-mobile-only {
        display: flex !important; /* On affiche l'image imbriquée au bon endroit */
        width: 100%;
        justify-content: center;
        margin: 20px 0; /* Ajoute un espace propre au-dessus/en-dessous de l'image */
    }

    .pac-how-container {
        flex-direction: column; /* Aligne tout verticalement de haut en bas */
        gap: 20px;
    }
    
    .pac-how-text {
        /* Plus besoin du display: flex ici car le HTML suit l'ordre naturel */
        display: block; 
        text-align: center;
    }
    
    .pac-how-text h2 {
        font-size: 28px;
    }
    
    .pac-steps-list {
        text-align: left; /* On garde la liste alignée à gauche pour la lisibilité */
        margin-top: 20px;
        display: inline-block; /* Aligne proprement le bloc de la liste au centre */
    }
}

/* ==========================================================================
   SECTION ENCADRÉ BLEU DEVIS / CONSEIL
   ========================================================================== */
.pac-cta-section {
    padding: 40px 0;
    background-color: #ffffff;
    width: 100%;
}

.pac-cta-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #541028; /* Bleu nuit de l'encadré */
    border-radius: 24px;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Partie texte à gauche */
.pac-cta-content {
    flex: 1.2;
    color: #ffffff;
}

/* 🎯 LIGNE MULTICOLORE HARMONISÉE (STYLE FIL CONDUCTEUR) */
.pac-cta-line-color {
    width: 120px;               /* Largeur de la ligne */
    height: 6px;                /* Épaisseur de la ligne */
    margin: 0 0 25px 0;         /* Alignée à gauche avec espace sous le titre sur PC */
    border-radius: 10px;        /* Arrondit les deux extrémités de la ligne */
    
    /* Dégradé fluide mélangeant tes 5 couleurs harmonisées de gauche à droite */
    background: linear-gradient(
        to right,
        #0263ff 0%,   /* Bleu JD Confort */
        #16a34a 25%,  /* Vert JD Confort */
        #0f2c59 50%,  /* Bleu Marine Foncé */
        #ea5a0c 75%,  /* Orange Urgence */
        #dc2626 100%  /* Rouge */
    );
}

.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: #f5f6fa;
    margin-bottom: 35px;
    max-width: 550px;
}

/* Boutons et Téléphone */
.pac-cta-buttons {
    display: flex;
    align-items: flex-start; /* 🎯 Aligne le haut des éléments pour un calage parfait */
    gap: 20px;
}

.btn-cta-primary {
    background-color: #ffffff;
    color: #102454;
    height: 48px;               /* 🎯 Hauteur fixe identique au bouton secondaire */
    display: inline-flex;       /* Permet de centrer le texte verticalement */
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    box-sizing: border-box;     /* Évite les surprises de calcul de taille */
    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;               /* 🎯 Même hauteur fixe */
    display: inline-flex;       /* Permet de centrer le texte verticalement */
    align-items: center;
    justify-content: center;
    padding: 0 26px;            /* Légèrement réduit pour compenser la bordure de 2px */
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 0.5px;
    box-sizing: border-box;     /* Indispensable pour inclure la bordure dans les 48px */
}

.pac-cta-availability {
    font-size: 11px;
    color: #dcdde1;
}

/* 🎯 Conteneur du Logo Blanc à droite */
.pac-cta-logo-holder {
    flex: 0.8;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Nouveau wrapper pour gérer la superposition */
.pac-logo-animated-wrapper {
    position: relative;
    width: 100%;
    max-width: 260px; /* Ajuste la taille globale du logo ici si besoin */
    display: inline-block;
}

/* Les lettres JD (image de fond) */
.pac-logo-base {
    display: block;
    width: 100%;
    height: auto;
}

/* L'hélice rouge animée */
.pac-logo-helice {
    position: absolute;
    /* Positionnement au cœur du "D" */
    top: 48%;
    left: 68%; 
    width: 29%; /* Ajuste ce % si l'hélice déborde ou est trop petite par rapport au D */
    
    /* Centrage parfait de l'axe de l'hélice */
    transform: translate(-50%, -50%);
    transform-origin: center center;
    
    /* Animation fluide et infinie (6 secondes par tour) */
    animation: pacSpinHelice 2s linear infinite;
}

/* Définition de la rotation CSS */
@keyframes pacSpinHelice {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.pac-cta-logo-holder img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* ==========================================================================
   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;
    }

    /* 🎯 On force le trait dégradé à se centrer sur mobile */
    .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; /* 🎯 Recentrage sur mobile */
        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 (SOUS LE CTA)
   ========================================================================== */
.pac-trust-bar {
    background-color: #f1f7fa; /* Fond bleu très clair comme sur la maquette */
    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;
}

/* Redimensionnement propre de ton image de téléphone */
.pac-trust-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.pac-trust-item span {
    font-size: 15px;
    font-weight: 700;
    color: #102454; /* Même bleu nuit pour rester harmonieux */
}

/* ==========================================================================
   RESPONSIVE MOBILE POUR LE BANDEAU DE CONFIANCE
   ========================================================================== */
@media (max-width: 992px) {
    .pac-trust-container {
        flex-direction: column;
        align-items: flex-start; /* Aligné à gauche sur mobile pour une lecture propre */
        gap: 20px;
        padding: 25px 40px;
    }
    
    .pac-trust-item {
        width: 100%;
    }
    
    .pac-trust-item span {
        font-size: 14px;
    }
}
/* ==========================================================================
   FOOTER MINIMALISTE FULL WIDTH
   ========================================================================== */
/* On s'assure que toute la page s'étire correctement */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Le main prend tout l'espace restant pour pousser le footer vers le bas */
main {
    flex: 1;
}

.pac-minimal-footer {
    background-color: #0b0b0b; /* Fond noir profond */
    border-top: 1px solid #222222;
    padding: 30px 0;
    width: 100%;               /* Force la pleine largeur */
    margin-top: auto;          /* Sécurité bonus pour le coller en bas si la page est courte */
    text-align: center;
}

.pac-footer-content {
    max-width: 1200px;         /* Le texte reste aligné sur la grille du site */
    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 : ADAPTATION POUR ÉCRANS MOBILES (CORRIGÉ)
   ========================================================================== */
@media (max-width: 992px) {
    .pac-service-section {
        padding: 30px 15px !important; /* Réduit l'espace haut/bas de chaque section sur mobile */
    }

    .pac-service-container {
        grid-template-columns: 1fr;
        gap: 30px; /* Réduit l'espace vide entre l'image et le texte */
    }
    
    /* 🎯 INVERSION : Force l'image à passer AU-DESSUS du texte pour l'entretien et le dépannage */
    #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; /* Rapproche le bouton de la liste */
    }
}