/* Tournoi de Pentecôte — pentecote.touquet.hockey
   Direction artistique reprise du site 2026 (tac-hockey.fr/pentecote-2026) :
   Bungee + Montserrat, vert et bleu TAC, rose « party », ombres décalées. */

:root {
  --tac-green: #004d2c;
  --tac-blue: #002d72;
  --party-pink: #ff007a;
  --party-pink-dark: #90004a;
  --white: #ffffff;
  --bg: #f0f0f0;
  --ink: #222;
  --muted: #5b6470;
  --display: 'Bungee', 'Arial Black', sans-serif;
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--font);
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.5;
}

img, video { max-width: 100%; display: block; }
a { color: var(--tac-blue); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; }
.section { padding: 70px 5%; }
.section-white { background: var(--white); }
.section-title { color: var(--tac-green); font-size: clamp(1.8rem, 5vw, 2.5rem); text-align: center; margin-bottom: 30px; line-height: 1.1; }

/* ---------- Sélecteur de langue ---------- */
.lang-selector {
  position: fixed; top: 16px; right: 16px; z-index: 2000;
  display: flex; gap: 6px; background: rgba(255,255,255,0.85);
  padding: 5px; border-radius: 10px;
}
.lang-selector a { display: block; border-radius: 4px; padding: 2px; line-height: 0; border: 2px solid transparent; }
.lang-selector a[aria-current="true"] { border-color: var(--party-pink); }
.lang-selector img { width: 30px; height: 20px; object-fit: cover; border-radius: 3px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--tac-green) 0%, var(--tac-blue) 100%);
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; color: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  padding: 80px 5% 120px;
}
.hero-logo { width: 110px; height: 110px; margin-bottom: 18px; }
.hero-tag {
  font-weight: 900; text-transform: uppercase; font-size: clamp(1rem, 3vw, 1.5rem);
  background: var(--party-pink); padding: 5px 20px; margin-bottom: 20px; transform: rotate(-2deg);
}
.hero h1 {
  font-size: clamp(3rem, 10vw, 7rem); line-height: 0.9;
  text-shadow: 5px 5px 0 var(--party-pink); color: var(--white);
}
.hero-motto { font-size: clamp(1.1rem, 3.5vw, 1.8rem); font-weight: 700; margin: 24px 0 0; }
.demo-flag {
  display: inline-block; margin-top: 18px; font-size: 0.8rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.04em; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.4);
  padding: 6px 14px; border-radius: 4px;
}

/* ---------- Boutons ---------- */
.cta-big {
  display: inline-block; background: var(--party-pink); color: var(--white);
  padding: 22px 40px; font-family: var(--display); font-size: clamp(1rem, 3vw, 1.5rem);
  text-decoration: none; border-radius: 10px; margin: 30px 0; box-shadow: 0 8px 0 var(--party-pink-dark);
  border: none; cursor: pointer; text-align: center;
}
.cta-big:active { transform: translateY(4px); box-shadow: 0 4px 0 var(--party-pink-dark); }
span.cta-big { cursor: default; }
.cta-row { display: flex; align-items: center; justify-content: center; gap: 10px 20px; flex-wrap: wrap; }
.cta-row .cta-big { margin: 20px 0; }

/* ---------- Cartes « vibe » ---------- */
.vibe-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px;
  padding: 50px 5%; margin-top: -50px;
}
.vibe-card {
  background: var(--white); padding: 30px; border-radius: 20px;
  box-shadow: 10px 10px 0 var(--tac-blue); text-align: center; transition: transform 0.3s;
}
.vibe-card:hover { transform: translateY(-10px); }
.vibe-card h3 { color: var(--tac-green); font-size: 1.25rem; margin-bottom: 10px; }
.vibe-card p { margin: 0 0 10px; }
.vibe-card .note { font-size: 0.8rem; font-weight: 700; color: var(--party-pink); }
.vibe-card:nth-child(even) .note { color: var(--tac-green); }

/* ---------- Vidéo ---------- */
.video-frame {
  position: relative; max-width: 900px; margin: 0 auto; padding: 15px; background: var(--white);
  border-radius: 20px; border: 4px solid var(--tac-blue); box-shadow: 12px 12px 0 var(--party-pink);
}
.video-frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #000; }
.video-frame p { font-weight: 900; color: var(--tac-blue); margin: 15px 0 0; text-transform: uppercase; letter-spacing: 1px; text-align: center; }

/* ---------- Description ---------- */
.desc-card {
  max-width: 900px; margin: 0 auto; border-radius: 20px; border: 4px solid var(--tac-green);
  padding: clamp(24px, 5vw, 40px); box-shadow: 12px 12px 0 var(--tac-blue); background: var(--white); text-align: center;
}
.desc-lead { font-weight: 900; font-size: 1.2rem; text-transform: uppercase; color: var(--tac-blue); margin: 0 0 25px; }
.desc-body { text-align: left; line-height: 1.8; color: #333; }
.desc-highlight { background: var(--tac-blue); color: var(--white); padding: 20px; font-weight: 700; border-radius: 5px; }

/* ---------- Who's in ---------- */
.tracker {
  background: var(--white); margin: 50px 5%; border-radius: 30px; padding: clamp(20px, 5vw, 40px);
  border: 4px solid var(--tac-green);
}
.tracker h2 { text-align: center; margin-bottom: 20px; }
.table-scroll { overflow-x: auto; }
.tracker table { width: 100%; border-collapse: collapse; }
.tracker th, .tracker td { text-align: left; padding: 15px; }
.tracker tr { border-bottom: 2px solid #eee; }
.tracker td.crew { color: var(--muted); }
@media (max-width: 560px) {
  .tracker { margin: 40px 4%; }
  .tracker th, .tracker td { padding: 10px 6px; font-size: 0.85rem; }
  .tracker .status-badge { padding: 4px 9px; font-size: 0.68rem; }
}
.status-badge { display: inline-block; padding: 5px 15px; border-radius: 50px; font-weight: 700; font-size: 0.8rem; color: var(--white); white-space: nowrap; }
.status-soon { background: #8a94a3; }
.status-open { background: #ff4136; animation: pulse 1s infinite; }
.status-last_spots { background: var(--party-pink); }
.status-full { background: var(--tac-blue); }
.status-pools_set { background: var(--tac-green); }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .status-open { animation: none; } .vibe-card { transition: none; } }

/* ---------- Quiz ---------- */
.quiz-box {
  max-width: 700px; margin: 0 auto; background: var(--white); padding: clamp(20px, 5vw, 40px); border-radius: 20px;
  box-shadow: 10px 10px 0 var(--party-pink); border: 3px solid var(--tac-blue); text-align: center;
}
.quiz-q { font-weight: 900; font-size: 1.15rem; margin: 0 0 30px; text-transform: uppercase; }
.quiz-options { display: grid; gap: 15px; }
.quiz-options button {
  padding: 15px; border: 2px solid var(--tac-blue); background: var(--white); font-family: var(--font);
  font-weight: 700; font-size: 1rem; cursor: pointer; border-radius: 10px; color: var(--ink);
}
.quiz-options button:hover { background: var(--tac-blue); color: var(--white); }
.quiz-result h3 { color: var(--party-pink); font-size: clamp(1.4rem, 4vw, 2rem); }
.quiz-result p { font-weight: 700; margin: 20px 0; }
.quiz-reset { background: var(--tac-blue); color: var(--white); border: none; padding: 10px 20px; font-family: var(--display); cursor: pointer; font-size: 1rem; }

/* ---------- Party ---------- */
.party-section { background: var(--tac-blue); color: var(--white); padding: 80px 5%; text-align: center; }
.party-highlight { font-family: var(--display); color: var(--party-pink); font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1.1; }
.banner { width: 100%; height: 250px; background-size: cover; background-position: center; background-repeat: no-repeat; }

/* ---------- PC Pentecôte (infographie) ---------- */
.pc-card {
  max-width: 760px; margin: 0 auto; background: var(--white); border-radius: 20px; border: 4px solid var(--tac-green);
  padding: clamp(16px, 4vw, 30px); box-shadow: 12px 12px 0 var(--party-pink); text-align: center;
}
.pc-intro { font-weight: 700; line-height: 1.7; margin: 0 0 24px; text-align: left; }
.pc-figure img { width: 100%; height: auto; border-radius: 10px; }
.pc-zoom { margin: 14px 0 0; font-size: 0.85rem; font-weight: 700; }

/* ---------- Calendrier & résultats ---------- */
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 10px; }
.cat-chip {
  border: 2px solid var(--tac-blue); background: var(--white); color: var(--tac-blue); font: inherit;
  font-weight: 900; font-size: 0.85rem; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.cat-chip[aria-pressed="true"] { background: var(--tac-blue); color: var(--white); }

.day-block { max-width: 1000px; margin: 30px auto 0; }
.day-title { color: var(--tac-green); font-size: 1.3rem; margin-bottom: 14px; }
.match-list { display: flex; flex-direction: column; gap: 10px; }
.match-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center;
  background: var(--white); border-radius: 14px; padding: 12px 16px; border: 2px solid var(--tac-green);
  box-shadow: 5px 5px 0 var(--tac-green);
}
.match-row.played { border-color: var(--tac-blue); box-shadow: 5px 5px 0 var(--party-pink); }
.match-row .time { font-family: var(--display); color: var(--tac-green); }
.match-row .teams { font-weight: 900; }
.match-row .teams .vs { color: var(--muted); font-weight: 400; margin: 0 6px; }
.match-row .meta { font-size: 0.8rem; color: var(--muted); font-weight: 700; margin-top: 3px; }
.match-row .score { font-family: var(--display); font-size: 1.4rem; color: var(--tac-blue); white-space: nowrap; text-align: right; min-width: 70px; }
.match-row .score.pending { font-family: var(--font); font-size: 0.75rem; font-weight: 900; text-transform: uppercase; color: var(--muted); }
@media (max-width: 560px) {
  .match-row { grid-template-columns: 52px 1fr; }
  .match-row .score { grid-column: 2; text-align: left; }
}
.empty-note { text-align: center; color: var(--muted); font-weight: 700; }

.standings-grid { display: grid; gap: 24px; max-width: 1000px; margin: 0 auto; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.standings-card { background: var(--white); border-radius: 20px; padding: 20px; border: 3px solid var(--tac-blue); box-shadow: 8px 8px 0 var(--tac-green); }
.standings-card .cat { font-size: 0.75rem; font-weight: 900; text-transform: uppercase; color: var(--party-pink); }
.standings-card h3 { color: var(--tac-green); font-size: 1.1rem; margin-bottom: 10px; }
.standings-rule { text-align: center; color: var(--muted); max-width: 700px; margin: -10px auto 24px; font-size: 0.9rem; }
table.standings { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.standings th, table.standings td { padding: 8px 6px; border-bottom: 1px solid #eee; text-align: center; }
table.standings th { font-size: 0.7rem; text-transform: uppercase; color: var(--muted); }
table.standings .team { text-align: left; font-weight: 900; }
table.standings td.pts { font-weight: 900; color: var(--tac-green); }

/* ---------- Partenaires ---------- */
.sponsor-tier { margin-top: 30px; text-align: center; }
.sponsor-tier h3 { color: var(--tac-blue); font-size: 1rem; margin-bottom: 16px; }
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; max-width: 1000px; margin: 0 auto; }
.sponsor-logo {
  display: flex; align-items: center; justify-content: center; min-height: 90px; padding: 12px;
  background: var(--white); border-radius: 14px; border: 2px solid #e4e4e4; font-weight: 700; color: var(--ink); text-decoration: none;
}
.sponsor-logo img { max-height: 60px; object-fit: contain; }

/* ---------- Footer ---------- */
.site-footer { background: var(--tac-green); color: var(--white); padding: 40px 5%; text-align: center; }
.social-links { margin: 10px 0 25px; display: flex; justify-content: center; gap: 20px; }
.social-links svg { width: 40px; height: 40px; fill: var(--white); }
.footer-contact { font-size: 0.9rem; opacity: 0.9; margin: 6px 0; }
.footer-contact a, .site-footer a.main-site { color: var(--white); }
.obf-email { opacity: 0.8; }
