/* Site public de Khrja : mêmes couleurs et polices que l'appli (khrja-app/src/theme/variables.scss). */
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 700; font-display: swap; src: url('fonts/bricolage-grotesque-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 800; font-display: swap; src: url('fonts/bricolage-grotesque-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url('fonts/manrope-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('fonts/manrope-latin-700-normal.woff2') format('woff2'); }

:root {
  --green: #0f6b4f;
  --green-dark: #0a4f3a;
  --terracotta: #c2410c;
  --sand: #fbf7f0;
  --surface: #ffffff;
  --ink: #1b1a17;
  --muted: #6b655b;
  --line: #e6ded1;
  --tint-green: #ddf0e8;
  --tint-ochre: #fcefcf;
  --indigo: #3b3a8f;
  --ochre: #8a5a00;
  --title: 'Bricolage Grotesque', 'Manrope', sans-serif;
  --text: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* En-tête */

.top { padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--title); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--green); }

.logo { width: 38px; height: 38px; fill: var(--green); stroke: #ffffff; }
.logo circle { fill: var(--terracotta); stroke: none; }

.top-link { font-size: 15px; font-weight: 700; color: var(--green); text-decoration: none; }

/* Accroche */

.hero { padding: 36px 0 72px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 56px; }

.kicker { margin: 0 0 18px; display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--tint-ochre); color: var(--ochre); font-size: 13px; font-weight: 700; }

h1 { margin: 0; font-family: var(--title); font-size: clamp(42px, 6.4vw, 76px); line-height: 0.98; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
h1 em { font-style: normal; color: var(--terracotta); }

.lead { max-width: 30em; margin: 22px 0 30px; font-size: 19px; color: var(--muted); }

.cta { display: inline-flex; align-items: center; gap: 12px; padding: 18px 28px; border-radius: 999px; background: var(--green); color: #ffffff; font-size: 17px; font-weight: 700; text-decoration: none; box-shadow: 0 12px 26px rgba(15, 107, 79, 0.28); transition: background 0.15s, transform 0.15s; }
.cta:hover { background: var(--green-dark); transform: translateY(-1px); }
.cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.cta.ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.cta.ghost:hover { background: var(--tint-green); }
.note a { font-weight: 700; color: var(--green); }

.under-cta { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* Le téléphone : l'accueil de l'appli, redessiné en HTML */

.phone { justify-self: center; width: min(320px, 100%); aspect-ratio: 9 / 18.5; padding: 12px; border-radius: 44px; background: var(--ink); box-shadow: 0 30px 60px rgba(27, 26, 23, 0.22); transform: rotate(3deg); }
.screen { height: 100%; padding: 26px 16px 16px; border-radius: 33px; background: var(--sand); overflow: hidden; display: flex; flex-direction: column; gap: 12px; }
.screen-hello { margin: 0; font-family: var(--title); font-size: 23px; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.days { display: flex; gap: 6px; }
.day { flex: 1; padding: 7px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: center; font-size: 10px; font-weight: 700; color: var(--muted); }
.day b { display: block; font-family: var(--title); font-size: 15px; color: var(--ink); }
.day.on { border-color: var(--green); background: var(--green); color: #cfe6dd; }
.day.on b { color: #ffffff; }
.card { position: relative; padding: 14px; border-radius: 22px; color: #ffffff; overflow: hidden; }
.card::after { content: ''; position: absolute; inset: 0; opacity: 0.16; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44' fill='none' stroke='white' stroke-width='1.5'%3E%3Crect x='12' y='12' width='20' height='20'/%3E%3Crect x='12' y='12' width='20' height='20' transform='rotate(45 22 22)'/%3E%3C/svg%3E"); }
.card > * { position: relative; z-index: 1; }
.card.sport { background: var(--terracotta); }
.card.cafe { background: var(--green); }
.card.jeux { background: var(--ochre); }
.card-top { display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; }
.card-title { margin: 22px 0 6px; font-family: var(--title); font-size: 20px; line-height: 1.05; font-weight: 800; }
.card-meta { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; opacity: 0.92; }
.card.small .card-title { margin-top: 10px; font-size: 16px; }

.tabs { margin-top: auto; display: flex; align-items: center; gap: 10px; }
.tabs::before { content: ''; order: 1; }
.tab { flex: 1; height: 8px; border-radius: 4px; background: var(--line); }
.tab.on { background: var(--green); }
.plus { order: 2; width: 40px; height: 40px; border-radius: 14px; background: var(--terracotta); color: #ffffff; display: flex; align-items: center; justify-content: center; font-family: var(--title); font-size: 22px; font-weight: 700; }

/* Sections */

section { padding: 64px 0; }
.band { background: var(--surface); border-block: 1px solid var(--line); }

h2 { margin: 0 0 10px; font-family: var(--title); font-size: clamp(30px, 4vw, 44px); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.section-lead { max-width: 36em; margin: 0 0 36px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.item { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--sand); }
.band .item { background: var(--sand); }
.item h3 { margin: 0 0 8px; font-family: var(--title); font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.item p { margin: 0; font-size: 16px; color: var(--muted); }
.num { width: 38px; height: 38px; margin-bottom: 16px; border-radius: 12px; background: var(--tint-green); color: var(--green-dark); display: flex; align-items: center; justify-content: center; font-family: var(--title); font-size: 18px; font-weight: 800; }

.install { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.steps li { counter-increment: step; padding: 16px 18px 16px 60px; position: relative; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); font-size: 16px; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--terracotta); color: #ffffff; display: flex; align-items: center; justify-content: center; font-family: var(--title); font-weight: 800; }
.note { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

/* Pied de page */

footer { padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { font-weight: 700; color: var(--ink); text-decoration: none; }
.foot a:hover { color: var(--green); }

/* Pages de texte (conditions, confidentialité) */

.legal { max-width: 46em; padding: 24px 0 72px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); }
.legal .updated { margin: 12px 0 20px; font-size: 14px; color: var(--muted); }
.legal h2 { margin: 34px 0 10px; font-size: 22px; }
.legal p, .legal li { font-size: 16px; }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 6px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-bottom: 56px; }
  .phone { transform: rotate(2deg); }
  .grid, .grid.four, .install { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .cta { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta { transition: none; }
}
