/* Vitrine Jamana — CSS vanilla, servi tel quel (pas de build Vite en prod :
   le serveur n'a pas Node). Palette reprise de l'application mobile
   (lib/core/theme/brand.dart) : crème, terre cuite, olive, plus le vert et le
   rouge du drapeau en accents. */

:root {
  --bg: #f5ead8;
  --surface: #fffdf9;
  --ink: #201e1d;
  --muted: #645c50;
  --border: #e4d8c2;

  --terre: #c67139;
  --terre-fonce: #8c491a;
  --olive: #7a8a5e;
  --vert: #14a45d;
  --rouge: #d7263d;
  --or: #f2c230;

  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

a { color: var(--terre-fonce); }

img { max-width: 100%; height: auto; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 16px; }
.nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav .brand img { height: 44px; width: auto; }
.nav .links a { margin-left: 22px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; }
@media (max-width: 700px) { .nav .links { display: none; } }

/* Bandeau tricolore : le liseré du drapeau, comme sur le logo. */
.drapeau { height: 4px; display: flex; }
.drapeau span { flex: 1; }
.drapeau span:nth-child(1) { background: var(--vert); }
.drapeau span:nth-child(2) { background: var(--or); }
.drapeau span:nth-child(3) { background: var(--rouge); }

/* Hero */
.hero { padding: 40px 0 24px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .visuel { order: -1; }
}
.hero h1 { font-size: 38px; line-height: 1.15; margin: 0 0 16px; }
.hero p.lead { font-size: 18px; color: var(--muted); margin: 0 0 26px; }
.hero .cta { display: inline-flex; gap: 12px; flex-wrap: wrap; }
.hero .visuel img { border-radius: 22px; box-shadow: 0 18px 40px rgba(32, 30, 29, 0.18); }
.hero .apk-note { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 15px;
}
.btn-primary { background: var(--terre); color: #fff; }
.btn-primary:hover { background: var(--terre-fonce); }
.btn-outline { border-color: var(--terre); color: var(--terre-fonce); }

/* Chiffres */
.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 0; padding: 0; list-style: none; }
.chiffres li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; }
.chiffres .valeur { font-size: 26px; font-weight: 700; color: var(--terre-fonce); }
.chiffres .quoi { font-size: 13px; color: var(--muted); }

/* Sections */
section { padding: 44px 0; }
section h2 { font-size: 27px; text-align: center; margin: 0 0 8px; }
section p.section-lead { text-align: center; color: var(--muted); max-width: 580px; margin: 0 auto 32px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature-card .icon { font-size: 26px; margin-bottom: 10px; }
.feature-card h3 { margin: 0 0 8px; font-size: 17px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* Étapes d'installation */
.etapes { counter-reset: etape; list-style: none; padding: 0; margin: 0; max-width: 620px; }
.etapes li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.etapes li::before {
  counter-increment: etape;
  content: counter(etape);
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--terre); color: #fff;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; }
summary { font-weight: 600; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Bande d'appel final */
.appel { background: var(--terre); color: #fff; border-radius: var(--radius); padding: 36px; text-align: center; }
.appel h2 { color: #fff; margin-bottom: 10px; }
.appel p { color: #fdeee2; max-width: 520px; margin: 0 auto 22px; }
.appel .btn-primary { background: #fff; color: var(--terre-fonce); }

footer { padding: 32px 0 48px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* --- Partage -------------------------------------------------------------- */
/* Posé sur la bande terre cuite de l'appel final : c'est le moment où l'on a
   envie de faire connaître l'application, pas en haut de page. */
.partage { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.28); }
.partage-titre { display: block; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #fdeee2; margin-bottom: 12px; }
.partage-boutons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.partage-bouton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.partage-bouton:hover { background: rgba(255, 255, 255, 0.2); }
.partage-bouton svg { flex: none; }
/* Confirmation de la copie : le vert du drapeau, franc, pour qu'un clic réussi
   ne se confonde pas avec un clic dans le vide. */
.partage-bouton.copie { background: var(--vert); border-color: var(--vert); }
