body {
    margin: 0;
    /* Espace sous la navbar fixe */
    padding-top: 56px;

    /* Layout en colonne pour coller le footer en bas même avec peu de contenu */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

/**********************************************
*****************HEARDER**********************
********************************************/
header {
    width: 100%;
    min-height: 5vh;
    background-image: url(../ressources/fond3.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 0 0 15px 15px;
    margin-bottom: 5px;
}

.text-nav {
    font-size: 1.5rem;
}

.navsygbuss {
    position: fixed;
    top: 0px;
    width: 100%;
    /* opacity: 0.6; */
    background-color: rgba(25, 135, 84, 0.75);
    backdrop-filter: saturate(180%) blur(6px);
    z-index: 10;
    height: 56px;
}

.image_logo {
    width: 40px;
    height: 40px;
    /* margin-right: 5px; */
}

.image_deconnexion {
    width: 30px;
    height: 30px;
}

.btn-index {
    /* width: 250px;
    height: 60px; */
    font-size: 5em;
    color: #f1f1f1;
    border-radius: 35px;
    padding-left: 35px;
    padding-right: 35px;
    background-color: rgba(4, 128, 45, 0.8);
}

.btn-index-dis {
    width: 250px;
    height: 60px;
    font-size: 20px;
    color: #f1f1f1;
    border-radius: 7px;
    background-color: rgb(136, 138, 133);
}


.btn-index:hover {
    /* width: 260px;
    height: 65px; */
    box-shadow: 5px 5px 5px #f1f1f1;
}

.bouton-connect {

    text-align: center;
    position: relative;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.text-logo {
    /* font-size: 4rem; */
    font-size: clamp(1.75rem, 4vw + 1rem, 3rem);
    line-height: 60px;
    font-weight: bold;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: greenyellow;
    /* text-shadow: #FFFCA8 2px 2px 0px, #9C9C9C 4px 4px 0px; */
    position: absolute;
    top: 35%;
    margin: 0 0 0 30px;
    animation: texte-logo 3s ease-in;
}

.text-head {
    background-color: rgba(0, 0, 0, 0.3);
    text-align: center;
    /*color: #f1f1f1;*/
    color: crimson;
    font-size: 25px;
    font-weight: bold;
    margin: 40px auto 10px auto;
    /*display:none;*/
}

#zone1 {
    display: none;
}

.text-head a {
    font-size: 30px;
}

.css-3d-text {
    color: #11ad28;
    font-family: Playball, cursive, 'Arial Narrow';
    text-shadow: 0px 0px 0 rgb(-11, 145, 12),
        -1px -1px 0 rgb(-40, 116, 0),
        -2px -2px 0 rgb(-68, 88, 0),
        -3px -3px 0 rgb(-96, 60, 0),
        -4px -4px 0 rgb(-124, 32, 0),
        -5px -5px 0 rgb(-153, 3, 0),
        -6px -6px 0 rgb(-181, -25, 0),
        -7px -7px 0 rgb(-209, -53, 0),
        -8px -8px 7px rgba(223, 237, 29, 1),
        -8px -8px 1px rgba(223, 237, 29, 0.5),
        0px 0px 7px rgba(223, 237, 29, .2);
}

#errorindef {
    font-size: 2em;
    font-weight: bold;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

@keyframes texte-logo {
    0% {
        margin-left: 50%;
        transform: scale(0);
    }
}

@media screen and (max-width: 700px) {
    .text-head {
        font-size: 15px;
    }

    .bouton-connect {
        position: static;
        /* revenir dans le flux normal */
        top: auto;
        left: auto;
        transform: none;
        margin-top: 0.05rem;
        /* espace sous la navbar */
        display: flex;
        justify-content: center;
    }

    .text-head a {
        font-size: 25px;
    }

    /* .text-logo {
        font-size: 3.5rem;
    } */
    .text-logo {
        /* Réduction et limitation de l'occupation de l'écran sur mobile */
        font-size: clamp(1.45rem, 5.5vw, 2.1rem);
        position: relative;
        top: auto;
        margin: 10px 15px 0;
    }

    .btn-index {
        width: 200px;
        height: 50px;
        font-size: 18px;
        color: #f1f1f1;
        border-radius: 7px;
        background-color: rgba(4, 128, 45, 0.8);
    }

    .btn-index:hover {
        width: 210px;
        height: 55px;
        box-shadow: 3px 3px 3px #f1f1f1;
    }

    .navsygbuss {
        height: 56px;
    }

    body {
        padding-top: 56px;
    }
}

/**********************************************
*****************MAIN**********************
********************************************/
.texte-service {
    border: 2px solid;
    border-radius: 42px 42px 101px 101px / 16px 16px 60px 60px;
    /* width: 55%; */
    /* height: 100px; */
    width: min(90%, 900px);
    height: auto;
    text-align: center;
    margin: 15px auto;
    padding: 15px 0;
    font-size: clamp(1.25rem, 2.2vw + 1rem, 2.5rem);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: aquamarine;
    color: #11ad28;
}

#card-index {
    border: 3px solid;
    border-color: rgb(16, 212, 98);
    background-color: rgba(127, 255, 212, 0.3);
    box-shadow: 0 5px 5px 5px;
    border-radius: 10px;
}

.card-title {
    font-size: clamp(1.25rem, 1.4vw + 1rem, 2rem);
    text-transform: uppercase;
    font-weight: bold;
}

.card-text {
    font-size: clamp(1rem, 1vw + 0.875rem, 1.25rem);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: white;
    background-color: rgb(78, 75, 71);
}

.img-container {
    display: flex;
    justify-content: center;
    padding: 15px;
}

.img-card {
    /* height: 50%;
    width: 50%; */
    /* Ajustez cette valeur selon vos besoins */
    object-fit: contain;
    width: 100%;
    height: auto;
    max-width: 480px;
    object-fit: cover;
}

.card-button {
    /* display: block;
    text-decoration: none;
    border: 1px solid #11ad28;
    border-radius: 10px;
    background-color: antiquewhite;
    width: 25%;
    height: 60px;

    padding: 5px;
    color: rgb(116, 116, 232);
    cursor: pointer; */
    /* font-size: 3em; */
    font-size: clamp(0.95rem, 1vw + 0.85rem, 1.25rem);
}

/* .card-button:hover {
    opacity: 0.8;
    width: 175px;
    height: 38px;
    box-shadow: 2px 2px 2px 2px gray;
}

.card-button:active {
    opacity: 0.7;
    width: 170px;
    height: 38px;
    box-shadow: -2px 3px 3px;
} */

/* ------------------------------- */
/* footer */
/* ------------------------------- */
/* 
footer {
    margin: 30px 10px 0 10px;
    font-size: 20px;
} */
footer {
    /* position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    margin: 0;
    font-size: 1.5em;
    background: #fff;
    z-index: 40;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05); */
    margin-top: auto;
    /* Clé: pousse le footer au bas de l’écran si page courte */
    width: 100%;
    font-size: clamp(1rem, 1vw + 0.9rem, 1.25rem);
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

html {
    height: 100%;
}

.img-contact {
    width: 20px;
    height: 20px;
}

#text-contacter {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: cadetblue;
    margin: 5px 0px;
    background-color: bisque;
}

#text-contacter p {
    margin: 0 10px;
}

.contacts {
    border-left: 2px solid #333;
    padding-left: 5px;
}

/* ------------------------------- */
/* partie Caroussel */
/* ------------------------------- */

.titre-caroussel {
    margin-top: 30px;
    font-size: 20px;
    font-family: fantasy;
    text-decoration: underline;
    color: chocolate;
    display: flex;
    justify-content: center;
}

.bloc-carroussel {
    margin: 20px auto;
    width: 55%;
    border: 2px solid #333;
    border-radius: 10px;
}

@media screen and (max-width: 600px) {
    .titre-caroussel {
        font-size: 15px;
    }

    .bloc-carroussel {
        width: 80%;
        border-radius: 10px;
    }

    footer {
        font-size: 15px;
    }

    .img-contact {
        width: 15px;
        height: 15px;
    }

}