/* ==========================================================================
   Validèl — pages.css
   Styles communs aux pages intérieures :
   comment-ca-marche · vendeurs · acheteurs · conformite · faq · rejoindre
   Dépend de main.css pour les variables et composants partagés.
   ========================================================================== */

/* ── EN-TÊTE DE PAGE ────────────────────────────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: calc(var(--nav-h) + 72px) var(--pad-x) 72px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(26, 107, 60, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero--sellers::before { background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(34, 168, 92, 0.22) 0%, transparent 70%); }
.page-hero--buyers::before { background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(249, 115, 22, 0.16) 0%, transparent 70%); }

.page-hero-inner { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; }

.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  font-size: 0.78rem; color: rgba(255, 255, 255, 0.35);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.55); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span[aria-hidden] { opacity: 0.4; }

.page-title {
  font-family: var(--font-title);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 800; color: var(--white);
  line-height: 1.15; letter-spacing: -0.02em;
  max-width: 780px; margin-bottom: 1rem;
}
.page-title .accent { color: var(--green-light); }
.page-title .accent-orange { color: var(--orange-light); }

.page-lead {
  font-size: 1.05rem; color: rgba(255, 255, 255, 0.6);
  max-width: 620px; line-height: 1.75; margin-bottom: 2rem;
}

.page-hero .btn-row { margin-top: 0.5rem; }

/* Repères chiffrés sous l'en-tête */
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 2.5rem;
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-fact strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1.6rem; font-weight: 800; color: var(--orange);
  line-height: 1.1;
}
.hero-fact span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); }

/* ── CONTENU RÉDACTIONNEL ───────────────────────────────────────────────── */
.prose { max-width: 720px; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 {
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 800;
  color: var(--navy); line-height: 1.25; letter-spacing: -0.01em;
  margin-top: 2.5rem;
}
.prose h3 {
  font-family: var(--font-title);
  font-size: 1.05rem; font-weight: 700; color: var(--navy);
  margin-top: 1.75rem;
}
.prose p { font-size: 0.95rem; color: var(--gray-600); line-height: 1.75; }
.prose strong { color: var(--navy); font-weight: 600; }
.prose a { color: var(--green); font-weight: 600; }
.prose ul { display: flex; flex-direction: column; gap: 0.6rem; }
.prose ul li {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: 0.93rem; color: var(--gray-600); line-height: 1.65;
}
.prose ul li::before { content: '—'; color: var(--gray-400); flex-shrink: 0; }

/* ── SECTION EN DEUX COLONNES ───────────────────────────────────────────── */
/* `minmax(0, …)` : sans cela, `min-width: auto` empêche les colonnes de
   descendre sous la largeur intrinsèque des captures qu'elles contiennent. */
.split {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.5rem; align-items: center;
}
.split > * { min-width: 0; }
.split--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.split--reverse .split-visual { order: -1; }

.split-visual { display: flex; justify-content: center; }
/* La légende se cale sur la largeur du cadre, pas sur celle de la colonne. */
.split-visual figure { max-width: 280px; }

/* ── CAPTURE D'ÉCRAN DANS UN CADRE ──────────────────────────────────────── */
/* Coque de téléphone. Corps graphite et non blanc : les captures sont
   majoritairement claires, un cadre blanc se confondrait avec l'écran. */
.shot {
  position: relative;
  background: linear-gradient(155deg, #3d4653 0%, #1f2836 45%, #0e1622 100%);
  border-radius: 32px;
  padding: 22px 10px 14px;
  max-width: 280px; width: 100%;
  box-shadow:
    0 26px 55px rgba(10, 22, 40, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
/* Haut-parleur */
.shot::before {
  content: '';
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 5px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.20);
}
.shot img {
  width: 100%; height: auto; display: block;
  border-radius: 22px;
  /* Filet clair à la jonction écran / coque. */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.shot-caption {
  margin-top: 0.9rem; text-align: center;
  font-size: 0.75rem; color: var(--gray-400);
}
.bg-navy .shot-caption { color: rgba(255, 255, 255, 0.4); }

/* ── DÉROULÉ DÉTAILLÉ (chronologie verticale) ───────────────────────────── */
.timeline {
  max-width: 760px; margin: 3rem auto 0;
  display: flex; flex-direction: column; gap: 0;
}

.tl-item {
  display: grid; grid-template-columns: 64px 1fr;
  gap: 1.5rem; position: relative;
  padding-bottom: 2.5rem;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: '';
  position: absolute; left: 31px; top: 64px; bottom: 0;
  width: 2px; background: var(--gray-200);
}
.tl-item:last-child::before { display: none; }

.tl-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 0 0 6px rgba(26, 107, 60, 0.1);
  position: relative; z-index: 1;
}

.tl-step {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 0.35rem;
}
.tl-body h3 {
  font-family: var(--font-title);
  font-size: 1.15rem; font-weight: 800; color: var(--navy);
  margin-bottom: 0.5rem;
}
.tl-body p { font-size: 0.92rem; color: var(--gray-600); line-height: 1.7; }
.tl-detail {
  margin-top: 0.9rem;
  background: var(--off-white);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 0.85rem 1rem;
  font-size: 0.84rem; color: var(--gray-600); line-height: 1.6;
}
.tl-detail strong { color: var(--navy); }

/* Variante sur fond sombre */
.bg-navy .tl-item::before { background: rgba(255, 255, 255, 0.12); }
.bg-navy .tl-num { background: var(--navy-mid); }
.bg-navy .tl-body h3 { color: var(--white); }
.bg-navy .tl-body p { color: rgba(255, 255, 255, 0.55); }
.bg-navy .tl-detail { background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.6); }
.bg-navy .tl-detail strong { color: var(--white); }

/* ── LISTE À COCHES ─────────────────────────────────────────────────────── */
.checklist { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 1.5rem; }
.checklist li {
  display: flex; align-items: flex-start; gap: 0.7rem;
  font-size: 0.93rem; line-height: 1.6; color: var(--gray-600);
}
.checklist li::before {
  content: '✓';
  flex-shrink: 0; margin-top: 0.05rem;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(26, 107, 60, 0.12); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800;
}
.checklist li strong { color: var(--navy); font-weight: 600; }

.checklist--cross li::before { content: '✕'; background: rgba(239, 68, 68, 0.1); color: #DC2626; }
.checklist--light li { color: rgba(255, 255, 255, 0.7); }
.checklist--light li strong { color: var(--white); }
.checklist--light li::before { background: rgba(34, 168, 92, 0.22); color: var(--green-light); }

/* ── CARTES GÉNÉRIQUES ──────────────────────────────────────────────────── */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem; margin-top: 2.5rem;
}

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

.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1rem;
}
.card-icon--green { background: rgba(26, 107, 60, 0.1); }
.card-icon--orange { background: rgba(249, 115, 22, 0.1); }
.card-icon--red { background: rgba(239, 68, 68, 0.1); }

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

/* ── COMPARATIF AVANT / AVEC ────────────────────────────────────────────── */
.compare {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; margin-top: 2.5rem;
  max-width: 900px; margin-left: auto; margin-right: auto;
}
.compare-col {
  border-radius: var(--r-lg);
  padding: 1.9rem 1.75rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
}
.compare-col.before { background: var(--gray-100); }
.compare-col.after { background: var(--navy); border-color: transparent; }

.compare-tag {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.25rem 0.7rem; border-radius: var(--r-pill);
  margin-bottom: 1rem;
}
.compare-col.before .compare-tag { background: rgba(239, 68, 68, 0.12); color: #DC2626; }
.compare-col.after .compare-tag { background: rgba(34, 168, 92, 0.2); color: var(--green-light); }

.compare-col h3 {
  font-family: var(--font-title);
  font-size: 1.2rem; font-weight: 800; margin-bottom: 1.1rem;
  color: var(--navy);
}
.compare-col.after h3 { color: var(--white); }
.compare-col.after .checklist li { color: rgba(255, 255, 255, 0.7); }
.compare-col.after .checklist li strong { color: var(--white); }
.compare-col.after .checklist li::before { background: rgba(34, 168, 92, 0.22); color: var(--green-light); }

/* ── TABLEAU (frais, engagements) ───────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin-top: 2rem; }
.data-table {
  width: 100%; min-width: 520px;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  overflow: hidden;
}
.data-table th, .data-table td {
  padding: 0.85rem 1rem; text-align: left;
  border-bottom: 1px solid var(--gray-200);
}
.data-table th {
  background: var(--off-white);
  font-family: var(--font-title); font-weight: 700;
  color: var(--navy); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.data-table td { color: var(--gray-600); line-height: 1.6; }
.data-table td strong { color: var(--navy); }
.data-table tr:last-child td { border-bottom: none; }

/* ── FAQ : sommaire par catégories ──────────────────────────────────────── */
.faq-nav {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  justify-content: center; margin-bottom: 3rem;
}
.faq-nav a {
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--gray-200);
  font-size: 0.82rem; font-weight: 600;
  color: var(--navy); text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.faq-nav a:hover { border-color: var(--green); color: var(--green); }

.faq-group { max-width: 760px; margin: 0 auto 3rem; }
.faq-group:last-of-type { margin-bottom: 0; }
.faq-group-title {
  font-family: var(--font-title);
  font-size: 1.15rem; font-weight: 800; color: var(--navy);
  padding-bottom: 0.6rem; margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-200);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

/* ── CONTACT / REJOINDRE ────────────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem; margin-top: 2.5rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: 1.6rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.contact-card .c-icon { font-size: 1.5rem; }
.contact-card h3 {
  font-family: var(--font-title);
  font-size: 0.95rem; font-weight: 700; color: var(--navy);
}
.contact-card p { font-size: 0.84rem; color: var(--gray-600); line-height: 1.6; }
.contact-card a {
  font-size: 0.88rem; font-weight: 600; color: var(--green);
  text-decoration: none; margin-top: auto; padding-top: 0.5rem;
}
.contact-card a:hover { text-decoration: underline; }

/* Étapes d'inscription */
.enroll {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.enroll-step { text-align: center; }
.enroll-num {
  width: 44px; height: 44px; margin: 0 auto 0.9rem;
  border-radius: 50%; background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-weight: 800; font-size: 1.05rem;
}
.enroll-step h3 {
  font-family: var(--font-title);
  font-size: 0.95rem; font-weight: 700; color: var(--navy);
  margin-bottom: 0.35rem;
}
.enroll-step p { font-size: 0.84rem; color: var(--gray-600); line-height: 1.6; }

/* Bloc message WhatsApp pré-rempli */
.wa-box {
  max-width: 560px; margin: 2.5rem auto 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  text-align: center;
}
.wa-preview {
  background: var(--gray-100);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  font-family: monospace; font-size: 0.85rem;
  color: var(--navy);
  margin: 1rem 0 1.5rem;
  text-align: left;
  word-break: break-word;
}
.wa-box small { display: block; margin-top: 1rem; font-size: 0.75rem; color: var(--gray-400); }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .page-hero { padding: calc(var(--nav-h) + 48px) var(--pad-x) 56px; }

  .split, .split--wide-left { grid-template-columns: 1fr; gap: 2.5rem; }
  .split--reverse .split-visual { order: 0; }

  .compare { grid-template-columns: 1fr; }
  .hero-facts { gap: 1.5rem 2rem; }
}

@media (max-width: 480px) {
  .tl-item { grid-template-columns: 48px 1fr; gap: 1rem; }
  .tl-num { width: 48px; height: 48px; font-size: 1.25rem; }
  .tl-item::before { left: 23px; top: 48px; }
  .btn-row .btn-primary,
  .btn-row .btn-secondary,
  .btn-row .btn-ghost { flex: 1 1 100%; justify-content: center; }
}
