/* ==========================================================================
   RACING CLUB D'ABIDJAN — charte graphique du site
   Bleu royal / Rose / Or — d'après le blason et le dossier de sponsoring
   ========================================================================== */

:root {
  --cta: #f5c032;
  --cta-dark: #e0a91a;
  --navy: #0a102e;
  --navy-2: #101740;
  --blue: #1b2a8f;
  --blue-2: #2136bd;
  --pink: #f4587a;
  --pink-soft: #ff7d9a;
  --gold: #c9a24b;
  --gold-soft: #e3c37c;
  --paper: #f6f7fc;
  --white: #ffffff;
  --ink: #131735;
  --muted: #5a6180;
  --radius: 18px;
  --shadow: 0 18px 50px -18px rgba(10, 16, 46, .35);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Manrope", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ---------- Typographie ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1.05;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .95rem;
  color: var(--pink);
}

.eyebrow::before {
  content: "";
  width: 34px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--pink));
  border-radius: 2px;
}

.section { padding: clamp(4rem, 8vw, 7rem) 0; }

.section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: 720px; }
.section-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin: .5rem 0 .8rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.light h2 { color: var(--white); }
.section-head.light p { color: rgba(255, 255, 255, .72); }

.slashes { color: var(--gold); font-weight: 800; letter-spacing: -2px; margin-right: .35rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 1.02rem;
  padding: .85rem 1.9rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.btn svg { width: 17px; height: 17px; }

.btn-pink { background: linear-gradient(120deg, var(--pink), #e13a60); color: var(--white); box-shadow: 0 12px 30px -10px rgba(244, 88, 122, .6); }
.btn-gold { background: linear-gradient(120deg, var(--gold-soft), var(--gold)); color: var(--navy); box-shadow: 0 12px 30px -10px rgba(201, 162, 75, .55); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: var(--white); background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn-navy { background: var(--navy); color: var(--white); }

.btn:hover { transform: translateY(-3px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }

/* ---------- Header 3 niveaux (style Barça) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--white);
  box-shadow: 0 8px 30px -18px rgba(10, 16, 46, .35);
}

.topbar { background: var(--navy); color: var(--white); font-size: .82rem; }
.topbar-in { display: flex; align-items: center; gap: 1rem; padding: .5rem 0 .5rem 130px; }

.topbar-note {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255, 255, 255, .08);
  border-radius: 999px;
  padding: .35rem 1rem;
  color: rgba(255, 255, 255, .85);
  min-width: 0;
}

.topbar-note b { color: var(--gold-soft); white-space: nowrap; }
.topbar-note span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: .9rem; }

.lang-badge {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  font-size: .72rem;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .75) !important;
}
.lang-badge.active { background: var(--white); color: var(--navy) !important; }

.nav-search { display: inline-flex; align-items: center; color: var(--navy); }
.nav-search svg { width: 21px; height: 21px; }
.topbar-right a { color: rgba(255, 255, 255, .85); font-weight: 600; white-space: nowrap; }
.topbar-right a:hover { color: var(--white); }

.topbar-cta {
  background: linear-gradient(120deg, var(--pink), #e13a60) !important;
  color: var(--white) !important;
  border-radius: 8px;
  padding: .4rem 1.1rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: .8rem;
  font-weight: 700;
}

.site-header::after {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-2) 48%, var(--pink) 52%, var(--pink) 100%);
}

.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 0 0 0 150px; position: relative; min-height: 90px; }

.brand { position: absolute; left: 6px; top: -44px; z-index: 20; }
.brand img { width: 104px; height: auto; filter: drop-shadow(0 6px 14px rgba(10, 16, 46, .35)); transition: transform .2s ease; }
.brand:hover img { transform: scale(1.04); }
.brand-name { display: none !important; }
.brand-name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; line-height: 1; }
.brand-name span { display: block; font-size: 1.12rem; letter-spacing: .5px; white-space: nowrap; }
.brand-name small { display: block; font-size: .68rem; letter-spacing: 3.5px; color: var(--gold); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 2.3rem; width: 100%; }

.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
  white-space: nowrap;
  color: var(--navy);
  padding: .35rem 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 3px;
  background: var(--cta);
  transition: width .3s ease;
}

.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--blue); }
.main-nav .btn { padding: .55rem 1.4rem; font-size: .9rem; }

.nav-bell { position: relative; font-size: 1.05rem; line-height: 1; padding: .3rem !important; filter: grayscale(1) brightness(.4); }
.nav-bell::after { display: none !important; }

.bell-badge {
  position: absolute;
  top: -4px; right: -7px;
  background: var(--pink);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .62rem;
  min-width: 16px; height: 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 3px;
}

.footer-newsletter input::placeholder { color: rgba(255, 255, 255, .45); }

@media (max-width: 1560px) {
  .brand-name small { display: none; }
}

@media (max-width: 1460px) {
  .brand-name { display: none; }
}

.burger {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 101;
}

.burger span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }

body.nav-open .burger span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  isolation: isolate;
  padding: 3rem 0;
  min-height: calc(100svh - 122px);
}

.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(115deg, rgba(10, 16, 46, .94) 12%, rgba(27, 42, 143, .68) 48%, rgba(10, 16, 46, .45) 100%),
    linear-gradient(to top, rgba(10, 16, 46, .95) 0%, transparent 45%);
}

.hero-inner { position: relative; }

.hero .eyebrow { color: var(--gold-soft); }

.hero h1 {
  font-size: clamp(3.2rem, 9vw, 6.8rem);
  font-weight: 800;
  margin: 1rem 0 .4rem;
  max-width: 900px;
}

.hero h1 .accent { color: transparent; -webkit-text-stroke: 2px var(--pink); }

.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, .82);
  max-width: 560px;
  margin-bottom: 2.2rem;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  margin-top: clamp(2.5rem, 6vh, 5rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.hero-stat { background: rgba(10, 16, 46, .55); padding: 1.3rem 1.5rem; }
.hero-stat b { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: var(--gold-soft); line-height: 1; }
.hero-stat small { text-transform: uppercase; letter-spacing: 1.5px; font-size: .72rem; color: rgba(255, 255, 255, .75); }

.scroll-hint {
  position: absolute;
  bottom: 1.6rem; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, .5);
  border-radius: 14px;
}

.scroll-hint::before {
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 3px;
  background: var(--gold-soft);
  animation: scrollhint 1.8s infinite;
}

@keyframes scrollhint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Page hero (pages intérieures) ---------- */
.page-hero {
  position: relative;
  color: var(--white);
  padding: 4.5rem 0;
  isolation: isolate;
  overflow: hidden;
}

.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }

.page-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, rgba(10, 16, 46, .95) 20%, rgba(27, 42, 143, .75) 65%, rgba(244, 88, 122, .35));
}

.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-top: .8rem; }
.page-hero p { max-width: 640px; color: rgba(255, 255, 255, .8); margin-top: .8rem; font-size: 1.06rem; }

.breadcrumb { font-size: .8rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255, 255, 255, .6); }
.breadcrumb a:hover { color: var(--gold-soft); }

/* ---------- Cartes génériques ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }

/* ---------- Piliers ---------- */
.pillar { padding: 2rem 1.8rem; position: relative; border-top: 4px solid var(--gold); }
.pillar .num { font-family: var(--font-display); font-weight: 800; font-size: 3rem; color: rgba(27, 42, 143, .1); position: absolute; top: .6rem; right: 1.2rem; line-height: 1; }
.pillar h3 { font-size: 1.5rem; color: var(--blue); margin-bottom: .6rem; }
.pillar p { color: var(--muted); font-size: .97rem; }

/* ---------- Bandeau palmarès ---------- */
.honours { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }

.honours::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(244, 88, 122, .22), transparent 65%);
}

.honours-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; position: relative; }

.honour {
  text-align: center;
  padding: 1.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  transition: transform .3s ease, border-color .3s ease;
}

.honour:hover { transform: translateY(-6px); border-color: var(--gold); }
.honour .year { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--gold-soft); line-height: 1; }
.honour .trophy { width: 40px; height: 40px; margin: .8rem auto .6rem; color: var(--pink); }
.honour p { font-size: .85rem; color: rgba(255, 255, 255, .8); line-height: 1.4; }

/* ---------- Cartes joueurs ---------- */
.player-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(155deg, var(--blue) 0%, var(--navy) 70%);
  color: var(--white);
  aspect-ratio: 3 / 3.8;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.3rem;
  isolation: isolate;
  box-shadow: var(--shadow);
  transition: transform .3s ease;
}

.player-card:hover { transform: translateY(-6px); }

.player-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/crest.png") no-repeat right -28% top -8% / 75%;
  opacity: .1;
  z-index: -1;
}

.player-card.has-photo::before { display: none; }

.player-card .pc-photo { position: absolute; inset: 0; z-index: -2; }
.player-card .pc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.player-card .pc-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 16, 46, .95) 8%, rgba(10, 16, 46, .25) 55%, transparent); }

.player-card .pc-number {
  position: absolute;
  top: .9rem; right: 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--gold-soft);
  line-height: 1;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .5);
}

.player-card .pc-initials {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 7vw, 4.6rem);
  color: rgba(255, 255, 255, .16);
  position: absolute;
  top: 42%; left: 50%;
  transform: translate(-50%, -50%);
  letter-spacing: 2px;
}

.player-card h3 { font-size: 1.32rem; line-height: 1.1; position: relative; }

.pc-meta { display: flex; align-items: center; gap: .7rem; margin-top: .55rem; flex-wrap: wrap; }

.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: .72rem;
  padding: .28rem .75rem;
  border-radius: 999px;
}

.badge-pink { background: var(--pink); color: var(--white); }
.badge-gold { background: rgba(201, 162, 75, .18); color: var(--gold-soft); border: 1px solid rgba(201, 162, 75, .5); }
.badge-line { border: 1px solid rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .85); }

.pc-age { font-size: .8rem; color: rgba(255, 255, 255, .68); letter-spacing: 1px; text-transform: uppercase; }

.badge-ms { background: rgba(249, 115, 22, .18); color: #fdba74; border: 1px solid rgba(249, 115, 22, .55); }

.pc-bio { display: flex; gap: .8rem; margin-top: .5rem; font-size: .74rem; letter-spacing: 1px; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.pc-bio span { border-left: 2px solid var(--gold); padding-left: .45rem; }

.ms-note { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.6rem; font-size: .8rem; color: var(--muted); }
.ms-note .ms-logo { font-family: var(--font-display); font-weight: 800; color: #f97316; letter-spacing: .5px; }

/* ---------- Effectif : onglets & groupes ---------- */
.tabs { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 2.2rem; }

.tab-btn {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: .95rem;
  padding: .65rem 1.6rem;
  border-radius: 999px;
  border: 2px solid rgba(19, 23, 53, .18);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all .25s ease;
}

.tab-btn.active, .tab-btn:hover { background: var(--blue); border-color: var(--blue); color: var(--white); box-shadow: 0 10px 25px -12px rgba(27, 42, 143, .6); }

.pos-group { margin-bottom: 3rem; }

.pos-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.6rem;
  color: var(--blue);
  margin-bottom: 1.4rem;
}

.pos-title::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, rgba(27, 42, 143, .3), transparent); }
.pos-title .count { font-family: var(--font-body); font-size: .8rem; font-weight: 700; background: var(--pink); color: var(--white); border-radius: 999px; padding: .15rem .7rem; letter-spacing: 1px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 2rem; }

.timeline::before {
  content: "";
  position: absolute;
  left: 10px; top: 6px; bottom: 6px;
  width: 3px;
  background: linear-gradient(180deg, var(--pink), var(--gold));
  border-radius: 3px;
}

.tl-item { position: relative; padding: 0 0 2.4rem 3rem; }
.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: "";
  position: absolute;
  left: 3px; top: 6px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--pink);
  border: 4px solid var(--paper);
  box-shadow: 0 0 0 2px var(--pink);
}

.tl-item .year { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--blue); line-height: 1; }
.tl-item h3 { font-size: 1.15rem; margin: .4rem 0 .3rem; }
.tl-item p { color: var(--muted); font-size: .96rem; max-width: 560px; }

/* ---------- Président ---------- */
.president { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.president-photo { position: relative; }
.president-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; aspect-ratio: 4 / 4.4; object-position: top; }

.president-photo::after {
  content: "";
  position: absolute;
  inset: 1.2rem -1.2rem -1.2rem 1.2rem;
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}

.president-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--pink);
  border-left: 4px solid var(--gold);
  padding-left: 1.2rem;
  margin: 1.4rem 0;
}

.exp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; margin-top: 1.5rem; }

.exp-item { background: var(--white); border-radius: 14px; padding: .95rem 1.15rem; box-shadow: 0 10px 30px -18px rgba(10, 16, 46, .35); }
.exp-item b { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1px; font-size: 1.02rem; color: var(--blue); }
.exp-item span { font-size: .84rem; color: var(--muted); }

/* ---------- Sections image + texte ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse > .split-media { order: 2; }

.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.split-media .tag {
  position: absolute;
  bottom: 1.2rem; left: 1.2rem;
  background: rgba(10, 16, 46, .85);
  color: var(--white);
  backdrop-filter: blur(8px);
  padding: .6rem 1.1rem;
  border-radius: 12px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: .85rem;
  border: 1px solid rgba(201, 162, 75, .55);
}

.checklist { margin-top: 1.4rem; display: grid; gap: .8rem; }

.checklist li { display: flex; gap: .8rem; align-items: flex-start; color: var(--ink); font-size: .99rem; }

.checklist li::before {
  content: "";
  flex: 0 0 auto;
  width: 22px; height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--gold));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* ---------- Chiffres clés ---------- */
.stats-band { background: linear-gradient(120deg, var(--blue) 0%, var(--navy) 80%); color: var(--white); position: relative; overflow: hidden; }

.stats-band::after {
  content: "";
  position: absolute;
  right: -8%; bottom: -30%;
  width: 480px; height: 480px;
  background: url("../images/crest.png") no-repeat center / contain;
  opacity: .07;
  transform: rotate(-8deg);
}

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; position: relative; z-index: 1; }

.stat b { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; display: block; color: var(--gold-soft); }
.stat b .unit { font-size: .55em; color: var(--pink-soft); }
.stat span { text-transform: uppercase; letter-spacing: 1.8px; font-size: .78rem; color: rgba(255, 255, 255, .8); }

/* ---------- Académie ---------- */
.age-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }

.age-cat {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.7rem 1rem 1.4rem;
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--pink);
  transition: transform .3s ease;
}

.age-cat:hover { transform: translateY(-6px); }
.age-cat b { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--blue); line-height: 1; }
.age-cat span { display: block; margin-top: .4rem; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; }

/* ---------- Ultras ---------- */
.ultras { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }

.ultras-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.2;
  color: var(--white);
}

.ultras-quote em { color: var(--pink); }
.ultras-quote .gold { color: var(--gold-soft); font-style: normal; }

/* ---------- Galerie ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }

.g-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}

.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.06); }

.g-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 16, 46, .5), transparent 45%);
  opacity: 0;
  transition: opacity .3s ease;
}

.g-item:hover::after { opacity: 1; }

.g-item.portrait { aspect-ratio: 3 / 4; }

.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(6, 9, 28, .94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 88vh; border-radius: 12px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }

.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .3);
  color: var(--white);
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .25s ease;
}

.lightbox button:hover { background: var(--pink); border-color: var(--pink); }
.lb-close { top: 1.4rem; right: 1.4rem; }
.lb-prev { left: 1.4rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.4rem; top: 50%; transform: translateY(-50%); }

/* ---------- Partenaires ---------- */
.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }

.partner {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.9rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
  border-top: 3px solid transparent;
}

.partner:hover { transform: translateY(-6px); border-top-color: var(--pink); }
.partner .p-logo { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; text-transform: uppercase; color: var(--blue); line-height: 1.1; }
.partner .p-type { display: block; margin-top: .5rem; font-size: .78rem; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); }
.partner .p-country { margin-top: .8rem; display: inline-block; font-size: .74rem; background: var(--paper); border-radius: 999px; padding: .2rem .8rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(115deg, rgba(10, 16, 46, .93) 25%, rgba(27, 42, 143, .8) 70%, rgba(244, 88, 122, .55)),
    var(--navy);
  color: var(--white);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -60px; top: 50%;
  transform: translateY(-50%) rotate(10deg);
  width: 320px; height: 320px;
  background: url("../images/crest.png") no-repeat center / contain;
  opacity: .12;
}

.cta-band h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 560px; }
.cta-band p { color: rgba(255, 255, 255, .78); margin-top: .6rem; max-width: 520px; }

/* ---------- Formulaires ---------- */
.form-card { padding: clamp(1.8rem, 4vw, 2.8rem); }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }

label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1.5px; font-size: .82rem; font-weight: 600; color: var(--blue); display: block; margin-bottom: .35rem; }

input, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: .98rem;
  padding: .85rem 1.1rem;
  border: 2px solid rgba(19, 23, 53, .12);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .25s ease, box-shadow .25s ease;
}

input:focus, textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(244, 88, 122, .15); background: var(--white); }

.field-error { color: #d02a55; font-size: .82rem; margin-top: .3rem; }

.alert-success {
  background: #e8f8ef;
  border: 1px solid #7bd8a5;
  color: #157a48;
  border-radius: 12px;
  padding: 1rem 1.3rem;
  margin-bottom: 1.4rem;
  font-weight: 600;
}

.contact-info { display: grid; gap: 1.1rem; }

.ci-item { display: flex; gap: 1rem; align-items: flex-start; background: var(--white); border-radius: 14px; padding: 1.1rem 1.3rem; box-shadow: var(--shadow); }
.ci-item .ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--navy)); color: var(--gold-soft); }
.ci-item .ico svg { width: 20px; height: 20px; }
.ci-item b { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1px; color: var(--blue); display: block; font-size: 1.02rem; }
.ci-item span { color: var(--muted); font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .8); padding: 4.5rem 0 0; position: relative; overflow: hidden; }

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-2), var(--pink), var(--gold));
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; }

.footer-grid h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 2px; color: var(--white); font-size: 1.05rem; margin-bottom: 1.1rem; }

.footer-grid a { display: block; padding: .28rem 0; font-size: .93rem; color: rgba(255, 255, 255, .72); transition: color .2s ease, transform .2s ease; }
.footer-grid a:hover { color: var(--gold-soft); transform: translateX(4px); }

.footer-brand img { width: 74px; margin-bottom: 1rem; }
.footer-brand p { font-size: .92rem; max-width: 300px; color: rgba(255, 255, 255, .65); }

.socials { display: flex; gap: .7rem; margin-top: 1.2rem; }

.socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  display: grid;
  place-items: center;
  transition: all .25s ease;
}

.socials a:hover { background: var(--pink); border-color: var(--pink); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; fill: var(--white); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.3rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: rgba(255, 255, 255, .5); }

/* ---------- Matchs : prochain match ---------- */
.next-match {
  background:
    linear-gradient(115deg, rgba(10, 16, 46, .95) 20%, rgba(27, 42, 143, .82) 65%, rgba(244, 88, 122, .45)),
    url("../images/gallery/match-236.jpg") center / cover;
  border-radius: calc(var(--radius) + 6px);
  color: var(--white);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}

.nm-label { display: inline-block; }

.nm-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.2rem;
  margin: 1.4rem 0;
  text-align: center;
}

.nm-team { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.nm-team img { width: 74px; height: auto; }

.nm-team .initials-crest {
  width: 74px; height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .1);
  border: 2px solid rgba(255, 255, 255, .3);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--gold-soft);
}

.nm-team b { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1px; font-size: 1.25rem; line-height: 1.1; }

.nm-vs { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); color: var(--pink); font-style: italic; }

.nm-meta { display: flex; justify-content: center; gap: 1.4rem; flex-wrap: wrap; font-size: .9rem; color: rgba(255, 255, 255, .8); }
.nm-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.nm-meta svg { width: 16px; height: 16px; color: var(--gold-soft); }

/* ---------- Matchs : lignes de calendrier ---------- */
.fixture-list { display: grid; gap: .9rem; }

.fixture {
  display: grid;
  grid-template-columns: 110px 1fr auto auto;
  align-items: center;
  gap: 1.2rem;
  background: var(--white);
  border-radius: 14px;
  padding: 1rem 1.4rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--blue);
  transition: transform .25s ease;
}

.fixture:hover { transform: translateX(4px); }
.fixture.win { border-left-color: #1fa564; }
.fixture.draw { border-left-color: var(--gold); }
.fixture.loss { border-left-color: #e0335e; }

.fx-date { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; color: var(--blue); line-height: 1.15; }
.fx-date small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .74rem; color: var(--muted); text-transform: none; letter-spacing: 0; }

.fx-match b { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .5px; font-size: 1.12rem; color: var(--ink); }
.fx-match small { display: block; font-size: .8rem; color: var(--muted); }

.fx-score {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--navy);
  background: var(--paper);
  border-radius: 10px;
  padding: .3rem .9rem;
  white-space: nowrap;
}

.fx-badge {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--white);
  font-size: 1.05rem;
}

.fx-badge.V { background: #1fa564; }
.fx-badge.N { background: var(--gold); }
.fx-badge.D { background: #e0335e; }

.fx-time { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--pink); white-space: nowrap; }

.form-badges { display: inline-flex; gap: .4rem; vertical-align: middle; }

/* ---------- Calendrier façon appli de paris (thème clair) ---------- */
.bk-board {
  background: var(--white);
  border: 1px solid rgba(19, 23, 53, .07);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1rem, 2.5vw, 1.8rem);
  box-shadow: var(--shadow);
}

.bk-group { margin-bottom: 1.6rem; }
.bk-group:last-child { margin-bottom: 0; }

.bk-head {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .9rem;
  margin-bottom: .55rem;
  border-radius: 10px;
  background: rgba(27, 42, 143, .06);
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .88rem;
}

.bk-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.bk-head .count { margin-left: auto; font-family: var(--font-body); font-weight: 700; font-size: .72rem; background: rgba(27, 42, 143, .1); border-radius: 999px; padding: .15rem .65rem; letter-spacing: 1px; }

.bk-row {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  align-items: center;
  gap: 1rem;
  background: var(--paper);
  border: 1px solid rgba(19, 23, 53, .08);
  border-radius: 12px;
  padding: .8rem 1rem;
  margin-bottom: .5rem;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.bk-row:hover { background: var(--white); border-color: rgba(244, 88, 122, .5); transform: translateX(3px); box-shadow: 0 8px 22px -14px rgba(10, 16, 46, .35); }
.bk-row:last-child { margin-bottom: 0; }

.bk-when {
  text-align: center;
  border-right: 1px solid rgba(19, 23, 53, .1);
  padding-right: .9rem;
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.35;
}

.bk-when b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--blue); letter-spacing: .5px; }
.bk-when .live-dot { color: var(--pink); font-weight: 700; }

.bk-teams { display: grid; gap: .45rem; min-width: 0; }

.bk-team { display: flex; align-items: center; gap: .65rem; min-width: 0; }

.bk-team .bk-crest {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(27, 42, 143, .07);
  border: 1px solid rgba(27, 42, 143, .18);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .78rem;
  color: var(--blue);
  overflow: hidden;
}

.bk-team .bk-crest img { width: 20px; height: auto; }

.bk-team .bk-name {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.02rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bk-team.rca .bk-name { color: var(--blue); font-weight: 700; }
.bk-team.winner .bk-name { color: #a5822f; }

.bk-team .bk-goals {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--muted);
  min-width: 26px;
  text-align: center;
}

.bk-team.winner .bk-goals { color: #a5822f; }
.bk-team.drawn .bk-goals, .bk-team.rca .bk-goals { color: var(--navy); }

.bk-side {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding-left: .9rem;
  border-left: 1px solid rgba(19, 23, 53, .1);
}

.bk-chip {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(19, 23, 53, .16);
  border-radius: 9px;
  padding: .5rem .85rem;
  text-align: center;
  min-width: 64px;
  transition: all .2s ease;
}

.bk-row:hover .bk-chip { background: var(--pink); border-color: var(--pink); color: var(--white); }
.bk-row:hover .bk-chip small { color: rgba(255, 255, 255, .85); }

.bk-chip small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .58rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }

.bk-result {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
}

.bk-result.V { background: #1fa564; }
.bk-result.N { background: var(--gold); color: var(--navy); }
.bk-result.D { background: #e0335e; }

.bk-venue { font-size: .62rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }

.bk-empty { color: var(--muted); padding: 1rem; }

@media (max-width: 640px) {
  .bilan-cards { grid-template-columns: 1fr 1fr; }
  .bk-row { grid-template-columns: 64px 1fr auto; gap: .7rem; padding: .7rem .75rem; }
  .bk-when { padding-right: .6rem; }
  .bk-when b { font-size: 1.05rem; }
  .bk-side { padding-left: .6rem; }
  .bk-chip { min-width: 52px; padding: .4rem .6rem; font-size: .9rem; }
  .bk-team .bk-name { font-size: .92rem; }
}

/* ---------- Effectif accueil façon appli de paris (thème clair) ---------- */
.bk-players { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .8rem; }

.bk-prow {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .9rem;
  background: var(--paper);
  border: 1px solid rgba(19, 23, 53, .08);
  border-radius: 12px;
  padding: .6rem .9rem;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.bk-prow:hover { background: var(--white); border-color: rgba(244, 88, 122, .5); transform: translateX(3px); box-shadow: 0 8px 22px -14px rgba(10, 16, 46, .35); }

.bk-prow .bk-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(201, 162, 75, .65);
  background: rgba(27, 42, 143, .06);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
  color: var(--blue);
}

.bk-prow .bk-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.bk-prow .bk-pname { min-width: 0; }
.bk-prow .bk-pname b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.05rem;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bk-prow .bk-pname small { font-size: .68rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }

.bk-prow .bk-pside { display: flex; gap: .45rem; align-items: center; }

.bk-num {
  min-width: 42px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: #a5822f;
  background: rgba(201, 162, 75, .14);
  border: 1px solid rgba(201, 162, 75, .45);
  border-radius: 9px;
  padding: .4rem .5rem;
}

.bk-num small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .54rem; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }

.bk-prow:hover .bk-num { background: var(--pink); border-color: var(--pink); color: var(--white); }
.bk-prow:hover .bk-num small { color: rgba(255, 255, 255, .8); }

@media (max-width: 860px) {
  .bk-players { grid-template-columns: 1fr; }
}

/* ---------- Toutes les rencontres (filtres + tableau) ---------- */
.rk-filters {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid rgba(19, 23, 53, .07);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow);
}

.rk-filter-group { display: grid; gap: .5rem; }

.rk-filter-label {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .78rem;
  color: var(--blue);
}

.rk-filters .tab-btn { padding: .45rem 1.1rem; font-size: .88rem; }

.rk-filters select {
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .6rem 2.2rem .6rem 1rem;
  border: 2px solid rgba(19, 23, 53, .14);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b2a8f' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-size: 14px;
}

.rk-filters select:focus { outline: none; border-color: var(--pink); }

.rk-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.rk-table th {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: .8rem;
  text-align: left;
  background: rgba(27, 42, 143, .06);
  color: var(--blue);
  padding: .9rem 1.2rem;
  border-bottom: 2px solid rgba(27, 42, 143, .12);
}

.rk-table td {
  padding: .85rem 1.2rem;
  border-top: 1px solid rgba(19, 23, 53, .07);
  font-size: .95rem;
  vertical-align: middle;
  color: var(--ink);
}

.rk-table tbody tr { transition: background .15s ease; }
.rk-table tbody tr:hover { background: rgba(27, 42, 143, .035); }

.rk-date { font-family: var(--font-display); font-weight: 700; color: var(--navy); white-space: nowrap; }
.rk-date small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .74rem; color: var(--muted); }

.rk-fixture { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; font-size: 1.02rem; }
.rk-fixture em { font-style: italic; color: var(--pink); font-weight: 700; margin: 0 .35rem; }
.rk-fixture .rk-rca { color: var(--blue); font-weight: 700; }

.rk-loc { display: block; margin-top: .25rem; font-size: .76rem; color: var(--muted); }

.rk-upcoming {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: .74rem;
  color: var(--blue);
  background: rgba(27, 42, 143, .07);
  border-radius: 999px;
  padding: .3rem .8rem;
}

@media (max-width: 640px) {
  .rk-filters { align-items: stretch; }
  .rk-table th, .rk-table td { padding: .65rem .7rem; font-size: .86rem; }
  .rk-fixture { font-size: .92rem; }
}

/* ---------- Compte à rebours ---------- */
.countdown { display: flex; gap: .7rem; justify-content: center; margin-top: 1.2rem; }

.cd-cell { text-align: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; padding: .6rem .9rem; min-width: 64px; }
.cd-cell b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--gold-soft); line-height: 1; }
.cd-cell small { font-size: .6rem; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255, 255, 255, .7); }

/* ---------- Classement ---------- */
.rk-table .st-rca td { background: rgba(27, 42, 143, .08); font-weight: 700; }
.rk-table .st-rca td:first-child { border-left: 4px solid var(--pink); }
.st-pos { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--navy); }
.st-pts { font-family: var(--font-display); font-weight: 800; color: var(--blue); font-size: 1.1rem; }

/* ---------- Actualités ---------- */
.post-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .3s ease; }
.post-card:hover { transform: translateY(-6px); }
.post-card .pc-img { aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(140deg, var(--blue), var(--navy)); position: relative; }
.post-card .pc-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card .pc-img .pc-cat { position: absolute; top: .8rem; left: .8rem; }
.post-card .pc-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-card h3 { font-size: 1.3rem; line-height: 1.15; color: var(--navy); }
.post-card .pc-excerpt { color: var(--muted); font-size: .92rem; flex: 1; }
.post-card .pc-date { font-size: .76rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }

.article-body { max-width: 760px; font-size: 1.05rem; line-height: 1.85; color: #2a2f52; }
.article-body p { margin-bottom: 1.1rem; }
.article-hero-img { border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 2rem; max-height: 480px; width: 100%; object-fit: cover; }

/* ---------- Fiche joueur ---------- */
.pj-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end; }
.pj-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: linear-gradient(150deg, var(--blue), var(--navy)); }
.pj-photo img { width: 100%; aspect-ratio: 3/3.6; object-fit: cover; object-position: top; }
.pj-number { font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 9vw, 7rem); color: rgba(255, 255, 255, .25); line-height: 1; }
.pj-name { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--white); }
.pj-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.pj-fact { background: var(--white); border-radius: 14px; padding: 1rem 1.2rem; box-shadow: var(--shadow); border-top: 3px solid var(--gold); }
.pj-fact b { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--blue); }
.pj-fact span { font-size: .74rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }

/* ---------- Match center ---------- */
.mc-score-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; text-align: center; margin: 1.4rem 0; }
.mc-team { display: flex; flex-direction: column; align-items: center; gap: .6rem; color: var(--white); }
.mc-team img { width: 88px; }
.mc-team .initials-crest { width: 88px; height: 88px; font-size: 2rem; }
.mc-team b { font-family: var(--font-display); text-transform: uppercase; font-size: 1.35rem; line-height: 1.1; }
.mc-score { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 7vw, 5rem); color: var(--white); line-height: 1; white-space: nowrap; }
.mc-score .sep { color: var(--pink); }

.timeline-match { position: relative; max-width: 620px; margin-inline: auto; }
.tm-event { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(19, 23, 53, .07); align-items: center; }
.tm-event:last-child { border-bottom: 0; }
.tm-min { font-family: var(--font-display); font-weight: 800; color: var(--pink); font-size: 1.1rem; text-align: center; background: rgba(244, 88, 122, .1); border-radius: 9px; padding: .3rem; }
.tm-body b { color: var(--navy); }
.tm-body small { display: block; color: var(--muted); font-size: .82rem; }
.tm-event.adversaire .tm-min { color: var(--muted); background: rgba(19, 23, 53, .06); }

/* ---------- La Tanière ---------- */
.tn-signature { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.4rem); color: var(--blue); }
.tn-signature em { color: var(--pink); font-style: italic; }

.tn-parcours { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.tn-step { background: var(--white); border-radius: 999px; padding: .55rem 1.3rem; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--blue); box-shadow: var(--shadow); border: 1px solid rgba(27, 42, 143, .12); }
.tn-arrow { color: var(--gold); font-weight: 800; }

.tn-event { border-left: 4px solid var(--gold); }
.tn-event h3 { color: var(--blue); font-size: 1.25rem; margin-bottom: .4rem; }
.tn-event p { color: var(--muted); font-size: .93rem; }

/* ---------- Feuille de match (impression) ---------- */
.sheet { max-width: 860px; margin: 2rem auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.2rem; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 3px solid var(--navy); padding-bottom: 1rem; margin-bottom: 1.4rem; }
.sheet-head img { width: 58px; }

@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
  .sheet { box-shadow: none; margin: 0; max-width: none; }
}

/* ---------- Cartes de membres (offres) ---------- */
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .3s ease;
}

.plan-card:hover { transform: translateY(-6px); }
.plan-card .pl-head { padding: 1.6rem 1.5rem 1.2rem; color: var(--white); }
.plan-card .pl-head h3 { font-size: 1.6rem; }
.plan-card .pl-head p { font-size: .85rem; opacity: .85; }
.plan-card .pl-price { font-family: var(--font-display); font-weight: 800; font-size: 2rem; margin-top: .6rem; }
.plan-card .pl-price small { font-size: .75rem; font-family: var(--font-body); font-weight: 600; opacity: .8; }
.plan-card .pl-body { padding: 1.3rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.plan-card .pl-body li { display: flex; gap: .6rem; font-size: .92rem; color: var(--ink); }
.plan-card .pl-body li::before { content: "✓"; color: var(--gold); font-weight: 800; }
.plan-card .pl-body .btn { margin-top: auto; justify-content: center; }

/* ---------- Carte de membre numérique ---------- */
.member-card {
  width: min(430px, 100%);
  aspect-ratio: 8.6/5.4;
  border-radius: 18px;
  padding: 1.3rem 1.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px -18px rgba(10, 16, 46, .55);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.member-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/crest.png") no-repeat right -14% bottom -30% / 55%;
  opacity: .12;
  z-index: -1;
}

.member-card .mcard-top { display: flex; align-items: center; gap: .7rem; }
.member-card .mcard-top img { width: 38px; }
.member-card .mcard-top b { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1px; font-size: 1rem; line-height: 1.1; }
.member-card .mcard-type { margin-left: auto; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem; background: rgba(255, 255, 255, .18); padding: .25rem .8rem; border-radius: 999px; }

.member-card .mcard-body { display: flex; gap: 1rem; align-items: center; margin-top: auto; }
.member-card .mcard-photo { width: 74px; height: 74px; border-radius: 12px; object-fit: cover; border: 2px solid rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .15); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.member-card .mcard-id { flex: 1; min-width: 0; }
.member-card .mcard-id b { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: 1.2rem; line-height: 1.1; }
.member-card .mcard-id span { font-size: .78rem; opacity: .85; display: block; }
.member-card .mcard-qr { background: var(--white); border-radius: 10px; padding: 5px; width: 82px; height: 82px; display: grid; place-items: center; }
.member-card .mcard-qr img, .member-card .mcard-qr canvas { width: 72px !important; height: 72px !important; }

/* ---------- Vérification ---------- */
.verify-box { max-width: 460px; margin: 0 auto; text-align: center; padding: 2.4rem 2rem; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); }
.verify-badge { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.2rem; font-size: 2.6rem; color: var(--white); }
.verify-badge.ok { background: #1fa564; }
.verify-badge.ko { background: #e0335e; }

/* ---------- Sondages ---------- */
.poll-card { padding: 1.6rem 1.7rem; }
.poll-option { display: block; margin-bottom: .6rem; cursor: pointer; }
.poll-option input { display: none; }
.poll-option .po-row { display: flex; align-items: center; gap: .8rem; border: 2px solid rgba(19, 23, 53, .12); border-radius: 12px; padding: .7rem 1rem; transition: all .2s ease; }
.poll-option input:checked + .po-row { border-color: var(--pink); background: rgba(244, 88, 122, .06); }
.poll-option .po-row b { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .5px; }

.poll-result { margin-bottom: .8rem; }
.poll-result .pr-label { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: .3rem; }
.poll-result .pr-label b { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .5px; color: var(--navy); }
.poll-result .pr-bar { height: 12px; border-radius: 999px; background: rgba(19, 23, 53, .08); overflow: hidden; }
.poll-result .pr-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--pink)); }
.poll-result.winner .pr-fill { background: linear-gradient(90deg, var(--gold), var(--pink)); }

/* ---------- Espace supporter ---------- */
.espace-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; align-items: start; }

@media (max-width: 860px) {
  .espace-grid { grid-template-columns: 1fr; }
  .member-card { margin-inline: auto; }
}

/* ---------- Chat WhatsApp flottant ---------- */
.wa-chat {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: .7rem;
}

.wa-btn {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px -6px rgba(37, 211, 102, .65);
  transition: transform .2s ease;
  position: relative;
}

.wa-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .6);
  animation: wa-pulse 2.2s ease-out infinite;
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.65); opacity: 0; }
}

.wa-btn svg { width: 30px; height: 30px; fill: var(--white); }
.wa-chat:hover .wa-btn { transform: scale(1.08); }

.wa-bubble {
  background: var(--white);
  color: var(--ink);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.45;
  padding: .7rem 1.1rem;
  border-radius: 14px 14px 4px 14px;
  box-shadow: 0 10px 30px -12px rgba(10, 16, 46, .4);
  max-width: 300px;
  text-wrap: balance;
}

@media (max-width: 580px) {
  .wa-bubble { display: none; }
  .wa-btn { width: 52px; height: 52px; }
}

@media print { .wa-chat { display: none !important; } }

/* ---------- Pagination ---------- */
.pagination-wrap { margin-top: 1.8rem; }

.rca-pagination { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }

.pg-btn {
  min-width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0 .6rem;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid rgba(19, 23, 53, .14);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  transition: all .2s ease;
}

a.pg-btn:hover { background: var(--blue); border-color: var(--blue); color: var(--white); transform: translateY(-2px); }

.pg-btn.current { background: linear-gradient(120deg, var(--pink), #e13a60); border-color: transparent; color: var(--white); box-shadow: 0 8px 20px -10px rgba(244, 88, 122, .6); }
.pg-btn.disabled { opacity: .38; cursor: default; }

.pg-info { margin-left: .6rem; font-size: .82rem; color: var(--muted); }

.load-more-wrap { text-align: center; margin-top: 1.8rem; }

/* ---------- Back-office ---------- */
.admin-body { background: var(--paper); min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }

.admin-side {
  background: var(--navy);
  color: var(--white);
  padding: 1.6rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-side .brand { margin-bottom: 1.6rem; }
.admin-side .brand img { width: 40px; }

.admin-side .nav-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem 1rem;
  border-radius: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: .92rem;
  color: rgba(255, 255, 255, .75);
  transition: all .2s ease;
}

.admin-side .nav-item:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.admin-side .nav-item.active { background: linear-gradient(120deg, var(--pink), #e13a60); color: var(--white); }
.admin-side .nav-item svg { width: 17px; height: 17px; }

.admin-side .spacer { flex: 1; }

.admin-main { padding: 2.2rem 2.6rem; max-width: 1200px; }

.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.admin-head h1 { font-size: 2rem; color: var(--navy); }

.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-bottom: 2rem; }

.admin-stat { background: var(--white); border-radius: 14px; padding: 1.2rem 1.4rem; box-shadow: var(--shadow); border-top: 3px solid var(--pink); }
.admin-stat b { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; color: var(--blue); display: block; line-height: 1; }
.admin-stat span { font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }

.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.admin-table th { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem; text-align: left; background: var(--navy); color: var(--white); padding: .8rem 1.1rem; }
.admin-table td { padding: .75rem 1.1rem; border-top: 1px solid rgba(19, 23, 53, .07); font-size: .93rem; vertical-align: middle; }
.admin-table tr:hover td { background: rgba(27, 42, 143, .035); }

.btn-sm { padding: .4rem 1rem; font-size: .82rem; }
.btn-danger { background: #e0335e; color: var(--white); }

.table-wrap { overflow-x: auto; border-radius: 14px; }

/* mapping photos joueurs */
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }

.map-card { background: var(--white); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.map-card .mc-photo { aspect-ratio: 3/3.4; background: linear-gradient(150deg, var(--blue), var(--navy)); position: relative; cursor: pointer; }
.map-card .mc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.map-card .mc-photo .no-photo { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .4); font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; }
.map-card .mc-photo::after {
  content: "Changer la photo";
  position: absolute; inset: auto 0 0;
  background: rgba(10, 16, 46, .85);
  color: var(--white);
  text-align: center;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: .5rem;
  opacity: 0;
  transition: opacity .25s ease;
}
.map-card .mc-photo:hover::after { opacity: 1; }
.map-card .mc-info { padding: .8rem 1rem; }
.map-card .mc-info b { font-family: var(--font-display); text-transform: uppercase; font-size: .98rem; color: var(--ink); display: block; line-height: 1.15; }
.map-card .mc-info small { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: 1px; }

.photo-picker {
  position: fixed; inset: 0;
  z-index: 300;
  background: rgba(6, 9, 28, .92);
  display: none;
  padding: 3rem 1.5rem;
  overflow-y: auto;
}

.photo-picker.open { display: block; }
.photo-picker .pp-head { display: flex; justify-content: space-between; align-items: center; max-width: 1100px; margin: 0 auto 1.4rem; color: var(--white); }
.photo-picker .pp-head h2 { font-size: 1.5rem; }
.photo-picker .pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .8rem; max-width: 1100px; margin: 0 auto; }
.photo-picker .pp-grid button { border: 3px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; padding: 0; background: none; transition: transform .2s ease, border-color .2s ease; }
.photo-picker .pp-grid button:hover { transform: scale(1.05); border-color: var(--pink); }
.photo-picker .pp-grid button.current { border-color: var(--gold); }
.photo-picker .pp-grid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.photo-picker .pp-none { grid-column: 1 / -1; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(130deg, var(--navy), var(--blue)); padding: 1.5rem; }
.login-card { background: var(--white); border-radius: var(--radius); padding: 2.5rem; width: min(420px, 100%); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); text-align: center; }
.login-card img { width: 84px; margin: 0 auto 1rem; }
.login-card h1 { color: var(--navy); font-size: 1.7rem; margin-bottom: 1.5rem; }

@media (max-width: 900px) {
  .admin-body { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-side .brand { margin-bottom: 0; }
  .admin-side .spacer { display: none; }
  .admin-main { padding: 1.4rem; }
  .admin-cards { grid-template-columns: 1fr 1fr; }
  .fixture { grid-template-columns: 1fr auto; }
  .fx-date { grid-column: 1 / -1; }
  .fx-match { grid-column: 1 / -1; }
}

/* ==========================================================================
   REFONTE STYLE BARÇA
   ========================================================================== */

/* ---------- Sous-navigation contextuelle bicolore ---------- */
.subnav { display: flex; background: var(--blue); color: var(--white); position: relative; z-index: 5; }
.subnav-in { display: flex; width: 100%; overflow-x: auto; scrollbar-width: none; }
.subnav-in::-webkit-scrollbar { display: none; }

.subnav a {
  padding: 1rem 1.4rem 1.1rem;
  font-size: .93rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .88);
  white-space: nowrap;
  position: relative;
}

.subnav a:hover { color: var(--white); }
.subnav a.active { color: var(--white); }
.subnav a.active::after { content: ""; position: absolute; left: 1.4rem; right: 1.4rem; bottom: 8px; height: 3px; background: var(--cta); }

.subnav .subnav-alt { margin-left: auto; display: flex; background: linear-gradient(100deg, var(--pink), #d63762); }
.subnav .subnav-alt a { color: rgba(255, 255, 255, .9); }

/* ---------- Hero « à la une » (accueil) ---------- */
.hero-news { justify-content: flex-end; text-align: center; padding-bottom: 1.4rem; min-height: calc(100svh - 128px); }

/* photo vive : on remplace le voile bleu par une simple vignette basse */
.hero-news::before {
  background:
    linear-gradient(to top, rgba(10, 16, 46, .97) 0%, rgba(10, 16, 46, .68) 26%, rgba(10, 16, 46, .18) 50%, transparent 66%),
    linear-gradient(to bottom, rgba(10, 16, 46, .35), transparent 18%);
}

.hero-news .hn-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 1.06;
  color: var(--white);
  max-width: 1120px;
  margin: 0 auto .4rem;
  text-decoration: underline;
  text-decoration-thickness: 5px;
  text-underline-offset: 10px;
  text-decoration-color: var(--white);
  text-shadow: 0 4px 24px rgba(10, 16, 46, .45);
}

.hero-news .hn-meta { display: flex; align-items: center; justify-content: center; gap: .9rem; margin: .9rem 0 0; color: rgba(255, 255, 255, .85); font-size: .88rem; }
.hero-news .hn-meta .cat { color: var(--gold-soft); font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; display: inline-flex; align-items: center; gap: .45rem; }
.hero-news .hn-meta .cat::before { content: ""; width: 10px; height: 10px; background: var(--gold); }

.hn-cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 300px); gap: 1rem; justify-content: center; margin-top: 1.2rem; }

.hn-card { background: rgba(10, 16, 46, .96); border: 1px solid rgba(255, 255, 255, .1); overflow: hidden; text-align: center; transition: transform .3s ease; display: flex; flex-direction: column; }
.hn-card:hover { transform: translateY(-5px); }
.hn-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.hn-card b { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; color: var(--white); padding: 1.1rem 1.1rem .9rem; line-height: 1.4; }
.hn-card small { color: rgba(255, 255, 255, .55); padding: 0 1rem .9rem; font-size: .74rem; text-transform: uppercase; letter-spacing: 1.5px; }

.hero-news-spacer { display: none; }

/* ---------- Section titres à la Barça ---------- */
.bar-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  color: var(--ink);
  text-align: center;
  margin-bottom: 2rem;
}

.bar-title-row { display: flex; align-items: center; justify-content: flex-start; gap: 1.6rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.bar-title-row .bar-title { margin-bottom: 0; text-align: left; }
.bar-title-row .next-label { font-family: var(--font-display); font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); font-size: .95rem; }

.cd-inline { display: flex; align-items: flex-start; gap: .5rem; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--navy); line-height: 1; }
.cd-inline .sep { color: var(--pink); }
.cd-inline .cd-unit { display: flex; flex-direction: column; align-items: center; }
.cd-inline small { font-family: var(--font-body); font-weight: 700; font-size: .58rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }

/* ---------- Cartes match (accueil) ---------- */
.mcards { display: grid; grid-template-columns: repeat(3, 1fr) 1.1fr; gap: 1rem; align-items: stretch; }

.mcard { background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s ease; }
.mcard:hover { transform: translateY(-5px); }

.mcard .mcard-top { background: var(--navy); color: var(--white); padding: 1.2rem 1rem 1rem; display: grid; grid-template-columns: 1fr auto 1fr; gap: .5rem; align-items: start; text-align: center; }
.mcard-team { display: flex; flex-direction: column; align-items: center; gap: .5rem; min-width: 0; }
.mcard-team img { width: 46px; height: auto; }
.mcard-team .initials-crest { width: 46px; height: 46px; font-size: 1.05rem; }
.mcard-team b { font-size: .82rem; font-weight: 700; line-height: 1.2; }
.mcard-comp { align-self: center; font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: .74rem; color: var(--gold-soft); letter-spacing: 1px; max-width: 90px; line-height: 1.2; }

.mcard .mcard-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.mcard .mcard-body b { font-size: 1.02rem; color: var(--ink); font-weight: 700; }
.mcard .mcard-body span { font-size: .9rem; color: #4c536e; }
.mcard .mcard-body .mc-link { color: var(--blue-2); font-weight: 700; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; margin-top: .2rem; }
.mcard .mcard-body .btn-tickets { margin-top: auto; width: 100%; }

.mphoto-card { border-radius: 14px; overflow: hidden; position: relative; isolation: isolate; box-shadow: var(--shadow); display: flex; align-items: flex-start; padding: 1.3rem; min-height: 300px; background: linear-gradient(140deg, var(--pink), var(--blue)); }
.mphoto-card img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .85; mix-blend-mode: luminosity; }
.mphoto-card h3 { color: var(--white); font-size: 1.5rem; text-shadow: 0 3px 14px rgba(10, 16, 46, .5); }
.mphoto-card a { position: absolute; left: 1.3rem; bottom: 1.2rem; color: var(--white); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Carrousel univers ---------- */
.universe-panel { background: var(--white); border-radius: 8px; box-shadow: var(--shadow); padding: 2rem 1.6rem 1.6rem; }
.universe { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(185px, 1fr); gap: 1rem; overflow-x: auto; padding-bottom: .6rem; scrollbar-width: thin; }

.uni-card { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 3/4.1; display: flex; align-items: flex-end; padding: 1.1rem; isolation: isolate; color: var(--white); box-shadow: var(--shadow); transition: transform .3s ease; }
.uni-card:hover { transform: translateY(-5px); }
.uni-card img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.uni-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 16, 46, .9), rgba(27, 42, 143, .15) 55%); }
.uni-card b { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.15rem; line-height: 1.15; }
.uni-card b::after { content: " »"; color: var(--gold-soft); }

/* ---------- Stories ---------- */
.stories { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: .8rem; overflow-x: auto; padding-bottom: .6rem; scrollbar-width: thin; }
.story { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 9/15; box-shadow: var(--shadow); display: block; }
.story img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.story:hover img { transform: scale(1.05); }
.story .new { position: absolute; top: .5rem; left: .5rem; background: var(--cta); color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: .68rem; text-transform: uppercase; padding: .12rem .55rem; border-radius: 4px; }
.story .story-cap { position: absolute; inset: auto 0 0; padding: 1.6rem .6rem .6rem; background: linear-gradient(to top, rgba(10, 16, 46, .85), transparent); color: var(--white); font-size: .74rem; font-weight: 600; text-align: center; }

/* ---------- Palmarès bandeaux (style trophées Barça) ---------- */
.hb-panel { background: var(--navy); border-radius: 10px; padding: 2rem 1.8rem; }
.hb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.hb {
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  background:
    repeating-linear-gradient(90deg, rgba(27, 42, 143, .5) 0 6px, transparent 6px 14px),
    linear-gradient(90deg, #05081c, #10173d);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 1.1rem .8rem;
  color: var(--white);
}
.hb small { font-size: .74rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255, 255, 255, .85); max-width: 90px; line-height: 1.3; text-align: right; }
.hb .cup { font-size: 1.4rem; }
.hb b { font-family: var(--font-display); font-weight: 800; font-size: 2.3rem; color: var(--cta); line-height: 1; }

/* ---------- Partenaires logos blancs ---------- */
.partners-row { display: flex; align-items: center; justify-content: space-around; gap: 2rem; flex-wrap: wrap; padding: 1.5rem 0; }
.partners-row span { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.7rem; color: var(--white); opacity: .92; letter-spacing: 1px; }
.socials-row { display: flex; justify-content: center; gap: 1.4rem; padding: 1rem 0 0; }
.socials-row a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.socials-row svg { width: 20px; height: 20px; fill: var(--white); }

/* ---------- Bannière stade (style « construction works ») ---------- */
.stadium-band {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(340px, 52vw, 620px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.2rem 2.4rem;
  box-shadow: var(--shadow);
}

.stadium-band img.bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.stadium-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(5, 8, 28, .92) 0%, rgba(5, 8, 28, .35) 38%, transparent 65%); }

.stadium-band h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  color: var(--white);
  max-width: 720px;
}

.stadium-band .btn-watch {
  margin-top: 1.4rem;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--blue-2);
  color: var(--white);
  border-radius: 999px;
  padding: .7rem 1.5rem;
  font-weight: 700;
  font-size: .95rem;
  transition: background .2s ease;
}

.stadium-band .btn-watch:hover { background: var(--pink); }
.stadium-band .btn-watch svg { width: 16px; height: 16px; fill: var(--white); }

/* ---------- Bandeau membership ---------- */
.member-band {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  padding: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  background: linear-gradient(100deg, var(--navy) 30%, rgba(27, 42, 143, .85) 65%, rgba(244, 88, 122, .5));
  display: flex;
  align-items: center;
  gap: 2rem;
}

.member-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../images/crest.png") no-repeat right 6% center / auto 130%; opacity: .16; }
.member-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); background: linear-gradient(90deg, var(--gold-soft), #f6dfae); -webkit-background-clip: text; background-clip: text; color: transparent; }
.member-band p { color: rgba(255, 255, 255, .85); margin-top: .5rem; max-width: 560px; }
.member-band .btn { flex: 0 0 auto; margin-left: auto; }
.member-band .btn-tickets { width: auto; }

/* ---------- Calendrier groupé par mois ---------- */
.month-tabs { display: flex; overflow-x: auto; border: 1px solid rgba(19, 23, 53, .1); border-radius: 12px; background: var(--white); margin-bottom: 2rem; scrollbar-width: none; }
.month-tabs::-webkit-scrollbar { display: none; }
.month-tabs a { flex: 1; min-width: 86px; text-align: center; padding: .7rem .4rem .8rem; border-right: 1px solid rgba(19, 23, 53, .08); color: var(--muted); font-size: .8rem; }
.month-tabs a:last-child { border-right: 0; }
.month-tabs a b { display: block; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1rem; color: var(--ink); }
.month-tabs a.active { box-shadow: inset 0 -3px 0 var(--blue); background: rgba(27, 42, 143, .04); }
.month-tabs a.active b { color: var(--blue); }

.month-head { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; color: var(--ink); margin: 2.2rem 0 1rem; }
.month-sep { height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--blue) 0%, var(--blue-2) 48%, var(--pink) 52%); margin-top: 2.2rem; }

.fx2 {
  display: grid;
  grid-template-columns: 130px 150px 1fr auto;
  align-items: center;
  gap: 1.2rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1rem 1.4rem;
  margin-bottom: .8rem;
  position: relative;
}

.fx2.highlight { border: 1px solid rgba(201, 162, 75, .6); }
.fx2 .fx2-tag { position: absolute; top: -11px; left: 14px; background: var(--gold); color: var(--navy); font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: .74rem; padding: .15rem .7rem; border-radius: 4px 4px 4px 0; }

.fx2-when { border-right: 1px solid rgba(19, 23, 53, .1); padding-right: 1rem; }
.fx2-when b { display: block; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.02rem; color: var(--ink); line-height: 1.2; }
.fx2-when span { color: var(--pink); font-weight: 700; font-size: .9rem; }
.fx2-when small { display: block; color: var(--muted); font-size: .72rem; }

.fx2-comp b { display: block; font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.05rem; color: var(--blue); letter-spacing: .5px; }
.fx2-comp.cup b { color: var(--pink); }
.fx2-comp small { color: var(--muted); font-size: .76rem; }

.fx2-teams { display: flex; align-items: center; justify-content: center; gap: .8rem; min-width: 0; }
.fx2-teams .t { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.fx2-teams .t b { font-size: 1.02rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.fx2-teams .t.rca b { color: var(--blue); }
.fx2-teams img { width: 34px; height: auto; }
.fx2-teams .initials-crest { width: 34px; height: 34px; font-size: .8rem; background: rgba(27, 42, 143, .08); border-color: rgba(27, 42, 143, .2); color: var(--blue); }
.fx2-teams .vs { font-family: var(--font-display); font-style: italic; font-weight: 800; color: var(--pink); font-size: .95rem; }
.fx2-teams .sc { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; background: var(--navy); color: var(--white); border-radius: 8px; padding: .25rem .8rem; white-space: nowrap; }

.fx2-side { display: flex; align-items: center; gap: .6rem; }
.btn-tickets { background: var(--cta); color: var(--navy); font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .9rem; border-radius: 6px; padding: .7rem 1.6rem; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; transition: background .2s ease, transform .2s ease; }
.btn-tickets:hover { background: var(--cta-dark); }
.btn-tickets:hover { transform: translateY(-2px); }

/* ---------- Bandeau score du match ---------- */
.score-band { background: linear-gradient(120deg, var(--navy) 20%, var(--blue) 70%, rgba(244, 88, 122, .75)); }
.score-band .mc-score-inbox { background: rgba(27, 42, 143, .8); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: .4rem 1.4rem; }

/* ---------- Footer sitemap ---------- */

@media (max-width: 1100px) {
  .mcards { grid-template-columns: 1fr 1fr; }
  .hn-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .hb-grid { grid-template-columns: 1fr 1fr; }
  .fx2 { grid-template-columns: 1fr auto; }
  .fx2-when { border-right: 0; }
  .fx2-comp { display: none; }
  .fx2-teams { grid-column: 1 / -1; justify-content: flex-start; }
  .hn-cards { grid-template-columns: 1fr; transform: translateY(40px); }
  .hero-news-spacer { height: 60px; }
  .member-band { flex-direction: column; align-items: flex-start; }
  .member-band .btn { margin-left: 0; }
}

@media (max-width: 580px) {
  .mcards { grid-template-columns: 1fr; }
  .topbar-note span { display: none; }
}

/* ---------- Cartes joueurs style Barça ---------- */
.player-card.bplayer { aspect-ratio: 3/3.9; padding: 0; justify-content: flex-end; border-radius: 10px; }
.player-card.bplayer .pc-photo::after { background: linear-gradient(to top, rgba(10, 16, 46, .96) 4%, rgba(10, 16, 46, .35) 34%, transparent 55%); }

.bp-watermark {
  position: absolute;
  top: 34%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 9vw, 7.5rem);
  color: rgba(255, 255, 255, .13);
  line-height: 1;
  z-index: 0;
}

.bp-id { position: relative; text-align: center; padding: 0 1rem 1.2rem; }
.bp-id h3 { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 1.15rem; line-height: 1.25; }
.bp-first { font-weight: 500; color: rgba(255, 255, 255, .92); }
.bp-last { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.35rem; letter-spacing: .5px; }
.bp-pos { display: block; margin-top: .3rem; font-size: .74rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255, 255, 255, .72); }
.bp-badges { margin-top: .5rem; display: flex; gap: .4rem; justify-content: center; }
.bp-badges:empty { display: none; }

.player-card.bplayer:hover .pc-photo img { transform: scale(1.04); }
.player-card.bplayer .pc-photo img { transition: transform .5s ease; }

/* ---------- Animations reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .grid-4, .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .honours-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  .main-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    background: rgba(10, 16, 46, .97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 4.5rem 1.5rem 2.5rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .38s cubic-bezier(.7, 0, .3, 1);
    z-index: 100;
  }

  /* l'espaceur qui sépare les deux moitiés du menu desktop n'a pas sa place ici */
  .main-nav > span { display: none; }

  body.nav-open .main-nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .main-nav a { font-size: 1.4rem; color: rgba(255, 255, 255, .9); text-align: center; }
  .main-nav a.active { color: var(--white); }
  .main-nav a.nav-search { color: var(--white); }
  .burger { display: flex; }
  body.nav-open .burger span { background: var(--white); }
}

/* ---------- Header compact mobile ---------- */
@media (max-width: 900px) {
  .topbar { font-size: .78rem; }
  .topbar-in { padding: .45rem 0; gap: .6rem; }
  .topbar-note { flex: 1 1 auto; min-width: 0; overflow: hidden; padding: .3rem .8rem; }
  .topbar-note span { display: none; }
  .topbar-right { margin-left: 0; flex-shrink: 0; gap: .55rem; }
  .topbar-cta { padding: .35rem .75rem; font-size: .7rem; letter-spacing: .5px; }
  .lang-badge { width: 26px; height: 26px; }

  .nav-wrap { padding: .5rem 0; min-height: 0; }
  .brand { position: static; display: inline-flex; align-items: center; }
  .brand img { width: 52px; filter: none; }
  .burger { margin-left: auto; }
}
@media (max-width: 420px) {
  .topbar-right a[href*="connexion"], .topbar-right a[href*="espace"]:not(.topbar-cta) { display: none; }
}

@media (max-width: 860px) {
  .split, .split.reverse, .president { grid-template-columns: 1fr; }
  .split.reverse > .split-media { order: 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .age-cats { grid-template-columns: repeat(2, 1fr); }
  .president-photo::after { display: none; }
}

@media (max-width: 580px) {
  .grid-3, .grid-2, .grid-4, .partners-grid { grid-template-columns: 1fr; }
  .honours-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .exp-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
}

@media (max-width: 400px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   GALERIE PHOTOS — albums façon FC Barcelona
   ============================================================ */

/* Pastille compteur de photos (📷 18) */
.pcount {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--navy); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  border-radius: 999px; padding: .34rem 1.1rem; line-height: 1;
}
.pcount svg { width: 17px; height: 17px; fill: var(--white); }

/* --- Hero de la galerie (dernier album) --- */
.galhero { min-height: 58vh; }
.galhero .pcount { margin-bottom: 1rem; background: rgba(27, 42, 143, .92); }

/* --- Landing : DERNIÈRES PHOTOS --- */
.ph-big {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.1rem, 4.6vw, 3.2rem); letter-spacing: .5px;
  text-align: center; color: var(--ink); margin: 0 0 2.2rem;
}
.ph-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.phcard {
  background: var(--white); display: flex; flex-direction: column;
  box-shadow: 0 14px 34px -18px rgba(10, 16, 46, .35);
  transition: transform .3s ease, box-shadow .3s ease;
}
.phcard:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -18px rgba(10, 16, 46, .45); }
.phcard .ph-img { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; }
.phcard .ph-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.phcard:hover .ph-img img { transform: scale(1.05); }
.phcard .ph-img .pcount { position: absolute; top: .75rem; right: .75rem; font-size: .95rem; padding: .3rem .95rem; }
.phcard > b {
  display: block; text-align: center; color: var(--ink);
  font-weight: 800; font-size: 1.02rem; line-height: 1.4;
  padding: 1.2rem 1.2rem 1rem; flex: 1;
}
.ph-meta {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(19, 23, 53, .08); padding: .8rem 1.1rem;
}
.ph-meta .cat {
  display: inline-flex; align-items: center; gap: .45rem;
  color: #c1122f; font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; font-size: .82rem;
}
.ph-meta .cat::before { content: "📷"; font-size: .9rem; }
.ph-meta time { color: var(--muted); font-size: .8rem; }

/* --- Détail d'un album : hero dégradé navy → grenat --- */
.alb-hero {
  position: relative; overflow: hidden; color: var(--white);
  background: linear-gradient(115deg, #10173f 0%, #232a68 34%, #6d1f55 72%, #a12147 100%);
  padding: 4.2rem 0 10.5rem; text-align: center;
}
.alb-hero .bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .22; mix-blend-mode: luminosity;
}
.alb-hero .container { position: relative; z-index: 1; }
.alb-hero h1 {
  font-family: var(--font-display); font-weight: 800; color: var(--cta);
  font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.05; margin: 0 0 2.2rem;
}
.alb-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
}
.alb-row .lab {
  justify-self: start; display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; font-size: .85rem; color: rgba(255, 255, 255, .9);
}
.alb-row time { justify-self: end; color: rgba(255, 255, 255, .85); font-size: .88rem; }
.alb-share { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.alb-share small { text-transform: uppercase; letter-spacing: 2px; font-size: .7rem; color: rgba(255, 255, 255, .8); }
.alb-share a {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3);
  color: var(--white); border-radius: 999px; padding: .5rem 1.3rem; font-weight: 700; font-size: .88rem;
}
.alb-share a:hover { background: rgba(255, 255, 255, .22); }

/* --- Mosaïque de photos (masonry) chevauchant le hero --- */
.alb-wrap { position: relative; z-index: 2; margin-top: -8.2rem; padding-bottom: 4rem; }
.masonry { columns: 3; column-gap: 1.4rem; }
.m-item {
  break-inside: avoid; margin: 0 0 1.4rem; cursor: zoom-in;
  overflow: hidden; box-shadow: 0 18px 40px -20px rgba(10, 16, 46, .5);
}
.m-item img { width: 100%; display: block; transition: transform .45s ease; }
.m-item:hover img { transform: scale(1.04); }

/* --- Lightbox : barre inférieure compteur + crédit (façon Barça) --- */
.lightbox.lb-pro { flex-direction: column; }
.lb-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 1.4rem;
  padding: 1rem 5.5rem 1.1rem 2rem; color: var(--white);
  background: linear-gradient(to top, rgba(6, 10, 32, .92), transparent);
}
.lb-count { display: flex; align-items: baseline; gap: .45rem; font-size: .85rem; color: rgba(255, 255, 255, .75); }
.lb-count b { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; color: var(--cta); line-height: 1; }
.lb-credit {
  border-left: 2px solid rgba(255, 255, 255, .25); padding-left: 1.4rem;
  font-weight: 700; font-size: .9rem;
}
.lb-dl {
  margin-left: auto; display: inline-flex; align-items: center; gap: .6rem;
  color: var(--white); font-family: var(--font-display); font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; font-size: .8rem;
}
.lb-dl span.ic {
  width: 38px; height: 38px; border-radius: 50%; background: #1b2a8f;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1rem;
}
.lb-dl:hover span.ic { background: var(--pink); }

/* ============================================================
   LA TANIÈRE — le terrain en images + anciens
   ============================================================ */
.terrain-mosaic {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 1.1rem;
}
.terrain-mosaic a { position: relative; overflow: hidden; display: block; }
.terrain-mosaic a:first-child { grid-column: span 2; grid-row: span 2; }
.terrain-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.terrain-mosaic a:hover img { transform: scale(1.06); }
.terrain-more {
  position: absolute; inset: 0; background: rgba(10, 16, 46, .68);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  color: var(--white); font-family: var(--font-display); font-weight: 800; font-size: 1.7rem;
}
.terrain-more small { font-family: var(--font-body); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gold-soft); }

/* Anciens de La Tanière qui ont réussi */
.alum-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.alum {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .3s ease;
}
.alum:hover { transform: translateY(-5px); }
.alum .alum-photo { aspect-ratio: 3 / 3.4; overflow: hidden; position: relative; }
.alum .alum-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.alum .alum-period {
  position: absolute; top: .8rem; left: .8rem; background: rgba(10, 16, 46, .85);
  color: var(--gold-soft); font-family: var(--font-display); font-weight: 700;
  font-size: .85rem; letter-spacing: 1px; padding: .28rem .8rem; border-radius: 999px;
}
.alum-body { padding: 1.2rem 1.2rem 1.4rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.alum-body .alum-name { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; line-height: 1.05; color: var(--white); text-transform: uppercase; }
.alum-body .alum-pos { color: rgba(255, 255, 255, .6); font-size: .78rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }
.alum-club {
  margin-top: .2rem; display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start;
  background: rgba(245, 192, 50, .14); border: 1px solid rgba(245, 192, 50, .5);
  color: var(--cta); font-weight: 800; font-size: .82rem; border-radius: 999px; padding: .3rem .9rem;
}
.alum-body p { color: rgba(255, 255, 255, .75); font-size: .86rem; line-height: 1.55; margin: .3rem 0 0; }

/* --- Responsive galerie / tanière --- */
@media (max-width: 1024px) {
  .ph-grid { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 2; }
  .alum-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .terrain-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .alb-hero { padding: 3rem 0 8.5rem; }
  .alb-row { grid-template-columns: 1fr; justify-items: center; gap: .7rem; }
  .alb-row .lab, .alb-row time { justify-self: center; }
  .lb-bar { padding: .8rem 1.2rem; flex-wrap: wrap; gap: .8rem; }
  .lb-credit { padding-left: .8rem; }
}
@media (max-width: 560px) {
  .ph-grid { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .alum-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   LA TANIÈRE — programmes cliquables + agenda des activités
   ============================================================ */
.tn-link { display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease; }
.tn-link:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -18px rgba(10, 16, 46, .3); }
.tn-link p { flex: 1; }
.tn-cta {
  margin-top: 1rem; font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; font-size: .82rem; color: var(--pink);
}
.tn-cta .tn-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; border-radius: 999px; padding: 0 .4rem;
  background: var(--navy); color: var(--white); font-size: .8rem;
}

.act-list { display: grid; gap: 1rem; }
.act-row {
  display: grid; grid-template-columns: 86px 1fr auto; gap: 1.2rem; align-items: center;
  background: var(--paper); border-radius: 14px; padding: 1.1rem 1.4rem;
}
.act-date {
  text-align: center; background: var(--navy); color: var(--white);
  border-radius: 12px; padding: .6rem .4rem; line-height: 1.1;
}
.act-date b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--gold-soft); }
.act-date span { display: block; text-transform: uppercase; font-size: .72rem; letter-spacing: 1.5px; }
.act-date small { display: block; margin-top: .25rem; font-size: .72rem; color: rgba(255, 255, 255, .7); }
.act-body h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--ink); text-transform: uppercase; }
.act-meta { color: var(--muted); font-size: .85rem; margin-top: .2rem; }
.act-desc { color: var(--muted); font-size: .9rem; margin-top: .4rem; }
.act-past { opacity: .65; }
.act-past .act-date { background: #565d7d; }

@media (max-width: 700px) {
  .act-row { grid-template-columns: 66px 1fr; }
  .act-cta { grid-column: 1 / -1; }
  .act-cta .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   LION DU MOIS — vote du joueur du mois
   ============================================================ */
.lion-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.lion-card {
  position: relative; background: var(--white); overflow: hidden;
  box-shadow: 0 14px 34px -18px rgba(10, 16, 46, .35);
  display: flex; flex-direction: column; transition: transform .3s ease;
}
.lion-card:hover { transform: translateY(-5px); }
.lion-card.is-mine { outline: 3px solid var(--gold); }
.lion-mine {
  position: absolute; top: .8rem; left: .8rem; z-index: 2;
  background: var(--gold); color: var(--navy); font-weight: 800; font-size: .78rem;
  border-radius: 999px; padding: .3rem .8rem;
}
.lion-photo { display: block; aspect-ratio: 3 / 3.2; overflow: hidden; position: relative; background: var(--paper); }
.lion-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lion-photo .pc-initials { display: flex; align-items: center; justify-content: center; height: 100%; font-family: var(--font-display); font-size: 3rem; color: var(--muted); }
.lion-num {
  position: absolute; bottom: .6rem; right: .8rem;
  font-family: var(--font-display); font-weight: 800; font-size: 2.2rem;
  color: var(--white); text-shadow: 0 2px 12px rgba(10, 16, 46, .8); line-height: 1;
}
.lion-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.lion-name { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; color: var(--ink); line-height: 1.05; }
.lion-pos { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }
.lv-bar { background: var(--paper); border-radius: 999px; height: 10px; overflow: hidden; margin-top: .4rem; }
.lv-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-soft), var(--gold)); transition: width .6s ease; }
.lv-nums { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; }
.lv-nums b { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--navy); }
.lv-nums small { color: var(--muted); }

.palm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.palm-card {
  display: flex; align-items: center; gap: .9rem;
  background: var(--paper); border-radius: 14px; padding: .8rem 1rem;
  transition: transform .3s ease;
}
.palm-card:hover { transform: translateY(-3px); }
.palm-card img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; object-position: top; }
.palm-card small { display: block; color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.palm-card b { color: var(--ink); font-size: .95rem; }

/* sélection des candidats (back-office) */
.lion-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem; max-height: 320px; overflow-y: auto; padding: .3rem; }
.lion-pick-item {
  display: flex; align-items: center; gap: .6rem; margin: 0;
  border: 2px solid rgba(19, 23, 53, .1); border-radius: 10px; padding: .45rem .6rem; cursor: pointer;
}
.lion-pick-item:has(input:checked) { border-color: var(--pink); background: rgba(244, 88, 122, .06); }
.lion-pick-item input { width: auto !important; }
.lion-pick-item img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: top; }
.lion-pick-item span { font-size: .82rem; font-weight: 700; color: var(--ink); line-height: 1.15; }
.lion-pick-item small { display: block; color: var(--muted); font-weight: 600; font-size: .68rem; }

@media (max-width: 1024px) {
  .lion-grid { grid-template-columns: repeat(2, 1fr); }
  .palm-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .lion-grid { grid-template-columns: 1fr; }
  .palm-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MOBILE FAÇON APPLI BARÇA — chips, carte match, tab bar, stories
   ============================================================ */
.chips-wrap, .appmatch, .tabbar { display: none; }

@media (max-width: 900px) {

  /* --- raccourcis horizontaux --- */
  .chips-wrap { display: block; margin-top: 1rem; }
  .chips { display: flex; gap: .55rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; }
  .chips::-webkit-scrollbar { display: none; }
  .chips a {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: .4rem;
    background: var(--paper); border: 1.5px solid rgba(19, 23, 53, .12);
    color: var(--navy); font-family: var(--font-display); font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px; font-size: .8rem;
    border-radius: 999px; padding: .5rem 1rem; white-space: nowrap;
  }

  /* --- carte prochain match bicolore --- */
  .appmatch {
    display: block; margin-top: 1rem; border-radius: 16px; overflow: hidden;
    box-shadow: 0 16px 36px -18px rgba(10, 16, 46, .45);
  }
  .am-top {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .3rem;
    background: linear-gradient(100deg, #1b2a8f 0%, #1b2a8f 49.9%, #a12147 50.1%, #7a1f4d 100%);
    color: var(--white); padding: 1.1rem .7rem 1.2rem; text-align: center;
  }
  .am-team { display: flex; flex-direction: column; align-items: center; gap: .5rem; min-width: 0; }
  .am-team b { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: .82rem; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .am-team img { width: 56px; height: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
  .am-initials {
    width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .92);
    color: var(--navy); font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
    display: inline-grid; place-items: center;
  }
  .am-mid { display: flex; flex-direction: column; align-items: center; gap: .7rem; }
  .am-cd { display: flex; gap: .3rem; }
  .am-unit { display: flex; flex-direction: column; align-items: center; gap: .25rem; }
  .am-unit b {
    min-width: 40px; padding: .35rem 0; border-radius: 8px;
    background: rgba(255, 255, 255, .16); font-family: var(--font-display);
    font-weight: 800; font-size: 1.25rem; line-height: 1;
  }
  .am-unit small { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: .6rem; letter-spacing: 1px; color: var(--cta); }
  .am-btn {
    background: var(--cta); color: var(--navy); border-radius: 999px;
    font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
    letter-spacing: .5px; font-size: .8rem; padding: .5rem 1.3rem;
  }
  .am-bottom { display: flex; align-items: center; gap: .7rem; background: var(--white); padding: .7rem 1.1rem; }
  .am-bottom b { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--navy); text-transform: uppercase; }
  .am-sep { width: 1px; height: 18px; background: rgba(19, 23, 53, .18); }
  .am-bottom small { color: var(--muted); font-size: .76rem; margin-left: auto; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* --- barre d'onglets basse --- */
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    display: grid; grid-template-columns: repeat(5, 1fr);
    background: var(--white); border-top: 1px solid rgba(19, 23, 53, .1);
    box-shadow: 0 -10px 30px -18px rgba(10, 16, 46, .4);
    padding: .5rem 0 calc(.5rem + env(safe-area-inset-bottom));
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: .3rem; color: #8a90ab; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--blue); }

  main { padding-bottom: 4px; }
  .site-footer { padding-bottom: 92px !important; }
  .wa-chat { bottom: calc(78px + env(safe-area-inset-bottom)) !important; }

  /* --- stories en cercles (façon appli) --- */
  .stories { grid-auto-columns: 86px; gap: .9rem; align-items: start; }
  .story { aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--cta); padding: 2px; background: var(--white); box-shadow: none; }
  .story img { border-radius: 50%; }
  .story .story-cap { display: none; }
  .story .new { top: auto; bottom: -4px; left: 50%; transform: translateX(-50%); font-size: .56rem; padding: .1rem .4rem; }

  /* --- grilles 2 colonnes façon appli --- */
  .hn-cards { grid-auto-flow: row; grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .grid-4 { grid-template-columns: 1fr 1fr !important; gap: .8rem; }
  .bplayer h3 { font-size: 1.02rem; }
  .bplayer .bp-pos { font-size: .62rem; }
  .lion-grid { grid-template-columns: 1fr 1fr !important; gap: .8rem; }
  .lion-name { font-size: 1.05rem; }
  .ph-grid { grid-template-columns: 1fr 1fr !important; gap: .8rem; }
  .phcard > b { font-size: .84rem; padding: .8rem .7rem .6rem; }
  .ph-meta { padding: .55rem .7rem; }
  .ph-meta .cat { font-size: .68rem; }
  .alum-grid { grid-template-columns: 1fr 1fr !important; gap: .8rem; }
  .alum-body .alum-name { font-size: 1.1rem; }
}

/* --- correctifs débordement horizontal mobile --- */
@media (max-width: 900px) {
  html { overflow-x: clip; }
  .hb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb { flex-wrap: wrap; padding: .9rem .6rem; gap: .5rem; }
  .hb b { font-size: 1.8rem; }
  .hb small { max-width: none; text-align: center; font-size: .68rem; }
}
