/* ============================================================
   BARGHACH PICTURES — Accueil 2 (essai)
   ------------------------------------------------------------
   Mise en page reprise de l'accueil de StudioCanal : diaporama
   + vignettes, actualités sur fond anthracite, bandeau catalogue,
   rangées d'affiches qui défilent, réseaux. Contenus Barghach,
   images remplacées par des cases noires (comme le Catalogue).
   En-tête et pied de page : ceux du site, inchangés.
   ============================================================ */

.a2 {
    --a2-rose: #ed3655;
    --a2-anthracite: #2c3037;
    --a2-anthracite-2: #3a3f47;
    --a2-texte: #1c1c1c;
    --a2-marge: 50px;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--a2-texte);
}

/* Case noire « image à venir » : le fond du Catalogue, sans les
   coins arrondis ni l'ombre, à plat comme les affiches StudioCanal. */
.a2-noir,
.a2-diapo,
.a2-vignette,
.a2-actu-une-fond,
.a2-actu-image,
.a2-explorer-image {
    background:
        repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 0 12px, transparent 12px 26px) left / 13px 100% no-repeat,
        repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 0 12px, transparent 12px 26px) right / 13px 100% no-repeat,
        linear-gradient(160deg, #17171b 0%, #0b0b0d 100%);
}

/* Bouton rose, coins en biais (8 px / 0) comme le modèle */
.a2-bouton {
    display: inline-block;
    min-width: 150px;
    padding: 10px 26px;
    background: var(--a2-rose);
    border: 2px solid var(--a2-rose);
    border-radius: 8px 0;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.25s ease, color 0.25s ease;
}
.a2-bouton:hover { background: transparent; color: var(--a2-rose); }
.a2-bouton--contour { background: transparent; color: #ffffff; }
.a2-bouton--contour:hover { background: var(--a2-rose); color: #ffffff; }

/* ============================================================
   DIAPORAMA
   ============================================================ */
.a2-diapos {
    position: relative;
    height: 810px;
    overflow: hidden;
    background: #0b0b0d;
}
.a2-diapo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s;
}
.a2-diapo.actif { opacity: 1; visibility: visible; }
.a2-diapo-logo {
    position: absolute;
    right: 9%;
    top: 50%;
    width: 300px;
    height: auto;
    transform: translateY(-46%);
    opacity: 0.08;
}
.a2-diapo-texte {
    position: relative;
    text-align: center;
    color: #ffffff;
    padding-top: 60px;
}
.a2-diapo-titre {
    font-size: 40px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 0.01em;
}
.a2-diapo-phrase { margin: 14px 0 22px; font-size: 14px; }

.a2-fleche {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-top: 10px;
    background: rgba(60, 60, 60, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.a2-fleche:hover { background: var(--a2-rose); }
/* 16/11 : flèches transparentes — seul le chevron blanc reste,
   lisible grâce à son ombre ; il passe au rose au survol. */
.a2-diapos .a2-fleche {
    background: transparent;
    border: 0;
    font-size: 44px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 14px rgba(0, 0, 0, 0.5);
}
.a2-diapos .a2-fleche:hover { background: transparent; color: var(--a2-rose); }
.a2-fleche--prec { left: 12px; }
.a2-fleche--suiv { right: 12px; }

.a2-vignettes {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    padding: 0 var(--a2-marge);
    margin-top: -76px;
    position: relative;
    z-index: 2;
}
.a2-vignette {
    display: flex;
    align-items: flex-end;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 12px 16px;
    border: 3px solid transparent;
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.25s ease;
}
.a2-vignette:hover { border-color: rgba(237, 54, 85, 0.5); }
.a2-vignette.actif { border-color: var(--a2-rose); }

/* Diapos avec une vraie image ou la vidéo de l'accueil.
   Pas de voile sur les photos : c'est l'ombre sous le texte qui le
   rend lisible. */
.a2-diapo-fond {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.a2-diapo--media .a2-diapo-texte {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.7), 0 0 34px rgba(0, 0, 0, 0.5);
}
.a2-diapo--media .a2-diapo-phrase { font-size: 17px; font-weight: 600; }
.a2-diapo--media .a2-bouton { text-shadow: none; }

/* Voile de la vidéo : identique à celui de l'accueil (.hero-overlay),
   uniquement sur la 1re diapo, à sa demande. */
.a2-voile {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

/* 1re diapo : même titre et même phrase que l'accueil actuel
   (Garamond, grandes capitales fines, phrase en italique). */
.a2 .a2-titre-accueil {
    font-family: var(--font-main);
    font-size: clamp(2.8rem, 8vw, 6.5rem);
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0.04em;
    line-height: 1.05;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.a2 .a2-slogan-accueil {
    margin: 18px 0 26px;
    font-family: var(--font-main);
    font-style: italic;
    font-weight: normal;
    font-size: clamp(1rem, 2.2vw, 1.5rem);
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

/* Heartless : illustration sur fond blanc, entière, à gauche ;
   le texte passe en noir, à droite, dans le blanc. */
.a2-diapo--clair { background: #ffffff; }
.a2-diapo--clair .a2-diapo-fond {
    top: 86px;
    left: 14%;           /* centrée : 14 % de marge de chaque côté */
    width: 72%;
    height: calc(100% - 86px);
    object-fit: contain;
    object-position: center;
}
.a2-diapo--clair .a2-diapo-texte {
    /* Au milieu, comme sur les autres diapos ; en noir sur le blanc */
    color: #111111;
    text-shadow: 0 0 6px #ffffff, 0 0 12px #ffffff, 0 0 22px #ffffff, 0 0 34px #ffffff;
}
.a2-diapo--clair .a2-diapo-phrase { color: #111111; }
.a2-diapo--clair .a2-diapo-phrase { color: #3a3a3a; }

/* En-tête au-dessus de la diapo blanche : sans filet ni ombre,
   il se fond dans le blanc de l'illustration. */
.site-header.a2-entete-clair {
    border-bottom-color: transparent;
    box-shadow: none;
}

/* Bouton son de la vidéo (même bouton que l'accueil), remonté
   au-dessus des vignettes qui mordent sur le bas du diaporama. */
.a2-son { bottom: 40px; right: 70px; z-index: 3; }

/* Affiche posée à droite de la diapo, comme un livre (Zanpai) */
.a2-diapo-livre {
    position: absolute;
    right: 9%;
    top: 50%;
    height: 66%;
    width: auto;
    transform: translateY(-40%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.a2-vignette--image {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 0 14px rgba(0, 0, 0, 0.6);
}

/* ============================================================
   DERNIÈRES ACTUALITÉS
   ============================================================ */
.a2-actus {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    margin: 56px var(--a2-marge) 0;
    background: var(--a2-anthracite);
    min-height: 640px;
}
.a2-actu-une {
    position: relative;
    display: flex;
    align-items: flex-end;
}
.a2-actu-une-fond {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.a2-actu-une-fond img { width: 140px; height: auto; opacity: 0.12; }
/* Photo de l'actualité à la une : pas de voile, l'ombre est sur le texte. */
.a2-actu-une-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}
/* Avec l'affiche à droite, le texte reste dans le noir à gauche */
.a2-actu-une:has(.a2-actu-une-photo--affiche) .a2-actu-une-texte {
    max-width: 39%;
    padding-top: 44px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: space-between;   /* l'image en haut, le texte tout en bas */
}
.a2-actu-une-bas .a2-actu-une-resume { margin-bottom: 0; }
/* Petit carré au-dessus du titre, sur le noir de gauche */
.a2-actu-une-carre {
    display: block;
    width: 280px;         /* l'image entière : son visage et « Inside Zanpai » */
    max-width: 100%;
    height: auto;
    margin-bottom: 26px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}
.a2-actu-une-photo--affiche {
    object-fit: contain;
    object-position: right center;
    background: #0b0b0d;
}
.a2-actu-une-texte { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 14px rgba(0, 0, 0, 0.75), 0 0 36px rgba(0, 0, 0, 0.55); }
.a2-actu-une-texte .a2-bouton { text-shadow: none; }

/* Vignettes des actualités avec image */
.a2-actu-image--photo {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.a2-actu-image--logo {
    background-color: #ffffff !important;
    background-size: 84% auto !important;
}
/* Logo Barghach blanc sur fond noir */
.a2-actu-image--logo-noir {
    background-color: #0b0b0d !important;
    background-size: 62% auto !important;
}

/* Bandeau « Explorer le catalogue » : l'image Barghach Pictures
   façon Hollywood, cadrée sur les lettres. */
.a2-explorer-image--photo {
    background-size: cover !important;
    background-position: center 60.5% !important;
    background-repeat: no-repeat !important;
}
.a2-actu-une-texte { position: relative; padding: 0 50px 48px; color: #ffffff; max-width: 760px; }
.a2-actu-une-titre { font-size: 28px; font-weight: 600; line-height: 1.25; }
.a2-actu-une-resume { margin: 18px 0 22px; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.85); }

.a2-actus-colonne {
    display: flex;
    flex-direction: column;
    padding: 24px 14px 30px 26px;
    color: #ffffff;
}
.a2-actus-titre {
    font-size: 30px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.a2-actus-liste { list-style: none; display: grid; gap: 14px; }
.a2-actu {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 150px;
    background: var(--a2-anthracite-2);
    transition: background-color 0.2s ease;
}
.a2-actu:hover { background: #474c55; }
.a2-actu--attente:hover { background: var(--a2-anthracite-2); }
.a2-actu--attente .a2-actu-titre { color: rgba(255, 255, 255, 0.7); }
.a2-actu-texte {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 22px;
}
.a2-actu-titre { font-size: 17px; font-weight: 600; text-transform: uppercase; line-height: 1.3; }
.a2-actu-date { margin-top: 6px; font-size: 11px; font-style: italic; color: rgba(255, 255, 255, 0.75); }
.a2-actus-tout { align-self: center; margin-top: 18px; }

/* ============================================================
   EXPLORER LE CATALOGUE
   ============================================================ */
.a2-explorer {
    display: grid;
    grid-template-columns: 30% 70%;
    height: 176px;
    margin: 28px var(--a2-marge) 0;
}
.a2-explorer-texte {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 0 36px;
    background: var(--a2-anthracite);
    color: #ffffff;
}
.a2-explorer-titre { font-size: 26px; font-weight: 300; text-transform: uppercase; line-height: 1.15; }
.a2-explorer-fleche { color: var(--a2-rose); font-size: 26px; transition: transform 0.3s ease; }
.a2-explorer:hover .a2-explorer-fleche { transform: translateX(8px); }
.a2-explorer-image { position: relative; display: flex; align-items: center; justify-content: center; }
.a2-explorer-image img { width: 90px; height: auto; opacity: 0.14; }
.a2-explorer-legende {
    position: absolute;
    left: 14px;
    bottom: 14px;
    font-size: 11px;
    line-height: 1.4;
    color: #ffffff;
}

/* ============================================================
   RANGÉES D'AFFICHES
   ============================================================ */
.a2-rangee { padding: 30px 0 0 var(--a2-marge); }
.a2-rangee-titre { font-size: 22px; font-weight: 600; margin-bottom: 14px; }
.a2-rail { position: relative; }
.a2-rail-liste {
    list-style: none;
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-right: var(--a2-marge);
}
.a2-rail-liste::-webkit-scrollbar { display: none; }
.a2-rail-liste li { flex: 0 0 166px; }

/* L'affiche : case noire du Catalogue, à plat et aux angles droits */
.a2-affiche {
    width: 166px;
    height: 250px;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
    padding: 18px 12px;
}
.a2-affiche:hover { transform: none; box-shadow: none; }
.a2-affiche .fi-soon-logo { width: 46px; margin-bottom: 12px; }
.a2-affiche-titre {
    position: relative;
    z-index: 2;
    display: block;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}
.a2 .a2-affiche .fi-soon-note { font-family: inherit; font-size: 11px; margin-top: 6px; }
a.a2-affiche { border: 1px solid rgba(255, 255, 255, 0.18); }

/* Affiche avec une vraie image : la photo remplit la case, le titre
   en bas, lisible grâce à l'ombre sous le texte (pas de voile). */
.a2-affiche--photo {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 166px;
    height: 250px;
    padding: 14px 12px;
    background-color: #111111;
    background-size: cover;
    background-repeat: no-repeat;
    border: 1px solid transparent;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.75);
    transition: border-color 0.2s ease;
}
.a2-affiche--photo:hover { border-color: var(--a2-rose); }
.a2-affiche-sous {
    display: block;
    margin-top: 4px;
    color: #ffffff;
    font-size: 11px;
    font-style: italic;
}
a.a2-affiche:hover { border-color: var(--a2-rose); }

.a2-rail-fleche {
    position: absolute;
    right: 0;
    top: 50%;
    width: 30px;
    height: 44px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
    border: 0;
    font-size: 30px;
    line-height: 1;
    color: #111111;
    cursor: pointer;
}
.a2-rail-fleche:hover { color: var(--a2-rose); }

/* ---- Rangées façon « New releases » de gaumont.com (16/11) ----
   Titre précédé d'un trait rose, bouton « Tout voir » à droite ;
   6 affiches sur toute la largeur, au format Gaumont (261 × 354),
   le nom centré sous chaque affiche. Au-delà de 6, la flèche fait défiler. */
.a2-rangee { padding: 56px var(--a2-marge) 0; }
.a2-rangee-tete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}
.a2-rangee-titre {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}
.a2-rangee-titre::before {
    content: "";
    width: 7px;
    height: 26px;
    background: var(--a2-rose);
}
.a2-rangee-bouton { padding: 12px 20px; font-size: 13px; white-space: nowrap; }
.a2-rail-liste { gap: 26px; padding-right: 0; }
.a2-rail-liste li { flex: 0 0 calc((100% - 5 * 26px) / 6); min-width: 0; }
.a2-rail-liste .a2-affiche,
.a2-rail-liste .a2-affiche--photo {
    width: 100%;
    height: auto;
    aspect-ratio: 261 / 354;
}
.a2-rail-liste .a2-affiche .fi-soon-logo { width: 64px; }
.a2-rail-liste .a2-affiche .fi-soon-note { font-size: 13px; }
.a2-affiche-nom {
    margin-top: 14px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #111111;
    line-height: 1.3;
}
.a2-affiche-date {
    margin-top: 3px;
    text-align: center;
    font-size: 13px;
    font-style: italic;
    color: #666666;
}
/* La flèche reste au milieu de l'affiche, pas des noms dessous */
.a2-rangee .a2-rail-fleche { top: 0; transform: none; margin-top: calc((100% - 5 * 26px) / 6 * 354 / 261 / 2 - 22px); }

/* Actualités placées en bas de page (16/11) : de l'air avant le pied de page. */
.a2-actus:last-child { margin-bottom: 80px; }
/* Dernière rangée : un peu d'air avant le pied de page. */
.a2-rangee:last-of-type { padding-bottom: 80px; }

/* ============================================================
   ÉCRANS PLUS ÉTROITS — la priorité reste au PC
   ============================================================ */
@media (max-width: 1100px) {
    .a2 { --a2-marge: 24px; }
    .a2-vignettes { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
    .a2-actus { grid-template-columns: 1fr; }
    .a2-actu-une { min-height: 420px; }
}
@media (max-width: 700px) {
    .a2-diapos { height: 460px; }
    .a2-rangee { padding-top: 40px; }
    .a2-rangee-tete { margin-bottom: 20px; }
    .a2-rangee-titre { font-size: 19px; }
    .a2-rangee-titre::before { height: 20px; width: 5px; }
    .a2-rangee-bouton { padding: 9px 14px; font-size: 12px; }
    .a2-rail-liste { gap: 14px; }
    .a2-rail-liste li { flex-basis: 40%; }
    .a2-affiche-nom { font-size: 14px; margin-top: 10px; }
    .a2-rangee .a2-rail-fleche { margin-top: calc(40% * 354 / 261 / 2 - 22px); }
    .a2-diapo-titre { font-size: 30px; }
    .a2-vignettes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .a2-explorer { grid-template-columns: 1fr; height: auto; }
    .a2-explorer-texte { padding: 26px 22px; }
    .a2-explorer-image { height: 140px; }
    .a2-actu { grid-template-columns: 100px minmax(0, 1fr); min-height: 110px; }
}
@media (prefers-reduced-motion: reduce) {
    .a2-diapo { transition: none; }
}
