/*
Theme Name: LaCellule
Author:Comix2000
Author URI: https://www.zerozoro.com/
Version: 1.0
*/

/*------ Fonts ------*/
html,
body {
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 400;
    font-style: normal;
    padding: 0;
    margin: 0;
}

body.no-scroll {
    overflow: hidden;
}

h1,
h2,
h3,
h4 {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

p {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

main {
    padding-top: 7vw !important;
}

/*-------HEADER-----------*/

#logo {
    display: block;
    background: url("imgs/LC_prod_black.png") no-repeat center center;
    ;
    background-repeat: no-repeat;
    background-size: contain;
    width: 5vw;
    height: 5vw;
    aspect-ratio: 3 / 1;
    margin: 0.5vw;
}

.site-header {
    /*    margin-bottom: 5vh;*/
    position: fixed;
    background: white;
    z-index: 9999999999;
    top: 0;
    transition: transform 0.3s ease-in-out;
}

.site-header.hidden {
    transform: translateY(-100%);
}

.center-logo {
    position: fixed;
    margin: auto;
    top: 3vw;
    /* position finale dans le header */
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.center-logo img {
    width: 15vw;
    height: auto;
}

/* Quand on scroll */
.center-logo.to-top {
    transform: translate(-50%, -150%);
    /* sort vers le haut */
    opacity: 0;
}

/* Header masqué par défaut sur la homepage */
body.home .site-header {
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
}

body.home .site-header.visible {
    transform: translateY(0);
}



/* Grille principale */
.site-header.film-page {
    display: grid;
    grid-template-columns: repeat(5, 18.3vw);
    gap: 1.4vw;
    padding: 0 1.4vw;
    align-items: center;
}

.site-header.film-page nav {
    display: contents;
}

.menu-items-on-grid {
    display: contents;
}

.menu-items-on-grid li:nth-child(1) {
    grid-column: 2;
}

.menu-items-on-grid li:nth-child(2) {
    grid-column: 3;
}

.menu-items-on-grid li:nth-child(3) {
    grid-column: 4;
}

.menu-items-on-grid li:nth-child(4) {
    grid-column: 5;
}

.menu-items-on-grid li {
    display: flex;
    justify-content: flex-start;
    /* ou center si tu veux centrer */
    align-items: center;
}

.menu-items-on-grid li a {
    text-decoration: none;
    font-weight: bold;
    color: #000;
    text-transform: uppercase;
    font-size: 0.75em;

}

/* Burger de base */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100000;
    position: absolute;
    right: 5vw;
}

.burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: black;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* État "open" → transforme en croix */
.burger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Drawer menu */
.menu-drawer {
    position: fixed;
    top: -100vh;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    transition: top 0.4s ease-in-out;
    z-index: 99999;
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

ul.drawer-menu {
    margin-block-start: 0;
    margin-block-end: 0;
    padding-inline-start: 0;
}

.menu-drawer.open {
    top: 0;
}

.drawer-menu li {
    margin: 1.2rem 0;
    list-style: none;
}

.drawer-menu li a {
    text-decoration: none;
    font-size: 1.5rem;
    color: black;
    font-weight: bold;
    text-transform: uppercase;
}

.current-menu-item a {
    border: 1px solid;
    border-radius: 20vw;
    padding: 0.4em 1em 0.3em;
}

/*---------HOMEPAGE----------*/
main.homepage {}

.intro-text {
    margin-left: 15vw;
    margin-right: 15vw;
    margin-top: 11vw;
    margin-bottom: 6vw;
}

.homepage h3 {
    font-size: 1em;
    padding: 0.2em 0.4em !important;
    border-top: 1px solid;
    border-bottom: 1px solid;
    /*width: 97.2vw;*/
    margin-left: 1.4vw !important;
    margin-right: 1.4vw !important;
    margin-bottom: 3vw !important;
    font-weight: 100;
}

.intro-text p {
    font-size: 3em;
    text-align: center;
}

.intro-text p a {
    border: 2px solid;
    padding: 0em 0.3em;
    color: black;
    border-radius: 2em;
    text-decoration: none;
    transition: 0.5s all;
    white-space: nowrap;
}

.intro-text p a:hover {
    color: white;
    background: black;
    border: 2px solid #000;
}

.news-slider-wrapper {
    overflow: hidden;
    position: relative;
}

.news-slider-container {
    width: 100%;
    overflow: hidden;
}

.news-slider {
    display: flex;
    transition: transform 0.5s ease;
    padding: 0 1.4vw;
}

.news-slide {
    width: 40vw;
    flex-shrink: 0;
    position: relative;
    display: block;
    color: white;
    text-decoration: none;
    padding: 0 0.7vw 0 0;
}

.news-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale();
}

.news-overlay {
    position: absolute;
    top: 0;
    left: 1.5em;
    z-index: 1;
    height: 100%;
    width: 100%;
}

.news-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    position: absolute;
    top: 1em;
    width: 100%;
}

.news-title {
    font-size: 0.8rem;
    position: absolute;
    text-transform: uppercase;
    bottom: 1em;
}

/* FLECHES SLIDER */

.news-slider-wrapper {
  position: relative;
  overflow: hidden;
}

.news-arrow {
  position: absolute;
  top: 50%;
  width: 2vw;
  height: 2vw;
  background: transparent;
  border: none;
  cursor: pointer;
  transform: translateY(-50%);
  z-index: 50;
}

.news-arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-top: 1px solid white;
  border-left: 1px solid white;
  transform: translate(-50%, -50%) rotate(45deg) !important;
  transition: opacity 0.3s;
  opacity: 0.9;
}

.news-arrow:hover::before {
  opacity: 0.6;
}

.news-prev {
  left: 2vw;
}

.news-prev::before {
transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.news-next {
  right: 2vw;
}

.news-next::before {
transform: translate(-50%, -50%) rotate(135deg) !important;
}

/* taille plus lisible sur mobile ou petits écrans */
@media (max-width: 1200px) {
  .news-arrow {
    width: 3vw;
    height: 3vw;
  }
}




/*------ FILMOGRAPHIES ------*/
.page-template-page-filmographie .container {
    min-height: 75vh;
}

.page-template-page-projets-a-venir .container {
    min-height: 75vh;
}

.film-page {
    display: grid;
    grid-template-columns: repeat(5, 18.3vw);
    /* 5 colonnes */
    gap: 1.4vw;
    padding: 0 1.4vw;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Colonne 1 : filtres */
.film-filters {
    grid-column: 1 / 2;
}

.film-filters ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.film-filters li {
    padding-top: 0.4em;
    padding-bottom: 0.4em;
    border-bottom: 1px solid;
}

.film-filters a {
    text-decoration: none;
    color: black;
    font-size: 1rem;
    position: relative;
    opacity: 1;
}


.film-page {
    display: grid;
    grid-template-columns: repeat(5, 18.3vw);
    gap: 1.4vw;
    padding: 0 1.4vw;
    max-width: 100vw;
    box-sizing: border-box;
    align-items: start;
}

/* Aside fixe */
.film-filters {
    position: fixed;
    top: 7vw;
    left: 1.4vw;
    /* le même que le padding gauche de .film-page */
    width: 18.3vw;
    /* largeur de ta colonne */
    box-sizing: border-box;
    border-top: 1px solid;
}

/* Décalage de la liste de films pour laisser la place à l'aside */
.film-list {
    grid-column: 2 / 6;
    display: contents;
}


.film-filters a.active::before {
    /*  content: "";
  position: absolute;
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: black;
  border-radius: 50%;
    */

}

.film-filters a.active {
    opacity: 0.5;
}

.blank-category {
    width: 97.2vw;
    text-align: center;
    font-size: 2em;
}

/* Colonne 2 à 5 : liste des films */
.film-list {
    grid-column: 2 / 6;
    display: contents;
}

.film-item {
    display: contents;
}

.film-title-row {
    display: contents;
    /* Comme si le wrapper n'existait pas */
}

/* Image sur colonnes 2–3 */
/*
.film-image {
    grid-column: 2 / 4;
    display: block;
    width: 100%;
}

.film-image img {
    width: 100%;
    height: auto;
    display: block;
}
*/
.film-image-wrapper {
    grid-column: 2 / 4;
    position: relative;
    width: 100%;
    aspect-ratio: 1280 / 695;
    overflow: hidden;
    display: block;
}

.film-image-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Titre sur colonnes 4–5 */
.film-title-wrapper {
    grid-column: 4 / 5;
    align-self: start;
}

.film-title {
    font-size: 1.4rem;
    font-weight: 500;
    margin: 0;
    padding-top: 0.3em !important;
}

.film-title a {
    text-decoration: none;
    color: black;
}

.film-director {
    grid-column: 5 / 6;
    align-self: start;
    font-size: 1.4rem;
    color: black;
    text-align: left;
    padding-top: 0.3em;
}

.separators {
    border-top: 1px solid #000 !important;
}

/* FILTER ANIMS */


.film-image-wrapper,
.film-title-wrapper,
.film-director {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.film-image-wrapper.appear,
.film-title-wrapper.appear,
.film-director.appear {
    opacity: 1;
    transform: translateY(0);
}

.film-filters a.active::after {
    content: "×";
    /* symbole croix */
    font-size: 1.2rem;
    margin-left: 0.5em;
    color: black;
    float: right;
}



/*-----------------SINGLE-FILM------------*/

.film-template-default .container {
    min-height: 75vh;
}


.film-page-grid {
    display: grid;
    grid-template-columns: repeat(5, 18.3vw);
    gap: 1.4vw;
    padding: 2vw 1.4vw;
}

/* ===== Colonne 1 : titre, réal, trailer ===== */
.film-title-col {
    grid-column: span 2;
    display: grid;
    grid-template-columns: subgrid;
    grid-column: 1 / span 2;


}

.film-single-title {
    grid-column: span 2;
    font-size: 4em;
    line-height: 0.8em;
    font-weight: normal;

}

.trailer-real-wrap {
    grid-column: 2 / span 1;
    font-size: 1.4rem;
    line-height: 0.8em;
    align-content: flex-end;
}

.film-single-director {

    font-size: 1.4rem;
    line-height: 0.8em;
    margin-top: 1vw !important;

}

.film-trailer {
    margin-top: 0.4em;
}

.film-trailer video {
    width: 100%;
}

/* ===== Galerie en slider (colonne 2–3) ===== */


.film-gallery-col {
    grid-column: span 3;
    position: relative;
    overflow: hidden;

    aspect-ratio: 1280 / 695;
    height: auto;

}

.film-gallery-slider {
    display: flex;
    transition: transform 0.4s ease;
}

.film-gallery-slider img {
    /*
    width: 100%;
    height: auto;
    flex: 0 0 100%;
    object-fit: cover;
*/
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1280 / 695;
    overflow: hidden;
    flex: 0 0 100%;

    height: 100%;
}

.slider-image-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.film-gallery-col::before,
.film-gallery-col::after {
    content: '';
    position: absolute;
    top: 50%;
    /*transform: translateY(-50%) rotate(45deg);*/
    width: 3vw;
    height: 3vw;
    border-top: 1px solid white;
    border-left: 1px solid white;
    background: transparent;
    cursor: pointer;
    z-index: 99;
}

.film-gallery-col::after {
    transform: translateY(-50%) rotate(135deg) !important;
    right: 1vw !important;
}

.film-gallery-col::before {
    left: 1vw !important;
    transform: translateY(-50%) rotate(-45deg) !important;
}

.film-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.5em;
    margin-top: 1em;
}

.film-gallery-dots button {
    width: 0.6em;
    height: 0.6em;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s;
}

.film-gallery-dots button.active {
    background: white;
}


/* ===== Meta + Synopsis (sous la galerie) ===== */
.film-synopsis-col {
    grid-column: 3 / span 1;
    font-size: 0.9vw;
    line-height: 1.4;
}

.film-infos {
    font-weight: bold;
    margin-bottom: 1vw;
    border-bottom: 1px solid;
    border-top: 1px solid;
    padding-top: 0.5em !important;
    padding-bottom: 0.4em !important;
}

.film-info-text p a {
    color: black;
    text-decoration: none;
}

.film-info-text p a::after {
    content: '[↗]';
    font-family: system-ui, sans-serif, "Helvetica Neue", Arial !important;
    font-variant-emoji: text;
}

.film-info-block h4 {
    padding-bottom: 0.2em !important;
    border-bottom: 1px solid;
    margin-bottom: 0.6em !important;
}

/* ===== Colonne 4-5 : Blocs flexibles ===== */
.film-infos-flex-col {
    grid-column: 4 / span 2;
    display: grid;
    grid-template-columns: subgrid;
    font-size: 0.85vw;
    line-height: 1.3;
}

.film-info-block {
    margin-bottom: 0.6em;
}


/*NEW SHIT*/

/* One unified area on the outer grid: spans columns 3–5 */
.film-text-cols {
    grid-column: 3 / span 3;
    /* Multi-column layout inside */
    column-count: 3;
    column-gap: 1.4vw;
    /* match .film-page-grid gap */
    font-size: 0.9vw;
    /* keep your scale */
    line-height: 1.4;
    column-fill: balance;
}

/* Make blocks behave nicely in multi-columns */
.film-text-cols > * {
    break-inside: auto;
    /* prevent awkward splits */
    margin-bottom: 1em;
}

/* Your existing styles can stay, just scoped here */
.film-infos {
    font-weight: bold;
    margin: 0 0 1vw 0;
    border-bottom: 1px solid;
    border-top: 1px solid;
    padding-top: 0.5em !important;
    padding-bottom: 0.4em !important;
    margin-bottom: 1em !important;
}

.film-info-block h4 {
    padding-bottom: 0.2em !important;
    border-bottom: 1px solid;
    margin-bottom: 0.6em !important;
}

.film-info-block {
    /* no grid here; let it be a simple block so columns can flow naturally */
}

/* Headings shouldn’t get stranded at the end of a column */
.film-info-block h4 {
    padding-bottom: .2em !important;
    border-bottom: 1px solid;
    margin-bottom: .6em !important;
    break-after: avoid;
    /* generic */
    break-after: avoid-column;
    /* stronger hint for multicol */
}

/* Let paragraphs split nicely across columns */
.film-info-text p,
.film-synopsis p {
    break-inside: auto;
    /*widows: 3;
    orphans: 3;
    hyphens: auto;*/
    overflow-wrap: anywhere;
    hanging-punctuation: first;
    /* optional: smoother rag */
}

/* If you have very long lists, allow splitting too */
.film-info-text ul,
.film-info-text ol {
    break-inside: auto;
}

.film-info-text p,
.film-synopsis p:first-child {
    padding-top: 1em;
}


/* OVERLAY */


.trailer-overlay {
    display: none;
    /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999999899;
    justify-content: center;
    align-items: center;
}

.trailer-overlay.active {
    display: flex;
}

.trailer-popup {
    position: relative;
    width: 80vw;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    background: black;
}

.trailer-popup video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.open-trailer {
    background-size: cover;
    filter: grayscale(1);
}

.trailer-close {
    position: fixed;
    top: 2vw;
    right: 2vw;
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.film-trailer {
    position: relative;
    aspect-ratio: 16 / 9;
    background: black url('chemin/vers/image-generique.jpg') center center / cover no-repeat;
    cursor: pointer;
}

.open-trailer {
    position: relative;
    width: 100%;
    height: 100%;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4rem;
    height: 4rem;
    background: white;
    clip-path: polygon(20% 10%, 20% 90%, 80% 50%);
    opacity: 0.8;
}

/*-----------ABOUT-----------*/
main.about-page {
    display: grid;
    grid-template-columns: repeat(5, 18.3vw);
    gap: 1.4vw;
    padding: 0 1.4vw;
    margin-top: 7vw;
}

.about-picture {
    grid-column: 2 / span 1;
}

.about-picture img {
    width: 100%;
}

.about-infos-wraper {
    grid-column: 3 / span 2;
    /* occupe deux colonnes de la grille parent */
    display: flex;
    flex-direction: column;
}

.about-text {
    font-size: 1.4rem;
}

/* Grille interne alignée sur la grille principale */
#people {
    display: grid;
    grid-template-columns: repeat(2, 18.3vw);
    column-gap: 1.4vw;
    row-gap: 2vw;
    border-top: 1px solid;
    border-bottom: 1px solid;
    padding: 1.8em 0;
}

/* Chaque personne occupe 1 colonne de cette sous-grille */
.personne {
    grid-column: span 1;
}

.personne h3 {
    font-size: 1em;
}

.personne a {
    color: black;
}

#about-footer {
    display: grid;
    grid-template-columns: repeat(2, 18.3vw);
    column-gap: 1.4vw;
    row-gap: 2vw;
}

.about-footer-social {
    grid-column: span 1;
    padding-top: 1.5em;
}

.about-footer-social a {
    font-size: 1em;
    color: black;
    font-weight: bold;
}

/*-----------FOOTER-----------*/

.site-footer {
    display: grid;
    grid-template-columns: repeat(5, 18.3vw);
    gap: 1.4vw;
    padding: 0 1.4vw;
    align-items: center;
    margin-top: 13vw;
    margin-bottom: 2vw;
}

footer .site-nav {
    grid-column: span 5;
}

.site-footer ul {
    margin: 0;
    padding: 0;
}

.site-footer ul li {
    list-style: none;
    border-top: 1px solid;
    padding-top: 1em;
}

.site-footer ul li a {
    text-decoration: none;
    color: #000;
}
