body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f6f8;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    text-align: center;
}

/*Header*/
.nav-link {
    color: white ;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
}
.nav-link:hover {
    color: #3498db;
    transform: scale(1.1);
}
.navbar-dark .navbar-nav .nav-link.active {
    color: #3498db;
    border-bottom: 2px solid #3498db;
}


/*Explorer le catalogue en bas de la page*/
.content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.hero {
    text-align: center;
    padding: 50px 20px;
    background-color: #3498db;
    color: white;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}
.btn {
    display: inline-block;
    font-size: 1.1rem;
    background-color: #49aef1;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.btn:hover {
    background-color: #2980b9;
}

/*Footer*/
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}
.footer p {
    margin: 0;
    font-size: 0.9rem;
}

/*_________________________________________________________________________________________________________________________*/

/* Styles pour les suggestions de films dans index.php*/
.catalogue {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}
.catalogue .film {
    position: relative;
    width: 200px;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.catalogue .film img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}
.catalogue .film:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.catalogue .film:hover img {
    opacity: 0.7;
}
.catalogue .film .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.catalogue .film:hover .overlay {
    opacity: 1;
}

/*______________________________________________________________________________________*/
/* Styles pour le Carrousel */
.carousel-item img {
    height: 400px;
    object-fit: cover;
}
.carousel-caption {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 8px;
    bottom: 30px;
}
.carousel-caption h5 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.carousel-caption p {
    font-size: 1rem;
}
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.carousel-indicators [data-bs-target]:hover,
.carousel-indicators .active {
    opacity: 1;
}


/* Transitions fluides pour le carrousel */
.carousel-item {
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}
.carousel-item img {
    transition: transform 0.8s ease-in-out;
}


/*______________________________________________________________________________________*/
/* Styles pour le Bouton Retour */
.back-button-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
.back-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.back-button:hover {
    background-color: #2980b9;
    transform: scale(1.1);
}

/*______________________________________________________________________________________*/

/* Styles pour le Bouton Retour à l'Accueil */
.back-to-home-container {
    display: flex;
    justify-content: center;
    margin-bottom: 17px;
    margin-top: 10px;
    gap: 25px;
}

#back-to-home {
    background: transparent;
    position: relative;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid #3498db;
    border-radius: 25px;
    outline: none;
    overflow: hidden;
    color: #3498db;
    transition: color 0.3s ease, transform 0.3s ease;
    text-align: center;
    gap: 10px;
}
#back-to-home span {
    margin-left: 5px;
}
#back-to-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 20em;
    height: 20em;
    border-radius: 50%;
    background: #3498db; /* Fond bleu pour l'animation */
    transform: scale(0);
    transition: transform 0.5s ease-out;
    z-index: -1;
}
#back-to-home:hover {
    color: white; /* Changement de couleur du texte au survol */
}
#back-to-home:hover::before {
    transform: scale(1); /* Animation d'expansion du fond */
}


/* Styles pour le Bouton Retour en Haut */
#back-to-top {
    background: transparent;
    position: relative;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgb(255, 0, 0);
    border-radius: 25px;
    outline: none;
    overflow: hidden;
    color: rgb(255, 0, 0);
    transition: color 0.3s 0.1s ease-out;
    text-align: center;
}
#back-to-top span {
    margin-left: 10px;
}
#back-to-top::before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    content: '';
    border-radius: 50%;
    display: block;
    width: 20em;
    height: 20em;
    left: -5em;
    text-align: center;
    transition: box-shadow 0.5s ease-out;
    z-index: -1;
}
#back-to-top:hover {
    color: #fff;
    border: 1px solid rgb(255, 0, 0);
}
#back-to-top:hover::before {
    box-shadow: inset 0 0 0 10em rgb(255, 0, 0);
}


/* Styles pour formulaire de form_recherche*/

/* Styles Globaux pour le Formulaire */
.search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}
/* Styles pour le Label */
.search-label {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}
/* Styles pour le Groupe d'Entrée */
.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 550px;
}
/* Styles pour le Champ de Saisie */
.search-input {
    flex-grow: 1;
    padding: 10px;
    font-size: 1rem;
    border: 2px solid #3498db;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
    background-color: #f4f6f8;
}
.search-input:focus {
    border-color: #2980b9;
}

/* Styles pour le Bouton Rechercher */
.search-button {
    background: transparent;
    position: relative;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid #3498db;
    border-radius: 25px;
    outline: none;
    overflow: hidden;
    color: #3498db;
    transition: color 0.3s ease, transform 0.3s ease;
    text-align: center;
    gap: 10px;
}
.search-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 20em;
    height: 20em;
    border-radius: 50%;
    background: #3498db;
    transform: scale(0);
    transition: transform 0.5s ease-out;
    z-index: -1;
}
.search-button:hover {
    color: white;
}

.search-button:hover::before {
    transform: scale(1);
}


/*___________button de reponse_recherche_php_____________________*/
.button-container {
    display: flex;
    justify-content: center;
    gap: 20px; 
    margin-top: 30px;
}
.title_recherche{
    text-align: center;
    color: #3498db;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
}
.message-error {
    color: red;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
}

/*______________________________________________________________________________________*/
/*______________________________________________________________________________________*/

h2.text-center {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
    font-size: 2rem;
}
.film-catalogue {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.film-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
    text-align: center;
}

/* Section de l'image */
.film-image-wrapper {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 8px;
}
.film-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}
.film-card:hover .film-image-wrapper img {
    filter: blur(2px);
}

/* Overlay pour les informations */
.film-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.film-card:hover .film-overlay {
    opacity: 1;
}
.film-infoo {
    text-align: center;
    padding: 10px;
    max-width: 80%;
    margin: 0 auto;
}
.film-infoo h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}
.film-infoo p {
    margin: 5px 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 768px) {
    .film-catalogue {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575px) {
    .film-catalogue {
        grid-template-columns: 1fr;
    }
    .film-image-wrapper {
        width: 80%;
        margin: 0 auto;
    }
    .film-infoo h3 {
        font-size: 1rem;
    }
    .film-infoo p {
        font-size: 0.7rem;
    }
}

/*______________________________________________________________________________________*/
/*______________________________________________________________________________________*/
/* Styles pour les table1_gestion.php de films */

/* Bouton Ajouter un film */
.add-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.add-button:hover {
    background-color: #2980b9;
}

/* Container des films */
.film-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

/* Carte d’un film */
.film-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.2s;
    max-width: 300px;
    text-align: left;
}

.film-card:hover {
    transform: scale(1.05);
}

/* Image du film */
.film-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Informations du film */
.film-info {
    padding: 15px;
}

.film-info h2 {
    font-size: 18px;
    color: #333;
}

.film-info p {
    font-size: 14px;
    color: #555;
}

/* Synopsis */
.synopsis {
    font-size: 12px;
    color: #777;
    margin-top: 10px;
}

/* Actions (Modifier / Supprimer) */
.film-actions {
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

.edit-button, .delete-button {
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
}

.edit-button {
    background-color: #2ecc71;
    color: white;
}

.edit-button:hover {
    background-color: #27ae60;
}

.delete-button {
    background-color: #e74c3c;
    color: white;
}

.delete-button:hover {
    background-color: #c0392b;
}


/*______________________________________________________________________________________*/
/*______________________________________________________________________________________*/
/* Styles pour les table1_new_form.php de films */


h1 {
    color: #3498db;
    font-size: 28px;
    margin-bottom: 20px;
}

/* Bouton retour */
.back-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 20px;
}

.back-button:hover {
    background-color: #2980b9;
}

/* Ligne horizontale */
hr {
    margin: 20px 0;
    border: 1px solid #ddd;
}

/* Formulaire */
.film-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Champs de saisie */
.film-form label {
    font-size: 16px;
    color: #333;
}

.film-form input,
.film-form select,
.film-form textarea {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.film-form input[type="file"] {
    font-size: 14px;
    padding: 6px;
}

.film-form select {
    cursor: pointer;
}

.film-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Champ obligatoire */
.film-form input:required,
.film-form select:required,
.film-form textarea:required {
    border-color: #3498db;
}

/* Bouton de soumission */
.film-form .btn {
    background-color: #3498db;
    color: white;
    padding: 12px 20px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
}

.film-form .btn:hover {
    background-color: #2980b9;
}






