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

/* En-tête */
header {
    text-align: center;
    padding: 2rem 1rem;
    color: #fff;
    background-image: url('images/header-bg.jpg');
    background-size: contain; /* L'image s'adapte à l'espace disponible */
    background-position: center;
    background-repeat: no-repeat;
    height: 400px; /* Ajuste la hauteur si nécessaire */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}
/* Ombre portée sur le texte */
header h1 {
    font-size: 4.5rem; /* Titre plus grand */
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Ombre noire douce */
    margin: 0.5rem 0;
}

/* Phrase d'accroche */
header p {
    font-size: 2.2rem; /* Texte plus grand pour bien ressortir */
    font-weight: lighter;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Même ombre que le titre */
    margin: 0.5rem 0;
}

/* Option : Ajouter un fond semi-transparent derrière le texte */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Fond sombre avec transparence */
    z-index: 1; /* Place derrière le texte */
}

/* Pour que le texte soit au-dessus du fond semi-transparent */
header h1, header p {
    position: relative;
    z-index: 2;
}


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

/* Services */
#services {
    background-color: #fff;
}

.services-container {
    display: flex;
    justify-content: center; /* Centre les éléments horizontalement */
    gap: 1rem; /* Espace entre les éléments */
    padding: 1rem 0;
    max-width: 1200px; /* Limite la largeur totale */
    margin: 0 auto; /* Centre la section */
}

.service {
    flex: 0 0 auto;
    width: 250px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1rem;
    background-color: #f9f9f9;
    text-align: center;
}

.service img {
    max-width: 100%;
    border-radius: 8px;
}

.service h3 {
    margin: 0.5rem 0;
}

.service p {
    font-weight: bold;
    color: #333;
}

/* Formulaire de contact */
form {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes pour les libellés et champs */
    gap: 1rem; /* Espacement entre les champs */
    max-width: 800px; /* Largeur maximale du formulaire */
    margin: 0 auto; /* Centre le formulaire dans la page */
}

form label {
    text-align: left; /* Alignement à gauche des libellés */
    grid-column: span 2; /* Les libellés occupent toute la largeur */
    font-weight: bold;
}

form input, form textarea {
    grid-column: span 2; /* Champs occupent toute la largeur */
    margin: 0 auto; /* Centre horizontalement */
    width: 100%; /* Largeur des champs */
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    grid-column: span 2; /* Bouton centré */
    margin: 0 auto;
    width: 50%; /* Ajuste la largeur du bouton */
    padding: 0.5rem;
    background-color: #333;
    color: #fff;
    cursor: pointer;
    border: none;
    border-radius: 4px;
}

form button:hover {
    background-color: #555;
}

/* Styles pour le footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 1.5rem 0;
    margin-top: 2rem;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ccc;
    text-decoration: underline;
}

.separator {
    margin: 0 1rem;
    color: #777;
}

.copyright {
    font-size: 0.8rem;
    color: #aaa;
    margin: 0;
}
