/* Sections organigramme */
.org-section { padding: var(--section-pad) 0; }
.org-section--alt { background: var(--gris-05); }

.staff-title {
  font-size: clamp(1.35rem, 3.5vw, 1.9rem);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.staff-title::before {
  content: "";
  width: 34px; height: 4px;
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--rouge) 60%, var(--or) 60%);
}
.staff-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gris-10);
}

.staff-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); }
.staff-card {
  background: var(--blanc);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.staff-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }
.staff-card__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, #2b2b30, #0a0a0a);
}
.staff-card__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .6s cubic-bezier(.22,.8,.3,1);
}
.staff-card:hover .staff-card__photo img { transform: scale(1.05); }

/* Cadre en attente de photo */
.staff-card__photo--ph {
  background: linear-gradient(135deg, var(--gris-10), var(--gris-05));
  border-bottom: 1px solid var(--gris-10);
  display: grid;
  place-items: center;
  color: var(--gris-30);
  font-size: 3rem;
}

.staff-card__body { padding: .9rem 1rem 1.1rem; text-align: center; }
.staff-card__body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: .98rem;
  line-height: 1.2;
}
.staff-card__body p {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--rouge);
  margin-top: .3rem;
}

/* R1 : prochains matchs, résultats, classement */
.r1-panels { display: grid; gap: 1.25rem; }
.panel {
  background: var(--blanc);
  border: 1px solid var(--gris-10);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: grid;
  align-content: start;
}
.panel__head {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 1.2rem;
  background: var(--noir-pur);
  color: var(--blanc);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: .02em;
}
.panel__head i { color: var(--or); font-size: .95rem; }
.panel__body { padding: .5rem 1.2rem 1.2rem; }

.match-list { display: grid; }
.match {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .9rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--gris-10);
}
.match:last-child { border-bottom: none; }
.match__date {
  display: grid;
  justify-items: center;
  background: var(--gris-05);
  border: 1px solid var(--gris-10);
  border-radius: 8px;
  padding: .4rem .6rem;
  min-width: 58px;
}
.match__date b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1;
}
.match__date span {
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gris-60);
}
.match__info b { display: block; font-size: .95rem; }
.match__info span { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gris-60); }
.match__score {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}
.badge-dom, .badge-ext {
  font-size: .64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .3rem .6rem;
  border-radius: 3px;
  white-space: nowrap;
}
.badge-dom { background: var(--or); color: var(--noir-pur); }
.badge-ext { background: transparent; color: var(--gris-80); border: 1px solid var(--gris-30); }

.empty-state {
  padding: 1.25rem 0 .5rem;
  display: grid;
  gap: .5rem;
  justify-items: start;
  color: var(--gris-60);
  font-size: .92rem;
}
.empty-state i { font-size: 1.4rem; color: var(--gris-30); }

/* Classement */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.standings { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 520px; }
.standings th {
  text-align: left;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gris-60);
  padding: .6rem .55rem;
  border-bottom: 2px solid var(--gris-10);
}
.standings th:not(:nth-child(2)), .standings td:not(:nth-child(2)) { text-align: center; }
.standings td {
  padding: .6rem .55rem;
  border-bottom: 1px solid var(--gris-10);
  font-variant-numeric: tabular-nums;
}
.standings td:nth-child(2) { font-weight: 700; text-align: left; }
.standings tr:last-child td { border-bottom: none; }
.standings .pos {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gris-05);
  font-weight: 800;
  font-size: .78rem;
}
.standings tr.is-rcc td { background: #fdf6e0; }
.standings tr.is-rcc .pos { background: var(--or); color: var(--noir-pur); }
.standings tr.is-rcc td:nth-child(2)::after {
  content: "RCC";
  margin-left: .5rem;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .08em;
  background: var(--rouge);
  color: var(--blanc);
  padding: .15rem .4rem;
  border-radius: 3px;
  vertical-align: middle;
}
.table-note { margin-top: .75rem; font-size: .78rem; color: var(--gris-60); }

/* Groupes de l'effectif */
.squad-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.15rem;
  margin: 1.75rem 0 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.squad-title:first-of-type { margin-top: 0; }
.squad-title::before {
  content: "";
  width: 22px; height: 3px;
  background: linear-gradient(90deg, var(--rouge) 60%, var(--or) 60%);
}
.squad-title span {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--gris-60);
}

/* Bandeau rouge : rejoindre */
.join {
  position: relative;
  background:
    radial-gradient(800px 400px at 85% 15%, rgba(0,0,0,.35), transparent 60%),
    linear-gradient(155deg, var(--rouge) 0%, var(--rouge-fonce) 60%, #7a0310 100%);
  color: var(--blanc);
  overflow: hidden;
}
.join::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.04) 0 2px, transparent 2px 90px);
  pointer-events: none;
}
.join__inner {
  position: relative;
  padding: var(--section-pad) 0;
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}
.join h2 { font-size: clamp(1.8rem, 5vw, 2.9rem); }
.join p { color: rgba(255,255,255,.85); }
.join__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Photo d'équipe + galerie */
.team-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9;
}
.team-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22,.8,.3,1);
}
.team-photo:hover img { transform: scale(1.03); }

/* Mobile : slider horizontal avec effet d'aimantation */
.team-gallery {
  display: flex;
  gap: .9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: .35rem;
}
.team-gallery::-webkit-scrollbar { display: none; }
.team-gallery figure {
  position: relative;
  flex: 0 0 82%;
  scroll-snap-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}
.team-gallery img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22,.8,.3,1);
}
.team-gallery figure:hover img { transform: scale(1.04); }
.team-photo { cursor: zoom-in; }

/* Lightbox (zoom plein écran) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(5, 5, 6, .94);
  display: none;
  place-items: center;
  padding: 1rem;
}
.lightbox.is-open { display: grid; }
.lightbox__img {
  max-width: min(92vw, 1100px);
  max-height: 82vh;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox__caption {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  max-width: 90vw;
  text-align: center;
  color: rgba(255,255,255,.8);
  font-size: .82rem;
  font-weight: 600;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: var(--blanc);
  background: rgba(255,255,255,.06);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  z-index: 2;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--rouge); border-color: var(--rouge); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__close:hover { transform: rotate(90deg); }
.lightbox__nav--prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: .75rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__nav--next:hover { transform: translateY(-50%) scale(1.06); }

/* Breakpoints */
@media (min-width: 640px) {

  .staff-grid { grid-template-columns: repeat(3, 1fr); }
  .team-gallery { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; padding-bottom: 0; }
  .team-gallery figure { flex: none; }
}

@media (min-width: 900px) {

  .team-gallery { grid-template-columns: repeat(4, 1fr); }
  .r1-panels { grid-template-columns: 1fr 1fr; }
  .r1-panels .panel--wide { grid-column: 1 / -1; }
  .staff-grid { grid-template-columns: repeat(4, 1fr); }
  .staff-grid--center { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1080px) {

  /* Page active */
  .nav__list > li.is-active > a { color: var(--rouge); }
  .nav__list > li.is-active > a::after { transform: scaleX(1); }
  .drop a.is-active { color: var(--rouge); background: var(--gris-05); }
  .drop-group__label {
    display: block;
    font-size: .86rem;
    font-weight: 700;
    padding: .35rem .3rem;
    margin-bottom: .3rem;
  }
}
