main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem auto;
    gap: 3rem;
    max-width: 1200px;
    padding: 0 1rem;
    font-family: 'Open Sans', sans-serif;
}
section {
    background-color: #fff;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    max-width: 240px;
    margin: 0 auto;
}
.left img {
    width: 100%;
    max-width: 200px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}
.left a.btn-trailer {
    margin-top: 1rem;
    padding: 0.6rem 1.4rem;
    background-color: #7fb196;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    font-family: 'Ribeye', cursive;
    text-align: center;
    width: fit-content;
}
.left a.btn-trailer:hover {
    background-color: #689e83;
}
.right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
    min-width: 280px;
}
.right p {
    max-width: 600px;
    line-height: 1.5;
    margin: 0.4rem 0;
}
section h2 {
    font-family: 'Ribeye', cursive;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #7fb196;
    width: 100%;
    text-align: center;
}
.commentaires-form-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: nowrap;
    margin-top: 1rem;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.commentaires .comment-list {
    flex: 1 1 60%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    max-height: 600px;
}
.comment {
    background-color: #f9f4e6;
    padding: 1rem;
    border-radius: 0.8rem;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
}

.comment p {
    margin: 0.3rem 0;
}

.comment .date {
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
}
.commentaires-form-container form {
    flex: 0 0 35%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-family: 'Open Sans', sans-serif;
    padding: 1rem;
    background-color: #fffbe8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    box-sizing: border-box;
}
form label {
    font-weight: 600;
    font-size: 1.1rem;
    color: #555;
}
form input[type="email"], form input[type="number"], form textarea {
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border-radius: 12px;
    border: 1px solid #ccc;
    outline: none;
    font-family: 'Open Sans', sans-serif;
    resize: vertical;
}
form input[type="number"] {
    max-width: 80px;
}
form textarea {
    min-height: 100px;
}
form input[type="submit"] {
    width: max-content;
    background-color: #7fb196;
    color: white;
    padding: 0.6rem 1.8rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Ribeye', cursive;
}
form input[type="submit"]:hover {
    background-color: #689e83;
}
p.error {
    color: #c62828;
    font-weight: 700;
    margin-top: 1rem;
}
p.success {
    color: #2e7d32;
    font-weight: 700;
    margin-top: 1rem;
}
@media (max-width: 900px) {
    main {
        flex-direction: column;
        max-width: 90%;
        margin: 1rem auto;
        gap: 1.5rem;
    }
    section {
        flex-direction: column;
        gap: 1.5rem;
    }
    .left {
        max-width: 100%;
        margin: 0 auto;
    }
    .left img {
        max-width: 100%;
        height: auto;
    }
    .right {
        min-width: 100%;
    }
    .commentaires-form-container {
        flex-direction: column;
        max-width: 100%;
        gap: 2rem;
        margin-top: 1rem;
    }
    .commentaires .comment-list {
        max-width: 100%;
        max-height: 400px;
        overflow-y: auto;
        flex: unset;
    }
    .commentaires-form-container form {
        max-width: 100%;
        flex: unset;
        width: 100%;
    }
    form input[type="number"] {
        max-width: 100%;
    }
}
@media (max-width: 480px) {
    header {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    .header-gauche, .header-droite {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .header-gauche h1 {
        font-size: 1.5rem;
    }
    main {
        padding: 0 0.5rem;
    }
    section h2 {
        font-size: 1.5rem;
    }
    form label {
        font-size: 1rem;
    }
    form input[type="email"],
    form input[type="number"],
    form textarea {
        font-size: 0.9rem;
    }
    form input[type="submit"] {
        font-size: 1rem;
        padding: 0.5rem 1.2rem;
    }
}