*{
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
    user-select: none;
    scroll-behavior: smooth;

}
#c{
    height: 70vh;
    width: 100%;
    background-image: url(img/emma.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-position: 50% 25%;
    
  
   }




nav{
display: grid;
align-items: center;
grid-template-columns: 1fr auto 1fr;
justify-content: space-between;
padding: 10px 40px;
position: fixed;
top: 0%;
width: 100%;
background-color: rgb(40, 40, 40);
z-index: 9999;
}

#se{
   border: none;
    background: none;
    outline: none;
}

#left form{
display: flex;
align-items: center;
justify-content: center;
margin-left: 0%;
gap: 8px;
border: solid, color(white 3px );
border-radius: 5px;
padding: 5px;

}

#left {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1f1f1f;          /* cadre */
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

#mid ul{
display: flex;
list-style: none;
}

#mid li{
margin: 0 15px;
}

#right h1{
font-size: 28px;
}
#logo{color: rgb(255, 7, 7);}
a{
    text-decoration: none;
    color: rgb(255, 255, 255);
}
#s{
    color: aliceblue;
}



/* focus effect */
#left:focus-within {
    border: 1px solid white;
    box-shadow: 0 0 5px rgba(255,255,255,0.5);
}

#left input {
    border: none;
    outline: none;
    background: transparent;
    color: white;
}

/* icon */
.material-symbols-outlined {
    color: white;
}

#left {
    justify-self: start;   /* left side */
}

#mid {
    justify-self: center;  /* PERFECT center */
}

#right {
    justify-self: end;     /* right side */
}
#left {
    border: 1px solid #000000;
}
a:hover{
    color: red;
    transition: 0.5s;
}
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* dark overlay like Netflix */
.overlay {
    position: absolute;
    width: 100%;
    height: 68.9%;
    background: rgba(2, 2, 2, 0.575);
    top: 0;
    left: 0;
}


#ee{
    color: red;

    font-weight: bold;
}

.hero-content button {
    margin-top: 20px;
    padding: 10px 20px;
    border: 1px solid white;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.hero-content button:hover {
    background: red;
    border: none;
}
.logo {
    font-size: 28px;
    font-weight: bold;
    color: white; /* Flix */
}

.logo span {
    color: red; /* Fay */
}
.logo {
    letter-spacing: 1px;
}
main{
    color: rgb(255, 255, 255);
    display: flex;
    justify-content: space-between;
}
#two{
    background-color: rgb(11, 12, 12);
}
.sec{
    font-size: 30px;
    margin-right: 25px;
}
.gg{
    font-size: 24px;
    margin-left: 10px;
}
.posters{
    display: flex;
    gap: 20px;
    width: 100%;
    padding: 20px 70px;
}
img{
    border-radius: 10px;
}
/* 1. Définir l'état par défaut de l'image (le "point de départ") */
.posters img {
    /* Propriété de transition : Appliquer à TOUTES les propriétés (dont transform) */
    /* Durée : 0.5s */
    /* Fonction de minutage : ease-in-out pour un démarrage et un arrêt en douceur */
    transition: transform 0.3s ease-in-out; 
    
    /* Il est important que l'image ait un z-index initial si tu veux qu'elle passe au-dessus */
    position: relative; 
    z-index: 1;
    width: 210px;
}

/* 2. Définir l'état au survol de la souris (le "point d'arrivée") */
.posters img:hover {
    /* 'scale(1.1)' agrandit l'image de 10% (1 = 100%) */
    transform: scale(1.1); 
    
    /* Optionnel mais recommandé : augmente le z-index pour s'assurer */
    /* que l'image agrandie passe AU-DESSUS des images voisines. */
    z-index: 10; 
}
.posters img:hover {
    transform: scale(1.1);
    z-index: 10;
    /* Ajoute une ombre douce */
    box-shadow: 0 10px 20px rgba(130, 130, 130, 0.5); 
}

#co1{
position: absolute;
top: 20%;
left: 75%;
color: aliceblue;
font-size: 25px;
z-index: 100;
}
#op{
    color: red;
}
#co2{
    text-align: center;
    margin-top: -30px; 
    color: aliceblue;
    z-index: 100%; 
}
#co3 {
    position: absolute;
    bottom: 350px;          /* Distance depuis le bas de l'image */
    left: 92%;
    transform: translateX(-50%);
    font-size: 15px;
    padding: 7px 14px;    /* Un peu de padding pour qu'il ressemble à un vrai bouton */
    background-color: red; /* Style Netflix */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  z-index: 100;
}
/* Remplacez .conteneur-images par le nom de votre classe */

#co3 {
    background-color: #e50914; /* Rouge par défaut */
    border: none;
    transition: all 0.3s ease;
}

#co3:hover {
    background-color: #710808;      /* Rouge plus vif */
    box-shadow: 0px 0px 15px rgba(255, 0, 0, 0.5); /* Lueur blanche autour */
    filter: brightness(1.2);        /* Augmente la luminosité */
}


/* Cache absolument tout ce qui ressemble à des flèches ou décos internes */
#s {
    -webkit-appearance: none;  /* Pour Chrome/Safari */
    -moz-appearance: textfield; /* Pour Firefox */
    appearance: none;           /* Standard */
    
    border: none;
    background: none;
    padding: 3px;
    outline: none;
    caret-color: aliceblue;
    color: aliceblue;
   
}

.gg{
    margin-right: 1050px;
}

#cash{
    position: absolute;
    top: 20%;
    right: 70%;      /* better positioning */
    width: 300px;    /* controls line length */
    color: #f0f8ff;
    font-size: 25px;
    line-height: 1.6;
    z-index: 100;
    text-align: -webkit-right;
    color: antiquewhite;
    font-size: 21px;
}

h2{
   color: #ff0000cf;
}

#suggestBtn {
    margin-top: 15px;
    padding: 10px 20px;
    background: #e50914;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

#suggestBtn:hover {
    background: #b20710;
}

@media (min-width: 1280px) and (max-width: 2000px){
    #c{
        background-repeat: repeat;
    }
    .posters{
        justify-content: center;
    }
}




@media (min-width: 769px) and (max-width: 1270px) {
    
    
    .posters {
        display: flex;
    gap: 20px;
    width: 100%;
    padding: 20px 70px;
    }
#cash{
    left: 30px;
    max-width: 200px;
}
body{
    width: fit-content;

}

#co3 {
    position: absolute;
    bottom: 500px;
    left: 82%;
    transform: translateX(-50%);
    font-size: 15px;
    padding: 8px 10px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 100;
    font-size: larger;
}

.overlay {
    position: absolute;
    width: 1200px;
    height: 68.9%;
    background: rgba(2, 2, 2, 0.575);
    top: 0;
    left: 0;

}
}
/* PHONES */
@media (min-width: 481px) and (max-width: 768px) {

  *{
    overflow-x: hidden;
  }

    #mid ul {
       display: none;
    }

    #left {
        width: 100%;
        justify-content: center;
    }

    .posters {
      display: grid;
        grid-template-columns: repeat(3, 2fr);
    }

    .hero-content {
        top: 15%;
        font-size: 14px;

    }

#cash{
    padding-left: 100px;
    left: -90px;
        top: 100px;
}
#co3{
    display: none;
}

#co1{
    right: 10px;
    position: absolute;
    top: 150px;
    left: 75%;
    color: aliceblue;
    font-size: 25px;
    z-index: 100;
}
.sec{
    margin-right: 200px;
}
}


/* SMALL PHONES */
@media (min-width: 300px) and (max-width: 480px) {
  *{
    overflow-x: hidden;
  }
    #mid ul {
    display: none;
   }
   
    .posters {
        
        display: grid;
    }

    .hero-content {
        font-size: 12px;
    }

.posters{
    display: grid;
    min-width: 50px;
}

.sec{
    margin-right: 370px;
}

#cash{
    font-size: 16px;
    margin-top: -50px;
    left: 50px;
}

#co{
    display: none;
}

}