/*
================================================================
NYMERIA Corp — Feuille de style CSS (thème enfant GeneratePress)
================================================================
Ce fichier contient TOUT le design du site.

Comment lire ce fichier :
  - Les commentaires comme celui-ci expliquent ce que fait chaque partie
  - Les variables CSS (`var(--ny-bg)`) sont définies dans la section :root
    en haut. Si on change une couleur ici, ça change partout dans le site.

Plan du fichier :
  1. Variables (couleurs, polices, tailles)
  2. Styles de base (body, h1, h2, liens...)
  3. Header (navbar sombre, logo, menu)
  4. Sélecteur de langue (drapeaux FR/EN/AR)
  5. Composants : hero, cartes, boutons, formulaires
  6. Carousel de jeux (page d'accueil)
  7. Footer
  8. Responsive (téléphone, tablette)
  9. RTL (arabe : écriture de droite à gauche)

Charte graphique (cahier des charges) :
  - Couleur fond : #141416 (gris très foncé)
  - Couleur accent : #7B0112 (rouge bordeaux)
  - Police titres : Montserrat
  - Police corps : Roboto

Auteur : Groupe G41 — LIMAM · MOURTAZOVA
Date : Mai 2026

Theme Name:  Nymeria Light
Description: Thème enfant GeneratePress pour NYMERIA Corp.
Author:      NYMERIA Corp — G41
Template:    generatepress
Version:     1.0.0
*/


/* ============================================================
   1. VARIABLES CSS — Centralisation des couleurs du site
   ============================================================
   Si on change une valeur ici, elle change automatiquement
   partout où elle est utilisée dans le site. Pratique !
*/
:root {
  /* Fonds (du plus clair au plus foncé) */
  --ny-bg:        #141416;  /* Couleur exacte du cahier des charges */
  --ny-bg-alt:    #0f0f11;  /* Section alternée (plus foncée) */
  --ny-bg-card:   #1e1e20;  /* Fond des cartes (légèrement plus clair) */
  --ny-bg-dark:   #0a0a0c;  /* Le plus foncé (rare) */

  /* Bordures */
  --ny-border:      rgba(255,255,255,.1);
  --ny-border-soft: rgba(255,255,255,.06);

  /* Couleur principale — rouge bordeaux (cahier des charges) */
  --ny-accent:      #7B0112;
  --ny-accent-hover:#a30219;
  --ny-accent-soft: rgba(123, 1, 18, 0.15);

  /* Textes */
  --ny-text:       #ffffff;
  --ny-text-soft:  rgba(255,255,255,.7);
  --ny-text-muted: rgba(255,255,255,.45);
  --ny-text-dim:   rgba(255,255,255,.28);
  --ny-text-light: #ffffff;

  /* Rayons arrondis */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  22px;
  --r-pill: 999px;

  /* Ombres */
  --shadow-sm: 0 2px 8px rgba(0,0,0,.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.5);
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: var(--ny-bg) !important;
  color: var(--ny-text);
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--ny-text);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Tailles des titres (en pixels, simple à comprendre) */
h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; }
h3 { font-size: 1.2rem; }

p { color: var(--ny-text-soft); }
a { color: var(--ny-text); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ny-accent); }
img { max-width: 100%; display: block; }
::selection { background: var(--ny-accent); color: #fff; }

/* GeneratePress — écraser les variables GP avec le dark theme */
:root {
  --base:   #141416 !important;
  --base-2: #141416 !important;
  --base-3: #141416 !important;
  --contrast: #ffffff !important;
  --contrast-2: rgba(255,255,255,.65) !important;
  --contrast-3: rgba(255,255,255,.35) !important;
  --accent: #7B0112 !important;
}

.site-content,
.site-main,
.footer-widgets,
.generate-back-to-top { background: var(--ny-bg) !important; }
.entry-content, .page-content { color: var(--ny-text) !important; background: transparent !important; }

/* Inputs en dark */
input[type="text"],input[type="email"],input[type="url"],input[type="password"],
input[type="search"],input[type="tel"],input[type="number"],textarea,select {
  background: #232325 !important;
  border-color: rgba(255,255,255,.12) !important;
  color: #fff !important;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.35) !important; }

/* Cacher le titre de page par défaut (on a nos propres heroes) */
.page .entry-header,
.page .entry-title { display: none !important; }

.page .entry-content a { text-decoration: none; }

/* ============================================================
   HEADER — fond sombre, une seule ligne, pleine largeur
   ============================================================ */
.site-header,
#site-header,
#site-navigation,
.main-navigation,
.main-navigation .inside-navigation,
.mobile-menu-control-wrapper {
  background: #1d1d1f !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: none !important;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}

/* Une seule ligne : neutraliser le wrap forcé par has-inline-mobile-toggle */
.inside-header {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  min-height: 68px !important;
  max-width: 100% !important;
  /* Le padding est défini plus bas (11rem à gauche pour le logo, 10rem à droite pour les drapeaux) */
}
.has-inline-mobile-toggle .inside-header { flex-wrap: nowrap !important; }
#site-navigation { flex-basis: auto !important; flex: 1 1 auto !important; }
.inside-navigation { padding: 0 !important; }

/* Navigation */
.main-navigation ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items {
  font-family: 'Roboto', sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.88rem !important;
  color: rgba(255,255,255,.8) !important;
  letter-spacing: 0.01em;
  transition: color .2s;
}
.main-navigation ul li a:hover,
.main-navigation ul .current-menu-item > a {
  color: #fff !important;
}

/* Sous-menus */
.main-navigation ul ul {
  background: #2a2a2e !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.4) !important;
}
.main-navigation ul ul li a {
  color: rgba(255,255,255,.75) !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
  padding: 10px 18px !important;
}
.main-navigation ul ul li:last-child a { border-bottom: none !important; }
.main-navigation ul ul li a:hover { color: #fff !important; }

/* Logo : plus grand, collé à gauche */
.site-branding-container { flex-shrink: 0; margin-right: 2rem; }
.site-logo img,
.header-image.is-logo-image {
  max-height: 68px !important;
  width: auto !important;
  object-fit: contain;
  display: block;
}

/* Masquer le texte du titre à côté du logo */
.site-title,
.site-description,
.main-title,
.site-branding p,
.site-branding span,
#site-title,
.generate-site-title { display: none !important; }

/* Supprimer la sidebar et son espace */
#sidebar-primary,
.sidebar,
.widget-area,
.generate-sidebar { display: none !important; }

/* Forcer pleine largeur (GP contraint à 1200px par défaut, on retire partout) */
.site.grid-container,
.site.container,
body .grid-container.container,
.content-area,
#content,
.site-main,
.site-content > .grid-container,
.site-main > .grid-container,
.content-area .grid-container { width: 100% !important; max-width: 100% !important; padding: 0 !important; float: none !important; }

/* Le header et la navbar gardent leur padding interne pour le confort */
.inside-header.grid-container { padding: 0 1.5rem !important; }
.inside-navigation.grid-container { padding: 0 !important; }

/* Supprimer la boîte blanche GP + tout padding/margin parasite */
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.inside-article,
.entry-header,
.entry-footer { background: transparent !important; padding: 0 !important; box-shadow: none !important; border-radius: 0 !important; margin: 0 !important; }

/* Zéro gap entre navbar et premier élément de page */
.site-content, .site-main, #content { padding: 0 !important; margin: 0 !important; }
.wp-block-html, .wp-block-group, .wp-block { margin: 0 !important; }
.entry-content, .page-content { max-width: 100% !important; padding: 0 !important; margin: 0 !important; }

/* Liens dans le contenu : couleur blanche */
.entry-content p a { color: rgba(255,255,255,.8); }
.entry-content p a:hover { color: #fff; }

/* ============================================================
   SWITCHER DE LANGUE (injecté via JS)
   ============================================================ */
/* Header figé : logo à gauche, drapeaux à droite, menu au milieu.
   On utilise position:absolute pour figer logo et drapeaux,
   peu importe la langue (FR/EN/AR). */
.site-header,
.inside-header,
.main-navigation { direction: ltr !important; }

/* Le header est le repère pour le positionnement absolu.
   On augmente les paddings pour éviter que le menu passe sous le logo
   à gauche ou sous les drapeaux à droite. */
.inside-header {
  position: relative !important;
  padding-left: 11rem !important;   /* espace pour le logo (68px + marge) */
  padding-right: 10rem !important;  /* espace pour les drapeaux */
}

/* Logo : TOUJOURS à gauche, position figée */
.site-branding-container {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 !important;
  z-index: 5;
}

/* Drapeaux : TOUJOURS à droite, position figée */
.ny-lang-switch {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
  z-index: 5;
}

.ny-lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  opacity: 0.55;
  filter: grayscale(40%);
  transition: all .2s;
}

.ny-lang-switch a:hover { opacity: 1; filter: none; transform: scale(1.08); }
.ny-lang-switch a.is-active {
  opacity: 1; filter: none;
  box-shadow: 0 0 0 2px var(--ny-accent), 0 4px 12px rgba(123,1,18,.3);
}

/* Drapeaux : on utilise les bandes de couleurs des drapeaux nationaux.
   Méthode simple : 3 bandes verticales avec linear-gradient. */
.ny-flag {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
}

/* Drapeau français : bleu / blanc / rouge */
.ny-flag-fr {
  background: linear-gradient(to right, #002654 33%, #ffffff 33%, #ffffff 66%, #ce1126 66%);
}

/* Drapeau anglais (Royaume-Uni simplifié) : croix blanche et rouge sur fond bleu */
.ny-flag-en {
  background: #012169;
  position: relative;
}
.ny-flag-en::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 45%, #ffffff 45%, #ffffff 55%, transparent 55%),
    linear-gradient(to right, transparent 45%, #ffffff 45%, #ffffff 55%, transparent 55%);
}
.ny-flag-en::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 47%, #ce1126 47%, #ce1126 53%, transparent 53%),
    linear-gradient(to right, transparent 47%, #ce1126 47%, #ce1126 53%, transparent 53%);
}

/* Drapeau arabe (Arabie saoudite simplifié) : fond vert avec une bande blanche */
.ny-flag-ar {
  background: #006c35;
  position: relative;
}
.ny-flag-ar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 65%, #ffffff 65%, #ffffff 72%, transparent 72%);
}

/* ============================================================
   BOUTONS
   ============================================================ */
.ny-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all .25s ease;
}

.ny-btn-primary { background: var(--ny-accent); color: #fff; }
.ny-btn-primary:hover { background: var(--ny-accent-hover); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(123,1,18,.3); color: #fff; }

.ny-btn-dark { background: var(--ny-bg-dark); color: #fff; }
.ny-btn-dark:hover { background: #000; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.2); color: #fff; }

.ny-btn-ghost { background: transparent; border: 1px solid var(--ny-border); color: var(--ny-text); }
.ny-btn-ghost:hover { border-color: var(--ny-text); color: var(--ny-text); }

.wp-block-button__link {
  border-radius: var(--r-pill) !important;
  font-family: 'Roboto', sans-serif !important;
  font-weight: 500 !important;
  background: var(--ny-accent) !important;
  color: #fff !important;
  padding: 13px 26px !important;
  transition: background .2s, transform .2s !important;
}
.wp-block-button__link:hover { background: var(--ny-accent-hover) !important; transform: translateY(-2px); }

/* ============================================================
   LAYOUT
   ============================================================ */
.ny-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.ny-wrap      { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem 4rem; background: var(--ny-bg); }
.ny-narrow    { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }

.ny-section     { padding: 6rem 0; }
.ny-section-alt { background: var(--ny-bg-alt); }

.ny-grid   { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ny-grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.ny-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ============================================================
   EYEBROW (label petit texte)
   ============================================================ */
.ny-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ny-accent);
  margin-bottom: 1.2rem;
  padding: 5px 14px 5px 10px;
  background: var(--ny-accent-soft);
  border: 1px solid rgba(123,1,18,.18);
  border-radius: var(--r-pill);
}

.ny-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ny-accent);
  flex-shrink: 0;
}

/* ============================================================
   HERO — fond sombre (eSport) + texte clair
   ============================================================ */
.ny-hero {
  position: relative;
  text-align: center;
  padding: 5rem 1.5rem 4.5rem;
  background: #1d1d1f;
  color: #fff;
  overflow: hidden;
  margin: 0;
  width: 100%;
}

.ny-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 65% 55% at 50% 0%, rgba(123,1,18,.26) 0%, transparent 68%);
  pointer-events: none;
}

.ny-hero-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }

.ny-hero h1 {
  font-size: 3rem;
  letter-spacing: -0.025em;
  font-weight: 900;
  color: #fff !important;
  margin: 0.6rem 0 1.2rem;
}

.ny-hero h1 em { color: var(--ny-accent) !important; font-style: normal; }
.ny-hero .ny-eyebrow { background: rgba(123,1,18,.15); border-color: rgba(123,1,18,.3); color: #f9a8b0; }
.ny-hero .ny-eyebrow::before { background: #f9a8b0; }

.ny-hero-sub {
  max-width: 560px; margin: 0 auto 2rem;
  color: rgba(255,255,255,.7);
  font-size: 1rem; line-height: 1.7;
}

.ny-hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.ny-hero-line { display: none; }

/* ============================================================
   STATUS PILL
   ============================================================ */
.ny-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.25);
  color: #16a34a;
  margin-bottom: 1rem;
}

.ny-status::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34,197,94,.5);
}

.ny-status.ny-status-soon {
  background: rgba(192,138,26,.08);
  border-color: rgba(192,138,26,.25);
  color: #b45309;
}
.ny-status.ny-status-soon::before { background: #d97706; box-shadow: none; }

/* ============================================================
   SECTION LABELS
   ============================================================ */
.ny-section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ny-text-muted);
  margin-bottom: 1.8rem;
}

.ny-section-label::before {
  content: '';
  width: 18px; height: 2px;
  background: var(--ny-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.ny-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--ny-border), transparent);
}

/* ============================================================
   CARDS
   ============================================================ */
.ny-card {
  background: var(--ny-bg-card);
  border: 1px solid var(--ny-border);
  border-radius: var(--r-lg);
  padding: 2rem 1.8rem;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.ny-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(123,1,18,.3);
}

.ny-card h3 { font-size: 1.1rem; margin: 0 0 0.7rem; color: var(--ny-text); font-weight: 700; }
.ny-card p  { color: var(--ny-text-muted); font-size: 0.92rem; margin: 0 0 1rem; line-height: 1.6; }

.ny-card-corner { display: none !important; }

.ny-card a.ny-card-link,
.ny-card span.ny-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--ny-accent);
}
.ny-card a.ny-card-link::after,
.ny-card span.ny-card-link::after { content: '→'; transition: transform .2s; }
.ny-card:hover a.ny-card-link::after,
.ny-card:hover span.ny-card-link::after { transform: translateX(4px); }

/* ============================================================
   INFO BOX
   ============================================================ */
.ny-info {
  display: flex; gap: 1rem;
  padding: 1.4rem 1.6rem;
  background: #232325;
  border: 1px solid rgba(255,255,255,.08);
  border-left: 3px solid var(--ny-accent);
  border-radius: var(--r-md);
  margin: 2rem 0;
  transition: border-color .25s, transform .2s;
}
.ny-info:hover { border-color: var(--ny-accent); transform: translateX(2px); }

.ny-info-icon {
  flex: 0 0 22px; height: 22px;
  border: 1px solid var(--ny-accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; color: var(--ny-accent);
}

.ny-info-content strong { font-size: 0.92rem; color: var(--ny-text); font-weight: 600; }
.ny-info-content p { margin: 0.3rem 0 0; font-size: 0.88rem; color: var(--ny-text-muted); }

/* ============================================================
   TIMELINE (Notre histoire)
   ============================================================ */
.ny-timeline { position: relative; padding-left: 1.6rem; margin: 2rem 0; }
.ny-timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(to bottom, var(--ny-accent), var(--ny-border)); }
.ny-timeline-item { position: relative; padding: 1rem 0 1.5rem 1.4rem; }
.ny-timeline-item::before { content: ''; position: absolute; left: -22px; top: 1.3rem; width: 12px; height: 12px; background: #fff; border: 2.5px solid var(--ny-accent); border-radius: 50%; }
.ny-timeline-year { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ny-accent); margin-bottom: 0.4rem; }
.ny-timeline-item h3 { margin: 0 0 0.5rem; font-size: 1.05rem; color: var(--ny-text); }
.ny-timeline-item p  { color: var(--ny-text-muted); font-size: 0.92rem; margin: 0; }

/* ============================================================
   ROSTER SLOTS (pages équipes)
   ============================================================ */
.ny-roster { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 1.5rem 0 2rem; }

.ny-roster-slot {
  background: var(--ny-bg-alt);
  border: 1.5px dashed var(--ny-border);
  border-radius: var(--r-md);
  padding: 1.2rem 0.8rem;
  text-align: center;
  transition: all .25s;
}
.ny-roster-slot:hover { border-color: var(--ny-accent); border-style: solid; background: var(--ny-accent-soft); transform: translateY(-2px); }
.ny-slot-num  { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; color: var(--ny-accent); margin-bottom: 0.5rem; }
.ny-slot-label { display: block; font-weight: 600; font-size: 0.88rem; color: var(--ny-text); margin-bottom: 0.3rem; }
.ny-slot-state { display: block; font-size: 0.72rem; color: var(--ny-text-muted); }

/* ============================================================
   GAME HERO (bannière jeu en fond — pages équipes)
   ============================================================ */
.ny-game-hero { position: relative; height: 340px; overflow: hidden; margin-bottom: 0; background: #000; }
.ny-game-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.45); }

/* Dégradé qui se fond DANS le fond sombre de la page (et pas en blanc !) */
.ny-game-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(20,20,22,.4) 60%, #141416 100%);
  display: flex; align-items: flex-end; padding: 2.5rem 2rem;
}
.ny-game-hero h1 { color: #fff !important; }
.ny-game-hero-content { max-width: 1200px; margin: 0 auto; width: 100%; }

/* ============================================================
   ÉQUIPES — GRILLE ACCORDÉON (page Nos équipes)
   ============================================================ */
.ny-eq-wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 3rem; }
.ny-banner-frame { position: relative; border-radius: var(--r-xl); overflow: hidden; }

.eq-grid-wrap { display: flex; flex-direction: column; gap: 6px; width: 100%; height: 520px; }
.eq-row { display: flex; gap: 6px; flex: 1; transition: flex .5s ease; min-height: 0; }

.eq-card {
  position: relative; overflow: hidden; cursor: pointer;
  background: #111; flex: 1; min-width: 0; min-height: 0;
  text-decoration: none; border-radius: 8px;
  transition: flex .5s ease, box-shadow .3s;
}
.eq-card:hover { z-index: 2; box-shadow: 0 16px 40px rgba(0,0,0,.3); }

.eq-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55); transition: filter .5s, transform .5s; }
.eq-card:hover img { filter: brightness(.45); transform: scale(1.05); }

/* Voile sombre subtil sous le nom du jeu (juste pour la lisibilité du texte) */
.eq-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.65) 100%); z-index: 2; }

.eq-label { position: absolute; left: 0; bottom: 0; right: 0; padding: 1.4rem 1.6rem; z-index: 5; }
.eq-label span { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.05rem; color: #fff; }

.eq-card-badge {
  position: absolute; top: 14px; right: 14px; z-index: 6;
  font-size: 0.65rem; font-weight: 600; padding: 4px 10px;
  background: rgba(34,197,94,.85); color: #fff; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 5px;
}
.eq-card-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; }

.eq-glow-line { display: none; }

/* Effet accordéon : quand on survole une rangée, toutes les cartes rétrécissent
   sauf celle qu'on survole (qui devient plus grande).
   Méthode simple sans :has() : on cible toutes les cartes de la rangée au survol,
   puis on agrandit spécifiquement la carte survolée. */
.eq-row:hover .eq-card { flex: 0.5; }
.eq-row .eq-card:hover { flex: 2.5; }
.eq-grid-wrap:hover .eq-row { flex: 0.7; }
.eq-grid-wrap .eq-row:hover { flex: 1.6; }

/* ============================================================
   STREAMING
   ============================================================ */
.ny-stream-embed {
  background: var(--ny-bg-alt); border: 1px solid var(--ny-border);
  border-radius: var(--r-xl); aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  margin: 2rem 0; overflow: hidden;
}
.ny-stream-placeholder { text-align: center; padding: 2rem; }

/* ============================================================
   MATCH / CALENDRIER
   ============================================================ */
.ny-timeline-cal { display: grid; gap: .75rem; max-width: 800px; margin: 0 auto 3rem; }

.ny-match {
  display: grid; grid-template-columns: 90px 1fr auto;
  align-items: center; gap: 1.5rem;
  padding: 1.4rem 1.6rem;
  background: #fff; border: 1px solid var(--ny-border); border-radius: var(--r-md);
  transition: border-color .25s, transform .2s;
}
.ny-match:hover { border-color: rgba(123,1,18,.3); transform: translateX(3px); }

.ny-match-date { text-align: center; }
.ny-match-date .day { display: block; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.9rem; line-height: 1; color: var(--ny-text); }
.ny-match-date .month { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ny-text-muted); margin-top: .2rem; }

.ny-match-info .type  { font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ny-accent); margin-bottom: .2rem; }
.ny-match-info .title { font-weight: 600; font-size: .98rem; color: var(--ny-text); margin-bottom: .2rem; }
.ny-match-info .desc  { font-size: .85rem; color: var(--ny-text-muted); }

.ny-match-badge { padding: 5px 13px; border-radius: var(--r-pill); font-size: .72rem; font-weight: 600; white-space: nowrap; }
.ny-match-badge.upcoming { background: var(--ny-accent-soft); color: var(--ny-accent); border: 1px solid rgba(123,1,18,.2); }
.ny-match-badge.tba { background: rgba(192,138,26,.10); color: #b45309; border: 1px solid rgba(192,138,26,.2); }

/* ============================================================
   PARTENAIRES
   ============================================================ */
.ny-partners-list { display: grid; gap: 1.5rem; max-width: 1100px; margin: 0 auto; }

.ny-partner {
  display: grid; grid-template-columns: 1.1fr 2fr 1fr;
  gap: 2rem; align-items: center;
  background: #fff; border: 1px solid var(--ny-border);
  border-radius: var(--r-xl); padding: 2.2rem 2rem;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.ny-partner:hover { border-color: rgba(123,1,18,.3); transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.ny-partner-logo { display: flex; align-items: center; justify-content: center; background: var(--ny-bg-alt); padding: 1.5rem 1rem; min-height: 110px; border: 1px solid var(--ny-border); border-radius: var(--r-md); }
.ny-partner-logo img { max-width: 100%; max-height: 80px; filter: brightness(0) invert(1); opacity: .85; transition: opacity .3s, transform .3s; }
.ny-partner:hover .ny-partner-logo img { opacity: 1; transform: scale(1.05); }

.ny-partner-body h3 { font-size: 1.05rem; margin: 0 0 .5rem; color: var(--ny-text); font-weight: 700; }
.ny-partner-cat { display: inline-block; margin-bottom: .8rem; padding: 4px 12px; border: 1px solid rgba(123,1,18,.3); background: var(--ny-accent-soft); border-radius: var(--r-pill); font-size: .7rem; font-weight: 600; color: var(--ny-accent); }
.ny-partner-body p { color: var(--ny-text-muted); font-size: .92rem; line-height: 1.7; margin: 0 0 .5rem; }
.ny-partner-link { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ny-accent); margin-top: .5rem; }
.ny-partner-link::after { content: "→"; transition: transform .25s; }
.ny-partner-link:hover::after { transform: translateX(4px); }

.ny-promo-block { text-align: center; padding: 1.1rem .9rem; border: 1px dashed rgba(123,1,18,.35); background: var(--ny-accent-soft); border-radius: var(--r-md); }
.ny-promo-label { display: block; font-size: .65rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ny-text-muted); margin-bottom: .5rem; }
.ny-promo-code { display: block; font-family: 'Montserrat', sans-serif; font-size: 1.25rem; font-weight: 900; color: var(--ny-text); margin-bottom: .4rem; }
.ny-promo-discount { display: block; font-size: .88rem; font-weight: 700; color: var(--ny-accent); }
.ny-promo-note { display: block; font-size: .7rem; color: var(--ny-text-dim); margin-top: .4rem; font-style: italic; }

/* ============================================================
   FORMULAIRES CF7
   ============================================================ */
.wpcf7-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.wpcf7-form p { margin: 0; }
.wpcf7-form label { display: block; color: var(--ny-text-soft); font-size: 0.85rem; margin-bottom: 0.4rem; }

.wpcf7-form input,
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  background-color: #fff;
  border: 1.5px solid var(--ny-border);
  border-radius: var(--r-md);
  color: var(--ny-text);
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: 'Roboto', sans-serif;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--ny-accent);
  box-shadow: 0 0 0 3px rgba(123,1,18,.12);
}

.wpcf7-form input:-webkit-autofill {
  box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: var(--ny-text);
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder { color: var(--ny-text-dim); }
.wpcf7-form textarea { min-height: 130px; resize: vertical; }

.wpcf7-form .ny-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }

.wpcf7-form input[type="submit"] {
  background: var(--ny-accent); color: #fff; border: none;
  border-radius: var(--r-pill); padding: 13px 28px;
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  align-self: flex-start; transition: background .2s, transform .2s;
}
.wpcf7-form input[type="submit"]:hover { background: var(--ny-accent-hover); transform: translateY(-2px); }

.wpcf7-response-output { margin: 1rem 0 0; padding: 0.9rem 1.1rem; border-radius: var(--r-md); font-size: 0.9rem; border: 1px solid var(--ny-border); background: var(--ny-bg-alt); color: var(--ny-text-soft); }
.wpcf7 form.sent .wpcf7-response-output  { border-color: #22c55e; color: #16a34a; }
.wpcf7 form.invalid .wpcf7-response-output { border-color: #dc2626; color: #dc2626; }

/* ============================================================
   CAROUSEL (page accueil)
   ============================================================ */
/* Carrousel des jeux : position normale, sans effet de masque compliqué */
.ny-carousel-bg {
  position: relative;
  display: none;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  pointer-events: none;
  margin-top: 4rem;
  width: 100%;
  opacity: .7;
}

.ny-carousel-row { position: relative; overflow: hidden; width: 100%; height: 200px; }
.ny-carousel-track { display: flex; gap: 18px; width: max-content; will-change: transform; }
.ny-row-left .ny-carousel-track  { animation: ny-scroll-left  70s linear infinite; }
.ny-row-right .ny-carousel-track { animation: ny-scroll-right 85s linear infinite; }

@keyframes ny-scroll-left  { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes ny-scroll-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.ny-carousel-tile { flex: 0 0 auto; width: 320px; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #111; }
.ny-carousel-tile img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.65); opacity: .7; }

/* ============================================================
   FOOTER
   ============================================================ */
/* Footer GeneratePress = footer.site-info */
.site-footer,
#site-footer,
footer.site-info,
.site-info,
#colophon {
  background: var(--ny-bg-dark) !important;
  color: rgba(255,255,255,.6) !important;
  border-top: none !important;
  padding: 0 !important;
}

/* GP injecte .footer-widgets et .inside-site-info */
.footer-widgets,
.footer-widget-area,
.inside-site-info,
.copyright-bar {
  background: transparent !important;
  color: rgba(255,255,255,.5) !important;
}

.ny-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem; padding: 4rem 1.5rem 2.5rem;
}

.ny-footer-col h4 { font-family: 'Roboto', sans-serif; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.4); margin: 0 0 1rem; }
.ny-footer-col ul { list-style: none; padding: 0; margin: 0; }
.ny-footer-col li { margin: .5rem 0; }
.ny-footer-col a { font-size: .88rem; color: rgba(255,255,255,.65); transition: color .2s; }
.ny-footer-col a:hover { color: var(--ny-accent); }

.ny-social { display: flex; gap: .5rem; margin-top: 1rem; }
.ny-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); transition: all .25s; }
.ny-social a:hover { background: var(--ny-accent); border-color: var(--ny-accent); color: #fff; transform: translateY(-2px); }

.ny-footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,.08); padding: 1.4rem; font-size: .78rem; color: rgba(255,255,255,.3); }

/* ============================================================
   RESPONSIVE — Le site doit bien s'afficher sur téléphone et tablette
   ============================================================ */

/* Tablette et téléphone (écrans < 768px) */
@media (max-width: 768px) {

  /* Header : navbar plus petite, logo plus compact, espace pour burger + drapeaux */
  .inside-header {
    padding-left: 5.5rem !important;
    padding-right: 5.5rem !important;
    min-height: 60px !important;
  }
  .site-logo img,
  .header-image.is-logo-image { max-height: 44px !important; }
  .site-branding-container { left: 1rem; }
  .ny-lang-switch { right: 3.5rem; }
  .ny-lang-switch a { width: 26px; height: 26px; }
  .ny-flag { width: 18px; height: 18px; }

  /* Bouton burger : positionné à droite, après les drapeaux */
  .main-navigation.mobile-menu-control-wrapper,
  .has-inline-mobile-toggle .main-navigation.mobile-menu-control-wrapper {
    position: absolute !important;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    z-index: 6;
  }
  .main-navigation .menu-toggle {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,.2) !important;
    border-radius: 6px !important;
    padding: 6px 10px !important;
    color: #fff !important;
    cursor: pointer;
  }
  .main-navigation .menu-toggle svg { width: 20px !important; height: 20px !important; fill: #fff !important; }
  .main-navigation .menu-toggle .screen-reader-text { display: none; }

  /* Menu déroulé : pleine largeur, fond sombre, liens espacés */
  #site-navigation {
    position: absolute !important;
    top: 100%;
    left: 0;
    right: 0;
    background: #141416 !important;
    border-top: 1px solid rgba(255,255,255,.1) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
  }
  .main-navigation .main-nav ul { background: #141416 !important; }
  .main-navigation .main-nav ul li {
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .main-navigation .main-nav ul li a {
    padding: 14px 1.5rem !important;
    font-size: 1rem !important;
    color: rgba(255,255,255,.85) !important;
  }
  /* Sous-menus mobile : indentation, pas de box flottante */
  .main-navigation .main-nav ul ul {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    background: rgba(255,255,255,.03) !important;
  }
  .main-navigation .main-nav ul ul li a {
    padding: 12px 2.5rem !important;
    font-size: .9rem !important;
  }

  /* Hero (le grand bloc en haut de chaque page) */
  .ny-hero { padding: 3.5rem 1rem 3rem; }
  .ny-hero h1 { font-size: 2rem; }
  .ny-home-hero { padding: 4rem 1rem 4rem !important; }
  .ny-home-hero h1 { font-size: 2.4rem !important; }

  /* Boutons CTA : on les espace pour le pouce */
  .ny-home-hero a[style*="padding:14px"] { padding: 12px 22px !important; font-size: .88rem !important; }

  /* Sections plus serrées */
  .ny-section { padding: 4rem 0; }
  .ny-wrap { padding: 0 1rem 2.5rem; }
  .ny-container { padding: 0 1rem; }

  /* Stats de la home : on les empile */
  .ny-home-hero div[style*="gap:3rem"] { gap: 1.5rem !important; }

  /* Sous-menus : on simplifie sur mobile */
  .main-navigation ul ul { box-shadow: none !important; border: none !important; }

  /* Partenaires : une seule colonne */
  .ny-partner { grid-template-columns: 1fr; gap: 1.2rem; text-align: center; }
  .ny-partner-link { justify-content: center; }

  /* Calendrier des matchs */
  .ny-match { grid-template-columns: 70px 1fr; gap: 1rem; padding: 1.1rem; }
  .ny-match-badge { grid-column: 2; }

  /* Grille des jeux (équipes) */
  .eq-grid-wrap { height: auto; gap: 8px; }
  .eq-row { flex-direction: column; gap: 8px; flex: none; }
  .eq-card { height: 200px; flex: none; }
  /* Sur mobile, on retire l'effet d'agrandissement au survol */
  .eq-card:hover { transform: none; }

  /* Carousel de jeux (home) */
  .ny-carousel-row { height: 130px; }
  .ny-carousel-tile { width: 200px; }

  /* Footer */
  .ny-footer-inner { padding: 2.5rem 1.2rem 1.5rem; gap: 2rem; grid-template-columns: 1fr !important; }

  /* Twitch embed mobile */
  .ny-twitch-meta { grid-template-columns: 1fr; text-align: center; }
}

/* Très petit téléphone (< 480px) */
@media (max-width: 480px) {
  .ny-home-hero h1 { font-size: 2rem !important; }
  .ny-hero h1 { font-size: 1.7rem; }
  .ny-eyebrow { font-size: .7rem !important; }
  /* On retire la sous-rangée du carousel pour ne pas surcharger */
  .ny-carousel-row:nth-of-type(3) { display: none; }
}

/* RTL — Arabe */
html[dir="rtl"] body { font-family: 'Roboto', 'Tajawal', 'Noto Sans Arabic', sans-serif; text-align: right; }
html[dir="rtl"] .ny-timeline { padding-left: 0; padding-right: 1.6rem; }
html[dir="rtl"] .ny-timeline::before { left: auto; right: 6px; }
html[dir="rtl"] .ny-timeline-item { padding-left: 0; padding-right: 1.4rem; }
html[dir="rtl"] .ny-timeline-item::before { left: auto; right: -22px; }
html[dir="rtl"] .ny-info { border-left: 0; border-right: 3px solid var(--ny-accent); }
html[dir="rtl"] .ny-section-label::after { background: linear-gradient(to left, var(--ny-border), transparent); }

@media (prefers-reduced-motion: reduce) {
  .ny-carousel-track { animation: none !important; }
}
