/* =================================================================== */
/* STYLE OFFICIEL RUSSICADA AGROS (FINAL)                              */
/* =================================================================== */

:root {
    --primary-color: #4F4F4F;     /* Gris Ardoise (Texte) */
    --secondary-color: #76C75A;   /* Vert Nature (Accents) */
    --accent-color: #A1A1A1;      /* Gris Métal (Camion) */
    --text-color: #333333;
    --background-color: #F9F9F9;
    --light-grey: #EEEEEE;
    --white: #FFFFFF;
}

body, h1, h2, h3, p, ul { margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: var(--background-color); color: var(--text-color); line-height: 1.7; }
.container { width: 90%; max-width: 1200px; margin: auto; overflow: hidden; padding: 0 20px; }

header { background: var(--white); padding: 15px 0; border-bottom: 3px solid var(--secondary-color); box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
header .container { display: flex; justify-content: space-between; align-items: center; }
header .logo .main-logo { height: 80px; }
header nav ul { list-style: none; }
header nav ul li { display: inline-block; margin-left: 30px; }
header nav ul li a { color: var(--primary-color); text-decoration: none; font-size: 17px; font-weight: 600; padding-bottom: 5px; transition: color 0.3s ease; }
header nav ul li a:hover { color: var(--secondary-color); }

.btn { display: inline-block; background: var(--secondary-color); color: var(--white); padding: 12px 25px; text-decoration: none; border-radius: 5px; transition: background-color 0.3s ease, transform 0.2s ease; border: none; font-weight: 600; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.btn:hover { background: #68b34f; transform: translateY(-2px); }
.btn-large { padding: 15px 35px; font-size: 18px; }

.carousel-section { position: relative; width: 100%; overflow: hidden; margin-bottom: 20px; }
.carousel { display: flex; transition: transform 0.5s ease-in-out; }
.carousel-item { min-width: 100%; position: relative; }
.carousel-item img { width: 100%; height: 450px; object-fit: cover; filter: brightness(60%); }
.carousel-caption { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--white); text-align: center; text-shadow: 2px 2px 4px rgba(0,0,0,0.7); width: 80%; }
.carousel-caption h2 { font-size: 3.5em; margin-bottom: 10px; color: var(--white); }
.carousel-caption p { font-size: 1.5em; }
.carousel-control { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(0, 0, 0, 0.4); color: var(--white); border: none; padding: 15px 20px; font-size: 2em; cursor: pointer; z-index: 10; transition: background-color 0.3s ease; }
.carousel-control:hover { background-color: var(--secondary-color); }
.carousel-control.prev { left: 10px; }
.carousel-control.next { right: 10px; }

.page-section { padding: 40px 20px; background: var(--white); margin: 20px auto; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
h1, h2, h3 { color: var(--primary-color); margin-bottom: 20px; font-weight: 700; }
.intro-text { font-size: 1.2em; text-align: center; max-width: 900px; margin: 0 auto 40px auto; line-height: 1.6; color: #555; }
.section-title { font-size: 2.5em; text-align: center; margin-bottom: 35px; position: relative; padding-bottom: 10px; }
.section-title::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 80px; height: 4px; background-color: var(--secondary-color); border-radius: 2px; }

.partners-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; margin-top: 30px; }
.partner-logo img { max-width: 150px; height: auto; transition: transform 0.3s ease, filter 0.3s ease; filter: grayscale(80%); opacity: 0.8; }
.partner-logo img:hover { transform: scale(1.1); filter: grayscale(0%); opacity: 1; }

.mission-vision { display: flex; gap: 30px; margin: 30px 0 50px 0; }
.mission-vision .block { flex: 1; background-color: var(--light-grey); padding: 30px; border-radius: 8px; }
.mission-vision h2 { text-align: left; }
ul { list-style: none; padding-left: 0; }
ul li { background: var(--light-grey); margin-bottom: 10px; padding: 15px 20px; border-left: 5px solid var(--secondary-color); border-radius: 5px; }

.brand-detail { margin-bottom: 50px; padding-bottom: 40px; border-bottom: 1px solid var(--light-grey); overflow: hidden; }
.brand-detail:last-of-type { border-bottom: none; }
.brand-detail .brand-logo-large { max-width: 180px; height: auto; margin-right: 30px; float: left; }
.brand-detail h2 { text-align: left; }
.product-gallery { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; clear: both; }
.product-item { text-align: center; border: 1px solid var(--light-grey); border-radius: 8px; padding: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; width: 180px; }
.product-item:hover { transform: translateY(-5px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.product-item img { max-width: 100%; height: 140px; object-fit: contain; margin-bottom: 10px; }
.product-item p { font-weight: 600; color: var(--primary-color); font-size: 1em; margin: 0; }

.contact-grid { display: flex; flex-wrap: wrap; gap: 30px; margin-bottom: 40px; }
.contact-info-block, .contact-map { flex: 1; min-width: 300px; }
.contact-info-block a { color: var(--secondary-color); text-decoration: none; }
.map-container { position: relative; width: 100%; height: 350px; border-radius: 8px; overflow: hidden; }
.responsive-map { width: 100%; height: 100%; object-fit: cover; }
.map-marker { position: absolute; top: 4%; left: 92%; width: 25px; height: 25px; background-color: var(--secondary-color); border-radius: 50%; border: 3px solid white; box-shadow: 0 0 8px rgba(0,0,0,0.6); transform: translate(-50%, -50%); animation: bounce 1s infinite alternate; }
@keyframes bounce { from { transform: translate(-50%, -50%) scale(1); } to { transform: translate(-50%, -50%) scale(1.2); } }

.call-to-action { background: var(--primary-color); color: var(--white); text-align: center; padding: 60px 20px; }
.call-to-action h2 { color: var(--white); }
.call-to-action .btn { background-color: var(--secondary-color); }
.call-to-action .btn:hover { background-color: var(--white); color: var(--primary-color); }

footer { background: var(--primary-color); color: var(--white); text-align: center; padding: 30px 0; margin-top: 40px; }
footer a { color: var(--secondary-color); text-decoration: none; }

.form-container { background-color: var(--light-grey); padding: 30px 40px; border-radius: 8px; margin-top: 40px; border: 1px solid #ddd; }
.form-container h2 { text-align: center; margin-bottom: 25px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--primary-color); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-size: 1em; box-sizing: border-box; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--secondary-color); box-shadow: 0 0 8px rgba(118, 199, 90, 0.3); outline: none; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group button { width: 100%; padding: 15px; font-size: 1.1em; }
.form-success { background-color: #d4edda; color: #155724; padding: 15px; border: 1px solid #c3e6cb; border-radius: 5px; margin-bottom: 20px; text-align: center; }
.form-error { background-color: #f8d7da; color: #721c24; padding: 15px; border: 1px solid #f5c6cb; border-radius: 5px; margin-bottom: 20px; text-align: center; }

/* =================================================================== */
/* STYLES SECTION RECETTES                                             */
/* =================================================================== */

.recipe-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.recipe-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 350px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.recipe-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.recipe-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.recipe-content h3 {
    text-align: left;
    margin-bottom: 15px;
}

.recipe-content p {
    margin-bottom: 15px;
    flex-grow: 1;
}

.recipe-content .btn {
    align-self: flex-start;
    margin-top: auto;
}

@media (max-width: 768px) {
    header .container { flex-direction: column; text-align: center; }
    header nav { margin-top: 15px; }
    .mission-vision { flex-direction: column; }
    .brand-detail { text-align: center; }
    .brand-detail .brand-logo-large { float: none; margin: 0 auto 20px auto; }
    .brand-detail h2 { text-align: center; }
    .product-gallery { justify-content: center; }
    .contact-grid { flex-direction: column; }
}