/* Reset de base */
* {
    /* margin: 0;
    padding: 0; */
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f8ff; /* Bleu clair */
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    background-color: #173765; /* Bleu profond */
    color: white;
    padding: 10px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Logo container */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Empile les éléments si nécessaire */
    gap: 5px; /* Espacement entre le logo et le texte */
}

/* Logo styling */
.logo {
    max-height: 100px; /* Taille maximum pour le logo */
    height: auto;
    width: auto;
}

/* Heading styling */
header h1 {
    font-size: 1.8rem;
    letter-spacing: 1px;
    color: #ffc210;
    margin: 0;
    text-align: center;
}

/* Navigation styling */
header nav {
    margin-top: 10px;
}

header nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #ffcc00; /* Jaune */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-container {
        flex-direction: column; /* Empile le logo et le texte */
    }

    .logo {
        max-height: 80px; /* Taille du logo légèrement réduite */
    }

    header h1 {
        font-size: 1.6rem; /* Taille légèrement réduite */
    }

    header nav a {
        font-size: 1.2rem; /* Taille des liens ajustée */
    }
}

@media (max-width: 480px) {
    header {
        padding: 8px 0;
    }

    .logo {
        max-height: 90px; /* Maintient une bonne visibilité du logo */
    }

    header h1 {
        font-size: 1.4rem; /* Réduit légèrement la taille du titre pour libérer de l'espace */
    }

    header nav {
        display: flex;
        flex-wrap: wrap; /* Passe les liens sur plusieurs lignes si nécessaire */
        justify-content: center;
        gap: 5px;
    }

    header nav a {
        font-size: 1.1rem; /* Taille réduite pour les liens */
        margin: 0 5px;
    }
}

/* Section Hero */
.hero {
    background: linear-gradient(135deg, #173765, #fcc210);
    color: white;
    text-align: center;
    padding: 50px 20px;
    margin-bottom: 20px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero a {
    background-color: #fcc210;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero a:hover {
    background-color: #173765;
    transform: scale(1.05);
}

/* Produits Récents (Titre) */
.products-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px; /* Espacement entre le titre et les articles */
    text-align: center; /* Centrer le titre */
    margin-top: 20px; /* Espacement en haut pour les grands écrans */
}

/* Articles */
.search-container {
    text-align: center;
    margin: 20px auto;
}

#searchBar {
    width: 80%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 16px;
    outline: none;
}
.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Style des articles */
.article {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column; /* Flex layout for vertical stacking */
    justify-content: space-between; /* Ensures content is spaced out */
    height: 100%; /* Ensures the article is flexible */
    padding: 15px;
}

/* Effet au survol */
.article:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Image de l'article */
.article img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}

/* Titre de l'article */
.article h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

/* Description de l'article */
.article p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
    flex-grow: 1; /* Allows the paragraph to grow and take space */
}

/* Bouton Commander */
.article a.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25d366; /* Vert WhatsApp */
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 10px; /* Spacing from content above */
}

/* Icône du bouton */
.article a.icon i {
    margin-right: 5px;
}

/* Effet au survol du bouton */
.article a.icon:hover {
    background-color: #1da851;
}


/* Voir plus d'articles */
.view-more {
    text-align: center;
    margin: 30px 0;
}

.view-more a {
    background: linear-gradient(135deg, #173765, #ffcc00);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.view-more a:hover {
    background: linear-gradient(135deg, #ffcc00, #173765);
    transform: translateY(-3px);
}

/* Scroll to top button */
.scroll-to-top-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(145deg, #f39c12, #e67e22);
    color: white;
    border: none;
    border-radius: 50%;
    padding: 15px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.9;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), inset 0 -3px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    z-index: 9999;
}

.scroll-to-top-btn:hover {
    background: linear-gradient(145deg, #e67e22, #f39c12);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), inset 0 -3px 6px rgba(0, 0, 0, 0.2);
    opacity: 1;
}

.scroll-to-top-btn:active {
    transform: translateY(2px);
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #173765, #1a4a91); /* Gradient élégant */
    color: white;
    text-align: center;
    padding: 20px 0; /* Plus d'espace pour un look aéré */
    margin-top: auto;
    font-size: 1rem;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.2); /* Ombre subtile */
}

/* Texte principal */
footer p {
    margin: 5px 0;
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

/* Mise en avant du développeur */
footer .developer {
    color: #ffc210; /* Couleur dorée pour attirer l'attention */
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Effet de profondeur */
    transition: color 0.3s ease;
}

/* Au survol du développeur */
footer .developer:hover {
    color: #ffcc66; /* Accentue la couleur dorée */
    text-decoration: underline; /* Ajoute une petite touche en survol */
    cursor: pointer;
}
/* Lien vers les conditions d'utilisation */
footer .politique {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Effet de profondeur */
}

footer .politique a {
    color: #ffc210; /* Doré pour le lien */
    text-decoration: none; /* Supprime le soulignement par défaut */
    transition: color 0.3s ease, text-shadow 0.3s ease; /* Animation douce */
}

/* Survol du lien */
footer .politique a:hover {
    color: #ffcc66; /* Accentuation de la couleur */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Ombre plus intense */
    text-decoration: underline; /* Ajoute un soulignement */
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .article img {
        max-height: 150px;
    }

    .article h3 {
        font-size: 1rem;
    }

    .article p {
        font-size: 0.85rem;
    }

    .article a.icon {
        font-size: 0.85rem;
    }
}
/* Témoignages (Carrousel) */
.testimonials {
    background-color: #f9f9f9;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.testimonials h2 {
    font-size: 2rem;
    color: #173765;
    margin-bottom: 20px;
}

.testimonial-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Transition fluide lors du défilement */
}

.testimonials .testimonial {
    flex: 0 0 100%; /* Chaque témoignage prend 100% de la largeur du carrousel */
    max-width: 100%;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-style: italic;
    position: relative;
    display: flex;
    justify-content: center;
}

.testimonials .testimonial p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
}

.testimonials .testimonial span {
    font-size: 0.9rem;
    color: #333;
    font-weight: bold;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffc107;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: #003d80;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Réduire la taille des témoignages et les rendre plus fluides */
    .testimonial-carousel {
        flex-direction: column;
        align-items: center;
    }

    .testimonials .testimonial {
        max-width: 90%;
    }

    .testimonials h2 {
        font-size: 1.5rem; /* Réduire la taille du titre */
    }

    .carousel-prev, 
    .carousel-next {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    /* Sur les très petits écrans, on peut réduire encore plus */
    .testimonials h2 {
        font-size: 1.2rem;
    }

    .testimonial-carousel {
        flex-direction: column;
    }

    .testimonials .testimonial {
        max-width: 95%;
        padding: 15px;
    }

    .carousel-prev, 
    .carousel-next {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}


/* Avantages (Version Dynamique) */
.advantages {
    background: linear-gradient(135deg, #173765, #003d80);
    color: white;
    padding: 40px 20px;
    text-align: center;
    justify-content: center;
}

.advantages h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #fcc210;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.advantage-item {
    background-color: #ffffff20;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.advantage-item i {
    font-size: 2.5rem;
    color: #fcc210;
    margin-bottom: 15px;
}

.advantage-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.advantage-item p {
    font-size: 1rem;
    color: #e0e0e0;
}

/* Newsletter */
.newsletter {
    background-color: #fcc210;
    color: #173765;
    padding: 40px 20px;
    text-align: center;
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.newsletter p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.newsletter form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter input[type="email"] {
    padding: 10px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    width: 250px;
    max-width: 100%;
}

.newsletter button {
    background-color: #173765;
    color: white;
    font-size: 1rem;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.newsletter button:hover {
    background-color: #003d80;
}

/* FAQ et Contact */
.faq-contact {
    background-color: #f0f8ff;
    padding: 40px 20px;
    text-align: center;
}

.faq-contact h2 {
    font-size: 2rem;
    color: #173765;
    margin-bottom: 20px;
}

.faq-contact p {
    font-size: 1rem;
    color: #555;
}

.faq-contact a {
    color: #fcc210;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.faq-contact a:hover {
    color: #ff9900;
}
