/* =============================== */
/*   COMPOSANTS – MÉTADONNÉES     */
/* =============================== */

.film-submeta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.film-submeta .meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f0f5fb;
    border: 1px solid #dde6f1;
    border-radius: 20px;
    font-size: .9rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.film-submeta .meta-pill:hover {
    background: #e8eff7;
    border-color: #ccd9ee;
}

.film-submeta .meta-pill a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.film-submeta .meta-pill a:hover {
    color: #0ea5e9;
}

.film-submeta .meta-studios::before { content: "🎟️"; }
.film-submeta .meta-year::before { content: "📅"; }
.film-submeta .meta-genre::before { content: "🏷️"; }
.film-submeta .meta-runtime::before { content: "🕒"; }
.film-submeta .meta-decade::before { content: "🔖"; }

.film-submeta .meta-genre {
    flex-wrap: wrap;
}

@media (max-width: 780px) {
    .film-submeta {
        gap: 6px;
        font-size: .85rem;
    }

    .film-submeta .meta-pill {
        padding: 6px 10px;
    }
}

/* =============================== */
/*   STYLES TITRES H2 / H3        */
/* =============================== */

.page-film h2.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1f2d3d;
    margin: 40px 0 24px;
    position: relative;
    text-align: center;
}

.page-film h2.section-title::before,
.page-film h2.section-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #dde6f1, transparent);
    z-index: 0;
}

.page-film h2.section-title > span {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 0 16px;
    background: linear-gradient(180deg, #f6fbff 0%, #ffffff 100%);
}

.page-film h2.section-title .dot {
    display: none !important;
}

.page-film h3.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin: 20px 0 16px;
    padding-left: 30px;
    position: relative;
}

.page-film h3.section-title::before {
    content: "📋";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

.page-film h3.section-title.role-realisateur::before { content: "🎬"; }
.page-film h3.section-title.role-producteurs::before { content: "💼"; }
.page-film h3.section-title.role-compositeur::before { content: "🎼"; }
.page-film h3.section-title.role-scenariste::before { content: "✍️"; }
.page-film h3.section-title.role-direction-artistique::before { content: "🎨"; }
.page-film h3.section-title.role-vfx::before { content: "💻"; }
.page-film h3.section-title.role-monteur::before { content: "✂️"; }

.page-film h3.section-title .dot {
    display: none;
}

/* =============================== */
/*   SYNOPSIS ET INFOS TECH       */
/* =============================== */

.synopsis {
    max-width: 900px;
    margin: 24px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #0ea5e9;
}

.synopsis p {
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.tech-card {
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #dde6f1;
    border-radius: 8px;
    text-align: center;
}

.tech-card:hover {
    background: #f0f5fb;
    border-color: #ccd9ee;
}

.tech-label {
    font-size: .85rem;
    color: #6b7b8c;
    font-weight: 600;
    margin-bottom: 6px;
}

.tech-value {
    font-weight: 800;
    color: #1f2d3d;
    font-size: 1.1rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.badge.success {
    background: #ecfbf2;
    color: #1c7f45;
    border-color: #d2f1de;
}

.badge.warn {
    background: #fff7e6;
    color: #8a5a00;
    border-color: #fde7bd;
}

/* =============================== */
/*   INFOS ET KEY-VALUE           */
/* =============================== */

.info-block {
    margin: 24px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
}

.kv {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.kv .k {
    color: #6b7b8c;
    font-size: .92rem;
    font-weight: 600;
}

.kv .v {
    font-weight: 700;
    color: #1f2d3d;
}

.allocine-logo {
    display: inline-block;
    vertical-align: middle;
    max-height: 24px;
}

.kv.kv-tip {
    padding: 12px;
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    border-radius: 4px;
}

.kv.kv-tip.kv-tip--spotify::before {
    content: "🎵 ";
    font-weight: 600;
}

.kv.kv-tip .k {
    color: #92400e;
}

.kv.kv-tip .v {
    font-weight: 600;
    color: #2b3c46;
    line-height: 1.35;
}

.kv.kv-tip a:hover {
    text-decoration: underline;
}

.brand-icon {
    display: inline-block;
    max-height: 24px;
    vertical-align: middle;
    margin-right: 6px;
}
