/* ---------------------------------------- GENERAL BASEMENT ---------------------------------------- */ 

header, section, footer {
    width: 100%;
}

header, footer{
    height: 11%;
    background: white;
    padding: 15px 65px;
    min-height: 70px;
}
body::-webkit-scrollbar {
    width: 12px; /* Largeur de la scrollbar */
}

body::-webkit-scrollbar-thumb {
    background-color: #86bd24 ;
    border-radius: 6px;
    border: 1px solid #76a71f;
}

section {
    min-height: 485px;
}

footer {
    display: flex;
    justify-content: space-evenly;
    bottom: 0;
    position: relative;
}


/* ---------------------------------------- DATATABLE ---------------------------------------- */

thead td img {
    width: 24px;
}


/* ------------------------------------------- NAVING ------------------------------------------- */ 

.btn-naving {
    font-family: Amaranth;
    font-size: 35px;
    border-radius: 30px;
    border: 2px solid #ffffff;
    color: #ffffff;
    background-color: #86bd24;
    box-shadow: 0px 5px 12px 0px var(--box-shadow-color);
    --box-shadow-color: #000000;
}

.btn-naving:hover {
    color: #ffffff;
    background-color: #00aaff;
    border: 2px solid #ffffff;
}

.btn-naving:active, .btn-naving:focus-visible {
    background-color: #00aaff !important;
    box-shadow: 0px 2.5px 6px 0px var(--box-shadow-color) !important;
    --box-shadow-color: #000000;
    color: #ffffff !important;
}

.btn-naving-actif {
    background-color: #00aaff !important;
    border: 2px solid #000000 !important;
    box-shadow: 0px 2.5px 6px 0px var(--box-shadow-color) !important;
    --box-shadow-color: #000000;
}

.btn-naving-actif:active, .btn-naving:focus-visible {
    box-shadow: 0px 1px 3px 0px var(--box-shadow-color) !important;
    --box-shadow-color: #000000;
}

/* ---------------------------------------- HEADER ---------------------------------------- */

.logo_afpa {
    float: right;
}

.logo {
    min-height: 40px;
    height: 100%;
    max-height: 55px;
}

.line {
    width: 100%;
    height: 1px;
    left: 0;
    position: absolute;
    border: 2px solid #86bd24;
    z-index: 10;
}

.line_header {
    margin-top: 15px;
}

.line_footer {
    margin-top: -15px;
}


/* ---------------------------------------- FOOTER ---------------------------------------- */

.logo_afpalab {
    height: 100%;
}

.logo_eloce {
    height: 100%
}


/* ---------------------------------------- FONT ---------------------------------------- */

@font-face {
    font-family: "Amaranth";
    src: url("font/amaranth/Amaranth-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "Amaranth_italic";
    src: url("font/amaranth/Amaranth-Italic.ttf") format("truetype");
}

@font-face {
    font-family: "Amaranth_bold";
    src: url("font/amaranth/Amaranth-Bold.ttf") format("truetype");
}

@font-face {
    font-family: "Amaranth_italic_bold";
    src: url("font/amaranth/Amaranth-BoldItalic.ttf") format("truetype");
}


/* ---------------------------------------- CLASSE GLOBAL ---------------------------------------- */


.bouton {
    cursor: pointer;
}

.d-none-important {
    display: none !important;
}

/* Bouton Vert */
.btn-vert {
    background: #86bd24;
    color: #ffffff;
}

.btn-vert:hover {
    background: #76a71f;
    color: #ffffff;
}

.btn-vert:focus-visible, .btn-vert:active {
    background: #76a71f !important;
    color: #000000;
}


/* Bouton Rose */
.btn-rose {
    background-color: #e30480;
    color: #ffffff;
}

.btn-rose:hover {
    background:  #cc0074;
    color: #ffffff;
}

.btn-rose:focus-visible, .btn-rose:active {
    background: #cc0074 !important;
    color : #000000;
}


/* Bouton Bleu */
.btn-bleu {
    background-color: #00aaff;
    color: #ffffff;
}

.btn-bleu:hover {
    background:  #0094ff;
    color: #ffffff;
}

.btn-bleu:focus-visible, .btn-bleu:active {
    background: #0094ff !important;
    color : #000000;
}


/* Ombre du bouton */
.btn-shadow {
    --box-shadow-color: #000000;
    box-shadow: 0px 3px 12px 2px var(--box-shadow-color);
}

.btn-shadow:active, .btn-shadow:focus-visible {
    --box-shadow-color: #000000;
    box-shadow: 0px 1.5px 6px 1px var(--box-shadow-color);
}

.border-vert {
    border: 1px solid #86bd24; /* Bordure verte */
}

.text-vert {
    color: #86bd24;
}

/* ------------------------------------------- DATATABLE RESPONSIVE ------------------------------------------- */ 

.div_padding table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>td:first-child:before { /* le bouton pour afficher les childs */
    /* Ecrase le css de la datatable */
    top: calc(50% - 10px);
    left: 10px;
    position: absolute;
    border: none;
    border-radius: initial;
    box-shadow: none;
    box-sizing: none;
    text-align: none;
    text-indent: none;
    font-family: 'Courier New', Courier, monospace;
    line-height: none;
    content: '';
    background-color: transparent;

    /* créer le triangle vert */
    display : inline-block;
    height : 0;
    width : 0;
    border-top : 10px solid transparent;
    border-bottom : 10px solid transparent;
    border-left : 10px solid #86bd24;
    border-right : 10px solid transparent;
    
    /* fais une transition de tous les éléments pour un aspect fluide */
    transition: border 0.3s ease, transform 0.3s ease, left 0.3s ease, top 0.3s ease;
}

.div_padding table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before {
    top: calc(50% - 5px);
    left: 5px;
    border-left : 10px solid #e30480;
    transform: rotate(90deg);
}


/* ------------------------------------------- CHARGEMENT ------------------------------------------- */

.div_chargement {
    background: #00000075;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2000;
}

.img_chargement {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20%;
}

/* ---------------------------------------- BOOTSTRAP ---------------------------------------- */

@media (max-width: 860px) {
    .div_button_primaire {
        justify-content: center !important;
    }
}

@media (max-width: 575.98px) {
    .logo {
        height: 50px;
    }

    .header {
        height: 80px;
    }

}
