/* ==========================================================================
   ASEI FOOTBALL — identité "terrain & précision"
   Vert profond + or (maillot/trophée), typo impact + géométrique + mono
   ========================================================================== */

:root {
  --green-deep:   #0B1D3A;  /* bleu marine du logo */
  --green-forest: #16305C;
  --green-bright: #F4671E;  /* orange du logo, utilisé comme accent vif */
  --cream:        #F6F7F1;
  --charcoal:     #16201B;
  --gold:         #F4671E;  /* orange principal (boutons, accents) */
  --white:        #FFFFFF;
  --muted:        #5C6B63;
  --border:       #E3E7DE;

  --font-display: 'Anton', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --wrap: 1140px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.08;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--green-bright);
  margin: 0 0 10px;
  font-weight: 700;
}

.section-lead {
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 30px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(242,183,5,0.35); }
.btn-outline { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { border-color: var(--white); transform: translateY(-2px); }
.btn-small { padding: 11px 22px; font-size: 0.8rem; }
.btn-block { width: 100%; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--green-deep);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
}
.logo-mark {
  font-family: var(--font-mono);
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
}
.nav-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(155deg, var(--green-deep) 0%, var(--green-forest) 65%, var(--green-bright) 140%);
  overflow: hidden;
  padding-bottom: 90px;
}
.hero-numeral {
  position: absolute;
  right: -40px;
  top: -60px;
  font-family: var(--font-display);
  font-size: 32rem;
  line-height: 1;
  color: rgba(255,255,255,0.06);
  user-select: none;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 90px;
  color: var(--white);
  max-width: 720px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.8rem);
  margin: 0 0 22px;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 52ch;
  margin: 0 0 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-diagonal {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 70px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ---------- Bandeau stats (chevauche le hero) ---------- */
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(15,61,46,0.18);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: -64px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.stat {
  text-align: center;
  padding: 30px 20px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-n {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2rem;
  color: var(--green-forest);
}
.stat-l {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Sections ---------- */
.section { padding: 100px 0 90px; }
.section-alt { background: var(--cream); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.club-text h2 { margin: 0 0 20px; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.club-text p { color: var(--muted); margin: 0 0 22px; max-width: 50ch; }

.link-arrow {
  font-weight: 700;
  color: var(--green-forest);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

section > .wrap > h2,
.wrap > h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 40px;
}

/* ---------- Photos ----------
   .photo-slot s'applique directement sur des balises <img>.
   Tant que le fichier indiqué dans le src n'existe pas encore,
   le fond en pointillés reste visible à la place de l'image —
   dès que tu ajoutes le vrai fichier au bon chemin, il s'affiche
   automatiquement en respectant les dimensions. */
.photo-slot {
  display: block;
  width: 100%;
  height: auto;
  background:
    repeating-linear-gradient(135deg, #EAF0E8, #EAF0E8 10px, #E2EAE0 10px, #E2EAE0 20px);
  border: 2px dashed #B9C7B7;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  object-fit: cover;
  min-height: 220px;
}
.ratio-4-3 { aspect-ratio: 4 / 3; }

/* ---------- Équipes (cards) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15,61,46,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(15,61,46,0.16);
}
.card .photo-slot { border-radius: 0; border-width: 0 0 2px 0; min-height: 180px; height: 180px; object-fit: cover; }
.card-body { padding: 22px 22px 26px; }
.card-body h3 { font-size: 1.1rem; margin: 0 0 10px; }
.card-body p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 18px;
}
.gallery .photo-slot { min-height: 0; width: 100%; height: 100%; }
.g-big { grid-column: span 2; grid-row: span 2; }

/* ---------- Programme (table) ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15,61,46,0.08);
}
th, td { padding: 18px 22px; text-align: left; }
th {
  background: var(--green-deep);
  color: var(--white);
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
tr:nth-child(even) td { background: var(--cream); }
td:first-child { font-weight: 700; color: var(--green-forest); }

/* ---------- Résultats ---------- */
.results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.result {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.result-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(242,183,5,0.12);
  padding: 5px 10px;
  border-radius: 20px;
  width: fit-content;
}
.result-score { font-family: var(--font-mono); font-size: 1.05rem; }
.result-score strong { color: var(--green-forest); font-size: 1.25rem; }
.result-date { color: var(--muted); font-size: 0.85rem; }

/* ---------- Contact ---------- */
.contact-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.contact-list li { color: var(--muted); }
.contact-list strong {
  display: inline-block;
  width: 90px;
  color: var(--green-forest);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.join-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 6px 20px rgba(15,61,46,0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.field input, .field textarea {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  border-color: var(--green-bright);
  outline: none;
}

/* ---------- Footer ---------- */
footer { background: var(--green-deep); color: rgba(255,255,255,0.8); padding: 30px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}
footer .logo { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: 1fr; }
  .results { grid-template-columns: 1fr; }
  .stat-card { grid-template-columns: 1fr; margin-top: -40px; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .g-big { grid-column: span 2; }
  .hero-numeral { font-size: 18rem; }
}

@media (max-width: 640px) {
  .site-header nav { flex-wrap: wrap; }
  .nav-links { order: 3; width: 100%; justify-content: center; padding-top: 6px; }
  table, thead, tbody, th, td, tr { display: block; }
  th { display: none; }
  td { border-bottom: 1px solid var(--border); }
  tr { margin-bottom: 14px; border-radius: var(--radius); overflow: hidden; }
  td:first-child { background: var(--green-deep); color: var(--white); }
}
