/* ============================================
   SWIPER.JS CUSTOM STYLES
   Styles spécifiques pour Swiper
   ============================================ */

/* Container Swiper */
.helloleads-swiper {
    width: 100%;
    height: 100vh;
}

.swiper-wrapper {
    /* Swiper gère la position */
}

.swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* Laisser Swiper gérer la navigation */
}

/* ============================================
   SLIDE CONTACT - Hauteur auto + Scroll interne (DESKTOP)
   ============================================ */
.swiper-slide[data-anchor="contact"] {
    min-height: 100vh !important; /* Minimum hauteur écran */
    height: auto !important; /* S'adapte au contenu */
    overflow-y: auto !important; /* Active le scroll interne */
    overflow-x: hidden !important; /* Pas de scroll horizontal */
    -webkit-overflow-scrolling: touch; /* Scroll fluide iOS */
}

/* Le contenu peut dépasser */
.swiper-slide[data-anchor="contact"] .section-content {
    height: auto !important;
    min-height: 100vh !important; /* Garantit au moins 100vh */
    padding-bottom: 140px !important; /* Espace pour le footer */
}
/* Pagination Swiper (style points à droite) */
.swiper-pagination {
    right: 20px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: auto !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9998;
}

.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.4) !important;
    opacity: 1 !important;
    border: 2px solid rgba(255, 255, 255, 0.6);
    margin: 0 !important;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.swiper-pagination-bullet-active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    width: 14px !important;
    height: 14px !important;
    box-shadow: 0 0 20px rgba(0, 217, 163, 0.5);
}

/* Tooltips pour la pagination */
.swiper-pagination-bullet[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

.swiper-pagination-bullet[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(-4px);
}
/* ============================================================
   MOBILE : UNIFORMISATION SERVICES & CONTACT
   Pour que le script JS de calcul de scroll fonctionne
   ============================================================ */
@media (max-width: 768px) {
    /* 1. Le conteneur (la slide) doit être la zone de scroll */
    .swiper-slide[data-anchor="services"],
    .swiper-slide[data-anchor="contact"] {
        display: block !important; /* Important pour le calcul de hauteur */
        overflow-y: auto !important; /* Active la barre de défilement */
        overflow-x: hidden !important;
        height: 100vh !important;
        
        /* Permet au JS de capter les événements sans délai */
        touch-action: pan-y !important; 
        -webkit-overflow-scrolling: touch;
    }

    /* 2. Le contenu DOIT dépasser pour créer du scroll */
    .swiper-slide[data-anchor="services"] .section-content,
    .swiper-slide[data-anchor="contact"] .section-content {
        height: auto !important;
        /* Force un min-height > 100vh pour garantir que le scroll existe 
           même s'il y a peu de contenu. 1px suffit pour activer la logique JS. */
        min-height: calc(100vh + 2px) !important; 
        
        /* Marge pour ne pas être coupé en bas */
        padding-bottom: 120px !important; 
        padding-top: 100px !important; /* Espace haut pour Contact */
    }
}

/* ============================================
   CORRECTIF SCROLL IMMÉDIAT - CONTACT (MOBILE)
   ============================================ */
@media (max-width: 768px) {
    /* 1. Cibler la slide contact */
    .swiper-slide[data-anchor="contact"] {
        /* MAGIE : Dit au navigateur de scroller verticalement SANS attendre Swiper */
        touch-action: pan-y !important; 
        
        /* Assure le scroll natif */
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain; /* Empêche de "tirer" toute la page */
    }

    /* 2. S'assurer que le contenu dépasse pour activer le scroll */
    .swiper-slide[data-anchor="contact"] .section-content {
        height: auto !important;
        min-height: 101vh !important; /* 101% force le navigateur à voir du scroll */
        padding-bottom: 120px !important; /* Espace pour le bas */
        display: block !important; /* Évite les bugs flexbox sur le scroll */
    }
}

























/* ============================================================
   CONTRASTE PAGINATION ULTIME (Via body.hl-light-bullets)
   Activé par JS sur slides 2, 4, 6
   ============================================================ */

/* 1. Cas : Slides Blanches (Body a la classe) -> Bullets FONCÉS */
body.hl-light-bullets {
    /* Surcharge des variables CSS Swiper (Méthode moderne) */
    --swiper-pagination-bullet-inactive-color: #000000 !important;
    --swiper-pagination-bullet-inactive-opacity: 0.6 !important;
}

/* Surcharge directe (Fallback méthode brute) */
body.hl-light-bullets .swiper-pagination-bullet {
    background-color: #000000 !important; /* Noir pur */
    opacity: 0.6 !important;
}

/* On s'assure que le bullet ACTIF reste Vert (ou votre couleur) */
body.hl-light-bullets .swiper-pagination-bullet-active {
    background-color: var(--primary, #00d084) !important;
    opacity: 1 !important;
    --swiper-pagination-bullet-opacity: 1 !important;
}

/* 2. Cas : Slides Foncées (Par défaut) -> Bullets CLAIRS */
/* On force le blanc par défaut pour être sûr que rien d'autre ne gêne */
body:not(.hl-light-bullets) {
    --swiper-pagination-bullet-inactive-color: #FFFFFF !important;
    --swiper-pagination-bullet-inactive-opacity: 0.5 !important;
}

body:not(.hl-light-bullets) .swiper-pagination-bullet:not(.swiper-pagination-bullet-active) {
    background-color: #FFFFFF !important;
    opacity: 0.5 !important;
}

























/* ============================================
   PARTICULES - STACKING CONTEXT CORRECT
   Canvas ENTRE background (0) et contenu (5+)
   ============================================ */

/* Canvas des particules - Entre background et contenu */
#particles-layer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none !important;
    z-index: 1 !important;  /* ENTRE background (0) et contenu (5) */
}

/* Container Swiper - Créer un contexte de stacking */
.helloleads-swiper {
    position: relative;
    z-index: auto;  /* Permet au contenu interne d'avoir son propre z-index */
}

/* Contenu des slides - AU-DESSUS des particules */
.swiper-slide .section-content {
    position: relative;
    z-index: 5;  /* AU-DESSUS du canvas (z-index: 1) */
}

/* S'assurer que tous les éléments de contenu sont au-dessus */
.swiper-slide h1,
.swiper-slide h2,
.swiper-slide h3,
.swiper-slide p,
.swiper-slide button,
.swiper-slide .service-card,
.swiper-slide .portfolio-card,
.swiper-slide .process-step,
.swiper-slide .google-review-card {
    position: relative;
    z-index: 5;
}


/* ============================================
   OVERLAY ORIENTATION MOBILE (LANDSCAPE BLOCKER)
   Affichage uniquement en mode paysage sur mobile
   ============================================ */

/* Overlay principal - Masqué par défaut */
.orientation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 10000; /* Au-dessus de TOUT */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* État visible */
.orientation-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Contenu de l'overlay */
.orientation-content {
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 400px;
}

/* Icône de téléphone en portrait */
.orientation-icon {
    margin-bottom: 1.5rem;
    animation: rotatePhone 2s ease-in-out infinite;
}

/* Animation de rotation du téléphone */
@keyframes rotatePhone {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(15deg);
    }
}

/* Titre */
.orientation-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

/* Texte explicatif */
.orientation-text {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Bloquer le scroll du body quand overlay visible */
body.orientation-locked {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/* Responsive - Petits écrans */
@media (max-height: 500px) {
    .orientation-content {
        padding: 1rem;
    }
    
    .orientation-icon svg {
        width: 60px;
        height: 60px;
    }
    
    .orientation-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .orientation-text {
        font-size: 0.9rem;
    }
}



















/* ============================================
   FOOTER FORCE (Fixe en bas de la section Contact)
   ============================================ */
.swiper-slide[data-anchor="contact"] .modern-footer {
    position: relative !important; /* 🔧 Au lieu de absolute */
    bottom: auto !important;
    margin-top: 80px !important; /* 🔧 Maintenant margin-top fonctionne */
    padding: 20px 0 40px 0 !important;
    width: 100%;
    text-align: center;
}

/* Forcer la couleur du texte en BLEU FONCÉ pour être visible sur fond blanc */
.modern-footer .footer-copyright,
.modern-footer a,
.modern-footer .separator {
    color: #1e3a5f !important; /* Bleu nuit foncé */
    font-size: 12px !important;
    text-decoration: none !important;
    opacity: 0.8 !important;
}

.modern-footer .footer-links {
    display: flex !important;
    gap: 15px !important;
    margin-top: 5px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

.modern-footer a:hover {
    color: #00D9A3 !important; /* Vert au survol */
    text-decoration: underline !important;
    opacity: 1 !important;
}

/* RESPONSIVE MOBILE : On remonte le footer pour qu'il ne soit pas caché par la barre du navigateur */
@media (max-width: 768px) {
    .swiper-slide[data-anchor="contact"] .modern-footer {
        position: relative !important; /* Remis dans le flux */
        bottom: auto !important;
        margin-top: 30px !important;
        padding-bottom: 80px !important; /* Espace pour le scroll */
    }
    
    .modern-footer .footer-links {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .modern-footer .separator {
        display: none !important;
    }
}

/* ============================================
   ESPACE ENTRE FORMULAIRE ET FOOTER
   ============================================ */

/* Ajouter de la marge en bas du formulaire */
.swiper-slide[data-anchor="contact"] .contact-form {
    margin-bottom: 40px !important; /* 🔧 ESPACE SOUS LE FORMULAIRE */
}

/* Ou alternative : ajouter l'espace au container du formulaire */
.swiper-slide[data-anchor="contact"] .contact-grid {
    margin-bottom: 40px !important; /* 🔧 ESPACE SOUS LA GRILLE CONTACT */
}

/* Mobile */
@media (max-width: 768px) {
    .swiper-slide[data-anchor="contact"] .contact-form {
        margin-bottom: 20px !important;
    }
    
    .swiper-slide[data-anchor="contact"] .contact-grid {
        margin-bottom: 20px !important;
    }
}
/* ============================================
   MARGE INTERNE HAUT - Slide Contact (Desktop uniquement)
   ============================================ */

/* Desktop uniquement (pas sur mobile) */
@media (min-width: 769px) {
    .swiper-slide[data-anchor="contact"] .section-content {
        padding-top: 120px !important; /* 🔧 Espace au-dessus du contenu */
    }
}

/* Ajustement pour tablette si nécessaire */
@media (min-width: 769px) and (max-width: 1024px) {
    .swiper-slide[data-anchor="contact"] .section-content {
        padding-top: 100px !important;
    }
}
















/* ============================================
   FOOTER FORCE (Fixe en bas de la section Contact)
   ============================================ */
.swiper-slide[data-anchor="contact"] .modern-footer {
    position: absolute !important;
    bottom: 60px !important; /* 🔧 AUGMENTÉ de 20px à 60px pour créer l'espace */
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 0 !important;
    background: transparent !important;
}

/* Forcer la couleur du texte en BLEU FONCÉ pour être visible sur fond blanc */
.modern-footer .footer-copyright,
.modern-footer a,
.modern-footer .separator {
    color: #1e3a5f !important;
    font-size: 12px !important;
    text-decoration: none !important;
    opacity: 0.8 !important;
}

.modern-footer .footer-links {
    display: flex !important;
    gap: 15px !important;
    margin-top: 5px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

.modern-footer a:hover {
    color: #00D9A3 !important;
    text-decoration: underline !important;
    opacity: 1 !important;
}

/* ============================================
   FOOTER - Icônes réseaux sociaux
   ============================================ */
.footer-social {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    margin: 12px 0 8px 0 !important;
}

.social-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(30, 58, 95, 0.08) !important; /* Fond léger bleu */
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

/* 🔧 CORRECTION : Forcer les SVG à être visibles */
.social-icon svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #1e3a5f !important; /* 🔧 Couleur forcée : bleu foncé */
    fill: none !important; /* 🔧 Pas de remplissage */
    opacity: 0.8 !important;
    transition: stroke 0.3s ease !important;
}

/* 🔧 HOVER : Fond vert + Icône BLANCHE */
.social-icon:hover {
    background: #00D9A3 !important; /* Fond vert HelloLeads */
    transform: translateY(-2px) !important; /* Légère élévation */
    box-shadow: 0 4px 12px rgba(0, 217, 163, 0.3) !important;
}

.social-icon:hover svg {
    stroke: #ffffff !important; /* 🔧 Icône BLANCHE au hover */
    opacity: 1 !important; /* 🔧 100% visible */
}

/* RESPONSIVE MOBILE : On remonte le footer pour qu'il ne soit pas caché par la barre du navigateur */
@media (max-width: 768px) {
    .swiper-slide[data-anchor="contact"] .modern-footer {
        position: relative !important;
        bottom: auto !important;
        margin-top: 40px !important; /* 🔧 Marge top en mobile */
        padding-bottom: 80px !important;
    }
    
    .modern-footer .footer-links {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .modern-footer .separator {
        display: none !important;
    }
    
    /* Icônes sociales mobile */
    .footer-social {
        gap: 20px !important;
        margin: 16px 0 12px 0 !important;
    }
    
    .social-icon {
        width: 40px !important;
        height: 40px !important;
    }
    
    .social-icon svg {
        width: 22px !important;
        height: 22px !important;
    }
}









/* ============================================
   MASQUER LA SCROLLBAR - Slide Contact
   ============================================ */

/* Chrome, Safari, Edge, Opera */
.swiper-slide[data-anchor="contact"]::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Firefox */
.swiper-slide[data-anchor="contact"] {
    scrollbar-width: none !important; /* Firefox 64+ */
    -ms-overflow-style: none !important; /* IE et Edge ancien */
}

/* S'assurer que le scroll fonctionne toujours */
.swiper-slide[data-anchor="contact"] {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}