/* --------------------
   BASE TYPO WANDAYANCE
-------------------- */

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111111;
  background-color: #000000; /* fond global sombre */
}

/* Titres premium : serif */
h1, h2, h3, h4, h5, h6,
.wm-heading-serif {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Hiérarchie des titres */

h1 {
  font-size: clamp(2.6rem, 3vw, 3.4rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 2.4vw, 2.6rem);
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.6rem, 2vw, 2rem);
  line-height: 1.3;
}

/* Kicker / sur-titres */

.wm-kicker {
  font-family: 'Montserrat', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: #cc0033;
}

/* Boutons génériques */

.wm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid #ffffff;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  background: transparent;
  transition: all 0.25s ease;
}

.wm-btn:hover {
  background: #ffffff;
  color: #000000;
}

/* Variante bouton rouge */

.wm-btn--red {
  border-color: #cc0033;
  background: #cc0033;
}

.wm-btn--red:hover {
  background: #ffffff;
  color: #cc0033;
}

/* --------------------
   STYLE "PERFORMANCE" OFFICIEL
-------------------- */

.wm-word-performance {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 3vw, 3rem);
  color: #cc0033;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------
   SECTIONS GLOBALES
-------------------- */

.wm-section {
  padding: 5rem 0;
}

.wm-section--dark {
  background: #050505;
  color: #f5f5f5;
}

.wm-section--light {
  background: #f5f5f5;
  color: #111111;
}

.wm-section-title {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: clamp(2rem, 2.6vw, 3rem);
  margin-bottom: 1rem;
}

.wm-section-subtitle {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.95rem;
  max-width: 640px;
}

/* --------------------
   HERO VIDEO WANDAYANCE
-------------------- */

.wm-hero-video {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.wm-hero-video video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 1;
  object-fit: cover;
  filter: brightness(0.92);
}

.wm-hero-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 2;
}

.wm-hero-video .elementor-widget-container,
.wm-hero-video .elementor-widget {
  position: relative;
  z-index: 3;
}

/* --------------------
   PLACEHOLDERS FUTURS BLOCS
-------------------- */

.wm-univers-grid { }
.wm-univers-card { }
.wm-sponsor-block { }
.wm-wytv { }
.wm-wandafoot { }
.wm-gear { }
.wm-footer { }

/* Media queries de base */

@media (max-width: 1024px) {
  .wm-section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 768px) {
  .wm-section {
    padding: 2.8rem 0;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.7rem;
  }
}

/* --------------------
   TRIPTYQUE WANDAYANCE
-------------------- */

.wm-triptyque-section {
  position: relative;
  overflow: hidden;
}

.wm-triptyque-grid {
  display: flex;
  gap: 1.75rem;
  align-items: stretch;
}

/* Carte de base */

.wm-triptyque-col {
  position: relative;
  flex: 1;
  min-height: 380px;
  border-radius: 26px;
  padding: 2.4rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.45s ease, box-shadow 0.45s ease, filter 0.45s ease;
}

/* Overlay sombre */

.wm-triptyque-col::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.45) 40%,
    rgba(0,0,0,0.75) 100%
  );
  z-index: 0;
}

.wm-triptyque-col > * {
  position: relative;
  z-index: 1;
}

/* Hover premium */

.wm-triptyque-col:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.75);
}

.wm-triptyque-col:hover::before {
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.6) 40%,
    rgba(0,0,0,0.88) 100%
  );
}

/* Titres triptyque */

.wm-word-performance,
.wm-word-resilience,
.wm-word-excellence {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-weight: 700;
  font-size: clamp(2rem, 2.3vw, 2.6rem);
  color: #cc0033;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

/* Texte descriptif */

.wm-triptyque-col p {
  font-size: 0.95rem;
  max-width: 340px;
}

.wm-triptyque-col--performance { }
.wm-triptyque-col--resilience { }
.wm-triptyque-col--excellence { }

/* Responsive triptyque */

@media (max-width: 1024px) {
  .wm-triptyque-grid {
    gap: 1.2rem;
  }
  .wm-triptyque-col {
    min-height: 320px;
    padding: 2rem 1.8rem;
  }
}

@media (max-width: 768px) {
  .wm-triptyque-grid {
    flex-direction: column;
  }
  .wm-triptyque-col {
    min-height: 260px;
  }
}

/* ---------------------------------------------------
   WANDA MEDIA – GRID (6 blocs : SPORT / CULTURE / LIFE /
   BIZ / HUB / WANDAFOOT)
   Objectif : rendu premium, aligné, sans scroll horizontal
--------------------------------------------------- */

/* Sécurisation des conteneurs Elementor */

.elementor-section .wm-media-grid,
.elementor-container .wm-media-grid {
  max-width: 100%;
  box-sizing: border-box;
}

/* GRID PRINCIPALE */

.wm-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

/* Carte */

.wm-card {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  border-radius: 18px;
  overflow: hidden;
  background-color: #000000;
  /* ratio vertical type "affiche" pour un rendu magazine */
  aspect-ratio: 4 / 5;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

/* Image dans la carte */

.wm-card-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.35s ease, filter 0.35s ease;
}

/* Hover premium */

.wm-card:hover .wm-card-img {
  transform: scale(1.06);
  filter: brightness(1.02) contrast(1.05);
}

/* Responsive Wanda Media */

@media (max-width: 1024px) {
  .wm-media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
  }
}

@media (max-width: 767px) {
  .wm-media-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 0 1rem;
  }

  .wm-card {
    aspect-ratio: 4 / 5;
    border-radius: 14px;
  }
}

/* ---------------------------------------------------
   WANDA ÉDITIONS – HERO
   Objectif : image centrale premium, CTA non rogné
--------------------------------------------------- */

.wm-editions-hero {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  padding: 2rem 1rem 0 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: visible;
}

.wm-editions-hero .wm-editions-img {
  width: 100%;
  max-width: 420px; /* taille premium sur desktop */
  height: auto;
  display: block;
  margin: 0 auto 1.5rem auto;
  object-fit: contain;
}

/* Titre + sous-titre éventuels dans la section hero */

.wm-editions-hero-title {
  margin-bottom: 0.4rem;
}

.wm-editions-hero-subtitle {
  max-width: 640px;
  margin: 0 auto 1.8rem auto;
}

/* CTA sous l’image */

.wm-editions-hero .wm-btn,
.wm-editions-hero .wm-btn--red {
  margin-top: 0.5rem;
}

/* Responsive hero */

@media (min-width: 1025px) {
  .wm-editions-hero {
    padding-top: 2.5rem;
  }

  .wm-editions-hero .wm-editions-img {
    max-width: 460px;
  }
}

@media (max-width: 767px) {
  .wm-editions-hero {
    margin-bottom: 2.5rem;
  }

  .wm-editions-hero .wm-editions-img {
    max-width: 320px;
    margin-bottom: 1.2rem;
  }
}

/* ---------------------------------------------------
   WANDA ÉDITIONS – GRID (2 cartes : ESSAIS / ROMANS)
   Objectif : 2 colonnes élégantes en desktop,
   1 colonne fluide en mobile, images non rognées
--------------------------------------------------- */

/* Sécurisation conteneurs */

.elementor-section .wm-editions-grid,
.elementor-container .wm-editions-grid {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Grille principale */

.wm-editions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  width: 100%;
  padding: 0 1rem 3rem 1rem;
  box-sizing: border-box;
}

/* Carte */

.wm-editions-card {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  background-color: #050505;
  border-radius: 22px;
  padding: 1.8rem 1.8rem 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
}

/* Image dans la carte */

.wm-editions-card .wm-editions-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto 1.4rem auto;
  object-fit: contain;
}

/* Texte dans la carte */

.wm-editions-card-title {
  margin-bottom: 0.6rem;
}

.wm-editions-card-subtitle {
  max-width: 420px;
  margin: 0 auto 1.4rem auto;
}

/* CTA dans la carte */

.wm-editions-card .wm-btn,
.wm-editions-card .wm-btn--red {
  margin-top: 0.3rem;
}

/* Responsive grid Éditions */

@media (max-width: 880px) {
  .wm-editions-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
  }

  .wm-editions-card {
    border-radius: 18px;
  }

  .wm-editions-card .wm-editions-img {
    max-width: 280px;
  }
}

@media (max-width: 767px) {
  .wm-editions-grid {
    padding: 0 1rem 2.5rem 1rem;
    gap: 1.8rem;
  }

  .wm-editions-card {
    padding: 1.6rem 1.4rem 1.8rem 1.4rem;
  }

  .wm-editions-card .wm-editions-img {
    max-width: 260px;
    margin-bottom: 1.2rem;
  }
}

/* ---------------------------------------
   PATCH VISUEL – WANDA ÉDITIONS (hero + CTA)
---------------------------------------- */

/* Empêcher tout rognage de l'image hero */
.wm-editions-hero {
  overflow: visible;
}

/* Image hero mieux contenue, non pixelisée ni coupée */
.wm-editions-hero .wm-editions-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 1.5rem;
}

/* Plus d'air sous le bouton CTA pour éviter qu'il paraisse rogné */
.wm-editions-card .wm-btn,
.wm-editions-card .wm-btn--red {
  margin-bottom: 2.8rem;
}

/* Sur desktop : section hero plus “magazine”, bien centrée */
@media (min-width: 1025px) {
  .wm-editions-hero {
    max-width: 1180px;
    margin: 0 auto 4rem;
    padding-top: 2.5rem;
  }

  /* Si la structure Elementor place plusieurs colonnes dans .wm-editions-hero */
  .wm-editions-hero > .elementor-container,
  .wm-editions-hero > .elementor-container > .elementor-column {
    align-items: center;
  }
}
/* ================================
   PATCH WANDA ÉDITIONS – 02/12
   ================================ */

/* Desktop ≥ 1025px : bandeau horizontal scrollable, vignettes réduites */
@media (min-width: 1025px) {
  .wm-editions-grid {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0 3rem;
  }

  .wm-editions-card {
    flex: 0 0 260px;      /* largeur fixe de la carte */
    max-width: 260px;
    margin: 0;
    background: #000;
    border-radius: 18px;
    padding: 1.4rem 1.4rem 1.8rem;
  }

  .wm-editions-card .wm-editions-img {
    display: block;
    max-width: 220px;
    margin: 0 auto 1.2rem; /* visuel bien centré */
  }
}

/* Tablette 768–1024px : cartes centrées, plus de respiration à gauche/droite */
@media (min-width: 768px) and (max-width: 1024px) {
  .wm-editions-grid {
    display: grid;
    grid-template-columns: 1fr;      /* une carte par ligne */
    justify-items: center;
    padding: 2rem 2.5rem 3rem;       /* marge intérieure gauche/droite */
  }

  .wm-editions-card {
    max-width: 420px;
    width: 100%;
    background: #000;
    border-radius: 18px;
    padding: 1.6rem 1.6rem 1.9rem;
  }

  .wm-editions-card .wm-editions-img {
    max-width: 260px;
    margin: 0 auto 1.4rem;
  }
}

/* Mobile ≤ 767px : on garde la logique actuelle mais on ajoute un léger padding horizontal */
@media (max-width: 767px) {
  .wm-editions-grid {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }
}
/* ================================
   PATCH WANDA MÉDIA – 6 univers
   ================================ */

/* Tablette : 2 colonnes (donc 2 lignes de 3 avec 6 éléments) */
@media (min-width: 768px) and (max-width: 1024px) {
  .wm-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
  }
}

/* Desktop : une seule ligne de vignettes, look premium */
@media (min-width: 1025px) {
  .wm-media-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
  }

  .wm-media-card {
    max-width: 260px;
    flex: 0 0 260px;
  }

  .wm-media-card img {
    display: block;
    width: 100%;
    height: auto;
  }
}
/* =====================================================
   PATCH WM 2025-12-02 – MEDIA & EDITIONS RESPONSIVE
   ===================================================== */

/* 0. Images : plus jamais rognées */
.wm-media-card img,
.wm-editions-card img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;  /* au lieu de cover => plus de rognage */
}

/* 1. MOBILE (≤ 767px) – colonne unique, centrée */
@media (max-width: 767px) {

  /* Grille WANDA MEDIA : 1 colonne, visuels centrés */
  .wm-media-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.6rem;
    max-width: 480px;
    margin: 0 auto;
  }

  .wm-media-card {
    margin: 0 auto;
  }

  /* Grille WANDA ÉDITIONS : visuels centrés et non rognés */
  .wm-editions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
    max-width: 480px;
    margin: 0 auto;
  }

  .wm-editions-card {
    margin: 0 auto;
  }
}

/* 2. TABLETTE (768px – 1024px) – 2 colonnes pour WANDA MEDIA */
@media (min-width: 768px) and (max-width: 1024px) {

  /* WANDA MEDIA sur 2 colonnes */
  .wm-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto;
  }

  .wm-media-card {
    max-width: 320px;
    margin: 0 auto;
  }

  /* WANDA ÉDITIONS : cartes réduites et centrées */
  .wm-editions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.2rem;
    max-width: 960px;
    margin: 0 auto;
  }

  .wm-editions-card {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* 3. DESKTOP (≥ 1025px) – ligne horizontale scrollable + cartes réduites */
@media (min-width: 1025px) {

  /* WANDA MEDIA : 1 ligne horizontale scrollable */
  .wm-media-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 2.4rem;
    overflow-x: auto;
    padding: 0 4vw 2.4rem;
  }

  .wm-media-card {
    flex: 0 0 260px;   /* largeur fixe des vignettes */
    max-width: 260px;
  }

  /* WANDA ÉDITIONS : harmonisation avec WANDA MEDIA */
  .wm-editions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.4rem;
    max-width: 1120px;
    margin: 0 auto 3rem;
  }

  .wm-editions-card {
    flex: 0 0 260px;
    max-width: 260px;
  }
}
