/* Styles généraux */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9; /* Couleur de fond claire */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

/* En-tête */
header {
    background-color: #3498db; /* Couleur de fond bleue */
    border-bottom: 3px solid #2980b9; /* Bordure plus prononcée */
    border-radius: 0 0 50px 50px; /* Coins arrondis en bas */
    padding: 20px 0; /* Rembourrage */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Ombre légère */
    text-align: center;
     
}

header nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

header nav ul li {
    margin: 0 15px; /* Espacement */
}

header nav ul li a {
    color: #ffffff; /* Couleur du texte blanche */
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

header nav ul li a:hover {
    background-color: #2980b9; /* Couleur de survol */
    transform: translateY(-2px);
}

/* Pied de page */
footer {
    background-color:  #3498db; /* Couleur de fond sombre */
    color: #ecf0f1; /* Couleur du texte claire */
    padding: 20px 0; /* Rembourrage */
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* Ombre */
}

/* Reste du CSS inchangé */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Styles pour les sections de catégories */
.category-section {
    margin-bottom: 40px;
}

.category-section h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2980b9; /* Couleur bleue */
}

/* Styles pour les articles e-commerce */
.articles-row {
display: flex;
flex-wrap: wrap;
gap: 15px;
}

.article-item {
flex: 1 1 calc(33.333% - 10px);
background-color: #fff;
padding: 20px;
margin: 15px 0;
border-radius: 10px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
box-sizing: border-box;
transition: transform 0.3s;
text-align: center;
}

.article-item:hover {
transform: translateY(-5px);
}

.article-item img {
width: 100%;
height: auto;
max-width: 250px;
max-height: 300px;
object-fit: cover;
border-radius: 5px;
}

.article-details {
margin-top: 15px;
}

.article-title {
font-size: 18px;
color: #3498db;
margin: 10px 0;
display: block;
}

.article-description {
font-size: 14px;
color: #777;
margin: 10px 0;
}

.article-image img {
width: 100%;
height: auto;
border-radius: 5px;
margin-bottom: 10px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    header nav ul {
        flex-direction: column;
    }

    header nav ul li {
        margin: 10px 0;
    }

    .articles-row {
        display: flex;
        flex-wrap: wrap;
    }

    .article-item {
        flex: 1 1 calc(33.333% - 20px); /* Trois colonnes */
    }
    
}

@media screen and (max-width: 480px) {
    .article-item {
        flex: 1 1 calc(33.333% - 20px); /* Toujours trois colonnes */
    }
}

/* Style pour la barre de recherche */
#search-bar {
    margin: 30px auto; /* Espace */
    padding: 15px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#search-bar form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#search-bar input[type="text"],
#search-bar select {
    width: 100%;
    padding: 12px; /* Padding */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

#search-bar button {
    padding: 12px 24px; /* Padding */
    background-color: #e67e22; /* Couleur orange */
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#search-bar button:hover {
    background-color: #d35400; /* Couleur orange foncé */
}

/* Style pour la section de partage */
.share-section {
    margin-top: 20px;
}

.share-section a {
    display: inline-block;
    margin-right: 10px;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
}

.share-facebook {
    background-color: #3b5998;
}

.share-twitter {
    background-color: #1da1f2;
}

.share-linkedin {
    background-color: #0077b5;
}

.share-whatsapp {
    background-color: #25d366;
}

/* Styles pour l'assistant virtuel */
#virtual-assistant {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#assistant-toggle {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#assistant-dialog {
    position: absolute;
    bottom: 70px;
    right: 0;
    background-color: #2c3e50; /* Couleur sombre */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
    max-width: 300px;
    box-sizing: border-box;
    overflow-y: auto;
    max-height: 70vh;
    color: #ecf0f1; /* Couleur claire */
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 768px) {
    #assistant-dialog {
        max-width: 90%;
        right: 5%;
    }

    #assistant-toggle {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .question-button {
        padding: 8px 12px;
    }

    #back-button, #assistant-close {
        padding: 8px 15px;
    }
}

@media screen and (max-width: 480px) {
    #assistant-dialog {
        max-width: 95%;
        right: 2.5%;
    }

    #assistant-toggle {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .question-button {
        padding: 6px 10px;
    }

    #back-button, #assistant-close {
        padding: 6px 10px;
    }
}

/* Style pour la section de partage social */
#share {
    margin-top: 20px;
}

.social-share {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 10px;
}

.social-share li {
    font-size: 24px;
}

.social-share a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.social-share a:hover {
    color: #007bff;
}
/* Conteneur de la Bannière */
#banner {
    position: relative;
    width: 100%;
    height: 300px; /* Ajustez la hauteur selon vos besoins */
    overflow: hidden;
}

/* Image de la Bannière */
.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assure que l'image couvre toute la zone de la bannière */
}

/* Informations de la Bannière */
.banner-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border-radius: 5px;
}

/* Titres et Paragraphes des Informations */
.banner-info h2 {
    margin: 0;
    font-size: 24px;
}

.banner-info p {
    margin: 5px 0 0;
    font-size: 18px;
}


   .header-nav {
            display: flex;
            align-items: center;
            list-style-type: none;
        }

        .header-nav li {
            margin: 0 10px;
            position: relative;
        }

        .header-nav li a {
            display: block;
            text-decoration: none;
            color: #333;
            font-size: 24px;
            padding: 10px;
        }

        .header-nav li span {
            display: none;
            position: absolute;
            bottom: -20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: #333;
            color: #fff;
            padding: 5px;
            border-radius: 3px;
            white-space: nowrap;
            font-size: 12px;
        }

        .header-nav li:hover span {
            display: block;
        }
/* Style pour la barre de recherche */
#search-bar {
    margin: 20px auto;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#search-bar form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#search-bar input[type="text"],
#search-bar select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

#search-bar button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#search-bar button:hover {
    background-color: #0056b3;
}

@media (min-width: 600px) {
    #search-bar form {
        flex-direction: row;
    }

    #search-bar input[type="text"],
    #search-bar select {
        flex: 1;
        margin-right: 10px;
    }

    #search-bar button {
        margin-left: 10px;
    }
}
       /* Style pour la section de partage */
        .share-section {
            margin-top: 20px;
        }

        .share-section a {
            display: inline-block;
            margin-right: 10px;
            color: #fff;
            padding: 10px;
            border-radius: 5px;
            text-decoration: none;
        }

        .share-facebook {
            background-color: #3b5998;
        }

        .share-twitter {
            background-color: #1da1f2;
        }

        .share-linkedin {
            background-color: #0077b5;
        }

        .share-whatsapp {
            background-color: #25d366;
        }
        
    /* Hero Section Styles */
        .hero {
    position: relative;
   background: url('/hero-background.jpg') no-repeat center center/cover;

    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Sombre l'image */
    z-index: 1;
}

.hero .content {

            text-align: center;
    position: relative; /* Pour être au-dessus de l'overlay */
    z-index: 2;
}


        .hero .btn {
            margin-top: 20px;
            font-size: 1.2rem;
            animation: pulse 1.5s infinite;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.1);
            }

        }
         .title-container {
            text-align: center;
            padding: 50px;
        }

        .title-container h1 {
            font-size: 3rem;
            color: #4CAF50;
        }

        .icon {
            font-size: 2rem;
            margin: 0 10px;
            color: #FFA500; /* Vous pouvez personnaliser la couleur */
        }
        /* Responsive Design */

@media screen and (max-width: 1200px) {
    .container {
        max-width: 960px; /* Réduite pour meilleure lisibilité sur écrans larges */
    }
}

@media screen and (max-width: 992px) {
    .article-item {
        flex: 1 1 calc(33.333% - 20px); /* 3 colonnes sur écrans moyens */
    }
}

@media screen and (max-width: 768px) {
    .header-nav {
        flex-direction: column;
        text-align: center;
    }

    .header-nav li {
        margin: 10px 0;
    }

    .articles-row {
        display: flex;
        flex-wrap: wrap;
    }

    .article-item {
        flex: 1 1 calc(50% - 20px); /* 2 colonnes sur écrans mobiles */
    }
}

@media screen and (max-width: 480px) {
    .article-item {
        flex: 1 1 100%; /* 1 colonne sur écrans très petits */
    }
}