/* Variables */
:root {
    /* Palette de couleurs moderne et naturelle */
    --primary-color: #3a5a40; /* Vert forêt plus profond */
    --secondary-color: #588157; /* Vert moyen */
    --accent-color: #a3b18a; /* Vert pâle */
    --light-color: #f8f9fa; /* Blanc cassé */
    --dark-color: #344e41; /* Vert très foncé */
    --text-color: #212529; /* Presque noir */
    --text-light: #6c757d; /* Gris pour texte secondaire */
    --background-color: #fefefe; /* Blanc pur */
    --background-alt: #f0f4f1; /* Fond alternatif légèrement verdâtre */
    --gold-accent: #dda15e; /* Accent doré pour touches élégantes */
    --success-color: #606c38; /* Vert pour éléments de succès */
    --error-color: #bc4749; /* Rouge pour erreurs */
    
    /* Typographies modernes */
    --font-main: 'Montserrat', 'Segoe UI', sans-serif; /* Élégant et contemporain */
    --font-heading: 'Playfair Display', 'Georgia', serif; /* Sérieux et noble */
    --font-alt: 'Open Sans', 'Arial', sans-serif; /* Lisible pour petits textes */
    
    /* Effets et transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Ombres */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    
    /* Arrondis */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Importation des polices Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;600&family=Playfair+Display:wght@400;500;600;700&display=swap');

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
    position: relative;
}

a:hover {
    color: var(--accent-color);
}

/* Style de soulignement animé pour les liens */
a.animated-link {
    position: relative;
}

a.animated-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
    opacity: 0;
}

a.animated-link:hover::after {
    width: 100%;
    opacity: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1.2rem;
    line-height: 1.3;
    color: var(--primary-color);
    font-weight: 600;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    letter-spacing: -0.3px;
}

/* Décoration élégante des titres h2 */
h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--radius-full);
}

h2::before {
    content: '✦';
    display: block;
    color: var(--gold-accent);
    font-size: 1.5rem;
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.8rem;
    letter-spacing: -0.2px;
}

h4 {
    font-size: 1.4rem;
}

h5 {
    font-size: 1.2rem;
    font-weight: 500;
}

h6 {
    font-size: 1rem;
    font-weight: 500;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Containers et sections */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.full-width {
    width: 100%;
    margin: 0;
}

/* Gestion des espaces */
.py-sm { padding-top: 2rem; padding-bottom: 2rem; }
.py-md { padding-top: 4rem; padding-bottom: 4rem; }
.py-lg { padding-top: 6rem; padding-bottom: 6rem; }
.py-xl { padding-top: 8rem; padding-bottom: 8rem; }

.my-sm { margin-top: 2rem; margin-bottom: 2rem; }
.my-md { margin-top: 4rem; margin-bottom: 4rem; }
.my-lg { margin-top: 6rem; margin-bottom: 6rem; }
.my-xl { margin-top: 8rem; margin-bottom: 8rem; }

/* Boutons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow-md);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-fast);
    z-index: -1;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-accent {
    background-color: var(--gold-accent);
}

.btn-accent:hover {
    background-color: #c18e46;
}

/* Sections */
section {
    padding: 7rem 2rem;
    position: relative;
    overflow: hidden;
}

section.with-background {
    background-color: var(--background-alt);
}

/* Décoration des sections */
.section-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3rem;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23f8f9fa" fill-opacity="1" d="M0,64L60,80C120,96,240,128,360,128C480,128,600,96,720,90.7C840,85,960,107,1080,133.3C1200,160,1320,192,1380,208L1440,224L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z"%3E%3C/path%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.section-top-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3rem;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23f8f9fa" fill-opacity="1" d="M0,224L60,213.3C120,203,240,181,360,186.7C480,192,600,224,720,229.3C840,235,960,213,1080,186.7C1200,160,1320,128,1380,112L1440,96L1440,0L1380,0C1320,0,1200,0,1080,0C960,0,840,0,720,0C600,0,480,0,360,0C240,0,120,0,60,0L0,0Z"%3E%3C/path%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

header.scrolled {
    padding: 0.8rem 2rem;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    width: auto;
    margin-right: 1.2rem;
    transition: var(--transition);
}

header.scrolled .logo {
    height: 50px;
}

header h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: var(--transition);
    background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

header.scrolled h1 {
    font-size: 1.6rem;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    font-weight: 500;
    position: relative;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    color: var(--text-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--transition);
    opacity: 0;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover::after {
    width: 100%;
    opacity: 1;
}

nav ul li.active a {
    color: var(--primary-color);
    font-weight: 600;
}

nav ul li.active a::after {
    width: 80%;
    opacity: 1;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Overlay sombre sur la vidéo */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
    z-index: -1;
}

/* Animation de particules pour effet naturel */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" viewBox="0 0 800 800"><g fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"><circle cx="400" cy="400" r="200"/></g></svg>');
    background-size: 20%;
    opacity: 0.3;
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    max-width: 900px;
    padding: 3rem;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: var(--radius-md);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    transform: translateY(0);
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    animation: fadeInDown 1.5s ease-out;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1.5s ease-out;
    line-height: 1.7;
}

.hero .btn {
    animation: fadeIn 2s ease-out;
    padding: 16px 36px;
    font-size: 1rem;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Services Section */
.services {
    background-color: var(--light-color);
}

.service-carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.service-cards {
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
    gap: 2rem;
    max-width: calc(100% - 100px);
    margin: 0 auto;
    text-align: center;
}

.carousel-arrow {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.carousel-arrow:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.prev-arrow {
    left: 0;
}

.next-arrow {
    right: 0;
}

.carousel-arrow.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #999;
    transform: none;
}

/* Adaptation pour les appareils mobiles */
@media (max-width: 768px) {
    .service-carousel-container {
        padding: 0 30px;
    }
    
    .service-cards {
        max-width: 100%;
    }
    
    .card {
        flex: 0 0 calc(100% - 1rem);
    }
    
    .carousel-arrow {
        width: 30px;
        height: 30px;
    }
}

.card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    flex: 0 0 calc(33.333% - 1.33rem); /* Chaque carte prend 1/3 de l'espace moins un peu pour le gap */
    min-width: 250px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    padding: 1rem 1rem 0.5rem;
}

.card p {
    padding: 0 1rem 1.5rem;
}

/* Gallery Section */
.gallery {
    background-color: white;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Vignes Section */
.vignes {
    background-color: var(--light-color);
    padding: 5rem 2rem;
}

/* Attelage Section */
.attelage {
    background-color: white;
    padding: 5rem 2rem;
}

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

.vignes-content {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.vignes-image {
    flex: 1;
    min-width: 400px;
}

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

.vignes-text {
    flex: 1.5;
    padding: 2rem;
}

.vignes-text h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.vignes-advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.advantage-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.advantage-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.advantage-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.advantage-item p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
    margin: 0;
}

/* Espaces Naturels Section - Same structure as Vignes */
.espaces-container {
    max-width: 1200px;
    margin: 0 auto;
}

.espaces-content {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.espaces-image {
    flex: 1;
    min-width: 400px;
}

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

.espaces-text {
    flex: 1.5;
    padding: 2rem;
}

.espaces-text h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.espaces-advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

/* Media queries pour assurer la responsivité */
@media (max-width: 768px) {
    .vignes-advantages-grid,
    .espaces-advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .vignes-content,
    .attelage-content,
    .espaces-content {
        flex-direction: column;
    }
    
    .vignes-image,
    .vignes-text,
    .attelage-image,
    .attelage-text,
    .espaces-image,
    .espaces-text {
        width: 100%;
        min-width: 100%;
    }
    
    .benefit-item {
        padding: 1.25rem;
    }
    
    .benefit-item i {
        font-size: 1.8rem;
        width: 35px;
        height: 35px;
    }
    
    .benefit-text p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .advantage-item {
        padding: 1rem;
    }
    
    .advantage-item i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .advantage-item h4 {
        font-size: 1.1rem;
    }
    
    .attelage-text > p {
        font-size: 1rem;
    }
    
    .benefit-item {
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .benefit-item i {
        margin-bottom: 0.75rem;
        font-size: 1.6rem;
    }
}

/* Attelage styles */
.attelage-container {
    max-width: 1200px;
    margin: 0 auto;
}

.attelage-header {
    text-align: center;
    margin-bottom: 3rem;
}

.attelage-header h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-style: italic;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

.attelage-content {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.attelage-image {
    flex: 1;
    min-width: 400px;
}

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

.attelage-text {
    flex: 1.5;
    padding: 2rem;
}

.attelage-text > p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--primary-color);
    font-weight: 600;
}

.attelage-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.benefit-item i {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-text p {
    margin: 0;
    line-height: 1.7;
}

.attelage-events {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.event-type {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.event-type:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.event-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.event-type h4 {
    margin: 1.5rem 0 0.5rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.event-type p {
    margin: 0.5rem 1rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

/* Team Section */
.team {
    background-color: white;
    padding: 5rem 2rem;
}

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

.team-member {
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.main-member {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    margin-bottom: 3rem;
}

.member-image {
    flex: 1;
    min-width: 300px;
}

.main-member .member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    flex: 2;
    padding: 2rem;
}

.member-bio {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
}

.team-horses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.horse {
    display: flex;
    flex-direction: column;
}

.horse .member-image {
    height: 300px;
    width: 100%;
}

.horse .member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.horse-description {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-style: italic;
}

/* Team Note Styles - Version améliorée */
.team-note {
    margin: 4rem auto 2rem;
    max-width: 1000px;
}

.team-note-inner {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    position: relative;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.team-note-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1" d="M0,50 Q25,0 50,50 T100,50"/></svg>');
    background-size: 20%;
    opacity: 0.2;
}

.team-note-icon {
    flex: 0 0 80px;
    height: 80px;
    background-color: var(--gold-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 0 0 10px rgba(221, 161, 94, 0.2);
    position: relative;
    z-index: 1;
}

.team-note-content {
    flex: 1;
}

.team-note-content h3 {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
}

.team-note-content h3::after {
    content: '';
    position: absolute;
    height: 3px;
    width: 70%;
    background-color: var(--gold-accent);
    bottom: -5px;
    left: 0;
    border-radius: var(--radius-full);
}

.team-note-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.team-note-content strong {
    color: white;
    font-weight: 600;
}

.team-note-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--gold-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.stat-divider {
    width: 1px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.2);
}

.team-note-footer {
    font-style: italic;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.85) !important;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .team-note-inner {
        flex-direction: column;
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .team-note-content h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .team-note-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat-divider {
        width: 50%;
        height: 1px;
    }
}

/* About Section */
.about {
    background-color: var(--light-color);
}

.about-content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
    align-items: center;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

/* Contact Section */
.contact {
    background-color: white;
}

.contact-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

.contact-info, .contact-form {
    flex: 1;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}

.social-media {
    margin-top: 2rem;
}

.social-icon {
    display: inline-block;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(161, 136, 127, 0.2);
}

.form-status {
    min-height: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-status.info {
    color: var(--primary-color);
}

.form-status.success {
    color: var(--success-color);
}

.form-status.error {
    color: var(--error-color);
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 18px;
    right: 18px;
    left: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    max-width: 360px;
    padding: 14px 16px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(248,249,250,0.96));
    backdrop-filter: blur(6px);
    border: 1px solid rgba(52, 78, 65, 0.08);
    pointer-events: auto;
    animation: toast-in 0.25s ease;
}

.toast-info { border-left: 4px solid var(--primary-color); }
.toast-success { border-left: 4px solid var(--success-color); }
.toast-error { border-left: 4px solid var(--error-color); }

.toast-icon {
    font-size: 20px;
    color: var(--primary-color);
}
.toast-success .toast-icon { color: var(--success-color); }
.toast-error .toast-icon { color: var(--error-color); }

.toast-message {
    flex: 1;
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--text-color);
}

.toast-close {
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}
.toast-close:hover { color: var(--text-color); }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.toast-hide { animation: toast-out 0.2s ease forwards; }
@keyframes toast-out {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-10px); }
}

@media (max-width: 640px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    .toast {
        width: calc(100% - 20px);
        max-width: none;
    }
}

/* Footer */
/* Bouton de retour en haut */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.scroll-top-btn i {
    font-size: 1.2rem;
}

/* Animation du scroll down */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* Styles pour les formulaires améliorés */
.input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.9);
}

.input-wrapper.focused input,
.input-wrapper.focused textarea {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(58, 90, 64, 0.2);
    background-color: white;
}

.input-wrapper.error input,
.input-wrapper.error textarea {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(188, 71, 73, 0.2);
}

.success-message {
    text-align: center;
    padding: 2rem;
    background-color: rgba(96, 108, 56, 0.1);
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.success-message i {
    font-size: 3rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

/* Effet de loading pour les boutons */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    right: 15px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Styles pour la carte Google Maps */
.map-container {
    width: 100%;
    margin-top: 3rem;
    padding: 0 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.map-container h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.google-map {
    width: 100%;
    height: 450px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--accent-color);
}

.service-area {
    max-width: 1100px;
    margin: 1.5rem auto 0;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(52, 78, 65, 0.08);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.service-area-header h3 {
    margin-bottom: 0.25rem;
    text-align: left;
}

.service-area-header p {
    margin: 0 0 0.5rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.service-area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.service-area-tags .tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #f6f8f7;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(52, 78, 65, 0.12);
}

/* Styles modernisés pour le popup de la carte */
.info-window {
    font-family: var(--font-main);
    font-size: 14px;
    line-height: 1.5;
    padding: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    min-width: 250px;
    box-shadow: var(--shadow-sm);
}

.info-window-header {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-window-header i {
    font-size: 18px;
}

.info-window-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
}

.info-window-content {
    padding: 15px;
    background-color: white;
}

.info-window-address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.info-window-address i {
    color: var(--secondary-color);
    margin-top: 0;
    line-height: 1.4;
    padding-top: 2px;
}

.info-window-address p {
    margin: 0 0 5px 0;
    font-size: 14px;
    line-height: 1.4;
}

.info-window-footer {
    padding: 12px 15px;
    background-color: var(--background-alt);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.map-btn:hover {
    color: var(--accent-color);
}

footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 2rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    opacity: 0.65;
    border-radius: var(--radius-full);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-img {
    height: 80px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.25));
}

.footer-info p {
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.98rem;
    letter-spacing: 0.2px;
}

.footer-info a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    letter-spacing: 0.2px;
}

.footer-info a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    opacity: 0.8;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.footer-info a:hover::after {
    transform: scaleX(1);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content,
    .contact-container,
    .main-member,
    .vignes-content,
    .attelage-content,
    .espaces-content {
        flex-direction: column;
    }

    .about-image,
    .member-image,
    .vignes-image,
    .attelage-image,
    .espaces-image {
        margin-bottom: 2rem;
        min-width: 100%;
        max-height: 400px;
    }
    
    .team-horses {
        grid-template-columns: 1fr;
    }
    
    .vignes-advantages,
    .attelage-events {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    .logo {
        height: 40px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background-color: white;
        transition: var(--transition);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        padding: 1rem 0;
    }

    nav ul li {
        margin: 0;
        text-align: center;
        padding: 0.75rem 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    section {
        padding: 4rem 1.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        width: 90%;
    }

    .hero h2 {
        font-size: 2rem;
    }
    
    .main-member {
        flex-direction: column;
    }
    
    .member-image {
        min-width: auto;
    }
    
    .team-horses {
        grid-template-columns: 1fr;
    }
    
    .vignes-advantages,
    .attelage-events,
    .espaces-advantages-grid {
        grid-template-columns: 1fr;
    }
}



/* --- Patch: enable native swipe on small screens --- */
@media (max-width: 768px) {
  .service-carousel-container {
    padding: 0 0.5rem;
  }
  .service-cards {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding: 1rem;
    gap: 1rem;
    max-width: 100%;
    transform: none !important;
  }
  .service-cards .card {
    flex: 0 0 80%;
    scroll-snap-align: start;
  }
  .carousel-arrow {
    display: none !important;
  }
}



/* --- Patch: add safe spacing to avoid h3 overlapping images --- */
.vignes-text h3,
.espaces-text h3,
.member-info h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

@media (max-width: 992px) {
  .vignes-content,
  .espaces-content,
  .main-member {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .vignes-content,
  .espaces-content,
  .main-member {
    flex-direction: column;
    align-items: stretch;
  }
  .vignes-image,
  .espaces-image,
  .member-image {
    min-width: 0;
  }
  .vignes-text h3,
  .espaces-text h3,
  .member-info h3 {
    margin-top: 3rem;
  }
}
