/* ============================================
   LCArchitecture - Feuille de style CSS
   ============================================ */

/* Reset et variables */
:root {
    --noir: #000000;
    --blanc: #FFFFFF;
    --gris: #808080;
    --police-principale: 'Roboto', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--police-principale);
    color: var(--noir);
    background-color: var(--blanc);
    line-height: 1.6;
}

/* En-tête */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--blanc);
    border-bottom: 1px solid var(--gris);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    height: 100px;
    width: auto;
}

/* Menu */
nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--noir);
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
    /*position: relative;*/
}

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

nav ul li a.active {
    color: var(--gris);
    border-bottom: 2px solid var(--gris);
}

/* Menu mobile */
.menu-mobile {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--noir);
    z-index: 101;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-image {
    width: 85%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Sections générales */
section {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

section:not(:last-child) {
    border-bottom: 1px solid #eee;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--noir);
    text-align: center;
}

h2 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: var(--gris);
    border-bottom: 1px solid var(--gris);
    padding-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
	text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
}

/* Formulaire de contact */
.contact-form-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gris);
    border-radius: 4px;
    font-family: var(--police-principale);
    font-size: 1rem;
}

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

.submit-button {
    background-color: var(--noir);
    color: var(--blanc);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.submit-button:hover {
    background-color: var(--gris);
}

.confirmation-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    text-align: center;
}

/* Carte Google Maps */
.google-maps {
    margin: 2rem auto;
    text-align: center;
    max-width: 1000px;
}

.google-maps iframe {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 450px;
}

/* Pied de page */
footer {
    text-align: center;
    padding: 0.5rem;
    background-color: var(--noir);
    color: var(--blanc);
    margin-top: 0.5rem;
}

.logo-footer {
    height: 50px;

}

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

footer a:hover {
    text-decoration: underline;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    margin: 0 0.5rem;
    color: var(--blanc);
}

/* Menu mobile - Positionnement à droite */
@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
    }

    .menu-mobile {
        display: block;
        z-index: 101;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 0;
        right: 0;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--blanc);
        flex-direction: column;
        padding: 1rem 0.5rem 0.5rem; /* Espacement réduit en haut et en bas*/
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 0.1rem 0; /* Espacement réduit entre les éléments*/
        text-align: left;
    }

    nav ul li a {
        padding: 0.1rem 0.1rem; /* Espacement réduit autour des liens*/
        display: block;
    }

    .hero-image {
        max-height: 300px;
    }

    .google-maps iframe {
        height: 300px;
    }
}

/* Animation pour le menu mobile */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

nav ul {
    animation: fadeIn 0.3s ease-in-out;
}
