:root {
    --primary: #c0392b;
    --secondary: #ffffff;
    --dark: #c0392b;
    --light: #fdfcfb;
    --text: #333;
    --bg-alt: #f4f1ea;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Scroll fluide pour l'ancre */
html {
    scroll-behavior: smooth;
}

body { 
    font-family: 'Montserrat', sans-serif; 
    line-height: 1.7; 
    color: var(--text); 
    background-color: var(--light); 
}

h1, h2, h3 { font-family: 'Carter One', serif; color: var(--dark); font-weight: 400; }
p { margin-bottom: 1.5rem; font-size: 1.05rem; }

/* Hero */
.hero {
    height: 100vh; /* Ajusté pour laisser de la place aux nouveaux éléments */
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url('img/vache-savoie.webp?auto=format&fit=crop&w=1920&q=80');
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; text-align: center; color: white;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Assure le centrage horizontal de tous les enfants */
}

.hero-content h1 { 
    font-size: clamp(1.8rem, 6vw, 3.3rem); 
    color: #fff; 
    text-shadow: 0 4px 15px rgba(0,0,0,0.4); 
    margin-bottom: 1rem; 
}

.hero-subtitle {
    font-size: 1.2rem !important;
    max-width: 600px;
    margin: 0 auto 30px auto; /* Marge du bas augmentée pour l'espace avec le blason */
    font-weight: 400;
}

.hero-badge {
    width: 100px;
    height: auto;
    margin-bottom: 40px; /* Espace généreux entre le blason et le bouton */
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    display: block; /* Aide au centrage */
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: white;
    transform: scale(1.05);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Sections Classiques */
.section-padding { padding: 100px 5%; }
.grid { display: flex; flex-wrap: wrap; gap: 60px; align-items: center; }
.grid-item { flex: 1; min-width: 320px; }

.img-container { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.img-container img { width: 100%; height: 500px; object-fit: cover; transition: transform 0.6s ease; }
.img-container:hover img { transform: scale(1.05); }

.section-title { font-size: 2.8rem; margin-bottom: 2rem; position: relative; }
.section-title::after { content: ''; display: block; width: 80px; height: 5px; background: var(--primary); margin-top: 15px; }

/* Recette avec Images Ingrédients */
.recipe-box { background: white; padding: 50px; border-radius: 12px; margin-top: 40px; border-left: 10px solid var(--primary); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.ingredients-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 25px; margin-top: 30px; list-style: none; }
.ingredients-grid li { 
    background: #fdfcfb; 
    padding: 15px; 
    border-radius: 8px; 
    border: 1px solid #eee; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    transition: transform 0.3s ease; 
}
.ingredients-grid li:hover { transform: translateY(-5px); }
.ingredients-grid li img { width: 100%; height: 120px; object-fit: cover; border-radius: 5px; margin-bottom: 12px; }
.ingredients-grid li span { font-weight: 600; font-size: 0.9rem; color: var(--dark); }

/* Nos Sites */
.our-sites { background: #fff; padding: 80px 0; border-top: 1px solid #eee; }
.sites-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; margin-top: 40px; }
.site-card { flex: 1; min-width: 240px; text-align: center; padding: 30px; border-radius: 10px; transition: all 0.3s; border: 1px solid transparent; }
.site-card:hover { transform: translateY(-10px); background: #fdfcfb; border-color: #eee; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.site-card img { width: auto; height: auto; margin-bottom: 20px; max-width: 220px; max-height: 80px; }
.site-link { color: var(--primary); font-weight: 700; text-decoration: none; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }

/* FAQ */
.faq { background: var(--dark); color: #fff; padding: 100px 0; }
.faq h2 { color: #fff; text-align: center; margin-bottom: 60px; font-size: 3rem; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 40px; }
.faq-item { background: rgba(255,255,255,0.05); padding: 30px; border-radius: 8px; border-bottom: 3px solid var(--secondary); transition: 0.3s; }
.faq-item:hover { background: rgba(255,255,255,0.08); }
.faq-item h3 { color: #ffffff; margin-bottom: 15px; font-size: 1.1rem; }

footer { 
    background: #111; 
    color: #777; 
    padding: 60px 0; 
    text-align: center; 
    font-size: 0.8rem; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    font-family: 'Montserrat', sans-serif; 
}

/* Liens du footer corrigés */
footer a {
    color: #777;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary);
}

/* Media Queries */
@media (max-width: 768px) {
    .grid { flex-direction: column; }
    .faq-grid { grid-template-columns: 1fr; }
    .hero { height: auto; min-height: 100vh; padding: 60px 0; } /* Ajout pour mobile */
}