body, section, .info-card, .btn-modify {
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #f1f1f1;
    line-height: 1.6;
}

main.film-details-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.search-container {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

#search-bar {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    font-size: 1em;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

#search-bar:focus {
    border-color: #007BFF;
    box-shadow: 0px 0px 8px rgba(0, 123, 255, 0.3);
}

.suggestions-grid {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.suggestions-grid img {
    margin-top: 20px;
    width: 100px;
    height: 150px;
    object-fit: cover;
    justify-content: center; 
}

.film-poster {
    text-align: center;
    margin-bottom: 40px;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
}

.film-poster-image {
    width: 400px; 
    border-radius: 10px;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}


.film-poster-image {
    width: 400px;
    border-radius: 10px;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.btn-container {
    text-align: center;
    margin: 10px 0;
}

.btn-modify {
    background-color: #2c2c2c;
    color: #ffffff;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-modify:hover {
    background-color: #3a3a3a;
    color: #ffffff;
}





.film-title {
    font-size: 2.8em;
    color: #f1f1f1;
    margin-top: 10px;
    text-transform: capitalize;
}


.film-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center;
    background-color: transparent;
    box-shadow: none;
}

.film-info .info-card {    
    background: linear-gradient(to bottom right, #1f1f1f, #292929);
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 250px;
    text-align: center;
    padding: 15px 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.film-info .info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

.film-info .info-card i {
    font-size: 2em;
    color: #3399ff;
    margin-bottom: 10px;
}

.film-info .info-card p {
    margin: 0;
    font-size: 1.1em;
    color: #f1f1f1;
    font-weight: bold;
}

.film-info .info-card span {
    color: #bbbbbb;
    display: block;
    margin-top: 5px;
    font-size: 1em;
}

.film-info .flag-card {
    font-size: 125%;
    background-size: cover;
    background-position: center;
    color: white; 
    position: relative;
    width: 250px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-shadow: -1px -1px 1px #000, 1px -1px 1px #000, -1px 1px 1px #000, 1px 1px 1px #000;
}

.film-info .flag-card p,
.film-info .flag-card span {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1.1em;
    margin: 0;
}



/* Sections générales */
section {
    margin-bottom: 50px;
    margin-left: 50px;
    margin-right: 50px;
    background-color: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px 30px;
}

section h2 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #f1f1f1;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

section p {
    font-size: 1.1em;
    margin: 10px 0;
    color: #f1f1f1;
}

/* Listes */
ul {
    padding-left: 0;
    list-style: none;
}

li {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

li:last-child {
    border-bottom: none;
}

li span {
    font-weight: bold;
    color: red;
}

/* Liens */
a {
    text-decoration: none;
    color: #007BFF;
}

a:hover {
    text-decoration: underline;
}


@media (max-width: 768px) {
    .film-poster-image {
        width: 90%;
    }

    .film-title {
        font-size: 2.2em;
    }

    section {
        padding: 15px;
    }

    section h2 {
        font-size: 1.4em;
    }

    section p,
    li {
        font-size: 1em;
    }
}
