/* Réinitialisation des styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}



/* Ajoute ce code dans ton fichier styles.css pour appliquer un centrage et une marge */
body {
    /* font-family: 'Poppins', sans-serif;  Changer la police en Poppins */

    background-color: #fff;  /* Fond blanc */
    color: #333;
    padding: 20px;
}
.mobile-only {
    display: none; /* caché par défaut */
  }

  @media (max-width: 768px) {
    .mobile-only {
      display: block; /* visible sur mobile */
    }
  }

 .desktop-only {
    display: block; /* visible par défaut */
  }

  @media (max-width: 768px) {
    .desktop-only {
      display: none; /* masqué sur mobile */
    }
  }


.container {
    max-width: 1200px; /* Limite la largeur du site */
    margin: 0 auto; /* Centre le site horizontalement */
    padding: 20px; /* Ajoute une marge intérieure */
}

    .main-title {
        margin-top: 80px;
    }

header, footer {
    padding: 20px 0; /* Un peu de marge en haut et en bas */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

nav.footer-nav {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

nav.footer-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap; /* Permet de passer à la ligne si l'espace est insuffisant */
    justify-content: center;
}

nav.footer-nav li {
    margin: 0 15px;
}

nav.footer-nav li a {
    text-decoration: none;
    color: #333;
}

nav.footer-nav li a:hover {
    text-decoration: underline;
}

/* MEDIA QUERIES pour le responsive */
@media (max-width: 768px) {
    footer {
    background-color: #f8f9fa;
    padding: 40px 20px 30px;
    text-align: center;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    max-width: 300px;
    margin: 0 auto 40px;
}

.footer-nav li {
    text-align: center;
}

.footer-nav a {
    color: #6c757d;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #495057;
}

/* Réorganisation des liens pour correspondre à la capture */
.footer-nav ul li:nth-child(1) { order: 1; } /* À propos */
.footer-nav ul li:nth-child(4) { order: 2; } /* Contact */
.footer-nav ul li:nth-child(5) { order: 3; } /* FAQ */
.footer-nav ul li:nth-child(2) { order: 4; } /* Conditions */
.footer-nav ul li:nth-child(3) { order: 5; } /* Politique */
.footer-nav ul li:nth-child(6) { order: 6; } /* Blog */

/* Réseaux sociaux */
.footer-social {
    margin: 40px 0 30px;
}

.footer-social ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-social a {
    color: #6c757d;
    font-size: 24px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #495057;
}

/* Masquer les <br> et ajuster l'espacement */
footer br {
    display: none;
}

.footer-content {
    margin-top: 0;
}

.footer-content p {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

/* Responsive pour très petits écrans */
@media (max-width: 320px) {
    .footer-nav ul {
        gap: 15px 20px;
        max-width: 280px;
    }

    .footer-nav a {
        font-size: 15px;
    }
}
}


/* Réseaux sociaux */
.footer-social {
    margin: 40px 0 30px;
}

.footer-social ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-social a {
    color: #6c757d;
    font-size: 24px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #495057;
}

@media (max-width: 480px) {
    footer {
        padding: 10px;
    }

    .footer-content p {
        font-size: 0.75em; /* Réduire encore la taille du texte sur très petits écrans */
    }

    nav.footer-nav ul {
        padding: 0;
    }

    nav.footer-nav li {
        margin: 8px 0;
    }
}

main {
    padding: 20px 0; /* Un peu de marge en haut et en bas du contenu */
}


/* Titres */
h1 {
    color: #34495e;
    margin-bottom: 20px;
    font-size: 2rem;
    text-align: center;
}

/* Liens */
a {
    color: #000000;  /* Remplacé par noir */
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* Liste sans puces */
ul {
    list-style: none;
    padding: 0;
}

li {
    margin-bottom: 15px;
}



/* Conteneur du formulaire de recherche */
.search-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Conteneur du formulaire de recherche */
.search-container {
    display: flex;
    justify-content: space-between;  /* Espacement entre les éléments */
    gap: 10px;  /* Espacement entre les éléments */
    width: 100%;  /* Largeur maximale pour occuper toute la largeur du parent */
}

/* Champ de saisie de la recherche */
.search-input {
    padding: 12px 16px;
    font-size: 1em;
    border: 2px solid #f3f4ef;
    border-radius: 25px;  /* Coins arrondis */
    outline: none;
    flex: 2;  /* Prendre 2/4 de la largeur */
    width: 100%;
    padding: 13px 16px;
}

/* Sélecteur du filtre */
.category-filter {
    padding: 12px 18px;
    font-size: 1em;
    border: 2px solid #f3f4ef;
    border-radius: 25px;
    outline: none;
    flex: 1;  /* Prendre 1/4 de la largeur */
    width: 100%;
}

/* Bouton de recherche */
.search-button {
    padding: 12px 18px;
    font-size: 1em;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    flex: 1;  /* Prendre 1/4 de la largeur */
    width: 100%;
}

/* Effet au survol du bouton */
.search-button:hover {
    background-color: #c33d2b;
}

/* Suppression des marges indésirables autour des champs de formulaire */
.search-form input, .search-form button {
    margin: 0;
}
/* Résultats de recherche */

/* Conteneur des résultats de recherche */
.results-container {
    width: 100%;  /* Prend toute la largeur de la page */
    max-width: 1200px;  /* Limite la largeur à 1200px (vous pouvez ajuster selon vos besoins) */
    margin: 0 auto;  /* Centrer le conteneur */
    padding: 0px;  /* Ajouter de l'espace autour du contenu */
}

.results-header {
    text-align: left;  /* Alignement à gauche */
    margin-bottom: 20px;
}

/* Titre */
.results-header h2 {
    font-size: 1.8em;
    color: #333;
}

/* Mettre en couleur le mot-clé de la recherche */
.results-header .search-term {
    color: #f04034;  /* Rouge que vous utilisez ailleurs */
    font-weight: bold;
}

/* Sous-titre */
.results-header p {
    color: #666;
}

/* Liste des résultats */
.results-list ul {
    list-style: none;
    padding: 0;
}

.results-list li {
    background-color: #fff;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.results-list .site-link {
    font-size: 1.5em;
    color: #4299e1;
    text-decoration: none;
}

.results-list .site-link:hover {
    text-decoration: underline;
}

.results-list .site-description {
    color: #777;
    font-size: 1em;
    margin-top: 5px;
}

/* Footer */
footer {
    text-align: center;
    padding: 10px 0;
    background-color: #fff; /* Couleur de fond beige */
    bottom: 0; /* Positionne le footer tout en bas */
    width: 100%; /* Prend toute la largeur de la page */
    left: 0; /* Assure que le footer est bien aligné à gauche */
    z-index: 10; /* S'assure que le footer soit au-dessus du reste du contenu */
}

/* Optionnel : Si tu veux laisser un peu d'espace en bas du contenu pour que le footer ne chevauche pas le contenu */
body {
    padding-bottom: 50px;  /* Ajuste selon la taille de ton footer */
}

header, footer {
    text-align: center;
}

/* Style du menu et logo dans l'en-tête */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px; /* Ajuste cette valeur selon la hauteur que tu souhaites pour le menu */
    z-index: 1000;
    background-color: #fff; /* Ajoute une couleur de fond pour éviter qu'il soit transparent */
    box-shadow: none; /* Retire l'ombre si elle génère un trait noir */
    display: flex;
    justify-content: center; /* Centrer le menu horizontalement */
    align-items: center; /* Centrer le menu verticalement */
    padding-top: 50px;

}



header img {
    height: 130px; /* Ajuste la taille du logo */
    width: auto;  /* Garde les proportions */
    vertical-align: middle;
}

nav {
    text-align: center;
    flex-grow: 1;
}

nav ul {
    display: flex;
    justify-content: center; /* Centrer les éléments de la liste */
    list-style: none;
    gap: 30px; /* Espacement entre les éléments du menu */
    padding: 0;
    margin: 0;
}

nav a {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

nav a:hover {
    color: #f04034; /* Changement de couleur au survol */
}


.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
/* ---- MOBILE ---- */
@media (max-width: 768px) {
    .submenu {
        display: none;
        flex-direction: column;
        padding-left: 20px;
        background-color: #fff;
        width: 100%;
    }

    .submenu.open {
        display: flex;
    }
}

/* Reset complet des styles pour le sous-menu */
@media (min-width: 769px) {
    .submenu,
    .submenu:before,
    .submenu:after,
    .submenu *,
    .submenu *:before,
    .submenu *:after {
        background-color: white !important;
        border-color: white !important;
        box-shadow: none !important;
    }

    /* Appliquer l'ombre uniquement au conteneur principal */
    .submenu {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08) !important;
    }

    /* Autoriser le survol avec couleur légèrement différente */
    .submenu a:hover {
        background-color: #f9f9f9 !important;
    }
}

/* ---- MOBILE ---- */
@media (max-width: 768px) {
    .submenu {
        display: none;
        flex-direction: column;
        padding-left: 20px;
        background-color: #ffffff !important; /* Fond blanc forcé */
        width: 100%;
        border: none !important; /* Pas de bordure */
        box-shadow: none !important; /* Pas d'ombre */
    }

    .submenu.open {
        display: flex;
    }

    /* Style pour les éléments et liens du sous-menu en mobile */
    .submenu li,
    .submenu a {
        background-color: #ffffff !important; /* Fond blanc forcé */
        border: none !important;
        color: #333; /* Couleur du texte */
    }

    /* Légère indentation pour montrer la hiérarchie */
    .submenu a {
        padding: 8px 0;
        font-size: 14px;
    }

    /* Animation d'ouverture plus douce */
    .submenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .submenu.open {
        max-height: 500px; /* Hauteur maximale pour l'animation */
    }

    /* Léger séparateur visuel pour le sous-menu */
    .submenu {
        border-left: 2px solid #f0f0f0 !important; /* Bordure subtile à gauche */
        margin-top: 5px;
        margin-bottom: 5px;
    }
}
/* Styles supplémentaires */
.home-container {
    text-align: center;
    padding: 50px 20px;
    margin-top: 50px;
    background-image:
            linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8)),
            url('/static/directory/images/background.png'); /* mets le bon chemin ici */
    background-size: cover;      /* adapte l'image à la taille du conteneur */
    background-position: center; /* centre l'image */
    background-repeat: no-repeat;
    padding: 1rem;               /* un peu d'espace autour du formulaire */
    border-radius: 1rem;         /* arrondis les bords si tu veux */
    overflow: hidden;
}

.home-banner {
    width: 100%;
    height: 300px; /* augmente la hauteur ici selon ton besoin (ex : 400px ou +) */
    background-image: url('/images/articles/sites-ecommerce-maroc.png');
    background-size: cover;      /* occupe toute la surface */
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 1rem;
    overflow: hidden;
    margin: 2rem 0;              /* espacement avec le reste */
}

.home-banner a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}



.home-section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
}

.product-detail-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 20px;
    max-width: 1000px;
    margin: auto;
}

.product-detail-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-info {
    text-align: center;
    padding: 10px;
}

.product-info h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #333;
}

.product-price {
    font-weight: bold;
    color: #cc0000;
    font-size: 1.4rem;

}

.product-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.ecommerce-site {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.ecommerce-site img.site-logo {
    height: 110px;
    width: auto;
    border-radius: 4px;
}

.btn-black {
    background-color: black;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-black:hover {
    background-color: #333;
}

/* Responsive */

@media screen and (min-width: 768px) {
    .product-detail-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
    }

    .product-info {
        text-align: left;
        flex: 1;
    }

    .product-detail-image {
        max-width: 450px;
    }
}
/* Styling for the Description section to limit height */
.info-item-description .description-content {
    /* These will be controlled by JS initially, but good to have as fallback */
    font-size: 0.95rem; /* Slightly smaller text for compactness */
    line-height: 1.6;
    color: #374151;
    transition: max-height 0.3s ease-out; /* Smooth transition */
    position: relative; /* For potential fade effect */
}

/* Optional: Add a fade effect at the bottom when truncated */
.info-item-description .description-content:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px; /* Height of the fade */
    background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
    pointer-events: none; /* Allows text selection underneath */
}


.toggle-description-btn {
    font-size: 0.875rem;
    padding: 0; /* Remove default button padding */
    border: none; /* Remove default button border */
    background: none; /* Remove default button background */
    text-decoration: underline; /* Make it look like a link */
    color: #d9366e; /* Your accent color */
    cursor: pointer;
    margin-top: 8px; /* Space from the description text */
    font-weight: 500;
}

.toggle-description-btn:hover {
    text-decoration: none; /* Remove underline on hover */
    color: #be2d5c; /* Darker accent on hover */
}

/* General improvements for the info-grid layout to make it more balanced */
.info-grid {
    display: grid;
    /* This will try to make two columns, adjusting based on content */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px; /* Spacing between items */
}

/* Make description item span full width if desired for better flow with the "read more" */
.info-item-description {
    grid-column: 1 / -1; /* This makes it span across all columns */
}

.info-item {
    background: #f9fafb; /* Light background for each info item */
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column; /* Stack label and value */
    justify-content: space-between; /* Push label to top, value to bottom if needed */
}

.info-label {
    font-weight: 600;
    color: #4b5563;
    font-size: 0.85rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    color: #111827;
    font-size: 0.95rem;
    word-break: break-word; /* Prevent long URLs from breaking layout */
}

.info-value a {
    color: #d9366e;
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}


/* Specific styling for Mila's review to ensure proper alignment and spacing */
.editorial-review.mila-style {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-bottom: 32px;
    position: relative;
}

.editorial-review.mila-style::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #d9366e;
    border-radius: 12px 12px 0 0;
}

.editorial-review.mila-style .container {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    gap: 20px; /* Space between avatar and text */
}

.mila-avatar .mila-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #f3f4f6;
    object-fit: cover;
    flex-shrink: 0;
}

.mila-comment {
    flex-grow: 1; /* Allow comment section to take available space */
}

.mila-comment h2 {
    font-size: 1.25rem;
    color: #111827;
    margin: 0 0 10px 0; /* Add bottom margin for spacing */
    font-weight: 600;
}

.mila-comment p {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 0; /* Remove default paragraph margin */
}

/* --- Responsive Adjustments for Mila's Review Section --- */
@media (max-width: 768px) { /* Adjust breakpoint as needed (e.g., 576px for smaller phones) */
    .editorial-review.mila-style .container {
        flex-direction: column; /* Stack avatar and text vertically */
        align-items: center;   /* Center items horizontally when stacked */
        text-align: center;    /* Center text within the comment section */
        gap: 15px;             /* Adjust gap for vertical stacking */
    }

    .mila-avatar {
        margin-bottom: 10px; /* Add some space below the avatar when stacked */
    }

    .mila-comment h2 {
        font-size: 1.1rem; /* Slightly reduce font size for mobile */
    }

    .mila-comment p {
        font-size: 0.95rem; /* Slightly reduce font size for mobile */
    }
}

/* You already have this for the main info grid, ensure it's present and correct */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr; /* Stack items on small screens */
    }

    .home-brands{
        display: none;
    }
}

@media (max-width: 768px) {
  .home-banner {
    height: 200px; /* un peu moins haut sur mobile */
    border-radius: 0.5rem;
  }
}



.main-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #fff;
}

.highlight {
    color: #fff; /* Couleur rouge pour "Parcourez" */
}

.subtitle {
    font-size: 1.2em;
    color: #fff;
    margin-bottom: 20px;
}



/* Style pour le bouton "Revenir en arrière" */
.back-button {
    display: flex;
    justify-content: flex-start;  /* Alignement à gauche */
    margin-top: 20px;
}

.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background-color: #000; /* Bleu */
    color: white;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin: 20px auto;  /* Centré avec un espacement vertical */
    display: block;
    width: max-content;
    transition: background-color 0.3s ease;
    margin-top: 10px;  /* Espacement entre la description et le bouton */
}

.btn-primary:hover {
    background-color: #000;
}

.back-link {
    display: flex;
    justify-content: center;  /* Alignement centré */
    margin-top: 20px;
}
/* Bouton de retour */
.back-button button {
    padding: 8px 15px;  /* Moins de padding pour un bouton plus discret */
    background-color: transparent;  /* Fond transparent pour plus de discrétion */
    color: #777;  /* Couleur de texte grise pour rendre le bouton plus discret */
    border: 1px solid #f3f4ef;  /* Bordure légère pour plus de finesse */
    border-radius: 5px;  /* Coins arrondis */
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;  /* Pour centrer la flèche et le texte */
    gap: 8px;  /* Espace entre la flèche et le texte */
}

/* Effet au survol */
.back-button button:hover {
    background-color: #f0f0f0;  /* Légère couleur de fond au survol */
    color: #444;  /* Texte un peu plus foncé */
    border-color: #aaa;  /* Changer la couleur de la bordure au survol */
}

/* Ajouter une flèche discrète */
.back-button button::before {
    content: '←';  /* Flèche à gauche du texte */
    font-size: 1.2rem;  /* Taille de la flèche */
    color: #777;  /* Couleur de la flèche */
}

.category-container {
    display: flex;
    justify-content: flex-start; /* Aligner à gauche */
    flex-wrap: wrap;
}

ul {
    list-style-type: none; /* Supprime les puces */
    padding-left: 0; /* Supprime le retrait à gauche */
}
li {
    list-style-type: none; /* Enlève les puces */
    padding-left: 0; /* Enlève le retrait à gauche */
}

/* Style pour la table */
table {
    width: 100%;
    border-collapse: collapse;
}

table td {
    padding: 8px 0; /* Ajoute de l'espace entre les lignes */
}

.category-detail-container {
    margin: 20px;
    padding: 10px;
    background-color: #fff;
}

.category-detail-container h1 {
    font-size: 20px;
    margin-bottom: 20px;
}
.red-text {
    color: #f04034; /* Couleur rouge */
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #000;
    text-decoration: none;
}

.site-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.site-card {
    background-color: white;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

.site-logo {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border: 1px solid #333;
}
/* Style pour centrer le logo */
.site-logo-detail {
    display: block;
    margin: 0 auto; /* Centrer horizontalement */
    max-width: 80%; /* Ajuster la taille */
    height: auto; /* Garder les proportions */
}
.site-description {
    flex-grow: 1;  /* Laisse de l'espace pour la description */
}
.site-name {
    font-size: 1.5rem;
    color: #333;
    text-decoration: none;
    margin-bottom: 10px;  /* Ajoute un peu d'espace sous le titre */
    flex-shrink: 0;  /* Empêche le titre de se réduire si l'espace est petit */
}

.site-link:hover .site-name {
    text-decoration: underline;
}

.site-description {
    font-size: 1rem;
    color: #666;
    margin-top: 10px;
}

.site-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.site-description {
    flex-grow: 1;  /* Laisse de l'espace pour la description */
}

.btn-primary {
    margin-top: auto;  /* Pousse le bouton vers le bas */
    align-self: center;
}

.site-logo {
    width: 200px;
    height: 200px;
}

.category-filter-container {
    margin-top: 10px;
    text-align: left;
}

.category-filter {
    width: 100%;
    padding: 8px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #f3f4ef;
}


.search-page .search-container {
    display: flex;
    justify-content: space-between;  /* Espacement entre les éléments */
    gap: 10px;  /* Espacement entre les éléments */
    width: 100%;  /* Largeur maximale pour occuper toute la largeur du parent */
}

/* Champ de saisie de la recherche sur la page de recherche */
.search-page .search-input {
    padding: 12px 18px;
    font-size: 1em;
    border: 2px solid #f3f4ef;
    border-radius: 25px;
    outline: none;
    flex: 2;  /* Prendre 2/4 de la largeur */
    width: 100%;
    padding: 13px 16px;
}

/* Sélecteur du filtre sur la page de recherche */
.search-page .category-filter {
    padding: 12px 18px;
    font-size: 1em;
    border: 2px solid #f3f4ef;
    border-radius: 25px;
    outline: none;
    flex: 1;  /* Prendre 1/4 de la largeur */
    width: 100%;
}

/* Bouton de recherche sur la page de recherche */
.search-page .search-button {
    padding: 12px 18px;
    font-size: 1em;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    flex: 1;  /* Prendre 1/4 de la largeur */
    width: 100%;
}

/* Effet au survol du bouton de recherche sur la page de recherche */
.search-page .search-button:hover {
    background-color: #c33d2b;
}


/* Conteneur du champ de recherche spécial pour la home page */
/* Conteneur du formulaire de recherche */
.home-search-container {
    display: flex;
    justify-content: center; /* Centrer le formulaire */
    align-items: center;
    width: 100%;  /* Largeur du conteneur de recherche */
    max-width: 1000px;  /* Limiter la largeur du conteneur */
    margin: 0 auto;  /* Centrer le conteneur horizontalement */
    padding: 0;  /* Padding autour du formulaire */
    margin-top: 1rem;

}

/* Effet au survol du bouton de recherche sur la page de recherche */
.search-container .search-button:hover {
    background-color: #3b3b3b;
}



/* Champ de saisie de la recherche */
.home-search-input {
    padding: 15px 20px;
    font-size: 1.2em;
    border: 2px solid #f04034;
    border-radius: 25px;
    outline: none;
    width: 75%;  /* Ajuste la largeur du champ par rapport au conteneur */
    max-width: 500px; /* Limite la largeur du champ de recherche */
    margin-right: 10px;
    padding: 13px 16px;
}

/* Bouton de recherche */
.home-search-button {
    padding: 15px 20px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Espacement entre l'icône et le texte */
    height: 44px; /* Hauteur uniforme pour le bouton */
    min-width: 120px; /* Assure que le bouton n'est pas trop petit */
}

.home-search-button span[aria-label="search"] {
    font-size: 13px;
}

.made-in-morocco-link {
    display: flex;
    align-items: center;
}

/* Style pour le menu */
nav ul {
    display: flex;
    justify-content: flex-end; /* Aligne les éléments du menu à droite */
    align-items: center; /* Centre verticalement les éléments du menu */
    padding: 0;
    list-style: none;
    margin: 0;
}

nav ul li {
    margin-left: 15px; /* Réduit l'espacement entre les éléments du menu */
}

.made-in-morocco-container {
    display: inline-flex; /* Aligne l'étoile et le texte en ligne */
    align-items: center; /* Aligne verticalement l'étoile et le texte */
    padding: 5px 10px; /* Ajoute de l'espace autour du texte et de l'étoile */
    background-color: white; /* Fond blanc */
    border: 2px solid  #c33d2b;; /* Bordure rouge */
    border-radius: 5px;
    transition: all 0.3s ease; /* Ajoute une transition fluide pour le survol */
}

.morocco-star {
    width: 20px; /* Taille de l'étoile */
    height: 20px; /* Taille de l'étoile */
    margin-right: 5px; /* Espacement entre l'étoile et le texte */
    transition: all 0.3s ease; /* Transition fluide pour l'étoile */
}

/* Texte "Made in Morocco" */
.made-in-morocco-text {
    color:  #c33d2b; /* Texte en rouge */
    font-weight: bold; /* Texte en gras */
    transition: all 0.3s ease; /* Transition fluide pour le texte */
}

/* Effet hover pour l'étoile et le texte */
.made-in-morocco-container:hover {
    background-color:  #c33d2b; /* Change le fond en rouge lors du survol */
    border-color: white; /* Change la bordure en blanc lors du survol */
}

.made-in-morocco-container:hover .morocco-star {
    transform: scale(1.2); /* Agrandit l'étoile légèrement lors du survol */
}

.made-in-morocco-container:hover .made-in-morocco-text {
    color: white; /* Change la couleur du texte en blanc lors du survol */
}

/* Effet actif pour la section en cours */
.made-in-morocco-container.active {
    background-color: #c33d2b; /* Fond rouge */
    border-color: white; /* Bordure blanche */
}

.made-in-morocco-container.active .morocco-star {
    transform: scale(1.2); /* Agrandissement de l'étoile */
}

.made-in-morocco-container.active .made-in-morocco-text {
    color: white; /* Texte en blanc */
}

nav ul li a {
    text-decoration: none;
    color: #333;  /* Couleur de texte normale */
    padding: 10px 15px;
    display: block;
    transition: color 0.3s ease;  /* Pour une transition en douceur */
}

nav ul li a:hover {
    color: #f04034;  /* Rouge personnalisé pour le hover */
}


/* Container principal de la page d'inscription */
.register-container {
    max-width: 500px;
    margin: 50px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Titre de la page */
.register-container h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

/* Groupes de formulaire */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #f04034;
    outline: none;
}

/* Erreurs de formulaire */
.alert {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.alert li {
    margin-bottom: 5px;
}

/* Bouton de soumission */
.submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #5f3a38;
}

/* Marge en bas du formulaire */
form {
    padding-bottom: 20px;
}



input[type="checkbox"] { 
    width: 25px; 
    height: 25px; 
    margin-right: 10px;  /* Espacement entre la checkbox et le texte */
    transform: scale(2); 
    margin: 5px; 
}

.form-group1 { 
    display: flex; 
    align-items: center; 
    font-size: 14px; 
    color: #555; 
}

.form-group1 input[type="checkbox"] { 
    width: 20px; 
    height: 20px; 
    margin-right: 10px; 
}

.form-group1 a { 
    color: #f04034; 
    text-decoration: none; 
}

.form-group1 a:hover { 
    text-decoration: underline; 
}


.checkbox-container {
    margin-top: 20px; /* Espacement avant les checkboxes */
}

.checkbox-item {
    margin-bottom: 15px; /* Espacement entre chaque case à cocher */
    display: flex;
    align-items: center;
}

.checkbox-item input {
    width: 20px; /* Taille de la case à cocher */
    height: 20px;
    margin-right: 10px; /* Espacement entre la checkbox et le label */
    box-sizing: border-box; /* Inclut le padding et la bordure dans les dimensions */
}

.checkbox-item label {
    font-size: 14px;
    line-height: 1.5; /* Espacement entre les lignes du label */
}

a {
    color: #000;
    text-decoration: none;
    
}

.btn-black {
    background-color: black;
    color: white;
    border: none;
    padding: 10px 20px;
    text-decoration: none; /* Enlève la soulignure */
    text-align: center;
    display: inline-block;
    border-radius: 5px; /* Arrondir les coins si tu veux */
}

.btn-black:hover {
    background-color: #333; /* Couleur plus claire au survol */
}
.site-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
/* Conteneur de chaque site */
.site-item {
    display: flex;
    align-items: center; /* Alignement vertical */
    background-color: #fff;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    gap: 15px; /* Espacement entre l’image et le texte */
}

/* Logo du site */
.site-logo-result {
    width: 80px;  /* Taille fixe */
    height: 80px;
    object-fit: contain;  /* Garde l’image entière */
    border-radius: 5px;
}

/* Conteneur du texte */
.site-info {
    flex: 1; /* Prend toute la place restante */
    display: flex;
    flex-direction: column;
}

/* Titre du site */
.site-link-result {
    font-size: 1.2em;
    color: #3f3f3f;
    font-weight: bold;
    text-decoration: none;
}

.site-link-result:hover {
    text-decoration: underline;
}

/* URL */
.site-description {
    font-size: 0.9em;
    color: #777;
}

/* Conteneur des catégories */
.category-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* Permet de passer à la ligne si nécessaire */
    justify-content: flex-start;
}


.results-list {
    list-style: none;
    padding: 0;
}

.site-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.site-content {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.site-logo-result {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

.site-info {
    flex-grow: 1;
}

.category-container-result {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.site-categorie-result {
    background-color: #f3f4ef;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    color: #333;
    text-decoration: none;
}


.site-categorie-result:hover {
    background-color: #f04034;
    color: white;
}

/* Menu principal en desktop */
.navbar {
    display: flex;
    justify-content: space-around;
}

/* Sous-menu mobile */
.submenu {
    display: none;  /* Caché par défaut */
    background-color: #444;
    padding: 10px 0;
    border-radius: 5px;
    margin-top: 5px;
    width: 100%;
}

.submenu li {
    padding: 10px;
    text-align: center;
}

.submenu li a {
    color: white;
    text-decoration: none;
}

.submenu li a:hover {
    color: #ff9800; /* Exemple d'effet au survol */
}

/* Menu burger caché sur desktop */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
}
.navbar.active {
    display: block;
}
.hamburger.active {
    background-color: #333; /* Change la couleur du hamburger lorsqu'il est activé */
}

.menu {
    display: flex;
    justify-content: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.menu li {
    margin: 0 15px; /* Ajouter un espace entre les éléments du menu */
}

/* Pour l'élément actif du menu */
.menu li a {
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
}

.menu li a, .auth-links a{
    font-weight: 600;
}

.menu li a:hover,
.menu li a.active {
    color: #f04034; /* Couleur d'activation ou au survol */
}

.logo-mobile {
    display: none; /* Cacher le logo sur desktop */
}


/* Affichage du logo dans le menu sur mobile */
@media (max-width: 768px) {
    .logo-mobile {
        display: block; /* Afficher le logo dans le menu hamburger sur mobile */
        text-align: center; /* Centrer le logo */
        margin-bottom: 20px; /* Un peu d'espace sous le logo */
        max-height: 80px;
    }
}

@media (min-width: 768px) {

    .home-search-button span[aria-label="search"] {
        display: none;
    }

    .search-input{
        padding: 13px;
    }

}

/* Menu burger et affichage du menu principal sur mobile */
@media (max-width: 768px) {

.home-search-container{
    border-radius: 0;
    box-shadow: none;
}

.search-container {
            padding: 15px;
        }

.search-input {
                height: 45px;
                font-size: 15px;
            }

.search-input::placeholder {
            color: #9ca3af;
            font-weight: 400;
        }


.home-search-button{
    min-width: 80px;
    height: 36px;
    padding: 10px;
    justify-content: center;
    font-size: 12px;
    border-radius: 4px;
    height: 44px;
    inline-size: 100%;
    border: 1px solid #fff;
}



    /* Menu principal caché par défaut */
    .navbar {
        display: none; /* Cacher le menu par défaut sur mobile */
        position: fixed;
        top: 0px; /* Positionner le menu sous le header */
        left: 0;
        height: 100%;
        width: 100%;
        background-color: #fff;
    }

    /* Affichage du menu activé */
    .navbar.active {
        display: block;
    }
    .menu {
        flex-direction: column; /* Alignement vertical sur mobile */
        margin-top: 0;
    }

    .menu li {
        padding: 5px 0;
        font-size: 18px;
    }

    .main-title {
        font-size: 28px; /* Taille réduite pour les écrans plus petits */
        white-space: normal;
        margin-top: 0px;
        margin-bottom: 10px;
    }
    .subtitle {
        font-size: 15px; /* Réduction légère pour les écrans plus petits */
        margin-bottom:0;
    }




    .menu a {
        padding: 15px;
        color: white;
        text-decoration: none;
        display: block;
        font-size: 18px;
        padding: 8px 0;
        transition: background-color 0.3s ease;
    }

    .menu a:hover {
        background-color: #555;
    }

    /* Sous-menu */
    .submenu {
        display: none;
        background-color: #444;
        width: 100%;
    }

    .menu li.active .submenu {
        display: block;
    }

    /* Bouton hamburger */
    .hamburger {
        display: block;
        background-color: #333;
        padding: 10px;
        color: white;
        border: none;
        font-size: 30px;
        cursor: pointer;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1001;
    }

    .hamburger.active {
        color: #aaa;
    }

    .hamburger:hover {
        color: #f0f0f0;
    }

    /* Header */
    header {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 0;
        padding-top: 55px;
    }

.new-header {
    display: flex;
}

.navbar {
    display: none;
}

@media (min-width: 768px) {
    .new-header {
        display: none; /* cache le header mobile sur desktop */
    }

    .navbar {
        display: flex;
        align-items: center;
        gap: 2rem;
    }

    .burger-dropdown {
        display: none !important;
    }
}


    /* Texte et titres */
    body {
        font-size: 16px;
        line-height: 1.6;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }
     main {
        margin-top: 0px; /* Ajouter plus d'espace entre le menu et le contenu */

    padding: 10px 0;
    }

    h1, h2, h3 {
        font-size: 25px;
        text-align: center;
        margin: 10px 0;
    }

    .search-container {
        padding: 0;
    }

    .search-container input,
    .home-search-input {
        width: 100%;
        margin-bottom: 10px;
        border-radius: 4px;
        font-size:15px;
        padding: 13px 16px;
    }

.intro-text {
    padding: 25px 30px;
    margin: 30px 0 40px 0;
    border-radius: 8px;
    font-size: 17px;
    line-height: 1.7;
    color: #2c3e50;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.search-input {
    font-size: 15.5px;
    }

    /* Liste des résultats */
    .site-item {
        display: flex;
        flex-direction: column;
        padding: 15px;
        border-bottom: 1px solid #ddd;
    }

    .site-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .site-info {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .site-logo-result {
        display: block;
        margin: 0 auto; /* Centre l'image horizontalement */
        max-width: 80px; /* Ajuste la taille si nécessaire */
        height: auto;
    }

    .site-link-result {
        font-size: 16px;
        font-weight: bold;
        color: #333;
        text-decoration: none;
    }

    .site-description-result {
        font-size: 14px;
        color: #666;
        word-break: break-word;
    }

    .category-container-result {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        justify-content: flex-end;
    }

    .site-categorie-result {
        font-size: 14px;
        background: #eee;
        padding: 5px 10px;
        border-radius: 5px;
        color: #333;
    }

    /* Grille d'affichage */
    .site-grid {
        grid-template-columns: 1fr;
    }

    .site-name {
        font-size: 16px;
    }

    .site-description {
        font-size: 12px;
    }

    .btn-primary {
        font-size: 12px;
        background-color: #000;
    }

    /* Conteneur global */
.site-detail-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
    padding: 40px 0;
    flex-wrap: wrap;
}


/* Responsive */
@media (max-width: 768px) {
    .site-detail-container {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .site-info, .site-instagram {
        flex: none;
        width: 100%;
    }

    .details-table {
        font-size: 14px;
    }
}

    .details-table td {
        font-size: 14px; /* Réduit la taille de la police sur les petits écrans */
    }

    .details-table td:first-child {
        width: 35%; /* Ajuste la largeur de la première colonne */
    }
    .banner {
        height: 150px; /* Réduit la hauteur sur les petits écrans */
    }

    .banner-image {
        object-position: center top; /* Ajuste la position de l'image pour qu'elle s'adapte mieux sur mobile */
    }

    .site-detail-container {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }

    /* Centrer le logo sur mobile */
    .site-logo-column {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 20px;
    }

    .site-logo-detail {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    

    .newsletter-container {
        padding: 15px;
        width: 90%;
    }

    .newsletter-input {
        width: 70%;  /* Réduit la largeur du champ de recherche */
        margin-right: 10px;
    }

    .newsletter-button {
        padding: 10px 15px;
        font-size: 1em;
    }
}
.madein-logo {
    width: 30px;  /* Ajuste la taille selon tes besoins */
    height: auto;
    margin-left: 10px; /* Ajoute un peu d'espace entre le texte et l'image */
    vertical-align: middle; /* Aligne verticalement l'image avec le texte */
}

.selection-mila {
    display: flex;
    align-items: center; /* Aligne verticalement l'image et le texte */
    gap: 20px; /* Espacement entre l'image et le texte */
    margin-bottom: 30px; /* Espacement sous le bloc */
    max-width: 1200px; /* Limite la largeur du bloc */
    width: 100%; /* Prend toute la largeur disponible jusqu'à la limite définie */
    padding: 0 20px; /* Padding de 20px à gauche et à droite */
    margin: 0 auto; /* Centre le bloc horizontalement */
}

.text-container {
    display: flex;
    flex-direction: column; /* Aligne le titre et le sous-titre verticalement */
    justify-content: flex-start; /* Aligne en haut */
    max-width: 100%; /* Assure que le texte prend tout l'espace disponible */
    padding: 0 20px; /* Padding pour éviter que le texte ne touche les bords */
}

.mila-logo {
    width: 100px; /* Taille de l'image */
    height: auto;
}

.selection-mila h2 {
    font-size: 2em; /* Taille du titre */
    color: #333; /* Couleur du texte */
    font-weight: 600; /* Poids du titre */
    margin: 0; /* Enlève la marge par défaut */
}

.selection-mila .subtitle {
    font-size: 1em; /* Taille plus petite pour le sous-titre */
    color: #777; /* Couleur plus claire pour le sous-titre */
    font-weight: 400; /* Poids plus léger pour le sous-titre */
    margin-top: 10px; /* Espacement au-dessus du sous-titre */
}

.products-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; /* centrer les blocs si la place le permet */
    margin-top: 20px;
    max-width: 1200px;
    padding: 0 20px;
    margin-left: auto;
    margin-right: auto;
}

.product {
    width: 300px;  /* Largeur fixe du bloc */
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;  /* Aligne les éléments verticalement */
    align-items: center;  /* Centre tout à l'intérieur du conteneur */
    justify-content: flex-start;  /* Aligne les éléments en haut */
}

.product:hover {
    transform: translateY(-10px);  /* Effet au survol */
}

.site-logo-result {
    width: 100px;  /* Ajuste la taille du logo */
    height: auto;  /* Maintient le ratio d'aspect */
    margin-bottom: 10px;  /* Espacement sous le logo */
}

.product-image {
    width: 100%;
    height: 200px;  /* Hauteur de l'image produit */
    object-fit: cover;  /* L'image garde ses proportions sans déformation */
    border-radius: 8px;
    margin-bottom: 20px;  /* Espacement sous l'image */
}


.price {
    font-size: 1.2em;
    color: #000000;  /* Couleur spécifique pour le prix */
    margin-bottom: 15px;
}

.product .btn {
    display: inline-block;
    padding: 12px 18px;
    background-color: #000;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
}

.product .btn:hover {
    background-color: #3b3b3b;
    transform: scale(1.05);
}


.site-source {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 10px;
    display: block;
    text-align: start;
    opacity: 0.8;
}

.banner {
    width: 100%;
    height: 200px; /* Taille de la bannière */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #fff; /* Une couleur de fond pour le cas où il y a des espaces vides */
}

.banner-image {
    width: 100%; /* L'image prendra toute la largeur de la bannière */
    height: 100%; /* L'image prendra toute la hauteur de la bannière */
    object-fit: contain; /* L'image est entièrement visible, sans être coupée */
    object-position: center; /* Centrer l'image dans la bannière */
}

/* Auth Links */
.auth-links {
    margin-left: 20px;
}

.auth-links a {
    color: #333;
    text-decoration: none;
    margin: 0 5px;
}

.auth-links a:hover {
    color: #f04034;
}

/* Account Dashboard Styles */
.account-dashboard {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-bottom: 50px;
}

.account-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.account-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.account-subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 0;
}

.account-sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.account-section {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.account-section:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.edit-link, .view-all, .add-review {
    color: #f04034;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.edit-link:hover, .view-all:hover, .add-review:hover {
    color: #d62b1f;
    text-decoration: underline;
}

/* Profile Details */
.profile-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-label {
    font-weight: 600;
    color: #555;
}

.profile-value {
    color: #333;
}

/* Wishlist Grid */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}


.wishlist-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.wishlist-item:hover {
    transform: translateY(-5px);
}

.item-image {
    height: 160px;
    overflow: hidden;
}

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

.item-details {
    padding: 15px;
}

.item-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-price {
    font-weight: 700;
    color: #f04034;
    margin-bottom: 5px;
}

.item-source {
    color: #777;
    font-size: 12px;
    margin-bottom: 12px;
}

.item-link {
    display: inline-block;
    padding: 5px 15px;
    background-color: #f04034;
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.item-link:hover {
    background-color: #d62b1f;
}

/* Styles pour la page de détail de site */

/* En-tête du site */
.site-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.site-logo-detail {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
}

.site-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.category-badge {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.visit-site-btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    background-color: #f04034;
    border-color: #f04034;
    transition: all 0.3s ease;
}

.visit-site-btn:hover {
    background-color: #d62b1f;
    border-color: #d62b1f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(214, 43, 31, 0.3);
}

/* Note moyenne et étoiles */
.average-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 0;
}

.rating-text {
    font-weight: 600;
    margin-right: 0.5rem;
    color: #333;
}

.star-rating-display {
    display: inline-flex;
}

.star {
    font-size: 1.25rem;
    margin-right: 2px;
}

.star.filled, .star.active, .star.hover {
    color: #FFD700;
}

.star.empty {
    color: #ccc;
}

/* Contenu principal */
.main-content {
    margin-bottom: 3rem;
}

/* Onglets d'information */
.info-tabs {
    margin-bottom: 2rem;
}

.nav-tabs .nav-link {
    color: #495057;
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: #f04034;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

.tab-content {
    background-color: #fff;
}

/* Grille d'information */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-item {
    padding: 0.5rem 0;
}

.info-label {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.info-value {
    color: #212529;
    font-weight: 500;
}

.info-value a {
    color: #f04034;
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

.social-link {
    display: inline-flex;
    align-items: center;
    color: #f04034;
    text-decoration: none;
}

.social-link i {
    margin-right: 0.5rem;
}

/* Carte d'avis */
.review-card {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f04034;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 0.75rem;
}

.reviewer-name {
    font-weight: 600;
    color: #333;
}

.review-rating {
    display: flex;
}

.review-content {
    margin-bottom: 1rem;
    color: #495057;
    line-height: 1.6;
}

.review-meta {
    color: #6c757d;
    font-size: 0.875rem;
}

.empty-reviews {
    text-align: center;
    padding: 2rem 0;
    color: #6c757d;
}

/* Sidebar pour le formulaire d'avis */
.sidebar-widget {
    background-color: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.widget-header {
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.widget-header h4 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.widget-content {
    padding: 1.5rem;
}

/* Formulaire d'avis */
.rating-container {
    margin-bottom: 1.25rem;
}

.rating-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.rating-stars {
    display: flex;
    flex-direction: row;
}

.rating-stars input[type="radio"] {
    display: none;
}

.rating-stars label.star {
    font-size: 1.75rem;
    color: #ccc;
    cursor: pointer;
    margin-right: 0.25rem;
    transition: all 0.2s ease;
}

.rating-stars label.star.active,
.rating-stars label.star.hover {
    color: #FFD700;
    transform: scale(1.1);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    min-height: 120px;
    font-family: inherit;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-group textarea:focus {
    border-color: #f04034;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(240, 64, 52, 0.25);
}

.btn-submit-review {
    background-color: #f04034;
    border-color: #f04034;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-submit-review:hover {
    background-color: #d62b1f;
    border-color: #d62b1f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(214, 43, 31, 0.3);
}

.login-prompt {
    text-align: center;
}

.login-prompt p {
    margin-bottom: 1rem;
    color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-card {

    }

    mai {

    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-rating {
        margin-top: 0.5rem;
    }

    .site-header .row {
        text-align: center;
    }
}

/* Account Actions */
.account-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.logout-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #f04034;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.logout-button:hover {
    background-color: #d62b1f;
}

.delete-account {
    color: #888;
    text-decoration: none;
    padding: 12px 0;
    font-size: 14px;
    transition: color 0.2s ease;
}

.delete-account:hover {
    color: #f04034;
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .account-dashboard {
        padding: 25px;
    }

    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .account-actions {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .logout-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .wishlist-grid {
        grid-template-columns: 1fr;
    }

    .profile-item {
        flex-direction: column;
        gap: 5px;
    }
}

.articles-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 20px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.article {
    width: 320px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    text-align: center;
}

.article:hover {
    transform: translateY(-5px);
}

.article img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #eee;
}

.article h2 {
    font-size: 1.5em;
    margin: 15px;
    color: #333;
}

.article p {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

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

.btn-read {
    display: inline-block;
    background-color: #000;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 500;
    margin-bottom: 15px;
    transition: background 0.3s ease;
}

.btn-read:hover {
    background-color: #813027;
}

/* Conteneur principal pour les collections */
.featured-article-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 20px;
  margin: 40px auto;
}

/* Style pour chaque article/collection */
.featured-article {
  width: 220px;
  text-align: center;
  margin-bottom: 30px;
}

/* Wrapper pour l'image avec bords arrondis */
.featured-image-wrapper {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  /* box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); */
  border: 1px solid #cecece;
}

/* Style pour l'image */
.featured-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-image:hover {
  transform: scale(1.05);
}

/* Style pour le titre de la collection */
.featured-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 12px;
  margin-bottom: 5px;
}

/* Style pour les liens */
.featured-title a {
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-title a:hover {
  color: #666;
}

/* Conteneur principal pour les collections */
.featured-article-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* Alignement à gauche */
  gap: 20px;
  margin: 40px auto;
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Style pour chaque article/collection */
.featured-article {
  width: 220px;
  text-align: center;
  margin-bottom: 30px;
}


/* Style pour l'image */
.featured-image {
  width: 100%;
  height: 270px;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.featured-image:hover {
  transform: scale(1.05);
}

/* Style pour le titre de la collection */
.featured-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 12px;
  margin-bottom: 5px;
}

/* Style pour les liens */
.featured-title a {
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-title a:hover {
  color: #666;
}

/* Adaptations pour tablettes */
@media screen and (max-width: 992px) {
  .featured-article-container {
    justify-content: space-around; /* Meilleure distribution sur tablette */
  }

  .featured-article {
    width: 180px; /* Légèrement plus petit sur tablette */
  }

  .featured-image {
    height: 220px;
  }
}

/* Adaptations pour mobile */
@media screen and (max-width: 576px) {
  .featured-article-container {
    justify-content: center; /* Centré sur très petits écrans */
    gap: 0px;
  }

  .featured-article {
    width: calc(50% - 15px); /* Deux éléments par ligne avec gap */
    margin-bottom: 0px;
  }

  .featured-image {
    height: 160px;
    display: block;
  }

  .featured-title {
    font-size: 0.95rem;
  }
}

/* Pour très petits écrans */
@media screen and (max-width: 350px) {
  .featured-article {
    width: 100%; /* Un seul élément par ligne */
  }

  .featured-image {
    height: 180px;
  }
}

/* Conteneur principal de l'article */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Arial', sans-serif;
}

.search-term {
    color: #f04034;  /* Rouge que vous utilisez ailleurs */
    font-weight: bold;
}


/* Image banner de l'article */
.article-detail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover; /* Permet à l'image de s'adapter sans déformer */
}

/* Titre de l'article */
.article-detail h1 {
    font-size: 2.5em;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

/* Date de création de l'article */
.article-detail p {
    font-size: 1em;
    color: #777;
    margin-bottom: 20px;
}

/* Contenu de l'article */
.article-detail .content {
    font-size: 1.2em;
    color: #333;
    line-height: 1.6;
    text-align: justify;  /* Justifie le texte pour un rendu plus soigné */
}

/* Section produits mis en avant */
#featured-products {
    margin-top: 50px;
}

#featured-products .text-container h2 {
    font-size: 2em;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}



/* Grille responsive des produits */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

/* Carte produit */
.product-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    aspect-ratio: 1;
    margin-bottom: 0px;
}

.product-info {
    padding: 16px;
    text-align: center;
}

.product-info h3 {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
    text-align: start;
}

.product-info .price {
    color: #333;
    font-weight: 600;
    margin-bottom: 0px;
    font-size: 16px;
    text-align: left;
}

/* Bouton */
.product-info .btn {

    display: inline-block;
    padding: 6px 10px;
    background-color: #000;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.product-info .btn:hover {
    background-color: #444;
}

.product-info .site-source {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 8px;
}/* Base styles for products grid */
.products-grid {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

/* Desktop grid - 4 columns */
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* Tablet grid - 3 columns */
@media (min-width: 769px) and (max-width: 1023px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

/* Mobile grid - 2 columns */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 15px;
    }
}

/* Product card styles */
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-link {
    display: block;
    flex: 1;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-info h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
}

.product-info h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.product-info h3 a:hover {
    color: #333;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.price {
    font-weight: 700;
    color: #e74c3c;
    font-size: 16px;
}

.brand {
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
}

.site-source {
    font-size: 12px;
    color: #333;
}

.site-source a {
    color: #333;
    text-decoration: none;
}

.buy-btn {
    background: #28a745;
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.buy-btn:hover {
    background: #b02a37;
    color: white;
}

.wishlist-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.9);
    padding: 6px;
    border-radius: 50%;
    color: #ccc;
    transition: color 0.3s ease;
    z-index: 2;
}

.wishlist-icon:hover {
    color: #dc3545;
}

/* Search and filters section */
.search-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: nowrap;
    align-items: center;
}

.search-input {
    flex: 2;
    min-width: 150px;
    padding: 13px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.category-filter {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 120px;
    flex: 1;
}

.search-button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.search-button:hover {
    background: #b02a37;
}

/* Filters styles */
.filters-container {
    margin-top: 15px;
}

.filter-toggle {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.filter-toggle:hover {
    background: #5a6268;
}

.filter-arrow {
    transition: transform 0.3s ease;
}

.filter-arrow.rotated {
    transform: rotate(180deg);
}

.filters-panel {
    display: none;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-top: 10px;
}

.filters-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.filter-select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.apply-filters-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.clear-filters-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .article-detail {
        padding: 0px;
    }

    .article-detail h1 {
        font-size: 18px;
    }

    .article-detail .content {
        font-size: 1em;
    }

    .featured-article {
        padding: 10px;
    }

    .featured-article img {
        height: 220px;
    }

    .featured-content h2 {
        font-size: 1em;
    }

    .featured-content p {
        font-size: 1em;
    }

    .featured-content a {
        font-size: 1em;
    }

    /* Mobile search optimizations */
    .search-section {
        padding: 15px;
    }

    .search-container {
        flex-direction: column;
        gap: 8px;
    }

    .search-input,
    .category-filter {
        width: 100%;
        min-width: unset;
        margin-bottom: 10px;
    }

    .search-button {
        width: 100%;
    }

    /* Mobile filters optimizations */
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .filter-actions {
        flex-direction: column;
        gap: 8px;
    }

    .apply-filters-btn,
    .clear-filters-btn {
        width: 100%;
    }

    /* Mobile product card optimizations */
    .product-card {
        border-radius: 6px;
        box-shadow: unset;
    }

    .product-image {
        height: 120px;
    }

    .product-info {
        padding: 16px;
        gap: 6px;
    }

    .product-info h3 {
        font-size: 13px;
        line-height: 1.2;
    }

    .price {
        font-size: 14px;
    }

    .brand {
        font-size: 11px;
    }

    .site-source {
        font-size: 11px;
    }

    .buy-btn {
        padding: 5px 8px;
        font-size: 10px;
    }

 .wishlist-icon {
    top: 6px;
    right: 6px;
    padding: 4px;
    height: 30px;
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wishlist-icon .fa-heart {
    font-size: 16px;
        margin-top: 3px;
}
}

/* Very small screens */
@media (max-width: 480px) {
    .products-grid {
        gap: 8px;
    }

    .product-image {
        height: 100px;
    }

    .product-info h3 {
        font-size: 12px;
    }

    .price {
        font-size: 13px;
    }
}

.text-center {
    text-align: center;
    margin: 0;
}

#newsletter .newsletter-container {
    max-width: 600px;
    margin: 0 auto;
}

#newsletter h3 {
    font-size: 2em;
    margin-bottom: 10px;
}

#newsletter p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
}

#newsletter form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

#newsletter input {
    padding: 15px;
    font-size: 1em;
    border: 2px solid #000000;
    border-radius: 30px;
    margin-right: 10px;
    width: 50%;
    max-width: 400px;
    outline: none;
}

#newsletter button {
    padding: 15px 20px;
    font-size: 1.2em;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
}

#newsletter button:hover {
    background-color: #3b3b3b;
}
#newsletter-section {
    background-color: #f9f9f9;
    padding: 20px;
    margin-top: 50px;
    text-align: center;
}

#newsletter-section input[type="email"] {
    padding: 10px;
    font-size: 1em;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 60%;
    max-width: 400px;
}

#newsletter-section button {
    padding: 10px 20px;
    background-color: #f04034;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}
/* Conteneur général des messages */
.alert-container {
    margin-top: 20px;
    width: 100%;
    text-align: center;
}

/* Message de succès */
.alert.success {
    background-color: #4CAF50; /* Vert pour le succès */
    color: white;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    margin: 10px auto;
    display: inline-block;
    max-width: 80%;
}

/* Message d'erreur */
.alert.error {
    background-color: #c15f58; /* Rouge pour l'erreur */
    color: white;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    margin: 10px auto;
    display: inline-block;
    max-width: 80%;
}

/* Si le message est un avertissement */
.alert.warning {
    background-color: #ff9800; /* Orange pour l'avertissement */
    color: white;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    margin: 10px auto;
    display: inline-block;
    max-width: 80%;
}

.alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
    padding: 10px;
    border: 2px solid black;
    border-radius: 8px;
    background-color: white;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.alphabet-letter {
    text-decoration: none;
    color: black;
    font-weight: bold;
    padding: 8px 12px;
    border: 1px solid black;
    border-radius: 4px;
    transition: background 0.3s, transform 0.2s;
    font-size: 12px;
    display: inline-block;
    text-align: center;
    min-width: 30px;
}

.alphabet-letter:hover, .alphabet-letter.active {
    background: black;
    color: white;
    transform: scale(1.1);
}

/* Responsive pour tablettes */
@media (max-width: 768px) {
    .alphabet-filter {
        gap: 4px;
        padding: 8px;
    }
    
    .alphabet-letter {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Responsive pour mobiles */
@media (max-width: 480px) {
    .alphabet-filter {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
        gap: 8px;
    }

    .alphabet-letter {
        text-align: center;
        font-size: 12px;
        padding: 6px;
        border-radius: 6px;
    }
}
.reset-filter {
    text-decoration: none;
    color: red;
    font-weight: bold;
    padding: 8px 12px;
    border: 1px solid red;
    border-radius: 4px;
    transition: background 0.3s, transform 0.2s;
    font-size: 14px;
    display: inline-block;
    text-align: center;
    margin-left: 10px;
}

.reset-filter:hover {
    background: red;
    color: white;
    transform: scale(1.1);
}

.alphabet-filter-title {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 8px;
}


#featured-products {
    margin: 40px 0;
    text-align: center;
}

.text-container h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.products-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.product {
    width: 280px; /* Blocs plus larges */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    text-align: center;
    transition: transform 0.3s ease;
}

.product:hover {
    transform: scale(1.05);
}

.product img {
    width: 100%;
    height: auto;
    max-height: 200px; /* Taille ajustée pour éviter les images trop grandes */
    object-fit: contain;
    border-radius: 8px;
}

.product p {
    font-size: 1.1rem;
    margin: 10px 0;
}

.price {
    font-weight: bold;
    color: #000; /* Couleur mise à jour */
}

.btn {
    display: inline-block;
    padding: 10px 14px;
    margin-top: 12px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
}

.btn:hover {
    background: #555;
}

/* 📱 Version mobile */
@media (max-width: 768px) {
    .products-container {
        flex-direction: column;
        align-items: center;
    }

    .product {
        width: 95%;
    }
}


/* Style global pour aérer le contenu */
#made-in-morocco {
    margin-top: 80px;
    overflow-x: hidden; /* Empêche les éléments de dépasser horizontalement */
    text-align: center;
}

#made-in-morocco h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

#made-in-morocco .highlighted-title {
    text-decoration: none;
    color: inherit;
    font-weight: bold;

}

.made-in-morocco-carousel {
    width: 100%; /* Prendre toute la largeur disponible */
    max-width: 1200px; /* Limite la largeur pour éviter le débordement */
    margin: 0 auto; /* Centre le carrousel horizontalement */
}

/* Configuration de base du swiper */
.swiper-container {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

/* Style de base des slides */
.swiper-slide {
    flex-shrink: 0;
    width: 280px; /* Largeur standard pour desktop */
    height: auto; /* Hauteur automatique basée sur le contenu */
    box-sizing: border-box;
    padding: 0 5px; /* Réduit le padding horizontal */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Style des produits dans le carrousel */
.swiper-slide .product {
    width: 100%; /* Prend toute la largeur du slide */
    max-width: 260px; /* Limite maximale */
    margin: 0 auto; /* Centrage */
    padding-bottom: 10px; /* Ajoute un peu d'espace en bas */
}

/* Style pour l'image du produit */
.swiper-slide .product img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block; /* Élimine l'espace sous l'image */
}

/* Styles spécifiques aux carrousels */
.mila-carousel, .made-in-morocco-carousel {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px; /* Ajout de marge en bas */
}

/* Ajustement pour la grille */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .swiper-slide {
        width: 50%; /* Affiche 2 produits par vue */
        padding: 0 3px;
    }

    .swiper-slide .product {
        max-width: 100%;
    }

    /* Réduire la hauteur du swiper sur mobile */
    .swiper-container {
        height: auto !important; /* Force la hauteur à s'adapter au contenu */
    }

    /* S'assurer que le swiper ne crée pas d'espace excessif */
    .swiper-wrapper {
        height: auto !important; /* Important pour empêcher une hauteur excessive */
    }
}

/* Pour les très petits écrans */
@media (max-width: 480px) {
    .swiper-slide {
        width: 65%; /* Affiche environ 1.5 produits par vue */
    }

    .swiper-slide .product {
        max-width: 100%;
    }
}

.site-logo {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Bouton "Voir tout" minimaliste */

#made-in-morocco .link-container,
#selection-mila .link-container{
    display: flex;
    justify-content: flex-end; /* Aligne le bouton à droite */
    margin-top: 20px;
}

#made-in-morocco .btn-link-home,
#selection-mila .btn-link-home{
    font-size: 13px;
    text-decoration: none;
    color: #000;
    padding: 10px 20px;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: underline;
}

/* Alternative avec positionnement absolu */
#selection-mila h2 {
    position: relative; /* Permet le positionnement absolu des enfants */
    font-size: 1.5rem;

}

#selection-mila .link-container {
    position: absolute;
    right: 0;
    top: 0; /* Ajustez cette valeur selon vos besoins */
}

/* Change de couleur lors du survol */
#made-in-morocco .btn-link-home:hover {
    color: #3f3f3f;
    text-decoration: underline;
}



/* Ajustements pour mobile */
@media (max-width: 768px) {
    #made-in-morocco {
        padding: 0px;
        margin-top:0;
    }

    #made-in-morocco h2 {
        font-size: 1.5rem;
    }

    /* Réduire l'espacement entre les éléments de la grille sur mobile */
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }

    .btn-link-home {
        font-size: 0.9rem;
    }
}

.account-card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  margin-top: 30px;
  max-width: 1200px;
  margin: 30px auto;
}

.account-card {
  width: calc(33.333% - 20px);
  background-color: #ffffff;
  overflow: hidden;
  transition: opacity 0.3s ease;
  position: relative;
  border: none;
}

.account-card:hover {
  opacity: 0.9;
}

.account-image-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: 15px;
}

.account-card-image {
  width: 100%;
  /* Increased height for taller images */
  height: 400px;
  object-fit: cover;
  display: block;
}

.account-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25));
  pointer-events: none;
}

.account-card-content {
  padding: 0;
}

.account-card-title {
  font-size: 1.2em;
  font-weight: 700;
  margin-bottom: 8px;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.account-card-description {
  font-size: 0.9em;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.4;
  /* Truncate the description to a single line */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-now-btn {
  display: inline-block;
  padding: 8px 20px;
  /* More rounded corners for buttons */
  border-radius: 25px;
  border: 1px solid #000;
  color: #000;
  text-decoration: none;
  font-size: 0.9em;
  text-transform: capitalize;
  transition: background-color 0.3s;
}

.shop-now-btn:hover {
  background-color: #f5f5f5;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
  .account-card {
    width: 100%;
    margin-bottom: 30px;
  }
}
.bottom-nav {
    display: flex;
    justify-content: space-around;
    background: white;
    border-top: 1px solid #ddd;
    padding: 8px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

.bottom-nav a {
    text-decoration: none;
    color: inherit;
    flex: 1;
    text-align: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #888;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
    fill: #666

}


/* Quand actif : texte ET icône en rouge */
.bottom-nav .active .nav-item {
    color: #E34234;
}

.bottom-nav .active .nav-item svg {
    fill: #E34234;
}

@media (min-width: 769px) {
    .bottom-nav {
        display: none;
    }
}

/* FAQ Page Styles */
.faq-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.faq-content h1 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-item h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* MEDIA QUERIES pour le responsive */
@media (max-width: 768px) {
    .faq-content {
        padding: 15px;
    }

    .faq-content h1 {
        font-size: 1.8em;
    }

    .faq-item h2 {
        font-size: 1.3em;
    }

    .faq-item p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .faq-content {
        padding: 10px;
    }

    .faq-content h1 {
        font-size: 1.6em;
    }

    .faq-item h2 {
        font-size: 1.2em;
    }

    .faq-item p {
        font-size: 0.9em;
    }
}
/* Style de base */
.contact-container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

/* Formulaire de contact */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 5px;
    font-size: 1em;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

/* Formulaire de contact */
.contact-form textarea {
    padding: 10px;
    font-size: 1.2em; /* Augmenter la taille du texte dans le champ de message */
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    resize: vertical;
}
.contact-form button {
    padding: 10px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #555;
}

/* Messages d'alerte */
.messages p {
    background-color: #f4f4f4;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    color: #333333;
}

/* Styles responsives */
@media (max-width: 768px) {
    .contact-container {
        width: 90%;
    }

    .contact-form button {
        font-size: 1.1em;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 1em;
    }

    .contact-form .form-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .contact-container {
        width: 95%;
    }

    h1 {
        font-size: 1.5em;
    }

    .contact-form {
        gap: 10px;
    }

    .contact-form button {
        width: 100%;
        padding: 12px;
        font-size: 1.2em;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 1.1em;
    }
}

.heading-text {
  font-family: sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.2;
  color: #000;
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1rem;
}


/* Adaptation pour mobile standard (moins de 576px) */
@media screen and (max-width: 768px) {
  .featured-article-container {
    justify-content: center; /* Centrer les articles */
    gap: 12px; /* Espacement entre les articles */
    width: 100%; /* Utilisation de toute la largeur disponible */
    padding: 0;
  }

  /* Chaque article prendra 100% de la largeur (1 par ligne sur très petit écran) */
  .featured-article {
    width: calc(50% - 6px);
    margin-bottom: 0px; /* Un peu d'espace en bas des articles */
    padding: 10px 0px;
  }

  /* Taille de l'image réduite pour s'adapter à l'écran */
  .featured-image {
    height: 160px; /* Ajuster la hauteur de l'image pour l'affichage mobile */
  }

  /* Titre plus petit sur mobile */
  .featured-title {
    font-size: 0.95rem;
  }
}

/* Pour les très petits écrans, 1 article par ligne */
@media screen and (max-width: 360px) {
  .featured-article {
    width: 100%; /* Un article par ligne */
  }

  /* Ajuster la taille de l'image pour des écrans très petits */
  .featured-image {
    height: 180px;
  }
}









.home-search-container .search-input-form {
    padding: 12px 16px;
    font-size: 15.5;
    border: 2px solid #f3f4ef;
    border-radius: 25px;
    outline: none;
    flex: 2;  /* Take 2/4 of the width */
    width: 100%;
    margin-right: 8px;
    height: 55px;
}



@media (max-width: 768px) {
    .home-search-container .search-input-form{
        margin-bottom: 0px;
        font-size: 15.5px;
        border-radius: 4px;
        height: 45px;
        min-width: 100%;
        margin: 0;
    }
    
    .search-page .home-search-container{
        gap: 16px;
        flex-wrap: wrap;
    }

    .search-page .home-search-button{
        min-width: 100%;
    }
}