/*
 * Mise en page commune aux écrans (tableau des vols, carte) : coque plein écran et en-tête du club
 * (templates/_club_header.html.twig).
 */
:root {
  --paper: #f7f7f4;
  --ink: #071b36;
  --blue: #0869b4;
  --header-height: clamp(96px, 13vh, 140px);
}

.screen-shell {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--board, #111313);
}

/* Le contenu de l'écran occupe toute la hauteur restante sous l'en-tête */
.screen-shell > main {
  flex: 1 1 auto;
  min-height: 0;
}

.club-header[hidden] {
  display: none;
}

.club-header {
  flex: 0 0 var(--header-height);
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 80px);
  padding: clamp(10px, 1.4vh, 22px) clamp(24px, 3vw, 68px);
  color: var(--ink);
  background: var(--paper);
  border-bottom: 2px solid #c9c9c4;
  box-shadow: 0 8px 28px rgb(0 0 0 / 32%);
}

.club-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 38px);
}

.club-mark {
  width: clamp(108px, 10vw, 180px);
  height: auto;
  flex: 0 0 auto;
}

.club-rule {
  width: 3px;
  height: clamp(64px, 8vh, 104px);
  flex: 0 0 auto;
  background: var(--blue);
}

.club-header h1 {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(1.55rem, 3.35vw, 4.15rem);
  font-stretch: condensed;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.clock-panel {
  min-width: max-content;
  padding-left: clamp(22px, 3vw, 54px);
  text-align: right;
  border-left: 3px solid var(--blue);
}

.clock,
.date {
  display: block;
}

.clock {
  color: #090b0c;
  font-family: "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
  font-size: clamp(3.2rem, 6.7vw, 7.4rem);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.025em;
}

.date {
  margin-top: clamp(12px, 1.5vh, 20px);
  font-size: clamp(0.86rem, 1.5vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.club-nav {
  display: flex;
  gap: clamp(8px, 1vw, 18px);
  margin-left: auto;
}

.club-nav__link {
  padding: clamp(6px, 0.8vh, 12px) clamp(14px, 1.6vw, 28px);
  border: 2px solid var(--blue);
  border-radius: 6px;
  color: var(--blue);
  font-size: clamp(0.9rem, 1.4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 150ms ease, color 150ms ease;
}

.club-nav__link:hover,
.club-nav__link:focus-visible {
  background: rgb(8 105 180 / 12%);
}

.club-nav__link[aria-current="page"] {
  color: var(--paper);
  background: var(--blue);
}

@media (max-aspect-ratio: 4 / 3) {
  :root {
    --header-height: clamp(96px, 14vh, 142px);
  }

  .club-mark,
  .club-rule {
    display: none;
  }

  .club-header h1 {
    font-size: clamp(1.35rem, 4vw, 2.7rem);
  }

  .clock {
    font-size: clamp(2.6rem, 8vw, 5rem);
  }
}
