/* Variables CSS pour cohérence */
:root {
    --color-primary: #2d5016;
    --color-primary-light: #5a8c3a;
    --color-accent: #8bc34a;
    --color-accent-bright: #aed581;
    --color-earth: #8d6e63;
    --color-water: #4fc3f7;
    --color-bg: #fafdf7;
    --color-bg-alt: #f1f8e9;
    --color-text: #1b3409;
    --color-text-light: #4a5f3a;
    --color-white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(45, 80, 22, 0.08);
    --shadow-md: 0 4px 20px rgba(45, 80, 22, 0.12);
    --shadow-lg: 0 8px 40px rgba(45, 80, 22, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Garamond', serif;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Optima', 'Candara', 'Trebuchet MS', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
}

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

/* Header et Navigation */
.main-header {
    background: rgba(250, 253, 247, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: 'Optima', 'Candara', sans-serif;
}

.logo svg {
    animation: float 3s ease-in-out infinite;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-family: 'Optima', sans-serif;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--color-primary);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--color-text);
}

.dropdown-menu a:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, rgba(45, 80, 22, 0.85) 0%, rgba(90, 140, 58, 0.7) 100%),
        radial-gradient(ellipse at top right, rgba(139, 195, 74, 0.3), transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(141, 110, 99, 0.2), transparent 50%);
    background-size: cover;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(10deg); }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(139, 195, 74, 0.03) 2px, rgba(139, 195, 74, 0.03) 4px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 195, 74, 0.03) 2px, rgba(139, 195, 74, 0.03) 4px);
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease-out backwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.title-line.accent {
    color: var(--color-accent-bright);
    font-style: italic;
}

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

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 1s backwards;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    font-family: 'Optima', sans-serif;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(139, 195, 74, 0.3);
}

.btn-primary:hover {
    background: var(--color-accent-bright);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 195, 74, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-white);
    opacity: 0.8;
    animation: bounce 2s ease-in-out infinite;
    z-index: 2;
}

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

/* Sections communes */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary-light));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: -1rem auto 3rem;
}

/* Intro Section */
.intro-section {
    background: var(--color-white);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.intro-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.intro-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--color-bg-alt), var(--color-white));
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid var(--color-accent);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    font-family: 'Optima', sans-serif;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
}

/* Pillars Section */
.pillars-section {
    background: var(--color-bg-alt);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.pillar-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid var(--color-accent);
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--color-primary);
}

.pillar-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.pillar-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.pillar-card p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.pillar-link {
    color: var(--color-primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.pillar-link:hover {
    color: var(--color-accent);
    transform: translateX(5px);
    display: inline-block;
}

/* Regions Section */
.regions-section {
    background: var(--color-white);
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.region-card {
    position: relative;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.region-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.region-card.dordogne::before {
    background: linear-gradient(135deg, #2d5016 0%, #5a8c3a 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="15" fill="%23ffffff" opacity="0.1"/><circle cx="70" cy="60" r="20" fill="%23ffffff" opacity="0.1"/></svg>');
}

.region-card.aveyron::before {
    background: linear-gradient(135deg, #4a5f3a 0%, #6d8c5a 100%);
}

.region-card.cevennes::before {
    background: linear-gradient(135deg, #5a8c3a 0%, #8bc34a 100%);
}

.region-card.vendee::before {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
}

.region-card:hover::before {
    transform: scale(1.1);
}

.region-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 70%);
    z-index: 1;
}

.region-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: var(--color-white);
    z-index: 2;
}

.region-card h3 {
    font-size: 2rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.region-card p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.region-count {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(139, 195, 74, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.region-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Labels Preview */
.labels-preview {
    background: var(--color-bg-alt);
}

.labels-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.labels-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.labels-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

.labels-badges {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.badge-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.badge-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.badge-circle.green {
    background: linear-gradient(135deg, #8bc34a, #aed581);
}

.badge-circle.blue {
    background: linear-gradient(135deg, #4fc3f7, #81d4fa);
}

.badge-circle.earth {
    background: linear-gradient(135deg, #8d6e63, #a1887f);
}

.badge-item span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Footer */
.main-footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--color-accent-bright);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-col p {
    opacity: 0.9;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--color-white);
    text-decoration: none;
    opacity: 0.85;
    transition: var(--transition);
}

.footer-col a:hover {
    opacity: 1;
    color: var(--color-accent-bright);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 968px) {
    .intro-grid,
    .labels-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        height: 70vh;
    }
    
    section {
        padding: 3rem 0;
    }
}
