/*==================================
  REFONTE - CSS BASÉ SUR LA MAQUETTE
  Intégré pour WordPress
==================================*/

/*==================================
  GLOBAL STYLES & VARIABLES
==================================*/
:root {
  --bg: #000d2e;
  --card: #002288;
  --accent: rgba(255, 255, 255, 0.06);
}

/* RESET COMPLET POUR LA REFONTE */
.refonte-accueil {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial !important;
  color: #fff !important;
  background: var(--bg) !important;
  overflow-x: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

.refonte-accueil *,
.refonte-accueil *::before,
.refonte-accueil *::after {
  box-sizing: border-box !important;
}

/* Reset du body pour supprimer les marges/padding WordPress */
body.refonte-accueil {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--bg) !important;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial !important;
  color: #fff !important;
  min-height: 100vh !important;
}

/* Reset HTML */
html {
  margin: 0 !important;
  padding: 0 !important;
}

.refonte-accueil html {
  background: var(--bg) !important;
}

/* Surcharger tous les éléments de base */
.refonte-accueil h1,
.refonte-accueil h2,
.refonte-accueil h3,
.refonte-accueil h4,
.refonte-accueil h5,
.refonte-accueil h6 {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial !important;
  color: #fff !important;
  background: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left !important;
  letter-spacing: normal !important;
}

.refonte-accueil a {
  color: #fff !important;
  text-decoration: none !important;
}

.refonte-accueil a:hover {
  color: #c0c0c0 !important;
}

/* Supprimer les containers WordPress */
.refonte-accueil .container,
.refonte-accueil .main {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

/*==================================
  LAYOUT & COMMON ELEMENTS
==================================*/

/* Override WordPress header pour la refonte */
.refonte-accueil .main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  background: rgba(0, 13, 46, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.refonte-accueil .main-header .brand {
  display: flex;
  align-items: center;
}

.refonte-accueil .main-header .brand img {
  max-height: 40px;
  width: auto;
}

/* Transparent sur le hero */
.refonte-accueil .main-header.transparent {
  background: rgba(0, 13, 46, 0.7);
  backdrop-filter: blur(8px);
}

/* Assurer que le contenu ne passe pas sous la navbar fixe */
.refonte-accueil .hero {
  margin-top: 0;
}

.refonte-accueil main {
  padding-top: 80px;
}

.refonte-accueil .main-header .brand img {
  max-height: 30px;
}

.refonte-accueil .main-header .nav {
  display: flex;
  gap: 100px;
  align-items: center;
  flex-grow: 1;
  justify-content: center;
  margin-top: 8px;
}

.refonte-accueil .main-header .nav a {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.refonte-accueil .main-header .nav a:hover {
  color: #c0c0c0;
}

.refonte-accueil .main-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  filter: blur(6px);
}

/* SEARCH BAR */
.refonte-accueil .header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.refonte-accueil .search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.refonte-accueil .search-input {
  width: 0;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 50px;
  background-color: transparent;
  color: #fff;
  font-size: 16px;
  transition: width 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.refonte-accueil .search-container.active .search-input {
  width: 250px;
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  opacity: 1;
  pointer-events: auto;
}

.refonte-accueil .search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.refonte-accueil .search-toggle svg {
  color: #fff;
  width: 24px;
  height: 24px;
}

/* HERO SECTION */
.refonte-accueil .hero {
  position: relative;
  min-height: 85vh;
  overflow: hidden;
}

/* HERO CAROUSEL */
.refonte-accueil .hero-carousel-track {
    display: flex;
    height: 85vh;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.refonte-accueil .hero-slide {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    position: relative;
}

.refonte-accueil .hero-slide-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(.80) saturate(.95);
}

/* Container pour les vidéos Vidyard dans le hero */
.refonte-accueil .vidyard-hero-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.refonte-accueil .vidyard-hero-container .vidyard-player-embed {
  width: 100% !important;
  height: 100% !important;
}

/* Masquer spécifiquement les boutons de lecture Vidyard */
.refonte-accueil [data-vyrd-element="play-button"],
.refonte-accueil .vyrd-play-btn,
.refonte-accueil button[aria-label*="Play"],
.refonte-accueil .vyrd-player-play-button {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Style plus spécifique pour les boutons dans les players */
.refonte-accueil .vidyard-player-embed [data-vyrd-element="play-button"],
.refonte-accueil .vidyard-player-embed .vyrd-play-btn,
.refonte-accueil .vidyard-player-embed .vyrd-player-play-button {
  display: none !important;
}

.refonte-accueil .hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(0, 7, 36, 0.1) 20%, rgba(0, 7, 36, 0) 50%, rgba(0, 7, 36, 0.1) 80%, var(--bg) 100%);
  z-index: 1;
}

.refonte-accueil .hero__content {
  position: absolute;
  bottom: 200px;
  left: 6vw;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  text-align: left;
}

.refonte-accueil .hero__title {
  font-size: clamp(22px, 5.6vw, 52px);
  line-height: 1.15;
  margin-bottom: 40px;
  font-weight: 800;
  word-break: break-word;
  text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.7);
}

.refonte-accueil .hero__subtitle {
  font-size: clamp(14px, 2.4vw, 20px);
  font-weight: 600;
  opacity: 0.95;
  margin: 0 0 18px;
  text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.7);
}

/* TAGS */
.refonte-accueil .hero-tags {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.refonte-accueil .tag {
  background: rgba(19, 19, 19, 0.4);
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 20px;
  font-weight: 600;
  opacity: 1;
  color: #fff;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* BOUTON HERO */
.refonte-accueil .hero-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #fff !important;
  color: #000 !important;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: transform 0.3s ease, background-color 0.3s ease;
  margin-top: 20px;
  margin-bottom: 20px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  font-size: 16px !important;
}

.refonte-accueil .hero-button svg {
  color: #000 !important;
}

.refonte-accueil .hero-button:hover {
  transform: scale(1.05);
  background-color: #e6e6e6;
}

/* FLÈCHES DU CARROUSEL HERO */
.refonte-accueil .hero-carousel-arrows {
  position: absolute;
  bottom: 50px;
  right: 6vw;
  display: flex;
  gap: 15px;
  z-index: 10;
  margin-bottom: 50px;
}

.refonte-accueil .hero-carousel-arrows .arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.refonte-accueil .hero-carousel-arrows .arrow:hover {
  background: rgba(255, 255, 255, 0.4);
}

.refonte-accueil .hero-carousel-arrows .arrow svg {
  color: #fff;
  width: 24px;
  height: 24px;
}

/* CAROUSEL */
.refonte-accueil .carousel-wrap {
  padding: 40px 0;
  background: linear-gradient(180deg, rgba(15, 15, 18, 0) 0%, rgba(12, 12, 15, 1) 70%);
}

.refonte-accueil .row {
  position: relative;
  padding: 0 3vw 34px;
}

.refonte-accueil .row + .row {
  margin-top: 6px;
}

.refonte-accueil .row-title {
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 700;
  margin: 0 0 14px 3.2vw;
  opacity: 0.95;
}

.refonte-accueil .viewport {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.refonte-accueil .viewport::-webkit-scrollbar {
  display: none;
}

.refonte-accueil .track {
  display: flex;
  gap: 18px;
  position: relative;
  padding: 46px 3vw;
}

.refonte-accueil .slide {
  flex: 0 0 400px;
  height: 300px;
  background: #0f0f12;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .28s ease, box-shadow .28s ease;
  z-index: 1;
  text-decoration: none;
  color: inherit;
}

.refonte-accueil .slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Changé de cover à contain pour voir l'image entière */
  object-position: center;
  display: block;
  z-index: 1;
  background: #000; /* Fond noir pour les bandes */
}

/* Container pour les vidéos Vidyard dans les slides */
.refonte-accueil .slide .vidyard-hover-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.refonte-accueil .slide.is-active .vidyard-hover-container {
  z-index: 2 !important;
  opacity: 1 !important;
}

.refonte-accueil .slide.is-active .vidyard-hover-container .vidyard-player-embed {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 10 !important;
}

.refonte-accueil .slide .vidyard-hover-container .vidyard-player-embed {
  width: 100% !important;
  height: 100% !important;
}

.refonte-accueil .slide .hover-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.refonte-accueil .slide.is-active .hover-card video {
  z-index: 2;
  opacity: 1;
}

.refonte-accueil .slide .meta {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.refonte-accueil .slide:hover .meta {
  opacity: 1;
}

.refonte-accueil .slide .info {
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  font-size: 13px;
  line-height: 1.35;
  z-index: 6;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.refonte-accueil .slide:hover .info {
  opacity: 1;
  pointer-events: auto;
}

.refonte-accueil .slide .info .title {
  font-weight: 800;
  margin-bottom: 4px;
  font-size: 2rem;
}

.refonte-accueil .slide .info .line {
  opacity: .9;
}

.refonte-accueil .slide .info .btn {
  display: inline-block;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  padding: 5px;
  margin-top: 10px;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 12px;
  color: #fff;
  text-align: center;
}

.refonte-accueil .slide .info .synopsis {
  opacity: .8;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.refonte-accueil .slide:hover {
  transform: scale(1.25);
  z-index: 100;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.85);
}

.refonte-accueil .slide:hover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0.9) 100%);
}

.refonte-accueil .arrow {
  position: absolute;
  top: 46%;
  transform: translateY(-50%);
  z-index: 200;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
  backdrop-filter: blur(10px);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
  color: #fff;
  font-size: 18px;
}

.refonte-accueil .arrow:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

/* CACHER ELEMENTS VIDYARD INDESIRABLES */
.refonte-accueil .vidyard-player-embed [data-vyrd-element="play-button"],
.refonte-accueil .vidyard-player-embed .vyrd-play-btn,
.refonte-accueil .vidyard-player-embed .vyrd-player-play-button,
.refonte-accueil .vidyard-player-embed [class*="play-button"],
.refonte-accueil .vidyard-player-embed [class*="play-btn"],
.refonte-accueil .vidyard-player-embed button[aria-label*="Play"],
.refonte-accueil .vidyard-player-embed [data-vyrd-element="mute-button"],
.refonte-accueil .vidyard-player-embed [class*="mute"],
.refonte-accueil .vidyard-player-embed [class*="volume"],
.refonte-accueil .vidyard-player-embed [class*="sound"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}

.refonte-accueil .arrow.left {
  left: 1.2vw
}

.refonte-accueil .arrow.right {
  right: 1.2vw
}

/* PROMO SECTIONS */
.refonte-accueil .promo-ad-section {
  background: linear-gradient(180deg, var(--bg), #32439a, var(--bg));
  display: flex;
  justify-content: center;
  padding: 40px 3vw;
  margin-bottom: 2rem;
}

.refonte-accueil .promo-ad-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 2250px;
}

.refonte-accueil .promo-ad-image-block {
  flex-basis: 60%;
  position: relative;
}

.refonte-accueil .promo-ad-text-block {
  color: #fff;
  flex-basis: 40%;
  padding-left: 100px;
}

.refonte-accueil .ad-title {
  font-size: 3rem;
  font-weight: 600;
  opacity: 0.8;
}

.refonte-accueil .ad-subtitle {
  font-size: 2rem;
  font-weight: 800;
  margin: 8px 0;
}

.refonte-accueil .ad-description {
  font-size: 1.5rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.refonte-accueil .ad-button {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.refonte-accueil .ad-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.refonte-accueil .desktop-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.refonte-accueil .mobile-image {
  display: none;
}

.refonte-accueil .promo-reverse-section {
  background: linear-gradient(180deg, var(--bg), #32439a, var(--bg));
  display: flex;
  justify-content: center;
  padding: 40px 3vw;
  margin-bottom: 2rem;
}

.refonte-accueil .promo-reverse-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 2250px;
}

.refonte-accueil .promo-reverse-text-block {
  color: #fff;
  flex-basis: 40%;
  padding-right: 100px;
}

.refonte-accueil .promo-reverse-image-block {
  flex-basis: 60%;
  position: relative;
}

.refonte-accueil .reverse-title {
  font-size: 3rem;
  font-weight: 600;
  opacity: 0.8;
}

.refonte-accueil .reverse-subtitle {
  font-size: 2rem;
  font-weight: 800;
  margin: 8px 0;
}

.refonte-accueil .reverse-description {
  font-size: 1.5rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.refonte-accueil .reverse-button {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.refonte-accueil .reverse-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.refonte-accueil .desktop-reverse-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.refonte-accueil .mobile-reverse-image {
  display: none;
}

/*==================================
  RESPONSIVE & MOBILE
==================================*/

/* MENU BURGER */
.refonte-accueil .burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
}

.refonte-accueil .burger-menu .bar {
  width: 100%;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease-in-out;
}

.refonte-accueil .burger-menu.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.refonte-accueil .burger-menu.active .bar:nth-child(2) {
  opacity: 0;
}

.refonte-accueil .burger-menu.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1100px) {
  .refonte-accueil .main-header {
    padding: 12px 18px;
  }
  
  .refonte-accueil .main-header .nav {
    display: none;
  }
  
  .refonte-accueil .burger-menu {
    display: flex;
  }

  .refonte-accueil .main-header .nav.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 99;
  }

  .refonte-accueil .header-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .refonte-accueil .search-container.active .search-input {
    width: 180px;
  }
}

@media (max-width: 1000px) {
  .refonte-accueil .promo-ad-container,
  .refonte-accueil .promo-reverse-container {
    flex-direction: column;
    text-align: center;
  }
  .refonte-accueil .promo-ad-text-block,
  .refonte-accueil .promo-reverse-text-block {
    padding: 0;
    margin-top: 20px;
  }
  .refonte-accueil .promo-ad-image-block {
    order: 1;
  }
  .refonte-accueil .promo-ad-text-block {
    order: 2;
  }
  .refonte-accueil .promo-reverse-image-block {
    order: 1;
  }
  .refonte-accueil .promo-reverse-text-block {
    order: 2;
  }
  .refonte-accueil .desktop-image,
  .refonte-accueil .desktop-reverse-image {
    display: none;
  }
  .refonte-accueil .mobile-image,
  .refonte-accueil .mobile-reverse-image {
    display: block;
    width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .refonte-accueil .promo-ad-section,
  .refonte-accueil .promo-reverse-section {
    padding: 40px 3vw;
  }
  .refonte-accueil .promo-ad-container,
  .refonte-accueil .promo-reverse-container {
    flex-direction: column;
    text-align: center;
  }
  .refonte-accueil .promo-ad-text-block,
  .refonte-accueil .promo-reverse-text-block {
    padding: 0;
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .refonte-accueil .hero {
    min-height: 75vh;
  }
  .refonte-accueil .carousel-wrap {
    padding: 24px 0;
  }
  .refonte-accueil .hero__title {
    font-size: 20px;
    line-height: 1.3;
  }
  .refonte-accueil .slide {
    flex: 0 0 clamp(58vw, 33vw, 280px);
    height: clamp(140px, 26vw, 220px);
  }
}

/*==================================
  FOOTER
==================================*/
.refonte-accueil .main-footer {
  padding: 2rem 0 !important;
  margin-top: 4rem !important;
  background: var(--bg) !important;
  color: #fff !important;
}

.refonte-accueil .footer-container {
  color: #fff !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  text-align: center !important;
}

.refonte-accueil .footer-links {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 40px !important;
  margin-bottom: 20px !important;
}

.refonte-accueil .footer-links a {
  color: #fff !important;
  text-decoration: none !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  transition: color 0.3s ease !important;
}

.refonte-accueil .footer-links a:hover {
  color: #ccc !important;
}

.refonte-accueil .footer-info {
  color: #fff !important;
}

.refonte-accueil .footer-info p {
  color: #fff !important;
}

/*==================================
  HOVER VIDEO CONTAINERS
==================================*/
.refonte-accueil .vidyard-hover-container {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  transition: opacity 0.3s ease !important;
  border-radius: inherit !important;
  overflow: hidden !important;
}

.refonte-accueil .vidyard-hero-container {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 2 !important;
  border-radius: inherit !important;
  overflow: hidden !important;
}

.refonte-accueil .slide img {
  position: relative !important;
  z-index: 2 !important;
  transition: opacity 0.3s ease !important;
}