/* styles.css - Version finale complète */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-dark: #003366;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--gray-50);
    min-height: 100vh;
}

.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Nouvelle classe pour encadrer les sections de texte en blanc */
.text-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
}

.text-card:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}
.text-card a, .category-card a {
    text-decoration: none;
}

/* ---- NAVBAR FIXES ---- */
.navbar {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5.1rem;
    width: 100%;
    padding: 0 1rem;
}

.nav-left {
    display: flex;
    /*flex: 0 0 auto;*/
    align-items: center;
    gap: 0.5rem;
    margin-right: 30px; /* Ajoute de l'espace à droite du logo */
}

/* Ajustement du logo vers la gauche */
.nav-left .logo {
    margin-right: 30px;  /* Augmente l'espace à droite du logo */
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
    font-weight: bold;
}

/* Logo normal (desktop) */
.logo {
    font-weight: 700;
    color: var(--primary);
    
    /*color: #708090;
    color: #663399;*/
    margin-top: 10px;
    text-decoration: none;
    line-height: 0.7;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    overflow: visible;
    margin-left: -0.25rem;
    white-space: nowrap; /* Empêche le saut de ligne sur desktop */
}

/* Menu de navigation central */
.nav-middle {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 25px;
    margin: 0 15px;
    /*gap: 1rem;*/
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    padding: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
}

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

/* Correction pour les icônes - masquer email-icon pour afficher le search */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.7rem;
    margin-left: 32px;
}

.email-icon {
    display: none; /* Masqué pour donner de l'espace à la recherche */
}

.donation-icon {
    color: var(--primary);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    width: 1.5rem;
    height: 1.5rem;
}

.donation-icon:hover {
    color: var(--primary-dark);
    transform: scale(1.1);
}

/* Correction pour la recherche - largeur réduite */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-container input {
    padding: 0.4rem 1.9rem 0.4rem 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    outline: none;
    width: 110px; /* Largeur réduite */
    font-size: 0.9rem;
}

.search-container i {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Correction du menu hamburger */
.mobile-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.25rem 0.5rem;
    border: none;
    background: transparent;
    color: var(--gray-600);
}

/* ---- HERO SECTION ---- */


.hero {
    background-color: var(--primary);
    /*background-color: #94857b;*/
    /*background-color: #706a66; */
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

.donate-button {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 16px;  /* Padding augmenté */
    font-size: 16px;    /* Taille de police augmentée */
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.donate-button:hover {
    background-color: #c0392b;
    transform: scale(1.05);  /* Effet léger d'agrandissement au survol */
}

/* Styles spécifiques pour chaque catégorie */
.kitchen-hero, .cleaning-hero, .smart-home-hero, .garden-hero {
    background-color: var(--primary);
    /*background-color: #777370;*/
    background-image: linear-gradient(135deg, transparent, rgba(0, 0, 0, 0.2));
}

/* En-tête de recherche */
.search-hero {
    background-color: #f7f9fc;
    padding: 40px 0;
    margin-bottom: 30px;
}

.search-hero h1 {
    margin-bottom: 10px;
    color: #333;
}

#searchQueryDisplay {
    font-size: 18px;
    color: #555;
}

#searchQueryDisplay strong {
    color: #2962ff;
}

.search-results-count {
    margin-bottom: 20px;
    font-size: 16px;
    color: #666;
}

/* Grille de produits */
#searchResults {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

/* ---- MAIN CONTENT ---- */
/*
.main-content {
    padding: 3rem 0;
}
*/
.main-content h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 2.5rem 0;
    width: 100%;
    animation: fadeInDown 0.8s ease-out;
}

.main-content h2::after {
    content: '';
    position: absolute;
    bottom: 1rem;
    left: 10%;
    width: 150px;
    height: 4px;
    border-radius: 3px;
}

.rotation-timer {
    text-align: right;
    margin: 10px 0;
    padding: 5px 10px;
    background-color: #f8f8f8;
    border-radius: 4px;
    font-weight: bold;
    color: #555;
}

/* ---- FEATURED PRODUCTS ---- */
#featuredProducts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    /*grid-template-columns: repeat(auto-fit, minmax(500px, 500px));*/
    gap: 1rem;
    margin: 2rem auto;
    max-width: 1600px;
    padding: 0 1rem;
    width: 100%;
    justify-content: center;
}

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

.products-container {
    /*display: grid;
    grid-template-columns: repeat(3, 420px);
    gap: 1rem;
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    margin: 2rem auto;
    padding: 0 1rem;
    align-items: center;
    justify-content: center;*/

    display: grid;
    grid-template-columns: repeat(3, 400px); /* 3 colonnes de 500px chacune */
    gap: 1rem;
    justify-content: center; /* Centre les colonnes horizontalement */
    width: fit-content;
    margin: 20 auto; /* Centre le conteneur lui-même */
}

.product-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #eee;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.product-image {
    width: 100%;
    height: 280px;
    /*object-fit: cover;*/
    object-fit: contain;
    margin: 10px auto;
  }

.products-container > * {
    width: 100%;
    height: 100%;
}

.product-content {
    display: flex;
    padding: 1.5rem;
    flex-direction: column;
    flex-grow: 1;
}

.product-content h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #333;
}

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

.product-price {
    /*color: #16a34a;*/
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    background-color: #484949;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(71, 63, 63, 0.3);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #fbbf24;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.review-count {
    color: var(--gray-600);
    font-size: 0.8rem;
}

.features-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.features-list li {
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

/* ---- SEARCH RESULTS ---- */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
}

.search-result-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-result-item:hover {
    background-color: var(--gray-50);
}

/* ---- PRODUCT DETAILS ---- */
.product-detail-view {
    padding: 2rem;
}

.product-detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.product-detail-actions {
    margin-top: 2rem;
    text-align: center;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-controls select {
    padding: 0.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    background-color: white;
}

.read-more-btn:hover {
    background-color: var(--primary-dark);
}

/* ---- CATEGORIES SECTION ---- */
.categories-section {
    margin-top: 3rem;
    padding: 2rem 0;
    /*color: white;
    background-color: #ffffff;*/
}

.categories-grid {
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(700px, 700px));*/
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin: 0 auto;
    width: 100%;
    justify-content: center;
    max-width: 1600px;
}

/* Assure que toutes les cartes ont la même largeur */
.categories-grid > * {
    width: 100%;
}

/* Modification pour largeur égale et espacement standard */
.category-card {
    text-align: center;
    align-items: center;
    background: white;
    padding: 2rem; /* Padding augmenté */
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);*/
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.75rem; /* Espacement entre les cartes */
    width: 100%; /* Largeur égale */
    min-height: 80px; /* Hauteur minimale pour l'uniformité */
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 3px solid var(--pprimary);
    max-width: 1800px;
    /*background: linear-gradient(to bottom right, white, #f9fafb);*/
}

#categoryGrid .category-card{
    font-size: 1.5rem;
    font-weight: 700;
    color:rgb(0, 0, 0);
} 

#categoryGrid a {
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gray-800);
    transition: color 0.3s ease;
}

#categoryGrid a:hover {
    color: var(--primary); /* Changement de couleur au survol */
}

.category-card::after { 
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.1); /* Ombre bleue au survol */

}

.category-card:hover::after {
    opacity: 0.15;
}

.no-underline {
    text-decoration: none;
    }

/* ---- MODAL STYLES ---- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    overflow-y: auto;
}

.modal-body {
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
    opacity: 0.7;
}

.modal-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    display: flex;
    justify-content: flex-start;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1rem;
}

/* ---- FOOTER ---- */

.footer {
    background-color: var(--gray-800);
    /*background-color: #333;*/
    color: var(--gray-50);
    /*padding: 3rem 0;*/
    padding: 48px 0;
    margin-top: 4rem;
    font-size: 1rem;
}
.footer h3 {
    color: rgb(247, 243, 243);
    margin-bottom: 15px;
    font-size: 18px;
}

.footer p {
    padding-top: 15px;
    color: rgb(92, 90, 90);
    margin-bottom: 15px;
}

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

.footer ul li {
    margin-bottom: 8px;
    color: white;
}

.footer .footer-section a {
    color: #bebcbc;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 0 1rem;
    color:#c0c0c0;
    
}
/*
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}*/

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #d4d2d2;
    
}

.footer-section p {
    color: var(--gray-400);
    color: #c2bdbd;
    margin-bottom: 1rem;
    font-size: 1.1rem;
  
}

.footer-section ul  {
    list-style: none;
    text-align: none;
}


.footer-section ul li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}
.footer-section{

    color: #c9c8c8;
}


.footer-section ul li:hover {
    color: rgb(26, 26, 29);
}

/* Correction pour le copyright dans le footer */
.copyright {
    display: block;
    margin-bottom: 20px !important;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

/* Espace entre submit et copyright */
.footer-section input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-section input:focus {
    outline: none;
    border-color: var(--primary);
}

.footer-section button{
    font-size: 1.5rem;
    border-radius: 0.35rem;
    width: 145px;
} 

.footer-section button[type="submit"] {
    margin-bottom: 15px;
}

.form-container {
    background-color: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: var(--gray-600);
}

.contact-form p{
    text-align: center;
   }

input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* ---- REVIEWS ---- */
.full-review h3 {
    margin: 1.5rem 0 0.5rem 0;
}

.full-review ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.full-review p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* ---- PRODUCT ACTIONS ---- */
.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.2rem;
    justify-content: space-between;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.full-review-content {
    padding: 0 2rem 2rem;
}

.affiliate-button-container {
    text-align: center;
    margin-top: 2rem;
    align-items: center;
}

.affiliate-button-container .buy-now-btn {
    display: inline-block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.read-more-btn, .buy-now-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: background-color 0.3s ease;
}

.read-more-btn {
    background-color: var(--primary);
    /*background-color: #626362;*/
    color: white;
    border: none;
}

.buy-now-btn {
    background-color: #484949;
    color: white;
    border: none;
    align-items: center;
}

.back-btn {
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background-color: #e9ecef;
}

#newsletterForm button {
    margin-top: 5px;
    background-color: #232523;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #45a049;
}

.full-review {
    padding: 1.5rem;
}

.full-review p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.full-review h1, .full-review h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 1rem;
}

.full-review h3 {
    color: #0c0c0c;
    margin: 1.5rem 0 0.5rem;
}

.full-review ul {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.full-review li {
    margin-bottom: 0.5rem;
}

.read-more-btn:hover {
    background-color: var(--primary-dark);
}

.buy-now-btn:hover {
    background-color: #1b1714f6;
}

.product-features {
   margin: 1.5rem;
   flex-grow: 1;
}

.product-features h4 {
    margin: 1rem 0 0.5rem;
    font-size: 1rem;
    color: #555;
}

.product-features ul {
    margin: 0;
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.product-features li {
    margin-bottom: 0.25rem;
    color: #666;
}

.review-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.buy-now-btn {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: var(--gray-300);
}

.product-title {
    
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: green;
}



/* ---- PRODUCT GRID ---- */
.products-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    /*grid-template-columns: repeat(auto-fill, minmax(500px, 500px));*/
    gap: var(--gray-100);
    /*gap: 0.5rem;*/
    max-width: 1600px;
    padding: 0 1rem;
    margin: 2rem auto;
    justify-content: center;
}

.category-header {
    margin-bottom: 1.5rem;
}

.category-header h2 {
    font-size: 2.5rem;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

/* Styles pour le badge de catégorie */
.category-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    color: white;
    margin-left: 10px;
    position: relative;
    top: -1px;
}

/* Couleurs pour différentes catégories */
.category-kitchen {
    background-color: #e74c3c; /* Rouge */
}

.category-cleaning {
    background-color: #3498db; /* Bleu */
}

.category-smart-home {
    background-color: #2ecc71; /* Vert */
}

.category-garden {
    background-color: #f39c12; /* Orange */
}

/* Style par défaut pour les autres catégories */
.category-default {
    background-color: #95a5a6; /* Gris */
}

/* Style pour le titre "Search Results" en blanc */
.search-hero h1 {
    color: white;
}

/* Si vous voulez également que le texte "Results for: X" soit en blanc */
#searchQueryDisplay p {
    color: white;
}

#searchQueryDisplay strong {
    color: white;  /* Remplace la couleur bleue par défaut */
    font-weight: 600;  /* Garder le texte bien visible */
}

/* ---- CONTEXTUAL NAVIGATION ---- */
.contextual-navigation {
    margin: 2rem 0;
    padding: 1rem;
    background-color: #f5f7fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.related-categories h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #333;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.nav-link2 {
    color: #2e85e9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.current-category {
    font-weight: bold;
    color: #333;
}

/* ---- CATEGORY INTRODUCTION ---- */
#category-introduction {
    
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    text-align: center;
}

#category-introduction h2 {
    margin-bottom: 1rem;
    color: #333;
}

/* ---- CATEGORY CONTENT ---- */
.category-content {
    /*border-top: 1px solid #eee;*/
    justify-content: center;
    padding-bottom: 0.5rem;
    margin-bottom: 3rem;
}

#category-introduction p{
    text-align: center;
}
.category-content{
    background-color: #fff;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}
.category-content h2 {
    margin-bottom: 1.7rem;
    color: #333;
}

.category-content h2 + p {
    margin-bottom: 1.7rem;
    
}
.smarthome {
    margin-bottom: 1.7rem;
}

.category-content h3 + p {
    margin: 1.5rem 0.5rem 1.75rem;

    color: #4a4a4a;
}

.category-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.category-content li {
    margin-bottom: 0.5rem;
}

/* ---- RESPONSIVE STYLES ---- */
@media (max-width: 768px) {
    /* Navigation mobile */
    .nav-content {
        padding: 0 0.5rem;
        position: relative;
    }
    
    .mobile-menu {
        display: block;
    }
    
    /* Logo sur deux lignes en mode mobile */
    .logo {

        font-size: 2.0rem;
        font-weight: bold;
        color: var(--primary);
        text-decoration: none;
        /*
        display: flex;
        flex-direction: column;
        width: 100%;
        font-size: 0.7rem;
        margin-left: 0.7rem;
        white-space: normal;
        line-height: 0.5;
        text-align: left;
        padding: 0.5rem 0;
        margin-top: 1.2rem;
        padding-top: 2.5rem;
        margin-bottom: 2.7rem;
        */
    }

    /* S'assurer que les deux lignes du logo ont une largeur égale */
    .logo span {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
    align-items: center;
    }

    .guide{
        text-align: center;
    }
    
    .nav-middle {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 200;
        padding: 1rem 0;
        font-size: 1.5rem;
    }
    
    .nav-middle.active {
        display: block;
    }
    
    .nav-link {
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid var(--gray-100);
    }
    
    /* Ajustement des icônes et recherche en mobile */
    .nav-right {
        display: flex;
        gap: 0.75rem;
        margin-left: auto;
    }
    
    /* Featured products responsive */
    #featuredProducts {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    /* Footer en 2 colonnes sur tablette */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    
    }
    
    /* Grille de produits */
    .products-container {
        grid-template-columns: repeat(2, 1fr);
        
    }
    
    /* Hero section */
    .hero {
        padding: 2.5rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    /* Augmenter l'espacement entre la navbar et le hero */
    .hero {
        margin-top: 3rem; /* Augmenté de 2.5rem à 3rem */
    }
}

@media (max-width: 576px) {
    /* Navigation */
    .logo {
        font-size: 0.7rem;
    }
    
    /* Gestion des icônes en mode très petit écran */
    .nav-right {
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        gap: 0.6rem;
    }
    
    .donation-icon {
        font-size: 1.1rem;
        width: 1.4rem;
        height: 1.4rem;
    }
    
    /* Featured products sur mobile */
    #featuredProducts {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Grille de produits */
    .products-container {
        grid-template-columns: 1fr;
    }
    
    /* Product cards */
    .product-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-rating {
        margin-top: 0.5rem;
    }
    
    .product-actions {

        flex-direction: column;
        margin-top: auto;
        padding-top: 1rem;
    }
    
    /* Footer en 1 colonne sur mobile */
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    /* Header et titres */
    .category-header h2 {
        font-size: 1.8rem;
    }
    
    .main-content h2 {
        font-size: 1.8rem;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    /* Correction pour la recherche sur tablette */
    .search-container input {
        width: 130px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Featured products sur tablette */
    #featuredProducts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Grille de produits */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Ajustement spécifique tablette pour le champ de recherche */
    .search-container input {
        width: 120px;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1025px) {
    /* Featured products sur desktop */
    #featuredProducts {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem
    }
    
    /* Grille de produits */
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    /* Footer sur desktop */
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
