/* ============================================================
   FC VALMONT — Feuille de style principale
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700&family=Outfit:wght@300;400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────────── */
:root {
  --navy:    #07213E;
  --blue:    #0F3F7A;
  --mid:     #1A5FAD;
  --sky:     #3A85D4;
  --light:   #EAF2FC;
  --gold:    #C9993A;
  --gold-lt: #F0C96A;
  --white:   #FFFFFF;
  --off:     #F4F7FB;
  --gray:    #E8EEF5;
  --text:    #0D1B2E;
  --muted:   #5A6E84;
  --border:  #D2DEEB;
  --radius:  10px;
  --shadow:  0 4px 24px rgba(7,33,62,0.10);
  --shadow-lg: 0 12px 48px rgba(7,33,62,0.16);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Utilitaires ────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }
.section    { padding: 5rem 0; }
.section--alt { background: var(--off); }
.section--dark { background: var(--navy); }

.section-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  line-height: 1.05;
  margin-bottom: .6rem;
}
.section-title--white { color: var(--white); }
.section-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
}
.gold-bar {
  width: 52px; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  border-radius: 2px;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .85rem 2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all .2s;
}
.btn-gold  { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,153,58,.35); }
.btn-navy  { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--blue); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.45); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-outline-navy { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* ── Navigation ─────────────────────────────────────────── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  transition: box-shadow .3s;
}
#navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.4); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.nav-logo-badge {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.nav-logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: .5px;
  line-height: 1.1;
}
.nav-logo-text span { color: var(--gold); }
.nav-logo-sub {
  font-size: .65rem;
  font-weight: 400;
  color: rgba(255,255,255,.45);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: .2rem;
}
.nav-menu a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  padding: .5rem .9rem;
  border-radius: 5px;
  transition: all .2s;
  position: relative;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 50%; right: 50%;
  height: 2px;
  background: var(--gold);
  transition: all .2s;
  border-radius: 1px;
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--white); }
.nav-menu a:hover::after,
.nav-menu a.active::after { left: .9rem; right: .9rem; }
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  border-radius: 5px !important;
  margin-left: .5rem !important;
  padding: .5rem 1.2rem !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold-lt) !important; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
}
.nav-burger span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
  display: block;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: 4rem 0 0;
  border-top: 3px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand p {
  font-size: .9rem;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 260px;
  color: rgba(255,255,255,.5);
}
.footer-social {
  display: flex;
  gap: .6rem;
  margin-top: 1.2rem;
}
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all .2s;
  color: rgba(255,255,255,.6);
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a {
  font-size: .9rem;
  color: rgba(255,255,255,.5);
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-contact li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  margin-bottom: .8rem;
}
.footer-contact li span:first-child { font-size: 1rem; flex-shrink: 0; margin-top: .1rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

/* ── Hero générique (sous-pages) ────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 70%, var(--mid) 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 600px; height: 600px;
  border: 80px solid rgba(255,255,255,.03);
  border-radius: 50%;
}
.page-hero::after {
  content: '';
  position: absolute;
  left: -50px; bottom: -150px;
  width: 400px; height: 400px;
  border: 50px solid rgba(201,153,58,.06);
  border-radius: 50%;
}
.page-hero-inner { position: relative; z-index: 1; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 1.2rem;
}
.breadcrumb a { color: rgba(255,255,255,.6); transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }
.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  line-height: 1.0;
}
.page-hero h1 em { color: var(--gold); font-style: normal; }
.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  max-width: 520px;
  margin-top: .8rem;
  font-weight: 300;
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* ── Match result cards ─────────────────────────────────── */
.match-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  transition: box-shadow .2s;
}
.match-card:hover { box-shadow: var(--shadow); }
.match-team { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.match-info  { font-size: .78rem; color: var(--muted); margin-top: .25rem; }
.match-home  { text-align: right; }
.score-pill {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  padding: .5rem 1.2rem;
  border-radius: 6px;
  text-align: center;
  min-width: 90px;
  color: var(--white);
}
.score-win  { background: linear-gradient(135deg, #145A32, #1E8449); }
.score-loss { background: linear-gradient(135deg, #78281F, #C0392B); }
.score-draw { background: linear-gradient(135deg, var(--navy), var(--blue)); }
.result-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .15rem .55rem;
  border-radius: 3px;
  margin-top: .35rem;
}
.badge-win  { background: #D5F5E3; color: #145A32; }
.badge-draw { background: var(--light); color: var(--blue); }
.badge-loss { background: #FADBD8; color: #78281F; }

/* ── Classement table ───────────────────────────────────── */
.standings-table { width: 100%; border-collapse: collapse; }
.standings-table thead { background: var(--navy); }
.standings-table thead th {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  padding: 1rem 1rem;
  text-align: left;
}
.standings-table tbody tr {
  border-bottom: 1px solid var(--gray);
  transition: background .15s;
}
.standings-table tbody tr:hover { background: var(--off); }
.standings-table tbody tr.my-club { background: #EAF2FC; }
.standings-table tbody tr.my-club td { color: var(--navy); }
.standings-table td {
  padding: .9rem 1rem;
  font-size: .9rem;
}
td.rank-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--muted);
  width: 40px;
}
.my-club td.rank-num { color: var(--gold); }
td.club-nm { font-weight: 600; color: var(--navy); }
.pts-chip {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: .9rem;
  padding: .2rem .65rem;
  border-radius: 5px;
}
.my-club .pts-chip { background: var(--gold); color: var(--navy); }

/* ── Form ────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: .95rem;
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--mid);
  box-shadow: 0 0 0 3px rgba(26,95,173,.12);
}
.form-group textarea { height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Galerie ─────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  cursor: pointer;
}
.gallery-item .placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--blue), var(--mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  transition: transform .3s;
}
.gallery-item:hover .placeholder { transform: scale(1.05); }
.gallery-item:nth-child(1) .placeholder { background: linear-gradient(135deg, #07213E, #0F3F7A); }
.gallery-item:nth-child(2) .placeholder { background: linear-gradient(135deg, #0F3F7A, #1A5FAD); }
.gallery-item:nth-child(3) .placeholder { background: linear-gradient(135deg, #0B3260, #1D70C4); }
.gallery-item:nth-child(4) .placeholder { background: linear-gradient(135deg, #1A5FAD, #3A85D4); }
.gallery-item:nth-child(5) .placeholder { background: linear-gradient(135deg, #07213E, #3A85D4); }
.gallery-item:nth-child(6) .placeholder { background: linear-gradient(135deg, #0F3F7A, #07213E); }
.gallery-item.span2 { grid-column: span 2; }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7,33,62,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
  font-size: 2rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── News cards ──────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.news-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--blue), var(--mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.news-card-body { padding: 1.4rem; }
.news-cat {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: .5rem;
}
.news-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: .6rem;
}
.news-meta { font-size: .8rem; color: var(--muted); }

/* ── Team cards ──────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.team-card-head {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
}
.team-card-icon { font-size: 2.8rem; display: block; margin-bottom: .6rem; }
.team-card-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--white);
}
.team-card-div { font-size: .78rem; color: rgba(255,255,255,.55); margin-top: .2rem; }
.team-card-body { padding: 1.2rem 1.5rem; }
.team-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: .88rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--gray);
}
.team-stat-row:last-child { border-bottom: none; }
.team-stat-row span:first-child { color: var(--muted); }
.team-stat-row span:last-child { font-weight: 600; color: var(--navy); }

/* ── Joueur cards ────────────────────────────────────────── */
.players-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.2rem; }
.player-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.player-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.player-avatar {
  height: 120px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}
.player-num {
  position: absolute;
  top: .5rem; right: .5rem;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-info { padding: .9rem; }
.player-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: .2rem;
}
.player-pos {
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.span2 { grid-column: span 1; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); padding: 1rem; gap: .3rem; border-top: 1px solid rgba(255,255,255,.1); }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: .7rem 1rem; width: 100%; border-radius: 5px; }
  .nav-menu a::after { display: none; }
  .nav-burger { display: flex; }
  #navbar { position: relative; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 3rem 0; }
  .match-card { grid-template-columns: 1fr; text-align: center; }
  .match-home { text-align: center; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .players-grid { grid-template-columns: repeat(2, 1fr); }
}
