/* ========== GLOBAL ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* police d'ecriture */
    background-color: #1F1F3B;
    color: #FFFFFF;
}

a {
    text-decoration: none;
    color: #fff;
}

img { /* largeur et hauteur de l'image en navbar */
    width: 100px;
    height: 100px;
}
/*========= PAGE CONNECT ET INSCRPTION ========*/
.contact-msg , .formulaire{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem auto;
    max-width: 700px;
    padding: 1.3rem;
    flex-direction: column;
    color: black;
    background-color: #EDE9FE;
    border-radius: 1rem;
}

.connect{
    color: #2c3e50;
}
.mon-input:focus{
    outline: none;
    border: 2px solid #1F1F3B;
    box-shadow: 0 0 5px #1F1F3B;
}
a {
    text-decoration: none;
    color: #fff;
}
.basdeform{
    display: grid;
    grid-template-columns: 1fr;
}
.connect{
    color: #2c3e50;
    text-align: center;
    margin: 1rem auto;
}
.file {
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 10px;
    width: 100%;
    text-align: center;
    background: #f8fafc;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;

}
.formulaire label , .contact-msg label{
    margin: 0;
    align-items: center;
}
/* Survol */
.file:hover {
    border-color: #2c3e50;
    color: #2c3e50;
}

.file::-webkit-file-upload-button {
    visibility: visible;
}
.file::file-selector-button {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    width: 250px;
    margin: 0.5rem;
    background-color: #2c3e50;
    color: #FFFFFF;
}

@media(max-width:981px) {

    .contact-msg , .formulaire{
        width: 600px;
        margin: 500px auto;
    }
    .infos{
        width: 500px;
        text-align: center;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* ========== FOOTER ========== */
footer {
    background-color: gainsboro;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 16px;
    color: black;
}

footer a {
    text-decoration: none;
    font-weight: bold;
}
footer a:hover {
    text-decoration: underline;
}

/* ========== TITRES SECTIONS ========== */

section > h2,
section > p {
    text-align: center;
    padding: 5px;
    margin: 1rem auto;
    max-width: 900px;
    align-items: center;

}

/* ========== PAGE PROFILE ========== */

.profile {
    color: #fff;
    padding: 2rem;
    text-align: center;
}

.profile h2 {
    font-size: 2rem;
}

.profile .entete {
    justify-content: center;
    flex-wrap: wrap;
}

.profile .entete p {
    margin: 0;
    font-weight: 500;
    align-self: center;
}

.profile .entete a,
.profile button {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.2s, transform 0.2s;
    cursor: pointer;
}

.profile .entete a {
    display: inline-block;
    background-color: #fff;
    color: red;
    gap: 3px;
}

.profile button {
    border: none;
    background-color: #fff;
    color: #4a90e2;
}

.profile button:hover,
.profile .entete a:hover {
    transform: scale(1.05);
    color: black;
    background-color: #89BEC2;
}

.profile button:hover {
    background-color: #e6f0ff;
}

/* Responsive profil */
@media (max-width: 598px) {
    .profile .entete {
        flex-direction: column;
        gap: 0.5rem;
    }

    .profile input[type="search"] {
        width: 80%;
        margin-bottom: 0.5rem;
    }

    .profile button {
        width: 50%;
    }
}

/* ========== FILMS & SERIES ========== */
.film-card,
.serie-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s, box-shadow 0.25s;
    width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 600px;
}

.film-card:hover,
.serie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.film-card img,
.serie-card img {
    width: 100%;
    max-width: 400px;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* transition sur l'ombre des boxe */
    display: block;
    margin-bottom: 1rem; /* margin au dessous de l'image de films et series*/
    margin-top: 1rem; /* margin au dessus du l'image des films et series  */
    object-fit: cover;
}

.film-card img:hover,
.serie-card img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.film-card h3,
.serie-card h3 {
    background-color: #4a90e2;
    color: #fff;
    padding: 1rem;
    margin: 0;
    width: 100%;
    font-size: 1.3rem;
    border-radius: 12px 12px 0 0;
}

.film-card p,
.serie-card p,
.film-card small,
.serie-card small,
.film-card ul,
.serie-card ul {
    margin: 0.5rem 1rem;
    color: #333;
    font-size: 1.5rem;
}

.film-card ul,
.serie-card ul {
    padding-left: 1.5rem;
}

.film-card li,
.serie-card li {
    margin-bottom: 0.3rem;
}

.film-card .btn-avis,
.serie-card .btn-avis {
    display: inline-block;
    margin: 0.8rem 0 1rem 0;
    padding: 0.6rem 1.2rem;
    background-color: #4a90e2;
    color: #fff;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.2s, transform 0.2s;
}

.film-card .btn-avis:hover,
.serie-card .btn-avis:hover {
    background-color: #357abd;
    transform: scale(1.05);
}
.film-card li,
.serie-card li{
    list-style: none;
}

/* Container articles */
article {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1em;
    background-color: #1F1F3B;
}

/* Infos box */
.infos {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    font-family: "Segoe UI", sans-serif;
    text-align: center;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}


.infos p {
    margin: 0.5rem 0;
    color: #555;
}
.infos a {
    margin: 0.5rem 0;
    color: darkgreen;
}
.infos a:hover {
    text-decoration: underline;
    border: solid #e6f0ff;
    background-color: #e6f0ff;
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    color: #1F1F3B;
}

/* Responsive cards */
@media (max-width: 600px) {
    .film-card,
    .serie-card {
        width: 90%;
    }
}
.example-wrapper p , title{
    margin: 2rem 1rem;
    color: black;
    text-align: center;
    font-size: 1.3rem;
}

.mon-input{
    padding: 0.5rem 0.5rem;
    border-radius: 5px;
    border: none;
    width: 100%;
    margin: 0.5rem;
}

.btn{
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    width: 250px;
    margin: 0.5rem;
    background-color: #2c3e50;
    color: #FFFFFF;
    align-items: center;
    text-align: center;
    cursor: pointer;
}
.btn:hover{
    transform: scale(1.05);
    background-color: #89BEC2;
}

.return{
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Page demande de reinitialisation */

.small {
    margin: 2rem;
}
.request{
    padding: 1rem 1rem;
    color: #1F1F3B;
}
.btn-envoie , label{
    padding: 0.5rem 0.5rem;
    border-radius: 5px;
    border: none;
    width: 100%;
    margin: 0.5rem;
}
.btn-envoie:hover{
    transform: scale(1.05);
    background-color: #1F1F3B;
    color: white;
}
.container{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem auto;
    max-width: 550px;
    padding: 1.3rem;
    flex-direction: column;
    color: black;
    background-color: #EDE9FE;
    border-radius: 1rem;
}
.container p , label{
    margin: 0.5rem 1rem;
    color: #2c3e50;
    text-align: center;
    font-size: 1.3rem;
}
.container a{
    color: darkgreen;
}
/* Slider JS*/

.slider {
    position: relative;
    width: 80%;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 10px;
    background-color: rgba(237, 233, 254, 0.8);
    padding: 3rem;
    /*
    Position relative
    largeur de 80%
    Le surplus sera caché
    */
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%; /* une slide prend toute la largeur */
    box-sizing: border-box;
    text-align: center;
}
.slide h3{
    color: #2c3e50;
    margin: 1em;
}

.slide img {
    width: auto;
    height: 300px;
    border-radius: 10px;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.6);
    /*
   * L'image prends la largeur pour qu'elle soit bien visible
   * la hauteur est de 300px
   */
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 10%;
}
.prev:hover, .next:hover {
    background: #e6f0ff;
    color: black;
}

.prev { left: 10px; }
.next { right: 10px; }
