* {
    list-style: none;
    text-decoration: none;
}

body{

    background-image: url("../Images/Image_Home.jpg");
    background-position: center;
    background-attachment: fixed; 
    background-repeat: no-repeat;
    background-size: cover;
    font-family: 'Poppins';
}

#logo{
    display: block;
    width: 20%;
    height: auto;
}


#logo_compte {
  width: 1.5em !important; /* Ajoute !important si nécessaire */
  height: auto !important;
  align-items: center;
}

#logo2{
    display: block;
    width: 100%;
    height: auto;
}

.menu{

    position: relative;
    display: flex;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.menu .a {

    width: 20px;
}

.menu .nav_links ul{

    display: flex;
    font-size: 2em;

}

.menu .nav_links ul li{

    margin: 0 20px;

}

.menu .troisb{
    display: none;
    align-items: center;
    width: 35px;
    position: absolute;
    right: 50px;

}

a{
    color: white;
    
}

.nav_links.mobile-menu{

    margin-left: 0
}

@media screen and (max-width: 500px) {
  
  .menu #logo2 {
        margin: 25px;
    	width: 10vh
    }
}


@media screen and (max-width: 900px) {
  
  	 body {
        background-image: url("../Images/Image_Home_mobile.png");
        background-attachment: fixed;
    }

    .menu {
        padding: 0;
        margin: 0;
    }
  	.menu #logo2 {
        margin: 12px;
      	width: 10vh
    }

    .nav_links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(73, 73, 73, 0.9);
        backdrop-filter: blur(7px);
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        z-index: 9999;
        margin-left: -110%;
        transition: all 0.5s ease;
    }


    .nav_links ul {
        display: flex;
        flex-direction: column;
      	align-items: center;
    }

    .menu .troisb {
        display: block;
        width: 35px;
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 10000;
        cursor: pointer;
    }

    .nav_links.mobile-menu {
        margin-left: 0;
    }

    .menu .nav_links ul li {
        margin: 20px 0;
    }
    
}

/* Header styles */
h1 {
    color: rgb(255, 255, 255);
    font-size: 200%;
    font-weight: bold;
    text-align: center;
}

/* Box styling */
#box {
    width: 75%;
    margin: 0 auto;
    background-color: rgb(83, 83, 83);
    border-radius: 10px;
    padding: 20px;
}

/* Box header */
.tete_box {
    width: 100%;
    background-color: #8c52ff;
    border-radius: 10px;
    text-align: center;
    font-size: 1.5em;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;

    margin: 0 auto;
  	height: 10vh
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1em;
  	gap: 15px;
}



.login-container input {
  width: 100%;
  height: auto;
  background-color: #333;
  border: none;
  border-radius: 5px;
  color: #f0f0f0;
  padding: 1em;
  gap: 5px
}

.login-container input::placeholder {
  color: #bbb;
}

.login-container button {
  width: 100%;
  padding: 1em;
  background-color: #8c52ff;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  align-items: center;
}

.login-container button:hover {
  background-color: #8c52ff;
}

.error-message {
  color: #8c52ff;
  text-align: center;
  margin-top: 1em;
}

.btn_co{
	  width: 100%;
      padding: 1em;
      background-color: #8c52ff;
      border: none;
      color: white;
      border-radius: 5px;
      cursor: pointer;
      align-items: center;
  	  gap: 15px;
}

.btn_in{
	  width: 100%;
      padding: 1em;
      background-color: #333;
      border: none;
      color: white;
      border-radius: 5px;
      cursor: pointer;
      align-items: center;
  	  gap: 15px;
}


@media screen and (max-width: 900px) {
    /* ===== NAVBAR ===== */
    nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
    }

    .logo {
        height: 35px;
    }

    .menu-toggle {
        font-size: 24px;
        background: none;
        border: none;
        color: white;
    }

    /* ===== EN-TÊTE ===== */
    .tete_box {
        font-size: 1.2em;
        padding: 10px 0;
        margin: 10px auto;
        width: 100%;
        text-align: center;
        word-wrap: break-word;
    }

    /* ===== CONTAINER GLOBAL ===== */
    #box {
        width: 90%;
        padding: 15px;
    }

    /* ===== CONTAINER DES FILTRES ===== */
    #filters-container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        width: 100%;
    }

    /* ===== GENRE CONTAINER ===== */
    #genre-container {
        display: grid;
        grid-template-columns: repeat(1);
        gap: 10px;
        padding: 10px;
        width: 100%;
        max-height: 300px; /* limite la hauteur */
        overflow-y: auto;  /* scroll si trop de genres */
        background-color: #8c52ff;
        border-radius: 8px;
        box-sizing: border-box;
    }

    #genre-container label {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        padding: 8px;
        background: #fff;
        border-radius: 5px;
        cursor: pointer;
        border: 1px solid #ccc;
    }

    /* ===== SORT CONTAINER ===== */
    #sort-container {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
        flex-wrap: wrap;
        gap: 10px;
    }

    #sortSelect {
        width: 100%;
        max-width: 200px;
        font-size: 14px;
        padding: 6px 10px;
    }

    /* ===== ANIME CARDS ===== */
    #anime-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .anime-card {
        width: 90%;
        padding: 8px;
        min-height: 280px;
    }

    .anime-card img {
        height: 160px;
        width: 100%;
        object-fit: cover;
    }

    .anime-card h3 {
        font-size: 14px;
        margin: 8px 0 4px;
    }

    .anime-card .genres {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .anime-card .rating {
        font-size: 13px;
        margin-top: 5px;
    }
}

@media screen and (max-width: 1800px) and (min-width: 900px)  {
    /* ===== NAVBAR ===== */
    nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
    }

    .logo {
        height: 35px;
    }

    .menu-toggle {
        font-size: 24px;
        background: none;
        border: none;
        color: white;
    }

    /* ===== EN-TÊTE ===== */
    .tete_box {
        font-size: 1.2em;
        padding: 10px 0;
        margin: 10px auto;
        width: 100%;
        text-align: center;
        word-wrap: break-word;
    }

    /* ===== CONTAINER GLOBAL ===== */
    #box {
        width: 90%;
        padding: 15px;
    }

    /* ===== CONTAINER DES FILTRES ===== */
    #filters-container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        width: 100%;
    }

    /* ===== GENRE CONTAINER ===== */
  
    #genre-container {
        max-height: 300px; /* limite la hauteur */
        overflow-y: auto;  /* scroll si trop de genres */
    }

    #genre-container label {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        padding: 8px;
        background: #fff;
        border-radius: 5px;
        cursor: pointer;
        border: 1px solid #ccc;
    }

    /* ===== SORT CONTAINER ===== */
    #sort-container {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
        flex-wrap: wrap;
        gap: 10px;
    }

    #sortSelect {
        width: 100%;
        max-width: 200px;
        font-size: 14px;
        padding: 6px 10px;
    }

    /* ===== ANIME CARDS ===== */
    #anime-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .anime-card {
        width: 90%;
        padding: 8px;
        min-height: 280px;
    }

    .anime-card img {
        height: 160px;
        width: 100%;
        object-fit: cover;
    }

    .anime-card h3 {
        font-size: 14px;
        margin: 8px 0 4px;
    }

    .anime-card .genres {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .anime-card .rating {
        font-size: 13px;
        margin-top: 5px;
    }
}
footer {
    text-align: center;
    padding: 3px;
    background-color: #8c52ff;
    color: white;
    margin-top: 10px;
    height:max-content
  }

.remember {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 12px;
  user-select: none;
}

.remember input {
  display: none; /* Cacher la case à cocher native */
}

.checkmark {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 30px;
  background-color: #eee;
  border-radius: 5px;
  margin-right: 15px;
  transition: background-color 0.3s ease;
}

.remember input:checked ~ .checkmark {
  background-color: #8c52ff; /* Violet lorsque coché */
  box-shadow: 0 0 0 4px rgba(140, 82, 255, 0.3);
}

.remember input:checked ~ .checkmark::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 3px;
}

.remember:hover .checkmark {
  background-color: #d3b3ff; /* Changer la couleur de fond en hover */
}

.text {
  color: white;
  font-size: 16px;
  transition: color 0.3s ease;
}

.remember:hover .text {
  color: #8c52ff; /* Change le texte en violet lors du survol */
}

.remember input:checked ~ .checkmark:hover {
  background-color: #6c38cc; /* Case plus foncée lorsque survolée et cochée */
}

.username {
	font-size: bold;
  	background-color:white;
  	width: 80%;
  	border-radius: 15px;
  	text-align:center;
  	
}

.username h3{
	color:Black;
}

.btn_logout{
	
  background-color:#8c52ff;
  width: 20%;
  border-radius:10px;
  text-align:center
}

.btn_logout a{
	width: 100%
}