/*
********************************************************************
********** Feuille de style regroupant les styles globaux **********
********************************************************************
*/
/*
**          Mise en forme général
*/
/*
************************* Page ************************* 
*/
html, body{
    background-color: rgb(247, 247, 247);
    font-family: 'Ancizar_Sans', Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    color: #2d2d83;
}

.page{
    max-width: 1800px;    
    margin: auto;
    margin-bottom: 180px;
}

h2{
    width: auto;
}


/* Première partie de la page : "presentation" */
#question p,
#membership p{
    text-indent: 2.5em;
    margin-left: 3.5em;
    margin-right: 3.5em;
}

p{
    color: #2d2d83;
    text-align: justify;
    font-size: 15px;
}

li{
    margin-bottom: 0.75em;
    font-size: 15px;

}

a{
    color: #e6007e;
    text-decoration: underline;
}
a:hover{
    cursor: pointer;
}

.main_ls{
    color: #2d2d83;
    margin-left: 3.5em;
    margin-right: 3.5em;
    text-align: justify;
}

.info_part{
    color: #e6007e;
    font-weight: bold;
    text-indent: 0em;
    font-size: 1em;
}

#question{
    color: #2d2d83;
    text-indent: 2em;
    font-weight: bold;
    font-family: 'Merienda', Arial, sans-serif;
}

/* Première partie de la page : "membership" */
#membership{
    margin-top: 5em;
}


/*
******************** Titre de page ********************* 
*/
.part_title{ 
    margin: 3em 5% 2em 5%;
}

.part1{
    margin-left: 10%;
}

.part2{
    margin-left: 13%;
    color: #e6007e;
}

/*
******************* Container général ****************** 
*/
#content_container{
    margin: 0 10vw 0 10vw auto;
}

.container{
    width: auto;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    margin: 1em 2.5em 1em 2.5em;
}

.db_col{
    width: 50%;
}

@media only screen and (max-width: 1000px){
    #content_container{
        margin: 0 2.5em 0 2.5em auto;
    }

    .container{
        display: block;
    }

    .db_col {
        width: 100%;
        margin-bottom: 2em;
    }
}

/* 
********************** Tableaux *********************** 
*/
.list_container{
    text-align: center;
}

.list_praticien{
    width: 100% auto;
    max-width: fit-content;
    min-width: 50%;
    border: 2px solid #2d2d83; 
    border-radius: 10px;
    padding: 20px 10px;
    margin-top: 1.5em;
    display: inline-block;
}

.practitioner_table{
    width: 100%;
    padding: 10px;
    border-collapse: collapse;
    text-align: center;
    font-size: larger;
}

.practitioner_table thead {
    border-bottom: 2px solid #2d2d83;
}

.practitioner_table thead th {
    padding-bottom: 20px;
}

.practitioner_table tbody tr:first-child td {
    padding-top: 2.5em;
}

.action-buttons{
    display: flex;
    justify-content: flex-end;
    gap: 50px;
}

.action-buttons button{
    border: solid 1px #2d2d83;
    border-radius: 25px ;
    padding: 8px 20px;
}

.action-buttons .delete_button{
    background-color: rgb(151, 0, 0);
    color: white;
    cursor: pointer;
}

.action-buttons .labelise_button{
    background-color: #85b60b;
    color: white;
    cursor: pointer;
}
.action-buttons #modify_admin{
    background-color: #2d2d83;
    color: white;
    cursor: pointer;
}
.action-buttons .delete_admin{
    background-color: rgb(151, 0, 0);
    color: white;
    cursor: pointer;
}

.add_button_container #add_admin_button{
    background-color: #2d2d83;
    color:white;
    cursor : pointer;
    border : solid 7px #2d2d83;
    border-radius: 20px;
    /*aligner au centre*/
    display : block;
    margin : 2em auto;
}
.action-buttons .delete_exam{
    background-color: rgb(151, 0, 0);
    color: white;
    cursor: pointer;
}
.action-buttons .modify_exam{
    background-color: #2d2d83;
    color: white;
    cursor: pointer;
}
.add_button_container #add_exam_button{
    background-color: #2d2d83;
    color:white;
    cursor : pointer;
    border : solid 7px #2d2d83;
    border-radius: 20px;
    /*aligner au centre*/
    display : block;
    margin : 2em auto;
}

.success-message{
    color: green;
    font-weight: bold;
    margin-bottom: 1em;
}

.error-message{
    color: red;
    font-weight: bold;
    margin-bottom: 1em;
}


/* 
La liste des structures pour les examinateurs et admin
*/
.structure_list_container{
    width: auto;
    max-width: 800px;
    width: fit-content;
    margin: 0 auto; 
    padding: 5px 45px;
    border: 2px solid #2d2d83; 
    border-radius: 10px;
    text-indent: 0;
}

.structure_list{
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: left;
    text-align: left;
    border: 1px solid #2d2d836a; 
    border-radius: 30px;
    padding: 1em 3em;
    margin: 1.5em 0 0.5em 0;
}

.structure_object{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.structure_object details{
    margin-bottom: 15px;
}

.structure_list > .structure_object:last-child details{
    margin-bottom: 0;
}

.informations_container{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: left;
}

.informations_structure{
    padding: 0 2em;
}

.traitement_structure{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: auto;
    padding: 20px 30px 0 30px;
}

.traitement_structure button{
    width: 170px;
}

.traitement_structure .label_structure,
.traitement_structure .label_activite
{
    background-color: #93c21cc6;
    color: #2d2d83;
    border: solid 1px #6d9800;
    border-radius: 15px;
    padding: 10px 40px;
}
.traitement_structure .label_structure:hover,
.traitement_structure .label_activite:hover
{
    background-color: #608600;
    color: white;
    cursor: pointer;
}

.traitement_structure .delete_structure,
.traitement_structure .delete_activite
{
    background-color: rgba(241, 35, 35, 0.781);
    color: #2d2d83;
    border: solid 1px darkred;
    border-radius: 15px;
    padding: 10px 40px;
}
.traitement_structure .delete_structure:hover,
.traitement_structure .delete_activite:hover
{
    color: white;
    background-color: darkred;
    cursor: pointer;
}


@media only screen and (max-width: 850px){
    .structure_list_container{
        padding: 5px 10px;
    }

    .structure_object{
        align-items: center;
        justify-content: center;
    }

    .informations_container{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .traitement_structure{
        flex-direction: column;
        justify-content: space-between;
    }

    .traitement_structure button{
        width: 220px;
    }

    .traitement_structure .label_structure,
    .traitement_structure .label_activite
    {
        margin-bottom: 20px;
    }
}


/* 
La liste des créneaux pour les examinateurs et admin
*/
/* Même disposition que pour la liste des structures juste au dessus */


/*
********************** Des boutons ******************** 
*/
#choix{
    color: #2d2d83;
    margin-bottom: 2em;
    font-weight: normal;
    font-size: 18px;
}

#choix div{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 30px;
    border-radius: 40px;
    border: 2px solid #93c21c;
    line-height: 1.5;
    font-size: 0.9em;
    font-weight: 700;
    margin: 0 0 0.75em 1em;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

#choix div:hover{
    cursor: pointer;
    background-color: #98c72022;
    transition: all 0.3s ease 0s;
}

.button_list{
    margin: 30px 0 50px 0;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
}

.button_list button{
    background-color: #2d2d83;
    color: white;
    padding: 15px 25px;
    border: 1px solid;
    border-radius: 20px;
}

.button_list button:hover{
    cursor: pointer;
    background-color: #e6007e;
}

/* Le bouton de transfert (gros bouton rouge) */
#transfert_button_container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: auto;
    margin: 50px 30px 0 30px;
    text-align: center;
}

#transfert_button_container span{
    font-size: 1em;
    color: #888;
    font-style: italic;
}

#transfert_button{
    width: 150px;
    height: 150px;
    background: linear-gradient(145deg, #ff4c4c, #c80000);
    border: none;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    font-size: 1.5em;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#transfert_button:hover {
    background: linear-gradient(145deg, #b30000, #800000);
    transform: scale(1.05);
    cursor: pointer;
}

#transfert_button:active {
    transform: scale(0.97);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5) inset;
}

#transfert_button.transferred {
    background: linear-gradient(145deg, #38b000, #008000);
    box-shadow: 0 6px 20px rgba(0, 128, 0, 0.4);
}

/* Adaptation de la taille de la liste de bouton user */
@media only screen and (max-width: 1000px){
    .button_list{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 40px;
    }
}


/* 
****************** Partie informative ****************** 
*/
.info_peps{
    color: white;
    background: #2d2d83 url(/Images/logo_info.png) no-repeat;
    background-position: -8% 140%;
    padding: 40px 50px;
    text-align: justify;
    line-height: 1.3em;
    margin: 0 -2px 2em -2px;
}


/*
**          Mise en forme du header
*/
/* 
********************** Le bandeau ********************** 
*/
#bandeau{
    overflow: visible !important;
    position: relative;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 30px;
    background-color: #2d2d83;
    position: relative;
}

.nav_link{
    color: white;
    text-decoration: none;
    padding: 0.5em;
}

.nav_link.active{
    color: #ff0077;
}

.nav_link:hover{
    color: #ff0077;
}

.other_link{
    color: #e6007e;
    text-decoration: none;
}

.other_link:hover{
    text-decoration: underline;
}

#basic_nav_menu{
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

#connect{
    margin-left: auto;
}

#connect a.nav_link{
    display: flex;
    align-items: center; 
    gap: 8px;  
    color: white;
    text-decoration: none;
}

#connect a.nav_link:hover{
    color: #e6007e;
}

nav ul li{
    margin-bottom: 0em;
    font-size: medium;
}

/*
********************** Les logos ********************** 
*/
#logo_PEPS{
    width: 7em;
}

#user_icone{
    width: 1.8em;
}

#logo_arrow{
    width: 1.5em;
}

img:hover{
    background-color: #ffffff00;
}

/* 
****************** Le menu connecté ******************* 
*/
#user_name{
    color: white;
}

#user_name:hover{
    color: #ff0077;
}

#user_options{
    display: none;
    position: fixed;
    top: 60px; 
    right: 20px;
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    min-width: 150px;
}


#user_options a{
    color: black;
    text-decoration: none;
}

#user_options a:hover{
    text-decoration: underline;
}

/* Style du menu déroulant */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown_button{
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: #000;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown_content{
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown_content a{
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown_content a:hover{
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown_content{
    display: block;
}

/* 
******************** Menu adaptatif ******************** 
*/
#hamburger_icon,
#responsive_menu{
    display: none;
}

@media only screen and (max-width: 1000px){
    #connect {
        display: none;
    }

    #basic_nav_menu{
        display: none;
    }

    #responsive_menu{
        display: flex;   
        justify-content: center; 
        align-items: center; 
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #2d2d83;
        z-index: 999;
        transform: translateY(-100%);
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
        overflow-y: auto;
    }

    #responsive_menu ul{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.6em;
        padding: 0;
        margin: 0;
        list-style: none;
        width: 100%;
        color: white;
    }


    #responsive_menu li{
        padding: 12px 24px;
    }

    #responsive_menu ul li a{
        display: flex;
        align-items: center; 
        font-size: larger;
        gap: 15px; 
        color: white;  
        text-decoration: none;
        padding-bottom: 10px;
    }

    #responsive_menu ul li a.active{
        color: #ff0077;
    }
    #responsive_menu ul li a:hover{
        color: #ff0077;
    }

    #responsive_menu.open{
        transform: translateY(0);
        position: fixed;
    }

    #hamburger_icon{
        display: block;
        position: absolute;
        top: 16px;
        right: 16px;
        width: 33px;
        height: 28px;
        cursor: pointer;
        z-index: 10000;
    }

    #hamburger_icon span{
        position: absolute;
        height: 4px;
        width: 100%;
        background: #ededed;
        border-radius: 3px;
        left: 0;
        transition: 0.40s ease-in-out;
    }

    #hamburger_icon.open span{
        background: #e6007e;
    }

    #hamburger_icon span:nth-child(1) { top: 0; }
    #hamburger_icon span:nth-child(2) { top: 12px; }
    #hamburger_icon span:nth-child(3) { top: 24px; }

    /* La croix */
    #hamburger_icon.open span:nth-child(1){
        transform: rotate(45deg);
        top: 12px;
    }

    #hamburger_icon.open span:nth-child(2){
        opacity: 0;
    }

    #hamburger_icon.open span:nth-child(3){
        transform: rotate(-45deg);
        top: 12px;
    }

    /* Pour le menu connecté */
    #responsive_menu details summary{
        font-size: 1.1em;
        padding: 10px;
        color: #fff;
    }

    #responsive_menu details ul li a{
        color: white;
        padding: 8px;
        display: block;
    }

    #responsive_menu details ul li a:hover{
        color: #ff0077;
        background-color: rgba(255, 255, 255, 0.1);
    }

}


/*
**          Mise en forme du footer
*/
/*
****************** Elements du footer ****************** 
*/

footer{
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background-color: #f7f7f7; 
    padding: 7px 15px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

body#map_page footer{
    position: absolute;
}

#footer-container{
    margin-bottom: 1em;
    padding: 5px 15px;
    display: flex;
    justify-content:space-between;
    align-items:baseline;
    flex-wrap: wrap;
}

#reference{
    margin: 0em;
    padding: 7px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#right{
    margin-top: 0em;
    margin-bottom: 0em;
    float: left;
}

footer div a{
    display: inline-block;
    margin: 0 2em;
}

@media only screen and (max-width: 1000px){
    #right{
        display: none;
    }

    #footer-container{
        margin-bottom: 1em;
        padding: 7px 15px;
        display: flex;
        justify-content:center;
        align-items:baseline;
        flex-wrap: wrap;
    }

    footer div a{
        display: inline-block;
        margin: 0 2.32vw;
    }
}

/*
*********************** Les logos ********************** 
*/
#academique{
    width: 4.5em;
    height: 2.3em;
    margin-bottom: 4px;
}

#ministere{
    width: 3.3em;
    height: 3.2em;
}

#ars{
    width: 4em;
    height: 2.6em;
}

#acquitaine{
    width: 2.8em;
    height: 3.7em;
}

#efformip{
    width: 3em;
    height: 3em;
}


/*
**          Déclaration de police
*/
@font-face {
    font-family: 'Ancizar_Sans';
    src: url('../Fonts/Ancizar_Sans/static/AncizarSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ancizar_Sans';
    src: url('../Fonts/Ancizar_Sans/static/AncizarSans-SemiBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ancizar_Sans';
    src: url('../Fonts/Ancizar_Sans/static/AncizarSans-Bold.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Merienda';
    src: url('../Fonts/Merienda/static/Merienda-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}