/*
Theme Name: Les Egaluantes
Theme URI: 
Author: 
Author URI: 
Description: 
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: egaluantes
Tags: 
*/

body {
  overflow-x: hidden;
  padding: 1rem;
  background-image: url(./assets/images/bg/bg-scratch-1.webp), url(./assets/images/bg/bg-scratch.webp);
  background-position: right -20px top 50%, left 0 bottom 20%;
  
  background-repeat: no-repeat;

}

@media (max-width: 768px) {
  body {
    padding: 1rem;
  }
  .billetterie-desk  {
    display: none!important;
  }
  html :where([style*="border-left-color"]){
    border:0!important;
  }
  [style*="min-height:100vh;"]{
    min-height: auto!important;
  }
  .p-sm-0 {
    padding: 0!important;
  }
}




a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}


/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}



.scroll-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    bottom: 5%;
    left: calc(50% - 16px);
  }
  
  .mouse {
    width: 30px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
    margin-bottom: 12px;
  }
  
  .mouse-wheel {
    background-color: #fff;
    width: 4px;
    height: 8px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
    animation: scroll 2s infinite;
  }
  
  .chevrons {
    position: relative;
    width: 33px;
    height: 24px;
    display:flex;
    justify-content:center;
  }
  
  .chevron {
    position: absolute;
    width: 16px;
    height: 2px;
    opacity: 0;
    transform: scale(0.3);
    animation: move-chevron 2s infinite;
  }
  
  .chevron:first-child {
    animation-delay: 0s;
  }
  
  .chevron:nth-child(2) {
    animation-delay: 0.5s;
  }
  
  .chevron:nth-child(3) {
    animation-delay: 1s;
  }
  
  .chevron:before,
  .chevron:after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    background: #fff;
  }
  
  .chevron:before {
    left: 0;
    transform: skewY(30deg);
  }
  
  .chevron:after {
    right: 0;
    width: 50%;
    transform: skewY(-30deg);
  }
  
  @keyframes scroll {
    0% {
      opacity: 1;
      top: 10px;
    }
    25% {
      opacity: 1;
    }
    75% {
      opacity: 0;
    }
    100% {
      opacity: 0;
      top: 30px;
    }
  }
  
  @keyframes move-chevron {
    25% {
      opacity: 1;
      transform: translateY(0) scale(0.8);
    }
    50% {
      opacity: 0.5;
      transform: translateY(10px) scale(0.8);
    }
    75% {
      opacity: 0;
      transform: translateY(20px) scale(0.8);
    }
    100% {
      opacity: 0;
      transform: translateY(30px) scale(0.8);
    }
  }


  header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 10000;
    left: 0;
  }

  article header {
    position: relative;
  }



  


  .logged-in  header.wp-block-template-part {
	top: 32px;
}





  .hero .wp-block-cover__video-background {
    mix-blend-mode: lighten;
    opacity: 0.7; /* 70% d'opacité */
}

/* Ajouter un overlay pour améliorer l'effet lighten */


/* Assurer que le contenu reste au-dessus de l'overlay */
.hero .wp-block-cover__inner-container {
    z-index: 2;
    position: relative;
}


/**
 * Styles pour l'effet de survol de la bannière - Mouvement fluide
 */

/* Structure de base */
.banner-hover-container {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    margin-bottom: 2em;
}

.banner-hover-container .wp-block-cover {
    position: relative;
    overflow: hidden;
}

/* Conteneur qui encapsule le titre et le contenu */
.banner-content {
    background-color: rgba(0, 0, 0, 0.3);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}

/* Style du conteneur de titre */
.banner-title-container {
    width: 100%;
    position: relative;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1); /* Transition améliorée */
}

/* Style du titre */
.banner-title {
    font-size: 32px !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

/* Style du contenu au survol */
.banner-hover-content {
    width: 100%;
    bottom: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem !important;
    transition: 
        opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1),
        max-height 0.5s cubic-bezier(0.19, 1, 0.22, 1),
        padding 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Animation au survol */


.banner-hover-container:hover .banner-hover-content {
    opacity: 1;
    max-height: 500px; /* Hauteur maximum suffisante pour le contenu */
    padding: 1.5rem !important;
}


.wp-block-site-logo img {
  height: auto;
}


/* Ajustements pour les appareils mobiles */
@media (max-width: 768px) {
 html, body {
  position: relative;
}

.hide-mobile {
  display: none!important;
}
.wp-container-core-group-is-layout-56 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.max-height-400 {
    max-height: 400px!important;
   min-height: 400px !important;
}

.max-height-400 img {
  max-height: 400px!important;
}

  main .entry-content {

  }

    .banner-hover-content {
        position: relative;
        opacity: 1;
        max-height: none;
        padding: 0 1.5rem 1.5rem !important;
    }

    .banner-content .wp-block-buttons {
    padding:0 !important;
    margin-block-start: 0 !important;
    }
    
    .banner-hover-container:hover .banner-title-container {
        transform: translateY(0);
    }
}


.z-index-100 {
    z-index: 100;
}



.has-drop-shadow {
box-shadow: 0px 16px 32px -12px rgba(29, 29, 27, 0.30);
}


.archive article, .wp-block-query article {
  transition: transform 0.3s ease;
}

.archive article:hover, .wp-block-query article:hover {
  transform: scale(1.025);
  }


  .extranet-error, .no-films {
    color:var(--wp--preset--color--blue-500);
  }

  header + main {
    margin-top: -1rem;
  }

  article.single-film { max-width: 100%;}

  article.single-film header { 
    background-color: transparent; height:540px;
    color:white;
    z-index: 0;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }

  


  article.single-film header .film-header-overlay{
    background-image: url(./assets/images/film/scratch-bottom.webp),  url(./assets/images/film/scratch-left.webp),  url(./assets/images/film/scratch-right.webp);
    background-position: left calc(100% + 7px), -30px top, calc(100% + 20px) top;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-color: rgba(0, 5, 72, 0.7);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    height: 100%;
  }

  article.single-film .film-poster {
    padding:1rem;
    background-color: white;
    border-radius: 1rem;
  }

article.single-film .meta-film {
  margin-bottom: 2rem;
}

  article.single-film .meta-item:not(:first-child) {
    padding: 0 0 0 .5rem;
    border-left:1px solid white;
  }

  article.single-film .film-poster img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 1rem;
  }


  article.single-film .container {
    max-width: 1240px;
    padding: 0 1rem;
    margin:auto;

  }

  article.single-film .film-info-item {
    display: flex;
    line-height: 1.2;
    padding: 10px 10px;
    border-top:1px solid rgba(0,5,72,.2);
  }
  article.single-film .film-info-item div {
    flex:0 0 130px
  }
  article.single-film .film-info-item div + div{
    font-weight: bold;
    flex:2;
  }

  @media screen and (max-width:860px) {

    article.single-film .film-info-item {
      flex-direction: column;
    }
    article.single-film .film-info-item div {
      flex:1;
    }
  }







  .full-height { 
    min-height: 100vh; 
}

.full-height-screen { 
    height: 100vh; 
    overflow: hidden; 
}

.full-height-parent { 
    height: 100%; 
}


/* === BASE GRID SYSTEM === */
.grid {
  display: grid;
  gap: var(--gap-size, 2rem);
  align-items: var(--align-items, stretch);
}

/* === COLONNES === */
.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* Grid responsive automatique */
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-auto-250 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-auto-200 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* === CLASSES GAPS === */
.gap-none { --gap-size: 0; }
.gap-xs { --gap-size: 0.5rem; }
.gap-sm { --gap-size: 1rem; }
.gap-md { --gap-size: 1.5rem; }
.gap-lg { --gap-size: 2rem; }
.gap-xl { --gap-size: 2.5rem; }
.gap-2xl { --gap-size: 3rem; }
.gap-3xl { --gap-size: 4rem; }

/* Gaps séparés horizontal/vertical */
.gap-x-none { column-gap: 0; }
.gap-x-sm { column-gap: 1rem; }
.gap-x-md { column-gap: 1.5rem; }
.gap-x-lg { column-gap: 2rem; }
.gap-x-xl { column-gap: 2.5rem; }

.gap-y-none { row-gap: 0; }
.gap-y-sm { row-gap: 1rem; }
.gap-y-md { row-gap: 1.5rem; }
.gap-y-lg { row-gap: 2rem; }
.gap-y-xl { row-gap: 2.5rem; }

/* === ALIGNEMENTS VERTICAUX === */
.align-start { --align-items: start; }
.align-center { --align-items: center; }
.align-end { --align-items: end; } /* ALIGN BOTTOM */
.align-stretch { --align-items: stretch; }
.align-baseline { --align-items: baseline; }

/* === ALIGNEMENTS HORIZONTAUX === */
.justify-start { justify-items: start; }
.justify-center { justify-items: center; }
.justify-end { justify-items: end; }
.justify-stretch { justify-items: stretch; }

/* === ALIGNEMENT DU CONTENU === */
.content-start { align-content: start; }
.content-center { align-content: center; }
.content-end { align-content: end; }
.content-between { align-content: space-between; }
.content-around { align-content: space-around; }
.content-evenly { align-content: space-evenly; }

/* === SPANS === */
.span-1 { grid-column: span 1; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-full { grid-column: 1 / -1; }

/* Spans verticaux */
.row-span-1 { grid-row: span 1; }
.row-span-2 { grid-row: span 2; }
.row-span-3 { grid-row: span 3; }
.row-span-4 { grid-row: span 4; }

/* === ALIGNEMENT INDIVIDUEL === */
.self-start { align-self: start; }
.self-center { align-self: center; }
.self-end { align-self: end; } /* Item individuel en bas */
.self-stretch { align-self: stretch; }

.justify-self-start { justify-self: start; }
.justify-self-center { justify-self: center; }
.justify-self-end { justify-self: end; }
.justify-self-stretch { justify-self: stretch; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .grid-6 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .grid-6 {
      grid-template-columns: 1fr;
  }
  
  .gap-lg { --gap-size: 1.5rem; }
  .gap-xl { --gap-size: 2rem; }
  .gap-2xl { --gap-size: 2.5rem; }
  .gap-3xl { --gap-size: 3rem; }
}

@media (max-width: 480px) {
  .gap-md { --gap-size: 1rem; }
  .gap-lg { --gap-size: 1.25rem; }
  .gap-xl { --gap-size: 1.5rem; }
}



.flex {
  display: flex;
  gap: var(--gap-size, 2rem);
  align-items: var(--align-items, stretch);
}

.inline-flex {
  display: inline-flex;
  gap: var(--gap-size, 2rem);
  align-items: var(--align-items, stretch);
}

/* === DIRECTION === */
.flex-row { flex-direction: row; }
.flex-row-reverse { flex-direction: row-reverse; }
.flex-col { flex-direction: column; }
.flex-col-reverse { flex-direction: column-reverse; }

/* === WRAP === */
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-wrap-reverse { flex-wrap: wrap-reverse; }

/* === ALIGNEMENTS HORIZONTAUX (justify-content pour flex) === */
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }
.justify-stretch { justify-content: stretch; }

/* === ALIGNEMENT DU CONTENU (pour flex-wrap) === */
.content-start { align-content: flex-start; }
.content-center { align-content: center; }
.content-end { align-content: flex-end; }
.content-between { align-content: space-between; }
.content-around { align-content: space-around; }
.content-evenly { align-content: space-evenly; }
.content-stretch { align-content: stretch; }

/* === FLEX BASIS ET GROW === */
.flex-1 { flex: 1 1 0%; }
.flex-2 { flex: 2 1 0%; }
.flex-3 { flex: 3 1 0%; }
.flex-4 { flex: 4 1 0%; }
.flex-5 { flex: 5 1 0%; }
.flex-6 { flex: 6 1 0%; }

/* Flex spéciaux */
.flex-auto { flex: 1 1 auto; }
.flex-initial { flex: 0 1 auto; }
.flex-none { flex: none; }

/* === FLEX GROW === */
.grow-0 { flex-grow: 0; }
.grow-1 { flex-grow: 1; }
.grow-2 { flex-grow: 2; }
.grow-3 { flex-grow: 3; }
.grow-4 { flex-grow: 4; }
.grow-5 { flex-grow: 5; }
.grow-6 { flex-grow: 6; }

/* === FLEX SHRINK === */
.shrink-0 { flex-shrink: 0; }
.shrink-1 { flex-shrink: 1; }
.shrink-2 { flex-shrink: 2; }
.shrink-3 { flex-shrink: 3; }



/* === VIDEO EMBED SYSTEM === */

/* Container de base pour les embeds */
.embed {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--border-radius, 8px);
}

.embed iframe,
.embed video,
.embed object,
.embed embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* === RATIOS D'ASPECT === */

/* 16:9 (YouTube, Vimeo standard) */
.embed-16-9 {
  aspect-ratio: 16 / 9;
}

/* 4:3 (vidéos classiques) */
.embed-4-3 {
  aspect-ratio: 4 / 3;
}

/* 21:9 (cinéma) */
.embed-21-9 {
  aspect-ratio: 21 / 9;
}

/* 1:1 (carré, Instagram) */
.embed-1-1 {
  aspect-ratio: 1 / 1;
}

/* 9:16 (vertical, TikTok, Stories) */
.embed-9-16 {
  aspect-ratio: 9 / 16;
}

/* === FALLBACK POUR NAVIGATEURS PLUS ANCIENS === */
@supports not (aspect-ratio: 16 / 9) {
  .embed-16-9 {
      padding-bottom: 56.25%; /* 9/16 * 100% */
  }
  
  .embed-4-3 {
      padding-bottom: 75%; /* 3/4 * 100% */
  }
  
  .embed-21-9 {
      padding-bottom: 42.86%; /* 9/21 * 100% */
  }
  
  .embed-1-1 {
      padding-bottom: 100%;
  }
  
  .embed-9-16 {
      padding-bottom: 177.78%; /* 16/9 * 100% */
  }
}

/* === TAILLES PRÉDÉFINIES === */

/* Petite vidéo */
.embed-sm {
  max-width: 400px;
  margin: 0 auto;
}

/* Taille moyenne */
.embed-md {
  max-width: 600px;
  margin: 0 auto;
}

/* Grande taille */
.embed-lg {
  max-width: 800px;
  margin: 0 auto;
}

/* Très grande */
.embed-xl {
  max-width: 1000px;
  margin: 0 auto;
}

/* Pleine largeur */
.embed-full {
  width: 100%;
  max-width: none;
}

/* === STYLES SPÉCIALISÉS === */

/* Trailer/Bande-annonce avec bordure */
.trailer-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
}

.trailer-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.trailer {
  position: relative;
}

.trailer:before {
  content:"";
  width: 130px;
  height: 130px;
  background: url(./assets/images/video/corner-left.png);
  background-size: cover;
  display: block;
  z-index: 100;
  position: absolute;
  left:-40px;
  top:-40px;
}

.trailer:after {
  content:"";
  width: 130px;
  height: 130px;
  background: url(./assets/images/video/corner-left.png);
  background-size: cover;
  transform: rotate(180deg);
  display: block;
  z-index: 100;
  position: absolute;
  bottom:-40px;
  right: -40px;
}

/* Style avec overlay de lecture */
.embed-with-overlay {
  position: relative;
}

.embed-with-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.embed-with-overlay:hover::before {
  opacity: 0;
}

/* Bouton play personnalisé */
.embed-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.embed-play-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.embed-play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 20px solid #333;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

/* === LOADING STATE === */
.embed-loading {
  background: linear-gradient(
      90deg,
      #f0f0f0 25%,
      #e0e0e0 50%,
      #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: loading-shimmer 2s infinite;
}

@keyframes loading-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* === INTÉGRATION AVEC VOTRE SYSTÈME === */

/* Utilise vos classes gap pour l'espacement */
.embed-grid {
  display: grid;
  gap: var(--gap-size, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.embed-flex {
  display: flex;
  gap: var(--gap-size, 2rem);
  flex-wrap: wrap;
  align-items: start;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .trailer-embed {
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .embed-play-btn {
      width: 60px;
      height: 60px;
  }
  
  .embed-play-btn::after {
      border-left: 15px solid #333;
      border-top: 9px solid transparent;
      border-bottom: 9px solid transparent;
      margin-left: 3px;
  }
  
  /* Tailles adaptées mobile */
  .embed-lg,
  .embed-xl {
      max-width: 100%;
  }
}

@media (max-width: 480px) {
  .embed-play-btn {
      width: 50px;
      height: 50px;
  }
  
  .embed-play-btn::after {
      border-left: 12px solid #333;
      border-top: 7px solid transparent;
      border-bottom: 7px solid transparent;
      margin-left: 2px;
  }
}

/* === PLATEFORMES SPÉCIFIQUES === */

/* YouTube */
.embed-youtube {
  background: #000;
}

/* Vimeo */
.embed-vimeo {
  background: #1ab7ea;
}

/* Dailymotion */
.embed-dailymotion {
  background: #0066cc;
}



/* FOOTER */

footer .destroy { position: relative;}
footer .destroy:before {
  content:'';
  width: 30px;
  height: 100%;
  display: block;
  background: url(./assets/images/footer/scratch-left.svg) no-repeat;
  position: absolute;
  left:-20px;
}
footer .destroy:after {
  content:'';
  width: 10px;
  height: 100%;
  display: block;
  background: url(./assets/images/footer/scratch-right.svg) no-repeat;
  position: absolute;
  right: 0;
  top: 0;
}

footer div.destroy.has-dark-blue-background-color {
  background-image: url(./assets/images/footer/drops.svg), url(./assets/images/footer/drops-1.svg);
  background-position: 75% -40px, -160px bottom;


  background-repeat: no-repeat;
}



.banner-home-egaluantes {
  background-image: url(./assets/images/header/banner-egaluante.webp), url(./assets/images/header/scratch-left.webp);
  background-repeat: no-repeat;
  background-position: bottom center, left top;
  background-size: contain;
  position: relative;
}

.banner-home-egaluantes:after {
  content: "";
  background-image: url(./assets/images/header/home-header-egaluante.webp);
  background-position: top center;
  display: block;
  width: calc(100% + 4rem);
  height: 706px;
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  bottom: -530px;
  left: -2rem;
  right: -2rem;
}

.has-drops {
  background-image: url(./assets/images/drops/Group.svg), url(./assets/images/drops/Frame\ 68.svg);
  background-position: 75% -40px, -160px bottom;
  background-repeat: no-repeat;
  position: relative;
}