/* ==========================================================================
   Validèl — home.css
   Styles spécifiques à la page d'accueil (index.html) uniquement.
   Dépend de main.css pour les variables et composants partagés.
   ========================================================================== */

/* ── HÉROS ──────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 40px) var(--pad-x) 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(26, 107, 60, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(26, 107, 60, 0.2);
  border: 1px solid rgba(34, 168, 92, 0.35);
  border-radius: var(--r-pill);
  padding: 0.35rem 1rem;
  font-size: 0.8rem; font-weight: 600;
  color: var(--green-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-headline {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  text-align: center;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 750px;
  margin-bottom: 0.75rem;
}
.hero-headline .accent { color: var(--green-light); }

.hero-sub {
  font-size: 1rem; color: rgba(255, 255, 255, 0.55);
  text-align: center; max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ── SCÈNE NARRATIVE (avant / après) ────────────────────────────────────── */
.story-scene {
  display: grid; grid-template-columns: 1fr auto 1fr;
  width: 100%; max-width: 900px;
  margin-bottom: 2.5rem;
}

.scene-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
}
.scene-card.left { border-right: none; border-radius: 16px 0 0 16px; }
.scene-card.right { border-left: none; border-radius: 0 16px 16px 0; }

.scene-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.chat-bubble {
  display: inline-flex; align-items: flex-start; gap: 0.5rem;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 0.6rem 0.85rem;
  font-size: 0.82rem; color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.5rem;
  max-width: 100%;
  line-height: 1.4;
}
.chat-bubble.bad { background: var(--red-soft); border: 1px solid rgba(239, 68, 68, 0.25); }
.chat-bubble .emoji { font-size: 1rem; flex-shrink: 0; }

.scene-desc {
  font-size: 0.78rem; color: rgba(255, 255, 255, 0.45);
  margin-top: 0.5rem; line-height: 1.5;
}

.scene-divider {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0 1rem; gap: 0.5rem;
  position: relative;
}

.divider-line {
  width: 1px; flex: 1;
  background: linear-gradient(to bottom, transparent, rgba(249, 115, 22, 0.4), transparent);
}

.lock-icon {
  width: 52px; height: 52px;
  background: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 0 8px rgba(249, 115, 22, 0.12), 0 0 30px rgba(249, 115, 22, 0.3);
  flex-shrink: 0;
}

/* ── BANDEAU DE CHIFFRES ────────────────────────────────────────────────── */
.stat-strip {
  background: var(--navy-mid);
  padding: 2rem var(--pad-x);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.stat-strip-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; justify-content: space-around;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}

.stat-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0 1.5rem;
  flex: 1; min-width: 200px;
}
.stat-item:not(:last-child) { border-right: 1px solid rgba(255, 255, 255, 0.08); }

.stat-num {
  font-family: var(--font-title);
  font-size: 2rem; font-weight: 800;
  color: var(--orange); line-height: 1; white-space: nowrap;
}

.stat-desc { font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); line-height: 1.4; }
.stat-source { display: block; font-size: 0.62rem; color: rgba(255, 255, 255, 0.25); margin-top: 0.15rem; }

/* ── PROBLÈMES ──────────────────────────────────────────────────────────── */
.problems { background: var(--gray-100); }
.problems-inner { max-width: var(--wrap); margin: 0 auto; text-align: center; }
.problems-inner .section-sub { margin: 0 auto 0; }

.problem-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem; margin-top: 2.5rem;
}

.problem-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 1.75rem 1.5rem;
  text-align: left;
  border: 1px solid var(--gray-200);
  transition: transform 0.2s, box-shadow 0.2s;
}
.problem-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07); }

.problem-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  background: rgba(239, 68, 68, 0.1);
}

.problem-card h3 {
  font-family: var(--font-title);
  font-size: 1rem; font-weight: 700;
  color: var(--navy); margin-bottom: 0.4rem;
}
.problem-card p { font-size: 0.855rem; color: var(--gray-600); line-height: 1.6; }

/* ── PROCESSUS (résumé 4 étapes) ────────────────────────────────────────── */
.process { background: var(--navy); }
.process-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.process-inner .section-title { color: var(--white); }
.process-inner .section-sub { color: rgba(255, 255, 255, 0.55); margin: 0 auto 3rem; }

.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  position: relative; margin-top: 2rem;
}

.steps::before {
  content: '';
  position: absolute; top: 32px; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(to right, var(--green), var(--green-light));
  z-index: 0;
}

.step {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 1rem;
  position: relative; z-index: 1;
}

.step-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--navy-mid);
  border: 3px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title);
  font-size: 1.3rem; font-weight: 800;
  color: var(--green-light);
  margin-bottom: 1.25rem;
  box-shadow: 0 0 0 6px rgba(26, 107, 60, 0.12);
}
.step-num .step-emoji { font-size: 1.5rem; }

.step h3 {
  font-family: var(--font-title);
  font-size: 0.95rem; font-weight: 700;
  color: var(--white); margin-bottom: 0.4rem;
}
.step p { font-size: 0.82rem; color: rgba(255, 255, 255, 0.45); line-height: 1.55; }

.process-more { margin-top: 3rem; }

/* ── AVANTAGES ──────────────────────────────────────────────────────────── */
.advantages { background: var(--white); }
.advantages-inner { max-width: var(--wrap); margin: 0 auto; }

.advantage-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}

.advantage-item { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }

.adv-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  transition: background 0.2s;
}
.advantage-item:hover .adv-icon { background: rgba(26, 107, 60, 0.1); }

.advantage-item h3 {
  font-family: var(--font-title);
  font-size: 0.92rem; font-weight: 700;
  color: var(--navy);
}
.advantage-item p { font-size: 0.82rem; color: var(--gray-600); line-height: 1.55; }

/* ── POUR QUI ───────────────────────────────────────────────────────────── */
.for-who { background: var(--off-white); }
.for-who-inner { max-width: 1000px; margin: 0 auto; }

.for-who-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; margin-top: 2.5rem;
}

.who-card {
  border-radius: var(--r-lg);
  padding: 2.25rem 2rem;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.who-card.buyers { background: var(--navy); color: var(--white); }
.who-card.sellers { background: var(--green); color: var(--white); }

.who-tag {
  display: inline-block; align-self: flex-start;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-pill);
  margin-bottom: 1rem;
}
.who-card.buyers .who-tag { background: rgba(249, 115, 22, 0.2); color: var(--orange-light); }
.who-card.sellers .who-tag { background: rgba(255, 255, 255, 0.2); color: var(--white); }

.who-card h3 {
  font-family: var(--font-title);
  font-size: 1.5rem; font-weight: 800;
  margin-bottom: 1.25rem; line-height: 1.2;
}

.who-card ul { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1.75rem; }
.who-card ul li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.9rem; line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}
.who-card ul li::before {
  content: '✓';
  font-weight: 800; flex-shrink: 0; margin-top: 0.05rem;
  color: var(--green-light);
}
.who-card.sellers ul li::before { color: rgba(255, 255, 255, 0.7); }

.who-link {
  align-self: flex-start; margin-top: auto;
  font-size: 0.88rem; font-weight: 700;
  color: var(--white); text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
  position: relative; z-index: 1;
  transition: border-color 0.2s;
}
.who-link:hover { border-color: var(--white); }

.who-bg-emoji {
  position: absolute; right: 1.5rem; bottom: 1.5rem;
  font-size: 5rem; opacity: 0.07;
  -webkit-user-select: none; user-select: none; pointer-events: none;
}

/* ── DÉMO VIDÉO + MAQUETTE TÉLÉPHONE ────────────────────────────────────── */
.demo { background: var(--white); }
.demo-inner {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}

.demo-video {
  background: var(--navy);
  border-radius: 18px;
  aspect-ratio: 16 / 9;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.2s;
  position: relative; overflow: hidden;
}
.demo-video::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26, 107, 60, 0.15), rgba(249, 115, 22, 0.1));
}
.demo-video:hover { transform: scale(1.02); }
.demo-video span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); position: relative; z-index: 1; }

.play-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 0 0 10px rgba(249, 115, 22, 0.15);
  position: relative; z-index: 1;
}

.demo-side { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.demo-caption { font-size: 0.75rem; color: var(--gray-400); text-align: center; }

/* `min-height` et non `height` : les libellés passent sur deux lignes selon
   la police disponible. Avec une hauteur figée, le bouton sortait de la
   coque et retombait sur la légende. La coque suit désormais son contenu.
   La bordure épaisse joue le rôle de châssis, comme sur `.shot`. */
.phone-mockup {
  position: relative;
  background: var(--navy);
  border-radius: 30px;
  border: 6px solid #303a49;
  width: 176px; min-height: 280px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center; padding: 0.85rem 0.7rem 0.9rem;
  gap: 0.45rem;
  box-shadow: 0 22px 44px rgba(10, 22, 40, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Haut-parleur */
.phone-notch {
  width: 42px; height: 5px; flex: none;
  background: rgba(255, 255, 255, 0.22);
  border-radius: var(--r-pill);
  margin-bottom: 0.35rem;
}

.phone-screen-item {
  width: 100%; background: rgba(255, 255, 255, 0.06);
  border-radius: var(--r-sm); padding: 0.5rem 0.6rem;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.phone-screen-item .label {
  font-size: 0.5rem; color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.phone-screen-item .val { font-size: 0.75rem; font-weight: 700; color: var(--white); }
.phone-screen-item .val.green { color: var(--green-light); }
.phone-screen-item .val.orange { color: var(--orange-light); }

.phone-btn {
  width: 100%; background: var(--green);
  border-radius: var(--r-sm); padding: 0.5rem;
  text-align: center; font-size: 0.65rem; font-weight: 700;
  color: var(--white); margin-top: auto;
}

/* ── PLATEFORMES ────────────────────────────────────────────────────────── */
.platforms { background: var(--gray-100); }
.platforms-inner { max-width: 900px; margin: 0 auto; text-align: center; }

.platform-msg {
  margin-top: 1.75rem;
  font-size: 0.95rem; color: var(--gray-600);
  font-style: italic;
}
.platform-msg strong { color: var(--navy); }

/* ── APERÇU CONFORMITÉ ──────────────────────────────────────────────────── */
.infra { background: var(--white); }
.infra-inner { max-width: 1000px; margin: 0 auto; }

.infra-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem; margin-top: 2.5rem;
}

/* ── FAQ (aperçu accueil) ───────────────────────────────────────────────── */
.faq { background: var(--off-white); }
.faq-inner { max-width: 700px; margin: 0 auto; }
.faq-more { text-align: center; margin-top: 2rem; }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .story-scene { grid-template-columns: 1fr; }
  .scene-card.left {
    border-radius: 16px 16px 0 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
  }
  .scene-card.right {
    border-radius: 0 0 16px 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }
  .scene-divider { flex-direction: row; padding: 0.75rem 1rem; }
  .divider-line {
    height: 1px; width: auto; flex: 1;
    background: linear-gradient(to right, transparent, rgba(249, 115, 22, 0.4), transparent);
  }

  .steps { grid-template-columns: 1fr 1fr; gap: 2rem 0; }
  .steps::before { display: none; }

  .for-who-grid { grid-template-columns: 1fr; }
  .demo-inner { grid-template-columns: 1fr; }
  .phone-mockup { display: none; }

  .stat-item { border-right: none !important; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 1rem 0; }
  .stat-item:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero-btns .btn-primary,
  .hero-btns .btn-secondary { flex: 1 1 100%; justify-content: center; }
}
