:root {
  --ink: #12201b;
  --paper: #fbf7f1;
  --white: #ffffff;
  --primary: #ff5a3c;
  --primary-dark: #e2431f;
  --primary-light: #ffe6dd;
  --dark: #0f1613;
  --dark-2: #1b2620;
  --muted: rgba(18, 32, 27, 0.64);
  --soft: rgba(18, 32, 27, 0.45);
  --line: rgba(18, 32, 27, 0.12);
  --on-dark: rgba(255, 255, 255, 0.7);
  --on-dark-soft: rgba(255, 255, 255, 0.5);
  --radius: 26px;
  --radius-sm: 16px;
  --pill: 999px;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 96px; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* ---------- Typographie ---------- */
h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin-bottom: 18px; }
h1 em, h2 em { font-style: normal; color: var(--primary); }
.dark h2 em, .primary-section h2 em { color: var(--dark); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: var(--pill);
  margin-bottom: 20px;
}
.dark .eyebrow { color: var(--white); background: rgba(255, 255, 255, 0.12); }
.lead { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--muted); max-width: 560px; }
.lead.on-dark { color: var(--on-dark); }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Boutons ---------- */
.btn {
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--pill);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--ink); }
.btn-primary:hover { background: #000; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5); }
.on-primary-band .btn-primary { background: var(--ink); color: #fff; }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.35); }
.btn-ghost { background: transparent; border-color: rgba(18, 32, 27, 0.18); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.dark .btn-ghost { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.dark .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Navigation ---------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 241, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
}
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.logo svg rect { fill: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin-left: auto; font-size: 0.95rem; font-weight: 600; }
.nav-links a:not(.btn):hover { color: var(--primary-dark); }
.nav-cta-mobile { display: none; }
.burger { display: none; background: none; border: none; width: 40px; height: 40px; position: relative; margin-left: auto; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, top .25s ease; }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero-visual {
  background: var(--paper);
  padding: 64px 20px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-visual::before, .hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: .5;
}
.hero-visual::before { width: 340px; height: 340px; background: var(--primary-light); top: -80px; left: -60px; }
.hero-visual::after { width: 280px; height: 280px; background: #ffd9cc; bottom: -100px; right: -40px; }

.hero-band {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 72px 20px 88px;
  margin-top: -64px;
  clip-path: polygon(0 64px, 100% 0, 100% 100%, 0 100%);
}
.hero-band h1 { margin-bottom: 22px; }
.hero-band .eyebrow { background: rgba(255, 255, 255, 0.18); color: #fff; }
.hero-band .lead { color: rgba(255, 255, 255, 0.88); margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 12px; margin: 30px 0 16px; flex-wrap: wrap; justify-content: center; }
.hint { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }
.hero-visual .hint { color: var(--muted); }

/* ---------- Démo téléphone ---------- */
.demo { width: 100%; max-width: 340px; position: relative; z-index: 1; }
.phone {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 30px 60px -20px rgba(18, 32, 27, 0.35);
  text-align: left;
  border: 6px solid #14201c;
  transform: rotate(-2deg);
}
.phone-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: #1c1c1c;
  color: #fff;
}
.phone-avatar {
  flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary);
  font-size: 0.75rem; font-weight: 600;
}
.phone-head strong { display: block; font-size: 0.9rem; font-weight: 700; }
.phone-head small { opacity: .6; font-size: 0.72rem; }
.phone-body {
  min-height: 320px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,90,60,.18) 0, transparent 35%),
    radial-gradient(circle at 85% 75%, rgba(255,150,60,.12) 0, transparent 40%),
    #0d0d0d;
}
.bubble {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}
.bubble.visible { opacity: 1; transform: none; }
.bubble-in { align-self: flex-start; background: #262626; color: #fff; border-bottom-left-radius: 4px; }
.bubble-out { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }

/* ---------- Sections génériques ---------- */
.section { padding: 88px 0; background: var(--white); }
.section.paper { background: var(--paper); }
.section h2.center { margin-bottom: 18px; }
.section-intro { max-width: 600px; margin: 0 auto 52px; text-align: center; color: var(--muted); font-size: 1.02rem; }

.dark { background: var(--dark); color: #fff; }
.dark .muted, .dark p { color: var(--on-dark); }

/* Bandes à bord diagonal, pour rythmer la page comme des "coupes" de couleur */
.tilt-top { clip-path: polygon(0 48px, 100% 0, 100% 100%, 0 100%); margin-top: -48px; }
.tilt-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 100%); margin-bottom: -48px; }

/* ---------- Comment ça marche (onglets) ---------- */
.steps-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; margin-top: 48px; }
.steps-tabs { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.step-tab {
  display: flex; align-items: baseline; gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  text-align: left;
  width: 100%;
  color: var(--soft);
  transition: background .2s ease, color .2s ease;
}
.step-tab:hover { background: var(--paper); }
.step-tab.active { background: var(--primary-light); color: var(--ink); }
.step-tab .step-num { font-weight: 800; font-size: 1.1rem; color: var(--primary); flex-shrink: 0; }
.step-tab .step-text h3 { margin-bottom: 4px; font-size: 1.05rem; }
.step-tab .step-text p { font-size: 0.9rem; color: var(--muted); display: none; }
.step-tab.active .step-text p { display: block; }

.steps-visual { display: flex; justify-content: center; }
.steps-visual .demo { margin-top: 0; }

/* ---------- Avantages ---------- */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.perk {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: left;
}
.perk-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--primary-light);
  color: var(--primary-dark);
  margin-bottom: 20px;
}
.perk h3 { color: var(--ink); font-size: 1.02rem; }
.perk p { color: var(--muted); font-size: 0.88rem; }

/* ---------- Pour qui + phase pilote (bande sombre) ---------- */
.audience-band { text-align: center; padding-top: 96px; padding-bottom: 96px; }
.audience-band .lead { color: var(--on-dark); margin: 0 auto; }
.audience-band h2 { color: #fff; }

.pilot-card {
  margin: 48px auto 0;
  max-width: 720px;
  display: flex; align-items: center; gap: 28px;
  padding: 32px 36px;
  border-radius: var(--radius);
  background: var(--white);
  text-align: left;
}
.pilot-badge {
  flex-shrink: 0;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff;
  background: var(--primary);
  padding: 8px 14px;
  border-radius: var(--pill);
  white-space: nowrap;
}
.pilot-content p { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.pilot-content .btn { margin-top: 4px; }

/* ---------- Contact (bande couleur pleine) ---------- */
.contact-band { background: var(--primary); color: #fff; text-align: center; padding: 96px 0; }
.contact-band .lead { color: rgba(255, 255, 255, 0.9); margin: 0 auto 32px; }
.contact-band h2 { color: #fff; }
.contact-single { display: flex; justify-content: center; }
.contact-item {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 26px;
  border-radius: var(--pill);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  transition: transform .15s ease, box-shadow .2s ease;
}
.contact-item:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(0,0,0,.4); }
.contact-icon {
  flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary-light);
  color: var(--primary-dark);
}
.contact-item small { display: block; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); margin-bottom: 2px; font-weight: 700; }
.contact-arrow { margin-left: 6px; transition: transform .2s ease; }
.contact-item:hover .contact-arrow { transform: translateX(4px); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #fff; padding: 72px 0 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; margin-bottom: 56px; }
.footer .logo { color: #fff; font-size: 1.4rem; }
.footer .logo svg rect { fill: var(--primary); }
.footer-groups { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-group h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-soft); margin-bottom: 16px; }
.footer-group ul { list-style: none; display: grid; gap: 10px; }
.footer-group a { color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; }
.footer-group a:hover { color: var(--primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.copyright { font-size: 0.82rem; color: var(--on-dark-soft); }
.to-top { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; display: grid; place-items: center; transition: background .2s ease; }
.to-top:hover { background: rgba(255,255,255,.1); }

/* ---------- Pages légales ---------- */
.legal { max-width: 720px; margin: 0 auto; }
.legal h2 { font-size: 1.3rem; margin: 2.5rem 0 0.75rem; }
.legal h2:first-of-type { margin-top: 1.5rem; }
.legal p, .legal li { line-height: 1.7; color: var(--muted); }
.legal ul { padding-left: 1.2rem; margin: 0.75rem 0; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--ink); text-decoration: underline; }
.legal .updated { opacity: 0.65; font-size: 0.9rem; margin-top: 8px; }
.legal strong { color: var(--ink); font-weight: 700; }

/* ---------- Animation d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .bubble { opacity: 1; transform: none; }
}

/* ================= TABLETTE ================= */
@media (max-width: 900px) {
  .steps-layout { grid-template-columns: 1fr; gap: 40px; }
  .steps-visual { order: -1; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .pilot-card { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer-top { gap: 32px; }
  .footer-groups { gap: 36px; }
}

/* ================= SMARTPHONE ================= */
@media (max-width: 760px) {
  .nav { padding: 12px 16px; }
  .nav-cta { display: none; }
  .burger { display: block; }
  .nav-links {
    position: absolute;
    top: calc(100% + 1px); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px;
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: all .25s ease;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a:not(.btn) { display: block; padding: 12px 6px; font-size: 1.05rem; }
  .nav-cta-mobile { display: block; margin-top: 6px; }
  .nav-cta-mobile .btn { width: 100%; padding: 13px; }

  .hero-visual { padding: 40px 16px 96px; }
  .hero-band { padding: 56px 16px 64px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }

  .container { padding: 0 18px; }
  .section, .audience-band, .contact-band { padding: 60px 0; }
  .section h2.center { margin-bottom: 32px; }
  .perks { grid-template-columns: 1fr; }
  .footer { padding: 56px 0 24px; }
  .footer-top { flex-direction: column; gap: 36px; }
  .footer-groups { gap: 28px; width: 100%; justify-content: space-between; }
}
