/* ---- Bloc intro Equipes ---- */
.equipes-intro {
  margin: 16px 0 28px;
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 4px solid var(--rouge);
  background: rgba(0, 0, 0, 0.65);
  color: #f7f7f7;
  font-size: 0.98rem;
}

.equipes-intro p {
  margin: 0;
}

.equipes-intro strong {
  font-weight: 700;
}
.facebook-link {
    color: var(--rouge);
    font-weight: 700;
    text-decoration: none;
}

.facebook-link:hover {
    text-decoration: underline;
}



/* ---- Equipes (cartes Flexbox) ---- */
.team-grid{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
}

/* 3 par ligne sur desktop */
.team-card{
  flex: 1 1 calc(33.333% - 20px);
  background:#f9f9f9;
  border:1px solid #eee;
  border-radius:12px;
  padding:16px;
  box-shadow:0 2px 8px rgba(248, 243, 243, 0.06);
  transition: transform .2s ease, box-shadow .2s ease;
  border-top:4px solid var(--rouge);
}

.team-card:hover{
  transform: translateY(-2px);
  box-shadow:0 6px 16px rgba(0,0,0,.10);
}

.team-card header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.team-card h3{
  margin:0;
  font-size:1.1rem;
  text-transform:uppercase;
}

.team-tag{
  display:inline-block;
  background: var(--noir);
  color: var(--blanc);
  padding:4px 10px;
  border-radius:999px;
  font-size:.8rem;
  white-space:nowrap;
}

.team-meta{
  list-style:none;
  margin:0;
  padding:0;
  color:#333;
}
.team-meta li{ margin:6px 0; }

.team-card * {
  position: relative;
  z-index: 1;
}

.team-card h3,
.team-card .team-tag {
  color: var(--blanc);
}

.team-card li { color: #f9f9f9;}

/* Responsive : 2 cartes par ligne tablette, 1 carte mobile */
@media (max-width: 960px){
  .team-card{ flex-basis: calc(50% - 20px); }
}
@media (max-width: 600px){
  .team-card{ flex-basis: 100%; }
}

/* ---- Carte Séniors avec photo ---- */
.senior-card {
  background: url("/src/img/pack-de-millas-web.jpg") center/cover no-repeat;
  color: var(--blanc);
  position: relative;
  overflow: hidden;
}

.senior-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55); /* voile foncé pour lisibilité */
}

/* ---- Carte Touch avec photo ---- */
.touch-card {
  background: url("/src/img/touch-mixte-web.jpg") center/cover no-repeat;
  color: var(--blanc);
  position: relative;
  overflow: hidden;
}

.touch-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55); /* voile foncé pour lisibilité */
}
/* ---- Carte m19 avec photo ---- */
.m19-card {
  background: url("/src/img/m19-640.webp") center/cover no-repeat;
  color: var(--blanc);
  position: relative;
  overflow: hidden;
}

.m19-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55); /* voile foncé pour lisibilité */
}

/* ---- Carte m16 avec photo ---- */
.m16-card {
  background: url("/src/img/m16-640.webp") center/cover no-repeat;
  color: var(--blanc);
  position: relative;
  overflow: hidden;
}

.m16-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55); /* voile foncé pour lisibilité */
}
/* ---- Baby avec photo ---- */
.baby-card {
  background: url("/src/img/baby-rugby/u6-2025-2026.jpg") center/cover no-repeat;
  color: var(--blanc);
  position: relative;
  overflow: hidden;
}

.baby-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55); /* voile foncé pour lisibilité */
}

/* ---- Carte u8 avec photo ---- */
.u8-card {
  background: url("/src/img/u8/u8-2025-2026.jpg") center/cover no-repeat;
  color: var(--blanc);
  position: relative;
  overflow: hidden;
}

.u8-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55); /* voile foncé pour lisibilité */
}

/* ---- Carte u10 avec photo ---- */
.u10-card {
  background: url("/src/img/u10/u10-2025-2026.jpg") center/cover no-repeat;
  color: var(--blanc);
  position: relative;
  overflow: hidden;
}

.u10-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55); /* voile foncé pour lisibilité */
}

/* ---- Carte m16 avec photo ---- */
.u12-card {
  background: url("/src/img/u12/u12-2025-2026.jpg") center/cover no-repeat;
  color: var(--blanc);
  position: relative;
  overflow: hidden;
}

.u12-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55); /* voile foncé pour lisibilité */
}
/* ---- Carte u14 avec photo ---- */
.u14-card {
  background: url("/src/img/u14/u14-2025-2026.jpg") center/cover no-repeat;
  color: var(--blanc);
  position: relative;
  overflow: hidden;
}

.u14-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55); /* voile foncé pour lisibilité */
}

/* ---- École de Rugby : valeurs ---- */
.edr-values {
  background: #fafafa00;
  border-top: 1px solid #fafafa00;
  border-bottom: 1px solid #fafafa00;
  font-family: 'Times New Roman', Times, serif;
}
.equipes-page h1 {
  color: #b3050f;
}
.edr-values .lead {
  max-width: 850px;
  margin: 0 auto 18px;
  font-size: 1.05rem;
  color: #f3f1f1;
  text-align: center;
}
.edr-values .note {
  text-align: center;
  margin-top: 18px;
  color: #f3f1f1;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.value-card {
  background: #050202;
  border: 1px solid #eee;
  border-top: 4px solid var(--rouge);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.value-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
}

.value-card h3 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  text-transform: uppercase;
}



/* Responsive */
@media (max-width: 960px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* Lien cartes cliquable */

.team-card { position: relative; }

.team-card .full-card-link {
  position: absolute;
  inset: 0;          /* top/right/bottom/left: 0 */
  z-index: 1;
  text-indent: -9999px; /* rend le lien invisible mais lisible par les lecteurs d'écran */
  text-decoration: none;
  color: inherit;
}

/* Accessibilité au clavier sans impacter le design au repos */
.team-card .full-card-link:focus-visible {
  outline: 3px solid var(--rouge, #e30613);
  outline-offset: 3px;
}
