@font-face {
  font-family: "Bodoni Moda";
  src: url("/fonts/BodoniModa-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}

@font-face {
  font-family: "Josefin Sans";
  src: url("/fonts/JosefinSans-Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Josefin Sans";
  src: url("/fonts/JosefinSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}

html,
body,
button,
input,
textarea {
  font-family: "Josefin Sans", sans-serif !important;
}

.hero h1,
.section h2,
.join h2,
.menu-banner a span,
.partner-grid h3,
.contact form h3,
.subhero h1,
.sub-blocks h2,
.subpage blockquote,
.application h2,
.sub-cta p,
.sub-index span,
.big-quote {
  font-family: "Bodoni Moda", serif !important;
  font-weight: 700;
}

/* Navigation mobile clairement identifiable */
@media (max-width: 900px) {
  .topbar {
    grid-template-columns: minmax(110px, 1fr) auto !important;
    padding: 0 14px !important;
  }

  .topbar .actions {
    gap: 8px !important;
  }

  .topbar .langs {
    display: flex !important;
    gap: 0 !important;
    padding: 3px !important;
    border: 1px solid rgba(255,255,255,.48);
    border-radius: 999px;
    background: rgba(38,52,79,.38);
    backdrop-filter: blur(12px);
  }

  .topbar .langs button {
    display: grid !important;
    place-items: center;
    min-width: 27px;
    height: 27px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50%;
    color: #fff !important;
    opacity: .66 !important;
    font-size: 8px !important;
  }

  .topbar .langs button.active {
    color: #26344F !important;
    background: #DBAD63 !important;
    opacity: 1 !important;
  }

  .topbar .burger {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    width: 68px !important;
    height: 35px;
    padding: 0 10px 0 0;
    border: 1px solid rgba(255,255,255,.48) !important;
    border-radius: 999px;
    color: #fff;
    background: rgba(38,52,79,.38) !important;
    backdrop-filter: blur(12px);
  }

  .topbar .burger::before {
    content: "MENU";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font: 400 8px/1 "Josefin Sans", sans-serif;
    letter-spacing: .12em;
  }

  .topbar .burger i {
    position: absolute;
    right: 9px;
    width: 15px;
    margin: 0 !important;
    transition: transform .35s ease, top .35s ease;
  }

  .topbar .burger i:first-child { top: 12px; }
  .topbar .burger i:last-child { top: 20px; }

  .topbar nav {
    top: 0 !important;
    z-index: -1;
    min-height: 100svh;
    padding: 125px 28px 45px !important;
    justify-content: center;
    gap: 0 !important;
    background:
      radial-gradient(circle at 85% 15%, rgba(219,173,99,.2), transparent 32%),
      linear-gradient(145deg, #26344F, #2C406C) !important;
  }

  .topbar nav.open {
    display: flex !important;
  }

  .topbar nav a {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,.2);
    font-family: "Bodoni Moda", serif !important;
    font-size: clamp(29px, 9vw, 45px) !important;
    line-height: 1;
  }

  .topbar nav a::before {
    content: "0" counter(nav-item);
    counter-increment: nav-item;
    display: inline-block;
    width: 38px;
    font: 300 8px "Josefin Sans", sans-serif;
    color: #DBAD63;
  }

  .topbar nav { counter-reset: nav-item; }
}

/* Entrée en scène */
.agnes-welcome {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #FAF7F1;
  background: #26344F;
  transition: visibility 0s linear 1.1s;
}

.agnes-welcome.is-leaving { visibility: hidden; }

.welcome-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 51%;
  background: #26344F;
  transition: transform 1.05s cubic-bezier(.76,0,.24,1);
}

.welcome-curtain.left { left: 0; border-right: 1px solid rgba(219,173,99,.35); }
.welcome-curtain.right { right: 0; border-left: 1px solid rgba(219,173,99,.35); }
.agnes-welcome.is-leaving .welcome-curtain.left { transform: translateX(-101%); }
.agnes-welcome.is-leaving .welcome-curtain.right { transform: translateX(101%); }

.welcome-content {
  position: relative;
  z-index: 2;
  width: min(620px, 80vw);
  text-align: center;
  transition: opacity .35s ease .25s, transform .6s ease;
}

.agnes-welcome.is-leaving .welcome-content {
  opacity: 0;
  transform: scale(.94);
}

.welcome-content img {
  display: block;
  width: min(390px, 67vw);
  margin: 0 auto 35px;
  filter: brightness(0) invert(1);
  animation: welcome-mark 1.25s cubic-bezier(.2,.8,.2,1) both;
}

.welcome-kicker {
  overflow: hidden;
  font-size: 10px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: #DBAD63;
}

.welcome-kicker span {
  display: block;
  animation: welcome-line .9s cubic-bezier(.2,.8,.2,1) .35s both;
}

.welcome-progress {
  width: 120px;
  height: 1px;
  margin: 32px auto 0;
  overflow: hidden;
  background: rgba(255,255,255,.2);
}

.welcome-progress::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: #DBAD63;
  transform-origin: left;
  animation: welcome-progress 1.65s cubic-bezier(.6,0,.2,1) both;
}

.welcome-skip {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 4;
  border: 0;
  color: rgba(255,255,255,.65);
  background: none;
  font-size: 8px;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
}

@keyframes welcome-mark {
  from { opacity: 0; transform: scale(.82) rotate(-3deg); filter: brightness(0) invert(1) blur(9px); }
  to { opacity: 1; transform: scale(1) rotate(0); filter: brightness(0) invert(1) blur(0); }
}

@keyframes welcome-line {
  from { transform: translateY(120%); }
  to { transform: translateY(0); }
}

@keyframes welcome-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Révélations et profondeur au défilement */
.motion-ready .reveal-block {
  opacity: 0;
  transform: translateY(55px);
  transition:
    opacity .9s cubic-bezier(.2,.7,.2,1),
    transform 1.1s cubic-bezier(.2,.7,.2,1);
}

.motion-ready .reveal-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready .partner-grid article {
  transition:
    opacity .8s ease,
    transform .9s cubic-bezier(.2,.7,.2,1),
    background .35s ease,
    color .35s ease;
}

.motion-ready .partner-grid article:hover {
  z-index: 2;
  color: #26344F;
  background: #DBAD63;
  transform: translateY(-14px) rotate(-1deg);
}

.motion-ready .story-image img,
.motion-ready .join > img,
.motion-ready .subhero > img {
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1), filter .8s ease;
}

.motion-ready .story-image:hover img { transform: scale(1.045); }

@media (prefers-reduced-motion: reduce) {
  .agnes-welcome { display: none !important; }
  .motion-ready .reveal-block { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; }
}
