/* ============================================
   HELLOLEADS - ENHANCED STYLES
   Fond bleu partout + Particules + Effet livre
   ============================================ */

/* Sections avec fond bleu gradient */
.dark-section {
    background: var(--gradient-hero) !important;
    color: var(--white);
}

/* Particules sur toutes les sections */
.particles {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 217, 163, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 58, 95, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(0, 217, 163, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
    animation: particles-float 20s ease-in-out infinite;
}

@keyframes particles-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* Effet "livre" - transition reveal */
#fp-viewing-services .section,
#fp-viewing-portfolio .section,
#fp-viewing-processus .section,
#fp-viewing-temoignages .section,
#fp-viewing-contact .section {
    transform-origin: top center;
}

/* Glass cards pour fond bleu */
.glass-card {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(0, 217, 163, 0.4) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 217, 163, 0.2) !important;
}

/* Titres sur fond bleu */
.light-title {
    color: var(--white) !important;
}

.dark-section h3,
.dark-section p {
    color: rgba(255, 255, 255, 0.9);
}

.dark-section .section-badge {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--primary);
}

/* Services sur fond bleu */
.dark-section .service-card.glass-card h3 {
    color: var(--white);
}

.dark-section .service-card.glass-card p {
    color: rgba(255, 255, 255, 0.8);
}

.dark-section .service-card.featured {
    background: rgba(0, 217, 163, 0.15) !important;
    border-color: var(--primary) !important;
}

.dark-section .service-icon {
    background: rgba(0, 217, 163, 0.15);
    color: var(--primary);
}

/* ============================================
   PORTFOLIO CAROUSEL
   ============================================ */

.portfolio-carousel {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    width: 100%;
    max-width: 100%;
    position: relative;
}

.portfolio-track-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.portfolio-track {
    display: flex;
    gap: var(--spacing-lg);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.portfolio-card {
    flex: 0 0 calc(33.333% - var(--spacing-lg) * 2 / 3);
    min-width: calc(33.333% - var(--spacing-lg) * 2 / 3);
    padding: 0;
    overflow: hidden;
    transition: all var(--transition);
}

.portfolio-card.clickable {
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-6px);
}

/* Boutons de navigation carrousel */
.carousel-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0, 217, 163, 0.3);
    border-color: var(--primary);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.carousel-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Indicateurs de pagination (dots) */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--spacing-lg);
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.carousel-dot:hover {
    border-color: var(--primary);
    background: rgba(0, 217, 163, 0.3);
}

.carousel-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.2);
}

.portfolio-image {
    width: 100%;
    height: 200px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.placeholder-img {
    color: rgba(255, 255, 255, 0.3);
}

.portfolio-info {
    padding: var(--spacing-lg);
}

.portfolio-info h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.portfolio-info p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   Anti-flash : on cache le contenu des sections
   non actives pour que l'animation d'entrée
   se fasse sans "preview" de la slide suivante.
   ============================================ */

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.portfolio-tags span {
    padding: 0.25rem 0.75rem;
    background: rgba(0, 217, 163, 0.2);
    border: 1px solid rgba(0, 217, 163, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    max-width: 100%;
}

.testimonial-card {
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

.stars {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.testimonial-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    justify-content: center;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--white);
    font-size: 1rem;
}

.author-name {
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
    text-align: left;
}

.author-title {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: left;
}

/* ============================================
   Process section sur fond bleu
   ============================================ */

.dark-section .process-step.glass-card h3 {
    color: var(--white);
}

.dark-section .process-step.glass-card p {
    color: rgba(255, 255, 255, 0.8);
}

.dark-section .process-cta.glass-card {
    background: rgba(0, 217, 163, 0.1) !important;
    border-color: rgba(0, 217, 163, 0.3) !important;
}

.dark-section .process-cta.glass-card h3 {
    color: var(--white);
}

/* ============================================
   Contact section sur fond bleu
   ============================================ */

.dark-section .contact-method.glass-card {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.dark-section .method-label {
    color: rgba(255, 255, 255, 0.6);
}

.dark-section .method-value {
    color: var(--white);
}

.dark-section .method-icon {
    background: rgba(0, 217, 163, 0.15);
    color: var(--primary);
}

.dark-section .contact-form.glass-card {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.dark-section .form-group input,
.dark-section .form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.dark-section .form-group input::placeholder,
.dark-section .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.dark-section .form-group input:focus,
.dark-section .form-group textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.dark-section .form-group label {
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
}

.dark-section .form-group input:not(:placeholder-shown) + label,
.dark-section .form-group textarea:not(:placeholder-shown) + label,
.dark-section .form-group input:focus + label,
.dark-section .form-group textarea:focus + label {
    color: var(--primary);
    background: var(--secondary-dark);
}

.dark-section .modern-footer {
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Boutons adaptés au fond bleu
   ============================================ */

.dark-section .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.dark-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
}

/* ============================================
   RESPONSIVE - REFONTE COMPLÈTE
   Compatible avec fullPage.js scrollOverflow
   ============================================ */

@media (max-width: 1024px) {
    /* Sur tablette: afficher 2 cartes */
    .portfolio-card {
        flex: 0 0 calc(50% - var(--spacing-lg) / 2);
        min-width: calc(50% - var(--spacing-lg) / 2);
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    /* Glass cards plus lisibles sur tablette */
    .glass-card {
        background: rgba(255, 255, 255, 0.1) !important;
    }
}

@media (max-width: 768px) {
    /* ========== PORTFOLIO MOBILE ========== */
    .portfolio-carousel {
        flex-direction: column;
        gap: var(--spacing-sm);
        padding: 0;
    }

    .portfolio-track-wrapper {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .portfolio-track-wrapper::-webkit-scrollbar {
        display: none;
    }

    .portfolio-track {
        gap: var(--spacing-md);
        padding: 0 var(--spacing-sm);
    }

    .portfolio-card {
        flex: 0 0 85%;
        min-width: 85%;
        scroll-snap-align: center;
    }

    .portfolio-image {
        height: 140px;
    }

    .portfolio-info {
        padding: var(--spacing-md);
    }

    .portfolio-info h3 {
        font-size: 0.9375rem;
        margin-bottom: 0.375rem;
    }

    .portfolio-info p {
        font-size: 0.75rem;
        margin-bottom: var(--spacing-sm);
    }

    .portfolio-tags {
        gap: 0.375rem;
    }

    .portfolio-tags span {
        font-size: 0.625rem;
        padding: 0.2rem 0.5rem;
    }

    /* Cacher boutons prev/next sur mobile */
    .carousel-prev,
    .carousel-next {
        display: none !important;
    }

    .carousel-dots {
        margin-top: var(--spacing-md);
        gap: 0.375rem;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }

    /* ========== TÉMOIGNAGES MOBILE ========== */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .testimonial-card {
        padding: var(--spacing-md);
    }

    .testimonial-text {
        font-size: 0.875rem;
        line-height: 1.5;
        margin-bottom: var(--spacing-md);
    }

    .stars {
        font-size: 1rem;
        margin-bottom: var(--spacing-sm);
    }

    .testimonial-author {
        gap: var(--spacing-sm);
    }

    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }

    .author-name {
        font-size: 0.875rem;
    }

    .author-title {
        font-size: 0.6875rem;
    }

    /* ========== GLASS CARDS MOBILE ========== */
    .glass-card {
        background: rgba(255, 255, 255, 0.12) !important;
        backdrop-filter: blur(8px);
        border-width: 1px !important;
    }

    .light-section .glass-card {
        background: rgba(255, 255, 255, 0.8) !important;
    }

    /* ========== PROCESSUS MOBILE ========== */
    .dark-section .process-step.glass-card,
    .light-section .process-step.glass-card {
        padding: var(--spacing-md);
    }

    .process-cta.glass-card {
        padding: var(--spacing-md);
    }

    .process-cta h3 {
        font-size: 1rem;
    }

    .process-cta .btn {
        width: 100%;
        justify-content: center;
    }

    /* ========== CONTACT MOBILE ========== */
    .dark-section .contact-method.glass-card,
    .light-section .contact-method.glass-card {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .dark-section .contact-form.glass-card,
    .light-section .contact-form.glass-card {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    /* Portfolio encore plus compact */
    .portfolio-card {
        flex: 0 0 90%;
        min-width: 90%;
    }

    .portfolio-image {
        height: 120px;
    }

    .portfolio-info {
        padding: var(--spacing-sm);
    }

    .portfolio-info h3 {
        font-size: 0.875rem;
    }

    .portfolio-info p {
        font-size: 0.6875rem;
    }

    /* Témoignages compact */
    .testimonial-card {
        padding: var(--spacing-sm);
    }

    .testimonial-text {
        font-size: 0.8125rem;
    }

    .author-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }

    /* Carousel dots plus petits */
    .carousel-dot {
        width: 6px;
        height: 6px;
    }
}

/* ============================================
   Effet de transition "livre" avec fullPage
   ============================================ */

/* Animation de la section qui part */
.fp-section {
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

.fp-section.fp-completely {
    transform: translateY(0);
}

/* Améliorer la visibilité des dots de navigation */
#fp-nav ul li a span {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

#fp-nav ul li a.active span {
    background: var(--primary) !important;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 217, 163, 0.5);
}

#fp-nav ul li .fp-tooltip {
    color: var(--white) !important;
    font-weight: 600;
}


/* =========================================================
   Masquage du contenu uniquement pour les slides jamais visitées
   (évite tout aperçu + supprime l'effet "fade-out" au changement de slide)
   
   IMPORTANT: Par défaut, tout est VISIBLE. On masque uniquement avec .not-visited
   Cela évite les problèmes si le JS ne s'exécute pas immédiatement
========================================================= */

/* Contenu visible par défaut */
.section .section-badge,
.section .section-title,
.section .service-card,
.section .portfolio-card,
.section .process-step,
.section .process-cta,
.section .testimonial-card,
.section .contact-method,
.section .contact-form {
    opacity: 1;
}

/* Masquage uniquement pour les slides non visitées */
.section.not-visited .section-badge,
.section.not-visited .section-title,
.section.not-visited .service-card,
.section.not-visited .portfolio-card,
.section.not-visited .process-step,
.section.not-visited .process-cta,
.section.not-visited .testimonial-card,
.section.not-visited .contact-method,
.section.not-visited .contact-form {
    opacity: 0 !important;
}

/* Assure qu'aucune transition CSS ne crée une sortie visuelle */
.section.not-visited .section-badge,
.section.not-visited .section-title,
.section.not-visited .service-card,
.section.not-visited .portfolio-card,
.section.not-visited .process-step,
.section.not-visited .process-cta,
.section.not-visited .testimonial-card,
.section.not-visited .contact-method,
.section.not-visited .contact-form {
    transition: none !important;
}

/* ============================================
   LIGHT SECTION - FOND CLAIR (Slides paires)
   ============================================ */

.light-section {
    background: linear-gradient(
        135deg,
        #FFFFFF 0%,
        #F8FFFE 30%,
        #F0FBF8 60%,
        #E8F9F4 100%
    ) !important;
    color: var(--gray-800);
}

/* Particules sur fond clair */
.light-section .particles {
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 217, 163, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 58, 95, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(0, 217, 163, 0.03) 0%, transparent 40%);
}

/* Glass cards pour fond clair */
.light-section .glass-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 217, 163, 0.15) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(30, 58, 95, 0.04) !important;
}

.light-section .glass-card:hover {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(0, 217, 163, 0.4) !important;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 0 30px rgba(0, 217, 163, 0.15) !important;
}

/* Titres sur fond clair */
.light-section .section-title {
    color: var(--secondary-dark) !important;
}

.light-section .light-title {
    color: var(--secondary-dark) !important;
    text-shadow: none;
}

.light-section h3 {
    color: var(--gray-900);
}

.light-section p {
    color: var(--gray-600);
}

/* Badge sur fond clair */
.light-section .section-badge {
    background: rgba(0, 217, 163, 0.1);
    border-color: rgba(0, 217, 163, 0.3);
    color: var(--primary-dark);
}

/* Service cards sur fond clair */
.light-section .service-card.glass-card h3 {
    color: var(--gray-900);
}

.light-section .service-card.glass-card p {
    color: var(--gray-600);
}

.light-section .service-card.featured {
    background: var(--gradient-hero) !important;
    border: none !important;
    color: var(--white);
}

.light-section .service-card.featured h3,
.light-section .service-card.featured p {
    color: var(--white);
}

.light-section .service-icon {
    background: rgba(0, 217, 163, 0.12);
    color: var(--primary-dark);
}

/* Card CTA sur fond clair */
.light-section .card-cta {
    border-top-color: rgba(0, 217, 163, 0.15);
    color: var(--primary-dark);
}

/* ============================================
   Process section sur fond clair
   ============================================ */

.light-section .process-step.glass-card {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 217, 163, 0.15) !important;
}

.light-section .process-step.glass-card:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 8px 24px rgba(0, 217, 163, 0.15) !important;
}

.light-section .process-step.glass-card h3 {
    color: var(--gray-900);
}

.light-section .process-step.glass-card p {
    color: var(--gray-600);
}

.light-section .process-cta.glass-card {
    background: var(--gradient-hero) !important;
    border: none !important;
}

.light-section .process-cta.glass-card h3 {
    color: var(--white);
}

/* ============================================
   Contact section sur fond clair
   ============================================ */

.light-section .contact-method.glass-card {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(0, 217, 163, 0.12) !important;
}

.light-section .contact-method.glass-card:hover {
    border-color: var(--primary) !important;
}

.light-section .method-label {
    color: var(--gray-600);
}

.light-section .method-value {
    color: var(--gray-900);
}

.light-section .method-icon {
    background: rgba(0, 217, 163, 0.12);
    color: var(--primary-dark);
}

.light-section .contact-form.glass-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 217, 163, 0.12) !important;
}

.light-section .form-group input,
.light-section .form-group textarea {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(30, 58, 95, 0.15);
    color: var(--gray-900);
}

.light-section .form-group input::placeholder,
.light-section .form-group textarea::placeholder {
    color: var(--gray-600);
}

.light-section .form-group input:focus,
.light-section .form-group textarea:focus {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 217, 163, 0.15);
}

.light-section .form-group label {
    color: var(--gray-600);
    background: transparent;
}

.light-section .form-group input:not(:placeholder-shown) + label,
.light-section .form-group textarea:not(:placeholder-shown) + label,
.light-section .form-group input:focus + label,
.light-section .form-group textarea:focus + label {
    color: var(--primary-dark);
    background: var(--white);
}

.light-section .modern-footer {
    color: var(--gray-600);
}

/* ============================================
   Boutons adaptés au fond clair
   ============================================ */

.light-section .btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--secondary-dark);
    border: 2px solid rgba(30, 58, 95, 0.2);
}

.light-section .btn-secondary:hover {
    background: var(--white);
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* ============================================
   Gradient text sur fond clair
   ============================================ */

.light-section .gradient-text {
    background: linear-gradient(
        90deg,
        #00B88A 0%,
        #00D9A3 20%,
        #1E3A5F 40%,
        #00D9A3 60%,
        #00B88A 80%,
        #1E3A5F 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 8s ease infinite;
    filter: drop-shadow(0 0 8px rgba(0, 217, 163, 0.2))
            drop-shadow(0 1px 3px rgba(30, 58, 95, 0.15));
}

/* ============================================
   MENU ADAPTATIF - MODE CLAIR (.menu-light)
   Appliqué automatiquement sur slides claires
   ============================================ */

/* Transition fluide pour tous les éléments du menu */
.modern-nav,
.modern-nav *,
.nav-brand,
.nav-link,
.nav-cta,
#fp-nav ul li a span {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Navigation principale - Mode clair
   ============================================ */

.modern-nav.menu-light {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(30, 58, 95, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(30, 58, 95, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Brand container - Mode clair */
.modern-nav.menu-light .nav-brand {
    background: rgba(30, 58, 95, 0.06);
    border-color: rgba(30, 58, 95, 0.1);
}

.modern-nav.menu-light .nav-brand:hover {
    background: rgba(30, 58, 95, 0.1);
    box-shadow: 0 4px 12px rgba(0, 217, 163, 0.15);
}

/* Logo - Filtre pour le mode clair (assombrir légèrement) */
.modern-nav.menu-light .brand-logo {
    filter: brightness(0.15) saturate(1.2);
}

.modern-nav.menu-light .nav-brand:hover .brand-logo {
    filter: brightness(0.15) saturate(1.2) drop-shadow(0 2px 8px rgba(0, 217, 163, 0.3));
}

/* ============================================
   Liens de navigation - Mode clair
   ============================================ */

.modern-nav.menu-light .nav-link {
    color: rgba(10, 22, 40, 0.7);
}

.modern-nav.menu-light .nav-link::before {
    background: rgba(30, 58, 95, 0.08);
}

.modern-nav.menu-light .nav-link:hover {
    color: var(--secondary-dark);
}

.modern-nav.menu-light .nav-link.active {
    color: var(--secondary-dark);
    background: rgba(0, 217, 163, 0.15);
    box-shadow:
        0 0 15px rgba(0, 217, 163, 0.2),
        inset 0 0 15px rgba(0, 217, 163, 0.08);
}

/* ============================================
   Bouton CTA - Mode clair
   ============================================ */

.modern-nav.menu-light .nav-cta {
    background: var(--gradient-hero);
    color: var(--white);
    box-shadow:
        0 4px 12px rgba(30, 58, 95, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.modern-nav.menu-light .nav-cta:hover {
    box-shadow:
        0 8px 20px rgba(30, 58, 95, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ============================================
   Indicateurs fullPage.js - Mode clair
   ============================================ */

body.on-light-section #fp-nav ul li a span {
    background: rgba(30, 58, 95, 0.3) !important;
    border: 2px solid rgba(30, 58, 95, 0.2);
}

body.on-light-section #fp-nav ul li a.active span {
    background: var(--primary) !important;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 217, 163, 0.4);
}

body.on-light-section #fp-nav ul li .fp-tooltip {
    color: var(--secondary-dark) !important;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Bouton WhatsApp - Mode clair (optionnel)
   ============================================ */

body.on-light-section .whatsapp-float {
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.15),
        0 0 25px rgba(37, 211, 102, 0.3);
}

/* ============================================
   Scroll indicator - Mode clair
   ============================================ */

body.on-light-section .scroll-indicator {
    color: rgba(30, 58, 95, 0.5);
}

body.on-light-section .mouse {
    border-color: rgba(30, 58, 95, 0.3);
}

body.on-light-section .wheel {
    background: rgba(30, 58, 95, 0.5);
}

/* ============================================
   GOOGLE REVIEWS - Avis Google Business
   ============================================ */

/* Header avec note moyenne */
.google-rating-header {
    margin-top: var(--spacing-lg);
    display: flex;
    justify-content: center;
}

.google-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
}

.google-logo {
    flex-shrink: 0;
}

.google-rating-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.google-rating-score {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.rating-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars .star {
    color: #FBBC04;
    font-size: 1rem;
}

.rating-stars .star.filled {
    color: #FBBC04;
}

.rating-stars .star.empty {
    color: rgba(255, 255, 255, 0.3);
}

.google-rating-count {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Carousel des avis */
.google-reviews-carousel {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    width: 100%;
    margin-top: var(--spacing-lg);
}

.reviews-track-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.reviews-track {
    display: flex;
    gap: var(--spacing-lg);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card d'avis Google */
.google-review-card {
    flex: 0 0 calc(33.333% - var(--spacing-lg) * 2 / 3);
    min-width: calc(33.333% - var(--spacing-lg) * 2 / 3);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    border-radius: var(--radius-xl);
}

.review-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--white);
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-info {
    flex: 1;
    min-width: 0;
}

.reviewer-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: 4px;
}

.review-stars {
    display: flex;
    gap: 1px;
}

.review-stars .star {
    color: #FBBC04;
    font-size: 0.875rem;
}

.review-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.review-google-icon {
    margin-left: auto;
    opacity: 0.7;
}

.review-google-icon svg {
    width: 18px;
    height: 18px;
}

/* Texte de l'avis */
.review-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    flex: 1;
}

.review-text.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-text.expanded {
    display: block;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.8125rem;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-top: var(--spacing-xs);
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    z-index: 10;
    display: inline-block;
}

.read-more-btn:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* État de chargement */
.reviews-loading {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    gap: var(--spacing-md);
    min-height: 200px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.reviews-loading p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

/* Message d'erreur */
.reviews-error {
    text-align: center;
    padding: var(--spacing-lg);
}

.reviews-error p {
    color: rgba(255, 255, 255, 0.7);
}

.reviews-error a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.reviews-error a:hover {
    text-decoration: underline;
}

/* Boutons de navigation carousel avis */
.reviews-prev,
.reviews-next {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .google-review-card {
        flex: 0 0 calc(50% - var(--spacing-lg) / 2);
        min-width: calc(50% - var(--spacing-lg) / 2);
    }
}

@media (max-width: 768px) {
    /* Cards plus étroites pour montrer un aperçu de la suivante */
    .google-review-card {
        flex: 0 0 82%;
        min-width: 82%;
        scroll-snap-align: center;
    }

    .google-rating-badge {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .rating-number {
        font-size: 1.25rem;
    }

    /* Carousel swipeable avec aperçu */
    .google-reviews-carousel {
        padding: 0;
    }

    .reviews-track-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 0.5rem;
    }

    .reviews-track-wrapper::-webkit-scrollbar {
        display: none;
    }

    #reviewsTrack {
        gap: var(--spacing-md);
        padding-right: 1rem; /* Espace pour voir l'aperçu de la dernière card */
    }

    .reviews-prev,
    .reviews-next {
        display: none;
    }

    /* Indicateur visuel de swipe */
    .reviews-track-wrapper::after {
        content: '';
        flex: 0 0 0.5rem;
        min-width: 0.5rem;
    }
}

/* Mode clair pour la section témoignages (si nécessaire) */
.light-section .rating-number {
    color: var(--gray-900);
}

.light-section .reviewer-name {
    color: var(--gray-900);
}

.light-section .review-text {
    color: var(--gray-800);
}

.light-section .google-rating-count {
    color: var(--gray-600);
}

.light-section .review-date {
    color: var(--gray-500);
}

.light-section .rating-stars .star.empty,
.light-section .reviews-loading p,
.light-section .reviews-error p {
    color: var(--gray-500);
}

/* ============================================
   Badge note Google - Lien cliquable
   ============================================ */

.google-rating-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.google-rating-link:hover {
    transform: scale(1.03);
}

.google-rating-link:hover .google-rating-badge {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 217, 163, 0.3);
    border-color: rgba(0, 217, 163, 0.5);
}

.google-rating-link .google-rating-badge {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ============================================
   MODAL AVIS GOOGLE - Lire plus
   Z-INDEX TRÈS ÉLEVÉ pour passer au-dessus de fullPage.js
   ============================================ */

.review-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999999 !important; /* Ultra élevé pour fullPage.js */
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.review-modal.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.review-modal-backdrop {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(10, 22, 40, 0.9) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1 !important;
}

.review-modal.active .review-modal-backdrop {
    display: block !important;
    opacity: 1 !important;
}

.review-modal-container {
    position: relative !important;
    max-width: 560px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: var(--spacing-xl, 2rem);
    border-radius: var(--radius-xl, 1rem);
    background: rgba(30, 41, 59, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    z-index: 2 !important;
    transform: scale(1) !important;
}

.review-modal.active .review-modal-container {
    display: block !important;
    opacity: 1 !important;
    transform: scale(1) !important;
}

.review-modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.review-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: rotate(90deg);
}

.review-modal-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding-right: 40px;
}

.review-modal-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white);
    flex-shrink: 0;
}

.review-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.review-modal-info {
    flex: 1;
    min-width: 0;
}

.review-modal-name {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 4px;
}

.review-modal-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.review-modal-stars {
    display: flex;
    gap: 2px;
}

.review-modal-stars .star {
    color: #FBBC04;
    font-size: 1rem;
}

.review-modal-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.review-modal-google {
    flex-shrink: 0;
    opacity: 0.8;
}

.review-modal-body {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.review-modal-text {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive modal */
@media (max-width: 640px) {
    .review-modal-container {
        width: 95%;
        padding: var(--spacing-lg);
        max-height: 90vh;
    }

    .review-modal-header {
        flex-wrap: wrap;
    }

    .review-modal-avatar {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    .review-modal-name {
        font-size: 1rem;
    }

    .review-modal-text {
        font-size: 0.9375rem;
    }
}
























/* ============================================
   POPUP COOKIES (Version Modale Centrée + Overlay)
   ============================================ */

/* 1. L'Overlay sombre qui couvre tout l'écran */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Fond sombre semi-transparent */
    backdrop-filter: blur(5px); /* Flou d'arrière-plan classe */
    z-index: 99999; /* Juste en dessous du popup */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}

.cookie-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* 2. Le Popup lui-même (Centré) */
#cookie-consent-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9); /* Centrage parfait + effet zoom départ */
    width: 90%;
    max-width: 480px;
    z-index: 100000; /* Au-dessus de l'overlay */
    
    /* Design Glassmorphism */
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 30px;
    
    display: flex;
    flex-direction: column;
    gap: 20px;
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); /* Effet rebond */
}

/* État visible du popup */
#cookie-consent-popup.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Contenu */
.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.cookie-icon {
    font-size: 32px;
    line-height: 1;
    animation: floatCookie 3s ease-in-out infinite;
}

@keyframes floatCookie {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.cookie-text h3 {
    font-size: 1.25rem;
    color: #fff;
    margin: 0;
    font-weight: 700;
}

.cookie-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

.cookie-link {
    font-size: 0.85rem;
    color: #00D9A3;
    text-decoration: none;
    margin-top: 5px;
    display: inline-block;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}
.cookie-link:hover { border-color: #00D9A3; }

/* 1. Conteneur : Centré et espacé */
.cookie-actions {
    display: flex;           /* Flexbox pour l'alignement */
    justify-content: center; /* Centre le groupe de boutons horizontalement */
    align-items: center;     /* Aligne verticalement */
    gap: 20px;               /* Espace propre entre les deux */
    margin-top: 25px;        /* Espace avec le texte au-dessus */
    width: 100%;
}

/* Surcharge boutons */
/* 2. Style des boutons (Taille identique et texte centré) */
#cookie-consent-popup .btn-sm {
    display: inline-flex;    /* Indispensable pour centrer le texte verticalement */
    align-items: center;
    justify-content: center;
    
    height: 48px !important; /* Force une hauteur identique pour les deux */
    min-width: 140px;        /* Largeur minimale identique */
    padding: 0 24px;
    
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    
    /* Reset des marges par défaut */
    margin: 0;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
}

#cookie-consent-popup .btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
#cookie-consent-popup .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

#cookie-consent-popup .btn-primary {
    background: #00D9A3;
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 217, 163, 0.3);
}
#cookie-consent-popup .btn-primary:hover {
    background: #00F5B8;
    transform: translateY(-2px);
}

/* 3. Classe utilitaire pour bloquer le scroll du body */
body.cookie-no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}

/* 3. Ajustement Mobile (Boutons l'un sous l'autre) */
@media (max-width: 600px) {
    .cookie-actions {
        flex-direction: column-reverse; /* "Accepter" passe en haut, "Refuser" en bas (plus ergonomique) */
        gap: 12px;
    }
    
    #cookie-consent-popup .btn-sm {
        width: 100%; /* Pleine largeur sur mobile */
    }
}