/* Pompomly — le mini-site. Mêmes couleurs que l'app (palette Pompon,
   app/lib/core/theme/app_palette.dart) et mêmes polices, servies par le site
   lui-même : aucune requête vers un service tiers. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/FrauncesSoft-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --cream: #fff8f0;
  --sand: #f6eadc;
  --ink: #2b2330;
  --ink-soft: #5f5258;
  --coral: #b23a27;
  --coral-pop: #ff7a6b;
  --lavender: #b9a7f2;
  --butter: #ffd978;
  --line: #e2d3c6;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #2a1f2d;
    --sand: #372a3b;
    --ink: #f6ece6;
    --ink-soft: #d3c3c9;
    --coral: #ff8a7a;
    --line: #4f4153;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--coral); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 24px/1 "Fraunces", Georgia, serif;
  color: var(--ink);
  text-decoration: none;
}
.lang a { font-weight: 600; text-decoration: none; }

/* Le pompon : trois cercles, la signature de la marque. */
.pompom { position: relative; display: inline-block; width: 34px; height: 24px; }
.pompom i { position: absolute; border-radius: 50%; }
.pompom i:nth-child(1) { width: 13px; height: 13px; left: 0; top: 9px; background: var(--lavender); }
.pompom i:nth-child(2) { width: 18px; height: 18px; left: 8px; top: 2px; background: var(--coral-pop); }
.pompom i:nth-child(3) { width: 13px; height: 13px; left: 21px; top: 10px; background: var(--butter); }

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(32px, 7vw, 48px); margin: 32px 0 16px; }
h2 { font-size: 24px; margin: 40px 0 8px; }
h3 { font-size: 19px; margin: 24px 0 4px; }

.lead { font-size: 20px; color: var(--ink-soft); max-width: 36em; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 40px 0; }
.card { background: var(--sand); border-radius: 24px; padding: 20px 22px; }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--ink-soft); }

/* Le bloc appli : l'icône du store, pour qu'on la reconnaisse sur le téléphone. */
.app {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--sand);
  border-radius: 28px;
  padding: 20px 24px;
  margin: 32px 0 0;
}
.app-icon { width: 96px; height: 96px; border-radius: 22px; flex: none; box-shadow: 0 2px 8px rgb(43 35 48 / 0.12); }
.app p { margin: 0; }
.app-name { font: 600 22px/1.2 "Fraunces", Georgia, serif; }
.app-tag { color: var(--ink-soft); }
.get { display: grid; gap: 16px; margin-top: 16px; }
.get-row { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.get-for {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft);
}
@media (min-width: 560px) {
  /* Bureau : titres alignés en colonne, actions en face. */
  .get { grid-template-columns: max-content 1fr; align-items: center; gap: 14px 20px; }
  .get-row { display: contents; }
  .get .badge, .get .web, .get .soon { justify-self: start; }
  /* Ligne plus haute que les autres : le titre reste face au bouton. */
  .get-for-top { align-self: start; line-height: 48px; }
}
@media (max-width: 480px) {
  .app { flex-direction: column; align-items: flex-start; }
  .app-icon { width: 72px; height: 72px; border-radius: 16px; }
}
/* Badges officiels : servis par le site, jamais retouchés, seulement redimensionnés. */
.badge { display: inline-block; line-height: 0; border-radius: 8px; }
.badge img { display: block; height: 56px; width: auto; }
.web {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  /* Encre fixe sur corail vif (6:1) : en sombre, --ink devient clair. */
  background: var(--coral-pop); color: #2b2330;
  font-weight: 600; text-decoration: none;
}
.web:hover { filter: brightness(1.05); }
.soon {
  display: inline-block;
  background: var(--butter);
  color: #2b2330;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  padding: 4px 14px;
}

/* L'extension sert la version ordinateur et demande son compte : elle vit
   sous le bouton web, en second, pas comme un produit à part. */
.get-web { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.get-note { font-size: 14px; color: var(--ink-soft); }
.get-ext { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 6px; }
.get-ext p { flex: 1 1 200px; font-size: 14px; color: var(--ink-soft); }
.get-ext .badge img { height: 40px; }

.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.2em; }
.legal .updated { color: var(--ink-soft); font-size: 15px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }

footer.site {
  margin: 64px 0 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
footer.site a { color: var(--ink-soft); }
