/* ============================================
   ANNUAIRE — PAGES DÉTAIL (show)
   Partagé par : professionnels, structures, films
   ============================================ */

/* ── Hero ─────────────────────────────────── */
.show-hero {
    padding: 3rem 0;
    color: #fff;
}

.show-hero--professionnel {
    background: linear-gradient(135deg, #0a4d1c 0%, #1a1a2e 100%);
}

.show-hero--structure {
    background: linear-gradient(135deg, #16213e 0%, #0a4d1c 100%);
}

.show-hero--film {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.show-hero__back {
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
    font-size: .875rem;
    display: inline-block;
    margin-bottom: .75rem;
    transition: color .2s;
}

.show-hero__back:hover {
    color: #fff;
}

.show-hero__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.show-hero__title {
    font-weight: 700;
    color: #fff;
    margin-bottom: .25rem;
}

/* Affiche film dans le hero */
.show-hero__poster {
    width: 90px;
    height: 130px;
    border-radius: .375rem;
    overflow: hidden;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
}

.show-hero__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Badges ────────────────────────────────── */
.badge-gold {
    background: #FFD700;
    color: #1a1a2e;
}

.badge-green {
    background: #0a7734;
    color: #fff;
}

.badge-xs {
    font-size: .7rem;
}

/* ── Couleurs icônes ───────────────────────── */
.icon-green  { color: #0a7734; }
.icon-red    { color: #e50000; }
.icon-gold   { color: #FFD700; }
.icon-gray   { color: #6c757d; }

/* ── Miniature film (dans les listes) ─────── */
.film-thumb {
    width: 50px;
    height: 70px;
    border-radius: .25rem;
    overflow: hidden;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.film-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Avatar équipe (cercle coloré) ────────── */
.team-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.team-avatar--sm {
    width: 36px;
    height: 36px;
}

.team-avatar--green  { background: #0a7734; }
.team-avatar--red    { background: #e50000; }
.team-avatar--dark   { background: #1a1a2e; }
.team-avatar--gray   { background: #6c757d; }

/* Icône technique (sans fond coloré, juste centré) */
.tech-icon-cell {
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}

/* ── Pastilles stats ───────────────────────── */
.stat-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-circle--green { background: rgba(10, 119, 52, .1); }
.stat-circle--gold  { background: rgba(255, 215, 0, .15); }

/* ── Texte couleur ─────────────────────────── */
.text-cinema-green { color: #0a7734; }
.text-cinema-gold  { color: #b8860b; }
.text-cinema-red   { color: #e50000; }

/* ── Texte synopsis / biographie ──────────── */
.show-synopsis {
    white-space: pre-line;
    line-height: 1.7;
}

/* ── Taille de texte très petite ──────────── */
.fs-2xs { font-size: .78rem; }

/* ── Boutons ───────────────────────────────── */
.btn-cinema-green {
    background: #0a7734;
    color: #fff;
    border: none;
}

.btn-cinema-green:hover,
.btn-cinema-green:focus {
    background: #085e29;
    color: #fff;
}

.btn-cinema-dark {
    background: #1a1a2e;
    color: #fff;
    border: none;
}

.btn-cinema-dark:hover,
.btn-cinema-dark:focus {
    background: #0f0f1c;
    color: #fff;
}

/* ── Card header ───────────────────────────── */
.card-header {
    padding: .75rem 1.25rem;
}

/* Empêcher le débordement des card-header avec badge à droite */
.card-header.d-flex {
    flex-wrap: wrap;
    gap: .25rem;
}

.card-header h5 {
    font-size: 1rem;
    min-width: 0;
}

/* Card header accent (petite barre colorée) */
.card-header-green {
    border-left: 3px solid #0a7734;
}

/* ── Entrée filmographie / liste film ─────── */
.film-entry {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .75rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    transition: background .15s;
}

.film-entry:last-child {
    border-bottom: none;
}

.film-entry:hover {
    background: rgba(10, 119, 52, .03);
}

.film-entry__title a {
    color: #0a7734;
    text-decoration: none;
    font-weight: 600;
}

.film-entry__title a:hover {
    text-decoration: underline;
}

/* ── Entrée équipe ─────────────────────────── */
.crew-entry {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.crew-entry:last-child {
    border-bottom: none;
}

/* ── Prix ──────────────────────────────────── */
.prix-entry {
    padding: .5rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.prix-entry:last-child {
    border-bottom: none;
}

/* ── Empty state ───────────────────────────── */
.show-empty {
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: #999;
}

.show-empty i {
    font-size: 2rem;
    opacity: .25;
    display: block;
    margin-bottom: .5rem;
}

/* ── Responsive ────────────────────────────── */

/* Prevent long text from overflowing flex containers */
.film-entry > div,
.crew-entry > div,
.show-hero > .container {
    min-width: 0;
}

.show-hero__title,
.card-title,
.film-entry__title {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ── ≤ 991px : colonnes empilées (Bootstrap lg breakpoint) ── */
@media (max-width: 991.98px) {
    /* Hero : réduire le padding */
    .show-hero {
        padding: 2.5rem 0;
    }

    /* Titre hero : taille adaptée au viewport */
    .show-hero__title {
        font-size: clamp(1.3rem, 5vw, 1.9rem);
    }

    /* Affiche film hero : un peu plus petite */
    .show-hero__poster {
        width: 75px;
        height: 110px;
    }
}

/* ── ≤ 767px : tablette portrait / mobile large ── */
@media (max-width: 767.98px) {
    .show-hero {
        padding: 2rem 0;
    }

    .show-hero__title {
        font-size: clamp(1.15rem, 5.5vw, 1.6rem);
    }

    /* Avatar un peu plus petit */
    .show-hero__avatar {
        width: 64px;
        height: 64px;
    }

    /* Réduire le gap dans le hero */
    .show-hero .d-flex.gap-4 {
        gap: 1rem !important;
    }

    /* Entrées filmographie : padding latéral réduit */
    .film-entry {
        padding: .6rem 1rem;
    }

    /* Entrées équipe */
    .crew-entry {
        padding: .4rem 1rem;
    }

    /* Prix */
    .prix-entry {
        padding: .4rem 1rem;
    }

    /* Card body : padding réduit sur mobile */
    .card-body.px-4 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* ── ≤ 575px : mobile ── */
@media (max-width: 575.98px) {
    .show-hero {
        padding: 1.5rem 0;
    }

    .show-hero__title {
        font-size: clamp(1rem, 6vw, 1.4rem);
    }

    .show-hero__avatar {
        width: 52px;
        height: 52px;
    }

    .show-hero__avatar i {
        font-size: 1.25rem !important;
    }

    /* Affiche film hero */
    .show-hero__poster {
        width: 58px;
        height: 85px;
    }

    /* Hero film : passer en flex-column sur très petit écran */
    .show-hero .flex-wrap {
        gap: .75rem !important;
    }

    /* Badges hero : taille de texte réduite */
    .show-hero .badge.fs-6 {
        font-size: .8rem !important;
    }

    /* Thumb film dans liste : un peu plus petit */
    .film-thumb {
        width: 42px;
        height: 58px;
    }

    /* Entrées filmographie */
    .film-entry {
        padding: .5rem .75rem;
        gap: .5rem;
    }

    /* Entrées équipe */
    .crew-entry {
        padding: .35rem .75rem;
        gap: .5rem;
    }

    /* Prix */
    .prix-entry {
        padding: .35rem .75rem;
    }

    /* Avatar équipe : plus petit */
    .team-avatar {
        width: 32px;
        height: 32px;
    }

    .team-avatar--sm {
        width: 28px;
        height: 28px;
    }

    /* Stat circle */
    .stat-circle {
        width: 40px;
        height: 40px;
    }

    /* Stat number */
    .stat-circle + div .fs-4 {
        font-size: 1.25rem !important;
    }

    /* dl row dans les cards : forcer full-width sous sm */
    .card-body dl.row > dt,
    .card-body dl.row > dd {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .card-body dl.row > dd {
        margin-bottom: .5rem;
    }

    /* Bouton CTA */
    .btn-cinema-green,
    .btn-cinema-dark {
        font-size: .85rem;
        padding: .4rem .75rem;
    }
}

/* ── ≤ 400px : mobile très petit ── */
@media (max-width: 400px) {
    .show-hero {
        padding: 1.25rem 0;
    }

    .show-hero__title {
        font-size: 1rem;
    }

    /* Empiler affiche + texte verticalement pour le hero film */
    .show-hero--film .d-flex.align-items-start {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .show-hero__poster {
        width: 70px;
        height: 100px;
    }

    /* film-entry : réduire encore les paddings */
    .film-entry {
        padding: .4rem .5rem;
        gap: .4rem;
    }

    /* Masquer les avatars équipe sur très petit écran pour économiser l'espace */
    .crew-entry .team-avatar {
        display: none;
    }

    .crew-entry .tech-icon-cell {
        width: auto;
    }
}
