/* ======= ACTU ASVEL 2026 — Design Premium & Sophistiqué ======= */

:root {
  --primary-dark: #0a0a0a;
  --primary-light: #f5f3f0;
  --accent-gold: #d4a574;
  --accent-gold-light: #e8c9a0;
  --accent-red: #c41e3a;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --text-muted: #6b6b6b;
  --border: #e0dcd6;
  --bg-card: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.16);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--primary-light);
  color: var(--text-dark);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ======= BANDEAU DÉFILANT (TICKER) ======= */

.ticker {
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--accent-gold);
  color: var(--primary-dark);
  border-bottom: 1px solid rgba(10, 10, 10, 0.15);
}

.ticker-label {
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  background: var(--primary-dark);
  color: var(--accent-gold);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.ticker-viewport {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 46s linear infinite;
}

.ticker-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.ticker a,
.ticker span.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--primary-dark);
}

.ticker a::after,
.ticker span.ticker-item::after {
  content: '◆';
  margin-left: 0.9rem;
  font-size: 0.5rem;
  opacity: 0.45;
}

.ticker a:hover {
  color: #4a3718;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ticker b {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  background: rgba(10, 10, 10, 0.88);
  color: var(--accent-gold);
}

.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .ticker a,
  .ticker span.ticker-item { font-size: 0.74rem; padding: 0.5rem 1rem; }
  .ticker-label { padding: 0.5rem 0.65rem; font-size: 0.6rem; }
  .ticker-track { animation-duration: 34s; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-viewport { overflow-x: auto; }
  .ticker-group:nth-child(2) { display: none; }
}

/* ======= HEADER / NAVIGATION ======= */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-sm);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo::before {
  content: '◆';
  color: var(--accent-gold);
  font-size: 1.2rem;
}

nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

nav a {
  position: relative;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0.3rem;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--accent-gold);
  opacity: 0;
  transition: opacity 0.3s;
}

nav a:hover::after,
nav a.active::after {
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: space-around;
  padding: 0.4rem;
  border-radius: 6px;
  background: none;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
  border-radius: 1px;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* ======= MAIN CONTENT ======= */

.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 2rem;
}

main {
  padding: 3rem 2rem 5rem;
}

section {
  margin-bottom: 4rem;
}

/* ======= HERO ======= */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1a1a1a 100%);
  color: var(--text-light);
  padding: 5rem 2rem;
  border-bottom: 3px solid var(--accent-gold);
}

.hero::after {
  content: attr(data-year);
  position: absolute;
  right: 2rem;
  bottom: -2rem;
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: rgba(212, 165, 116, 0.08);
  line-height: 1;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin-bottom: 2rem;
}

/* ======= TYPOGRAPHY ======= */

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent-gold);
}

/* ======= CARDS & PANELS ======= */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-compact {
  padding: 1.5rem;
}

.card--accent {
  border-left: 5px solid var(--accent-gold);
}

/* ======= BUTTONS ======= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background: var(--accent-gold-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--primary-dark);
  color: var(--text-light);
  border: 1px solid var(--primary-dark);
}

.btn-secondary:hover {
  background: rgba(10, 10, 10, 0.9);
}

.btn-ghost {
  background: none;
  color: var(--accent-gold);
  border: 2px solid var(--accent-gold);
  padding: 0.6rem 1.2rem;
}

.btn-ghost:hover {
  background: var(--accent-gold);
  color: var(--primary-dark);
}

/* ======= GRID ======= */

.grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ======= PAGE ARTICLE ======= */

.article-main {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.article-back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.2rem;
}

.article-back:hover {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

.article-head {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.article-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.article-tag {
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  background: var(--primary-dark);
  color: var(--accent-gold);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-tag--date {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.article-main h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.2rem;
}

.article-lead {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-dark);
}

.article-byline {
  margin-top: 1.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.article-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0;
  padding: 1.8rem;
  border-radius: 12px;
  background: var(--primary-dark);
  color: var(--text-light);
  border-left: 5px solid var(--accent-gold);
}

.article-scoreboard .sb-team {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.article-scoreboard .sb-score {
  text-align: center;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--accent-gold);
  white-space: nowrap;
}

.article-scoreboard .sb-meta {
  grid-column: 1 / -1;
  padding-top: 1rem;
  margin-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
}

.article-body {
  margin-top: 2.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2a2a2a;
}

.article-body p {
  margin-bottom: 1.3rem;
}

.article-body h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 1rem;
  padding-left: 0.9rem;
  border-left: 4px solid var(--accent-gold);
  letter-spacing: -0.01em;
}

.article-body strong {
  color: var(--text-dark);
}

.article-body a {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.article-body ul {
  margin: 0 0 1.3rem 1.3rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-note {
  margin: 2rem 0;
  padding: 1.1rem 1.3rem;
  border-left: 4px solid var(--accent-gold);
  border-radius: 0 8px 8px 0;
  background: rgba(212, 165, 116, 0.12);
  font-size: 0.95rem;
  line-height: 1.6;
}

.article-note strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #8a6d2f;
}

.article-sources {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.article-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.article-related h2 {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

.related-list {
  display: grid;
  gap: 0.8rem;
}

.related-list a {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  font-weight: 600;
}

.related-list a:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-sm);
}

.related-list .rel-date {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
}

@media (max-width: 768px) {
  .article-main { padding: 2rem 1rem 3rem; }
  .article-scoreboard { grid-template-columns: 1fr; gap: 0.6rem; padding: 1.4rem; }
  .article-scoreboard .sb-score { font-size: 1.8rem; }
  .article-body { font-size: 1rem; }
  .related-list a { flex-direction: column; gap: 0.3rem; }
}

/* ======= FOOTER ======= */

footer {
  background: var(--primary-dark);
  color: var(--text-light);
  padding: 3rem 2rem;
  margin-top: 5rem;
  border-top: 3px solid var(--accent-gold);
}

footer .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

footer h4 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
}

footer a {
  color: var(--accent-gold);
}

footer a:hover {
  color: var(--accent-gold-light);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ======= RESPONSIVE ======= */

@media (max-width: 768px) {
  header {
    padding: 1rem;
    gap: 1rem;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--text-light);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
  }

  .menu-toggle {
    display: flex;
  }

  main {
    padding: 2rem 1rem 4rem;
  }

  .hero {
    padding: 3rem 1rem;
  }

  footer .container {
    grid-template-columns: 1fr;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
