/* ============ Tsena+ — site de distribution ============
   Palette = tokens de l'app (lib/ui/theme/app_colors.dart)  */

@font-face { font-family: 'Poppins'; src: url('assets/fonts/poppins-400-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; src: url('assets/fonts/poppins-400-latin-ext.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; src: url('assets/fonts/poppins-500-latin.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; src: url('assets/fonts/poppins-500-latin-ext.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; src: url('assets/fonts/poppins-600-latin.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; src: url('assets/fonts/poppins-600-latin-ext.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; src: url('assets/fonts/poppins-700-latin.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; src: url('assets/fonts/poppins-700-latin-ext.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --primary: #6D28D9;
  --magenta: #D6308F;
  --ink: #211543;
  --ink-soft: #3A3450;
  --grey: #6B6878;
  --bg: #F4F3F8;
  --surface: #FFFFFF;
  --tint: #EFE9FB;
  --border: #D9CDF3;
  --success: #1F8A5B;
  --grad: linear-gradient(95deg, var(--primary), var(--magenta));
  --radius: 20px;
  --shadow: 0 8px 30px rgba(33, 21, 67, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h2 { font-size: 1.6rem; font-weight: 700; text-align: center; margin-bottom: 1.2em; }
p { margin: 0 0 1em; }
a { color: var(--primary); }
img { max-width: 100%; height: auto; }

section { padding: 56px 20px; }

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(33, 21, 67, .06);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.15rem;
  color: var(--ink); text-decoration: none;
}
.brand img { border-radius: 10px; display: block; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-small {
  padding: 10px 22px;
  background: var(--grad);
  color: #fff;
  font-size: .95rem;
  box-shadow: 0 4px 14px rgba(109, 40, 217, .35);
}

.btn-hero {
  background: #fff;
  color: var(--ink);
  padding: 14px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.btn-hero-main { display: block; font-size: 1.1rem; font-weight: 700; }
.btn-hero-sub { display: block; font-size: .78rem; font-weight: 500; color: var(--grey); margin-top: 2px; }

.btn-ghost {
  padding: 14px 28px;
  border: 1.5px solid rgba(255, 255, 255, .45);
  color: rgba(255, 255, 255, .75);
  font-size: .95rem;
  cursor: default;
}
.btn-ghost:hover { transform: none; }

.btn-whatsapp {
  background: var(--success);
  color: #fff;
  padding: 14px 30px;
  font-size: 1.05rem;
  box-shadow: 0 8px 24px rgba(31, 138, 91, .35);
}

/* ---------- Héros ---------- */
.hero {
  background: var(--grad);
  color: #fff;
  padding: 64px 20px 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 85% -10%, rgba(255, 255, 255, .18), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1060px; margin: 0 auto;
  display: grid; gap: 40px;
  position: relative;
}
.hero h1 { font-size: 1.9rem; font-weight: 700; }
.hero h1 em { font-style: normal; text-decoration: underline; text-decoration-color: rgba(255,255,255,.5); text-underline-offset: 6px; }
.hero-sub { font-size: 1.05rem; opacity: .92; max-width: 46ch; }
.chip {
  display: inline-block;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: .85rem; font-weight: 500;
  margin-bottom: 18px;
}
.hero-actions {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 14px; margin-top: 26px;
}
.hero-visual img {
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  display: block;
}

/* ---------- Fonctionnalités ---------- */
.features { max-width: 1060px; margin: 0 auto; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.card-ico {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px;
  font-size: 1.6rem;
  background: var(--tint);
  border-radius: 16px;
  margin-bottom: 14px;
}
.card h3 { font-size: 1.08rem; font-weight: 600; }
.card p { color: var(--grey); font-size: .95rem; margin: 0; }

/* ---------- Installation ---------- */
.install { max-width: 720px; margin: 0 auto; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.step {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.step-num {
  flex: none;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff; font-weight: 700; font-size: 1.1rem;
}
.step h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .3em; }
.step p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ---------- Activation ---------- */
.activation { max-width: 720px; margin: 0 auto; }
.activation-card {
  background: var(--tint);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
}
.activation-card h2 { margin-bottom: .6em; }
.activation-card p { color: var(--ink-soft); margin-bottom: 1.6em; }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: var(--surface);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  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-size: 1.3rem; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); font-size: .95rem; margin: 12px 0 4px; }

/* ---------- Page interne (confidentialité) ---------- */
.page { max-width: 720px; margin: 0 auto; padding: 48px 20px; }
.page h1 { font-size: 1.7rem; }
.page h2 { font-size: 1.15rem; text-align: left; margin-top: 1.8em; margin-bottom: .4em; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: .5em; }
.maj { color: var(--grey); font-size: .9rem; }

/* ---------- Pied de page ---------- */
.footer {
  text-align: center;
  padding: 40px 20px 48px;
  color: var(--grey);
  font-size: .92rem;
}
.footer a { color: var(--primary); font-weight: 500; }
.footnote { opacity: .75; font-size: .85rem; }

/* ---------- Écrans larges ---------- */
@media (min-width: 768px) {
  section { padding: 72px 24px; }
  .hero { padding: 88px 24px 96px; }
  .hero-inner { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .hero h1 { font-size: 2.5rem; }
  h2 { font-size: 1.9rem; }
  .hero-actions { flex-direction: row; align-items: center; }
}
