/* style.css - Version corrigée */
/* Variables CSS - Mise à jour avec la nouvelle couleur */
:root {
    --violet-fonce: #0a020f;
    --violet-clair: #743a96;
    --violet-moyen: #3d1a5c;
    --violet-pale: #f5f0ff;
    --blanc: #ffffff;
    --gris-fonce: #333333;
    --gris-moyen: #666666;
    --gris-clair: #f8f8f8;
    --bordure: #e0e0e0;
}

/* RESET ET BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--blanc);
    color: var(--gris-fonce);
    line-height: 1.6;
    overflow-x: hidden;
}

/* HERO SECTION - Avec image de fond */
.hero-bg-image {
    background-image: url('images/fond-header.png');
    background-size: cover;
    background-position: center;
    background-color: var(--violet-fonce);
    padding: 140px 0 80px;
    position: relative;
}

/* Suppression de l'overlay */
.hero-bg-image::before {
    content: '';
    display: none;
}

/* CARTES AVANTAGES */
.avantage-card {
    background: var(--blanc);
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--bordure);
    transition: all 0.3s ease;
    text-align: center;
}

.avantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(10, 2, 15, 0.1);
    border-color: var(--dore);
}

.avantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--violet-clair), var(--violet-fonce));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.avantage-icon i {
    color: var(--blanc);
    font-size: 32px;
}

/* SECTION CERTIFICATION */
.section-certification {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(116, 58, 150, 0.05), rgba(10, 2, 15, 0.05));
}

.certification-box {
    background: var(--blanc);
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 10px 40px rgba(10, 2, 15, 0.08);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.certification-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--dore), var(--dore-clair));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.certification-icon i {
    color: var(--violet-fonce);
    font-size: 48px;
}

/* IMAGES CIRCULAIRES */
.image-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--dore);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(214, 184, 120, 0.3);
}

.image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* RESPONSIVE */
@media (max-width: 768px) {
.hero-bg-image {
        padding: 80px 0 40px !important;
    }

    .hero-bg-image .flex {
        flex-direction: column;
    }

    .hero-bg-image .lg\\:w-2\\,
    .hero-bg-image .lg\\:w-1\\ {
        width: 100% !important;
    }

    .hero-bg-image .w-48 {
        width: 200px !important;
        height: 200px !important;
    }

    .hero-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .image-circle {
        width: 200px;
        height: 200px;
    }

    .certification-box {
        padding: 40px 20px;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* AJOUTER AOS (Animate On Scroll) */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}
@media (max-width: 640px) {
    .hero-bg-image h1 {
        font-size: 1.75rem !important;
    }

    .hero-bg-image .text-3xl {
        font-size: 1.5rem !important;
    }

    .section-padding {
        padding: 3rem 0 !important;
    }
}
/* ========== NOUVELLES CLASSES POUR LE DESIGN MIS À JOUR ========== */

/* Hero Section améliorée */
.hero-section {
    min-height: 60vh;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(245, 240, 255, 0.9), rgba(245, 240, 255, 0.7));
}

/* Images circulaires pour hero */
.hero-circle-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero-circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-circle-border {
    border: 3px solid var(--violet-clair);
}

/* Section Présentation redesign */
.presentation-card {
    background: linear-gradient(135deg, var(--blanc) 0%, var(--violet-pale) 100%);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(116, 58, 150, 0.1);
    border: 1px solid rgba(116, 58, 150, 0.1);
}

/* Cartes produits avec vraies images */
.product-image-card {
    height: 250px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gris-clair);
}

.product-image-card img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* Ajustements responsive */
@media (max-width: 768px) {
    .hero-circle-img {
        width: 150px;
        height: 150px;
    }

    .presentation-card {
        padding: 30px 20px;
    }

    .product-image-card {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .hero-circle-img {
        width: 120px;
        height: 120px;
    }
}
/* Correction pour le menu mobile */
#mobileNav {
    transition: all 0.3s ease;
}

/* S'assurer que le menu mobile est caché par défaut sur mobile */
#mobileNav.hidden {
    display: none;
}

/* S'assurer que le bouton burger est visible sur mobile */
@media (max-width: 1023px) {
    #mobileMenuBtn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

/* Cache le menu sur desktop même s'il n'a pas la classe hidden */
@media (min-width: 1024px) {
    #mobileNav {
        display: none !important;
    }
}

/* Empêcher le défilement horizontal sur mobile */
body {
    max-width: 100%;
    overflow-x: hidden;
}

header {
    max-width: 100vw;
}
/* Correction du débordement horizontal sur mobile */
html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

@media (max-width: 1023px) {
    body {
        overflow-x: hidden !important;
    }

    header,
    .container,
    section {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
}

/* ========== AJUSTEMENTS POUR 3 IMAGES DANS LE HERO ========== */

/* Réduction de la taille des images circulaires pour 3 images */
.hero-smaller {
    width: 160px !important;
    height: 160px !important;
}

/* Ajustement des espacements pour 3 images */
@media (max-width: 1024px) {
    .hero-smaller {
        width: 140px !important;
        height: 140px !important;
    }
}

@media (max-width: 768px) {
    .hero-smaller {
        width: 120px !important;
        height: 120px !important;
    }


   
}

@media (max-width: 640px) {
    .hero-smaller {
        width: 100px !important;
        height: 100px !important;
    }
}

/* Réduction légère de la taille du texte pour équilibrer */
@media (max-width: 1024px) {
    .hero-section h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .hero-section p.text-lg {
        font-size: 1rem !important;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.75rem !important;
    }

    .hero-section .flex.flex-col.sm\\:flex-row.gap-4 {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .hero-section a {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
}



/* Pour les très petits écrans, empiler les images si nécessaire */
@media (max-width: 480px) {


    .hero-smaller {
        width: 90px !important;
        height: 90px !important;
    }
}

/* ========== AJUSTEMENTS POUR 3 IMAGES DANS LE HERO ========== */

/* Réduction de la taille des images circulaires pour 3 images */
.hero-smaller {
    width: 160px !important;
    height: 160px !important;
}

/* Ajustement des espacements pour 3 images */
@media (max-width: 1024px) {
    .hero-smaller {
        width: 140px !important;
        height: 140px !important;
    }
}

@media (max-width: 768px) {
    .hero-smaller {
        width: 120px !important;
        height: 120px !important;
    }

    /* Correction des espacements sur mobile */
    .hero-section .lg\\:w-1\\/2 {
        gap: 0.75rem !important;
    }
}

@media (max-width: 640px) {
    .hero-smaller {
        width: 100px !important;
        height: 100px !important;
    }
}

@media (max-width: 480px) {
    .hero-smaller {
        width: 90px !important;
        height: 90px !important;
    }
}

/* Réduction légère de la taille du texte pour équilibrer */
@media (max-width: 1024px) {
    .hero-section h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .hero-section p.text-lg {
        font-size: 1rem !important;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.75rem !important;
    }

    .hero-section .flex.flex-col.sm\\:flex-row.gap-4 {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .hero-section a {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
}
/* ========== GALERIE PRODUITS ========== */

.product-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 250px;
    background: var(--gris-clair);
}

.product-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(116, 58, 150, 0.15);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(10, 2, 15, 0.7));
    display: flex;
    align-items: flex-end;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-gallery-item:hover .product-overlay {
    opacity: 1;
}

.product-number {
    background: var(--violet-clair);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-gallery-item {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .product-gallery-item {
        height: 160px;
    }
}

/* Animation pour les images */
@keyframes fadeInGallery {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-gallery-item {
    animation: fadeInGallery 0.6s ease forwards;
}

/* Délais d'animation pour chaque élément */
.product-gallery-item:nth-child(1) {
    animation-delay: 0.1s;
}

.product-gallery-item:nth-child(2) {
    animation-delay: 0.2s;
}

.product-gallery-item:nth-child(3) {
    animation-delay: 0.3s;
}

.product-gallery-item:nth-child(4) {
    animation-delay: 0.4s;
}

.product-gallery-item:nth-child(5) {
    animation-delay: 0.5s;
}

.product-gallery-item:nth-child(6) {
    animation-delay: 0.6s;
}

.product-gallery-item:nth-child(7) {
    animation-delay: 0.7s;
}

.product-gallery-item:nth-child(8) {
    animation-delay: 0.8s;
}