h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
div,
i {
    user-select: none; /* Empêche la sélection du texte */
}

/*  titre  */
@import url("https://fonts.googleapis.com/css2?family=Baskervville:ital@0;1&display=swap");
.titre {
    font-family: "Baskervville", serif;
    font-optical-sizing: auto;
}

:root {
    --vert: #2e8383;
    /* --vert: rgb(113, 0, 136); */
}

nav {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 80px;
    background-color: white;
    border-bottom: solid 3px var(--vert);
    display: flex;
    flex-direction: row;
    position: relative;
    z-index: 99991;
}

.section_item {
    width: 33%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}
.z_index_img {
    z-index: 2;
}

.section_item a img {
    width: 50%;
}

.size_logo img {
    width: 4vw;
    z-index: 6;
    cursor: pointer;
}

@media all and (min-width: 500px) and (max-width: 992px) {
    .size_logo img {
        width: 8vw;
    }
    .section_item a img {
        width: 30%;
    }
}
@media all and (min-width: 0px) and (max-width: 500px) {
    .size_logo img {
        width: 15vw;
    }
    .section_item a img {
        width: 50%;
    }
}

.rounded_menu {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    background-color: var(--vert);
    bottom: -4%;
    transition: all 0.5s ease-in-out;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    z-index: 5;
}

.size_logo img:hover ~ .rounded_menu {
    width: 350px;
    height: 350px;
    transition: all 0.5s ease-in-out;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    bottom: -100%;
}

.rounded_menu:hover {
    width: 350px;
    height: 350px;
    transition: all 0.5s ease-in-out;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    bottom: -100%;
}

.size_logo img:hover ~ .rounded_menu .link_1,
.size_logo img:hover ~ .rounded_menu .link_2,
.size_logo img:hover ~ .rounded_menu .link_3,
.size_logo img:hover ~ .rounded_menu .link_4,
.size_logo img:hover ~ .rounded_menu .link_5,
.size_logo img:hover ~ .rounded_menu .link_6,
.size_logo img:hover ~ .rounded_menu .link_7 {
    display: flex;
}

.rounded_menu:hover .link_1,
.rounded_menu:hover .link_2,
.rounded_menu:hover .link_3,
.rounded_menu:hover .link_4,
.rounded_menu:hover .link_5,
.rounded_menu:hover .link_6,
.rounded_menu:hover .link_7 {
    display: flex;
    cursor: none;
}

.rounded_menu a,
button {
    color: white;
    font-size: 26px;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    margin: 0;
    padding: 0;
    gap: 0;
    text-decoration: none;
    border: none;
    background-color: transparent;
}

.rounded_menu a p {
    display: none;
}

.link_1 {
    position: absolute;
    bottom: 30%;
    left: 5%;
    display: none;
}
.link_1:hover p {
    display: flex;
}

.link_2 {
    position: absolute;
    bottom: 16%;
    left: 13%;
    display: none;
}

.link_3 {
    position: absolute;
    bottom: 5%;
    left: 27%;
    display: none;
}

.link_4 {
    position: absolute;
    bottom: 0%;
    left: 47%;
    display: none;
    text-decoration: none;
}

.link_5 {
    position: absolute;
    bottom: 30%;
    right: 5%;
    display: none;
}

.link_6 {
    position: absolute;
    bottom: 16%;
    right: 13%;
    display: none;
}

.link_7 {
    position: absolute;
    bottom: 5%;
    right: 27%;
    display: none;
}

.tooltip {
    display: none;
    position: absolute;
    top: 100%;
    /*Placeletooltipau-dessousdel'icône*/
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 10;
    opacity: 0;
}

/* Ajoutez une flèche pour le tooltip */
.tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%; /* Place la flèche au-dessus du texte */
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
}

/* Affichez le tooltip lors du hover */
.rounded_menu a:hover .tooltip {
    display: block;
    opacity: 1;
}
.rounded_menu button:hover .tooltip {
    display: block;
    opacity: 1;
}
/* ///////////////////////////////////////////////////////////////////////////////////////// Template Fin */
/* ///////////////////////////////////////////////////////////////////////////////////////// alert debut */

.alert {
    width: 100%;
    min-height: 50px;
    height: auto;
    color: white;
    background-color: #ff4564;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    animation: effect 5s ease-in-out;
    -webkit-animation: effect 5s ease-in-out;
    opacity: 0;
    position: absolute;
    z-index: 2;
}

.success {
    width: 100%;
    height: 50px;
    color: white;
    background-color: var(--vert);
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    animation: effect 5s ease-in-out forwards;
    -webkit-animation: effect 5s ease-in-out forwards;
    opacity: 0;
    position: absolute;
    z-index: 2;
}

@keyframes effect {
    0% {
        opacity: 0;
        transform: translateY(-100%);
        -webkit-transform: translateY(-100%);
        -moz-transform: translateY(-100%);
        -ms-transform: translateY(-100%);
        -o-transform: translateY(-100%);
    }
    10% {
        opacity: 100%;
        transform: translateY(-0%);
        -webkit-transform: translateY(-0%);
        -moz-transform: translateY(-0%);
        -ms-transform: translateY(-0%);
        -o-transform: translateY(-0%);
    }
    90% {
        opacity: 100%;
        transform: translateY(-0%);
        -webkit-transform: translateY(-0%);
        -moz-transform: translateY(-0%);
        -ms-transform: translateY(-0%);
        -o-transform: translateY(-0%);
    }
    100% {
        opacity: 0;
        transform: translateY(-100%);
        -webkit-transform: translateY(-100%);
        -moz-transform: translateY(-100%);
        -ms-transform: translateY(-100%);
        -o-transform: translateY(-100%);
    }
}

/* ///////////////////////////////////////// alert Fin */

/* ///////////////////////////////////////// Login Debut */

.login_title {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 20vh;
    color: var(--vert);
}

.login_container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.login_form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 35%;
    gap: 7vh;
}

@media all and (min-width: 500px) and (max-width: 992px) {
    .login_form {
        width: 60%;
    }
}
@media all and (min-width: 0px) and (max-width: 500px) {
    .login_form {
        width: 80%;
    }
}

.login_mail {
    position: relative;
    width: 100%;
    display: flex;
}

.login_mail input {
    width: 100%;
    height: 40px;
    background-color: rgb(209, 209, 209);
    border-radius: 30px;
    padding-left: 40px;
    border: 2px solid #ccc;
}

.login_mail i {
    position: absolute;
    left: 10px; /* Position de l'icône à gauche du champ */
    color: var(--vert);
    font-size: 25px;
}

.login_mail input::placeholder {
    color: var(--vert);
}

.login_mail input:focus {
    border-color: var(--vert);
    outline: none;
}

.login_password {
    position: relative;
    width: 100%;
    display: flex;
}

.login_password input {
    width: 100%;
    height: 40px;
    background-color: rgb(209, 209, 209);
    border: 2px solid #ccc;
    border-radius: 30px;
    padding-left: 40px;
}

.login_password input::placeholder {
    color: var(--vert);
}

.login_password i {
    position: absolute;
    left: 10px; /* Position de l'icône à gauche du champ */
    color: var(--vert);
    font-size: 25px;
}

.login_password input:focus {
    border-color: var(--vert);
    outline: none;
}

.login_forget_password {
    color: black;
    text-decoration: underline;
}

.login_submit {
    border: 30px;
    padding: 10px;
    border-radius: 30px;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    -ms-border-radius: 30px;
    -o-border-radius: 30px;
    background-color: var(--vert);
    color: white;
    width: 150px;
    transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
}

.login_inscire {
    border: 30px;
    padding: 10px;
    border-radius: 30px;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    -ms-border-radius: 30px;
    -o-border-radius: 30px;
    background-color: var(--vert);
    color: white;
    width: 150px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
}

.login_inscire:hover,
.login_submit:hover {
    width: 175px;
}

.trouble {
    color: black;
    display: flex;
    flex-grow: 1;
    flex-direction: row;
    justify-content: end;
    position: absolute;
    bottom: 0%;
    right: 0;
}

.trouble a {
    color: black;
    padding-right: 2vh;
    text-decoration: none;
}
/* ///////////////////////////////////////// Login Fin */

/*  register */

.register_title {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 20vh;
    color: var(--vert);
}

.register_container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.register_form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 35%;
    gap: 3vh;
    position: relative;
}

.register_form input {
    width: 70%;
    border: none;
    border-bottom: var(--vert) 4px solid;
    font-style: italic;
    font-weight: bold;
    color: var(--vert);
}

.register_form input::placeholder {
    color: var(--vert);
    font-style: italic;
    font-weight: bold;
}

.register_form input:focus {
    outline: none;
}

.register_submit {
    color: white !important;
    border: 30px;
    padding: 10px;
    border-radius: 30px;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    -ms-border-radius: 30px;
    -o-border-radius: 30px;
    background-color: var(--vert);
    transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
}

.register_login {
    border: 30px;
    padding: 10px;
    border-radius: 30px;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    -ms-border-radius: 30px;
    -o-border-radius: 30px;
    background-color: var(--vert);
    color: white;
    width: 150px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
}

.radio_section {
    display: flex;
    flex-direction: row;
    gap: 5vh;
    color: var(--vert);
}

.radio_section div input {
    accent-color: var(--vert);
}

@media all and (min-width: 500px) and (max-width: 992px) {
    .register_form {
        width: 70%;
    }
}
@media all and (min-width: 0px) and (max-width: 500px) {
    .register_form {
        width: 90%;
    }
}

.dpnone {
    display: none;
}

.input_check {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.input_check input {
    position: relative;
    width: 70%;
}

.input_check i {
    position: absolute;
    right: 100px;
    color: var(--vert);
    font-size: x-large;
}

.input_check .password_eye {
    position: absolute;
    right: 75px;
    color: var(--vert);
}

.input_check .password_verif_eye {
    position: absolute;
    right: 75px;
    color: var(--vert);
}

/* barre de tool  */

.tool {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 2vh 0;
}

.row_tool {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 50%;
    height: 100%;
    position: relative;
    gap: 1vh;
}

.searchbar {
    width: 45%;
    position: relative;
    height: auto;
}

.select {
    width: 30%;
    position: relative;
    height: auto;
}

.resetBtn {
    width: 5%;
    height: auto;
    position: relative;
    font-size: x-large;
    color: var(--vert);
}

.resetBtn i {
    color: var(--vert);
}

.searchbar input {
    outline: none;
    color: var(--vert);
    width: 100%;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
    border: 2px solid var(--vert);
    padding-left: 20px;
    padding-right: 20px;
    z-index: 3;
    padding-left: 30px;
}

.row_tool .searchbar i {
    position: absolute;
    z-index: 4;
    left: 2%;
    top: 10%;
    color: var(--vert);
}

.select select {
    outline: none;
    color: var(--vert);
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
    border: 2px solid var(--vert);
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
}

.btn_add {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1vh;
    background-color: var(--vert);
    color: white;
    border: 2px solid var(--vert);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    font-size: 1.2em;
    margin-bottom: 2vh;
}
.btn_add:hover {
    background-color: white;
    color: var(--vert);
    border: 2px solid var(--vert);
    transition: background-color 0.3s ease;
}

/* Style tableau  */

.table {
    border-collapse: collapse;
    scrollbar-color: var(--vert) white;
    scrollbar-width: thin;
}

.table tbody {
    display: block;
    max-height: calc(100vh - 375px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-color: var(--vert) white;
    scrollbar-width: thin;
}

.table thead,
.table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.table tbody tr {
    height: 200px;
    max-height: 200px;
}

.table th,
.table td {
    padding: 10px;
    color: var(--vert);
}

.table tbody tr td {
    padding: 0;
    vertical-align: middle;
    height: 100% !important;
}

.table tbody tr td p {
    width: 100%;
    height: 85%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-color: var(--vert) white;
    scrollbar-width: thin;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.table tbody tr td img {
    width: 100%;
    height: 100%;
}

.table tbody tr td:last-child {
    font-size: 1.4em;
}

.table tbody tr td:last-child a {
    color: var(--vert);
}

.table tbody tr td:last-child button {
    color: red;
}

.table tbody tr td:last-child .red {
    color: red;
}

.table tbody tr td:last-child .green {
    color: var(--vert);
}

.form_action {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    gap: 0;
}

.form_action form.deuxbtn {
    color: var(--vert);
    text-decoration: none;
    border: none;
    width: auto;
}

.form_action form.deuxbtn button {
    color: var(--vert);
    text-decoration: none;
    border: none;
    width: auto;
    font-size: large;
}

.nb_article_navbar {
    width: 25px;
    height: 25px;
    position: absolute;
    background-color: white;
    color: var(--vert);
    border: 2px solid var(--vert);
    z-index: 99999999;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: small;
    right: -20px;
    top: -10px;
}
