/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

header {
    background-color: #003366; /* Bleu marine */
    color: #fff;
    padding: 1rem 0;
    border-bottom: 3px solid #FFD700; /* Jaune */
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

nav .logo img {
    height: 50px; /* Adjust as needed */
    vertical-align: middle;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #FFD700; /* Jaune */
}

main {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

section:last-child {
    margin-bottom: 0;
}

h1, h2, h3 {
    color: #003366; /* Bleu marine */
}

h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #003366; /* Bleu marine */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #FFD700; /* Jaune */
}

.button-primary {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background-color: #FFD700; /* Jaune */
    color: #003366; /* Bleu marine */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: 2px solid #003366;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.button-primary:hover {
    background-color: #003366;
    color: #FFD700;
    text-decoration: none;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
}

footer p {
    margin: 0.5rem 0;
}

/* Gallery Styles */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item {
    width: 300px; /* Fixed width */
    height: 250px; /* Fixed height */
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area, cropping if necessary */
    transition: transform 0.3s ease;
}

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

/* Contact Form Styles */
.contact-section {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-details,
.contact-form {
    flex-basis: 100%; /* Full width on small screens */
}

@media (min-width: 768px) {
    .contact-details,
    .contact-form {
        flex-basis: calc(50% - 1rem); /* Two columns on larger screens */
    }
}

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

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Important for width 100% to include padding and border */
    margin-bottom: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button[type="submit"] {
    padding: 0.8rem 1.5rem;
    background-color: #FFD700; /* Jaune */
    color: #003366; /* Bleu marine */
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-form button[type="submit"]:hover {
    background-color: #003366;
    color: #FFD700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        display: none; /* Hidden by default on mobile, can be toggled with JS */
    }

    nav ul.active {
        display: flex; /* Show when active */
    }

    nav ul li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    /* Basic hamburger menu icon (can be improved with JS or SVG) */
    .menu-toggle {
        display: block; /* Show on mobile */
        cursor: pointer;
        color: #003366;
        font-size: 1.5rem;
        padding: 0.5rem;
        border: 1px solid #FFD700;
        border-radius: 4px;
    }

    .services-grid > div {
        max-width: 100%;
        flex-basis: 100%;
    }
}

/* Hide toggle on larger screens */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

/* Helper class for sections with specific background */
.bg-light-gray {
    background-color: #f9f9f9;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.text-center {
    text-align: center;
}

.max-width-700 {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.max-width-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.services-grid > div {
    text-align: center;
    max-width: 300px;
    margin: 1rem;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #fff;
}

