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

body {
    line-height: 1.6;
    color: #161716; /* Black de la charte */
    font-family: 'Libre Baskerville', serif;
}

/* Pour conserver Segoe UI sur les titres et éléments de navigation */
h1, h2, h3, h4, h5, h6, .logo, .subtitle, nav a {
    font-family: 'Segoe UI', system-ui, sans-serif;
}

header {
    background-color: #FFFFFF; /* White de la charte */
    padding: 1.5rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Style pour le header qui change au scroll */
header {
    background-color: #FFFFFF; /* White de la charte */
    padding: 1.5rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.logo-container {
    text-align: center;
    margin: 0 auto;
    max-width: 300px;
    transition: all 0.3s ease;
}

.logo-image {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.subtitle {
    text-align: center;
    font-size: 1rem;
    color: #63928B; /* Green de la charte */
    margin-top: 0.5rem;
    transition: opacity 0.3s ease;
}

/* Styles pour le header scrollé */
header.scrolled {
    padding: 0.8rem 1.5rem;
}

header.scrolled .header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

header.scrolled .logo-container {
    text-align: left;
    margin: 0;
    max-width: 180px;
}

header.scrolled .logo-image {
    max-height: 50px;
}

header.scrolled .subtitle {
    opacity: 0;
    position: absolute;
    visibility: hidden;
}

header.scrolled nav {
    margin-left: auto;
    margin-top: 0;
}

/* Style pour le menu normal (desktop) */
nav {
    margin-top: 1rem;
    transition: all 0.3s ease;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    transition: all 0.3s ease;
}

nav a {
    text-decoration: none;
    color: #161716; /* Black de la charte */
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #D8B32D; /* Jaune de la charte */
}

/* Bouton menu burger et menu mobile */
.menu-toggle {
    display: none;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #161716;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animation du menu burger */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Overlay pour le menu mobile */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

.hero {
    margin-top: 120px;
    height: 600px;
    background-image: url('../media/Background.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 31, 24, 0.4); /* Brownie avec transparence */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.section {
    padding: 6rem 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    font-weight: 300;
    color: #2E1F18; /* Brownie de la charte */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Grille de produits */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin: 2rem auto 0;
    max-width: 1200px;
    justify-content: center;
}

/* Lorsqu'il reste une tuile orpheline à la fin */
.products-grid::after {
    content: "";
    display: block;
    grid-column: span 1;
}

.product-card {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
    
    /* Pour le format 2 colonnes */
    .products-grid::after {
        display: none;
    }
    
    /* Nouvelle règle pour centrer le dernier élément quand impair */
    .products-grid .product-card:last-child:nth-child(odd) {
        grid-column: 1 / span 2;
        justify-self: center;
        max-width: 350px;
    }
}

.product-card {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

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

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(46, 31, 24, 0.8)); /* Brownie avec transparence */
    color: white;
}

.product-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.values {
    background-color: #E2D8C5; /* Lin de la charte */
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
}

.value-card h3 {
    color: #CD7A41; /* Carotte de la charte */
    margin: 1rem 0;
}

.hours {
    background-color: #63928B; /* Green de la charte */
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.hours h2 {
    margin-bottom: 2rem;
}

footer {
    background-color: #2E1F18; /* Brownie de la charte */
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}
/* Ajoutez ces styles à votre fichier CSS */

/* Style pour le lien email qui reprend la couleur du téléphone */
footer .contact-info a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

footer .contact-info a:hover {
    color: #D8B32D; /* Couleur jaune au survol, comme pour les liens sociaux */
}

/* Si vous voulez spécifiquement cibler le lien email par son ID */
#email-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

#email-link:hover {
    color: #D8B32D;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    transition: all 0.3s ease;
    background-color: rgba(205, 122, 65, 0.7); /* Carotte avec transparence */
}

.social-links a:hover {
    background-color: #D8B32D; /* Jaune de la charte */
    color: #161716; /* Black de la charte */
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

/* Ajout du style pour la carte */
#map {
    height: 400px;
    width: 100%;
    border-radius: 15px;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.map-container {
    margin-top: 3rem;
    padding: 0 2rem;
}

.map-title {
    color: #BF9838; /* Blé de la charte */
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 300;
}

/* Styles responsive */
@media (max-width: 768px) {
    /* Masquer le sous-titre sur mobile */
    .subtitle {
        display: none;
    }
    
    /* Ajustement du logo sur mobile */
    .logo-container {
        max-width: 220px;
    }
    
    .logo-image {
        max-height: 60px;
    }
    
    /* Réduire le padding de l'en-tête */
    header {
        padding: 1rem;
    }
    
    /* Styles pour le header scrollé sur mobile */
    header.scrolled {
        padding: 0.5rem;
    }
    
    header.scrolled .logo-container {
        max-width: 150px;
    }
    
    header.scrolled .logo-image {
        max-height: 40px;
    }
    
    /* Position du burger menu */
    .menu-toggle {
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Afficher le menu burger */
    .menu-toggle {
        display: flex;
    }
    
    /* Style du menu mobile */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: white;
        padding: 6rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    nav a {
        font-size: 1.2rem;
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.5rem;
    }
    
    /* Overlay sombre quand le menu est ouvert */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .menu-overlay.active {
        display: block;
    }
    
    /* Ajustements pour les autres sections en mobile */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero {
        height: 500px;
        margin-top: 100px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-card {
        max-width: 90%;
        margin: 0 auto;
    }
    
    /* Supprimer les règles spécifiques pour les écrans moyens */
    .products-grid .product-card:last-child:nth-child(odd) {
        grid-column: auto;
        justify-self: center;
        max-width: 90%;
    }

    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
}