/*
   La navigation du site utilise un sélecteur global `header` dans styles.css.
   On neutralise explicitement ces règles pour le header éditorial de l'article.
   Le header principal inclus par header.php reste inchangé.
*/
.news-header {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0 auto;
    padding: 28px 0 55px;
    display: block;
    align-items: initial;
    justify-content: initial;
    z-index: auto;
    overflow: visible;
    background: transparent;
}

.news-header::before,
.news-header::after {
    content: none;
    display: none;
}

.news-header > * {
    position: static;
    z-index: auto;
}

/* =========================================================
   ACTUALITÉ
   Mise en page éditoriale / article
   ========================================================= */

.news-page {
    --news-bg: #080909;
    --news-text: #f3f3ef;
    --news-muted: #999e9a;
    --news-soft: #c6cac7;
    --news-line: rgba(255,255,255,.11);
    --news-accent: #25e0d5;

    min-height: 100vh;
    padding: 105px 24px 100px;

    background: var(--news-bg);
    color: var(--news-text);
}


/* =========================================================
   ARTICLE
   ========================================================= */

.news-article {
    width: min(1080px, 100%);
    margin: 0 auto;
}


/* =========================================================
   RETOUR AUX ACTUALITÉS
   ========================================================= */

.news-back {
    width: min(1080px, 100%);
    margin: 0 auto;
    padding: 22px 0 0;
}

.news-back a {
    color: #777d79;
    font-size: 9px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color .25s ease;
}

.news-back a:hover {
    color: var(--news-accent, #25e0d5);
}

/* =========================================================
   EN-TÊTE ÉDITORIAL
   ========================================================= */

.news-header {
    max-width: 850px;
    margin: 0 auto;
    padding: 28px 0 55px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-bottom: 14px;

    border-bottom: 1px solid rgba(37, 224, 213, 0.24);

    color: #777d79;

    font-size: 8px;
    font-weight: 500;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.news-meta span {
    color: var(--news-accent);
}

.news-header h1 {
    margin: 48px 0 25px;

    font-size: clamp(55px, 9vw, 115px);
    line-height: .86;
    letter-spacing: -.065em;
    font-weight: 700;
}

.news-header h1 span {
    color: transparent;
    -webkit-text-stroke: 1px rgba(243,243,239,.72);
}

.news-intro {
    max-width: 690px;
    margin: 0;

    color: var(--news-soft);

    font-size: 17px;
    line-height: 1.65;
}


/* =========================================================
   IMAGE D'OUVERTURE
   ========================================================= */

.news-hero-image {
    width: 100%;
    margin: 0 0 65px;
}

.news-hero-image img {
    display: block;

    width: 100%;
    max-height: 690px;

    object-fit: cover;
}


/* =========================================================
   CORPS DE L'ARTICLE
   ========================================================= */

.news-content {
    width: min(700px, 100%);
    margin: 0 auto;
}

.news-content p {
    margin: 0 0 25px;

    color: var(--news-soft);

    font-size: 15px;
    line-height: 1.8;
}

.news-content .news-lead {
    margin-bottom: 35px;

    color: var(--news-soft);

    font-size: 17px;
    line-height: 1.65;
}

.news-content strong {
    color: var(--news-text);
    font-weight: 600;
}

.news-content em {
    color: var(--news-text);
}

.news-content h2 {
    margin: 70px 0 24px;

    font-size: clamp(28px, 4vw, 43px);
    line-height: 1;
    letter-spacing: -.045em;
}


/* =========================================================
   AFFICHE
   ========================================================= */

.news-poster {
    width: min(390px, 75%);
    margin: 65px auto 75px;
}

.news-poster img {
    display: block;

    width: 100%;
    height: auto;
}

.news-poster figcaption {
    margin-top: 12px;

    color: #777d79;

    font-size: 9px;
    line-height: 1.5;
    letter-spacing: .4px;
}

.news-poster figcaption span {
    color: var(--news-accent);
    text-transform: uppercase;
}


/* =========================================================
   GALERIE
   ========================================================= */

.news-gallery-intro {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 35px;

    margin: 75px 0 25px;

    padding-top: 18px;

    border-top: 1px solid var(--news-line);
}

.news-gallery-intro > span {
    color: var(--news-accent);

    font-size: 8px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.news-gallery-intro p {
    margin: 0;

    color: #8e9490;

    font-size: 12px;
    line-height: 1.55;
}

.news-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;

    width: 100%;
}

.news-gallery figure {
    margin: 0;

    overflow: hidden;

    background: #111313;
}

.news-gallery figure img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .45s ease;
}

.news-gallery figure:hover img {
    transform: scale(1.025);
}

.news-gallery figure:not(.gallery-large):not(.gallery-wide) {
    aspect-ratio: 4 / 3;
}

.news-gallery .gallery-large {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
}

.news-gallery .gallery-wide {
    grid-column: span 2;
    aspect-ratio: 2.15 / 1;
}


/* =========================================================
   GRAND REX
   ========================================================= */

.news-break {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: center;

    width: min(900px, 100%);
    margin: 85px auto 95px;
    padding-top: 30px;

    border-top: 1px solid var(--news-line);
}

.news-grandrex {
    margin: 0;
}

.news-grandrex img {
    display: block;

    width: 100%;
    max-height: 520px;

    object-fit: contain;
}

.news-break-text {
    padding-right: 20px;
}

.news-break-text > span {
    display: block;

    margin-bottom: 18px;

    color: var(--news-accent);

    font-size: 8px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.news-break-text p {
    margin: 0;

    font-size: 14px;
    line-height: 1.75;
}


/* =========================================================
   SORTIE CINÉMA
   ========================================================= */

.news-release {
    margin: 90px 0 85px;
    padding: 30px 0 35px;

    border-top: 1px solid var(--news-accent);
    border-bottom: 1px solid var(--news-line);
}

.release-label {
    margin-bottom: 20px;

    color: var(--news-accent);

    font-size: 8px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.news-release h2 {
    margin: 0 0 25px;

    font-size: clamp(50px, 8vw, 88px);
    line-height: .84;
    letter-spacing: -.065em;
}

.news-release h2 span {
    color: transparent;
    -webkit-text-stroke: 1px rgba(243,243,239,.7);
}

.news-release p {
    max-width: 560px;
}

.news-release .release-details {
    margin-top: 35px;

    color: #777d79;

    font-size: 10px;
    line-height: 1.7;
    letter-spacing: .3px;
}


/* =========================================================
   SIGNATURE
   ========================================================= */

.news-signature {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;

    margin-top: 70px;
    padding-top: 18px;

    border-top: 1px solid var(--news-line);
}

.news-signature .signature-name {
    color: var(--news-text);
    font-size: 8px;
    letter-spacing: 1.8px;
}

.news-signature span {
    color: var(--news-text);

    font-size: 8px;
    letter-spacing: 1.8px;
}

.news-signature small {
    color: #777d79;

    font-size: 8px;
    letter-spacing: 1px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 760px) {

    .news-page {
        padding: 88px 20px 75px;
    }

    .news-back {
        padding-top: 18px;
    }

    .news-header {
        padding: 24px 0 40px;
    }

    .news-meta {
        font-size: 7px;
    }

    .news-meta time {
        text-align: right;
    }

    .news-header h1 {
        margin: 40px 0 22px;

        font-size: 18vw;
    }

    .news-header h1 span {
        -webkit-text-stroke-width: .7px;
    }

    .news-intro {
        font-size: 15px;
    }

    .news-hero-image {
        margin-bottom: 45px;
    }

    .news-content p {
        font-size: 14px;
        line-height: 1.75;
    }

    .news-content .news-lead {
        font-size: 16px;
    }

    .news-content h2 {
        margin-top: 55px;
    }

    .news-poster {
        width: min(330px, 85%);
        margin: 50px auto 60px;
    }

    .news-gallery-intro {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 60px;
    }

    .news-gallery {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .news-gallery figure:not(.gallery-large):not(.gallery-wide),
    .news-gallery .gallery-large,
    .news-gallery .gallery-wide {
        grid-column: span 1;
        aspect-ratio: 4 / 3;
    }

    .news-break {
        grid-template-columns: 1fr;
        gap: 25px;

        margin: 65px auto 70px;
    }

    .news-break-text {
        padding-right: 0;
    }

    .news-release {
        margin-top: 65px;
        margin-bottom: 65px;
    }

    .news-signature {
        display: block;
    }

    .news-signature small {
        display: block;
        margin-top: 8px;
    }
}


/* =========================================================
   VISIONNEUSE PHOTO — PAGE ACTUALITÉ KRAKEN
   Styles isolés pour ne pas interférer avec les autres pages.
   ========================================================= */

.news-article .news-hero-image img,
.news-article .news-poster img,
.news-article .news-gallery img,
.news-article .news-grandrex img {
    cursor: pointer;
}

#news-lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 70px 90px 55px;
    background: rgba(0, 0, 0, .96);
}

#news-lightbox.is-open {
    display: flex;
}

#news-lightbox .news-lightbox-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    min-width: 0;
    min-height: 0;
}

#news-lightbox .news-lightbox-frame img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 125px);
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: default;
}

#news-lightbox .news-lightbox-frame figcaption {
    margin-top: 14px;
    color: #999e9a;
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: .8px;
    text-align: center;
}

#news-lightbox .news-lightbox-close,
#news-lightbox .news-lightbox-prev,
#news-lightbox .news-lightbox-next {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 3px;
    background: rgba(10,12,11,.7);
    color: white;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

#news-lightbox .news-lightbox-close:hover,
#news-lightbox .news-lightbox-prev:hover,
#news-lightbox .news-lightbox-next:hover {
    color: #25e0d5;
    border-color: #25e0d5;
}

#news-lightbox .news-lightbox-close {
    top: 22px;
    right: 25px;
    width: 44px;
    height: 44px;
    font-size: 32px;
    line-height: 1;
}

#news-lightbox .news-lightbox-prev,
#news-lightbox .news-lightbox-next {
    top: 50%;
    width: 46px;
    height: 56px;
    font-size: 22px;
    transform: translateY(-50%);
}

#news-lightbox .news-lightbox-prev { left: 22px; }
#news-lightbox .news-lightbox-next { right: 22px; }

body.news-lightbox-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    #news-lightbox {
        padding: 65px 12px 35px;
    }

    #news-lightbox .news-lightbox-frame img {
        max-width: 100%;
        max-height: calc(100vh - 125px);
    }

    #news-lightbox .news-lightbox-prev,
    #news-lightbox .news-lightbox-next {
        top: auto;
        bottom: 12px;
        width: 44px;
        height: 42px;
        transform: none;
    }

    #news-lightbox .news-lightbox-prev { left: calc(50% - 52px); }
    #news-lightbox .news-lightbox-next { right: calc(50% - 52px); }

    #news-lightbox .news-lightbox-close {
        top: 12px;
        right: 12px;
    }
}
