/* Expos Sherbrooke U11AA — Portail privé */

:root {
  --paper: #F4F8FC;
  --paper-deep: #DCE6EF;
  --ink: #0A2240;
  --ink-soft: #3F5371;
  --rule: #0A2240;
  --accent: #1B355C;
  --frame: #93B8DF;
  --white: #FFFFFF;
}

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

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Lora', Georgia, serif;
  line-height: 1.55;
  font-size: 16px;
  min-height: 100vh;
}

body {
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 32px,
      rgba(10,34,64,0.025) 32px,
      rgba(10,34,64,0.025) 33px
    );
}

/* ============ NAVIGATION ============ */
nav.main-nav {
  background: var(--ink);
  color: var(--white);
  border-bottom: 6px solid var(--accent);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  text-decoration: none;
  color: var(--white);
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-logo .nav-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}

.nav-logo .nav-subtitle {
  font-family: 'Roboto Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--frame);
  margin-top: 2px;
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 22px 18px;
  color: var(--white);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.nav-links a:hover { background: rgba(255,255,255,0.07); }
.nav-links a.active { border-bottom-color: var(--frame); background: rgba(255,255,255,0.04); }

/* Burger menu mobile */
.nav-burger {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  padding: 12px;
}

@media (max-width: 720px) {
  .nav-container { flex-wrap: wrap; }
  .nav-burger { display: block; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-bottom: 12px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

/* ============ MAIN LAYOUT ============ */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}

.page-header {
  border-top: 6px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 18px 0 14px;
  margin-bottom: 40px;
}

.page-header .eyebrow {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.page-header h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 5.5vw, 44px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* ============ HERO (accueil) ============ */
.hero {
  text-align: center;
  padding: 60px 20px 50px;
  background: var(--white);
  border: 1px solid var(--frame);
  box-shadow: 4px 4px 0 var(--frame);
  margin-bottom: 40px;
}

.hero-logo {
  width: 260px;
  max-width: 60vw;
  height: auto;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}

.hero .slogan {
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============ SECTIONS ============ */
section.block {
  margin-bottom: 48px;
}

section.block h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 20px;
}

/* ============ CARDS ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--white);
  border: 1px solid var(--frame);
  box-shadow: 3px 3px 0 var(--frame);
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

a.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--accent);
}

.card .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.card .name {
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.card .meta {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.card.coach .avatar { background: var(--accent); }
.card.coach.head .avatar { background: var(--ink); border: 2px solid var(--accent); }
.card.coach.head .meta { color: var(--accent); font-weight: 700; }

/* ============ WIDGET CONTAINER ============ */
.widget-frame {
  background: var(--white);
  border: 1px solid var(--frame);
  box-shadow: 4px 4px 0 var(--frame);
  padding: 24px;
  min-height: 400px;
}

/* ============ FOOTER ============ */
footer {
  margin-top: 60px;
  padding: 24px;
  text-align: center;
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-top: 1px solid var(--frame);
}

footer .build {
  opacity: 0.5;
  margin-top: 4px;
  font-size: 10px;
}

/* ============ UTILITIES ============ */
.note {
  background: rgba(27, 53, 92, 0.06);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 2px;
  font-size: 14px;
}

.note strong { color: var(--accent); }

/* ================================================================
   ACCUEIL v2 — Composants enrichis (refonte design)
   ================================================================ */

/* ---- HERO COMPACT ---- */
.hero-compact {
  padding: 40px 20px 32px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
.hero-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--ink) 0%, var(--accent) 50%, var(--frame) 100%);
}
.hero-compact .hero-logo {
  width: 200px;
  margin-bottom: 18px;
}
.hero-compact h1 {
  font-size: clamp(28px, 5vw, 40px);
  margin-bottom: 8px;
}
.hero-compact .slogan {
  font-family: 'Roboto Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- EYEBROW DE SECTION ---- */
.block-eyebrow {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  position: relative;
}
.block-eyebrow::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--frame);
}

/* ---- PROCHAIN ÉVÉNEMENT ---- */
.next-event-block { margin-bottom: 40px; }

.next-event-card {
  background: var(--white);
  border: 1px solid var(--accent);
  box-shadow: 6px 6px 0 var(--frame);
  overflow: hidden;
  display: block;
  position: relative;
}

.next-event-loading,
.next-event-empty {
  padding: 80px 24px;
  text-align: center;
  color: var(--ink-soft);
  font-family: 'Roboto Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.next-event-empty-icon {
  font-size: 42px;
  display: block;
  margin-bottom: 14px;
}

/* Grille principale : compteur | détails | météo */
.ne-grid {
  display: grid;
  grid-template-columns: 220px 1fr 240px;
  gap: 0;
  min-height: 240px;
}

@media (max-width: 900px) {
  .ne-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "countdown weather"
      "details details";
  }
  .ne-countdown { grid-area: countdown; }
  .ne-weather { grid-area: weather; }
  .ne-details { grid-area: details; }
}

@media (max-width: 560px) {
  .ne-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "countdown"
      "details"
      "weather";
  }
  .ne-grid > .ne-countdown { min-height: 140px; }
}

/* COMPTEUR — bloc dramatique avec fond plein */
.ne-countdown {
  padding: 24px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.ne-countdown::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 4px;
  background: rgba(255,255,255,0.4);
}

.ne-countdown.type-game {
  background: linear-gradient(135deg, var(--ink) 0%, var(--accent) 100%);
  color: var(--white);
}
.ne-countdown.type-practice {
  background: linear-gradient(135deg, var(--frame) 0%, #B5D0E8 100%);
  color: var(--ink);
}
.ne-countdown.type-tournament {
  background: linear-gradient(135deg, var(--accent) 0%, var(--ink) 100%);
  color: var(--white);
}
.ne-countdown.type-other {
  background: linear-gradient(135deg, var(--ink-soft) 0%, var(--accent) 100%);
  color: var(--white);
}

.ne-cd-label {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.3em;
  opacity: 0.85;
  margin-bottom: 10px;
  font-weight: 500;
}

.ne-cd-big {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
}

.ne-cd-small {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-top: 8px;
  opacity: 0.85;
  text-transform: uppercase;
}

/* DÉTAILS — bloc central */
.ne-details {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--frame);
  border-right: 1px solid var(--frame);
}

@media (max-width: 900px) {
  .ne-details {
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--frame);
  }
}

.ne-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 5px 12px;
  margin-bottom: 14px;
  color: var(--white);
  width: max-content;
}

.ne-type-pill.type-game       { background: var(--ink); }
.ne-type-pill.type-practice   { background: var(--frame); color: var(--ink); }
.ne-type-pill.type-tournament { background: var(--accent); }
.ne-type-pill.type-other      { background: var(--ink-soft); }

.ne-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.ne-when,
.ne-where {
  font-family: 'Lora', serif;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ne-when::before, .ne-where::before {
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1.3;
}

.ne-when { font-weight: 500; }
.ne-where { color: var(--ink-soft); }

.ne-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ne-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: all 0.15s ease;
  border: 1px solid var(--ink);
}

.ne-action:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 3px 0 rgba(10, 34, 64, 0.2);
}

.ne-action-secondary {
  background: transparent;
  color: var(--ink);
}

.ne-action-secondary:hover {
  background: var(--ink);
  color: var(--white);
}

/* MÉTÉO — bloc droit */
.ne-weather {
  padding: 24px 18px;
  background:
    linear-gradient(135deg, rgba(244, 248, 252, 0.95) 0%, rgba(220, 230, 239, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ne-weather::before {
  content: 'MÉTÉO PRÉVUE';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Oswald', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--accent);
  opacity: 0.7;
}

@media (max-width: 900px) {
  .ne-weather { padding: 32px 18px 18px; }
}

.weather-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.weather-emoji {
  font-size: 56px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(10, 34, 64, 0.15));
}

.weather-info {
  font-family: 'Roboto Mono', monospace;
}

.weather-temp {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 32px;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.01em;
}

.weather-desc {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-top: 6px;
  font-weight: 500;
}

.weather-detail {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 6px;
  letter-spacing: 0.05em;
}

/* ---- DERNIER ÉVÉNEMENT ---- */
.prev-event-block { margin-bottom: 36px; }

.prev-event-card {
  background: var(--white);
  border: 1px solid var(--frame);
  border-left: 5px solid var(--accent);
  padding: 18px 22px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.prev-event-card:hover {
  transform: translateX(2px);
  box-shadow: 3px 0 0 var(--frame);
}

.pe-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pe-type-pill {
  flex-shrink: 0;
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 4px 11px;
  color: var(--white);
}

.pe-type-pill.type-game       { background: var(--ink); }
.pe-type-pill.type-practice   { background: var(--frame); color: var(--ink); }
.pe-type-pill.type-tournament { background: var(--accent); }
.pe-type-pill.type-other      { background: var(--ink-soft); }

.pe-info { flex: 1; min-width: 0; }

.pe-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.pe-meta {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* ---- ANNONCES (zone vide) ---- */
.news-block { margin-bottom: 36px; }

.news-empty {
  background:
    repeating-linear-gradient(45deg, var(--white) 0, var(--white) 10px, rgba(147, 184, 223, 0.08) 10px, rgba(147, 184, 223, 0.08) 20px);
  border: 1px dashed var(--frame);
  padding: 42px 24px;
  text-align: center;
  color: var(--ink-soft);
  font-family: 'Lora', serif;
  font-size: 14px;
  line-height: 1.55;
}

.news-empty-icon {
  font-size: 38px;
  display: block;
  margin-bottom: 12px;
  opacity: 0.55;
}

/* ---- LIENS UTILES ---- */
.links-block { margin-bottom: 40px; }

.ext-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.ext-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 14px;
  background: var(--white);
  border: 1px solid var(--frame);
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
}

.ext-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--frame);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.ext-link:hover {
  background: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 5px 0 var(--frame), 0 6px 12px rgba(10, 34, 64, 0.08);
  border-color: var(--accent);
}

.ext-link:hover::before {
  transform: scaleX(1);
  background: var(--accent);
}

.ext-link-placeholder {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--paper-deep);
}

.ext-link-placeholder:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--frame);
}

.ext-link-placeholder::before { display: none; }

.ext-link-icon {
  font-size: 30px;
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}

.ext-link-label {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.ext-link-sub {
  font-family: 'Roboto Mono', monospace;
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  display: block;
}

/* ---- BLOCK FOOTER NOTE ---- */
.block-footer-note {
  margin-top: 14px;
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-align: right;
  text-transform: uppercase;
}

.block-footer-note a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--frame);
  padding-bottom: 1px;
}

.block-footer-note a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---- PAGES PLACEHOLDER ---- */
.placeholder-block {
  background: var(--white);
  border: 1px dashed var(--frame);
  padding: 70px 30px;
  text-align: center;
  color: var(--ink-soft);
  font-family: 'Lora', serif;
  position: relative;
  overflow: hidden;
}

.placeholder-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--frame) 0%, var(--accent) 100%);
}

.placeholder-icon {
  font-size: 52px;
  margin-bottom: 18px;
  opacity: 0.55;
  display: block;
}

.placeholder-block h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 14px;
  font-weight: 600;
}

.placeholder-block p {
  max-width: 520px;
  margin: 0 auto;
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---- ANIMATION ENTRÉE (subtile) ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.next-event-card,
.prev-event-card,
.news-empty,
.ext-links-grid {
  animation: fadeInUp 0.4s ease-out;
}
