/* =========================================================
   landing.css — site public éditorial sombre/ivoire
   ========================================================= */

body.landing {
  background: var(--forest-950);
  color: #d6e2db;
  font-family: var(--font-sans);
}
body.landing h1, body.landing h2, body.landing h3 { color: inherit; }
.landing .container { width: min(var(--max), calc(100% - 64px)); }

/* --- Header capsule (dans le hero) --- */
.public-header {
  position: relative;
  z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  margin: 20px auto 0;
  width: min(var(--max), calc(100% - 64px));
  height: var(--header-h);
  padding: 0 12px 0 22px;
  background: var(--forest-900);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-landing);
}
.public-header .brand { color: #fff; }
.public-header .brand-mark { width: 42px; height: 42px; }
.public-brand-icon {
  width: 46px; height: 46px; flex: 0 0 46px;
  display: grid; place-items: center; border-radius: 14px;
}
.public-header .brand-tag { color: #8ea59a; }
.public-nav { display: flex; align-items: center; gap: 4px; }
.public-nav a {
  padding: 8px 14px; border-radius: var(--r-pill);
  color: #b7c8bf; font-size: .88rem; font-weight: 500; transition: color var(--t-fast), background var(--t-fast);
}
.public-nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.public-cta { display: flex; align-items: center; gap: 8px; }
.cta-short { display: none; }
.menu-toggle { display: none; }

/* --- Hero : grande surface ivoire arrondie --- */
.hero {
  margin: 16px auto 0;
  width: min(var(--max), calc(100% - 64px));
  background: var(--ivory);
  color: var(--ink);
  border-radius: var(--r-landing-lg);
  padding: 72px 0 0;
  overflow: hidden;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  grid-template-areas: "copy visual";
  align-items: center;
  gap: 40px;
  padding: 0 56px 72px;
}
.hero-copy { grid-area: copy; max-width: 620px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--emerald-100); color: var(--emerald-700);
  font-size: .76rem; font-weight: 600; letter-spacing: .04em;
}
.hero-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }
.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.04;
  color: var(--forest-950);
}
.hero .lead { max-width: 540px; margin-bottom: 28px; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta { margin-top: 22px; color: var(--muted); font-size: .84rem; display: flex; align-items: center; gap: 10px; }
.hero-meta::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--emerald-600); }

/* illustration */
.hero-visual {
  grid-area: visual;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-landing);
  overflow: hidden;
  background: linear-gradient(150deg, var(--emerald-050), var(--gold-100));
}
.hero-visual picture, .hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-chips {
  position: absolute; left: 18px; bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap;
}
.hero-chip {
  padding: 8px 12px; border-radius: var(--r-pill);
  background: rgba(255, 253, 248, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .6);
  font-size: .76rem; font-weight: 500; color: var(--ink); box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald-600); }

/* décor radial discret */
.hero::after {
  content: ""; position: absolute; top: -80px; right: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 165, 74, .14), transparent 65%);
  pointer-events: none;
}

/* --- Bande de confiance (sombre) --- */
.trust-band {
  margin: 16px auto 0;
  width: min(var(--max), calc(100% - 64px));
  background: var(--forest-900);
  border-radius: var(--r-landing);
  padding: 28px 32px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border: 1px solid rgba(255, 255, 255, .07);
}
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: #fff; letter-spacing: -.02em; line-height: 1.1; }
.trust-num em { font-style: normal; color: var(--gold-400); margin-left: 4px; font-size: 1rem; }
.trust-label { color: #97aaa1; font-size: .82rem; line-height: 1.4; }

/* --- Section sombre générique --- */
.section-dark {
  margin: 16px auto 0;
  width: min(var(--max), calc(100% - 64px));
  padding: 88px 56px;
  border-radius: var(--r-landing);
  background: var(--forest-950);
}
.section-dark h2 { color: #fff; font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 14px; }
.section-dark p { color: #a8b8b0; }

/* --- Fonctionnement : composition éditoriale 3 étapes --- */
.steps-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.steps-head p { color: #a8b8b0; max-width:440px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.step { padding: 32px 28px 0 0; border-right: 1px solid rgba(255, 255, 255, .08); }
.step:last-child { border-right: 0; padding-right: 0; }
.step:not(:first-child) { padding-left: 28px; }
.step-num { font-family: var(--font-display); font-size: .92rem; font-weight: 600; color: var(--emerald-300); letter-spacing: .04em; margin-bottom: 16px; }
.step h3 { color: #fff; font-size: 1.2rem; margin-bottom: 10px; }
.step p { color: #a8b8b0; font-size: .92rem; margin: 0; }
.step-icon { width: 28px; height: 28px; margin-bottom: 18px; color: var(--gold-400); }

/* --- Section aperçu dossier (carte foncée) --- */
.preview {
  margin: 16px auto 0;
  width: min(var(--max), calc(100% - 64px));
  border-radius: var(--r-landing);
  background: linear-gradient(150deg, var(--forest-900), var(--forest-800));
  padding: 64px 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  border: 1px solid rgba(255, 255, 255, .07);
  position: relative; overflow: hidden;
}
.preview::before { content: ""; position: absolute; top: -100px; right: -60px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(17, 132, 99, .25), transparent 65%); }
.preview-copy { position: relative; z-index: 1; }
.preview-copy h2 { color: #fff; font-size: clamp(1.8rem, 2.6vw, 2.4rem); margin-bottom: 16px; }
.preview-copy p { color: #b7c8bf; margin-bottom: 24px; }
.preview-eyebrow { color: var(--gold-400); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; display: block; }

/* carte aperçu */
.preview-card {
  position: relative; z-index: 1;
  background: var(--paper); border-radius: var(--r-citizen); padding: 26px;
  box-shadow: var(--shadow-window); border: 1px solid rgba(255, 255, 255, .08);
}
.preview-card .card-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); margin-bottom: 18px; }
.preview-card h3 { font-size: 1.1rem; color: var(--ink); }
.preview-card .meta { color: var(--muted); font-size: .8rem; margin-top: 3px; }
.preview-progress { display: grid; gap: 12px; margin-top: 6px; }
.progress-row { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--ink-soft); }
.progress-row .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: var(--white); flex-shrink: 0; }
.progress-row.done .dot { border-color: var(--emerald-600); background: var(--emerald-600); }
.progress-row.done { color: var(--muted); }
.progress-row.current .dot { border-color: var(--emerald-600); background: var(--emerald-600); box-shadow: 0 0 0 4px var(--emerald-100); }
.progress-row.current { color: var(--ink); font-weight: 600; }
.preview-gold-band {
  margin-top: 18px; padding: 12px 14px; border-radius: var(--r-xs);
  background: linear-gradient(135deg, var(--gold-100), #fbf3dd);
  border-left: 3px solid var(--gold-500);
  font-size: .82rem; color: var(--ink-soft);
}
.preview-gold-band strong { color: var(--forest-950); }

/* --- Section notifications (ivoire) --- */
.section-ivory {
  margin: 16px auto 0;
  width: min(var(--max), calc(100% - 64px));
  padding: 80px 56px;
  background: var(--ivory);
  border-radius: var(--r-landing);
  color: var(--ink);
}
.section-ivory h2 { color: var(--forest-950); }
.alert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 32px; }
.alert-copy p { color: var(--ink-soft); margin-bottom: 16px; }
.alert-legal { padding: 14px 16px; border-radius: var(--r-xs); background: var(--emerald-050); border-left: 3px solid var(--emerald-600); color: var(--ink-soft); font-size: .86rem; margin-top: 18px; }
.alert-visual {
  border-radius: var(--r-citizen); padding: 24px; background: var(--white);
  box-shadow: var(--shadow-md); border: 1px solid var(--line-soft);
}
.alert-visual .phone-mock { background: var(--forest-950); border-radius: 18px; padding: 18px; color: #fff; }
.alert-visual .phone-mock small { color: #8ea59a; font-size: .72rem; }
.alert-visual .phone-mock strong { display: block; font-size: .92rem; margin-top: 4px; }
.operators { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.operators img { height: 28px; width: auto; }
.operators span { color: var(--muted); font-size: .78rem; }

/* --- Section cas métier (asymétrique) --- */
.cases { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; margin-top: 36px; }
.security-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; }
.case-card {
  border-radius: var(--r-citizen); padding: 26px; background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08); min-width: 0;
}
.case-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: 10px; }
.case-card p { color: #a8b8b0; font-size: .9rem; margin: 0 0 14px; }
.case-action { color: var(--emerald-300); font-size: .82rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.case-card.gold { border-color: rgba(210, 165, 74, .25); background: rgba(210, 165, 74, .06); }
.case-card.gold .case-action { color: var(--gold-400); }

/* --- FAQ (ivoire) --- */
.faq { display: grid; gap: 10px; margin-top: 32px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-xs); background: var(--white); overflow: hidden; }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 20px; width: 100%; text-align: left; font-weight: 500; color: var(--ink); font-size: .95rem; }
.faq-q::after { content: "+"; font-size: 1.3rem; color: var(--emerald-600); transition: transform var(--t); }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--t); color: var(--ink-soft); font-size: .9rem; }
.faq-item.open .faq-a { max-height: 200px; }
.faq-a p { padding: 0 20px 18px; margin: 0; }

/* --- CTA final --- */
.cta-final {
  margin: 16px auto 0;
  width: min(var(--max), calc(100% - 64px));
  padding: 72px 56px;
  background: linear-gradient(150deg, var(--forest-900), var(--forest-950));
  border-radius: var(--r-landing);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .07);
}
.cta-final h2 { color: #fff; font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 14px; }
.cta-final p { color: #a8b8b0; margin-bottom: 28px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- Footer --- */
.public-footer {
  margin: 16px auto 28px;
  width: min(var(--max), calc(100% - 64px));
  background: var(--forest-900);
  border-radius: var(--r-landing) var(--r-landing) 0 0;
  padding: 56px 56px 40px;
  color: #b7c8bf;
  border: 1px solid rgba(255, 255, 255, .07);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-mark { color: var(--emerald-300); }
.footer-brand .brand-tag { color: #8ea59a; }
.footer-inst { margin-top: 18px; font-size: .8rem; line-height: 1.7; color: #8ea59a; }
.footer-col h4 { color: #fff; font-size: .82rem; font-weight: 600; margin-bottom: 12px; }
.footer-col a { display: block; padding: 4px 0; color: #b7c8bf; font-size: .86rem; transition: color var(--t-fast); }
.footer-col a:hover { color: #fff; }
.footer-col a.agent-link { color: #6f8579; font-size: .82rem; }
.footer-col a.agent-link:hover { color: var(--gold-400); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .78rem; color: #8ea59a; }

/* big radius override for landing surfaces */
.hero, .trust-band, .section-dark, .preview, .section-ivory, .cta-final, .public-footer { border-radius: var(--r-landing); }
