/* =========================================================================
   Giga — site vitrine
   Design tokens transcrits de l'app (src/theme/tokens.ts) :
   crème #FDF6EC · encre #2A2118 · corail #F4634A
   Bricolage Grotesque (titres) · DM Sans (texte)
   ========================================================================= */

:root {
  --bg: #FDF6EC;
  --surface: #FFFDF9;
  --surface-sunken: #F3E7D6;

  --ink: #2A2118;
  --ink-soft: #5C5044;
  --muted: #8C7E6E;
  --faint: #A2907C;

  --accent: #F4634A;
  --accent-soft: #FFF6F1;
  --accent-tint: #FFF1EC;
  --accent-light: #FBAF9E;

  --success: #2E7D46;
  --success-soft: #CDE6CC;
  --warn-soft: #FBE7C0;
  --violet: #5B45A8;
  --violet-soft: #E4DCF7;
  --danger: #C9432D;
  --danger-soft: #F9DCD9;

  --track: #F0E4D5;
  --dark: #2A2118;
  --dark-text: #FDF6EC;
  --dark-accent: #FF8163;

  --r-md: 18px;
  --r-lg: 20px;
  --r-xl: 22px;
  --r-xxl: 24px;
  --r-xxxl: 26px;
  --r-pill: 99px;

  --shadow-soft: 0 5px 14px rgba(42, 33, 24, 0.06);
  --shadow-card: 0 7px 20px rgba(42, 33, 24, 0.08);
  --shadow-raised: 0 12px 28px rgba(42, 33, 24, 0.12);
  --shadow-deck: 0 18px 40px rgba(42, 33, 24, 0.2);
  --shadow-cta: 0 12px 26px rgba(244, 99, 74, 0.3);

  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "DM Sans", -apple-system, system-ui, sans-serif;

  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 246, 236, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--track);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.8px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--accent); }
.brand svg { width: 34px; height: 34px; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }

/* Sélecteur de langue — reste visible sur mobile, contrairement aux .nav-link. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--track);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.8px;
  background: var(--surface);
  color: var(--ink-soft) !important;
}
.lang-switch:hover { text-decoration: none; border-color: var(--accent); color: var(--accent) !important; }

@media (max-width: 720px) {
  .site-nav .nav-link { display: none; }
}

/* ---------------------------------------------------------------- boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: var(--r-pill);
  font-family: var(--body);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 28px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-soft);
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { box-shadow: 0 16px 32px rgba(244, 99, 74, 0.38); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.btn-small { padding: 10px 20px; font-size: 14px; }

/* ------------------------------------------------------------------ hero */

.hero { padding: 72px 0 40px; }

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: 2; justify-self: center; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: var(--r-pill);
  padding: 7px 16px;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 62px);
  line-height: 1.04;
  letter-spacing: -2px;
}

h1 .accent { color: var(--accent); }

.hero-sub {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

.squiggle { margin-top: 14px; }

/* ------------------------------------------------------- maquette iPhone */

.phone {
  width: 320px;
  background: var(--dark);
  border-radius: 48px;
  padding: 12px;
  box-shadow: var(--shadow-deck);
}

.phone-screen {
  background: var(--bg);
  border-radius: 38px;
  overflow: hidden;
  padding: 22px 16px 18px;
}

.phone-notch {
  width: 110px;
  height: 26px;
  background: var(--dark);
  border-radius: var(--r-pill);
  margin: 0 auto 16px;
}

.phone-mode {
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.phone-goal {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.phone-goal-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--faint);
}

.phone-goal-figure {
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.5px;
  margin: 2px 0 8px;
}
.phone-goal-figure span { color: var(--muted); font-size: 15px; font-weight: 700; }

.phone-bar { height: 8px; background: var(--track); border-radius: var(--r-pill); overflow: hidden; }
.phone-bar i { display: block; height: 100%; width: 32%; background: var(--accent); border-radius: var(--r-pill); }

.phone-card {
  position: relative;
  border-radius: var(--r-xl);
  height: 260px;
  background:
    radial-gradient(circle at 30% 25%, #FBAF9E 0%, transparent 55%),
    radial-gradient(circle at 75% 70%, #5B45A8 0%, transparent 60%),
    linear-gradient(160deg, #F8D48A 0%, #F4634A 55%, #C9432D 100%);
  box-shadow: var(--shadow-deck);
  margin-bottom: 6px;
}

.phone-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  background: linear-gradient(to top, rgba(42, 33, 24, 0.35), transparent 45%);
}

.phone-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(253, 246, 236, 0.92);
  color: var(--ink);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
}

.phone-card-meta {
  position: absolute;
  bottom: 12px;
  left: 14px;
  z-index: 2;
  color: var(--dark-text);
  font-size: 12px;
  font-weight: 500;
}
.phone-card-meta strong { font-family: var(--display); font-size: 16px; display: block; }

.phone-stack {
  height: 12px;
  margin: 0 18px 14px;
  background: var(--surface);
  border-radius: 0 0 16px 16px;
  box-shadow: var(--shadow-soft);
}

.phone-actions { display: flex; justify-content: center; gap: 18px; }

.phone-action {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-card);
}
.phone-action.delete { background: var(--surface); color: var(--danger); }
.phone-action.keep { background: var(--success); color: #fff; }

/* --------------------------------------------------------------- strips */

.strip { padding: 34px 0; }

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

.stat {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft);
  padding: 22px 24px;
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -1px;
  color: var(--accent);
}

.stat span { font-size: 14px; color: var(--ink-soft); }

/* -------------------------------------------------------------- sections */

section { padding: 64px 0; }

.section-label {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}

h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -1.2px;
  max-width: 22ch;
}

.section-intro { margin-top: 14px; color: var(--ink-soft); max-width: 60ch; }

/* étapes */

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

.step {
  background: var(--surface);
  border-radius: var(--r-xxl);
  box-shadow: var(--shadow-card);
  padding: 28px 26px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 16px;
}
.step:nth-child(1) .step-num { background: var(--accent-tint); color: var(--accent); }
.step:nth-child(2) .step-num { background: var(--violet-soft); color: var(--violet); }
.step:nth-child(3) .step-num { background: var(--success-soft); color: var(--success); }

.step h3 { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.4px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-soft); }

/* fonctionnalités */

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

.feature {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.feature-glyph {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 14px;
}

.feature h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--ink-soft); }

.g-coral  { background: var(--accent-tint); }
.g-violet { background: var(--violet-soft); }
.g-green  { background: var(--success-soft); }
.g-amber  { background: var(--warn-soft); }
.g-rose   { background: var(--danger-soft); }
.g-sunken { background: var(--surface-sunken); }

/* section sombre — confidentialité */

.dark-panel {
  background: var(--dark);
  border-radius: var(--r-xxxl);
  color: var(--dark-text);
  padding: clamp(36px, 6vw, 64px);
}

.dark-panel .section-label { color: var(--dark-accent); }
.dark-panel h2 { color: var(--dark-text); }
.dark-panel .section-intro { color: rgba(253, 246, 236, 0.72); }

.privacy-points {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 720px) { .privacy-points { grid-template-columns: 1fr; } }

.privacy-point {
  background: rgba(253, 246, 236, 0.08);
  border: 1px solid rgba(253, 246, 236, 0.14);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.privacy-point .tick {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.privacy-point b { display: block; font-size: 15.5px; margin-bottom: 3px; }
.privacy-point p { font-size: 13.5px; color: rgba(253, 246, 236, 0.72); }

/* tarifs */

.plans {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

.plan {
  background: var(--surface);
  border-radius: var(--r-xxl);
  box-shadow: var(--shadow-card);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  border: 1.5px solid transparent;
}

.plan.highlight { border-color: var(--accent); box-shadow: var(--shadow-raised); position: relative; }

.plan-tag {
  position: absolute;
  top: -13px;
  right: 22px;
  background: var(--accent);
  color: var(--accent-soft);
  font-size: 11.5px;
  font-weight: 700;
  border-radius: var(--r-pill);
  padding: 5px 13px;
}

.plan h3 { font-family: var(--display); font-weight: 700; font-size: 20px; }

.plan-price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 38px;
  letter-spacing: -1.5px;
  margin: 12px 0 2px;
}
.plan-price small { font-family: var(--body); font-weight: 500; font-size: 15px; color: var(--muted); letter-spacing: 0; }

.plan-note { font-size: 13px; color: var(--muted); margin-bottom: 18px; }

.plan ul { list-style: none; margin-top: auto; display: grid; gap: 9px; }
.plan li { font-size: 14px; color: var(--ink-soft); padding-left: 24px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }

.plans-footnote { margin-top: 18px; font-size: 12.5px; color: var(--muted); }

/* FAQ */

.faq { margin-top: 36px; display: grid; gap: 12px; max-width: 780px; }

.faq details {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: 20px 24px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 22px; color: var(--accent); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; font-size: 14.5px; color: var(--ink-soft); }

/* CTA final */

.final-cta { text-align: center; padding: 80px 0 90px; }
.final-cta h2 { margin: 0 auto; }
.final-cta .hero-ctas { justify-content: center; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--track);
  padding: 36px 0 44px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  justify-content: space-between;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-links a { color: var(--ink-soft); font-weight: 500; }

/* ----------------------------------------------------- pages juridiques */

.legal { padding: 56px 0 80px; }
.legal .container { max-width: 780px; }

.legal h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin-bottom: 6px;
}

.legal-updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }

.legal h2 {
  font-size: 24px;
  letter-spacing: -0.5px;
  margin: 40px 0 12px;
  max-width: none;
}

.legal h3 { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 24px 0 8px; }

.legal p, .legal li { color: var(--ink-soft); font-size: 15.5px; }
.legal p { margin-bottom: 12px; }
.legal ul, .legal ol { margin: 0 0 14px 22px; }
.legal li { margin-bottom: 6px; }

.legal .callout {
  background: var(--accent-tint);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  margin: 18px 0;
}
.legal .callout p { margin: 0; color: var(--ink); font-weight: 500; }

.legal table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 14.5px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--track); color: var(--ink-soft); vertical-align: top; }
.legal th { color: var(--ink); font-weight: 700; }
