/* --------------------------------------------
----                                       ----
----      MODE DE FONCTIONNEMENT COMMUN    ----
----                                       ----
-----------------------------------------------
*/

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: url('../img/poids3.png');
    background-repeat: repeat;
    background-attachment: fixed;
}

/* partie qui permet au footer de rester en bas de l ecran */
.content {
    flex: 1;
}

main {
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 35px 10px;
}

/* =============================================
   STYLES DU popup DE CONFIRMATION (Oui/Non)
   ============================================= */

/* Fond semi-transparent qui couvre tout l'écran */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Gris foncé transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* Assure que le modal est au-dessus de tout */
}

/* Boîte de contenu du modal */
.modal-content {
    background-color: #213c54;
    /* Même couleur que le container */
    color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    max-width: 300px;
    text-align: center;
}

.modal-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* Conteneur des boutons */
.modal-actions {
    display: flex;
    justify-content: space-around;
    gap: 15px;
}

/* Style général des boutons du modal */
.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-grow: 1;
    /* Pour que les boutons aient la même taille */
}

/* Bouton OUI (Confirmer la sortie) */
.modal-btn-confirm {
    background-color: #e74c3c;
    /* Rouge pour l'action destructive/départ */
    color: white;
}

.modal-btn-confirm:hover {
    background-color: #c0392b;
}

/* Bouton NON (Annuler/Rester) */
.modal-btn-cancel {
    background-color: #3498db;
    /* Bleu pour l'action positive/rester */
    color: white;
}

.modal-btn-cancel:hover {
    background-color: #2980b9;
}


/* --------------------------------------------
----                                       ----
----  EN MODE DE FONCTIONNEMENT TELEPHONE  ----
----                                       ----
-----------------------------------------------
*/

@media screen and (max-width:767.98px) {


    .headerImage {
        display: none;

    }

    body {

        /* Diminuer un peu la taille pour le mobile pour qu'il ne soit pas trop présent */
        background-size: 20%;
    }

}


/* --------------------------------------------
----                                       ----
----      EN MODE DE FONCTIONNEMENT PC     ----
----                                       ----
-----------------------------------------------
*/

@media screen and (min-width:768px) {


    .main-content {
        max-width: 1200px;
        /* Limite la largeur max de votre contenu */
        margin: 0 auto;
        /* Centre le conteneur */
        padding: 40px 20px;
        /* Ajoute de l'espace sur les côtés */
    }

    .headerImage {
        background-image: url("../img/header.png");
        display: block;
        height: 160px;
        background-size: cover;
        background-position: bottom;
        margin-bottom: 20px;

    }

    body {
        /* Une taille légèrement plus grande pour l'écran PC */
        background-size: 30%;
    }

}