/* Importation de la police Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* Définition des constantes (variables CSS) */
:root {
    /* Couleurs */
    --blue-dark: #1F376A;    /* Bleu foncé */
    --blue-light: #22C0E0;   /* Bleu clair */
    --white: #ffffff;        /* Blanc */
    --grey-light: #f4f4f4;   /* Gris clair */
    --grey-dark: #333333;    /* Gris foncé */
    
    /* Ombres */
    --shadow-light: rgba(0, 0, 0, 0.1);  /* Ombre légère */
    --shadow-hover: rgba(0, 0, 0, 0.15); /* Ombre au survol */

    /* Espacements et tailles */
    --padding-section: 30px;
    --font-size-base: 1em;
    --font-size-lg: 2em;
    --font-size-md: 1.1em;
    --font-size-sm: 1.3em;

    /* Police */
    --font-family: 'Poppins', sans-serif;

    /* Autres */
    --transition-duration: 0.3s;
}

/* Global */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--grey-light);
    color: var(--grey-dark);
}

/* Header */
header {
    background: var(--blue-dark);
    color: var(--white);
    padding: 15px 10px;
    text-align: center;
    font-size: 1.3em;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logo {
    height: 150px; /* Ajuste la taille selon ton image */
    width: auto;
}


nav a {
    color: var(--white);
    margin: 0 15px;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--blue-light);
}

/* Section Hero */
/* Section Hero avec fond bleu clair */
.hero {
    text-align: center;
    padding: 50px 20px;
    background-color: var(--blue-light);  /* Bleu clair comme fond */
    color: var(--white);
    position: relative;
}

.hero h1 {
    font-size: 2em;
    margin: 0;
    position: relative;
    z-index: 2;
}

.hero p {
    font-size: 1.1em;
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

.top-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('fond.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white); /* Garde la couleur blanche pour le texte */
}

/* Pour que le header et hero ne masquent pas l'image */
.top-banner header,
.top-banner .hero {
    background: transparent;
}

.hero h1, .hero p {
    color: var(--white); /* Texte en blanc pour améliorer la visibilité */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Ajout d'une ombre portée au texte pour un meilleur contraste */
}

/* Services */
.services, .contact {
    padding: 30px 20px;
    text-align: center;
}

.services h2, .contact h2 {
    color: var(--blue-dark);
    font-weight: 600;
}

.service-list {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.service {
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-light);
    width: 220px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

/* Formulaire de contact */
.contact form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: auto;
}

input, textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

button {
    background: var(--blue-dark);
    color: var(--white);
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}

button:hover {
    background: var(--blue-light);
}

/* Footer */
footer {
    background: var(--blue-dark);
    color: var(--white);
    padding: 20px 10px;
    text-align: center;
    margin-top: 20px;
}

/* Contact info in footer */
.footer-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    align-items: center;
    margin: 5px 12px; /* Réduction de l'espace entre les éléments */
    color: var(--white);
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    margin-left: 5px; /* Réduction de l'espace entre l'icône et le texte */
    font-size: 1em;
}

.contact-icon {
    font-size: 20px; /* Légère réduction de la taille de l'icône pour un meilleur alignement */
    margin-right: 6px; /* Réduction de l'espace entre l'icône et le texte */
}

/* Small screen responsiveness */
@media (max-width: 768px) {
    .footer-contact {
        flex-direction: column;
        align-items: center;
    }

    .contact-info {
        margin: 5px 0; /* Espacement réduit sur mobile */
    }
}
