/* ==========================================================================
   EKKO — Landing page provisoire
   ========================================================================== */

/* --------------------------------------------------------------------------
   Gabarito — police variable auto-hébergée (SIL Open Font License 1.1).
   Aucun appel à un serveur tiers : pas de transmission d'IP visiteur.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Gabarito";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/gabarito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Gabarito";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/gabarito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #2a3057;
  --navy-deep: #1e203d;
  --white: #ffffff;

  --plate-offset: 5px;
  --radius-pill: 999px;

  --step-body: clamp(1rem, 0.55vw + 0.86rem, 1.19rem);
  --step-label: clamp(0.875rem, 0.3vw + 0.8rem, 0.97rem);
  --step-pill: clamp(1.02rem, 0.35vw + 0.93rem, 1.15rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: "Gabarito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  font-weight: 500;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Scène
   -------------------------------------------------------------------------- */

.stage {
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(3rem, 8vh, 6rem) clamp(1.5rem, 5vw, 4.5rem);
  /* Réserve la place du lien « Mentions légales » ancré en bas. */
  padding-bottom: calc(clamp(3rem, 8vh, 6rem) + 1.5rem);
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin-block: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 9vh, 6rem);
}

/* --------------------------------------------------------------------------
   Formes décoratives
   -------------------------------------------------------------------------- */

.decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.decor__shape {
  position: absolute;
  opacity: 0.11;
}

.decor__shape--tl {
  top: 0;
  left: 0;
  width: 28vw;
}

.decor__shape--tr {
  top: 0;
  right: 0;
  width: 21vw;
}

.decor__shape--bl {
  bottom: 0;
  left: 0;
  width: 22vw;
}

.decor__shape--br {
  bottom: 0;
  right: 0;
  width: 27vw;
}

/* --------------------------------------------------------------------------
   Logo + texte
   -------------------------------------------------------------------------- */

.intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.intro__logo {
  width: clamp(52px, 6vw, 100px);
}

.copy {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 62ch;
  text-wrap: pretty;
}

.copy p,
.copy__lead {
  margin: 0;
  font-size: inherit;
  font-weight: 500;
  line-height: 1.45;
}

.copy strong {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Appels à l'action
   -------------------------------------------------------------------------- */

.ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.75rem, 5vw, 4.5rem);
}

.cta {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.6vw, 1.5rem);
}

/* La plaque sombre décalée derrière la pastille */
.cta__plate {
  position: relative;
  flex: none;
  display: block;
}

.cta__plate::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(var(--plate-offset), var(--plate-offset));
  background: var(--navy-deep);
  border-radius: var(--radius-pill);
  transition: transform 220ms ease;
}

.cta__pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;
  min-height: 2.9rem;
  padding: 0.5rem 1.6rem;
  background: var(--white);
  color: var(--navy-deep);
  border-radius: var(--radius-pill);
  font-size: var(--step-pill);
  font-weight: 400;
  white-space: nowrap;
  transition: transform 220ms ease;
}

.cta__pill--logo {
  min-width: 5.2rem;
  padding: 0.5rem 1.1rem;
}

.cta__pill--logo img {
  width: 42px;
}

.cta__label {
  font-size: var(--step-label);
  font-weight: 500;
  line-height: 1.35;
  text-wrap: balance;
}

@media (hover: hover) {
  .cta:hover .cta__pill {
    transform: translate(var(--plate-offset), var(--plate-offset));
  }

  .cta:hover .cta__plate::before {
    transform: translate(0, 0);
  }
}

.cta:focus-visible {
  outline-offset: 8px;
}

/* --------------------------------------------------------------------------
   Mentions légales
   -------------------------------------------------------------------------- */

.legal-link {
  position: absolute;
  z-index: 1;
  right: clamp(1.5rem, 5vw, 4.5rem);
  bottom: clamp(1.25rem, 3vh, 2rem);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.62);
  transition: color 200ms ease;
}

.legal-link:hover,
.legal-link:focus-visible {
  color: var(--white);
}

/* Page mentions légales */

.legal {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 46rem;
  margin-block: auto;
}

.legal h1 {
  margin: 0 0 2.5rem;
  font-size: clamp(1.6rem, 2.4vw + 1rem, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
}

.legal h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.25rem);
  font-weight: 700;
}

.legal p {
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

.legal a:not(.legal__back) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal__back {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
  color: rgb(255 255 255 / 0.7);
  transition: color 200ms ease;
}

.legal__back:hover,
.legal__back:focus-visible {
  color: var(--white);
}

.legal__todo {
  color: #ffd9a0;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Apparition
   -------------------------------------------------------------------------- */

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  animation: reveal 620ms cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}

.reveal--d1 {
  animation-delay: 90ms;
}

.reveal--d2 {
  animation-delay: 180ms;
}

.reveal--d3 {
  animation-delay: 270ms;
}

.reveal--d4 {
  animation-delay: 380ms;
}

.reveal--d5 {
  animation-delay: 460ms;
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .intro {
    flex-direction: column;
    text-align: center;
    gap: clamp(1.75rem, 6vw, 2.5rem);
  }

  .copy {
    max-width: none;
  }

  .ctas {
    flex-direction: column;
    align-items: center;
    gap: 2.25rem;
  }

  .cta {
    flex-direction: column;
    gap: 0.9rem;
    text-align: center;
  }

  .decor__shape--tl {
    width: 46vw;
  }

  .decor__shape--tr {
    width: 34vw;
  }

  .decor__shape--bl {
    width: 36vw;
  }

  .decor__shape--br {
    width: 44vw;
  }
}

/* --------------------------------------------------------------------------
   Accessibilité — mouvement réduit
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  .reveal {
    animation: none;
  }

  .cta__pill,
  .cta__plate::before {
    transition: none;
  }
}