@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    font-family: "Poppins", sans-serif;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #dbe5f1;
    height: 76px;
}

.column {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav {
    gap: 0;
}

.nav-btn {
    background-color: #dbe5f1;
    color: black;
    font-family: 'Poppins', sans-serif;
    border: none;
    height: 96px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease-in-out, font-size 0.3s, color 0.3s;
}

.nav-btn:hover {
    background-color: #0056b3;
    color: white;
    font-size: 1.2em;
}

/* Slideshow */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 850px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide.active {
    opacity: 1;
}

/* Présentation */
.presentation {
    text-align: center;
    padding: 50px 15%;
    background-color: #f8f8f8;
}

.presentation .content {
    display: inline-block;
    padding: 30px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.presentation h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
}

.presentation p {
    font-size: 1.2em;
    color: #555;
    line-height: 1.6;
}

/* Cartes */
.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.card {
    flex: 0 0 auto;
    width: 30%;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    background-color: white;
}

.card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.view-btn {
    margin-top: 10px;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: large;
}

.view-btn:hover {
    background-color: #0056b3;
}

/* Footer */
.site-footer {
    background-color: #f0f0f0;
    color: #333;
    padding: 30px 20px;
    font-size: 0.95em;
    border-top: 1px solid #ccc;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-item {
    flex: 1 1 200px;
}

.footer-item a {
    color: #0056b3;
    text-decoration: none;
}

.footer-item a:hover {
    text-decoration: underline;
}

/* -------- Responsive -------- */
@media (max-width: 1024px) {
    .card {
        width: 45%;
    }
}

/* -------- Responsive -------- */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        height: auto;
        padding: 10px;
        gap: 10px;
    }

    /* Réduction de la taille des images dans le header */
    .header img {
        width: 60px;
        /* Ajuste selon besoin */
        height: auto;
    }

    .nav-btn {
        height: auto;
        font-size: 0.9em;
    }

    .slideshow-container {
        height: 400px;
    }

    .card {
        width: 90%;
    }

    /* Présentation */
    .presentation {
        padding: 30px 10px;
    }

    .presentation .content {
        padding: 20px;
    }

    /* Correction des images rognées dans les cartes */
    .card img {
        width: 100%;
        height: auto;
        /* Ajuste la hauteur automatiquement */
        object-fit: contain;
        /* Conserve le ratio sans rogner */
    }
}

@media (max-width: 480px) {
    .slideshow-container {
        height: 300px;
    }

    .nav-btn {
        font-size: 0.8em;
        padding: 5px 10px;
    }

    .header img {
        width: 50px;
    }

    /* Encore plus petite sur très petit écran */
}