/* Site public de Mboka Connect : landing page et pages de retour vers l'app. */
:root {
  --green: #087A48;
  --green-dark: #064E3B;
  --green-deep: #04382A;
  --gold: #F2C94C;
  --text: #17201B;
  --muted: #34403A;
  --bg: #F7F5EF;
  --card: #FFFFFF;
  --line: #E4E0D4;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--green); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* En-tête */
.top {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-bottom: 4px solid var(--gold);
  color: #fff;
}
.top .bar { display: flex; align-items: center; gap: 10px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand span { color: var(--gold); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 190px; min-height: 56px; padding: 8px 18px;
  border-radius: 12px; background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgba(255,255,255,.35); line-height: 1.2;
}
.store small { font-size: 12px; opacity: .85; }
.store strong { font-size: 18px; }
.store[aria-disabled="true"] { opacity: .6; cursor: default; }
.store:focus-visible, .button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Pages de retour vers l'app */
.panel {
  max-width: 560px; margin: 32px auto; background: var(--card);
  border-radius: var(--radius); padding: 28px 22px; text-align: center;
  box-shadow: 0 1px 3px rgba(4,47,30,.08);
}
.panel h1 { font-size: 24px; margin: 0 0 12px; color: var(--green-dark); }
.panel p { color: var(--muted); margin: 0 0 16px; }
.panel .stores { justify-content: center; margin-top: 8px; }
.panel .store { background: var(--green-dark); }
.button {
  display: inline-block; background: var(--green); color: #fff; text-decoration: none;
  font-weight: 700; padding: 14px 24px; border-radius: 12px; min-height: 48px; margin: 4px 0 16px;
}
.code { font-size: 26px; font-weight: 700; letter-spacing: 3px; color: var(--green-dark);
  background: #FFF6D6; border: 2px dashed var(--gold); border-radius: 12px; padding: 8px 16px; display: inline-block; }
.hint { font-size: 14px; }
[hidden] { display: none !important; }

footer { padding: 28px 0 40px; color: var(--muted); font-size: 14px; text-align: center; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 8px; }

@media (max-width: 480px) {
  .store { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }


/* ---------- Polices (auto-hébergées, licence SIL OFL : voir fonts/) ---------- */
@font-face {
  font-family: "Space Grotesk"; src: url("/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4"; src: url("/fonts/source-serif-4.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
body { font-family: "Space Grotesk", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }

/* ---------- Page d'accueil ---------- */
.home { background: var(--bg); color: var(--text); }
.home .wrap { max-width: 1120px; padding-left: 20px; padding-right: 20px; }
.serif { font-family: "Source Serif 4", Georgia, "Times New Roman", serif; font-weight: 400; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 18px;
}
.eyebrow.dark { color: var(--green); }

/* En-tête */
.site-head { background: var(--green-dark); color: #fff; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.site-head .brand { font-size: 19px; letter-spacing: -.01em; }
.site-head .brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: none; gap: 28px; align-items: center; font-size: 15px; }
.site-nav a { color: #DCEBE3; text-decoration: none; }
.site-nav a:hover { color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: 8px;
  font: 600 16px/1.25 "Space Grotesk", sans-serif; letter-spacing: .01em; text-decoration: none;
  transition: background-color .15s ease;
}
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-gold { background: var(--gold); color: var(--green-dark); }
.btn-gold:hover { background: #F6D873; }
.btn-ghost { color: var(--green-dark); border: 1.5px solid var(--green-dark); }
.btn-ghost:hover { background: rgba(6,78,59,.06); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Ouverture */
.intro { background: var(--green-dark); color: #fff; }
.intro-grid { display: grid; gap: 36px; padding-top: 40px; padding-bottom: 48px; }
.intro h1 {
  font-size: clamp(38px, 8.4vw, 72px); line-height: 1.02; letter-spacing: -.035em;
  font-weight: 600; margin: 0 0 24px;
}
.intro h1 em { font-style: normal; color: var(--gold); }
.intro .lead { font-size: 18px; line-height: 1.65; color: #DCEBE3; margin: 0 0 14px; max-width: 34em; }
.intro .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 30px; }
.intro .soon { font-size: 14px; color: #A9C8B8; margin: 0; }
.intro .soon a { color: #fff; }
.intro figure { margin: 0; }
.intro-photo {
  aspect-ratio: 4 / 3; border-radius: 6px; background: var(--green-deep) url("/hero.jpg") center 42% / cover no-repeat;
}
.intro figcaption { font-size: 13px; color: #A9C8B8; margin-top: 10px; }
.no-photo .intro figure { display: none; }

.service-strip { border-top: 1px solid rgba(255,255,255,.14); }
.service-strip ul {
  list-style: none; margin: 0 auto; padding-top: 18px; padding-bottom: 22px; display: flex; flex-wrap: wrap; gap: 10px 26px;
  font-size: 14px; color: #CFE3D8;
}
.service-strip a { color: inherit; text-decoration: none; }
.service-strip a:hover { color: #fff; }
.service-strip li::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--gold); margin-right: 10px; vertical-align: middle; }

/* Compagnon de voyage */
.feature { padding-top: 64px; padding-bottom: 64px; }
.feature-grid { display: grid; gap: 28px; }
.feature h2, .services-head h2, .confidence h2, .hosts h2 {
  font-size: clamp(30px, 5.6vw, 46px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600;
  color: var(--green-dark); margin: 0;
}
.feature .body p { font-size: 18px; line-height: 1.7; color: var(--muted); margin: 0 0 16px; max-width: 36em; }
.feature .quote { font-size: clamp(24px, 4.2vw, 32px); line-height: 1.3; color: var(--green-dark); margin: 40px 0 0; padding-left: 20px; border-left: 3px solid var(--gold); }
.moments { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.moments li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 500; color: var(--green-dark); }
.moments li span { color: var(--muted); font-weight: 400; font-size: 15px; }

/* Autres services */
.services-wrap { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services-wrap .wrap { padding-top: 64px; padding-bottom: 40px; }
.services-head { margin-bottom: 28px; }
.svc-list { list-style: none; margin: 0; padding: 0; counter-reset: svc 1; }
.svc { display: grid; gap: 8px; padding: 26px 0; border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc .num { font-size: 14px; font-weight: 600; color: var(--green); letter-spacing: .06em; }
.svc h3 { font-size: 23px; letter-spacing: -.02em; font-weight: 600; margin: 0; color: var(--green-dark); }
.svc p { font-size: 17px; line-height: 1.7; color: var(--muted); margin: 0; max-width: 40em; }

/* Confiance */
.confidence { padding-top: 64px; padding-bottom: 64px; }
.confidence-grid { display: grid; gap: 24px; }
.confidence p { font-size: 17px; line-height: 1.7; color: var(--muted); margin: 0 0 14px; }
.confidence p strong { color: var(--text); font-weight: 600; }
.confidence a { color: var(--green); font-weight: 600; }

/* Hôtes */
.hosts { background: var(--green-dark); color: #DCEBE3; }
.hosts .wrap { padding-top: 64px; padding-bottom: 64px; display: grid; gap: 24px; }
.hosts h2 { color: #fff; }
.hosts p { font-size: 17px; line-height: 1.7; margin: 0 0 14px; max-width: 38em; }

/* Conclusion */
.closing { padding-top: 80px; padding-bottom: 80px; text-align: center; }
.closing .statement { font-size: clamp(32px, 6.4vw, 56px); line-height: 1.12; color: var(--green-dark); margin: 0 auto 18px; max-width: 16em; }
.closing p { font-size: 18px; color: var(--muted); margin: 0 auto 30px; max-width: 30em; }

/* Pied de page */
.site-foot { background: var(--green-deep); color: #A9C8B8; font-size: 14px; text-align: left; }
.site-foot .wrap { padding-top: 36px; padding-bottom: 40px; display: grid; gap: 20px; }
.site-foot .brand { color: #fff; font-size: 17px; }
.site-foot .brand img { width: 28px; height: 28px; border-radius: 7px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: flex-start; }
.site-foot nav a { color: #DCEBE3; text-decoration: none; }
.site-foot nav a:hover { color: #fff; text-decoration: underline; }
.site-foot p { margin: 0; }

@media (max-width: 520px) {
  .intro .actions .btn { width: 100%; }
}
@media (min-width: 860px) {
  .site-nav { display: flex; }
  .intro-grid { grid-template-columns: 7fr 5fr; align-items: end; gap: 56px; padding-top: 72px; padding-bottom: 64px; }
  .no-photo .intro-grid { grid-template-columns: 1fr; }
  .intro-photo { aspect-ratio: 4 / 5; }
  .feature-grid { grid-template-columns: 5fr 7fr; gap: 64px; }
  .feature, .confidence { padding-top: 96px; padding-bottom: 96px; }
  .services-wrap .wrap { padding-top: 96px; padding-bottom: 72px; }
  .svc { grid-template-columns: 80px 300px 1fr; gap: 24px; align-items: baseline; padding: 30px 0; }
  .confidence-grid { grid-template-columns: 5fr 7fr; gap: 64px; }
  .hosts .wrap { grid-template-columns: 5fr 7fr; gap: 64px; padding-top: 96px; padding-bottom: 96px; }
  .closing { padding-top: 120px; padding-bottom: 120px; }
  .site-foot .wrap { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
  .site-foot nav { justify-content: center; }
}
.hosts .cta { margin-top: 28px; }
.hosts .soon { font-size: 14px; color: #A9C8B8; margin-top: 12px; }

/* ---------- Pages de texte (légal, support) ---------- */
.doc-page { background: var(--bg); color: var(--text); }
.doc-page .wrap, .panel-page .wrap { max-width: 1120px; padding-left: 20px; padding-right: 20px; }
.lang-nav { display: flex; }
.doc { padding-top: 40px; padding-bottom: 64px; }
.doc-head { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 32px; }
.doc-head h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; color: var(--green-dark); margin: 0 0 12px; }
.doc-date { color: var(--muted); font-size: 15px; margin: 0; }
.doc-grid { display: grid; gap: 32px; }
.doc-toc ul { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 1.5; }
.doc-toc li { margin-bottom: 6px; color: var(--muted); }
.doc-toc a { color: var(--green-dark); text-decoration: none; }
.doc-toc a:hover { text-decoration: underline; }
.doc-body { max-width: 44em; }
.doc-body section { scroll-margin-top: 24px; padding-bottom: 8px; }
.doc-body h2 { font-size: 22px; letter-spacing: -.015em; font-weight: 600; color: var(--green-dark); margin: 32px 0 12px; }
.doc-body section:first-child h2 { margin-top: 0; }
.doc-body p, .doc-body li { font-size: 17px; line-height: 1.7; color: var(--muted); }
.doc-body p { margin: 0 0 14px; }
.doc-body ul { margin: 0 0 16px; padding-left: 22px; }
.doc-body li { margin-bottom: 6px; }
.doc-body strong { color: var(--text); font-weight: 600; }
.doc-body a { color: var(--green); font-weight: 500; word-break: break-word; }
@media (min-width: 900px) {
  .doc { padding-top: 64px; padding-bottom: 96px; }
  .doc-grid { grid-template-columns: 260px 1fr; gap: 64px; align-items: start; }
  .doc-toc { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; }
}

/* ---------- Pages de retour vers l'app ---------- */
.panel-page { background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; }
.panel-page main { flex: 1; }
.panel-page .panel {
  max-width: 560px; margin: 48px auto; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: none; padding: 32px 24px; text-align: left;
}
.panel-page .panel h1 { font-size: clamp(26px, 5vw, 32px); line-height: 1.15; letter-spacing: -.02em; font-weight: 600; color: var(--green-dark); margin: 0 0 12px; }
.panel-page .panel p { font-size: 17px; line-height: 1.65; color: var(--muted); }
.panel-page .panel .btn { margin: 8px 0 20px; }
.panel-page .stores { justify-content: flex-start; }
.panel-page .store { background: var(--green-dark); border-radius: 8px; border: 0; }
.panel-page .code { font-family: "Space Grotesk", monospace; }
