@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
}

body {
    font-family: "Open Sans", sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}


/*validation*/
.container_validation{
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Style du titre */
h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

/* Style du paragraphe */
p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
    color: black;
}

/* Style de la ligne horizontale */
hr {
    border: 0;
    height: 1px;
    background-color: #ddd;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 20px;
}

/* Style grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    border-radius: 10px;
    border: 5px solid #fff;
    margin: 0;
    padding: 0;
}

/* Styles pour chaque élément de la grille */
.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Styles pour les images */
.grid-item img {
    width: 264px;
    height: 391px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Styles pour les descriptions */
.grid-item .description {
    padding: 15px;
    background-color: #f2f2f2;
    border-radius: 0 0 8px 8px;
}
.centered-title {
    text-align: center;
    font-size: 20px
}

/* Styles pour les titres */
.titre {
    text-align: center;
}

/* Styles pour le conteneur */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

/* Header */
header {
    width: 100%;
    height: 8vh;
    background: #000;
    color: #fff;
    padding: 0 3px;
    margin-bottom: 10px;
}

nav {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
}

.toggle {
    display: none;
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    width: 25%; 
    margin-right: 10px;
}

.menu li {
    position: relative;
    margin-right: 10px;
}

.menu li:last-child {
    margin-right: 0; 
}

.menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    position: relative;
}

.menu li a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #FFD700; 
    transition: width 0.3s ease;
}

.menu li a:hover::before,
.menu li.active a::before,
.menu li.active a:hover::before {
    width: 100%;
}


/*style pour le formulaire*/
/* Style du formulaire de recherche */
form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

input[type="text"],
input[type="number"] {
    width: 100%;
    height: 36px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input[type="submit"].test {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    box-sizing: border-box;
    border: 1px solid #000;
    border-radius: 4px;
    background-color: #000;
    color: #fff;
    cursor: pointer;
}

input[type="submit"].test:hover {
    background-color: white;
    border: #000 solid 2px;
    color: #000;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    text-align: left;
}

.img-film {
    max-width: 100px; /* Taille maximale de l'image */
    height: auto; /* Garde le ratio de l'image */
}
/*image de fond*/

.fond img{
    width: 100%;
    height: auto;
}

/*style de presentation*/
.container-presentation {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.presentation {
    background-color: #f2f2f2;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #000; /* Couleur noire pour la bordure */
}


.presentation p {
    font-size: 20px;
    line-height: 1.5;
    color: black;
    text-align: center;
}




/* Espace entre les containers de texte */
.container-text1,
.container-text2,
.container-text3 {
    margin-bottom: 30px; /* Ajustez la marge selon votre préférence */
}


/*style text histoire*/
.container-text1{
    width: 70%;
    margin: 0 auto;
    padding: 20px;
    margin-top: 50px;
    margin-bottom: 50px;
}
.container-text2{
    width: 60%;
    margin: 0 auto;
    padding: 20px;
    margin-top: 50px;
    margin-bottom: 50px;
}
.container-text3{
    width: 50%;
    margin: 0 auto;
    padding: 20px;
    margin-top: 50px;
    margin-bottom: 50px;
}
.container-text4 {
    width: 40%;
    margin: 0 auto;
    padding: 20px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.text {
    background-color: #f2f2f2;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #000;
}

.text h3 {
    font-size: 24px;
    color: #000;
    text-align: center;
}

.text p {
    font-size: 20px;
    line-height: 1.5;
    color: #000;
    text-align: justify;
}



/*texte de fond*/
.txt-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.txt {
    color: #fff;
    font-size: 80px;
    font-weight: bold;
}
/* Section Hero */
.hero {
    height: 100vh;
    background: url('img/hero.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.fermer {
    display: none;
}

/*Style table*/
/* Style de base pour le tableau */
table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    border: 2px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

thead > tr:first-child {
    background-color: black; /* Couleur de fond de la première ligne */
    color: white;
    font-weight: bold;
}
h1{
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
}
/*styles modifier / suprimer*/
.ajouter_film,
.retour,
.delete-link,
.edit-link {
    padding: 8px 13px;
    border: none;
    border-radius: 15px;
    color: #212121;
    background: #e8e8e8;
    position: relative;
    font-weight: 500;
    font-size: 14px;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.retour::after,
.delete-link::after,
.edit-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 100%; 
    width: 100%;    
    height: 100%;
    background-color: #212121;
    transition: left 250ms ease-in-out; 
}

.retour:hover::after,
.delete-link:hover::after,
.edit-link:hover::after {
    left: 0; 
    z-index: -1;
}

.retour:hover,
.delete-link:hover,
.edit-link:hover {
    color: white; 
    z-index: 100;
}

/*style + film*/
.ajouter_film {
    color: black;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid #FFD700;
    padding: 10px 20px;
    font-size: 17px;
    font-weight: bold;
    background: transparent;
    position: relative;
    transition: all 1s;
    overflow: hidden;
  }
  
  .ajouter_film:hover {
    color: black;
  }
  
  .ajouter_film::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 0%;
    top: 0;
    left: -40px;
    transform: skewX(45deg);
    background-color: #FFD700;
    z-index: -1;
    transition: all 1s;
  }
  
  .ajouter_film:hover::before {
    width: 160%;
  }
  

/*test bouttons*/
.cta {
    position: relative;
    margin: auto;
    padding: 12px 18px;
    transition: all 0.2s ease;
    border: none;
    background: none;
    cursor: pointer;
  }
  
  .cta:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    border-radius: 50px;
    background: #ffd900;
    width: 45px;
    height: 45px;
    transition: all 0.3s ease;
  }
  
  .cta span {
    position: relative;
    font-family: "Ubuntu", sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: black;
  }
  
  .cta svg {
    position: relative;
    top: 0;
    margin-left: 10px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: black;
    stroke-width: 2;
    transform: translateX(-5px);
    transition: all 0.3s ease;
  }
  
  .cta:hover:before {
    width: 100%;
    background: #ffd90081;
  }
  
  .cta:hover svg {
    transform: translateX(0);
  }
  
  .cta:active {
    transform: scale(0.95);
  }
  

.boutons-container {
  display: flex;
  justify-content: space-between; 
  gap: 10px; 
  margin-top: 305px;
  margin-bottom: 305px;
}


/* Styles pour les liens*/
a {
    color: black; 
    text-decoration: none; 
    font-weight: bold; 
}

/* Style lorsque le lien est survolé */
a:hover {
    color: #0056b3; 
}

/*test*/
.choix_table {
    display: flex;
    justify-content: center;
    align-items: center;
}

.choix_table button {
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    background-color: #ffd900;
    color: black;
    cursor: pointer;
    transition: background-color 0.3s;
}

.choix_table button:hover {
    background-color: black;
    color: white;
}

.choix_table button:focus {
    outline: none;
}

/* Pour espacer les boutons */
.choix_table button + button {
    margin-left: 20px;
}

h6{
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
    color: white; 
}



@media all and (max-width: 480px) {
    header {
        background: black;
    }

    .toggle {
        display: block;
        font-size: 2rem;
        cursor: pointer;
        position: relative;
        z-index: 20;
    }

    .logo {
        position: relative;
        z-index: 20;
    }

    .ouvrir {
        display: block;
    }

    .fermer {
        display: none;
    }

    .open .ouvrir {
        display: none;
    }

    .open .fermer {
        display: block;
    }

    .menu {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #000;
        flex-direction: column;
        padding: 1rem;
        justify-content: space-around;
        transform: translateX(-100%);
        transition: transform 1s;
        z-index: 10;
    }

    .menu li a {
        font-size: 2rem;
    }

    .open .menu {
        transform: translateX(0);
    }

    .fermer {
        display: none !important;
    }

    .open .fermer {
        display: block !important;
    }
}

@media screen and (max-width: 480px) {
    .txt {
        font-size: 25px; 
        color: #000;
    }

    .txt-container {
        position: static;
        transform: none;
        text-align: center;
        margin-top: 30px; 
        margin-bottom: 30px;

    }
}

@media screen and (max-width: 1200px) {
    .container-text1 {
        width: 70%;
    }

    .container-text2 {
        width: 60%;
    }

    .container-text3 {
        width: 50%;
    }

    .container-text4 {
        width: 40%;
    }
}

@media screen and (max-width: 768px) {
    .container-text1,
    .container-text2,
    .container-text3,
    .container-text4 {
        width: 80%;
    }
}

@media screen and (max-width: 480px) {
    .container-text1,
    .container-text2,
    .container-text3,
    .container-text4 {
        width: 100%;
    }
}