/*--------------------*/ /*----------------------*/
/* Gestion des écrans */ /*  Modifié le 08/12/24 */
/*--------------------*/ /*----------------------*/


/*------------------------*/
/* Gestion menu hamburger */
/*------------------------*/

@media screen and (max-width: 768px) {
    .hamburger-menu .menu-icon {
        display: block;
        cursor: pointer;
    }

    .hamburger-menu .menu-icon span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #333;
        margin: 5px 0;
    }

    .hamburger-menu .menu-list {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .hamburger-menu .menu-toggle {
        display: none;
    }

    .hamburger-menu .menu-toggle:checked ~ .menu-list {
        display: flex;
    }
}

@media screen and (min-width: 769px) {    
    .menu-toggle {
        display: none !important;  /*supprime la case à cocher sur un écran d'ordinateur */
    }
}

@media screen and (min-width: 769px) {
    .hamburger-menu .menu-icon {
        display: none;
    }

    .hamburger-menu .menu-list {
        display: flex !important;
    }
}

/*-------------------------------*/
/* Fin Gestion du menu hamburger */
/*-------------------------------*/


@media screen and (max-width: 768px) {
    /* Écran de petite taille (par exemple, smartphones en orientation portrait) */
    body {
        flex-direction: column;
        align-items: center;
    }

    header, nav, main {
        width: 90%;
    }

    footer {
        font-size: 10px; /* Taille du texte pour le footer  */
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav li {
        margin: 10px 0;
    }

    main {
        flex-direction: column;
    }

    .content, .sidebar {
        flex: none;
        width: 100%;
    }

    header h1 {
        font-size: 13px;
    }

    .parent {
        margin-bottom: 40px;
    }

    .content h2 {
        font-size: 30px;
    }

    /* ----------------------------------------------------- */
    /* Gestion de la class 'container' dans la page contrats */
    /* ----------------------------------------------------- */

    .texte-droite {
        padding-left: 0; /* Réinitialise l'espacement à gauche du texte */
    }

    /* Mettre en page les éléments en une seule colonne */
    .responsive-table tr {
        display: block;
        margin-bottom: 10px;
    }
    .responsive-table th, .responsive-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    /* Centrage du texte et des images */
    .center-text {
        text-align: center;
    }

    .center-content {
        text-align: center;
    }

    .center-content img {
        width: 100%;
        height: auto;
    }
}

@media screen and (min-width: 769px) and (max-width: 1200px) and (orientation: landscape) {
    /* Écran de taille moyenne (par exemple, tablettes en orientation paysage) */
    header h1 {
        font-size: 19px;
    }
}

@media screen and (max-width: 480px) {
    header h1 {
        font-size: 24px;
    }
}
