/* ══════════════════════════════════════════════════════════
   MAGIC BASKET — equipes.css
   Styles spécifiques à la page Nos Équipes
   Mobile-first · Breakpoints: 480 · 768 · 1024 · 1280
══════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────
   HERO
────────────────────────────────────────────────────────── */
.eq-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.eq-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/Home-page.png");
  background-size: cover;
  background-position: center 45%;
  animation: heroZoom 14s ease-out forwards;
}

.eq-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0, 20, 18, 0.55) 0%,
    rgba(0, 40, 38, 0.72) 40%,
    rgba(0, 14, 12, 0.94) 85%,
    rgba(0, 14, 12, 1) 100%
  );
}

.eq-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 6rem;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.eq-hero-eyebrow {
  font-family: var(--font-cond);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s ease forwards;
}

.eq-hero-eyebrow::before {
  content: "";
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.eq-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 9vw, 6.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.45s ease forwards;
}

.eq-hero-title em {
  font-style: italic;
  color: var(--gold);
}

.eq-hero-desc {
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  max-width: 34rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.6s ease forwards;
}

/* Tabs */
.eq-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.75s ease forwards;
}

.eq-tab {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition);
  background: transparent;
}

.eq-tab:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.eq-tab.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* Stats strip */
.eq-hero-strip {
  position: relative;
  z-index: 2;
  background: rgba(0, 46, 44, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.eq-hero-strip-inner {
  display: flex;
  align-items: center;
  padding-block: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.eq-hero-strip-inner::-webkit-scrollbar {
  display: none;
}

.eq-strip-item {
  flex: 1;
  min-width: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
  padding-inline: 0.5rem;
}

.eq-strip-value {
  font-family: var(--font-display);
  font-size: clamp(1.575rem, 4vw, 2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.eq-strip-value small {
  color: var(--gold);
  font-size: 0.7em;
}

.eq-strip-label {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.eq-strip-sep {
  width: 1px;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* ──────────────────────────────────────────────────────────
   SECTIONS
────────────────────────────────────────────────────────── */
.eq-section {
  padding-block: 5rem;
  background: var(--green-deep);
}

.eq-section--dark {
  background: var(--green-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.eq-section-header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.eq-section-header .section-title em {
  font-style: italic;
  color: var(--gold);
}

@media (min-width: 768px) {
  .eq-section-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

/* ──────────────────────────────────────────────────────────
   SHARED — GENDER TAG
────────────────────────────────────────────────────────── */
.eq-gender-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-cond);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3125rem 0.875rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.eq-gender-tag--masc {
  background: rgba(100, 180, 255, 0.12);
  color: rgba(150, 210, 255, 0.9);
  border: 1px solid rgba(100, 180, 255, 0.2);
}

.eq-gender-tag--fem {
  background: var(--red-fem);
  color: var(--red-fem-text);
  border: 1px solid rgba(255, 100, 150, 0.2);
}

.eq-gender-tag--sm {
  font-size: 0.5625rem;
  padding: 0.25rem 0.625rem;
  margin-bottom: 0;
}

/* ──────────────────────────────────────────────────────────
   SHARED — LEVEL BADGE
────────────────────────────────────────────────────────── */
.eq-level-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-cond);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--white);
  z-index: 3;
}

.eq-level-badge--sm {
  font-size: 0.5625rem;
  padding: 0.25rem 0.75rem;
}

/* ──────────────────────────────────────────────────────────
   SHARED — BLOCK WRAPPER
────────────────────────────────────────────────────────── */
.eq-block {
  margin-bottom: 1.75rem;
}

.eq-block--sm {
  margin-bottom: 1.25rem;
}

.eq-block-label {
  font-family: var(--font-cond);
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}

/* ──────────────────────────────────────────────────────────
   PALMARES LIST
────────────────────────────────────────────────────────── */
.eq-palmares-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.eq-pal-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: background var(--transition);
}

.eq-pal-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.eq-pal-item--muted {
  border-left-color: rgba(255, 255, 255, 0.15);
  opacity: 0.55;
}

.eq-pal-count {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  min-width: 2.25rem;
  flex-shrink: 0;
}

.eq-pal-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.eq-pal-title {
  font-family: var(--font-cond);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.eq-pal-years {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* ──────────────────────────────────────────────────────────
   CLASSEMENT TABLE
────────────────────────────────────────────────────────── */
.eq-table {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.eq-table-row {
  display: grid;
  grid-template-columns: 2rem 1fr 2.5rem 3rem;
  align-items: center;
  padding: 0.625rem 0.875rem;
  gap: 0.375rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.eq-table-row:last-child {
  border-bottom: none;
}

.eq-table-row--head {
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-cond);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.eq-table-row--magic {
  background: rgba(201, 168, 76, 0.08);
  border-left: 2px solid var(--gold);
}

.eq-t-pos {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

.eq-table-row--magic .eq-t-pos {
  color: var(--gold);
}

.eq-t-team {
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.eq-table-row--magic .eq-t-team {
  color: var(--white);
  font-weight: 600;
}

.eq-t-pts {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  text-align: right;
}

.eq-t-vd {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: right;
}

.eq-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  font-style: normal;
}

.eq-dot--gold {
  background: var(--gold);
}

.eq-table-note {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.2);
  margin-top: 0.5rem;
  font-style: italic;
}

/* ──────────────────────────────────────────────────────────
   NEXT MATCH CARD
────────────────────────────────────────────────────────── */
.eq-next-match {
  margin-top: auto;
}

.eq-match-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem 1.125rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 1rem;
}

.eq-match-comp {
  font-family: var(--font-cond);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  width: 100%;
}

.eq-match-date {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.4);
  width: 100%;
}

.eq-match-teams {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  font-family: var(--font-cond);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.eq-match-vs {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.1em;
}

.eq-match-magic {
  color: var(--gold);
}

.eq-match-badge {
  font-family: var(--font-cond);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3125rem 0.875rem;
  border-radius: var(--radius-pill);
}

.eq-match-badge--away {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.45);
}

.eq-match-badge--home {
  background: rgba(0, 70, 67, 0.6);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 90, 86, 0.5);
}

/* ──────────────────────────────────────────────────────────
   FEATURED CARDS (N3)
────────────────────────────────────────────────────────── */
.eq-card--featured {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 2rem;
  transition: border-color var(--transition);
}

.eq-card--featured:hover {
  border-color: rgba(201, 168, 76, 0.2);
}

@media (min-width: 1024px) {
  .eq-card--featured {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 2.5rem;
    align-items: stretch;
  }

  /* Inverse l'ordre visuel pour la 2ème card */
  .eq-card--reverse .eq-card-visual {
    order: 2;
  }
  .eq-card--reverse .eq-card-body {
    order: 1;
  }
}

/* Visual */
.eq-card-visual {
  position: relative;
  min-height: 260px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .eq-card-visual {
    min-height: 360px;
  }
}
@media (min-width: 1024px) {
  .eq-card-visual {
    min-height: 520px;
  }
}

.eq-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.eq-card--featured:hover .eq-card-img {
  transform: scale(1.04);
}
.eq-card--mid:hover .eq-card-img {
  transform: scale(1.04);
}

.eq-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 14, 12, 0.1) 0%,
    rgba(0, 14, 12, 0.45) 100%
  );
}

/* Body */
.eq-card-body {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .eq-card-body {
    padding: 2.25rem;
  }
}

.eq-card-top {
  margin-bottom: 2rem;
}

.eq-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 5vw, 2.75rem);
  font-weight: 900;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.eq-card-title em {
  font-style: italic;
  color: var(--gold);
}

.eq-card-season {
  font-family: var(--font-cond);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

/* ──────────────────────────────────────────────────────────
   DUO GRID (Pré-Région + Régionale 2)
────────────────────────────────────────────────────────── */
.eq-duo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .eq-duo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.eq-card--mid {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  transition:
    border-color var(--transition),
    transform var(--transition);
}

.eq-card--mid:hover {
  border-color: rgba(201, 168, 76, 0.25);
  transform: translateY(-3px);
}

.eq-card-mid-visual {
  position: relative;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  flex-shrink: 0;
}

.eq-card-mid-visual .eq-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.eq-card-mid-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.eq-card-mid-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.eq-card-mid-title em {
  font-style: italic;
  color: var(--gold);
}

/* ──────────────────────────────────────────────────────────
   JEUNES GRID
────────────────────────────────────────────────────────── */
.eq-jeunes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 480px) {
  .eq-jeunes-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .eq-jeunes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.eq-jeune-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.375rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

/* Barre colorée en haut de chaque card jeune */
.eq-jeune-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: rgba(100, 180, 255, 0.45);
}

.eq-jeune-card--fem::before {
  background: rgba(255, 100, 150, 0.5);
}

.eq-jeune-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}

/* CTA special card */
.eq-jeune-card--cta {
  background: var(--green);
  border-color: rgba(201, 168, 76, 0.3);
  justify-content: center;
  gap: 1rem;
}

.eq-jeune-card--cta::before {
  background: var(--gold);
}

.eq-jeune-card--cta:hover {
  background: var(--green-mid);
  border-color: rgba(201, 168, 76, 0.5);
  transform: translateY(-3px);
}

.eq-jeune-top {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.eq-age-badge {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 900;
  color: rgba(100, 180, 255, 0.18);
  line-height: 1;
}

.eq-age-badge--fem {
  color: rgba(255, 100, 150, 0.22);
}

.eq-jeune-title {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.125rem;
}

.eq-jeune-title em {
  font-style: italic;
  color: var(--gold);
}

/* DL info */
.eq-jeune-dl {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.125rem;
  flex: 1;
}

.eq-jeune-dl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.eq-jeune-dl-row:last-child {
  border-bottom: none;
}

.eq-jeune-dl-row dt {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
}

.eq-jeune-dl-row dd {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}

.eq-dl-placeholder {
  color: rgba(255, 255, 255, 0.22) !important;
  font-style: italic;
}

/* Progress bar décorative */
.eq-jeune-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  overflow: hidden;
}

.eq-jeune-progress-fill {
  height: 100%;
  width: 0; /* Animé par JS */
  background: linear-gradient(
    to right,
    rgba(100, 180, 255, 0.5),
    rgba(100, 180, 255, 0.85)
  );
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.eq-jeune-progress-fill--fem {
  background: linear-gradient(
    to right,
    rgba(255, 100, 150, 0.5),
    rgba(255, 100, 150, 0.85)
  );
}

/* CTA card content */
.eq-cta-eyebrow {
  font-family: var(--font-cond);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.eq-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  line-height: 1;
  color: var(--white);
}

.eq-cta-title em {
  font-style: italic;
  color: var(--gold);
}

.eq-cta-desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

/* ──────────────────────────────────────────────────────────
   CTA BAND
────────────────────────────────────────────────────────── */
.eq-band {
  padding-block: 4.5rem;
  background: var(--green);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.eq-band-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .eq-band-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.eq-band-title {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
}

.eq-band-actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ──────────────────────────────────────────────────────────
   DESKTOP HERO LAYOUT
────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .eq-hero-content {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 2.5rem;
  }

  .eq-hero-text {
    flex: 1;
  }

  .eq-tabs {
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
  }
}

@media (min-width: 1024px) {
  .eq-hero {
    min-height: 58vh;
  }
  .eq-hero-content {
    padding-top: 8rem;
    padding-bottom: 3rem;
  }
}

/* ──────────────────────────────────────────────────────────
   SCROLL REVEAL (appliqué via equipes.js)
────────────────────────────────────────────────────────── */
.eq-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.eq-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.eq-reveal-scale {
  opacity: 0;
  transform: scale(0.97);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.eq-reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}
