/* ==========================================================
   CINÉMA LE RIO — PAGE PROCHAINEMENT MODERNE
   Habillage visuel uniquement
   ========================================================== */

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% -180px, rgba(177,15,21,.16), transparent 430px),
        #0d0e10;
    color: #f2f2f2;
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.page-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* HEADER */
.site-header {
    width: 100%;
    margin: 20px auto 0;
    padding: .9rem 1.15rem;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 120px;
    align-items: center;
    gap: 1.3rem;
    color: #fff;
    border: 1px solid rgba(255,255,255,.08);
    border-bottom: 2px solid #b31217;
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.025), transparent 28%),
        linear-gradient(180deg, #181818 0%, #090909 100%);
    box-shadow: 0 14px 34px rgba(0,0,0,.35);
}

.logo-left,
.logo-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-left img,
.logo-right img {
    width: 105px;
    max-height: 90px;
    object-fit: contain;
    border-radius: 10px;
}

.header-center {
    min-width: 0;
    text-align: center;
}

.header-title {
    font-family: 'Amalfi Coast', cursive;
    margin: 0 0 20px;
    color: #e11b22;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 0 18px rgba(225,27,34,.22);
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .35rem .85rem;
}

nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: .3rem .1rem;
    color: #fff;
    text-decoration: none;
    font-size: .96rem;
    font-weight: 700;
    transition: color .2s ease, transform .2s ease;
}

nav a:not(.menu-noel)::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: #e11b22;
    transition: left .2s ease, right .2s ease;
}

nav a:not(.menu-noel):hover,
nav a:not(.menu-noel):focus-visible,
nav a.nav-active {
    color: #ffe56a;
}

nav a:not(.menu-noel):hover::after,
nav a:not(.menu-noel):focus-visible::after,
nav a.nav-active::after {
    left: 0;
    right: 0;
}

.menu-noel {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: relative;
    top: -2px;
    padding: 5px 10px !important;
    margin: 0 2px;
    border: 1px solid #d7b85a;
    border-radius: 6px;
    color: #fff !important;
    background: linear-gradient(135deg, #5f0015, #8f102d);
    box-shadow: 0 0 8px rgba(215,184,90,.25);
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
}

.menu-noel:hover {
    background: linear-gradient(135deg, #7a001d, #b61b42);
    box-shadow: 0 0 12px rgba(215,184,90,.48);
}

/* CONTENU */
.prochainement-page {
    width: min(1240px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.hero-prochainement {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.4rem;
    padding: clamp(.85rem, 2vw, 1.35rem) 1.4rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    background:
        radial-gradient(circle at top, rgba(255,217,93,.09), transparent 58%),
        linear-gradient(180deg, #17181b, #0b0c0d);
    box-shadow:
        0 14px 34px rgba(0,0,0,.38),
        inset 0 1px 0 rgba(255,255,255,.035);
}

.hero-prochainement::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #b10f15, #ffd95d, #b10f15, transparent);
}

.hero-kicker {
    margin: 0 0 .45rem;
    color: #ff9da1;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero-prochainement h1 {
    margin: 0;
    color: #fff8d7;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-shadow:
        0 0 12px rgba(255,217,93,.12),
        0 2px 8px rgba(0,0,0,.55);
}

.hero-text {
    max-width: 720px;
    margin: .9rem auto 0;
    color: #c5c8cd;
    font-size: 1rem;
}

.info-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    max-width: 760px;
    margin: 0 auto 2rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(255,217,93,.18);
    border-radius: 13px;
    background: rgba(255,217,93,.055);
    color: #f2f2f2;
    text-align: center;
}

.info-banner strong,
.info-banner span {
    display: block;
}

.info-banner strong {
    color: #ffe56a;
    font-size: .92rem;
}

.info-banner span {
    color: #d7d9de;
    font-size: .88rem;
}

.info-icon {
    font-size: 1.4rem;
}

/* CARTES FILMS */
.carousel-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, 180px);
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-item {
    position: relative;
    width: 180px;
    min-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #fff;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 17px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.03), transparent 25%),
        linear-gradient(180deg, #23262b 0%, #15171a 100%);
    box-shadow:
        0 11px 28px rgba(0,0,0,.45),
        inset 0 1px 0 rgba(255,255,255,.03);
    cursor: pointer;
    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.carousel-item:hover {
    transform: translateY(-7px);
    border-color: rgba(225,27,34,.45);
    box-shadow:
        0 18px 38px rgba(0,0,0,.58),
        0 0 0 1px rgba(225,27,34,.07);
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    background: #070809;
}

.poster-wrap img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: transform .38s ease, filter .38s ease;
}

.carousel-item:hover img {
    transform: scale(1.045);
    filter: brightness(1.06) contrast(1.03);
}

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.65));
    opacity: .55;
    transition: opacity .25s ease;
}

.carousel-item:hover .poster-wrap::after {
    opacity: .25;
}

.poster-action {
    position: absolute;
    left: 50%;
    bottom: 11px;
    z-index: 2;
    transform: translate(-50%, 8px);
    width: max-content;
    max-width: calc(100% - 18px);
    padding: .42rem .62rem;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    background: rgba(0,0,0,.72);
    color: #fff;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .04em;
    opacity: 0;
    transition: opacity .22s ease, transform .22s ease;
}

.carousel-item:hover .poster-action {
    opacity: 1;
    transform: translate(-50%, 0);
}

.film-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: .8rem .7rem .95rem;
    text-align: center;
}

.film-content h2 {
    margin: 0 0 .45rem;
    color: #ffe56a;
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.25;
}

.film-content p {
    margin: auto 0 0;
    color: #d0d2d7;
    font-size: .85rem;
    line-height: 1.45;
}

/* MODALE BANDE-ANNONCE */
.trailer-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(8px);
}

.trailer-modal.open {
    display: flex;
}

.trailer-modal-content {
    position: relative;
    width: min(960px, 94vw);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 17px;
    background: #000;
    box-shadow:
        0 24px 60px rgba(0,0,0,.75),
        0 0 0 1px rgba(225,27,34,.08);
}

.trailer-frame-wrapper {
    position: relative;
    padding-top: 56.25%;
}

.trailer-frame-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.trailer-close {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 10;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    background: rgba(0,0,0,.72);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.trailer-close:hover {
    color: #ffe56a;
    background: #8f102d;
}

/* ACTION / FOOTER */
.page-actions {
    margin-top: 2.4rem;
    text-align: center;
}

.btn-retour {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: .72rem 1.2rem;
    border: 1px solid rgba(255,217,93,.26);
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(180deg, #b31217, #861014);
    box-shadow: 0 9px 22px rgba(179,18,23,.22);
    font-weight: 800;
    text-decoration: none;
}

.btn-retour:hover {
    filter: brightness(1.08);
}

footer {
    margin-top: 1rem;
    padding: 1.1rem;
    border-top: 1px solid rgba(255,255,255,.07);
    background: #050505;
    color: #c9c9c9;
    text-align: center;
}

footer p {
    margin: 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .page-shell {
        padding: 0;
    }

    .site-header {
        width: 100%;
        margin-top: 0;
        grid-template-columns: 1fr;
        gap: 0;
        padding: .9rem .8rem 1rem;
        border-radius: 0;
    }

    .logo-left,
    .logo-right {
        display: none;
    }

    .header-title {
        margin-bottom: 15px;
        font-size: 1.75rem;
    }

    nav {
        gap: .28rem .7rem;
    }

    nav a {
        min-height: 35px;
        font-size: .9rem;
    }

    .menu-noel {
        top: 0;
    }

    .prochainement-page {
        width: min(100% - 1rem, 1240px);
        padding-top: 1rem;
    }

    .hero-prochainement {
        border-radius: 15px;
    }

    .carousel-container {
        grid-template-columns: repeat(2, minmax(0, 180px));
        gap: 1rem;
    }

    .carousel-item {
        width: 100%;
    }

    .poster-wrap img {
        height: auto;
        aspect-ratio: 2 / 3;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    nav {
        gap: .2rem .55rem;
    }

    nav a {
        font-size: .82rem;
    }

    .hero-prochainement {
        padding: .8rem .9rem;
    }

    .hero-prochainement h1 {
        font-size: 1.65rem;
    }

    .hero-text {
        font-size: .9rem;
    }

    .info-banner {
        margin-bottom: 1.35rem;
    }

    .carousel-container {
        gap: .75rem;
    }

    .carousel-item {
        border-radius: 13px;
    }

    .film-content {
        padding: .65rem .45rem .75rem;
    }

    .film-content h2 {
        font-size: .82rem;
    }

    .film-content p {
        font-size: .75rem;
    }

    .poster-action {
        display: none;
    }
}

@media (max-width: 360px) {
    .carousel-container {
        grid-template-columns: 1fr;
    }

    .carousel-item {
        width: min(190px, 90vw);
        margin: 0 auto;
    }
}
