/* ===========================
   GENERAL
=========================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
 }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* pour footer en bas */
    color: white;
    background:
        linear-gradient(to bottom, rgba(0, 50, 150, 0.05) 0%, rgba(0, 50, 150, 0.02) 50%, rgba(0, 50, 150, 0) 100%),
        url('../images/background.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* ===========================
   HEADER
=========================== */
.top-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 50px;
    background-color: rgba(0, 50, 150, 0.6); /* bleu léger */
    color: white;
}

.top-banner .logo img {
    height: 50px;
    vertical-align: middle;
    margin-right: 10px;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-list li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===========================
   HERO SECTION (Accueil)
=========================== */
main {
    flex: 1; /* occupe tout l'espace entre header et footer */
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 50px;
    height: calc(100vh - 80px);
}

.hero-text h1 {
    font-size: 5rem; /* texte très grand */
    line-height: 1.1;
}

.hero-text h1 .highlight {
    color: #001f5b; /* bleu profond */
}

.hero-text .hero-subtext {
    font-size: 1.5rem;
    margin-top: 20px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

/* ===========================
   FLOATING BUTTONS
=========================== */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.floating-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #001f5b;
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.floating-buttons a:hover {
    transform: scale(1.1);
}

/* ===========================
   FOOTER
=========================== */
footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 50, 150, 0.6);
    color: white;
}

/* ===========================
   SERVICES GRID
=========================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes fixes */
    grid-template-rows: repeat(2, auto);   /* 2 lignes */
    gap: 30px;
    padding: 40px;
    justify-items: center;
}

.service-card {
    background-color: rgba(0, 50, 150, 0.8); /* bleu foncé semi-transparent */
    color: white;
    border-radius: 10px;
    overflow: hidden;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    color: #ffdd00; /* titre jaune */
    margin: 15px 0 10px 0;
}

.service-card .service-desc {
    opacity: 0;
    margin-bottom: 15px;
    padding: 0 10px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* ===========================
   ABOUT / A PROPOS
=========================== */
.about-section {
    padding: 40px 50px;
    background-color: rgba(0,50,150,0.05);
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.about-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

/* Galerie patchwork sur la page À propos */
.about-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* plus grandes colonnes */
    gap: 20px;
    margin-top: 20px;
}

.about-gallery img {
    width: 100%;      /* occupe toute la colonne */
    height: auto;     /* conserve les proportions */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.about-gallery img:hover {
    transform: scale(1.05); /* léger zoom au survol */
}
/* Section À propos */
.about-text h2 {
    font-size: 2.5rem; /* titre principal plus grand */
    color: #ffffff;
    margin-bottom: 15px;
}

.about-text p {
    font-size: 1.2rem; /* texte principal plus grand */
    line-height: 1.6;
    color: #f0f0f0;
}

.about-section h3 {
    font-size: 2rem; /* sous-titre "Quelques-unes de nos réalisations :" plus visible */
    color: #ffffff;
    margin-top: 30px;
}

/* ===========================
   CONTACT FORM
=========================== */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    padding: 40px 50px;
    gap: 50px;
    justify-content: space-between;
}

.contact-form {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 10px;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
    width: 100%;
}

.contact-form button {
    padding: 12px;
    background-color: #001f5b;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-info {
    flex: 1 1 300px;
    color: #001f5b;
    font-weight: bold;
}

.contact-info a {
    color: #001f5b;
    text-decoration: none;
}

/* ===========================
   RESPONSIVE
=========================== */
@media screen and (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .top-banner {
        flex-direction: column;
        padding: 10px 20px;
    }
    .nav-list {
        flex-direction: column;
        gap: 10px;
        display: none;
    }
    .menu-toggle {
        display: block;
    }
}

@media screen and (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .hero-text .hero-subtext {
        font-size: 1rem;
    }
    .contact-container {
        flex-direction: column;
    }
}

/* ===========================
   MOBILE MENU SCRIPT (toggle)
=========================== */
.nav-list.active {
    display: flex;
}
