/* ================================================================
   INDEX.CSS — Accueil public Fais Ton Show
   Patch UX/UI uniquement : aucune logique Firebase modifiée.
   ================================================================ */

html, body { min-height: 100%; }

.index-page {
  background:
    radial-gradient(circle at top left, rgba(248,231,2,.18), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(248,231,2,.12), transparent 28rem),
    var(--black);
}

.wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
}

.index-shell {
  width: 100%;
  max-width: 1080px;
  min-height: calc(100vh - 2rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  grid-template-areas:
    "hero questionnaire"
    "quick questionnaire"
    "footer footer";
  gap: 1rem;
  align-content: center;
}

/* HERO */
.hero-card,
.questionnaire-zone,
.quick-card,
.page-footer {
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  box-shadow: 0 18px 54px rgba(0,0,0,.34);
  backdrop-filter: blur(14px);
}

.hero-card {
  grid-area: hero;
  border-radius: 24px;
  padding: clamp(1.2rem, 3vw, 2rem);
  overflow: hidden;
  position: relative;
  animation: fadeUp .55s ease both;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -5rem;
  top: -5rem;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  background: rgba(248,231,2,.18);
  filter: blur(1px);
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--gold);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.site-title {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 11vw, 7.2rem);
  letter-spacing: .035em;
  color: var(--white);
  line-height: .86;
  text-wrap: balance;
}

.site-title span { color: var(--red); }

.site-slogan {
  max-width: 34rem;
  font-size: clamp(.9rem, 2vw, 1rem);
  color: rgba(245,242,238,.78);
  margin-top: 1rem;
  line-height: 1.55;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.35rem;
}

.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: .45rem;
  padding: .72rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  font-size: .8rem;
  font-weight: 800;
  -webkit-tap-highlight-color: transparent;
}

.header-link:hover { transform: translateY(-1px); }

.header-link-gold {
  color: #15110a;
  background: var(--gold);
  border: 1px solid rgba(248,231,2,.72);
}

.header-link-muted {
  color: var(--white);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.11);
}

.header-link-muted:hover { background: rgba(255,255,255,.09); }

.hero-chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1.4rem;
}

.hero-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(245,242,238,.72);
  font-size: .72rem;
}

/* QUESTIONNAIRE */
.questionnaire-zone {
  grid-area: questionnaire;
  border-radius: 24px;
  padding: clamp(1rem, 2.5vw, 1.25rem);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeUp .55s .08s ease both;
}

.zone-kicker {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: .8rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(248,231,2,.13);
  color: #f8e702;
  border: 1px solid rgba(248,231,2,.26);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.questionnaire-card {
  width: 100%;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: clamp(1rem, 3vw, 1.45rem);
}

.loading-wrap { text-align: center; padding: 1.2rem 0; }
.loading-text { margin-top: .8rem; color: var(--muted); font-size: .82rem; }

/* Étapes */
.step-label {
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
  font-weight: 800;
}

.step-question {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.45rem);
  letter-spacing: .035em;
  margin-bottom: .35rem;
  line-height: .95;
}

.step-desc {
  font-size: .86rem;
  color: rgba(245,242,238,.68);
  margin-bottom: 1.15rem;
  line-height: 1.5;
}

/* Options de sélection */
.options { display: flex; flex-direction: column; gap: .65rem; }

.option {
  display: flex;
  align-items: center;
  gap: .9rem;
  min-height: 64px;
  padding: .9rem .95rem;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.option:hover {
  transform: translateY(-1px);
  background: rgba(248,231,2,.08);
  border-color: rgba(248,231,2,.34);
}

.option.selected {
  background: linear-gradient(135deg, rgba(248,231,2,.2), rgba(248,231,2,.08));
  border-color: rgba(248,231,2,.75);
}

.opt-icon  {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(0,0,0,.24);
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.opt-title { font-size: .92rem; font-weight: 800; }
.opt-desc  { font-size: .76rem; color: rgba(245,242,238,.62); margin-top: .18rem; line-height: 1.35; }

/* Boutons d'action */
.step-actions {
  display: flex;
  gap: .7rem;
  margin-top: 1.1rem;
}

.btn-step-back,
.btn-step-next,
.btn-ghost {
  min-height: 44px;
  border-radius: 999px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease;
}

.btn-step-back {
  padding: .72rem 1rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(245,242,238,.7);
  font-size: .78rem;
  font-weight: 700;
}

.btn-step-back:hover { border-color: rgba(255,255,255,.28); color: var(--white); }

.btn-step-next {
  flex: 1;
  padding: .72rem 1.15rem;
  background: var(--red);
  border: none;
  color: var(--brand-ink, #050505);
  font-size: .84rem;
  font-weight: 900;
}

.btn-step-next:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.btn-step-next:not(:disabled):hover,
.btn-helloasso:hover,
.btn-ghost:hover {
  transform: translateY(-1px);
}

/* Destination finale */
.destination { text-align: center; animation: fadeUp .4s ease both; }

.dest-badge {
  display: inline-flex;
  background: rgba(248,231,2,.12);
  border: 1px solid rgba(248,231,2,.32);
  color: var(--gold);
  font-size: .64rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .38rem .75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  font-weight: 900;
}

.dest-icon { font-size: 3rem; margin-bottom: .65rem; }

.dest-title {
  font-family: var(--font-display);
  font-size: 2.35rem;
  letter-spacing: .035em;
  margin-bottom: .4rem;
  line-height: .95;
}

.dest-desc {
  font-size: .86rem;
  color: rgba(245,242,238,.68);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.dest-details { display: flex; flex-direction: column; gap: .42rem; margin-bottom: 1.15rem; }

.dest-detail {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  font-size: .78rem;
  padding: .58rem .75rem;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
}

.dest-detail-key { color: rgba(245,242,238,.58); }
.dest-detail-val { color: var(--white); font-weight: 800; text-align: right; }

.btn-helloasso {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .9rem 1.25rem;
  background: var(--red);
  color: var(--brand-ink, #050505);
  text-decoration: none;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 900;
  letter-spacing: .02em;
  text-align: center;
  transition: transform .18s ease, background .18s ease;
  margin-bottom: .75rem;
}

.btn-ghost {
  width: 100%;
  padding: .78rem 1rem;
  background: rgba(255,255,255,.045);
  color: rgba(245,242,238,.76);
  border: 1px solid rgba(255,255,255,.1);
  font-size: .8rem;
  font-weight: 800;
}

/* Cartes rapides */
.quick-grid {
  grid-area: quick;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  animation: fadeUp .55s .14s ease both;
}

.quick-card {
  border-radius: 20px;
  padding: 1rem;
}

.quick-icon {
  display: inline-flex;
  margin-bottom: .6rem;
  font-size: 1.35rem;
}

.quick-card strong {
  display: block;
  font-size: .88rem;
  margin-bottom: .35rem;
}

.quick-card p {
  color: rgba(245,242,238,.62);
  font-size: .75rem;
  line-height: 1.45;
}

/* Footer */
.page-footer {
  grid-area: footer;
  min-height: 64px;
  border-radius: 20px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245,242,238,.78);
  font-size: .86rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: .02em;
}

/* Erreur */
.error-wrap { text-align: center; padding: 1.5rem 0; }
.error-icon { font-size: 2rem; margin-bottom: .6rem; }
.error-msg  { font-size: .82rem; color: #d58b8b; line-height: 1.5; }

/* PWA install bar : cohérence visuelle si fts-pwa.js l'affiche */
.install-bar {
  border-radius: 18px 18px 0 0;
  border-top: 1px solid rgba(255,255,255,.1);
  background: rgba(10,10,10,.96);
  backdrop-filter: blur(16px);
}

@media (max-width: 900px) {
  .index-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "questionnaire"
      "quick"
      "footer";
    align-content: start;
  }

  .quick-grid { grid-template-columns: 1fr; }

  .hero-card,
  .questionnaire-zone,
  .quick-card,
  .page-footer {
    border-radius: 22px;
  }
}

@media (max-width: 560px) {
  .wrapper { padding: .75rem .75rem 1rem; }
  .index-shell { gap: .75rem; }

  .hero-card { padding: 1.05rem; }
  .site-title { font-size: clamp(3.2rem, 18vw, 4.6rem); }
  .site-slogan { font-size: .86rem; }

  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .header-link { width: 100%; }

  .questionnaire-zone { padding: .8rem; }
  .questionnaire-card { padding: .95rem; border-radius: 18px; }

  .option { min-height: 60px; padding: .78rem; }
  .step-actions { flex-direction: column; }
  .btn-step-back, .btn-step-next { width: 100%; }

  .dest-detail { flex-direction: column; gap: .2rem; }
  .dest-detail-val { text-align: left; }

  .page-footer {
    min-height: 72px;
    padding: 1rem;
    font-size: .82rem;
  }
}

/* ── PATCH UX SIMPLIFICATION V3 ────────────────────────────────
   Objectif : moins de CTA visibles, lecture plus calme, séparateurs doux.
   Aucune logique JS/Firebase modifiée.
──────────────────────────────────────────────────────────────── */
.hero-secondary-links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin-top: .75rem;
  color: rgba(245,242,238,.45);
  font-size: .78rem;
}

.hero-secondary-links a {
  color: rgba(245,242,238,.78);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.hero-secondary-links a:hover {
  color: var(--gold);
  border-color: rgba(248,231,2,.45);
}

.index-shell > section:not(:first-child)::before,
.index-shell > footer::before {
  content: "";
  display: block;
  width: min(170px, 46%);
  height: 1px;
  margin: 0 auto 1rem;
  background: linear-gradient(90deg, transparent, rgba(248,231,2,.55), rgba(191,22,34,.45), transparent);
  box-shadow: 0 0 18px rgba(248,231,2,.18);
  opacity: .78;
}

.questionnaire-zone,
.quick-grid,
.page-footer {
  position: relative;
}

.quick-grid-lite {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-grid-lite .quick-card {
  min-height: 118px;
}

@media (min-width: 901px) {
  .questionnaire-zone::before {
    display: none;
  }
}

@media (max-width: 900px) {
  .quick-grid-lite { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero-secondary-links {
    justify-content: center;
    text-align: center;
    font-size: .76rem;
  }

  .index-shell > section:not(:first-child)::before,
  .index-shell > footer::before {
    margin-bottom: .75rem;
    width: min(145px, 54%);
  }
}

/* ── PATCH UX CLEAN V4 — Accueil ultra épuré ──────────────────── */
.index-shell {
  grid-template-areas:
    "hero questionnaire"
    "footer footer";
}

.index-shell > section:not(:first-child)::before {
  content: "";
  display: block;
  width: min(150px, 46%);
  height: 1px;
  margin: 0 auto .9rem;
  background: linear-gradient(90deg, transparent, rgba(248,231,2,.52), rgba(191,22,34,.38), transparent);
  box-shadow: 0 0 16px rgba(248,231,2,.14);
  opacity: .72;
}

.index-shell > footer::before { content: none !important; display: none !important; }

.page-footer {
  min-height: 58px;
  padding: .9rem 1rem;
  font-size: .82rem;
  opacity: .88;
}

@media (max-width: 900px) {
  .index-shell {
    grid-template-areas:
      "hero"
      "questionnaire"
      "footer";
  }
}

@media (max-width: 560px) {
  .page-footer {
    min-height: 54px;
    padding: .85rem;
  }
}

/* ── PATCH UX INDEX V23 — Accueil plus évident et plus engageant ──
   Objectif : CTA inscription prioritaire, questionnaire plus visible,
   lecture mobile plus rapide. Aucune logique Firebase modifiée.
──────────────────────────────────────────────────────────────── */
.hero-card {
  border-color: rgba(248,231,2,.16);
  background:
    linear-gradient(145deg, rgba(248,231,2,.095), rgba(255,255,255,.035) 44%, rgba(255,255,255,.022));
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.05), transparent 38%);
  opacity: .72;
}

.hero-actions { gap: .72rem; }

.header-link-primary {
  position: relative;
  min-height: 48px;
  padding-inline: 1.2rem;
  box-shadow: 0 12px 34px rgba(248,231,2,.16), 0 0 0 1px rgba(0,0,0,.18) inset;
}

.header-link-primary::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1px solid rgba(248,231,2,.22);
  opacity: .65;
  pointer-events: none;
}

.hero-guidance {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1rem;
}

.hero-guidance span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .38rem .65rem;
  border-radius: 999px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.075);
  color: rgba(245,242,238,.78);
  font-size: .72rem;
  font-weight: 800;
}

.questionnaire-zone {
  border-color: rgba(248,231,2,.15);
  background:
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(248,231,2,.045) 42%, rgba(255,255,255,.025));
}

.orientation-intro {
  display: grid;
  gap: .22rem;
  margin: -.15rem 0 .85rem;
  padding: .85rem .9rem;
  border-radius: 18px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.07);
}

.orientation-intro strong {
  color: var(--white);
  font-size: .95rem;
  line-height: 1.25;
}

.orientation-intro span {
  color: rgba(245,242,238,.66);
  font-size: .78rem;
  line-height: 1.42;
}

.questionnaire-card {
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
}

.option {
  position: relative;
  overflow: hidden;
}

.option::after {
  content: "→";
  margin-left: auto;
  color: rgba(248,231,2,.58);
  font-weight: 900;
  transform: translateX(2px);
  transition: transform .18s ease, opacity .18s ease;
  opacity: .72;
}

.option:hover::after,
.option.selected::after {
  transform: translateX(0);
  opacity: 1;
}

.step-question { text-wrap: balance; }
.step-desc { max-width: 31rem; }

.page-footer {
  border-color: rgba(248,231,2,.12);
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
  color: rgba(245,242,238,.84);
}

@media (max-width: 900px) {
  .hero-guidance { margin-top: .9rem; }
  .orientation-intro { margin-top: -.05rem; }
}

@media (max-width: 560px) {
  .header-link-primary {
    min-height: 52px;
    font-size: .86rem;
  }

  .hero-guidance {
    display: grid;
    grid-template-columns: 1fr;
    gap: .38rem;
  }

  .hero-guidance span {
    justify-content: center;
    min-height: 32px;
  }

  .orientation-intro {
    padding: .8rem;
    border-radius: 16px;
  }

  .option::after { display: none; }
}
