@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
*{
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   font-family: "Poppins",sans-serif; 
}
body{
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background: url("images/fondadmin.jpg") no-repeat;
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.5);
}
.wrapper{
    width: 420px;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(15px);
    box-shadow: 0 0 10px rgba(0, 0, 0,.2);
    color: #fff;
    border-radius: 10px;
    padding: 30px 40px;
}
.wrapper h1{
    font-size: 36px;
    text-align: center;
}
.wrapper .input-box{
    width: 100%;
    height: 50px;
    position: relative;
    margin: 30px 0;
}
.remember-forgot a{
    color: #fff;
    text-decoration: none;
}
.remember-forgot a:hover{
    text-decoration: underline;
}
.wrapper .btn{
    width: 100%;
    height: 45px;
    background: #fff;
    border: none;
    outline: none;
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0,.1);
    cursor: pointer;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}
.wrapper .register-link{
    text-align: center;
    font-size: 14px;
    margin: 20px 0 15px;
}
.wrapper .register-link p a{
    color: #9b8ad6;
    text-decoration: none;
    font-weight: 600;
}
.wrapper .register-link p a:hover{
    text-decoration: underline;
}
.wrapper .backlogin{
    text-align: center;
    font-size: 14px;
    margin: 20px 0 15px;
}
.wrapper .backlogin p a{
    color: #9b8ad6;
    text-decoration: none;
    font-weight: 600;
}
.wrapper .backlogin p a:hover{
    text-decoration: underline;
}
.input-box input{
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    border: 2px solid rgba(255, 255, 255,.2);
    border-radius: 40px;
    font-size: 16px;
    color: #fff;
    padding: 20px 45px 20px 20px;
}
.input-box input::placeholder{
    color: #fff;
}
.input-box i{
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}
.wrapper .remember-forgot{
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin: -15px 0 15px;
}
.remember-forgot label input{
    accent-color: #fff;
    margin-right: 3px;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 40px 20px;
    text-align: center;
    width: 100ù;
}


header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(15px);
    background-color: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    max-width: 1700px;
    margin: 0 auto;
    padding: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.logo {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    position: relative;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    transition: background 0.3s;
    border-radius: 4px;
}

.nav-links li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    text-align: center;
    padding: 40px 20px;
}


/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 125%;
    left: 0;
    background-color: rgba(0, 0, 0, 0.3); /* même fond que le header */
    backdrop-filter: blur(15px); /* même effet flou */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    min-width: 160px;
    z-index: 1000;
    padding: 5px 0;
}

.dropdown-content li {
    display: block;
}

.dropdown-content li a {
    color: #fff; /* texte blanc comme le menu principal */
    text-decoration: none;
    padding: 8px 16px;
    display: block;
    transition: background 0.3s;
    border-radius: 4px;
}

.dropdown-content li a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* effet de survol similaire */
}

.dropdown:hover .dropdown-content {
    display: block;
}
/* Pour le sous-menu dans le menu déroulant */
.dropdown-content-sub {
    display: none;
    position: absolute;
    left: 100%; /* position à droite */
    top: 0;
    background-color: rgba(0, 0, 0, 0.3);
    min-width: 160px;
    z-index: 1;
}

  /* Affiche le sous-menu au survol */
.dropdown-submenu:hover .dropdown-content-sub {
    display: block;
}

  /* Facultatif : ajustements esthétiques */
.dropdown-submenu {
    position: relative;
}