/* --- RESET ET POLICES --- */
@import url('https://fonts.googleapis.com/css2?family=Aref+Ruqaa:wght@400;700&family=Montserrat:wght@400;600&display=swap');
* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --ocre: #C05F2B; --safran: #F4A460; --or-clair: #F2E3C6; --sombre-fond: #1a110a; --texte-creme: #FFFBF2; }

body { font-family: 'Montserrat', sans-serif; background-color: var(--sombre-fond); color: var(--texte-creme); line-height: 1.6; }

header { 
    background: #1a110a; height: 90px; display: flex; align-items: center; justify-content: space-between; 
    padding: 0 5%; border-bottom: 3px solid var(--ocre); position: sticky; top: 0; z-index: 1000; 
}
.logo { font-family: 'Aref Ruqaa', serif; font-size: 2.8rem; color: var(--safran); text-decoration: none; font-weight: bold; }
nav ul { display: flex; list-style: none; gap: 25px; }
nav ul li a { text-decoration: none; color: var(--texte-creme); font-weight: 600; }
nav ul li a:hover, nav ul li a.active { color: var(--safran); }

/* --- CARROUSEL --- */
.home-body { overflow: hidden; height: 100vh; display: flex; flex-direction: column; }
.carousel-container { flex: 1; position: relative; width: 100%; overflow: hidden; background: #000; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s ease-in-out; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.slide.active { opacity: 1; z-index: 10; }
.slide-content { background: rgba(0,0,0,0.7); padding: 40px; border-radius: 15px; border: 2px solid var(--ocre); text-align: center; max-width: 600px; margin: 0 20px; }
.slide-content h2 { font-family: 'Aref Ruqaa', serif; font-size: 3.5rem; color: var(--or-clair); margin-bottom: 10px; }
.slide-content p { font-size: 1.2rem; margin-bottom: 25px; }

.arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(192, 95, 43, 0.6); color: white; border: none; font-size: 2.5rem; padding: 15px 20px; cursor: pointer; z-index: 100; }
.prev { left: 0; border-radius: 0 10px 10px 0; } .next { right: 0; border-radius: 10px 0 0 10px; }

/* --- GRILLE ET FILTRES --- */
.container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.title-page { text-align: center; font-family: 'Aref Ruqaa', serif; font-size: 3.5rem; color: var(--safran); margin-bottom: 40px; }
.filter-bar { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.filter-btn { background: transparent; border: 1px solid var(--ocre); color: var(--or-clair); padding: 8px 18px; border-radius: 20px; cursor: pointer; font-weight: 600; }
.filter-btn.active { background: var(--ocre); color: white; }

.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.recipe-card { background: #251a12; border-radius: 12px; overflow: hidden; border: 1px solid rgba(192, 95, 43, 0.3); display: flex; flex-direction: column; }
.recipe-card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; text-align: center; flex-grow: 1; }
.tag { display: block; color: var(--safran); font-size: 0.8rem; margin-bottom: 5px; font-weight: 700; text-transform: uppercase; }
.card-body h3 { font-family: 'Aref Ruqaa', serif; font-size: 1.7rem; color: var(--or-clair); margin-bottom: 10px; }

/* --- PAGE DETAIL & CONTACT --- */
.recipe-main-img { width: 100%; height: 450px; object-fit: cover; border-radius: 20px; border: 4px solid var(--ocre); margin-bottom: 30px; }
.recipe-layout { display: grid; grid-template-columns: 1fr 2.5fr; gap: 30px; }
.ingredients-box, .preparation-box { background: #2a1d13; padding: 30px; border-radius: 15px; border: 1px solid rgba(192, 95, 43, 0.2); }
.ingredients-box h3, .preparation-box h3 { font-family: 'Aref Ruqaa', serif; color: var(--safran); margin-bottom: 15px; font-size: 1.8rem; border-bottom: 1px solid var(--ocre); }

/* --- FORMULAIRE DE CONTACT (NOUVEAU) --- */
.contact-box { max-width: 600px; margin: 0 auto !important; }
.contact-intro { text-align: center; margin-bottom: 30px; color: var(--or-clair); }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; color: var(--safran); font-weight: 600; }
.form-group input, .form-group textarea { 
    width: 100%; padding: 15px; background: #1a110a; border: 1px solid var(--ocre); 
    border-radius: 8px; color: white; font-family: 'Montserrat'; font-size: 1rem;
}
.form-group textarea { height: 150px; resize: vertical; }
.btn-full { width: 100%; font-size: 1.1rem; }

.btn { display: inline-block; background: var(--ocre); color: white; padding: 12px 25px; text-decoration: none; border-radius: 25px; font-weight: bold; cursor: pointer; border: none; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    header { height: auto; flex-direction: column; padding: 15px; gap: 10px; }
    .logo { font-size: 2rem; }
    .title-page { font-size: 2.2rem; }
    .recipe-layout { grid-template-columns: 1fr; }
    .recipe-main-img { height: 250px; }
    .slide-content h2 { font-size: 2rem; }
    .contact-box { padding: 20px; }
}