/* Base Styles */
:root {
    --primary-color: #e91e63;
    --secondary-color: #4caf50;  /* Ajout de vert */
    --accent-color: #ffffff;
    --text-color: #333333;
    --light-bg: #f5f9f5;  /* Légère teinte verte */
    --dark-bg: #222222;
    --transition: all 0.3s ease;
    --box-shadow: 0 3px 10px rgba(76, 175, 80, 0.1);  /* Ombre réduite avec teinte verte */
    --border-radius: 8px;
}

/* ======================================================================
   OPTIMISATIONS SEO ET PERFORMANCE
   ====================================================================== */

/* Optimisation des polices pour éviter FOIT/FOUT */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap; /* Améliore les Core Web Vitals */
    src: local('Poppins Regular'), local('Poppins-Regular'),
         url('https://fonts.gstatic.com/s/poppins/v20/pxiEyp8kv8JHgFVrJJfecg.woff2') format('woff2');
}

/* Lazy loading des images */
img.lazy-loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

/* Optimisation du rendu pour éviter les layout shifts */
img {
    height: auto;
    max-width: 100%;
    vertical-align: middle;
}

/* Amélioration de l'accessibilité pour le SEO */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Liens internes automatiques */
.internal-link {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: rgba(233, 30, 99, 0.3);
    transition: text-decoration-color 0.3s ease;
}

.internal-link:hover {
    text-decoration-color: var(--primary-color);
}

/* Animations optimisées pour les performances */
.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

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

/* Optimisation du scroll */
.scrolled .header {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Styles pour les boutons de partage social */
.social-share-container {
    z-index: 100;
}

.share-btn:hover {
    background: rgba(233, 30, 99, 1) !important;
    transform: scale(1.1);
}

.share-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--accent-color);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--secondary-color);
    transition: all 0.5s ease;
    z-index: -1;
    border-radius: 30px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(233, 30, 99, 0.4);
}

.btn:hover::before {
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

.bg-light {
    background-color: var(--light-bg);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--accent-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.nav-list {
    display: flex;
}

.nav-link {
    padding: 10px 15px;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section Styles */
.hero {
    height: auto;
    min-height: 10vh;
    margin-top: 5px;
    overflow: hidden;
    position: relative;
    margin-bottom: 60px; /* Plus d'espace sous le slider pour grand écran */
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.slide-content {
    position: relative;
    overflow: hidden;
    height: 85vh; /* Hauteur augmentée pour grands écrans */
    max-height: 800px; /* Hauteur maximale augmentée */
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(1.1) contrast(1.1); /* Améliore la luminosité et le contraste */
}

.slide-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Réduit légèrement l'opacité pour plus de clarté */
}

.slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--accent-color);
    width: 90%;
    max-width: 800px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.4); /* Fond semi-transparent pour améliorer la lisibilité */
    border-radius: 8px;
    backdrop-filter: blur(2px); /* Effet de flou pour améliorer la lisibilité */
}

.slide-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.slide-text span {
    color: var(--secondary-color);
}

.slide-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Product Section Styles */
.product-section {
    padding: 80px 0;
}

.product-swiper {
    padding: 20px 0;
}

.product-card {
    background-color: var(--accent-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(233, 30, 99, 0.1);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.2);
}

.product-card.highlight {
    animation: pulse 2s infinite;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 8px 15px rgba(76, 175, 80, 0.2);
    position: relative;
    z-index: 10;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.product-tooltip {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    color: var(--accent-color);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.product-tooltip:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: var(--secondary-color) transparent transparent;
}

.product-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-img .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.product-card:hover .product-img .overlay {
    opacity: 1;
}

.product-img .overlay .eye-icon {
    position: absolute;
    bottom: 22px !important; /* Position en bas, montée de 7px par rapport à l'original */
    right: 15px !important; /* Position à droite */
    background-color: var(--accent-color);
    color: var(--secondary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--secondary-color);
    z-index: 10;
}

.product-img .overlay .eye-icon:hover {
    background-color: var(--secondary-color);
    color: var(--accent-color);
    transform: translateY(-3px); /* Léger déplacement vers le haut au survol */
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-info p {
    color: #666;
    margin-bottom: 10px;
}

.product-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Contact Section Styles */
.contact {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.contact-info-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 0 auto;
    max-width: 1000px;
}

.contact-info-card {
    background-color: var(--accent-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    flex: 1;
    min-width: 250px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(233, 30, 99, 0.1);
    opacity: 0;
    transform: translateY(30px);
}

.contact-info-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(233, 30, 99, 0.2);
    border-color: rgba(233, 30, 99, 0.2);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background-color: var(--light-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: var(--transition);
}

.contact-info-card:hover .contact-icon {
    background-color: var(--primary-color);
    color: var(--accent-color);
    transform: scale(1.1);
}

.contact-info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-info-card p {
    color: #666;
}

.contact-info-card a {
    color: #666;
    transition: var(--transition);
}

.contact-info-card a:hover {
    color: var(--secondary-color);
}

/* Footer Styles */
.footer {
    background-color: var(--primary-color);
    color: var(--accent-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-info p {
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.footer-contact ul li i {
    margin-right: 10px;
    margin-top: 5px;
}

.footer-contact ul li a {
    color: var(--accent-color);
    transition: var(--transition);
}

.footer-contact ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background-color: var(--accent-color);
    margin: 50px auto;
    padding: 40px;
    width: 90%;
    max-width: 900px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(233, 30, 99, 0.1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-70px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.modal-image {
    flex: 1;
    min-width: 250px;
}

.modal-image img {
    width: 100%;
    border-radius: 5px;
}

.modal-details {
    flex: 1;
    min-width: 250px;
}

.modal-details h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.product-features {
    margin-bottom: 20px;
}

.product-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.product-feature i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 3px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
}

/* Swiper Navigation & Pagination Styles */
.swiper-button-next,
.swiper-button-prev {
    color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: var(--accent-color);
    transform: scale(1.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 18px;
    border-radius: 5px;
}

/* WhatsApp Floating Button */
.whatsapp-container {
    position: fixed;
    z-index: 9999;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    z-index: 999998; /* Un peu moins que le bouton mobile */
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-float i {
    font-size: 28px;
}

.whatsapp-float .tooltip {
    position: absolute;
    right: 75px;
    background: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    color: #333;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
}

/* Bouton WhatsApp pour mobile */
.whatsapp-float-mobile {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none; /* Masqué par défaut */
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 999999;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

/* Cache le bouton mobile sur les grands écrans */
@media (min-width: 577px) {
    .whatsapp-float-mobile {
        display: none !important;
    }
}

/* Styles responsifs pour les boutons WhatsApp */
@media (max-width: 576px) {
    /* Masquer le bouton standard sur petits écrans */
    .whatsapp-float {
        display: none !important;
    }

    /* Afficher le bouton mobile sur petits écrans */
    .whatsapp-float-mobile {
        display: flex !important;
        bottom: 20px !important;
        right: 20px !important;
        left: auto !important;
        transform: none !important;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .slide-text h2 {
        font-size: 2.5rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px;
    }

    /* Ajustement de l'icône WhatsApp pour tablettes */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 25px;
        right: 25px;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--accent-color);
        transition: var(--transition);
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
    }

    .nav-link {
        display: block;
        padding: 15px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .slide-text h2 {
        font-size: 2rem;
    }

    .slide-text p {
        font-size: 1rem;
    }

    /* Ajustement de l'icône WhatsApp pour mobiles */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float-mobile {
        bottom: 15px;
    }

    .whatsapp-float .tooltip {
        display: none; /* Masquer l'infobulle sur mobile pour économiser de l'espace */
    }

    /* Ajustement du slider pour mobiles */
    .slide-content {
        height: 45vh; /* Hauteur réduite pour mobiles */
        max-height: 400px; /* Hauteur maximale réduite */
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .slide-text h2 {
        font-size: 1.8rem;
    }

    /* Ajustement des espaces et marges pour petits écrans */
    .hero {
        margin-top: 40px;  /* Réduit encore plus l'espace en haut */
        margin-bottom: 0;  /* Supprime l'espace en bas */
        min-height: 30vh;  /* Réduit davantage la hauteur minimale */
    }

    .product-section {
        padding: 10px 0;  /* Réduit encore plus l'espacement des sections */
    }

    .section-header {
        margin-bottom: 10px; /* Réduit l'espace sous les titres de section */
    }

    .section-header p {
        margin-bottom: 10px; /* Réduit l'espace sous la description */
        font-size: 0.9rem;  /* Réduit la taille du texte */
    }

    /* Ajustement supplémentaire pour le bouton WhatsApp mobile */
    .whatsapp-float-mobile {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 10px;
    }

    /* Nous avons déjà ajusté la position de l'icône œil directement dans le sélecteur principal */

    /* Ajustement du slider pour petits écrans */
    .slide-content {
        height: 45vh; /* Hauteur augmentée */
        max-height: 350px; /* Hauteur maximale augmentée */
    }

    /* Réduire l'espace sous le slider sur petits écrans */
    .hero {
        margin-bottom: 0; /* Supprime l'espace sous le slider */
    }

    /* Réduire l'espace au-dessus des sections sur petits écrans */
    section {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    /* Ajustement du texte du slider pour petits écrans */
    .slide-text {
        padding: 10px;
    }

    .slide-text h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .slide-text p {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .slide-text .btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}
