@font-face {
  font-family: "Open Sans Condensed";
  src: url("/assets/fonts/open-sans-condensed-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

html { scroll-padding-top: 6.5rem; }
body { padding-bottom: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.home-bar {
  --bar-height: 4.25rem;
  position: fixed;
  inset: max(1rem, env(safe-area-inset-top)) 0 auto;
  margin-inline: auto;
  width: min(90%, 78rem);
  min-height: var(--bar-height);
  height: auto;
  padding: .42rem .75rem;
  display: grid;
  grid-template: auto / 1fr auto 1fr;
  align-items: center;
  gap: .5rem;
  color: white;
  background: #102725f5;
  border: 1px solid #ffffff38;
  border-radius: .85rem;
  box-shadow: 0 2px 12px #081f1a28;
}
.home-nav-actions {
  grid-area: 1 / 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.sponsors-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .5rem .8rem;
  border: 1px solid var(--lime);
  border-radius: .4rem;
  color: var(--lime);
  font: 700 .95rem/1.2 Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.sponsors-shortcut:hover, .sponsors-shortcut:focus-visible {
  color: #182b20;
  background: var(--lime);
}
.home-bar .menu-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  margin: 0;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .5rem .9rem;
  color: #182b20;
  background: var(--lime);
  border: 0;
  border-radius: .4rem;
  font: 700 .95rem/1 Arial, sans-serif;
  cursor: pointer;
}
.menu-lines {
  position: relative;
  width: 1.16rem;
  height: .86rem;
  border-block: 2px solid currentColor;
}
.menu-lines::before {
  content: "";
  position: absolute;
  inset: calc(50% - 1px) 0 auto;
  border-top: 2px solid currentColor;
}
.home-bar > .home-brand {
  display: flex;
  grid-area: 1 / 2;
  justify-self: center;
  align-items: center;
  gap: .55rem;
  color: #fff;
}
.home-brand img { width: 2.7rem; height: 2.7rem; padding: .27rem; object-fit: contain; background: #fff; border-radius: 50%; }
.home-wordmark { font: 700 1.25rem/.98 "Open Sans Condensed", Arial, sans-serif; letter-spacing: .025em; }
.home-wordmark small { display: block; margin-top: .27rem; color: var(--lime); font: 700 .65rem/1 Arial, sans-serif; letter-spacing: .19em; }
.home-languages { position: relative; grid-area: 1 / 3; justify-self: end; }
.home-languages summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-width: 3.1rem;
  min-height: 2.75rem;
  padding-inline: .25rem;
  list-style: none;
  cursor: pointer;
  font-size: .95rem;
}
.home-languages summary::-webkit-details-marker { display: none; }
.home-languages summary i { width: .45rem; height: .45rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.home-languages[open] summary i { transform: translateY(1px) rotate(225deg); }
.lang-options, .home-bar nav {
  position: absolute;
  top: calc(100% + .65rem);
  border: 1px solid #dce3da;
  border-radius: .65rem;
  background: #fff;
  color: #182c29;
  box-shadow: 0 12px 36px #10272533;
}
.lang-options { right: 0; min-width: 8.5rem; padding: .35rem; }
.lang-options a { display: flex; align-items: center; text-decoration: none; }
.lang-options a, .lang-options button { width: 100%; min-height: 44px; padding: .4rem .75rem; border: none; border-radius: .35rem; background: none; font: 600 1rem/1.3 Arial,sans-serif; text-align: left; color: inherit; cursor: pointer; }
.lang-options a:hover, .lang-options button[aria-pressed="true"], .lang-options button:hover { background: #e9f7d5; }
.home-bar nav { left: 0; right: auto; width: min(36rem,100%); max-height: calc(100svh - 7rem); overscroll-behavior: contain; }
.home-bar nav.is-open { display: grid; }
.home-audio { grid-column: 1 / -1; display: grid; gap: .5rem; border-top: 1px solid #dce3da; padding-top: .8rem; }
.home-audio .welcome-control { margin: 0; }
.home-audio .music-toggle, .home-audio .welcome-control button { position: static; min-height: 44px; margin: 0; padding: .5rem .8rem; border: 1px solid #c5d0c2; border-radius: .35rem; color: #152d21; background: #f3f7ef; box-shadow: none; font: 600 .88rem/1.35 Arial,sans-serif; }
.home-audio #welcome-status { color: inherit; }
.opening-film {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(38rem, 83svh, 55rem);
  padding: 10rem max(5vw, calc((100vw - 77rem) / 2)) clamp(2.75rem, 5.8vh, 5rem);
  overflow: hidden;
  color: #fff;
  background: #0d2926 url("/assets/accueil-terrain.webp") center / cover no-repeat;
}
.opening-film video, .opening-film::after { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.opening-film video { z-index: -2; object-fit: cover; object-position: 50% 40%; }
.opening-film::after {
  content: "";
  z-index: -1;
  background: linear-gradient(0deg,#081d1bdb,transparent 78%), linear-gradient(90deg,#09201ccf 0%,#0e231e73 47%,transparent 82%);
}
.opening-copy { max-width: 57rem; }
.opening-copy h1 {
  margin: 0;
  color: #fff;
  font: 700 clamp(4.15rem, 6.65vw, 7.2rem)/.97 "Open Sans Condensed","Arial Narrow",Arial,sans-serif;
  text-transform: uppercase;
  letter-spacing: -.028em;
  text-shadow: 0 2px 10px #10251f25;
}
.opening-copy h1 span { display: block; }
.opening-copy p { margin: 1.15rem 0 1.55rem; max-width: 47ch; color: #fff; font-size: clamp(1.02rem,1.35vw,1.22rem); line-height: 1.5; }
.opening-actions { display: flex; gap: .68rem; }
.home-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  min-height: 3.15rem;
  padding: .65rem 1.5rem;
  border-radius: .4rem;
  text-decoration: none;
  font-size: 1.04rem;
  font-weight: 700;
  color: #152a23;
}
.donate-cta { background: var(--lime); }
.join-cta { background: #f7f9f3; }
.home-cta:hover { box-shadow: 0 0 0 2px currentColor inset; }
#film-motion {
  position: absolute;
  right: max(5vw, calc((100vw - 77rem) / 2));
  bottom: clamp(2.75rem,5.8vh,5rem);
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border: 1px solid #ffffffa8;
  border-radius: 50%;
  background: #0c211dd4;
  color: white;
  cursor: pointer;
}
#film-motion[hidden] { display: none; }
.motion-icon, .president-portrait i::after {
  display: block;
  width: 0;
  height: 0;
  margin-left: 3px;
  border-block: .35rem solid transparent;
  border-left: .57rem solid currentColor;
}
#film-motion.is-playing .motion-icon { width: .62rem; height: .75rem; margin: 0; border-block: 0; border-inline: .2rem solid currentColor; }
.president-message { color: #152c26; background: #f7f8f1; border-bottom: 1px solid #d4dbd1; }
.president-link {
  display: flex;
  align-items: center;
  gap: clamp(.95rem,2vw,2rem);
  max-width: 78rem;
  margin: 0 auto;
  width: 90%;
  padding: 1.35rem 0;
  color: inherit;
  text-decoration: none;
}
.president-portrait { position: relative; flex: none; display: block; }
.president-portrait img { display: block; width: 5.4rem; height: 5.4rem; border-radius: 50%; object-fit: cover; object-position: 54% 40%; }
.president-portrait i { position: absolute; right: -.13rem; bottom: .05rem; width: 1.85rem; height: 1.85rem; display: grid; place-items: center; border: 2px solid #f7f8f1; border-radius: 50%; color: #132e21; background: var(--lime); }
.president-portrait i::after { content: ""; }
.president-link h2 { margin: 0; color: inherit; font: 700 clamp(2rem, 3vw, 3.35rem)/1 "Open Sans Condensed",Arial,sans-serif; letter-spacing: -.025em; }
.president-link h2 span { display: block; margin-bottom: .3rem; font: 600 .95rem/1.3 Arial,sans-serif; letter-spacing: normal; }
.president-duration { margin-left: auto; font-size: .95rem; color: #40554d; }
.president-link:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .13em; }
.film-dialog { width: min(94vw, 62rem); max-width: none; max-height: 95svh; padding: 0; background: #0d211f; border: 1px solid #748a81; border-radius: .65rem; color: white; }
.film-dialog::backdrop { background: #061714e8; }
.film-dialog-bar { display: flex; justify-content: space-between; align-items: center; padding: .4rem .65rem .4rem 1rem; gap: 1rem; font-size: 1rem; line-height: 1.3; }
.film-dialog-bar button { width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: #ffffff18; color: white; font-size: 1.6rem; cursor: pointer; }
.film-dialog video { display: block; width: 100%; height: auto; max-height: calc(94svh - 4.5rem); background: #000; }
@media (max-width: 700px) {
  .home-bar { --bar-height: 3.65rem; inset-block-start: max(.7rem, env(safe-area-inset-top)); padding: .3rem .45rem; width: calc(100% - 1.5rem); }
  .home-bar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .home-nav-actions { gap: .35rem; }
  .sponsors-shortcut { padding-inline: .55rem; font-size: .875rem; }
  .home-bar .menu-toggle { padding: .45rem; }
  .menu-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .home-brand img { width: 2.25rem; height: 2.25rem; }
  .home-wordmark { font-size: 1.06rem; }
  .home-wordmark small { font-size: .59rem; }
  .opening-film { min-height: 95vh; min-height: 95svh; padding: 11rem 5.5% 1.35rem; }
  .opening-film { background: #0b211f; }
  .opening-film::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background: url("/assets/accueil-terrain-mobile.webp") center 46% / cover no-repeat;
  }
  .opening-film video, .opening-film::before {
    top: 2.3rem;
    height: calc(87% - 2.3rem);
    object-position: center;
    mask-image: linear-gradient(0deg, transparent, black 22%, black 87%, transparent);
  }
  .opening-film::after { background: linear-gradient(0deg,#091e1cf5 0%,#0b211fe0 22%,#0b211f9e 47%,#09201b12 75%); }
  .opening-copy h1 { font-size: clamp(2.65rem,10.3vw,4.2rem); line-height: 1.02; }
  .opening-copy p { margin: .85rem 0 1.25rem; font-size: 1rem; line-height: 1.45; }
  .opening-actions { flex-direction: column; gap: .48rem; }
  .home-cta { min-height: 2.93rem; }
  #film-motion { top: 5.25rem; bottom: auto; right: 5.5%; }
  .president-link { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: .25rem; padding: 1.15rem 0; }
  .president-portrait { grid-row: span 2; }
  .president-portrait img { width: 4.5rem; height: 4.5rem; }
  .president-link h2 span { font-size: .9rem; }
  .president-duration { margin: 0; font-size: .88rem; }
}
@media (max-width: 23rem) {
  .home-bar .home-brand { gap: 0; }
  .home-wordmark { display: none; }
}
@media (max-height: 530px) and (orientation: landscape) {
  .opening-film { min-height: 100svh; padding-block: 6.7rem 1.5rem; }
  .opening-copy h1 { font-size: 2.6rem; }
  .opening-copy p { margin-block: .65rem; }
  .opening-actions { flex-direction: row; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
