:root {
    --primary-color: #4a7c59;
    --primary-dark: #3a6546;
    --secondary-color: #f8f9fa;
    --accent-color: #f4a261;
    --text-color: #333;
    --text-light: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* En-tête et navigation */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    width: 100%;
    min-height: 70px;
    /* Adjust to fit logo */
}

main {
    margin-top: 90px;
    /* Compensate for taller header */
    min-height: calc(100vh - 400px);
    /* Ajuster pour le footer */
    padding: 2rem 1rem;
    /* Ajout de padding */
    display: block;
    width: 100%;
}

.logo {
    grid-column: 2;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    z-index: 1002;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo a {
    display: block;
    background: var(--white);
    border-radius: 50%;
    /* Keep the circular badge look */
    padding: 5px;
    box-shadow: none;
    /* Optional: remove shadow if it's "inside" now, or keep slightly */
    transition: var(--transition);
}

.logo-img {
    height: 80px;
    /* Large but fits in header */
    width: auto;
    display: block;
    /* Remove border-radius and background from image to avoid clipping content */
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.logo a:hover {
    transform: scale(1.05);
    /* Scale the whole badge */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.logo a:hover {
    color: var(--primary-dark);
}

.nav-links {
    grid-column: 3;
    justify-self: end;
    display: flex;
    gap: 2rem;
}

.nav-links ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Bouton menu mobile */
#showMenu,
#closeMenu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Section Hero */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('../img/home-bg.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Boutons */
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-button.full-width {
    display: block;
    width: 100%;
    text-align: center;
}

/* Sections */
section {
    padding: 5rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 25%;
}

/* Cartes de fonctionnalités */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

/* Section d'information sur la ferme */
.farm-info {
    background-color: #f8f9fa;
    padding: 5rem 0;
}

.info-card {
    background: white;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    margin: 0 auto;
}

.info-card h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2.2rem;
}

.info-card .lead {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.7;
}

.info-card p {
    color: var(--text-light);
    margin-bottom: 2.5rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-item {
    background: #fff;
    border-radius: 8px;
    padding: 1.8rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #eee;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-item h3 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-item h3 i {
    color: var(--accent-color);
    font-size: 1.2em;
}

.info-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-item ul li {
    margin-bottom: 0.7rem;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.info-item ul li:before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #25D366;
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info p {
    margin-bottom: 1rem !important;
    text-align: left !important;
}

/* Galerie */
.gallery {
    background-color: var(--secondary-color);
}

.gallery-grid {
    column-count: 3;
    column-gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: var(--white);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        column-count: 1;
    }
}

/* Témoignages */
.testimonials {
    background-color: var(--secondary-color);
    padding: 4.5rem 0 3.5rem;
    margin-bottom: 0.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.section-header p {
    color: var(--text-light);
}

.testimonial-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.testimonial-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.testimonial {
    background: var(--white);
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-color);
    animation: fadeInUp 0.4s ease;
}

.testimonial-rating {
    color: #f5c518;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.testimonial p {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.testimonial .author {
    font-weight: 600;
    color: var(--primary-dark);
}

.testimonial-form-wrapper {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 130px;
}

.testimonial-form h3,
.testimonial-form-wrapper h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-hint {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.testimonial-form .form-group {
    margin-bottom: 1.2rem;
}

.testimonial-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.testimonial-form input,
.testimonial-form select,
.testimonial-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.testimonial-form input:focus,
.testimonial-form select:focus,
.testimonial-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.15);
}

.testimonial-form button {
    width: 100%;
    margin-top: 0.5rem;
}

.form-feedback {
    margin-top: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-feedback.success {
    color: #2d8a47;
}

.form-feedback.error {
    color: #c0392b;
}

@media (max-width: 992px) {
    .testimonial-layout {
        grid-template-columns: 1fr;
    }

    .testimonial-form-wrapper {
        position: static;
    }
}

/* Formulaire de réservation */
.reservation-form-section {
    background-color: var(--white);
    padding: 4rem 0;
}

.reservation-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

/* Résumé de la réservation */
.reservation-summary {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid #eee;
}

.reservation-summary h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.reservation-summary p {
    margin: 0.5rem 0;
}

.total-amount,
.deposit {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-weight: 600;
    font-size: 1.1rem;
}

.deposit {
    color: var(--primary-color);
}

/* Section d'information */
.info-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.info-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.info-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-box h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

/* Pied de page */
.footer {
    background-color: #2c3e50;
    color: var(--white);
    padding: 4rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
}

.footer-section p,
.footer-section a {
    font-size: 2rem;
    /* Taille de police augmentée */
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.socials a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* Bouton retour en haut */
.to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.to-top.visible {
    opacity: 1;
    visibility: visible;
}

.to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        display: flex;
        /* Switch back to flex for mobile */
        justify-content: center;
        /* Center logo */
        align-items: center;
        padding: 0.5rem 1rem;
        height: 80px;
    }

    .logo {
        position: static;
        grid-column: auto;
        transform: none;
    }

    .logo-img {
        height: 80px;
        /* Smaller logo on mobile */
    }

    .logo a {
        padding: 5px;
        /* Smaller padding on mobile */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: center;
    }

    #showMenu {
        display: block;
    }

    #closeMenu {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .feature-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .reservation-form {
        padding: 1.5rem;
    }
}

/* Classes utilitaires */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* Page Header (Pages internes) */
.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 140px 2rem 60px;
    /* Marge interne supérieure pour compenser le header fixe */
    text-align: center;
    background-image: linear-gradient(rgba(74, 124, 89, 0.9), rgba(74, 124, 89, 0.9)), url('../img/home-bg.jpg');
    /* Fallback ou même image que hero */
    background-size: cover;
    background-position: center;
    margin-bottom: -60px;
    /* Chevauchement esthétique */
    position: relative;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Corrections Responsive pour le Header et le Main */
@media (max-width: 768px) {
    .page-header {
        padding: 100px 1.5rem 40px;
        /* Réduire le padding sur mobile */
        margin-bottom: -40px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* Ajustement du margin-top global de main sur mobile */
    main {
        margin-top: 20px !important;
        /* Override le 100px du desktop */
    }
}