/* Styles critiques pour éviter le FOUC - DOIT être en premier */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mode sombre immédiat pour toute la page */
.page-wrapper,
.main-wrapper,
.section_home-header,
.section_brands,
.section_home-about,
.section_services,
.section_cta,
.footer {
    background-color: #171B20 !important;
    color: #ffffff !important;
}

/* Textes en blanc immédiatement */
.home-header_heading,
.home-header_text,
.text-style-label,
.heading-style-h4,
.heading-style-h6,
.work-list_desc,
.services_desc,
.heading-style-h3,
.heading-style-h5,
.cta_text {
    color: #ffffff !important;
}

/* Texte spécial en gris */
.section_services .services_component .services_content .heading-style-h3,
.section_services .services_content .heading-style-h3,
.services_content .heading-style-h3,
.section_services h2.heading-style-h3,
.section_services .services_component .services_content h2.heading-style-h3 {
    color: rgb(120, 120, 120) !important;
    -webkit-text-fill-color: rgb(120, 120, 120) !important;
    text-fill-color: rgb(120, 120, 120) !important;
    transition: all 0.5s ease !important;
    opacity: 0.8 !important;
}

/* Fond sombre pour cta_content */
.cta_content {
    background-color: #0f1114 !important;
    padding: 2rem;
    border-radius: 12px;
    margin: 1rem;
}

.cta_content .heading-style-h5,
.cta_content .cta_text {
    color: #ffffff !important;
}

.cta_content .cta_pill {
    color: #666666 !important;
}

/* Intégration avec le header existant */
.page-wrapper {
    margin-top: 0;
    padding-top: 0;
}

.main-wrapper {
    margin-top: 0;
    padding-top: 0;
}

/* Ajustement pour éviter le conflit avec le header fixe */
.section_home-header {
    padding-top: 2rem;
    margin-top: 0;
}

/* Baisser la section des images */
.home-header_imgs-wrapper {
    margin-top: 8rem;
}

/* S'assurer que le contenu est visible sous le header */
.home-header_component {
    position: relative;
    z-index: 1;
}

/* Styles pour les boutons qui s'intègrent avec le design existant */
.button {
    transition: all 0.3s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Animation d'entrée pour le contenu */
.home-header_component {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation au scroll - le texte devient plus blanc */
.section_services.in-view .services_component .services_content .heading-style-h3,
.section_services.in-view .services_content .heading-style-h3,
.section_services.in-view .services_content h2.heading-style-h3 {
    opacity: 1 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section_home-header {
        padding-top: 1rem;
    }
    
    .home-header_imgs-wrapper {
        margin-top: 2rem;
    }
}
