/* Skayor — charte graphique 01, "Une base chaude, un seul noir".
   Les tokens sont repris tels quels de skayor-app/lib/theme/app_colors.dart :
   toute modification doit etre faite des deux cotes. */

:root {
  /* Neutres */
  --espresso: #2E2018;
  --encre: #241A14;
  --encre-2: #7A6A5E;
  --encre-3: #AD9C8E;
  --ligne: #EBE0D4;

  /* Fonds et surfaces */
  --creme: #FBF6EF;
  --blush: #FCEFEA;
  --ivoire: #FFFDFA;
  --sable: #F2E7DA;
  --taupe: #DECDBD;
  --taupe-deep: #C6B0A0;

  /* Fonctionnelles — semantiques, jamais decoratives */
  --sauge: #6E8B62;
  --ambre: #C98A3E;
  --terracotta: #B75540;
  --or: #C9A227;

  /* Echelle d'espacement, base 4 */
  --gutter: 20px;

  /* Rayons — deux niveaux visibles */
  --r-vignette: 14px;
  --r-small: 18px;
  --r-card: 24px;
  --r-frame: 34px;
  --r-pill: 999px;

  --voix: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  --lecture: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;

  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--lecture);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--voix); letter-spacing: -0.02em; }

h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 1.08; font-weight: 700; margin: 0; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.15; font-weight: 600; margin: 0; }
h3 { font-size: 1.125rem; line-height: 1.33; font-weight: 600; margin: 0; }

p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--encre-2);
  margin: 0;
}

.lede { font-size: 1.0625rem; line-height: 1.6; color: var(--encre-2); }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--espresso); color: var(--creme);
  padding: 12px 20px; border-radius: var(--r-pill); z-index: 100;
}
.skip-link:focus { left: var(--gutter); top: 12px; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

/* ---------- Wordmark ---------- */

.wordmark {
  font-family: var(--voix);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 2.52px; /* fontSize * 0.14, comme SkayorWordmark */
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--lecture);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--espresso); color: var(--creme); }
.btn-primary:hover { background: var(--encre); }

.btn-light { background: var(--creme); color: var(--espresso); }
.btn-light:hover { background: #fff; }

/* ---------- Badges de telechargement ---------- */

.stores { display: flex; flex-wrap: wrap; gap: 12px; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 24px 0 20px;
  border-radius: var(--r-pill);
  text-decoration: none;
  background: var(--creme);
  color: var(--espresso);
  transition: transform .18s ease;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge svg { flex: none; }
.store-badge .badge-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge .badge-top { font-size: 11px; font-weight: 500; opacity: .7; }
.store-badge .badge-bottom { font-family: var(--voix); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

/* Variante sur fond clair */
.stores--onlight .store-badge { background: var(--espresso); color: var(--creme); }

.store-note { font-size: 13px; line-height: 18px; color: var(--encre-3); margin: 0; }

/* ---------- En-tete ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--espresso);
  color: var(--creme);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-size: 15px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  text-decoration: none;
  opacity: .82;
  transition: opacity .18s ease;
}
.site-nav a:hover { opacity: 1; }
.site-nav .btn { min-height: 42px; padding: 0 20px; opacity: 1; }
@media (max-width: 720px) {
  .site-nav a:not(.btn) { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--espresso) 0%, var(--encre) 100%);
  color: var(--creme);
  overflow: hidden;
  padding-top: clamp(48px, 8vw, 88px);
}

.hero-mesh {
  position: absolute;
  top: -8%;
  right: -14%;
  width: min(720px, 80vw);
  opacity: .14;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  left: 50%;
  bottom: -34%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(222,205,189,.20) 0%, rgba(222,205,189,0) 62%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: end;
}

.hero-copy { padding-bottom: clamp(48px, 7vw, 96px); }
.hero-copy .eyebrow { color: var(--taupe); }
.hero-copy h1 { margin-block: 16px 20px; }
.hero-copy .lede { color: var(--taupe); max-width: 46ch; }
.hero-copy .stores { margin-top: 32px; }
.hero-copy .store-note { margin-top: 14px; color: var(--encre-3); }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(251,246,239,.14);
}
.hero-fact { display: flex; flex-direction: column; }
.hero-fact b {
  font-family: var(--voix);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.hero-fact span { font-size: 13px; line-height: 18px; color: var(--encre-3); }

.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* ---------- Telephone ---------- */

.phone {
  position: relative;
  width: 300px;
  max-width: 100%;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(160deg, #3b2a20 0%, #1b1310 100%);
  box-shadow: 0 2px 0 rgba(251,246,239,.10) inset, 0 40px 80px -30px rgba(0,0,0,.65);
}
.phone-screen {
  position: relative;
  border-radius: 38px;
  background: var(--creme);
  overflow: hidden;
  aspect-ratio: 300 / 600;
}
.phone-notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 24px;
  border-radius: var(--r-pill);
  background: #1b1310;
  z-index: 3;
}

.screen-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 22px 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--encre);
}
.screen-status .dots { display: flex; gap: 3px; align-items: center; }
.screen-status .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--encre); display: block; }

.screen-body { padding: 18px 18px 0; }
.screen-title { font-family: var(--voix); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.screen-sub { font-size: 12px; line-height: 17px; color: var(--encre-2); margin-top: 4px; }

.score-card {
  margin-top: 16px;
  padding: 20px 14px 16px;
  border-radius: var(--r-frame);
  background: linear-gradient(180deg, var(--taupe) 0%, var(--taupe-deep) 100%);
  text-align: center;
}
.score-ring { position: relative; width: 124px; height: 124px; margin-inline: auto; }
.score-ring svg { transform: rotate(-90deg); display: block; }
.score-ring .score-value {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-ring .num {
  font-family: var(--voix);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.score-ring .cap {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .88px;
  text-transform: uppercase;
  color: var(--encre-2);
  margin-top: 2px;
}
.score-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.score-facts span {
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(255,253,250,.75);
  font-size: 11px;
  line-height: 15px;
}

.metrics-card {
  margin-top: 14px;
  padding: 2px 14px 16px;
  border-radius: var(--r-card);
  background: var(--ivoire);
}
.metric { padding-top: 12px; }
.metric-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.metric-head b { font-size: 13px; font-weight: 600; }
.metric-head i { font-size: 13px; font-weight: 600; font-style: normal; font-variant-numeric: tabular-nums; }
.metric-track {
  height: 6px;
  margin-top: 7px;
  border-radius: var(--r-pill);
  background: var(--ligne);
  overflow: hidden;
}
.metric-track span { display: block; height: 100%; border-radius: var(--r-pill); }
.metric small { display: block; margin-top: 4px; font-size: 11px; color: var(--encre-2); }

.is-sauge { color: var(--sauge); }
.is-ambre { color: var(--ambre); }
.is-terracotta { color: var(--terracotta); }
.bg-sauge { background: var(--sauge); }
.bg-ambre { background: var(--ambre); }
.bg-terracotta { background: var(--terracotta); }

/* Pastilles flottantes autour du telephone */
.callout {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.callout .marker { width: 10px; height: 10px; border-radius: 50%; background: var(--creme); flex: none; }
.callout .card {
  width: 168px;
  padding: 10px 16px;
  border-radius: var(--r-small);
  background: var(--ivoire);
  color: var(--encre);
  box-shadow: 0 18px 34px -20px rgba(0,0,0,.5);
}
.callout .card b { display: block; font-size: 13px; line-height: 18px; font-weight: 700; }
.callout .card span { display: block; font-size: 13px; line-height: 18px; color: var(--encre-2); }
.callout--1 { top: 10%; left: -12%; }
.callout--2 { top: 42%; right: -14%; flex-direction: row-reverse; }
.callout--3 { bottom: 14%; left: -16%; }
@media (max-width: 1080px) {
  .callout--1 { left: -4%; }
  .callout--2 { right: -4%; }
  .callout--3 { left: -6%; }
}
@media (max-width: 900px) {
  .callout { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-stage { margin-top: 48px; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 9vw, 104px); }
.section--sable { background: var(--sable); }
.section--blush { background: var(--blush); }

.section-head { max-width: 62ch; }
.section-head h2 { margin-block: 12px 14px; }

.grid { display: grid; gap: 16px; margin-top: 40px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .grid--3 { grid-template-columns: 1fr; } }

.card {
  padding: 28px 24px;
  border-radius: var(--r-card);
  background: var(--ivoire);
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15px; line-height: 22px; color: var(--encre-2); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--espresso);
  color: var(--creme);
  font-family: var(--voix);
  font-size: 15px;
  font-weight: 600;
}

/* Liste des mesures */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; padding: 0; }
.chips li {
  list-style: none;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--ivoire);
  border: 1px solid var(--ligne);
  font-size: 15px;
}

/* ---------- FAQ ---------- */

.faq { margin-top: 40px; max-width: 800px; }
.faq details { border-top: 1px solid var(--ligne); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--ligne); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--voix);
  font-size: 1.0625rem;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--encre-2);
  flex: none;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--encre-2); font-size: 15px; line-height: 23px; max-width: 70ch; }

/* ---------- Bandeau final ---------- */

.cta {
  background: linear-gradient(135deg, var(--espresso) 0%, var(--encre) 100%);
  color: var(--creme);
  text-align: center;
  padding-block: clamp(64px, 9vw, 104px);
}
.cta h2 { margin-bottom: 16px; }
.cta .lede { color: var(--taupe); margin-inline: auto; max-width: 48ch; }
.cta .stores { justify-content: center; margin-top: 32px; }
.cta .store-note { margin-top: 16px; }

/* ---------- Pied de page ---------- */

.site-footer {
  background: var(--encre);
  color: var(--taupe);
  padding-block: 48px 40px;
  font-size: 14px;
}
.site-footer .wrap { display: grid; gap: 28px; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-footer .wordmark { color: var(--creme); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { text-decoration: none; opacity: .8; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(251,246,239,.12);
  color: var(--encre-3);
  font-size: 13px;
}

/* ---------- Page de contenu (confidentialite) ---------- */

.doc { padding-block: clamp(48px, 7vw, 80px); max-width: 780px; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); }
.doc h2 { font-size: 1.375rem; margin-top: 44px; }
.doc p, .doc li { color: var(--encre-2); font-size: 15px; line-height: 24px; }
.doc p, .doc ul { margin-top: 14px; }
.doc ul { padding-left: 20px; }
.doc li { margin-top: 6px; }
.doc a { color: var(--espresso); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
