/* ASCannes.com — feuille de style
   Palette : rouge et blanc du maillot, papier d'archive, or pour le palmarès. */

:root {
  --ink: #1A1A1A;
  --ink-soft: #5A5250;
  --paper: #FFFFFF;
  --paper-raised: #FBF3F4;
  --rouge: #B0182A;
  --rouge-fonce: #7A0E1D;
  --rouge-soft: #F5E2E4;
  --ligne: #EADEDF;
  --radius: 3px;
  --content-width: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin-top: 0; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: var(--rouge-fonce); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--rouge); }

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

/* Bandeau tricolore en tête de page, discret clin d'oeil au maillot */
.stripe {
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--rouge) 0 22px,
    #ffffff 22px 30px
  );
  border-bottom: 1px solid var(--ligne);
}

/* En-tête */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--ligne);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  max-width: 920px;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  position: relative;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.3rem;
  background: var(--rouge);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius);
}

.brand-name {
  font-size: 1.3rem;
  margin: 0;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--rouge-fonce);
  border-bottom-color: var(--rouge);
}

.nav-toggle { display: none; }
.nav-burger { display: none; }

/* Contenu principal */
main.wrap { padding-top: 48px; padding-bottom: 64px; }

.hero-eyebrow {
  color: var(--rouge-fonce);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 10px;
}

.hero h1 { max-width: 13ch; }

.hero-lede {
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.stat-strip {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--ligne);
}

.stat { display: flex; flex-direction: column; }

.stat-value {
  font-family: "Fraunces", serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--rouge-fonce);
}

.stat-label {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.announce {
  margin: 40px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--rouge);
  background: var(--rouge-soft);
}

.announce p {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--rouge-fonce);
}

.section { margin: 44px 0; }

.rule {
  border: none;
  border-top: 1px solid var(--ligne);
  margin: 48px 0;
}

.page-head { margin-bottom: 40px; }
.page-head h1 { max-width: none; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
}

/* Listes de liens */
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--ligne);
}

.link-list.compact li { padding: 7px 0; }

.link-list a {
  font-weight: 600;
  text-decoration: none;
}

.link-list a:hover { text-decoration: underline; }

.credit {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Fiches (définitions) */
.fiche {
  margin: 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  row-gap: 10px;
  column-gap: 20px;
}

.fiche-row {
  display: contents;
}

.fiche dt {
  font-weight: 600;
  color: var(--ink-soft);
  grid-column: 1;
}

.fiche dd {
  margin: 0;
  grid-column: 2;
}

/* Tableaux */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--ligne);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  font-size: 0.92rem;
}

thead th {
  text-align: left;
  background: var(--rouge);
  color: #fff;
  font-weight: 600;
  padding: 10px 12px;
  white-space: nowrap;
}

tbody td {
  padding: 8px 12px;
  border-top: 1px solid var(--ligne);
  white-space: nowrap;
}

tbody tr:nth-child(odd) { background: var(--rouge-soft); }

/* Vidéo */
.video-wrap {
  position: relative;
  padding-top: 56.25%;
  margin: 32px 0;
  background: var(--ink);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Grille de joueurs */
.players-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 32px;
}

.players-grid li {
  padding: 6px 0;
  border-bottom: 1px solid var(--ligne);
  break-inside: avoid;
}

/* Pied de page */
.site-footer {
  border-top: 1px solid var(--ligne);
  padding: 28px 0 40px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.footer-row p { margin: 0 0 4px; }
.footer-note { color: #8A8078; }

/* Accessibilité clavier */
a:focus-visible,
.nav-burger:focus-visible {
  outline: 2px solid var(--rouge);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Mobile / menu compact */
@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; }
  .players-grid { columns: 1; }

  .fiche {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }
  .fiche-row { display: block; margin-bottom: 12px; }
  .fiche dt, .fiche dd { grid-column: auto; }
  .fiche dd { color: var(--ink-soft); }

  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    cursor: pointer;
  }
  .nav-burger span {
    height: 2px;
    background: var(--ink);
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--ligne);
    padding: 8px 24px 20px;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .site-nav a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--ligne);
  }

  .nav-toggle:checked ~ .site-nav {
    display: block;
  }
}
