@font-face {
  font-family: 'Gendy';
  src: url('../fonts/Gendy/gendy.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Alexandria';
  src: url('../fonts/Alexandria/Alexandria-Regular-BF6690948fea175.ttf') format('truetype');
}


/* VARIABLES */
:root {
  --background-dark: #121212;
  --background-nav: #050505;
  --text-color: #eee;
  --primary-color: #89497E;
  --secondary-color: #112E45;
  --primary-gradient: linear-gradient(-45deg, var(--primary-color), var(--secondary-color));
  --border-radius: 4px;
  --shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 8px 8px 0 rgba(0, 0, 0, 0.25);

  --font-title: 'Gendy', sans-serif;
  --font-body: 'Alexandria', sans-serif;

  --header-height: 80px;
}

/* COMMON */
* {
  box-sizing: border-box;
  font-weight: 400;
}

body {
  width: 100%;
  overflow-x: hidden;
  background-color: var(--background-dark);
  color: var(--text-color);
  font-family: 'Alexandria', sans-serif;
}

h1, h2, h3 {
  font-family: 'Gendy', sans-serif;
}

h2 {
  font-size: 24px;
}

p {
  line-height: 160%;
}

a {
  color: var(--text-color);
}

p a {
  transition: all .3s ease-in-out;
}

p a:hover {
  filter: brightness(0.8);
}

body.menu-open {
  overflow: hidden;
  height: 100vh;
}

#header, #header+hr {
  display: none;
}

.cta {
  position: relative;
  color: var(--text-color);
  padding: 10px 20px;
  text-decoration: none;
  box-shadow: var(--shadow);
  font-family: var(--font-title);
  font-size: 14px;
  background: transparent;
  border: none;
  border-radius: var(--border-radius);
  z-index: 1;

  transition: all .3s ease-in-out;
}

.cta:hover {
  filter: brightness(1.4);
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px; /* épaisseur de la bordure */
  border-radius: var(--border-radius);
  background: var(--primary-gradient);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: -1;
}

.cta--primary {
  background: var(--primary-gradient);
  color: #fff;
}

.cta--primary::before {
  display: none; /* pas de bordure si bg plein */
}

.container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  padding-top: 40px;
}

@media screen and (min-width: 768px) {
  .container {
    margin: 0 auto;
  }
}

/* HERO SECTION */

.hero-section {
  height: 70vh;
  overflow: hidden;
}

/* NAV */

.main-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  padding: 20px;
  padding-bottom: 45px;
  background: var(--background-nav);
  color: var(--text-color);

  font-family: var(--font-title);
  font-size: 36px;

  transition: all 0.3s ease-in-out;
}

.main-nav::before {
  content: '';
  display: block;
  width: 1142px;
  height: 50%;
  position: absolute;
  bottom: -10%;
  left: 0;
  z-index: -1;
  opacity: 0;

  background-image: url('../images/soundwaves.png');

  transition: all 0.3s ease-in-out;
  transition-delay: 0.2s;

  animation: defileGauche 20s linear infinite;
}

@keyframes defileGauche {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.main-nav.open::before {
  opacity: .2;
  bottom: 0;
}

.admin-bar .main-nav {
  padding-top: 45px;
}

.lang-switcher {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lang-switcher .lang-item a {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--border-radius);
  color: var(--text-color);
  opacity: 0.5;
  transition: all 0.2s ease;
}

.lang-switcher .lang-item.current-lang a,
.lang-switcher .lang-item a:hover {
  opacity: 1;
  background: var(--primary-gradient);
  border-color: transparent;
  color: #fff;
}

/* Mobile : dans le burger */
@media (max-width: 768px) {
  .lang-switcher {
    margin-top: 20px;
    justify-content: center;
  }
}

.main-nav .container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.main-nav.open {
  right: 0;
}

.main-nav .site-branding {
  position: relative;
  width: 186px;
  padding-bottom: 15px;
}

.site-branding a {
  display: block;
  width: 100%;
  height: 100%;
}

.site-branding img {
  display: block;
  width: 100%;
  height: 100%;
}

.site-branding::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 3px;
  background: var(--primary-gradient);
}

.main-nav__list {
  list-style: none;
  padding: 0;
  margin: 0 30px;
  margin-top: 30px;
  flex: 1;
}

.main-nav__list li {
  position: relative;
}

.main-nav__list li::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--primary-color);

  transition: all .3s ease-in-out;
}

.main-nav__list li.active::after,
.main-nav__list li:hover::after {
  width: 100%;
}

.main-nav__list a {
  color: var(--text-color);
  text-decoration: none;
  display: block;
  padding: 10px 0;
  margin-bottom: 44px;

  transform: translateX(100%);
  opacity: 0;
  
  transition: transform .3s ease-in-out, opacity .3s ease-in-out;
}

.open .main-nav__list a {
  transform: translateX(0);
  opacity: 1;
}

/* Stagger */
.open .main-nav__list li:nth-child(1) a {
  transition-delay: 0.1s;
}
.open .main-nav__list li:nth-child(2) a {
  transition-delay: 0.2s;
}
.open .main-nav__list li:nth-child(3) a {
  transition-delay: 0.3s;
}

.main-nav__contact {
  display: block;
  font-size: 18px;
  width: 80%;
  margin: 0 auto;
  text-align: center;
}

.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  width: 218px;
  margin: 0 auto;
  margin-top: 40px;
  justify-content: space-between;
}

.social-links a {
  display: block;
  width: 40px;
  height: 40px;
}

.social-links img {
  display: block;
  width: 100%;
  height: 100%;
}

.menu-toggle {
  overflow: hidden;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  background: black;
  cursor: pointer;
  border: none;
}

.admin-bar .menu-toggle {
  top: 65px;
}

.menu-toggle__bar {
  position: absolute;
  left: 50%;
  width: 70%;
  height: 4px;
  background: var(--text-color);
  display: block;
  border-radius: var(--border-radius);

  transition: all 0.3s ease-in-out;
}

.menu-toggle__bar--top {
  top: 25%;
  transform: translate(-50%, -50%);
}

.open .menu-toggle__bar--top {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-toggle__bar--middle {
  top: 50%;
  transform: translate(-50%, -50%);
}

.open .menu-toggle__bar--middle {
  opacity: 0;
  left: 100%;
}

.menu-toggle__bar--bottom {
  top: 75%;
  transform: translate(-50%, -50%);
}

.open .menu-toggle__bar--bottom {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media screen and (min-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: auto;
    left: 0;
    width: 100vw;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    background: none;

    background: linear-gradient(180deg, black, rgba(0, 0, 0, 0));

    font-size: 20px;
  }

  .main-nav::before {
    display: none;
  }
  
  .main-nav .container {
    width: 90%;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    overflow: auto;
  }

  .main-nav .site-branding {
    padding-bottom: 0;
  }

  .site-branding::after {
    display: none;
  }

  .main-nav__list {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
    font-size: 18px;
    margin: 0;
  }

  .main-nav__list a {
    margin-bottom: 0;
    opacity: 1;
    transform: translateX(0);
  }
  
  .main-nav__mobile-infos {
    display: none;
  }

  .menu-toggle {
    display: none;
  }

}

/* HOME */

.home-hero {
  width: 100vw;
  height: 518px;
  padding-bottom: 50px;
  position: relative;
  overflow: hidden;
}

.home-hero .container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 90%;
  height: 100%;
  margin: 0 auto;
}

.home-hero__content {
  max-width: 700px;
}

.home-hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: .4;
}

.home-hero__logo-ctn {
  position: fixed;
  z-index: 10;
  top: 20%;
  left: 50%;
  width: 100%;

  transform: translate(-50%, -50%);

  transition: all .3s ease-in-out;
}

.home-hero__logo-ctn.scrolled {
  left: 0;
  top: 20px;
  width: 40%;

  transform: translate(0, 0);
}

.admin-bar .home-hero__logo-ctn.scrolled {
  top: 65px;
}

.home-hero__logo-ctn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__title {
  color: var(--text-color);
  font-family: var(--font-title);
  font-size: 40px;
  margin-bottom: 30px;
}

.home-hero__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: space-between;
}

@media screen and (min-width: 768px) {
  .home-hero {
    height: 80vh;
    padding-bottom: 10vh;
  }

  .home-hero__logo-ctn {
    display: none;
  }

  .home-hero__title {
    font-size: 64px;
    max-width: 670px;
  }

  .home-hero__links {
    justify-content: flex-start;
    gap: 20px;
  }
}

h2 {
  position: relative;
  display: inline-block;
}
h2::before {
  position: absolute;
  top: 0;
  left: 0;
  content: '';
  display: block;
  width: 100%;
  height: 4px;
  margin-bottom: 10px;
  background: var(--primary-gradient);
}

.home-about__content {
  max-width: 800px;
}

.home-partenaires .container, .home-contact .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container h2 {
  align-self: flex-start;
  padding-top: 20px;
}

.container p {
  align-self: flex-start;
}

.home-partenaires {
  padding-bottom: 50px;
}

.home-partenaires__slider {
  width: 100%;
  overflow: hidden;
  margin-bottom: 50px;
}

.home-partenaires__slider-ctn {
  display: flex;
  gap: 50px;
  align-items: center;
  will-change: transform;
}

.home-partenaires__slider__el {
  flex-shrink: 0;
}

.home-partenaires__slider__el img {
  display: block;
  height: 60px;
  width: auto;
}

.home-partenaires__slider__el {
  flex-shrink: 0;
}

.map-ctn {
  width: 100%;
  margin-top: 50px;
}

.map-ctn__complement {
  display: block;
  margin: 0 auto;
  width: 90%;
  font-size: 14px;
}

.home-contact {
  position: relative;
}

.home-contact__content {
    width: 100%;
}

.home-contact__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: .1;
}

@media screen and (min-width: 768px) {
  .home-contact__content {
    display: flex;
    gap: 20px;
  }

  .home-contact__content__text, .map-ctn {
    width: 50%;
  }

  .home-contact__content__text div {
    margin-bottom: 40px;
  }

  .map-ctn__complement {
    margin: 20px 0;
  }
}



/* NOS SERVICES */

.service-section {
  position: relative;
}

.service-section__background {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.1;
}

.nos-services__devis {
  display: block;
  font-size: 18px;
  width: 80%;
  margin: 0 auto;
  margin-top: 100px;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .service-section .container {
    display: flex;
    gap: 30px;
  }

  .service-section__text,
  .service-section__background {
    width: 48%;
    height: 100%;
  }

  .service-section__background {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    height: 100%;
    object-fit: cover;
  }

  .service-section:nth-child(even) .container {
    flex-direction: row-reverse;
  }

  .service-section:nth-child(even) .service-section__background {
    right: auto;
    left: 0;
  }

  .services-grid {
    text-align: center;
  }

  .service-section__text {
    flex-shrink: 0;
    text-align: left;
  }


  .nos-services__devis {
    width: auto;
    display: inline-block;
  }
}


/* PAGE NOS PROJETS */

.projets-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-title);
  font-size: 16px;
  padding: 10px 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
}

.projet-card {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.projets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.projet-card {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: scale(1);
}

.projet-card.is-hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

/* Cache complètement après l'anim */
.projet-card.is-hidden-done {
  display: none;
}

.projets-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.projet-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: calc(var(--border-radius) * 2);
  box-shadow: var(--shadow);

  transition: all .2s ease-in-out;
}

.projet-card:hover {
  box-shadow: var(--shadow-hover);
  transform: scale(1.05);
}

.projet-card::before {
  content: '';
  display: block;
  position: absolute;
  z-index: -1;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 66%;
  background: linear-gradient(0deg,rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.51) 66%, rgba(0, 0, 0, 0) 100%);
}

.projet-card__badge {
  position: absolute;
  bottom: 15px;
  right: 15px;
  z-index: 5;
  display: inline-block;
  font-size: 12px;
  font-family: var(--font-title);
  padding: 4px 10px;
  border-radius: var(--border-radius);
  background: var(--primary-gradient);
  color: #fff;
}

.projet-card--production .projet-card__badge {
  background: linear-gradient(-45deg, #112E45, #89497E);
}

.projet-card__meta {
  display: inline-block;
  font-size: 14px;
  padding: 4px 10px;
  opacity: 0.8;
  margin-top: 5px;
  line-height: 1.4;
}

.projet-card__thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.projet-card__thumb img {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: -2;
  object-fit: cover;
  object-position: top center;
}

.projet-card__content {
  position: absolute;
  z-index: 10;
  left: 20px;
  bottom: 0;
  width: calc(100% - 40px);
}


.projet-card__title::before {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  margin-bottom: 10px;
  background: var(--primary-gradient);
}

.projet-card__title {
  color: var(--text-color);
  text-decoration: none;
  font-size: 24px;
}

@media screen and (min-width: 768px) {
  .projets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .projet-card {
    text-align: left;
  }

  .projets-listing .container {
    text-align: center;
  }
}


/* SINGLE PROJET */ 

.single-projet {
  width: 100%;
  overflow-x: hidden;
}

.single-projet .home-hero__logo-ctn {
  left: 0;
  top: 20px !important;
  width: 40%;

  transform: translate(0, 0);
}

.admin-bar .single-projet .home-hero__logo-ctn {
  top: 65px !important;
}

.single-projet .container {
  padding-top: 0;
}

.single-projet__hero {
  width: 100vw !important;
  position: relative;
  left: -5%;
  height: 450px;
}

.single-projet h1 .post-title__information {
  display: block;
  font-size: 16px;
  filter:brightness(0.8);
}

.single-projet .wp-block-post-featured-image,
.single-projet .wp-post-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: top center;
}

.single-projet ul {
  padding-left: 20px;
}

.single-projet ul li {
  line-height: 160%;
}

.single-projet ul li::marker {
  font-size: 0.8rem;
}

.table-voix {
  border-collapse: collapse;
  width: 100%;
}

.table-voix thead,
.table-voix tr,
.table-voix th,
.table-voix td {
  border: 1px solid var(--text-color);
}

.table-voix th {
  padding: 10px;
  font-family: 'Gendy';
  font-size: 20px;
}

.table-voix td {
  width: 50%;
  text-align: left;
  padding: 5px 10px;
}

@media screen and (min-width: 768px) {
  .single-projet__hero {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    height: 100%;
    aspect-ratio: 16/8;
  }

  .single-projet .post-title {
    margin-top: 50px;
  }

  .section-synopsis {
    max-width: 600px;
  }

  .section-voix {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    align-items: flex-start;
    padding-bottom: 50px;
  }

  .section-voix__casting {
    width: 33%;
  }

  .table-voix {
    width: 67%;
    margin-top: 40px;
  }

  .table-voix td {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* FOOTER */

.site-footer {
  padding-bottom: 50px;
}

@media screen and (min-width: 768px) {
  .site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .site-footer .social-links {
    margin: 0;
  }
}

/* SINGLE PRODUCTION */
.section-equipe,
.section-collab,
.section-soutiens,
.section-teasers {
  margin-top: 60px;
}

.production-note {
  font-style: italic;
  opacity: 0.9;
  margin-top: 20px;
}

.teasers-grid {
  display: grid;
  gap: 30px;
  margin-top: 20px;
}

.teaser-video iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--border-radius);
}

@media screen and (min-width: 768px) {
  .teasers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* NOTRE ÉQUIPE */
.membre-card {
  margin-top: 100px;

  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 2rem;
}

.membre-card__thumb {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  background: #f5f5f5;
}

.membre-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.membre-card__name {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 24px;
  margin-bottom: 0;
  margin-top: 0;
}

.membre-card__role {
  font-size: 14px;
  opacity: 0.7;
  margin-top: 0;
  margin-bottom: 12px;
}

.membre-card__desc {
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.9;
  margin-bottom: 15px;
}

.membre-card__links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.membre-card__links a {
  transition: all 0.2s;
}
.membre-card__links a:hover {
  filter: brightness(1.2);
}

.membre-card__links__linkedin {
  display: block;
  width: 40px;
  height: 40px;
}

.membre-card__links__linkedin img {
  width: 100%;
  height: 100%;
}

@media screen and (min-width: 768px) {
  .membre-card {
    display: flex;
    gap: 10px;
  }

  
  .membre-card__thumb {
    aspect-ratio: 10/5;
  }

  .membre-card__thumb img {
    object-fit: top center;
  }

  .membre-card:nth-child(even) {
    flex-direction: row-reverse;
  }

  .membre-card__thumb,
  .membre-card__infos {
    position: relative;
    width: 50%;
    margin-bottom: 0;
  }

  .membre-card__links {
    position: absolute;
    bottom: 10px;
    right: 10px;
  }
}