/* Welcome page: blue in both themes, one band per section.
   Hier soir is wide by default; the band under the pointer (or keyboard focus) widens to 2 : 1 and clears. */

#home {
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #1e3480;
  color: #fff;
  overflow: hidden;
}
#home[hidden] {
  display: none !important;
}
#home *,
#home *::before,
#home *::after {
  box-sizing: border-box;
}
#home .hm-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.16;
  pointer-events: none;
}

/* header: logo, club, language */
#home .hm-head {
  position: relative;
  flex: none;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
#home .logo {
  font-size: 17px;
}
#home .hm-club {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
#home .hm-crest {
  width: 26px;
  height: 26px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0;
  color: #fff;
}

/* notification band under the header: yellow edge and tint, dot, count, message, yellow action button, close */
#home .hm-notif {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  padding: 10px 28px 10px 36px;
  background: linear-gradient(90deg, rgba(252, 196, 25, 0.2), rgba(252, 196, 25, 0.08));
  border-left: 4px solid #fcc419;
  border-bottom: 1px solid rgba(252, 196, 25, 0.4);
}
#home .hm-notif[hidden] {
  display: none;
}
#home .hm-notif .dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fcc419;
  box-shadow: 0 0 0 4px rgba(252, 196, 25, 0.25);
}
#home .hm-notif .tag,
#home .hm-notif .act {
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
#home .hm-notif .tag {
  color: #fcc419;
}
#home .hm-notif .msg {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 500;
  color: #fff;
}
#home .hm-notif .act {
  margin-left: auto;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  background: #fcc419;
  color: #1e3480;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
#home .hm-notif .x {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}
#home .hm-notif .x svg {
  width: 16px;
  height: 16px;
}
#home .hm-notif .act:hover {
  background: #fff;
}
#home .hm-notif .x:hover {
  color: #fcc419;
}
#home .hm-notif .act:focus-visible,
#home .hm-notif .x:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* the bands */
#home .bands {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
}
#home .band {
  flex: 1 1 0;
  min-width: 0;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  padding: 48px 44px 56px;
  color: #fff;
  text-decoration: none;
  background-color: rgba(10, 18, 48, 0.38);
  transition:
    flex-grow 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    background-color 0.35s ease;
}
#home .band + .band {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
#home a.band {
  cursor: pointer;
}
#home .band.wide {
  flex-grow: 2;
  background-color: transparent;
}
#home .bands:hover .band,
#home .bands:has(.band:focus-visible) .band {
  flex-grow: 1;
  background-color: rgba(10, 18, 48, 0.38);
}
#home .bands:hover .band:hover,
#home .bands .band:focus-visible {
  flex-grow: 2;
  background-color: transparent;
}
#home .band:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

#home .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* the title shrinks with its band so the longest word always fits */
#home .band h2 {
  margin: 0;
  font-family: var(--cond);
  font-weight: 600;
  font-size: clamp(40px, 21cqi, 104px);
  line-height: 0.86;
  text-transform: uppercase;
  white-space: nowrap;
}
#home .band p {
  margin: 12px 0 0;
  max-width: 28ch;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}
#home .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 41px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}
#home .go {
  flex: none;
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.8);
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}
#home .band:hover .go,
#home .band:focus-visible .go {
  color: #fcc419;
  transform: translateX(5px);
}
/* Hier soir: not ready yet */
#home .wip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
#home .wip::before {
  content: "";
  width: 10px;
  height: 10px;
  background: repeating-linear-gradient(45deg, #fcc419 0 2px, transparent 2px 4px);
  box-shadow: inset 0 0 0 1px #fcc419;
}

/* logo and house button in the top bar of the other screens: back to the welcome page */
.homebtn {
  margin-left: -12px; /* close to the logo: the top bar spaces its items 26px apart */
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.74);
  cursor: pointer;
}
.homebtn svg {
  width: 14px;
  height: 14px;
}
.homebtn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.homebtn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.topbar .logo[data-go] {
  cursor: pointer;
}
.topbar .logo[data-go]:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 760px) {
  #home {
    overflow-y: auto;
  }
  #home .hm-head {
    padding: 0 16px;
    gap: 14px;
  }
  #home .hm-club span:last-child {
    display: none;
  }
  /* message on the first line (next to the dot and close button), action button below it */
  #home .hm-notif {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 4px 14px 12px;
  }
  #home .hm-notif .msg {
    flex: 1 1 calc(100% - 92px); /* fills the line beside the dot and close button, so the action wraps below */
    font-size: 15px;
    white-space: normal;
  }
  #home .hm-notif .x {
    order: 1;
  }
  #home .hm-notif .act {
    order: 2;
    margin-left: 24px;
    padding: 0 16px;
  }
  #home .hm-notif .tag {
    display: none;
  }
  #home .bands {
    flex: none;
    flex-direction: column;
  }
  /* stacked: every band keeps its height, only the colour follows the pointer */
  #home .band,
  #home .band.wide,
  #home .bands:hover .band,
  #home .bands:hover .band:hover,
  #home .bands .band:focus-visible {
    flex: none;
  }
  #home .band {
    padding: 28px 16px 32px;
  }
  #home .band + .band {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
}
@media (prefers-reduced-motion: reduce) {
  #home .band,
  #home .go {
    transition: none;
  }
}
