/* Variables - Cohérence avec le thème */
:root {
    --primary-color: #2e7d32;
    --secondary-color: #4caf50;
    --accent-color: #00bcd4;
    --light-color: #f5f5f5;
    --dark-color: #333;
    --shadow: 0 4px 20px rgba(0, 188, 212, 0.15);
    --transition: all 0.3s ease;
}

/* Reset et base - identique aux autres pages */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: white;
}

h1, h2, h3, h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Header */
header {
    background-color: rgba(254,252,250,255);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo-container {
    display: flex !important;
    align-items: flex-start !important; /* aligne à gauche */
}

.logo-link {
    display: flex !important;
    flex-direction: column !important; /* Texte au-dessus, logo en-dessous */
    align-items: flex-start !important;
    text-decoration: none;
    transition: transform 0.3s ease;
    gap: 0; /* Supprime l'espace par défaut entre les éléments flex */
}

.company-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 0; /* Ajustez selon besoin */
    text-align: left;
    width: 100%; /* Prend toute la largeur */
    text-indent: 15px;
}

.logo {
    width: 20%; /* Largeur naturelle du logo */
    height: auto;
    margin-top: 0; /* Ajustez si nécessaire */
    align-self: flex-start; /* Alignement à gauche */
}

/* Effet au survol */
.logo-link:hover {
    transform: scale(1.02);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

nav .active a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Contact Hero */
.contact-hero {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-method i {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 188, 212, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Contact Form Section */
.contact-form-section {
    background-color: rgba(46, 125, 50, 0.05);
    padding: 4rem 0;
}

.contact-form-section .form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 3rem;
}

.form-container > div {
    flex: 1;
}

.form-container h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

form {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2);
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input {
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.9rem;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
}

/* Form Sidebar */
.form-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.sidebar-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.opening-hours {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.day {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.emergency-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(255, 0, 0, 0.05);
    border-left: 3px solid #f44336;
    border-radius: 0 5px 5px 0;
}

.emergency-contact i {
    color: #f44336;
    font-size: 1.2rem;
}

/* Map Section */
.map-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.map-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    border: none;
}

/* Footer - avec modifications pour cette page */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-logo img {
    width: 150px;
    filter: brightness(-1) invert(1);
}

.footer-links h4, .footer-contact h4 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    margin-bottom: 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: #aaa;
    font-size: 0.8rem;
}

.legal-links a:hover {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 900px) {
    .contact-hero {
        flex-direction: column;
        text-align: center;
    }

    .contact-methods {
        align-items: center;
    }

    .contact-form-section .form-container {
        flex-direction: column;
    }

    .form-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-card {
        flex: 1;
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        margin-top: 1rem;
        gap: 1rem;
    }

    .contact-hero h1 {
        font-size: 2rem;
    }

    .sidebar-card {
        min-width: 100%;
    }
}

/* Responsive pour petits écrans */
@media (max-width: 768px) {
    .company-name {
        font-size: 1.1rem;
        margin-left: 10px;
    }
    
    .logo {
        width: 40px; /* Réduire légèrement le logo */
    }
}

/* Pour très petits écrans */
@media (max-width: 480px) {
    .company-name {
        display: none; /* On peut masquer le texte si nécessaire */
    }
}