/* Tasuka — feuille de style unique.
   La palette vient de l'app (app/src/theme.ts) : papier crème, encre chaude, corail en
   accent unique. Le reste est la grammaire d'une landing d'app moderne — type fluide,
   sections respirées, mockups d'appareil, révélation au scroll. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600&display=swap');

:root {
  --paper:       #FAF4EC;
  --paper-deep:  #F3E9DC;
  --card:        #FFFFFF;
  --ink:         #241F1A;
  --ink-soft:    #7A6B59;
  --ink-faint:   #A99A88;
  --accent:      #D85A30;
  --accent-deep: #99341A;
  --accent-soft: #FBEDE5;
  --rule:        #EBE0D1;
  --shadow-s: 0 1px 2px rgba(60,40,20,.06), 0 4px 12px rgba(60,40,20,.05);
  --shadow-m: 0 2px 6px rgba(60,40,20,.07), 0 18px 40px rgba(60,40,20,.10);
  --shadow-l: 0 30px 70px rgba(60,40,20,.16), 0 6px 18px rgba(60,40,20,.08);
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1120px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; margin: 0; }
p { margin: 0; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---------- en-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 244, 236, .78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 21px; font-weight: 600; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-size: 16px; font-weight: 600; line-height: 1;
  box-shadow: 0 2px 8px rgba(216,90,48,.35);
}
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  font-size: 15px; font-weight: 600; font-family: var(--sans);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(216,90,48,.30); }
.btn-primary:hover { background: #c95028; box-shadow: 0 8px 22px rgba(216,90,48,.34); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink-faint); background: rgba(255,255,255,.6); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 84px 0 0; overflow: hidden; }
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0;
}
.hero::before { width: 620px; height: 620px; top: -260px; right: -180px; background: rgba(216,90,48,.13); }
.hero::after  { width: 520px; height: 520px; top: 120px; left: -260px; background: rgba(214,168,110,.16); }
.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent-soft); color: var(--accent-deep);
  border: 1px solid rgba(216,90,48,.16);
  border-radius: 999px; padding: 6px 14px 6px 11px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .01em;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.hero h1 { font-size: clamp(38px, 6.2vw, 68px); margin: 22px 0 0; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: clamp(17px, 2.1vw, 21px); color: var(--ink-soft); margin-top: 22px; max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--ink-faint); }

/* ---------- appareils ---------- */
.phone { border-radius: 42px; padding: 9px; background: linear-gradient(160deg, #35302B, #17140F); box-shadow: var(--shadow-l); }
.phone img { border-radius: 34px; width: 100%; height: auto; }
.phone-sm { border-radius: 34px; padding: 7px; }
.phone-sm img { border-radius: 28px; }

.hero-stage {
  position: relative; margin-top: 60px; display: flex; align-items: flex-end;
  justify-content: center; gap: 28px; padding-bottom: 8px;
}
.hero-stage .phone { width: 268px; flex: 0 0 auto; min-width: 0; }
.hero-stage .side { width: 226px; flex: 0 0 auto; opacity: .96; }
.hero-stage .side.left  { transform: translateY(34px) rotate(-4deg); }
.hero-stage .side.right { transform: translateY(34px) rotate(4deg); }
.hero-fade { height: 90px; margin-top: -90px; position: relative; z-index: 2;
  background: linear-gradient(to bottom, rgba(250,244,236,0), var(--paper)); }

/* ---------- bandeau de confiance ---------- */
.trust { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: rgba(255,255,255,.5); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: center; padding-top: 20px; padding-bottom: 20px; }
.trust span { font-size: 14.5px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 9px; }
.trust span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 40ch; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.section-head h2 { font-size: clamp(28px, 3.8vw, 42px); margin-top: 14px; }
.section-head p { color: var(--ink-soft); margin-top: 16px; font-size: 17.5px; }

.statement { font-family: var(--display); font-size: clamp(24px, 3.4vw, 36px); line-height: 1.3; max-width: 22ch; }
.statement + p { color: var(--ink-soft); margin-top: 24px; max-width: 58ch; font-size: 17.5px; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }

/* ---------- fonctionnalités alternées ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature + .feature { margin-top: 108px; }
.feature.reverse .feature-visual { order: -1; }
.feature h3 { font-size: clamp(24px, 3vw, 32px); }
.feature p { color: var(--ink-soft); margin-top: 16px; font-size: 17.5px; }
.feature-visual { display: flex; justify-content: center; }
.feature-visual .phone { width: 262px; flex: 0 0 auto; min-width: 0; }
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; }
.feature-list li { position: relative; padding-left: 26px; margin-top: 10px; color: var(--ink-soft); font-size: 16px; }
.feature-list li::before {
  content: ''; position: absolute; left: 0; top: 9px; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.step { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-s); }
.step .num {
  width: 34px; height: 34px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center; font-family: var(--display); font-size: 16px; font-weight: 600;
}
.step h3 { font-size: 20px; margin-top: 18px; }
.step p { color: var(--ink-soft); margin-top: 10px; font-size: 16px; }

/* ---------- confidentialité ---------- */
.privacy { background: var(--paper-deep); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 26px 26px 28px; box-shadow: var(--shadow-s);
}
.card h3 { font-size: 19px; }
.card p { color: var(--ink-soft); margin-top: 9px; font-size: 16px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-top: 44px; }
.faq details { border-bottom: 1px solid var(--rule); padding: 4px 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--display); font-size: 20px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--ink-faint); border-bottom: 2px solid var(--ink-faint);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-soft); padding: 0 20px 22px 0; margin-top: -4px; font-size: 16.5px; }

/* ---------- appel final ---------- */
.cta { padding: 96px 0; }
.cta-inner {
  background: linear-gradient(150deg, #2E2721, #1B1713);
  color: #F6EFE6; border-radius: 28px; padding: 64px 56px; text-align: center;
  box-shadow: var(--shadow-m);
}
.cta-inner h2 { font-size: clamp(28px, 3.6vw, 40px); color: #fff; }
.cta-inner p { color: rgba(246,239,230,.72); margin-top: 16px; font-size: 17.5px; max-width: 52ch; margin-inline: auto; }
.cta-inner .btn-primary { margin-top: 30px; }

/* ---------- pied ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 40px 0 56px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a, .site-footer p { color: var(--ink-faint); font-size: 14.5px; }
.site-footer a:hover { color: var(--ink); text-decoration: none; }

/* ---------- pages de texte ---------- */
.prose { padding: 64px 0 40px; max-width: 760px; }
.prose h1 { font-size: clamp(32px, 4.4vw, 46px); }
.prose .updated { color: var(--ink-faint); font-size: 15px; margin-top: 14px; }
.prose h2 { font-size: 24px; margin: 44px 0 12px; }
.prose p, .prose li { color: #3B342C; margin-top: 12px; }
.prose ul { padding-left: 22px; }
.prose table { border-collapse: collapse; width: 100%; margin: 20px 0; font-size: 15.5px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { color: var(--ink-soft); font-weight: 600; }
.todo { background: var(--accent-soft); color: var(--accent-deep); padding: 2px 8px; border-radius: 6px; font-weight: 600; }

/* ---------- révélation au scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .split, .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature.reverse .feature-visual { order: 0; }
  .steps, .cards { grid-template-columns: 1fr; }
  .hero-stage .side { display: none; }
  section { padding: 72px 0; }
  .cta-inner { padding: 48px 28px; }
}
@media (max-width: 620px) {
  .site-nav a { display: none; }
  /* Le bouton de l'en-tête reste, mais il se serre : à 560 px il passait sur deux
     lignes et débordait sur le nom. */
  .site-nav .btn { display: inline-flex; padding: 9px 15px; font-size: 14px; }
  /* Sous 420 px il ne reste plus la place pour le nom ET le bouton : le hero porte
     déjà le même appel à l'action deux écrans plus bas. */
  @media (max-width: 420px) { .site-nav .btn { display: none; } }
  .eyebrow { font-size: 12.5px; padding: 5px 12px 5px 10px; }
  .hero h1 { max-width: none; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero { padding-top: 56px; }
  .hero-stage { margin-top: 44px; }
  .hero-stage .phone { width: 240px; }
  .wrap { padding: 0 20px; }
}
