/* ══════════════════════════════════════════════════════════
   MAGIC BASKET — n3-masculine.css
   Même palette que index.html : --green #004643 / --gold #C9A84C
   Mobile-first · Breakpoints 480 / 768 / 1024 / 1280
══════════════════════════════════════════════════════════ */

:root {
  --gold-l:  #bca65968;
  --sand-white:   #F0EDE5;
}

/* ──────────────────────────────────────────────────────────
   HERO
────────────────────────────────────────────────────────── */
.n3m-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.n3m-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/photoNM3/effectifs.jpeg');
  background-size: cover;
  background-position: center 25%;
  animation: heroZoom 20s ease-out forwards;
  will-change: transform;
}

.n3m-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg,
      rgba(0,10,9,0.97) 0%,
      rgba(0,40,36,0.88) 50%,
      rgba(0,10,9,0.60) 100%
    );
}

/* "N3" géant en fond */
.n3m-hero-deco {
  position: absolute;
  right: -2rem;
  bottom: -3rem;
  font-family: var(--font-display);
  font-size: clamp(14rem, 30vw, 28rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: rgba(201,168,76,0.05);
  pointer-events: none;
  user-select: none;
  z-index: 1;
  animation: fadeIn 1.4s 0.5s ease both;
}

@keyframes fadeIn { to { opacity: 1; } }

/* Barre diagonale de rupture */
.n3m-hero-slash {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 55%;
  width: 3px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(201,168,76,0.2) 30%,
    rgba(201,168,76,0.08) 70%,
    transparent 100%
  );
  transform: skewX(-6deg);
  z-index: 2;
  pointer-events: none;
  display: none;
}

@media (min-width: 1024px) { .n3m-hero-slash { display: block; } }

/* Inner */
.n3m-hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-top: calc(var(--nav-height) + var(--sponsor-height) + 4rem);
  padding-bottom: 5rem;
  align-items: center;
  flex: 1;
}

@media (min-width: 1024px) {
  .n3m-hero-inner {
    grid-template-columns: 1fr 1fr;
    padding-top: calc(var(--nav-height) + var(--sponsor-height) + 5rem);
    gap: 4rem;
  }
}

/* N3 Masculine hero */
.n3m-hero-idleft {
  top: 0px;
}

/* Breadcrumb */
.n3m-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-cond);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.15s ease forwards;
}

.n3m-breadcrumb a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.2s;
}

.n3m-breadcrumb a:hover { color: var(--gold); }
.n3m-breadcrumb span[aria-current] { color: var(--gold); }

/* Titre */
.n3m-hero-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.3s ease forwards;
}

.n3m-title-league {
  font-family: var(--font-cond);
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  font-weight: 800;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.n3m-title-num {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 12rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--white);
  position: relative;
}

.n3m-title-num::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: 0;
  width: 60%;
  height: 3px;
  background: var(--gold);
}

.n3m-title-genre {
  font-family: var(--font-cond);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
  margin-top: 0.5rem;
}

/* Sous-titre */
.n3m-hero-sub {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.45s ease forwards;
}

.n3m-hero-sub strong { color: rgba(255,255,255,0.65); font-weight: 600; }

/* Tag sponsor */
.n3m-sponsor-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-pill);
  padding: 0.3125rem 0.875rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.55s ease forwards;
}

.n3m-sponsor-label {
  font-family: var(--font-cond);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.n3m-sponsor-name {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Actions hero */
.n3m-hero-actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.65s ease forwards;
}

.n3m-btn-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Colonne droite hero ── */
.n3m-hero-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  opacity: 0;
  animation: fadeUp 1s 0.55s ease forwards;
}

/* Palmarès card */
.n3m-palmares-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.n3m-palmares-eyebrow {
  font-family: var(--font-cond);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.n3m-palmares-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.n3m-pal-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.2s;
}

.n3m-pal-item--gold {
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.2);
}

.n3m-pal-item:hover { border-color: rgba(201,168,76,0.25); }

.n3m-pal-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}

.n3m-pal-title {
  display: block;
  font-family: var(--font-cond);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.n3m-pal-item--gold .n3m-pal-title { color: var(--gold); }

.n3m-pal-year {
  display: block;
  font-family: var(--font-cond);
  font-size: 0.5625rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
  margin-top: 0.1rem;
}

/* Stats rapides */
.n3m-quick-stats {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.n3m-qstat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.5rem;
}

.n3m-qstat-val {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.n3m-qstat-lbl {
  font-family: var(--font-cond);
  font-size: 0.4375rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-top: 0.25rem;
}

.n3m-qstat-sep {
  width: 1px;
  height: 2rem;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

/* Scroll hint */
.n3m-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-cond);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  opacity: 0;
  animation: fadeIn 0.8s 1.6s ease forwards, scrollBounce 2.2s 2.4s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ──────────────────────────────────────────────────────────
   SECTION EFFECTIF
────────────────────────────────────────────────────────── */
.n3m-effectif {
  background: var(--green-deep);
  padding-block: 5.5rem;
  scroll-margin-top: calc(var(--nav-height) + 12px);
}

/* En-tête section */
.n3m-effectif-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .n3m-effectif-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.n3m-header-left {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.n3m-section-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  color: rgba(201,168,76,0.1);
  line-height: 0.85;
  flex-shrink: 0;
  margin-top: -0.2rem;
  user-select: none;
  letter-spacing: -0.04em;
}

.n3m-section-sub {
  max-width: 28rem;
  text-align: left;
  font-size: 0.875rem;
}

.section-title { 
  font-style: italic; color: var(--sand-white);
  font-size: 4.35rem;
}

.section-title em { 
  font-style: italic; color: var(--gold);
}


/* ──────────────────────────────────────────────────────────
   FILTRES
────────────────────────────────────────────────────────── */
.n3m-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.n3m-filter {
  font-family: var(--font-cond);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4375rem 1.125rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all 0.2s ease;
}

.n3m-filter:hover {
  border-color: rgba(201,168,76,0.3);
  color: rgba(255,255,255,0.75);
}

.n3m-filter.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green-deep);
}

/* ──────────────────────────────────────────────────────────
   GRILLE JOUEURS
────────────────────────────────────────────────────────── */
.n3m-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px)  { .n3m-grid { grid-template-columns: repeat(3, 1fr); gap: 3.65rem; } }
@media (min-width: 1024px) { .n3m-grid { grid-template-columns: repeat(3, 1fr); } }

/* ──────────────────────────────────────────────────────────
   CARD JOUEUR — style référence photo
────────────────────────────────────────────────────────── */
.n3m-player-card {
  gap: 15rem;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: default;
  background: #ccccc8;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.n3m-player-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.n3m-avatar {
  border-radius: var(--radius-xl);
  overflow: hidden;
  width: 100%;
  height: 670px;
  cursor: pointer;
}

.n3m-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.n3m-avatar:hover .n3m-avatar-img { transform: scale(1.04); }

/* Dégradé bas pour lisibilité texte */
.n3m-card-visual::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65%;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.90) 0%,
    rgba(0,0,0,0.55) 45%,
    transparent 100%
  );
  pointer-events: none;
}

/* Numéro — haut gauche */
.n3m-num-wrap {
  position: absolute;
  top: 0.875rem;
  left: 1rem;
  z-index: 3;
}

.n3m-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 900;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.343);
  user-select: none;
}

/* Corps — bas gauche, superposé au dégradé */
.n3m-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.875rem 1rem 1.125rem;
  z-index: 3; 
}

/* Badge poste — juste au-dessus du nom */
.n3m-poste-pill {
  display: inline-block;
  font-family: var(--font-cond);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  color: rgb(255, 255, 255);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.2rem 0.625rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.4rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Nom — uppercase condensed, blanc */
.n3m-lastname {
  display: block;
  font-family: var(--font-cond);
  font-size: clamp(1rem, 2.5vw, 1.375rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.05;
  padding-bottom: 10px;
}

/* Prénom — en dessous, plus discret */
.n3m-firstname {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 1.8vw, 0.9375rem);
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  line-height: 1.3;
  margin-top: 0.15rem;
}

.n3m-card-body .n3m-firstname {
  border-top: 1px solid var(--gold-l);
  padding-top: 10px;
}

/* ──────────────────────────────────────────────────────────
   MESSAGE AUCUN RÉSULTAT
────────────────────────────────────────────────────────── */
.n3m-no-result {
  text-align: center;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.3);
  padding: 2rem 0;
  font-style: italic;
}

.n3m-no-result[hidden] { display: none; }

/* ──────────────────────────────────────────────────────────
   SECTION STAFF
────────────────────────────────────────────────────────── */
.n3m-staff {
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.n3m-staff-divider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.n3m-staff-rule {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.n3m-staff-eyebrow {
  font-family: var(--font-cond);
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
}

.n3m-staff-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Card staff */
.n3m-staff-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 1.125rem 1.5rem;
  flex: 1;
  min-width: 240px;
  transition: border-color 0.2s;
}

.n3m-staff-card:hover { border-color: rgba(201,168,76,0.2); }

.n3m-staff-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.5);
}

.n3m-staff-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.n3m-staff-badge {
  display: inline-block;
  font-family: var(--font-cond);
  font-size: 0.4375rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.2rem 0.625rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.125rem;
}

.n3m-staff-badge--coach {
  background: rgba(201,168,76,0.12);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.2);
}

.n3m-staff-badge--resp {
  background: rgba(100,160,255,0.1);
  color: rgba(150,200,255,0.85);
  border: 1px solid rgba(100,160,255,0.15);
}

.n3m-staff-fn {
  font-family: var(--font-cond);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  line-height: 1;
}

.n3m-staff-ln {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}

/* ──────────────────────────────────────────────────────────
   CARD FILTRÉE (cachée)
────────────────────────────────────────────────────────── */
.n3m-player-card.is-hidden {
  display: none;
}

/* ──────────────────────────────────────────────────────────
   SCROLL REVEAL
────────────────────────────────────────────────────────── */
.n3m-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.n3m-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}