@font-face { font-family: "Inter Display"; src: url(inter-display.ttf) format("truetype"); font-weight: 600; font-display: swap; }
:root {
  --vert: #16443E; --vert-clair: #E6F0DF; --fond: #FFFEFB; --texte: #1B2421; --gris: #646C68;
  --ocre: #FFC018;
  --gazon: #8FDD69; --gazon-c: #DAF39B; --gazon-e: #22560F;
  --dur: #6CB0FF; --dur-c: #B3E3FF; --dur-e: #0F3F80;
  --terre: #FF9062; --terre-c: #FFD49F; --terre-e: #6E220A;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--vert); -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh; min-height: 100dvh; background: var(--vert); color: var(--texte);
  font: 500 17px/1.45 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.page { max-width: 460px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; }

/* États : chaque texte n'apparaît que dans son état */
:root:not(.etat-invitation) .si-invitation, :root:not(.etat-invalide) .si-invalide,
:root:not(.etat-accueil) .si-accueil { display: none !important; }

/* Haut vert foncé + halo + lignes de court */
.haut {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  padding: calc(env(safe-area-inset-top) + 56px) 28px 64px;
  background: radial-gradient(120% 70% at 50% 0%, #22605A 0%, var(--vert) 65%);
}
.court { position: absolute; inset: 0; width: 100%; height: 100%; color: #fff; opacity: .07; pointer-events: none; }
.icone {
  position: relative; display: block; margin: 0 auto 22px; border-radius: 22.5%;
  box-shadow: 0 14px 30px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.08);
  animation: rebond .9s cubic-bezier(.3,1.5,.5,1) both;
}
.surtitre {
  position: relative; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ocre); margin-bottom: 10px;
}
h1 {
  position: relative; font-family: "Inter Display", -apple-system, sans-serif; font-weight: 600;
  font-size: clamp(30px, 8.5vw, 38px); line-height: 1.1; letter-spacing: -.01em; text-wrap: balance;
  animation: monte .6s .15s ease-out both;
}
.intro {
  position: relative; margin: 14px auto 0; max-width: 330px; color: rgba(255,255,255,.78);
  text-wrap: pretty; animation: monte .6s .25s ease-out both;
}

/* Feuille blanche qui remonte sur le vert */
.feuille {
  flex: 1; background: var(--fond); border-radius: 28px 28px 0 0; margin-top: -28px; position: relative;
  padding: 28px 22px calc(env(safe-area-inset-bottom) + 28px);
  animation: monte .6s .3s ease-out both;
}
.bouton {
  display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 18px;
  background: var(--vert); color: #fff; text-decoration: none;
  font-family: "Inter Display", -apple-system, sans-serif; font-weight: 600; font-size: 18px;
  box-shadow: 0 8px 20px rgba(22,68,62,.25); transition: transform .12s ease;
}
.bouton:active { transform: scale(.97); }
.bouton:focus-visible { outline: 3px solid var(--ocre); outline-offset: 3px; }

.etapes { list-style: none; margin: 26px 4px 0; display: grid; gap: 14px; }
.etapes li { display: flex; align-items: center; gap: 14px; color: var(--gris); font-size: 16px; }
.etapes b { color: var(--texte); font-weight: 600; }
.pastille {
  flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  font-family: "Inter Display", -apple-system, sans-serif; font-weight: 600; font-size: 16px;
}
.gazon { background: linear-gradient(135deg, var(--gazon), var(--gazon-c)); color: var(--gazon-e); }
.dur   { background: linear-gradient(135deg, var(--dur), var(--dur-c)); color: var(--dur-e); }
.terre { background: linear-gradient(135deg, var(--terre), var(--terre-c)); color: var(--terre-e); }


.confiance {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 28px; color: var(--gris); font-size: 13px;
}
.confiance svg { width: 14px; height: 14px; color: var(--vert); }

@keyframes rebond { from { opacity: 0; transform: translateY(-26px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes monte { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 350px) { .haut { padding-left: 18px; padding-right: 18px; } .feuille { padding-left: 16px; padding-right: 16px; } }
