/* Site vitrine solutfa.com — tokens du handoff (mêmes couleurs, mêmes
   polices que l'app), sombre / clair selon le système, sans framework. */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations'); }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Noto Music'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/noto-music-music-400-normal.woff2') format('woff2'); unicode-range: U+1D100-1D1FF, U+2669-266F; }

:root {
  --bg: #1B1820; --bg2: #211D29; --surface: #262130; --control: #312A3C;
  --ink: #F2EBDF; --ink70: rgba(242,235,223,.7); --ink60: rgba(242,235,223,.6); --ink45: rgba(242,235,223,.45);
  --divider: rgba(242,235,223,.07); --primary-bg: #F2EBDF; --primary-ink: #1B1820;
  --ok: #4CAF50; --mid: #FF9800; --bad: #FF5252; --current: #2196F3;
  --radius: 22px; --serif: 'Instrument Serif', Georgia, serif; --sans: 'Manrope', 'Noto Music', system-ui, sans-serif; --music: 'Noto Music', var(--serif);
  color-scheme: dark light;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F6F1E8; --bg2: #EFE9DE; --surface: #FFFFFF; --control: #E6DFD2;
    --ink: #1B1820; --ink70: rgba(27,24,32,.7); --ink60: rgba(27,24,32,.65); --ink45: rgba(27,24,32,.45);
    --divider: rgba(27,24,32,.08); --primary-bg: #1B1820; --primary-ink: #F6F1E8;
    --ok: #2E8B33; --mid: #E07B00; --bad: #D93025;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--current); outline-offset: 3px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
/* En-tête collant : « Ouvrir » reste à portée de pouce à tout endroit de
   la page. Le fond déborde de .wrap jusqu'aux bords de l'écran. */
header.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; background: var(--bg); box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand .clefs { font-family: var(--music); font-size: 26px; }
.brand .name { font-family: var(--serif); font-size: 30px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
nav.lang { display: flex; gap: 2px; font-size: 14px; color: var(--ink70); }
nav.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 999px; text-decoration: none; }
nav.lang a:hover { background: var(--control); }
nav.lang .short { display: none; }
nav.lang a[aria-current] { color: var(--ink); font-weight: 700; background: var(--control); }

/* Héros */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 64px; align-items: center; padding: 48px 0 72px; }
.hero > div { min-width: 0; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6.4vw, 76px); line-height: 1; margin: 0 0 22px; letter-spacing: -.015em; max-width: 13ch; text-wrap: balance; overflow-wrap: break-word; }
.hero h1 em { font-style: italic; }
.hero p.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink70); margin: 0 0 18px; max-width: 40ch; text-wrap: pretty; }
.demo { display: flex; width: fit-content; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--divider); border-radius: 18px; padding: 14px 18px 12px; margin: 0 0 28px; max-width: 100%; }
.staff { display: block; width: 300px; max-width: 100%; height: auto; }
.verdict { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; color: var(--ink70); font-size: 15px; font-weight: 600; }
.verdict > span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 14px; height: 14px; border-radius: 7px; display: inline-block; }
.dot.ok { background: var(--ok); } .dot.mid { background: var(--mid); } .dot.bad { background: var(--bad); } .dot.current { background: var(--current); }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--primary-bg); color: var(--primary-ink); text-decoration: none; font-weight: 800; padding: 16px 28px; min-height: 56px; border-radius: 999px; font-size: 18px; transition: transform .15s ease, filter .15s ease; }
.cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cta .clefs { font-family: var(--music); font-size: 22px; }
.cta-sm { padding: 0 18px; min-height: 44px; font-size: 14px; }
.hint { margin: 14px 0 0; font-size: 14px; color: var(--ink60); max-width: 42ch; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 0; }
.badges li { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--control); color: var(--ink); }
.badges li::before { content: '✓\00a0'; color: var(--ok); }

/* Téléphones */
.phone { justify-self: center; position: relative; width: min(320px, 80vw); aspect-ratio: 9 / 16; border-radius: 32px; overflow: hidden; border: 1px solid var(--divider); background: var(--bg); box-shadow: 0 2px 6px rgba(0,0,0,.06), 0 24px 48px -16px rgba(27,24,32,.32); }
.phone picture, .phone img { display: block; width: 100%; height: 100%; }
.phone img { object-fit: cover; object-position: top; }
.hero .phone { width: 100%; }
.hero .phone::after { content: ''; position: absolute; inset: auto 0 0 0; height: 22%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }

/* Sections */
section.features, section.shots, section.checks { padding-block: clamp(40px, 6vw, 72px); }
.section-title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.01em; margin: 0 0 28px; text-wrap: balance; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.card .glyph { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--control); font-family: var(--music); font-size: 30px; line-height: 1; margin-bottom: 18px; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.15; margin: 0 0 8px; }
.card p { margin: 0; color: var(--ink70); font-size: 16px; }
.card .glyph-ui { font-family: var(--sans); font-weight: 800; font-size: 26px; }

.shots .row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.shots figure { margin: 0; text-align: center; min-width: 0; }
.shots .phone { width: 100%; }
.shots figcaption { margin-top: 14px; color: var(--ink); font-size: 16px; font-weight: 600; }

/* Listes ✓ : engagements (2 colonnes) et professeurs (3, une par geste). */
.checks ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.teachers ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.checks li { position: relative; background: var(--surface); border: 1px solid var(--divider); border-radius: 16px; padding: 18px 20px 18px 54px; color: var(--ink70); font-size: 16px; }
.checks li::before { content: '✓'; position: absolute; left: 20px; top: 20px; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.checks li strong { color: var(--ink); }

section.closing { text-align: center; background: var(--bg2); border: 1px solid var(--divider); border-radius: var(--radius); padding: 56px 20px; margin: 8px 0 48px; }
section.closing .section-title { margin-bottom: 24px; }

footer { border-top: 1px solid var(--divider); padding: 20px 0 44px; color: var(--ink60); font-size: 14px; }
footer .links { display: flex; flex-wrap: wrap; gap: 0 18px; margin-bottom: 6px; }
footer .links a { display: inline-flex; align-items: center; min-height: 44px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Pages légales */
main.legal { max-width: 760px; margin: 0 auto; padding: 10px 0 60px; }
main.legal h1 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.1; margin: 10px 0 6px; text-wrap: balance; }
main.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.15; margin: 34px 0 8px; text-wrap: balance; }
main.legal p, main.legal li { color: var(--ink70); }
main.legal .updated { color: var(--ink60); font-size: 14px; }
main.legal table { border-collapse: collapse; width: 100%; font-size: 15px; }
main.legal th, main.legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--divider); vertical-align: top; }
mark.todo { background: var(--mid); color: #1B1820; padding: 0 4px; border-radius: 4px; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 16px 0 32px; }
  .hero p.lead { font-size: 18px; }
  .hero .cta { display: flex; width: 100%; }
  .hero .phone { width: min(280px, 72vw); aspect-ratio: 4 / 5; }
  .grid, .checks ul { grid-template-columns: 1fr; }
  .grid { gap: 12px; }
  .card { padding: 22px; }
  .shots .row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 0 -20px; padding: 4px 20px 16px; scroll-padding-inline: 20px; scrollbar-width: none; }
  .shots .row::-webkit-scrollbar { display: none; }
  .shots figure { flex: 0 0 68%; scroll-snap-align: center; }
  .shots .phone { width: 100%; }
}
/* En-tête compact des téléphones (grands compris : 428 / 430 px) : la
   marque sur une ligne, « Ouvrir » à côté. Le nom de la langue n'est
   masqué qu'à l'œil : le lien se lit « FR Français ». */
@media (max-width: 480px) {
  header.top { gap: 8px; padding: 10px 0; }
  .brand { gap: 6px; }
  .brand .clefs { font-size: 22px; }
  .brand .name { font-size: 26px; }
  .top-actions { gap: 4px; }
  .cta-sm { padding: 0 14px; }
  nav.lang .long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  nav.lang .short { display: inline; }
  nav.lang a { padding: 0 8px; }
}
/* Petits téléphones (320 px) : trois langues au sélecteur — les clés
   cèdent la place, le nom reste, « Ouvrir » et les cibles de 44 px aussi. */
@media (max-width: 360px) {
  .brand .clefs { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cta { transition: none; } .cta:hover { transform: none; } }
