/* ==========================================================================
   Germina · page d'accueil
   ========================================================================== */

.home { background: var(--forest); }

/* ---------- Héros ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 64px);
  color: #fff;
  background: radial-gradient(70% 90% at 78% 30%, var(--halo) 0%, rgba(44,107,71,0) 70%), var(--forest);
}
.hero .logo img { width: 240px; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 56px;
}

.hero__title {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: .98;
  letter-spacing: -0.02em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }

.hero__lead { max-width: 30em; margin: 0 0 26px; font-size: 19px; line-height: 1.55; color: rgba(255,255,255,.8); }

/* ---------- Liste d'attente ---------- */
.signup__field {
  display: flex; gap: 8px;
  max-width: 470px;
  padding: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
}
.signup__field:focus-within { border-color: var(--lemon); }
.signup__field input {
  flex: 1; min-width: 0;
  padding: 0 16px;
  border: 0; outline: none; background: transparent;
  font: inherit; font-size: 16px; color: #fff;
}
.signup__field input::placeholder { color: rgba(255,255,255,.55); }
.signup__field button {
  padding: 13px 22px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--lemon); color: var(--forest);
  font: inherit; font-weight: 600; font-size: 15px; white-space: nowrap;
}
.signup__options { display: flex; flex-wrap: wrap; gap: 18px; margin: 14px 0 0; padding: 0; border: 0; font-size: 14px; color: rgba(255,255,255,.65); }
.signup__options label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.signup__options input { accent-color: var(--lemon); }
.signup__error { min-height: 1em; margin: 10px 0 0; font-size: 14px; color: var(--peach); }
.signup__done {
  display: none; align-items: center; gap: 14px;
  max-width: 470px; padding: 16px 20px;
  background: rgba(217,248,111,.12); border: 1px solid rgba(217,248,111,.5); border-radius: 18px;
}
.signup__done svg { flex: none; width: 28px; height: 28px; }
.signup__done b { display: block; }
.signup__done span { font-size: 14px; color: rgba(255,255,255,.75); }
.signup.is-sent .signup__field, .signup.is-sent .signup__options { display: none; }
.signup.is-sent .signup__done { display: flex; }

/* ---------- Badges officiels des stores ---------- */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; }
.store { display: inline-flex; height: 52px; overflow: hidden; }
.store img { width: auto; height: 52px; }
.store--google { overflow: visible; }
.store--google img { height: 68px; margin: -8px 0; }  /* le PNG de Google a une marge transparente en haut et en bas */

/* ---------- Scène : planches + téléphone ---------- */
.scene { position: relative; height: min(74vh, 680px); }

.plate {
  position: absolute; z-index: 1; margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper);
  border: 5px solid #fff;
  border-radius: 999px 999px 26px 26px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate--a { width: 40%; left: 6%; top: 10%; rotate: -5deg; }
.plate--b { width: 26%; left: 0; bottom: 6%; rotate: 4deg; z-index: 2; }
.plate--c { width: 24%; left: 33%; bottom: 0; rotate: -2deg; z-index: 2; }

.phone {
  position: absolute; z-index: 2; right: 4%; top: 50%;
  width: min(280px, 62%);
  aspect-ratio: 393 / 852;
  padding: 9px;
  background: linear-gradient(145deg, #2B3A33, #0C1712 40%, #1C2B24);
  border-radius: 58px;
  box-shadow: 0 0 0 1.5px #3E4C45, 0 50px 90px rgba(0,0,0,.45);
  translate: 0 -50%;
  rotate: 2.5deg;
}
.phone__screen { position: relative; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); border-radius: 49px; }
.phone__island { position: absolute; z-index: 5; top: 11px; left: 50%; width: 31%; height: 26px; background: #000; border-radius: 20px; translate: -50% 0; }
.phone__status {
  position: absolute; z-index: 4; inset: 0 0 auto 0; height: 48px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px 0 30px;
  font-size: 13px; font-weight: 600; color: #fff;
}
.phone__status svg { width: 58px; height: 12px; }

.app-head {
  padding: 58px 18px 26px;
  color: #fff;
  background: radial-gradient(120% 120% at 90% 0%, #3E8E55, rgba(62,142,85,0) 60%), var(--forest);
  border-radius: 0 0 26px 26px;
}
.app-head__hello { font-family: var(--serif); font-weight: 300; font-size: 30px; line-height: 1; }
.app-head__name { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.1; color: var(--lemon); }
.app-head__note { margin-top: 6px; font-size: 11px; opacity: .8; }

.app-stickers { position: relative; display: flex; gap: 10px; margin: -16px 14px 0; }
.app-sticker { flex: 1; padding: 8px 10px; border: 3px solid #fff; border-radius: 14px; box-shadow: 0 6px 14px rgba(0,0,0,.14); }
.app-sticker b { display: block; font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1; }
.app-sticker span { display: block; font-size: 9.5px; font-weight: 600; line-height: 1.2; }
.app-sticker--lemon { background: var(--lemon); color: var(--forest); rotate: -4deg; }
.app-sticker--peach { background: var(--peach); color: var(--peach-ink); rotate: 4deg; }

.app-body { padding: 16px 14px; }
.app-section { display: flex; justify-content: space-between; margin: 4px 0 8px; font-family: var(--title); font-size: 16px; }
.app-section b { font-weight: 400; color: var(--leaf); }
.app-card { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 8px 12px 8px 8px; background: #fff; border-radius: 14px; box-shadow: 0 1px 0 var(--line); }
.app-card img { flex: none; width: 40px; height: 40px; object-fit: cover; background: var(--paper); border-radius: 20px 20px 8px 8px; }
.app-card strong { display: block; font-family: var(--serif); font-size: 16px; font-weight: 600; line-height: 1.1; }
.app-card small { font-size: 10px; color: var(--muted); }

/* Pastilles flottantes */
.tag {
  position: absolute; z-index: 4;
  padding: 10px 14px;
  border: 3px solid #fff; border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  font-size: 13px; font-weight: 600; line-height: 1.25;
}
.tag b { display: block; font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1; }
.tag--seed { left: 30%; top: 4%; background: var(--lemon); color: var(--forest); rotate: -6deg; }
.tag--frost { right: 0; bottom: 14%; background: var(--peach); color: var(--peach-ink); rotate: 5deg; }
.tag--rain { left: 26%; bottom: -2%; display: flex; align-items: center; gap: 10px; background: #fff; color: var(--forest); font-weight: 500; rotate: -3deg; }
.tag--rain i { width: 10px; height: 10px; border-radius: 50%; background: #6FB0E8; box-shadow: 0 0 0 4px rgba(111,176,232,.25); }

.home .site-footer { border-top: 1px solid rgba(255,255,255,.1); }

/* ---------- Ouverture animée ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title .line > span { transform: translateY(105%); }
  .js .hero__lead, .js .signup, .js .stores { opacity: 0; transform: translateY(14px); }
  .js .plate { opacity: 0; translate: 0 40px; }
  .js .phone { opacity: 0; rotate: 9deg; translate: 0 -44%; }
  .js .tag { opacity: 0; scale: .6; }

  .is-ready .hero__title .line > span { transform: none; transition: transform 1s cubic-bezier(.2,.8,.2,1) calc(var(--i) * 110ms + 150ms); }
  .is-ready .hero__lead, .is-ready .signup, .is-ready .stores { opacity: 1; transform: none; transition: opacity .8s ease .7s, transform .8s ease .7s; }
  .is-ready .plate { opacity: 1; translate: 0 0; transition: opacity .9s ease, translate 1.1s cubic-bezier(.2,.8,.2,1); }
  .is-ready .plate--a { transition-delay: .35s; }
  .is-ready .plate--b { transition-delay: .55s; }
  .is-ready .plate--c { transition-delay: .7s; }
  .is-ready .phone { opacity: 1; rotate: 2.5deg; translate: 0 -50%; transition: opacity .9s ease .9s, rotate 1.2s cubic-bezier(.2,.8,.2,1) .9s, translate 1.2s cubic-bezier(.2,.8,.2,1) .9s; }
  .is-ready .tag { opacity: 1; scale: 1; transition: opacity .4s ease, scale .6s cubic-bezier(.2,1.5,.4,1); }
  .is-ready .tag--seed { transition-delay: 1.7s; }
  .is-ready .tag--frost { transition-delay: 1.9s; }
  .is-ready .tag--rain { transition-delay: 2.1s; }
}

/* ---------- Petits écrans ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .scene { height: 520px; }
  .plate--a { width: 46%; left: 0; }
  .plate--c { display: none; }
}
@media (max-width: 600px) {
  .hero .logo img { width: 190px; }
  .signup__field { flex-direction: column; border-radius: 22px; }
  .signup__field input { padding: 12px 14px; }
  .scene { height: 460px; }
  .phone { right: 4%; width: 230px; }
  .tag--seed, .tag--rain { display: none; }
  .tag--frost { right: -2%; bottom: 6%; }
  .tag b { font-size: 26px; }
}
