/* TAC Hockey — touquet.hockey
   Couleurs du club : vert, blanc, bleu. Fond clair, blocs pleins vert/bleu
   pour la structure et l'énergie — pas de noir, pas de beige/marron. */

:root {
  --green: #143C28;      /* vert du blason du club — couleur primaire */
  --green-mid: #1B5B3A;
  --green-bright: #2FA968; /* accent vif, gradients, hover */
  --blue: #1E8FFF;       /* bleu du club — secondaire */
  --blue-deep: #0B4FA0;

  --bg: #FFFFFF;
  --ink: #12241C;        /* neutre très sombre, teinté vert — jamais brun */
  --muted: #4C6358;
  --line: rgba(20, 60, 40, 0.14);
  --line-soft: rgba(20, 60, 40, 0.08);
  --chip-bg: #E7F5EC;

  --font: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1180px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-deep); }
svg.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; }
svg.icon-fill { width: 16px; height: 16px; flex: none; fill: currentColor; stroke: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--green);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, var(--green-bright), var(--blue));
  padding: 6px 14px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 0.98;
}

.section-lede {
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
  margin-top: 14px;
}

section { padding: 96px 0; }
section + section { border-top: 1px solid var(--line-soft); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--green);
  text-transform: uppercase;
}

.brand img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  gap: clamp(14px, 2vw, 30px);
  list-style: none;
  margin: 0; padding: 0;
}

.nav-links a {
  white-space: nowrap;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  opacity: 0.6;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: opacity 0.15s, border-color 0.15s;
}

.nav-links a:hover { opacity: 1; border-color: var(--blue); }

.nav-toggle {
  display: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--green);
  width: 44px; height: 44px;
  cursor: pointer;
}

@media (max-width: 1320px) {
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(20,60,40,0.14);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: block; }
}

/* ---------- Hero : photo réelle du terrain, voile vert → bleu ---------- */
.hero {
  padding: 150px 0 84px;
  position: relative;
  background:
    linear-gradient(100deg, rgba(20,60,40,0.95) 0%, rgba(20,60,40,0.82) 38%, rgba(11,79,160,0.62) 100%),
    url('/assets/img/gallery/hero-turf.jpg') center 65%/cover no-repeat,
    var(--green);
  border-top: none;
}

.hero .container { position: relative; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 3px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F5F2EA;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 4px rgba(47, 169, 104, 0.3);
}

.hero {
  --title-size: clamp(48px, 8.5vw, 104px);
}

.hero-title {
  font-size: var(--title-size);
  line-height: 0.88;
  color: #FFFFFF;
  font-weight: 900;
}

.hero-title .accent { color: var(--green-bright); }

.hero-brand {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
}

/* le logo a la hauteur du bloc "TAC HOCKEY" (2 lignes de 0.88em) */
.hero-logo {
  display: block;
  width: calc(var(--title-size) * 1.76);
  height: calc(var(--title-size) * 1.76);
  flex: none;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-sub {
  margin-top: 22px;
  max-width: 560px;
  color: rgba(245,242,234,0.86);
  font-size: 18px;
}

.hero-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}

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

/* ---------- Cartes ---------- */
.card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green-bright);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 2px 10px rgba(20, 60, 40, 0.06);
}

.event-card .event-title {
  font-size: clamp(26px, 3.2vw, 34px);
  color: var(--green);
  margin-top: 6px;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.event-meta .item .k {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.event-meta .item .v {
  font-size: 16px;
  font-weight: 800;
  margin-top: 4px;
  color: var(--green);
}

.event-desc { margin-top: 16px; color: var(--ink); font-size: 15px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 14px 26px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green-bright), var(--blue));
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
}

/* week-end */
.week-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.btn-week {
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--green);
  background: var(--chip-bg);
  padding: 9px 16px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-week:hover:not(:disabled) { background: var(--green-bright); color: #fff; }
.btn-week:disabled { opacity: 0.4; cursor: default; }

.weekend-card .we-label {
  font-size: 13px;
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.we-list { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }

.we-match {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #FAFBFC;
  border-radius: 6px;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--blue);
}

.we-match .teams { font-weight: 800; font-size: 14px; color: var(--green); }
.we-match .teams .vs { color: var(--muted); font-weight: 400; margin: 0 6px; }
.we-match .when { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; font-weight: 700; }
.we-match .badge {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  margin-left: 8px;
}
.badge-home { background: var(--green-bright); color: #fff; }
.badge-away { background: var(--blue); color: #fff; }

.demo-flag {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--green);
  padding: 5px 12px;
  border-radius: 3px;
}

/* ---------- Équipes ---------- */
.teams-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.team-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-top-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.team-card:hover { border-top-color: var(--blue); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20,60,40,0.12); }

.team-card .cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--chip-bg);
  padding: 3px 8px;
  border-radius: 3px;
}

.team-card h3 {
  margin-top: 12px;
  font-size: 23px;
}

.team-card .division { color: var(--muted); font-size: 13px; margin-top: 6px; font-weight: 600; }

.team-card .row {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--ink);
}

.team-card .row .k { color: var(--green-mid); font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em; display: block; margin-bottom: 4px; }

/* ---------- Sponsors ---------- */
.sponsor-tier { margin-top: 40px; }
.sponsor-tier h3 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.sponsor-logo {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
}

.sponsor-logo img { max-height: 54px; max-width: 100%; object-fit: contain; }

/* ---------- Infos pratiques ---------- */
.infos-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.infos-grid.one { grid-template-columns: 1fr; }
.infos-grid.one .contact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px 32px; }

/* ---------- Accueil d'équipes ---------- */
.offers-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.offer-card p { margin: 12px 0 0; font-size: 15px; color: var(--ink); }

.hosting-foot {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.hosting-foot p { max-width: 640px; font-size: 17px; color: var(--ink); margin: 12px 0 0; }

.hosting-loc {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--chip-bg);
  padding: 6px 12px;
  border-radius: 3px;
}

.infos-grid h3 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}

.infos-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.infos-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; border-bottom: 1px solid var(--line-soft); padding-bottom: 12px; }
.infos-list li .l { color: var(--muted); }
.infos-list li .r { font-weight: 800; text-align: right; color: var(--green); }

.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; font-size: 15px; color: var(--ink); }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list .icon-box { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; background: var(--chip-bg); color: var(--green); flex: none; }
.contact-list a { text-decoration: none; color: var(--ink); font-weight: 600; }
.contact-list a:hover { color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 44px 0;
  background: var(--green);
  color: rgba(245,242,234,0.75);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
}

.footer-credit { flex-basis: 100%; font-size: 11px; opacity: 0.6; }

.footer-social { display: flex; gap: 18px; }
.footer-social a { color: #fff; opacity: 0.8; text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 0.06em; }
.footer-social a:hover { opacity: 1; color: var(--green-bright); }

/* ---------- Utility ---------- */
.obf-email { color: var(--muted); }

/* ---------- Résultats du week-end ---------- */
.results-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 20px;
  align-items: start;
}

.result-card p { margin: 14px 0 0; font-size: 15px; color: var(--ink); }

/* Grand écran : le premier compte rendu occupe toute la largeur, les suivants se partagent la ligne d'après */
@media (min-width: 900px) {
  .results-grid > .result-card:first-child { grid-column: 1 / -1; }
  .results-grid > .result-card:first-child p,
  .results-grid > .result-card:last-child:nth-child(even) p { max-width: 820px; }
  .results-grid > .result-card:last-child:nth-child(even) { grid-column: 1 / -1; }
}

.result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.result-team {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--chip-bg);
  padding: 3px 8px;
  border-radius: 3px;
}

.result-badge {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
}
.result-win { background: var(--green-bright); color: #fff; }
.result-loss { background: var(--blue-deep); color: #fff; }
.result-draw { background: var(--chip-bg); color: var(--green); }

.result-score { margin-top: 14px; font-size: clamp(24px, 3vw, 32px); line-height: 1.05; }

.result-scoreline {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  font-size: 15px;
  font-weight: 800;
  color: var(--green);
  background: var(--chip-bg);
  border-radius: 3px;
}

.results-note { max-width: 78ch; margin: 0 0 24px; color: var(--ink-soft, inherit); font-size: 17px; line-height: 1.6; }
.results-grid + .results-note { margin-top: 28px; }

.results-photo { margin: 32px 0 0; }
.results-photo img { display: block; width: 100%; height: auto; border-radius: 16px; }

.section-photo { margin: 48px 0 0; }
.section-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; }
@media (min-width: 900px) { .section-photo img { aspect-ratio: 21 / 9; } }

.news-grid { display: grid; gap: 28px; margin-top: 24px; align-items: start; }
.news-text { max-width: 62ch; font-size: 17px; line-height: 1.6; }
.news-text p { margin: 0 0 14px; }
.news-video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--green); }
.news-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 900px) { .news-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
.news-video.news-page { aspect-ratio: 3 / 4; background: #fff; border: 1px solid rgba(20, 60, 40, .15); }
@media (min-width: 900px) { .news-video.news-page { aspect-ratio: auto; height: 640px; } }
.results-photo-top { margin: 0 0 28px; }
.results-photo img { max-height: 640px; object-fit: cover; object-position: 50% 65%; }
.results-photo + .results-note { margin-top: 44px; }
