/* ==========================================================
   PALMARÈS — RESPONSIVE PORTRAIT ALIGNÉ SUR LA PAGE SPORT
   ========================================================== */

@media (max-width: 800px) {
  body {
    background-attachment: scroll;
    background-position: center top;
    overflow-x: hidden;
  }

  .site-header {
    height: 68px !important;
    padding: 0 18px;
  }

  .brand strong { font-size: 20px !important; }
  .brand span { font-size: 8px !important; }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(5,5,5,.98);
    padding: 12px 18px;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(201,164,90,.2);
    box-shadow: 0 15px 30px rgba(0,0,0,.8);
  }

  .site-header.open .main-nav { display: flex; }
  .main-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(201,164,90,.12);
    font-size: 11px !important;
  }
  .portal-link { display: none; }
  .menu-toggle { display: block; }

  /* Couverture identique dans son principe à la page SPORT :
     image en arrière-plan, texte au premier plan. */
  .palmares-cover {
    /* Même emprise verticale que le hero de la page Sport :
       le header fixe se superpose sans ajouter 68px de hauteur. */
    height: 100svh;
    min-height: 620px;
    max-height: 900px;
    margin-top: 0;
    padding: 0;
    display: block;
    position: relative;
    overflow: hidden;
  }

  .palmares-cover .cover-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: .30;
    z-index: 1;
    display: block;
  }

  .palmares-cover .cover-image figure {
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .palmares-cover .cover-image img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border: 0;
    box-shadow: none;
  }

  .palmares-cover .cover-copy {
    position: absolute;
    z-index: 3;
    left: 20px;
    right: 20px;
    top: 26%;
    bottom: auto;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    transform: none;
  }

  .palmares-cover .eyebrow {
    font-size: 10px;
    letter-spacing: .18em;
    line-height: 1.6;
  }

  /* Même échelle typographique que la page Sport */
  .palmares-cover .cover-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(54px, 15vw, 88px) !important;
    line-height: .78;
    letter-spacing: .015em;
    white-space: normal;
    color: #f2eee6;
  }

  .palmares-cover .cover-copy h1 span { color: var(--gold-light, var(--gold-hi)); }
  .palmares-cover .cover-rule { margin-bottom: 18px; width: 56px; }
  .palmares-cover .cover-intro {
    font-size: 17px;
    line-height: 1.35;
    max-width: 100%;
  }
  .palmares-cover .cover-signature {
    font-size: 25px;
    margin-top: 20px;
  }

  .palmares-cover .cover-meta,
  .palmares-cover .cover-side,
  .palmares-cover .cover-scroll {
    display: none;
  }

  .section { width: calc(100% - 36px); }
  .summary { padding: 75px 0 55px; }
  .summary-grid { display: block; margin: 42px 0; }
  .summary-title h2 { font-size: clamp(56px, 15vw, 80px); line-height: .76; margin-bottom: 24px; }
  .summary-text { font-size: 17px; line-height: 1.55; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; }
  .stats > div { margin: 0; padding: 13px 10px 0 0; }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(216,182,106,.12);
    border-right: 0;
    margin-top: 9px;
    padding-top: 13px;
  }

  .timeline { padding-bottom: 65px; }
  .year { padding: 42px 0; }
  .year-head { display: block; margin-bottom: 22px; }
  .year-number, .featured .year-number { font-size: 64px; }
  .year-label { display: block; margin-top: 10px; }
  .year-body, .year-body.one { display: block; }
  .results { margin-bottom: 25px; }
  .result { padding-bottom: 22px; }
  .result h3 { font-size: 24px; }
  .g2, .g3, .g2026 { grid-template-columns: 1fr; }
  .g2 .offset, .g3 figure:nth-child(3) { margin-top: 0; }
  .g3 figure:first-child { grid-column: auto; }
  .g2026 .wide { grid-column: auto; grid-row: auto; }

  .closing { padding: 60px 20px 75px; }
  .lightbox { padding: 16px 6px; }
  .lightbox img { max-width: 97vw; max-height: 82vh; }
  .lightbox-prev, .lightbox-next { font-size: 52px; padding: 10px; }
  .lightbox-prev { left: 0; }
  .lightbox-next { right: 0; }
  .lightbox-close { top: 8px; right: 9px; font-size: 38px; }
  footer { padding: 20px 18px; flex-direction: column; align-items: flex-start; gap: 12px; }
  footer span, footer a { font-size: 8px; }
}

@media (max-width: 359px) {
  .palmares-cover .cover-copy { top: 26%; bottom: auto; }
  .palmares-cover .cover-copy h1 { font-size: clamp(38px, 10vw, 66px) !important; }
  .palmares-cover .cover-intro { font-size: 15px; }
}

@media (max-width: 800px) and (max-height: 680px) {
  .palmares-cover { min-height: 560px; }
  .palmares-cover .cover-copy { top: 26%; bottom: auto; }
  .palmares-cover .cover-copy h1 { font-size: clamp(36px, 8.5vw, 64px) !important; margin: 10px 0; }
  .palmares-cover .cover-intro { display: none; }
}
