:root{
  --menu-bg:#000;
  --menu-fg:#fff;
  --anim-speed:.4s;
  --header-height:80px;
}

@font-face{
  font-family:'Geist';
  src:url('path/to/Geist-Black.woff2') format('woff2'),url('path/to/Geist-Black.woff') format('woff');
  font-weight:900;
  font-style:normal;
}

html.lenis,html.lenis body{height:auto}

body{
  margin:0;
  padding:0;
  background:#000;
  font-family:'Geist',sans-serif;
 /* font-weight:900;*/
  color:var(--menu-fg);
}

.site-main{
  min-height:100vh;
  width:100%;
  position:relative;
  z-index:1;
}

h1,h2,h3{font-family:'Geist',sans-serif;font-weight:900;color:var(--menu-fg);margin:0}
h1{font-size:2.5rem;line-height:1.2;margin:0 0 1rem}
h2{font-size:2rem;line-height:1.3;margin:0 0 .75rem}
h3{font-size:1.5rem;line-height:1.4;margin:0 0 .5rem}
h4{font-family:'Geist',sans-serif;font-weight:500;font-size:1.4rem;line-height:1.4;margin:0 0 .5rem;color:var(--menu-fg)}
h5{font-family:'Geist',sans-serif;font-weight:100;font-size:1rem;letter-spacing:5px;line-height:1.4;margin:0 0 .5rem;color:var(--menu-fg)}
p{font-family:'Geist',sans-serif;font-weight:100;font-size:1.2rem;margin:0;color:var(--menu-fg)}

.big-title{
  font-family:'Geist',sans-serif;
  font-weight:900;
  font-size:clamp(2.5rem,5vw,4rem);
  line-height:1.1;
  text-transform:uppercase;
  color:var(--menu-fg);
  margin:0 0 1.5rem;
}

.lenis.lenis-smooth{scroll-behavior:auto!important}
.lenis.lenis-smooth [data-lenis-prevent]{overscroll-behavior:contain}
.lenis.lenis-stopped{overflow:clip}
.lenis.lenis-smooth iframe{pointer-events:none}

#site-header{
  position:fixed;top:0;left:0;width:100%;height:80px;
  display:flex;align-items:center;justify-content:flex-end;
  padding-right:30px;box-sizing:border-box;z-index:1000;pointer-events:none;
}
/* ===============================
   HEADER
================================ */

.header-logo-link{
  pointer-events:auto;
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  transition:opacity .3s;
}

.logo{height:50px}
.logo img{height:100%;object-fit:contain}

.hamburger{
  pointer-events:auto;
  cursor:pointer;
  width:50px;
  height:35px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  background:transparent;
  border:0;
  padding:0;
  z-index:1001;
}

.hamburger span{
  width:100%;
  height:4px;
  background:var(--menu-fg);
  display:block;
  border-radius:4px;
  transition:.3s;
  transform-origin:center;
}

.hamburger.active span:nth-child(1){transform:translateY(15px) rotate(45deg)}
.hamburger.active span:nth-child(2){opacity:0;transform:translateX(-20px)}
.hamburger.active span:nth-child(3){transform:translateY(-16px) rotate(-45deg)}


/* ===============================
   MENU OVERLAY
================================ */

#menu-overlay{
  position:fixed;
  inset:0;
  background:var(--menu-bg);
  z-index:999;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .4s ease, visibility .4s;
  overflow:hidden;
}

#menu-overlay[data-state="main"],
#menu-overlay[data-state="about"],
#menu-overlay[data-state="contact"]{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.layer{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .3s ease, visibility .3s;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
}

#menu-overlay[data-state="main"] .menu-chrome{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

#menu-overlay[data-state="about"] .about-layer,
#menu-overlay[data-state="contact"] .contact-layer{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

body.menu-overlay-sub-open .header-logo-link{
  opacity:0;
  pointer-events:none;
}
/* ===============================
   MENU FOOTER (LÉGAL)
================================ */

.menu-footer {
  position: absolute;
  bottom: 30px; /* Marge du bas */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 30px; /* Espace entre les liens */
  z-index: 10;
  pointer-events: auto; /* Important pour que les liens soient cliquables */
}

.menu-footer a {
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem; /* Un peu plus petit que les gros titres pour l'élégance */
  letter-spacing: 4px; /* Style similaire mais adapté à la longueur du texte */
  text-transform: uppercase;
  transition: opacity 0.3s;
}

.menu-footer a:hover {
  opacity: 0.7;
}

/* ===============================
   MOBILE : 100% HAUTEUR / NO SCROLL / CENTRÉ
================================ */

@media (max-width: 900px) {

  /* 1. Bloquer le scroll et sécuriser le conteneur */
  #menu-overlay {
    overflow: hidden !important;
    touch-action: none;
  }

  /* 2. Conteneur principal : Flex Vertical Centré */
  .main-menu {
    height: 100vh !important;
    padding: 90px 0 30px 0 !important; /* Ajuste l'espace haut/bas */
    box-sizing: border-box;
    
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Répartit l'espace verticalement */
    align-items: center; /* CRUCIAL : Centre tout horizontalement */
    width: 100%;
  }

  /* 3. Les zones images sont élastiques */
  .menu-item {
    width: 100%;
    flex: 1 1 auto; /* Grandit pour remplir le vide */
    min-height: 0;  /* Permet de réduire si l'écran est petit */
    display: flex;
    justify-content: center; /* Centre le lien horizontalement */
    align-items: center;     /* Centre le lien verticalement */
    padding: 0;
    margin: 0;
  }

  /* Le lien se comporte comme une boîte flexible centrée */
  .menu-item a {
    display: flex;
    justify-content: center; /* Centre le SVG horizontalement */
    align-items: center;     /* Centre le SVG verticalement */
    width: 100%;
    height: 100%;
  }

  /* 4. SVG : Centrage forcé */
  .svg-desktop { display: none; }
  .svg-mobile {
    display: block;
    width: auto;
    height: 100%;      /* Prend toute la hauteur dispo dans la case */
    max-height: 100%;
    max-width: 80%;    /* Marge de sécu sur les côtés */
    margin: 0 auto;    /* Sécurité supplémentaire pour le centrage */
    object-fit: contain;
  }

  /* 5. Boutons Textes (Contact/About) */
  .menu-label {
    position: relative;
    transform: none;
    top: auto;
    left: auto;
    width: 100%;
    text-align: center; /* Centre le texte */
    padding: 5px 0;
    margin: 0;
    flex: 0 0 auto; /* Taille fixe */
  }

  /* Ordre d'affichage */
  .menu-item:nth-child(1) { order: 1; } /* Clip */
  .label-contact          { order: 2; } 
  .menu-item:nth-child(2) { order: 3; } /* Films */
  .label-about            { order: 4; } 
  .menu-item:nth-child(3) { order: 5; } /* Pub */

  /* 6. Footer Légal */
  .menu-footer {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    order: 6;
    flex: 0 0 auto;
    
    display: flex;
    justify-content: center; /* Centre les liens */
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 10px;
  }

  .menu-footer a {
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-align: center;
  }
}

/* ===============================
   VIDEO BACKGROUND
================================ */

.video-container{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:0;
  background:#000;
}

/* Overlay noir */
.video-container::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0);
  transition:background .3s ease;
  z-index:2;
  pointer-events:none;
}

/* Overlay actif en About / Contact */
body.menu-overlay-sub-open .video-container::after{
  background:rgba(0,0,0,.55);
}

.video-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  z-index:1;
  filter:none;
  transition:opacity .6s ease-in-out, filter .3s ease;
  will-change:opacity, filter;
}

.video-bg.active{
  opacity:1;
}

/* Flou uniquement en About / Contact */
body.menu-overlay-sub-open .video-bg.active{
  filter:blur(14px);
}


/* ===============================
   MAIN MENU
================================ */

.main-menu{
  display:flex;
  width:100%;
  height:100vh;
  box-sizing:border-box;
  padding:80px 20px 20px;
  position:relative;
  z-index:1;
}

.menu-item{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  height:100%;
}

.menu-item a{
  display:block;
  width:100%;
  height:100%;
  position:relative;
}

.svg-desktop{
  display:block;
  height:100%;
  max-height:80vh;
  width:auto;
  margin:0 auto;
}

.svg-mobile{display:none}

.menu-label{
  position:absolute;
  top:50%;
  transform:translate(-50%,-50%);
  background:none;
  border:none;
  color:#fff;
  cursor:pointer;
  font-size:1rem;
  letter-spacing:8px;
}

.label-contact{left:33.33%}
.label-about{left:66.66%}


/* ===============================
   ABOUT / CONTACT
================================ */

.about-logo-img,
.contact-logo-img{
  width:60%;
  max-width:300px;
  margin-bottom:20px;
}

.about-text,
.contact-info{
  text-align:center;
  color:var(--menu-fg);
  max-width:900px;
}

.contact-info a{
  color:inherit;
  text-decoration:none;
}

.contact-title,
.about-title{
  display:flex;
  align-items:center;
  justify-content:center;
}

.contact-title{flex-direction:column}

.contact-name{
  font-weight:800;
  display:inline-block;
  margin-bottom:.2rem;
}


/* ===============================
   INSTAGRAM
================================ */

.instagram-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.instagram-icon{
  width:2.3rem;
  height:2.3rem;
  color:#fff;
  padding-bottom:2rem;
}

.instagram-link:hover .instagram-icon{
  opacity:1;
}


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

@media (max-width:900px){

  .main-menu{
    flex-direction:column;
    justify-content:space-between;
    gap:10px;
  }

  .menu-item{width:100%}

  .menu-item:nth-child(1){order:1}
  .label-contact{order:2}
  .menu-item:nth-child(2){order:3}
  .label-about{order:4}
  .menu-item:nth-child(3){order:5}

  .svg-desktop{display:none}
  .svg-mobile{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
  }

  .menu-label{
    position:relative;
    transform:none;
    top:auto;
    left:auto;
    width:100%;
    text-align:center;
    padding:10px;
  }
}

.sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

.display-area{
  position:fixed;inset:0;
  background:#000;z-index:1;
  cursor:grab;
  touch-action:none;
  /*contain:layout size;*/
}

/*
.display-area::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;

  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);

  mask-image: 
    linear-gradient(to bottom, black 0%, transparent 15%, transparent 85%, black 100%),
    linear-gradient(to right, black 0%, transparent 10%, transparent 90%, black 100%);
    
  -webkit-mask-image: 
    linear-gradient(to bottom, black 0%, transparent 15%, transparent 85%, black 100%),
    linear-gradient(to right, black 0%, transparent 10%, transparent 90%, black 100%);

  mask-composite: add;
  -webkit-mask-composite: source-over;
}


@media (max-width: 768px) {
  .display-area::after {
    mask-image: 
      linear-gradient(to bottom, black 0%, transparent 12%, transparent 88%, black 100%),
      linear-gradient(to right, black 0%, transparent 8%, transparent 92%, black 100%);
    -webkit-mask-image: 
      linear-gradient(to bottom, black 0%, transparent 12%, transparent 88%, black 100%),
      linear-gradient(to right, black 0%, transparent 8%, transparent 92%, black 100%);
  }

}

*/

.display-area:active{cursor:grabbing}

.grid-element{
  position:absolute;top:0;left:0;
  background:#000;
  overflow:hidden;
  content-visibility:auto;
  contain-intrinsic-size:300px 400px;
  transform-origin:0 0;
  will-change:transform,opacity;
  visibility:hidden;
  padding:2px;
}

.grid-item-inner{
  display:block;width:100%;height:100%;
  position:relative;text-decoration:none;
  opacity:0;
  will-change:transform,opacity;
}

.preview-image{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;
  display:block;
  z-index:1;
  pointer-events:none;
}

.preview-video{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;
  z-index:2;
  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease;
}

.preview-video.is-playing{opacity:1}

.grid-element .label{
  position:absolute;left:1.25rem;bottom:1.25rem;
  z-index:20;pointer-events:none;
  display:flex;flex-direction:column;gap:.25rem;
  color:#fff;opacity:0;
  transition:opacity .2s ease;
}

.grid-element.is-hovered .label{opacity:1}
.label .title{margin:0;text-transform:uppercase;letter-spacing:5px;font-size:1rem}
.label .artist{margin:0;opacity:.7;letter-spacing:5px;font-size:.85rem;text-transform:uppercase;font-weight:100}

.zoom-ui{
  position:fixed;
  bottom:40px;
  left:50%;
  transform:translateX(-50%);
  width:300px;
  z-index:100;
  padding:10px;
  mix-blend-mode:difference;
}

#zoom-slider{
  -webkit-appearance:none;
  width:100%;
  background:transparent;
  cursor:pointer;
  display:block;
  margin:0;
}

#zoom-slider:focus{outline:none}

#zoom-slider::-webkit-slider-runnable-track{
  width:100%;
  height:2px;
  background:rgba(255,255,255,.6);
  border-radius:2px;
  border:none;
}

#zoom-slider::-moz-range-track{
  width:100%;
  height:2px;
  background:rgba(255,255,255,.6);
  border-radius:2px;
  border:none;
}

#zoom-slider::-webkit-slider-thumb{
  -webkit-appearance:none;
  height:16px;width:16px;
  border-radius:50%;
  background:#fff;
  margin-top:-7px;
  box-shadow:0 0 15px rgba(255,255,255,.6);
  transition:transform .2s ease,box-shadow .2s ease;
}

#zoom-slider::-moz-range-thumb{
  border:none;
  height:16px;width:16px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 0 15px rgba(255,255,255,.6);
  transition:transform .2s ease,box-shadow .2s ease;
}

#zoom-slider:hover::-webkit-slider-thumb{transform:scale(1.2);box-shadow:0 0 20px rgba(255,255,255,.9)}
#zoom-slider:hover::-moz-range-thumb{transform:scale(1.2);box-shadow:0 0 20px rgba(255,255,255,.9)}

/* =========================================
   1. CONFIGURATION GÉNÉRALE & SCROLL
   ========================================= */

/* --- DESKTOP (Par défaut) : Scroll autorisé --- */
html.page-pub, html.page-films,
body.page-pub, body.page-films {
  height: auto;
  width: 100%;
  margin: 0;
  overflow-x: hidden; /* Évite le scroll horizontal accidentel */
  overflow-y: auto;   /* Scroll vertical standard */
  position: static;
  overscroll-behavior: auto;
}

/* --- MOBILE & TABLETTE (max-width: 1024px) : Scroll BLOQUÉ --- */
@media (max-width: 1024px) {
  html.page-pub, html.page-films {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none; /* Bloque le rebond Chrome/Firefox */
  }

  body.page-pub, body.page-films {
    height: 100%;
    width: 100%;
    overflow: hidden;
    /* LA solution pour Safari Mobile : figer le body */
    position: fixed; 
    top: 0;
    left: 0;
    overscroll-behavior: none; 
    touch-action: none; /* Désactive les gestes par défaut du navigateur */
  }
}

/* =========================================
   2. CONTENEUR & SWIPER
   ========================================= */

.clip-container {
  width: 100%;
  height: 100vh; /* Fallback */
  background: #000;
  overflow: hidden;
  position: relative;
}

/* Hauteur dynamique pour mobile (barre d'adresse) */
@media (max-width: 1024px) {
  .clip-container {
    height: 100dvh; 
  }
}

#clipSwiper {
  width: 100%;
  height: 100%;
  cursor: grab;
  /* Important : autorise le swipe horizontal mais bloque le vertical */
  touch-action: pan-x; 
}

#clipSwiper:active {
  cursor: grabbing;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20vw;
  max-width: 500px;
  /* Optimisation performance mobile */
  transform: translate3d(0,0,0); 
  backface-visibility: hidden;
}

/* =========================================
   3. ÉLÉMENTS (ITEMS, LOGO, VIDÉO)
   ========================================= */

.clip-item {
  position: relative;
  opacity: 0;
  transform: translateY(60px) scale(.92);
  transition: all 1s cubic-bezier(.16, 1, .3, 1);
  /* Empêche la sélection de texte accidentelle sur mobile */
  -webkit-user-select: none;
  user-select: none; 
}

.clip-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* --- LOGO --- */
.clip-logo {
  position: relative;
  z-index: 2;
  width: 80%;
  max-width: 200px;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: transform .4s ease, opacity .4s ease;
  margin: 0 auto;
  display: block;
  pointer-events: none;
}

/* Effets Hover & Active Mobile sur le Logo */
.clip-item:hover .clip-logo,
.clip-item.is-active-mobile .clip-logo {
  transform: scale(1.05);
}

/* --- VIDÉO --- */
.clip-hover-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.04);
  width: 450px;
  height: 600px;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  filter: blur(12px);
  transition: all .9s cubic-bezier(.19, 1, .22, 1);
  will-change: opacity, transform, filter; /* Optimisation */
}

/* Apparition Vidéo (Hover Desktop OU Active Mobile) */
.clip-item:hover .clip-hover-video,
.clip-item.is-active-mobile .clip-hover-video {
  opacity: 1;
  filter: blur(0);
  transform: translate(-50%, -50%) scale(1);
}

/* --- TEXTE --- */
.clip-text {
  display: block;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
  color: #fff;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .4s ease;
  line-height: 1.1;
  padding: 0 10px;
  box-sizing: border-box;
  word-wrap: break-word;
  margin-top: 15px;
}

.clip-item:hover .clip-text {
  opacity: 1;
}


/* --- NAVIGATION MOBILE (Flèches + Scrollbar) --- */
.mobile-nav-arrow, .swiper-scrollbar {
    display: none; /* Caché sur Desktop */
}

@media (max-width: 1024px) {
    
    /* 1. LES FLÈCHES (Gauche et Droite) */
    .mobile-nav-arrow {
        display: flex;
        width: 44px;  /* Zone de touche confortable */
        height: 44px;
        background: rgba(0, 0, 0, 0.5); /* Fond noir semi-transparent */
        border-radius: 50%;
        color: #fff;
        bottom: 20px !important; /* Position verticale commune */
        top: auto !important;
        z-index: 50;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(4px);
    }

    .mobile-nav-arrow::after {
        font-size: 18px; /* Taille icône */
        font-weight: bold;
    }

    .swiper-button-prev.mobile-nav-arrow { left: 15px; }
    .swiper-button-next.mobile-nav-arrow { right: 15px; }

    /* 2. LE RAIL DE LA BARRE (Au milieu) */
    .swiper-scrollbar {
        display: block;
        position: absolute;
        bottom: 38px !important; /* Ajusté pour s'aligner au centre des flèches */
        left: 70px !important;   /* Commence après la flèche gauche */
        right: 70px !important;  /* Finit avant la flèche droite */
        width: auto !important;  /* S'étire entre les deux */
        height: 4px !important;  /* Finesse du rail */
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        z-index: 50;
        /* Important pour que le gros curseur dépasse du rail fin sans être coupé */
        overflow: visible !important; 
    }

    /* 3. LE CURSEUR (Gros pour le doigt) */
    .swiper-scrollbar-drag {
        height: 14px !important; /* Beaucoup plus gros que le rail (4px) */
        top: -5px; /* On le remonte pour le centrer sur le rail (14-4)/2 = 5px */
        background: #fff;
        border-radius: 10px; /* Forme de pilule */
        cursor: grab;
        /* Ajoute une zone invisible autour pour faciliter le grab tactile */
        box-shadow: 0 0 0 10px transparent; 
    }
}



/* =========================================
   4. RESPONSIVE / MEDIA QUERIES
   ========================================= */

@media (max-width: 1024px) {
  .swiper-slide {
    width: 40vw; /* Ajustement largeur slide mobile */
  }

  .clip-hover-video {
    width: 75vw;
    height: 30vh; /* Ajustement taille vidéo mobile */
  }
}

.page-films,.page-films body{
  background-color:#000;
  overflow:hidden;
  height:100vh;
  margin:0;
}

#bg-wrapper{
  position:fixed;top:0;left:0;width:100vw;height:100vh;
  z-index:0;background-color:#000;pointer-events:none;
  overflow:hidden;
}

.bg-player-unit{
  position:absolute;top:0;left:0;width:100%;height:100%;
  object-fit:cover;opacity:0;z-index:1;
  transition:opacity .6s ease;
  filter:blur(20px);
  transform:scale(1.1);
  will-change:opacity,transform;
}

.bg-player-unit.is-active{opacity:1;z-index:2}

.bg-overlay{
  position:absolute;top:0;left:0;width:100%;height:100%;
  background:rgba(0,0,0,.4);
  z-index:3;
}

.films-container{
  position:relative;z-index:10;
  width:100vw;height:100vh;
  display:flex;flex-direction:column;
  justify-content:center;align-items:center;
}

#filmsSwiper{width:100%;height:100%;padding:40px 0}

.swiper-slide.film-item{
  width:45vw;max-width:460px;
  display:flex;flex-direction:column;justify-content:center;
  cursor:pointer;
  opacity:0;
  transition:opacity .5s ease,filter .5s ease;
}

.film-item.is-ready{opacity:1!important;filter:blur(0)!important}

.film-thumb{
  width:100%;aspect-ratio:2/3;
  overflow:hidden;margin-bottom:1rem;
  background:#111;
}

.film-thumb img{width:100%;height:100%;object-fit:cover;display:block}

.film-infos{
  text-align:center;color:#fff;text-transform:uppercase;
  font-size:1.1rem;letter-spacing:1px;font-weight:600;
}

.films-container.is-hovering .film-item{opacity:.4!important;filter:blur(8px)!important}
.films-container.is-hovering .film-item:hover{opacity:1!important;filter:blur(0)!important}

@media (max-width:768px){
  .swiper-slide.film-item{width:75vw;max-width:360px;opacity:.3!important;transition:opacity .3s ease}
  .swiper-slide-active.film-item{opacity:1!important}
  .films-container.is-hovering .film-item{opacity:.3!important;filter:none!important}
  .films-container.is-hovering .film-item.swiper-slide-active{opacity:1!important}
}

.projet{
  position:relative;
  min-height:100vh;
  background:#000;
  color:#fff;
  font-family:'Geist',sans-serif;
  font-weight:900;
  text-transform:uppercase;
  overflow:hidden;
}

.projet-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  border:none;
}

.video-overlay{
  position:absolute;
  inset:0;
  z-index:10;
  cursor:pointer;
}

.center-pause-icon{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%) scale(.8);
  color:#fff;
  opacity:0;
  pointer-events:none;
  transition:all .3s cubic-bezier(.25,.8,.25,1);
  z-index:20;
  border-radius:50%;
  width:100px;
  height:100px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.center-pause-icon.visible{
  opacity:1;
  transform:translate(-50%,-50%) scale(1);
}

.custom-progress-container{
  position:absolute;
  bottom:120px;
  left:0;
  width:100%;
  height:50px;
  z-index:30;
  padding:0 2rem;
  box-sizing:border-box;
  opacity:0;
  transition:opacity .4s ease;
  pointer-events:none;
}

.custom-progress-container.visible{opacity:1;pointer-events:all}

.custom-progress-bar{
  position:relative;
  height:4px;
  background:rgba(255,255,255,.3);
  border-radius:2px;
  cursor:pointer;
  overflow:hidden;
}

.custom-progress-filled{
  width:0%;
  height:100%;
  background:#fff;
  transition:width .1s linear;
}

.custom-progress-handle{
  position:absolute;
  top:50%;
  left:0%;
  width:14px;
  height:14px;
  background:#fff;
  border-radius:50%;
  transform:translate(-50%,-50%);
  opacity:0;
  transition:all .2s;
}

.custom-progress-container:hover .custom-progress-handle,
.custom-progress-container.dragging .custom-progress-handle{
  opacity:1;
  transform:translate(-50%,-50%) scale(1.5);
}

.projet-bar{
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  padding:2rem 3rem;
  background:linear-gradient(to top,rgba(0,0,0,.9) 0%,transparent 100%);
  z-index:40;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:2rem;
  box-sizing:border-box;
  pointer-events:none;
}

.bar-left,.bar-right{
  pointer-events:all;
  display:flex;
  flex-direction:column;
  gap:.4rem;
}

.bar-left{flex:1;max-width:50%}

.info-title{
  font-size:clamp(1.3rem,3vw,2rem);
  line-height:1;
  word-break:break-word;
  letter-spacing:4px;
  font-weight:900;
}

.info-artist{font-size:clamp(.7rem,2vw,1.2rem)}

.bar-right{
  align-items:flex-end;
  text-align:right;
  flex-direction:row;
  gap:1.2rem;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.credit-block{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:.2rem;
}

.info-label{
  text-transform:capitalize;
  font-size:clamp(.8rem,1.7vw,1rem);
  opacity:.7;
}

.info-value{font-size:clamp(1rem,2vw,1.2rem)}

.control-group{
  display:flex;
  align-items:center;
  gap:.5rem;
}

.control-button{
  background:none;
  border:none;
  color:#fff;
  cursor:pointer;
  padding:.5rem;
  opacity:.7;
  transition:all .6s cubic-bezier(.25,.8,.25,1);
  display:flex;
  align-items:center;
  justify-content:center;
  max-width:50px;
  overflow:hidden;
}

.projet.idle-mode .control-button{
  max-width:0;
  padding:0;
  opacity:0;
  pointer-events:none;
}

.control-button:hover{opacity:1;transform:scale(1.1)}

.control-button .icon-sound{display:none}
.control-button .icon-mute{display:block}
.control-button.is-muted .icon-sound{display:none}
.control-button.is-muted .icon-mute{display:block}
.control-button:not(.is-muted) .icon-sound{display:block}
.control-button:not(.is-muted) .icon-mute{display:none}

.previews-gallery,.film-details-section{
  padding:8rem 3rem 6rem;
  background:#000;
}

.previews-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:2rem;
  margin:0 auto;
}

.preview-item{aspect-ratio:16/9;overflow:hidden}
.preview-item video{width:100%;height:100%;object-fit:cover}

.film-details-section{
  background:#000;
  color:#fff;
  display:flex;
  justify-content:center;
  padding-top:5rem;
}

.film-content{width:100%}

.film-festival-logo{margin-bottom:2rem}
.film-festival-logo img{display:block;max-width:150px;height:auto;object-fit:contain}

@media (max-width:768px){
  .film-festival-logo img{margin:0}
}

.film-festival{
  text-transform:uppercase;
  margin:0 0 2rem 0;
  line-height:1.1;
}

.film-synopsis{
  opacity:.8;
  text-align:left;
  max-width:800px;
}

@media (max-width:1024px){
  .previews-gallery,.film-details-section{padding:3rem 1rem}
  .previews-grid{grid-template-columns:repeat(2,1fr)}
  .projet-bar{padding:2rem 1rem}
  .custom-progress-container{padding:0 1rem;bottom:110px}
}

@media (max-width:768px){
  .projet-bar{
    padding:1.5rem;
    flex-direction:column;
    align-items:flex-start;
    gap:1.5rem;
  }

  .custom-progress-container{bottom:240px}

  .bar-left{
    max-width:100%;
    width:100%;
  }

  .bar-center{display:none}

  .bar-right{
    width:100%;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:flex-start;
    gap:1rem;
    position:relative;
  }

  .credit-block{
    align-items:flex-start;
    text-align:left;
  }

  .control-group{margin-left:auto}

  .previews-gallery,.film-details-section{padding:4rem 1rem}
  .previews-grid{grid-template-columns:1fr;gap:1.5rem}
  .film-content{text-align:left}
}

/* Wrapper page */
.seo-page{
  position: relative;
  min-height: 100vh;
  background: #000;
  color: #fff;
  overflow: hidden;
}

/* Background vidéo */
.seo-bg{
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}

.seo-bg__video{
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* Flou */
  filter: blur(18px);

  /* Évite les bords du blur (statique, pas une transition) */
  transform: scale(1.06);

  transition: none !important;
}

.seo-bg__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1;
}

/* Contenu centré */
.seo-landing{
  position: relative;
  z-index: 2;
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 20px 60px; /* laisse de l'air sous le header */
  gap: 18px;
}

.seo-landing h1{
  margin: 0;
  line-height: 1.05;
}

.seo-landing p{
  margin: 0;
  opacity: .88;
  font-size: 1.05rem;
  line-height: 1.6;
}

.seo-landing__links{
  opacity: .95;
  letter-spacing: .06em;
}

.seo-landing__links a{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.35);
}

.seo-landing__links a:hover{
  border-bottom-color: rgba(255,255,255,.85);
}


/* =========================================================
   LEGAL PAGES (Mentions + Confidentialité)
   Cible : pages avec body_class .page-mentions-legales et .page-politique-de-confidentialite
   ========================================================= */

.legal-page{
  min-height: 100vh;
  display: flex;
  align-items: center;              /* -> contenu au milieu de la page */
  justify-content: center;
  padding: clamp(2rem, 6vw, 6rem) 0;
}

 .legal-container{
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto;
  padding-top: 25vh;
}

/* Header */
.legal-header h1{
  margin: 0 0 .6rem 0;
  line-height: 1.1;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 300;                /* titre plus fin */
  letter-spacing: .01em;
}

.legal-updated{
  opacity: .7;
  margin: 0 0 clamp(1.25rem, 3vw, 2.25rem) 0;
  font-size: clamp(.85rem, 1.2vw, .95rem);
  font-weight: 300;
}

/* Content */
.legal-content{
  font-size: clamp(.95rem, 1.1vw, 1.05rem) !important;
  line-height: 1.75 !important;
  font-weight: 300 !important;                /* texte plus fin */
}

.legal-content p{
  margin: 0 0 1rem 0;
  font-weight: inherit;
}

.page-mentions-legales{
  margin: 0 0 1.1rem 0;
  padding-left: 1.1rem;
}

.page-mentions-legales .legal-content li,
.page-politique-de-confidentialite .legal-content li{
  margin: .35rem 0;
  font-size: inherit;
  font-weight: 300;                /* force normal léger sur li */
}

/* Séparateurs : une "ligne blanche" avant chaque section (h2), sauf la 1ère */
.legal-content h2{
  margin: 0;
  padding-top: clamp(1.4rem, 3vw, 2.2rem);
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  border-top: 1px solid rgba(255,255,255,.25); /* ligne blanche */
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.2;
  font-weight: 300;                /* titres fins */
  letter-spacing: .01em;
}

/* Pas de ligne au tout début (si ton contenu commence par un h2) */
.legal-content h2:first-child{
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

/* Liens */
.legal-content a{
  font-weight: 300;
  text-underline-offset: .15em;
  word-break: break-word;
}

/* Mobile : on évite le centrage vertical trop “bas” */
@media (max-width: 768px){
.legal-page{
    align-items: flex-start;
    padding-top: clamp(2.25rem, 8vw, 4rem);
  }
}

/********COOKIES*********/
.cky-consent-container .cky-consent-bar{
    border-radius:0 !important;
    box-shadow:none !important;
    font-family:'Geist',sans-serif !important;
}
.cky-notice .cky-title{
    font-weight: 300 !important;
}

.cky-btn-accept, .cky-btn-reject, .cky-btn-customize{
    text-transform:uppercase !important;
    font-weight: 300;
}

.cky-revisit-bottom-left{
    display: none !important;
}
.cky-notice-btn-wrapper{
    flex-wrap: nowrap !important;
    flex-direction: row !important;
}

@media (max-width: 440px) {
  .cky-notice-btn-wrapper .cky-btn-accept {
    margin-top: 10px !important;
  }
  .cky-notice-btn-wrapper{
    gap:5px ;
}

}
#header,hr{display:none!important}
#footer{display:none!important}
