@media (prefers-color-scheme: light) {
    :root{
        --var-color-1: grey !important;
        --var-color-2: rgb(58, 175, 221) !important;


        --var-text: #050316;
        --var-text-button: #ebe9fc;
        --var-background: #fbfbfe;
        --var-primary: #2f27ce;
        --var-secondary: #dddbff;
        --var-accent: #443dff;
    }
}
@media (prefers-color-scheme: dark) {
    :root{
        --var-color-1: grey !important;
        --var-color-2: rgb(58, 175, 221) !important;

        --var-text: #ebe9fc;
        --var-text-button: #ebe9fc;
        --var-background: #15151a;
        --var-primary: #3a31d8;
        --var-secondary: #020024;
        --var-accent: #3530bd;
        
    }
}

html, body {
    height: 100vh;
    margin: 0;
    padding: 0;
    color:var(--var-text);
    font-family: Inter, sans-serif;
    background-color: var(--var-background);
}

body {
    width: 100%;
    /* height: -webkit-fill-available; Pour Safari sur iOS */
    min-height: 90vh; /* Pour les autres navigateurs */
    display: flex;
    background-color: var(--var-background) !important;
}


/* universelle  */

.back-button {
    top: 5px;
    left: 5px;
    position: relative;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1em 2.5em;
    display: inline-block;
    cursor: pointer;
    border-radius: 6em;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
    font-weight: 500;
    color: var(--var-text-button);
    background-color: var(--var-primary);
  }
.back-button .ver-add{
    background-color: var(--var-secondary);
}
  
.back-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
  
.back-button:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
  
.back-button::after {
    content: "";
    display: inline-block;
    height: 100%;
    width: 100%;
    border-radius: 100px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: all 0.4s;
}
  
.back-button::after {
    background-color: #fff;
}
  
.back-button:hover::after {
    transform: scaleX(1.4) scaleY(1.6);
    opacity: 0;
}

.list-button{

}


.grid_cell{
    display: grid;
    width: -webkit-fill-available;
}
.cell{
    border-radius: 25px;
    border: 2px solid black;
    background-color: var(--var-secondary);
    min-width: 100px;
    width: max-content;
    max-width: 500px;
    height: 10%;
    padding: 5%;
    height: -moz-available;
    height: -webkit-fill-available;
} 
.title_cell{
    font-weight: bold;
    text-transform: capitalize;
}
.cell_1{
    flex: 1;
}
.cell_2{
    flex: 2;
}


/* login.php */
.div-login {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.8); /* Fond semi-transparent */
    box-shadow: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff;
    width: 300px; /* Largeur fixe ou minimale */
    padding: 20px; /* Ajoute de l'espace interne */
    text-align: center;
}
.div-login-error {
    color: red;
    font-size: large;
}

.form-login {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.form-login input {
    margin-bottom: 10px;
    padding: 10px;
    width: 100%; /* Rend les champs uniformes */
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-login input:focus-visible {
    outline: none; /* Supprime le contour par défaut */
    border: none;  /* Supprime toute bordure définie automatiquement */
}
.form-login input:focus {
    transition: ease 150ms;
    border: 1px solid #ccc !important;
    border-bottom: 2px solid blue !important;
}


/* user/index.php */


.div-liste table{
    width: max-content;
    min-width: 40%;
    max-width: -webkit-fill-available;
    border: 1px solid var(--var-primary);
    background: #00adff;
    font-size: x-large;
}

.div-liste th{
    border: 1px solid black;
}

.div-liste th a{
    text-decoration: none;
    font-style: normal;
    color: black;
}



.suggestions-list {
    display: none;
    /* position: absolute; */
    background: var(--var-background);
    color: var(--var-text);
    border: 1px solid #ccc;
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 150px;
    overflow-y: auto;
    z-index: 1000;
    width: 300px; /* Ajuste selon la largeur du champ */
}

.suggestions-list li {
    padding: 10px;
    cursor: pointer;
}

.suggestions-list li:hover {
    background: #007bff;
    color: white;
}


/* compte/add.php */

.content{
    width: -webkit-fill-available;
    width: -moz-available;
}

.iframe{
    width: 650px;
    height: 620px;
    border: 2px black solid
}

/* @media */

@media screen and (max-width: 1300px){
    nav a{
        margin: 5px 20px 5px 10px;
        font-size: medium;
    }

    .div-liste table{
        font-size: medium;
    }
}




/* nav-bar.php */

nav{
    position: relative;
    left: 0;
    background: var(--var-accent);
    height: -webkit-fill-available;
    height: 100%;
}

nav div{
    position: relative;
    top: 150px;
    display: flex;
    flex-direction: column;
}

nav a{
    font-style: normal;
    font-size: large;
    margin: 5px 40px;
    color: var(--var-text);
    
}

nav .nav-1 li{
    list-style-type: disclosure-closed;
}
nav .nav-1 li:hover{
    list-style-type: disclosure-open;
}
nav ul{
    position: relative;
}

nav .nav-2 li{
    list-style-type: disc;
}
nav .nav-2 li:hover{
    list-style-type: disc;
}

nav li a{
    margin: 5px 20px;
}

.toggle-menu{
    position: absolute;
    border-radius: 25px;
    padding: 10px;
    background: var(--var-accent);
    color: var(--var-text);
    border: 2px solid black;
    font-size: larger;
    top: 15px;
    left: 15px;
    z-index: 100;
    display: none;
}

.toggle-menu .open{
    background-color: var(--var-accent);
    border: none;
}



@media screen and (max-width: 1300px){
    /* Par défaut */
    nav{
        display: none;
        width: max-content;
        position: absolute;
        z-index: 80;
    }
    .toggle-menu{
        display: block;
    }
    .div-liste{
        top: 65px;
        position: relative;
    }

    nav.show{
        position: absolute;
        z-index: 100;
    }


    nav .nav-1 li{
        margin: 10px;
    }
    nav li a{
        margin: 20px;
    }
    nav a{
        font-style: normal;
        font-size: large;
        margin: 10px 40px;
        color: var(--var-text);
        border: 2px solid black;
        padding: 5px;
    }


}

