/* Réinitialisation des styles */

* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;

}

/* ---- NAVBAR ---- */

.navbar {

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    background-color: #333;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;

}

.navbar a:hover {

    color: chocolate;

}

.navbar a {

    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: color 0.75s;

}

.nav-links {

    list-style: none;
    display: flex;
    gap: 20px;

}

.nav-links a {

    color: white;
    text-decoration: none;
    font-size: 16px;
    margin: 0 80px;

}

.logo {

    text-align: center;

}

.logo img {

    height: 40px;

}

h2 {

    text-align: center;

}

/* ---- SECTION NOS DÉMARCHES ---- */

#DEMARCHE {

    background-color: lightpink;
    padding: 120px 0 40px; /* Augmente l'espace en haut pour ne pas cacher le titre */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex-grow: 1;

}

/* Titre "Nos Démarches" bien espacé */

#DEMARCHE h2 {

    font-size: 32px;
    margin-bottom: 40px;

}

/* Grille pour afficher uniquement 2 cartes centrées */

.demarche-container {

    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Deux cartes côte à côte */
    gap: 30px; /* Espacement entre les cartes */
    justify-content: center; /* Centre les cartes */
    align-items: center; /* Aligne verticalement */
    width: 90%;
    max-width: 1200px;
    flex-grow: 1;
    min-height: 60vh; /* Hauteur ajustée */
    padding-bottom: 20px;

}

/* Style des cartes */

.demarche-carte {

    background-color: #fff;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: 0.3s;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px; /* Ajustement hauteur */
    width: 100%; /* Les cartes prennent toute la largeur */

}

/* Images carrées */

.demarche-carte img {

    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;

}

/* Effet au survol */

.demarche-carte:hover {

    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);

}

/* ---- RESPONSIVE ---- */

/* Pour les tablettes et écrans plus petits */

@media (max-width: 1024px) {

    .demarche-container {

        grid-template-columns: repeat(1, 1fr); /* 1 seule colonne */

    }

}

/* ---- STRUCTURE GLOBALE ---- */

html, body {

    height: 100%;
    margin: 0;
    padding: 0;

}

body {

    display: flex;
    flex-direction: column;
    min-height: 100vh;

}

main {

    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 0 auto;

}

/* ---- FOOTER ---- */

.footer {

    background-color: #333333;
    color: white;
    padding: 25px 30px;
    text-align: center;
    width: 100%;
    margin-top: auto;
    position: relative;
    bottom: 0;
    left: 0;

}

/* Liens du footer */

.footer-links ul {

    list-style: none;
    display: flex;
    gap: 35px;
    padding: 0;
    margin: 0;
    justify-content: center;
    align-items: center;

}

.footer-links a {

    color: white;
    text-decoration: none;
    padding: 15px 10px;
    border-radius: 5px;
    transition: color 0.75s;

}

.footer-links a:hover {

    color: chocolate;

}