/* Reset et styles de base */
:root {
    --primary-color: #2e7d32; /* Vert foncé */
    --primary-light: #60ad5e; /* Vert clair */
    --secondary-color: #8d6e63; /* Marron clair */
    --accent-color: #d7ccc8; /* Beige clair */
    --text-color: #333;
    --light-text: #f5f5f5;
    --dark-text: #212121;
    --background: #ffffff;
    --section-bg: #f9f9f9;
    
    /* Animation timings */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all var(--transition-fast);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

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

a:hover {
    color: var(--primary-light);
}

p {
    margin-bottom: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    color: var(--primary-color);
    opacity: 0;
    transform: translateY(20px);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-medium);
    border: 2px solid var(--primary-color);
    text-align: center;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideUp var(--transition-medium);
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 44px;
    width: auto;
    transition: transform var(--transition-medium);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
    opacity: 0;
    animation: fadeIn var(--transition-medium) forwards;
    animation-delay: calc(var(--i, 0) * 0.1s);
}

.nav-links a {
    color: var(--dark-text);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-medium);
}

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

.nav-links .cta-button {
    padding: 0.5rem 1.5rem;
    margin-left: 1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 4px 0;
    transition: var(--transition-medium);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1580587771525-78b9dba3b914?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 1.5rem;
    margin-top: 0;
}

.hero-content {
    max-width: 800px;
    animation: fadeIn var(--transition-slow) forwards;
    opacity: 0;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideUp var(--transition-medium) forwards;
    animation-delay: 0.3s;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    animation: slideUp var(--transition-medium) forwards;
    animation-delay: 0.5s;
}

.hero .tagline {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-style: italic;
    color: #f5f5f5;
    animation: slideUp var(--transition-medium) forwards;
    animation-delay: 0.7s;
}

.hero-content .cta-button {
    animation: scaleIn var(--transition-medium) forwards;
    animation-delay: 0.9s;
}

/* À propos du projet */
.about {
    padding: 6rem 0;
    background-color: var(--section-bg);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-medium);
    opacity: 0;
    transform: translateY(20px);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.feature.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pourquoi choisir Elverde */
.benefits {
    padding: 6rem 0;
    background-color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit {
    text-align: center;
    padding: 2rem;
    background-color: var(--section-bg);
    border-radius: 10px;
    transition: var(--transition-medium);
    opacity: 0;
    transform: translateY(20px);
}

.benefit:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.benefit i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.benefit h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.benefit.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Contact */
.contact {
    padding: 6rem 0;
    background-color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    background-color: var(--section-bg);
    padding: 3rem;
    border-radius: 10px;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

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

.contact-info i {
    margin-right: 1rem;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    color: var(--primary-color);
    border-radius: 50%;
    margin-right: 1rem;
    transition: var(--transition-medium);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.contact-form {
    background-color: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: var(--transition-medium);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #f5f5f5;
    padding: 5rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: #aaa;
    font-style: italic;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #aaa;
    transition: var(--transition-medium);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #aaa;
}

.footer-contact i {
    margin-right: 1rem;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 2rem 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-bottom p {
    margin-bottom: 1rem;
    color: #777;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: #777;
    font-size: 0.9rem;
    transition: var(--transition-medium);
}

.legal-links a:hover {
    color: var(--primary-light);
}

/* Bouton WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    animation: scaleIn var(--transition-medium);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Animations de base */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Classes d'animation */
.animate-fade-in {
    animation: fadeIn var(--transition-medium);
}

.animate-slide-up {
    animation: slideUp var(--transition-medium);
}

.animate-scale-in {
    animation: scaleIn var(--transition-medium);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition-medium);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .nav-links .cta-button {
        margin: 1rem 0 0;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero .tagline {
        font-size: 1.2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .logo img {
        height: 36px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .hero .tagline {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* Styles pour la navigation active */
.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Language Selector */
.language-selector {
    margin-left: 2rem;
    position: relative;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.lang-switch i {
    font-size: 1.1rem;
}

.lang-switch span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* RTL Language Selector */
[dir="rtl"] .language-selector {
    margin-right: 2rem;
    margin-left: 0;
}

/* Mobile Language Selector */
@media (max-width: 768px) {
    .language-selector {
        margin: 1rem 0;
    }
    
    .lang-switch {
        justify-content: center;
    }
}
