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

html {
    scroll-behavior: smooth;
}

/* HEADER */
header {
    background-color: #004080;
    color: white;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

header p {
    margin: 5px 0 0;
    font-size: 1.2em;
}

/* LANG SWITCH */
.lang-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 16px;
    z-index: 1000;
}

.lang-btn {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    background-color: #333;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.lang-btn:hover {
    background-color: #555;
}


/* HERO - VERSION STABLE POUR FR ET NL */
.hero {
    min-height: 600px;
    max-height: none;  /* 'none' au lieu de 'auto' pour la hauteur max */
    background-image: url('../images/facade.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    position: relative;
    color: white;
    padding-top: 80px;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;      /* Réduit l'espace pour stabiliser l'alignement */
    padding-top: 20px;        /* Ajustable selon le rendu visuel */
}

.header-text {
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 3.5em;         /* Ajustable si texte FR trop long */
    margin: 0;
    color: white;
}

.hero p {
    font-size: 1.3em;         /* Ajustable pour éviter dépassement */
    margin-top: 10px;
    color: #ddd;
}

/* NAVIGATION */
nav {
    position: relative;
    z-index: 2;
    margin-top: 20px;
}

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

nav li {
    margin: 0;
}

nav a {
    font-size: 1.5em;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav a:hover,
nav a:focus {
    background-color: #0066cc;
    color: white;
    transform: scale(1.1);
}

nav a:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* SECTIONS */
section {
    padding: 20px;
    max-width: 1000px;
    margin: 10px auto 0;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    scroll-margin-top: 100px;
}

h2 {
    color: #004080;
}

/* LISTES */
ul {
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

/* CONTACT */
#contact p {
    margin: 5px 0;
}

/* FOOTER */
footer {
    background-color: #004080;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
    font-size: 0.9em;
}

/* FORMULAIRE */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

form label {
    font-weight: bold;
    color: #004080;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="number"],
form input[type="file"],
form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
}

form textarea {
    resize: vertical;
    min-height: 100px;
}

form button {
    background-color: #004080;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #0066cc;
}

/* FORM WRAPPER */
.form-wrapper {
    background-color: #f2f2f2;
    padding: 30px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    max-width: 700px;
    margin: auto;
}

/* FORM LAYOUT */
.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.form-field {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.form-row.full-width {
    flex-direction: column;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    nav a {
        font-size: 1.2em;
        padding: 12px 25px;
    }
    
    .hero {
        padding-top: 60px;
        min-height: 500px;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.1em;
    }

    .header-content {
        margin-bottom: 30px;
        padding-top: 20px;
    }
}
