/* Peytuapp — le site de la société. Identité propre depuis le 18/11/2026,
   distincte de pompomly.com : bandeau vert qui finit en crête de montagnes
   (le logo), titres en Barlow Semi Condensed, corps en polices du système,
   cartes à bordure fine en catalogue.
   Police servie par le site lui-même : aucune requête vers un service tiers,
   et la politique de contenu de Caddy (default-src 'self') bloquerait le reste.
   Pas d'attribut style="" dans les pages : la même politique le refuse. */

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/fonts/BarlowSemiCondensed-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  /* Clair « calcaire » : gris-vert froid, plus de crème. */
  --paper: #f3f5f2;
  --surface: #ffffff;
  --ink: #14231a;
  --ink-soft: #4a5a50;
  --accent: #256b29;
  --line: #d5ddd6;
  --band: #1f4d24;
  --band-ink: #ffffff;
  --band-soft: #d6e8d7;
  --ridge-far: #2f6a35;
  /* Couleur de chaque app : filet décoratif des cartes et des pages d'app. */
  --c-pompomly: #ff7a6b;
  --c-bb: #6a3fb5;
  --c-bmi: #c2188b;
  --title: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    /* Bleu nuit (choisi le 18/11/2026), bandeau plus sombre que la page. */
    --paper: #172745;
    --surface: #1e3156;
    --ink: #eaeef6;
    --ink-soft: #b6c1d6;
    --accent: #81c784;
    --line: #34496f;
    --band: #0f1c33;
    --band-ink: #eaeef6;
    --band-soft: #b6c1d6;
    --ridge-far: #1f3d3a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
/* Texte suivi (FAQ, mentions, politiques, 404) : colonne lisible, alignée sur le bandeau. */
.narrow > * { max-width: 720px; }

h1, h2, h3 { font-family: var(--title); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(34px, 7vw, 52px); line-height: 1.05; letter-spacing: -0.01em; margin: 40px 0 16px; }
h2 { font-size: 26px; margin: 40px 0 8px; }
h3 { font-size: 20px; margin: 28px 0 4px; }
.lead { font-size: 20px; color: var(--ink-soft); max-width: 36em; }

/* Bandeau d'en-tête, pleine largeur, fermé en bas par deux chaînes de
   montagnes (le logo) : la plus lointaine d'un vert plus clair, la plus
   proche de la couleur de la page. */
.band {
  position: relative;
  background: var(--band);
  color: var(--band-ink);
  padding-bottom: 56px;
}
.band::before,
.band::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  -webkit-mask: url("/img/ridge.svg") repeat-x bottom center / 1200px 100%;
  mask: url("/img/ridge.svg") repeat-x bottom center / 1200px 100%;
}
.band::before {
  height: 56px;
  background: var(--ridge-far);
  -webkit-mask-image: url("/img/ridge-far.svg");
  mask-image: url("/img/ridge-far.svg");
  -webkit-mask-position: 340px bottom;
  mask-position: 340px bottom;
}
.band::after { height: 36px; background: var(--paper); }
.band--home { padding-bottom: 136px; }
.band--home::before { height: 120px; }
.band--home::after { height: 76px; }
.band > .wrap { position: relative; z-index: 1; }
.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.band a { color: var(--band-ink); }
.band a:focus-visible { outline-color: var(--band-ink); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 600 26px/1 var(--title);
  letter-spacing: 0.01em;
  text-decoration: none;
}
/* Le logo : les montagnes de l'image d'en-tête du Play Store (18/11/2026). */
.mark { width: 44px; height: 44px; border-radius: 8px; flex: none; }
.lang a {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid var(--band-soft);
  border-radius: 4px;
}
.lang a:hover { background: rgb(255 255 255 / 0.1); }
.intro h1 { margin: 24px 0 12px; max-width: 14em; }
.intro .lead { color: var(--band-soft); margin: 0; max-width: 46em; }

/* Couleur de l'app (filet des cartes et des pages d'app). */
.app--pompomly { --app: var(--c-pompomly); }
.app--bb { --app: var(--c-bb); }
.app--bmi { --app: var(--c-bmi); }

/* Liste des apps de l'accueil : un catalogue. */
.apps { display: grid; gap: 16px; margin: 32px 0; }
@media (min-width: 760px) {
  .apps { grid-template-columns: repeat(3, 1fr); }
}
.app {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--app, var(--line));
  border-radius: 10px;
  padding: 20px;
}
.app > div { display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.app-icon { width: 64px; height: 64px; border-radius: 14px; flex: none; }
.app h2 { margin: 0 0 6px; font-size: 26px; }
.app h2 a { color: var(--ink); text-decoration: none; }
.app h2 a:hover { text-decoration: underline; }
.app p { margin: 0 0 16px; color: var(--ink-soft); }
.app .more { font-weight: 600; display: inline-block; padding: 10px 0; }
.app .tag {
  font: 600 13px/1 var(--title);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 4px 6px 3px;
  margin-bottom: 10px;
}

/* Accueil : le lien de la carte et le badge du store, empilés en bas. */
.card-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: auto; }
.badge-sm { margin: 0; }
.badge-sm img { height: 40px; }
.about { margin-top: 56px; max-width: 720px; }
.about p { color: var(--ink-soft); max-width: 36em; }

/* Page d'une app : filet de la couleur de l'app sous le titre. */
.app-head {
  display: flex; align-items: center; gap: 20px;
  margin: 32px 0 16px;
  padding-bottom: 20px;
  border-bottom: 4px solid var(--app, var(--line));
}
.app-head img { width: 88px; height: 88px; border-radius: 16px; flex: none; }
.app-head h1 { margin: 0; }
.features { padding-left: 1.2em; }
.features li { margin: 4px 0; }
.badge { display: inline-block; line-height: 0; border-radius: 8px; margin: 16px 0; }
.badge img { display: block; height: 56px; width: auto; }
.screens {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0 16px;
  margin: 16px 0;
  scroll-snap-type: x mandatory;
}
.screens img {
  flex: none;
  width: 200px; height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  scroll-snap-align: start;
}

/* Page d'app : sur grand écran, la première capture en vitrine à droite.
   Sur mobile elle est masquée : le carrousel la montre déjà. */
.hero-shot { display: none; }
@media (min-width: 720px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; align-items: start; }
  .hero-text { max-width: 640px; }
  .hero-shot {
    display: block;
    width: 260px; height: auto;
    border-radius: 14px;
    margin-top: 32px;
    box-shadow: 0 10px 30px rgb(20 35 26 / 0.2);
  }
  /* La vitrine est déjà la première capture : le carrousel commence à la suivante. */
  .screens img:first-child { display: none; }
}

/* FAQ : une question par ligne, la réponse se déplie (sans script). */
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.faq summary {
  display: flex; align-items: baseline; gap: 12px;
  cursor: pointer;
  padding: 14px 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  flex: none;
  width: 1em;
  font-weight: 600;
  color: var(--accent);
}
.faq details[open] summary::before { content: "−"; }
/* Questions dans la police du corps : sur des phrases longues, l'étroite se lit moins bien. */
.faq summary h2 { font-family: inherit; font-size: 18px; line-height: 1.4; margin: 0; }
.faq summary:hover h2 { color: var(--accent); }
.faq summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.faq details > :not(summary) { margin-left: calc(1em + 12px); }
.faq details > :last-child { margin-bottom: 18px; }
.faq code { font-size: 14px; overflow-wrap: anywhere; }
.also { color: var(--ink-soft); }

@media (max-width: 480px) {
  .app-head img { width: 72px; height: 72px; border-radius: 14px; }
  .brand { font-size: 23px; gap: 10px; }
  .mark { width: 40px; height: 40px; }
}

.legal ul { padding-left: 1.2em; }
.legal .updated { color: var(--ink-soft); font-size: 15px; }

footer.site {
  margin-top: 72px;
  padding: 28px 0 36px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 15px;
}
.foot-id {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 12px;
  font: 600 18px/1 var(--title);
  color: var(--ink);
}
.foot-id img { width: 24px; height: 24px; border-radius: 4px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.site a { color: var(--ink-soft); }

/* Page d'app : les autres apps de Peytuapp. Pompomly n'a pas de page ici,
   sa carte mène à son propre site (indiqué par « pompomly.com ↗»). */
.others { margin-top: 56px; }
.others-list { display: grid; gap: 16px; }
@media (min-width: 640px) {
  .others-list { grid-template-columns: repeat(2, 1fr); }
}
.other {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--app, var(--line));
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}
.other img { width: 56px; height: 56px; border-radius: 12px; flex: none; }
.other-text { display: flex; flex-direction: column; gap: 2px; }
.other-name { font: 600 22px/1.2 var(--title); }
.other-desc { color: var(--ink-soft); }
.other-site { color: var(--accent); font-weight: 600; font-size: 15px; margin-top: 4px; }
.other:hover .other-name { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
