/* ==========================================================
   ISABELLA DELLE CASTELLE
   FILMS À LA UNE — VERSION PREMIUM
========================================================== */

.films-featured {
    position: relative;
    z-index: 2;
    overflow: hidden;
    padding: clamp(78px, 9vw, 140px) 5%;
    color: #f6f0e8;
    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(196, 151, 79, 0.18),
            transparent 34%
        ),
        radial-gradient(
            circle at 10% 70%,
            rgba(122, 91, 45, 0.08),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #080808 0%,
            #0d0c0b 48%,
            #080808 100%
        );
}

.films-featured::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1180px, 82%);
    height: 1px;
    content: "";
    transform: translateX(-50%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(220, 183, 113, 0.68),
        transparent
    );
}

.films-featured::after {
    position: absolute;
    top: 40px;
    left: 50%;
    width: 420px;
    height: 420px;
    content: "";
    transform: translateX(-50%);
    border-radius: 50%;
    pointer-events: none;
    background: rgba(196, 151, 79, 0.05);
    filter: blur(90px);
}

.films-featured-inner {
    position: relative;
    z-index: 1;
    width: min(100%, 1500px);
    margin: 0 auto;
}

.films-featured-header {
    width: min(100%, 820px);
    margin: 0 auto clamp(46px, 6vw, 82px);
    text-align: center;
}

.films-featured-kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    color: #c6a05d;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.34em;
    line-height: 1.4;
    text-transform: uppercase;
}

.films-featured-kicker::before,
.films-featured-kicker::after {
    width: 34px;
    height: 1px;
    content: "";
    background: rgba(198, 160, 93, 0.48);
}

.films-featured-header h2 {
    margin: 0;
    color: #f8f4ed;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5.2vw, 78px);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 0.98;
    text-wrap: balance;
}

.films-featured-header p {
    max-width: 620px;
    margin: 24px auto 0;
    color: rgba(248, 244, 237, 0.64);
    font-size: clamp(14px, 1.2vw, 17px);
    font-weight: 300;
    line-height: 1.8;
}

.films-featured-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(22px, 2.4vw, 38px);
    align-items: start;
}

.films-featured-card {
    position: relative;
    min-width: 0;
}

.films-featured-card:nth-child(1) {
    grid-column: span 6;
}

.films-featured-card:nth-child(2),
.films-featured-card:nth-child(3) {
    grid-column: span 3;
}

.films-featured-card:nth-child(2),
.films-featured-card:nth-child(3) {
    margin-top: clamp(34px, 4vw, 64px);
}

.films-featured-video-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(210, 174, 106, 0.24);
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.03),
            transparent 50%
        ),
        #020202;
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.52),
        inset 0 0 0 1px rgba(255, 255, 255, 0.018);
    transition:
        transform 550ms cubic-bezier(.22, 1, .36, 1),
        border-color 550ms ease,
        box-shadow 550ms ease;
}

.films-featured-card:nth-child(1) .films-featured-video-wrap {
    aspect-ratio: 16 / 9;
}

.films-featured-card:nth-child(2) .films-featured-video-wrap,
.films-featured-card:nth-child(3) .films-featured-video-wrap {
    aspect-ratio: 4 / 5;
}

.films-featured-video-wrap::before {
    position: absolute;
    z-index: 2;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.04) 30%,
            rgba(0, 0, 0, 0.46) 100%
        );
}

.films-featured-video-wrap::after {
    position: absolute;
    z-index: 3;
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
    content: "▶";
    display: grid;
    place-items: center;
    border: 1px solid rgba(224, 192, 131, 0.6);
    border-radius: 50%;
    color: #eed7a7;
    background: rgba(4, 4, 4, 0.66);
    font-size: 13px;
    line-height: 1;
    pointer-events: none;
    backdrop-filter: blur(10px);
    transition:
        transform 450ms ease,
        background 450ms ease,
        border-color 450ms ease;
}

.films-featured-video {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020202;
}

.films-featured-video::-webkit-media-controls-panel {
    background: linear-gradient(
        180deg,
        transparent,
        rgba(0, 0, 0, 0.82)
    );
}

.films-featured-number {
    position: absolute;
    z-index: 4;
    top: 16px;
    left: 16px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(218, 181, 111, 0.54);
    color: #e6cc99;
    background: rgba(4, 4, 4, 0.68);
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    line-height: 1;
    backdrop-filter: blur(10px);
}

.films-featured-content {
    position: relative;
    padding: 24px 4px 0;
}

.films-featured-content::before {
    display: block;
    width: 38px;
    height: 1px;
    margin-bottom: 16px;
    content: "";
    background: rgba(198, 160, 93, 0.55);
}

.films-featured-content > span {
    display: block;
    margin-bottom: 9px;
    color: #b98f4d;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.25em;
    line-height: 1.4;
    text-transform: uppercase;
}

.films-featured-content h3 {
    max-width: 95%;
    margin: 0;
    color: #f3eee5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(20px, 1.75vw, 30px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.22;
    text-wrap: balance;
}

.films-featured-card:nth-child(1) .films-featured-content h3 {
    font-size: clamp(25px, 2.2vw, 38px);
}

@media (hover: hover) {
    .films-featured-card:hover .films-featured-video-wrap {
        transform: translateY(-8px);
        border-color: rgba(218, 181, 111, 0.52);
        box-shadow:
            0 40px 90px rgba(0, 0, 0, 0.64),
            0 0 0 1px rgba(218, 181, 111, 0.06);
    }

    .films-featured-card:hover .films-featured-video-wrap::after {
        transform: scale(1.08);
        border-color: rgba(236, 206, 148, 0.84);
        background: rgba(146, 105, 48, 0.72);
    }
}

/* ==========================================================
   TABLETTE
========================================================== */

@media (max-width: 1100px) {
    .films-featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .films-featured-card:nth-child(1) {
        grid-column: 1 / -1;
    }

    .films-featured-card:nth-child(2),
    .films-featured-card:nth-child(3) {
        grid-column: auto;
        margin-top: 0;
    }

    .films-featured-card:nth-child(2) .films-featured-video-wrap,
    .films-featured-card:nth-child(3) .films-featured-video-wrap {
        aspect-ratio: 16 / 10;
    }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 720px) {
    .films-featured {
        padding:
            clamp(62px, 15vw, 90px)
            18px;
    }

    .films-featured-header {
        margin-bottom: 42px;
        text-align: left;
    }

    .films-featured-kicker {
        justify-content: flex-start;
    }

    .films-featured-kicker::before {
        display: none;
    }

    .films-featured-header p {
        margin-left: 0;
    }

    .films-featured-grid {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .films-featured-card:nth-child(1),
    .films-featured-card:nth-child(2),
    .films-featured-card:nth-child(3) {
        grid-column: auto;
        margin-top: 0;
    }

    .films-featured-card:nth-child(1) .films-featured-video-wrap,
    .films-featured-card:nth-child(2) .films-featured-video-wrap,
    .films-featured-card:nth-child(3) .films-featured-video-wrap {
        aspect-ratio: 16 / 10;
    }

    .films-featured-number {
        top: 12px;
        left: 12px;
        width: 38px;
        height: 38px;
    }

    .films-featured-video-wrap::after {
        right: 12px;
        bottom: 12px;
        width: 46px;
        height: 46px;
    }

    .films-featured-content {
        padding-top: 20px;
    }

    .films-featured-content h3,
    .films-featured-card:nth-child(1) .films-featured-content h3 {
        max-width: 100%;
        font-size: clamp(22px, 7vw, 30px);
    }
}

/* ==========================================================
   PETITS ÉCRANS
========================================================== */

@media (max-width: 420px) {
    .films-featured-header h2 {
        font-size: 42px;
    }

    .films-featured-video-wrap {
        aspect-ratio: 4 / 3 !important;
    }
}

/* ==========================================================
   ACCESSIBILITÉ
========================================================== */

@media (prefers-reduced-motion: reduce) {
    .films-featured-video-wrap,
    .films-featured-video-wrap::after {
        transition: none;
    }

    .films-featured-card:hover .films-featured-video-wrap {
        transform: none;
    }
}

/* ==========================================================
   COMMANDES VIDÉO PERSONNALISÉES
========================================================== */

.films-featured-video {
    cursor: pointer;
}

.films-featured-video::-webkit-media-controls {
    display: none !important;
}

.films-featured-video::-webkit-media-controls-enclosure {
    display: none !important;
}

.films-featured-video::-webkit-media-controls-panel {
    display: none !important;
}

.films-featured-video::-webkit-media-controls-download-button {
    display: none !important;
}

.films-featured-video::-webkit-media-controls-picture-in-picture-button {
    display: none !important;
}

.films-featured-video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

.films-featured-play,
.films-featured-fullscreen {
    position: absolute;
    z-index: 7;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(224, 192, 131, 0.7);
    color: #f0d8a5;
    background: rgba(5, 5, 5, 0.7);
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition:
        opacity 300ms ease,
        transform 350ms ease,
        background 350ms ease,
        border-color 350ms ease;
}

.films-featured-play {
    top: 50%;
    left: 50%;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    font-size: 19px;
}

.films-featured-play span {
    display: block;
    margin-left: 4px;
}

.films-featured-fullscreen {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 21px;
}

.films-featured-video-wrap::after {
    display: none !important;
}

.films-featured-card.is-playing .films-featured-play{
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
    transform:translate(-50%,-50%) scale(.7) !important;
}

.films-featured-card.is-playing:hover .films-featured-play,
.films-featured-card.is-paused .films-featured-play {
    opacity: 1;
    pointer-events: auto;
}

.films-featured-card.is-playing .films-featured-fullscreen {
    opacity: 1;
}

@media (hover: hover) {
    .films-featured-play:hover,
    .films-featured-fullscreen:hover {
        border-color: rgba(242, 214, 160, 0.95);
        background: rgba(153, 110, 50, 0.84);
    }

    .films-featured-play:hover {
        transform: translate(-50%, -50%) scale(1.08);
    }

    .films-featured-fullscreen:hover {
        transform: scale(1.08);
    }
}

@media (max-width: 720px) {
    .films-featured-play {
        width: 62px;
        height: 62px;
        font-size: 17px;
    }

    .films-featured-fullscreen {
        right: 12px;
        bottom: 12px;
        width: 44px;
        height: 44px;
        font-size: 19px;
    }
}

/* ==========================================================
   FILMS À LA UNE — DISPOSITION ÉDITORIALE PREMIUM
   1 film principal + 2 films secondaires
========================================================== */

.films-featured-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(34px, 4vw, 64px) clamp(22px, 3vw, 44px) !important;
    align-items: start !important;
    width: 100% !important;
}

/* Première vidéo : grande pièce principale */
.films-featured-card:nth-child(1) {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Deuxième et troisième vidéos : alignées */
.films-featured-card:nth-child(2),
.films-featured-card:nth-child(3) {
    grid-column: auto !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Première vidéo, largeur cinématographique */
.films-featured-card:nth-child(1) .films-featured-video-wrap {
    width: 100% !important;
    aspect-ratio: 16 / 8.4 !important;
    min-height: 0 !important;
}

/* Deux vidéos secondaires */
.films-featured-card:nth-child(2) .films-featured-video-wrap,
.films-featured-card:nth-child(3) .films-featured-video-wrap {
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    min-height: 0 !important;
}

/* Centrage et cadrage des vidéos */
.films-featured-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* Contenus sous les vidéos */
.films-featured-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    min-height: 112px !important;
    padding: 24px 5px 0 !important;
}

/* Titre principal plus important */
.films-featured-card:nth-child(1) .films-featured-content {
    max-width: 900px !important;
    min-height: auto !important;
    padding-top: 28px !important;
}

.films-featured-card:nth-child(1) .films-featured-content h3 {
    max-width: 900px !important;
    font-size: clamp(28px, 3vw, 46px) !important;
    line-height: 1.08 !important;
}

/* Titres secondaires équilibrés */
.films-featured-card:nth-child(2) .films-featured-content h3,
.films-featured-card:nth-child(3) .films-featured-content h3 {
    max-width: 95% !important;
    font-size: clamp(22px, 2vw, 31px) !important;
    line-height: 1.18 !important;
}

/* Ombre plus profonde sur la vidéo principale */
.films-featured-card:nth-child(1) .films-featured-video-wrap {
    box-shadow:
        0 38px 100px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(220, 183, 113, 0.05) !important;
}

/* Numérotation plus discrète */
.films-featured-number {
    top: 18px !important;
    left: 18px !important;
}

.films-featured-card:nth-child(1) .films-featured-number {
    width: 48px !important;
    height: 48px !important;
}

/* Bouton Play principal légèrement plus grand */
.films-featured-card:nth-child(1) .films-featured-play {
    width: 84px !important;
    height: 84px !important;
    font-size: 21px !important;
}

/* Bouton agrandir cohérent */
.films-featured-fullscreen {
    right: 16px !important;
    bottom: 16px !important;
}

/* Séparation élégante entre le premier et les deux suivants */
.films-featured-card:nth-child(2)::before {
    position: absolute;
    top: calc(-1 * clamp(18px, 2vw, 32px));
    left: 0;
    width: calc(200% + clamp(22px, 3vw, 44px));
    height: 1px;
    content: "";
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(204, 170, 102, 0.25),
        transparent
    );
}

/* ==========================================================
   TABLETTE
========================================================== */

@media (max-width: 980px) {
    .films-featured-grid {
        grid-template-columns: 1fr !important;
        gap: 48px !important;
        max-width: 820px !important;
        margin: 0 auto !important;
    }

    .films-featured-card:nth-child(1),
    .films-featured-card:nth-child(2),
    .films-featured-card:nth-child(3) {
        grid-column: auto !important;
    }

    .films-featured-card:nth-child(1) .films-featured-video-wrap,
    .films-featured-card:nth-child(2) .films-featured-video-wrap,
    .films-featured-card:nth-child(3) .films-featured-video-wrap {
        aspect-ratio: 16 / 9 !important;
    }

    .films-featured-card:nth-child(2)::before {
        display: none !important;
    }

    .films-featured-content {
        min-height: auto !important;
    }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 640px) {
    .films-featured-grid {
        gap: 42px !important;
    }

    .films-featured-card:nth-child(1) .films-featured-video-wrap,
    .films-featured-card:nth-child(2) .films-featured-video-wrap,
    .films-featured-card:nth-child(3) .films-featured-video-wrap {
        aspect-ratio: 4 / 3 !important;
    }

    .films-featured-card:nth-child(1) .films-featured-play,
    .films-featured-play {
        width: 62px !important;
        height: 62px !important;
        font-size: 17px !important;
    }

    .films-featured-card:nth-child(1) .films-featured-number,
    .films-featured-number {
        top: 12px !important;
        left: 12px !important;
        width: 38px !important;
        height: 38px !important;
    }

    .films-featured-content,
    .films-featured-card:nth-child(1) .films-featured-content {
        padding: 20px 2px 0 !important;
    }

    .films-featured-card:nth-child(1) .films-featured-content h3,
    .films-featured-card:nth-child(2) .films-featured-content h3,
    .films-featured-card:nth-child(3) .films-featured-content h3 {
        max-width: 100% !important;
        font-size: clamp(22px, 7vw, 30px) !important;
    }
}
