/* Boostr - landing + politique de confidentialite
   Palette "ciel etoile" alignee sur l'app Flutter (lib/theme.dart).
   Meme structure/layout que l'origine ; seules les couleurs changent (theme clair). */

:root {
  --bg: #FBFAFF;        /* fond principal (clair) */
  --surface: #FFFFFF;   /* cartes */
  --surface-2: #EDE7F7; /* chips / tuiles */
  --accent: #6B5FA6;    /* violet accent (principal) */
  --terracotta: #47407A; /* violet profond (partenaire de degrade) */
  --cream: #221C3D;     /* texte principal (sombre) */
  --muted: #6B6390;     /* texte secondaire */

  /* Bleu de Boostie, echantillonne sur assets/boostie.png. Accent SECONDAIRE :
     il habille ce qui touche a la mascotte (jauge, tuiles, halo), le violet
     reste la couleur des CTA et des liens. */
  --boostie: #5B7BE0;
  --boostie-deep: #3F5BC4; /* texte sur fond bleu clair, contraste AA */
  --boostie-soft: #E9EEFC; /* fond de tuile bleu tres clair */

  --dusk: linear-gradient(160deg, #221C3D 0%, #47407A 55%, #6B5FA6 100%);
  --stars:
    radial-gradient(1.5px 1.5px at 18% 22%, rgba(237,231,247,0.9), transparent),
    radial-gradient(1px 1px at 62% 14%, rgba(200,190,235,0.8), transparent),
    radial-gradient(1.5px 1.5px at 78% 40%, rgba(237,231,247,0.7), transparent),
    radial-gradient(1px 1px at 32% 60%, rgba(237,231,247,0.7), transparent),
    radial-gradient(1px 1px at 85% 72%, rgba(200,190,235,0.7), transparent),
    radial-gradient(1.5px 1.5px at 12% 82%, rgba(237,231,247,0.6), transparent);

  --maxw: 1080px;
  --radius: 24px;
  --radius-sm: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: "Nunito Sans", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .serif {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }

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

.muted { color: var(--muted); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34, 28, 61, 0.08);
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.brand .logo {
  display: inline-block;
  width: 30px; height: 30px; border-radius: 9px;
  background: url(assets/icon.png) center/cover no-repeat;
  font-size: 0; /* masque le "B" : on affiche la vraie icone de l'app */
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--cream); }

/* Selecteur de langue FR / EN */
.lang-switch { display: inline-flex; align-items: center; background: var(--surface-2); border-radius: 20px; padding: 3px; }
.lang-switch a { padding: 5px 11px; border-radius: 16px; font-size: 13px; font-weight: 700; color: var(--muted); }
.lang-switch a:hover { color: var(--cream); }
.lang-switch a.active { background: var(--accent); color: #FFFFFF; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #FFFFFF;
  font-weight: 700; font-size: 16px;
  padding: 14px 26px; border-radius: 32px;
  border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--terracotta); box-shadow: 0 12px 28px rgba(34,28,61,.18); }
.btn-ghost {
  background: transparent; color: var(--cream);
  border: 1px solid rgba(34, 28, 61, 0.18);
}
.btn-ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-sm { color: #EDE7F7!important; padding: 10px 20px; font-size: 15px; }

.badge-play {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--cream); color: #EDE7F7;
  padding: 12px 22px; border-radius: 16px; font-weight: 700;
  transition: transform .15s ease, box-shadow .2s ease;
}
.badge-play:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(34,28,61,.22); }
.badge-play .pi { font-size: 26px; line-height: 1; }
.badge-play small { display: block; font-size: 11px; font-weight: 600; opacity: .7; letter-spacing: .04em; }
.badge-play strong { display: block; font-size: 17px; line-height: 1.1; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-2); color: var(--accent);
  padding: 7px 15px; border-radius: 30px; font-size: 13px; font-weight: 700;
  letter-spacing: .03em; margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.hero h1 { font-size: clamp(38px, 6vw, 62px); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 30ch; margin-bottom: 32px; }
.hero .cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.trial-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.trial-note b { color: var(--cream); }

/* ---------- Phone mockup ---------- */
.phone {
  width: 280px; max-width: 78vw; aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  background: #221C3D;
  border-radius: 40px;
  border: 10px solid #1a1530;
  box-shadow: 0 30px 70px rgba(34,28,61,.30), inset 0 0 0 1px rgba(237,231,247,.06);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.phone::before {
  content: ""; position: absolute; top: 0px; left: 50%; transform: translateX(-50%);
  width: 44%; height: 15px; background: #1a1530; border-radius: 0 0 14px 14px; z-index: 3;
}
.phone-screen {
  flex: 1; display: flex; flex-direction: column;
  padding: 54px 24px 28px;
  background-image: var(--stars), var(--dusk);
}
.phone-quote {
  flex: 1; display: flex; align-items: center; justify-content: center; text-align: center;
}
.phone-quote span {
  font-family: "Fraunces", Georgia, serif; font-size: 26px; line-height: 1.25; color: #EDE7F7;
}
/* Boutons ronds creme (comme l'app : partage + booster) */
.phone-actions { display: flex; justify-content: center; gap: 34px; padding-top: 16px; }
.phone-actions .pa { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.phone-actions .pa-btn { width: 52px; height: 52px; border-radius: 50%; background: #EDE7F7; display: grid; place-items: center; }
.phone-actions .pa-btn svg { width: 24px; height: 24px; fill: none; stroke: #221C3D; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.phone-actions .pa small { font-size: 12px; color: #A79FC4; }
.phone-hint { display: flex; align-items: center; justify-content: center; gap: 6px; padding-top: 18px; color: #A79FC4; font-size: 13px; }
.phone-hint svg { width: 16px; height: 16px; fill: none; stroke: #A79FC4; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Boostie (mascotte) ---------- */
/* Fusee posee sur fond clair. Les PNG sont transparents et deja dimensionnes
   pour le web (voir assets/) : on ne fait que les poser et les animer. */
.boostie { display: block; height: auto; }

/* Hero : Boostie decolle du telephone. Le halo bleu la detache du fond clair
   sans avoir a lui ajouter d'ombre portee, qui jurerait avec son trait net. */
.hero-visual { position: relative; }
.boostie-hero {
  position: absolute; z-index: 2;
  left: -6%; bottom: 6%;
  width: 46%; max-width: 190px;
  transform: rotate(-8deg);
  filter: drop-shadow(0 14px 26px rgba(59, 79, 180, .28));
  animation: float 5.5s ease-in-out infinite;
}
.boostie-hero::after { content: ""; }
@keyframes float {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50%      { transform: rotate(-8deg) translateY(-14px); }
}

/* ---------- Section reservoir (quota gratuit) ---------- */
.fuel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fuel-card {
  background: var(--surface); border: 1px solid rgba(34,28,61,.08);
  border-radius: var(--radius); padding: 26px 24px 30px; text-align: center;
  box-shadow: 0 1px 3px rgba(34,28,61,.05);
}
.fuel-card .shell {
  width: 122px; height: 122px; margin: 0 auto 18px;
  border-radius: 50%; background: var(--boostie-soft);
  display: grid; place-items: center;
}
/* height:auto indispensable : sans lui l'attribut height="293" du HTML reste
   actif et la fusee est etiree en 78x293 au lieu d'etre mise a l'echelle. */
.fuel-card .shell img { width: 78px; height: auto; }
.fuel-card h3 { font-size: 19px; margin-bottom: 6px; }
.fuel-card p { color: var(--muted); font-size: 15px; }
.fuel-card .lvl {
  display: inline-block; margin-bottom: 12px;
  background: var(--boostie-soft); color: var(--boostie-deep);
  padding: 5px 13px; border-radius: 20px; font-size: 12.5px; font-weight: 800;
  letter-spacing: .03em; text-transform: uppercase;
}
.fuel-note {
  margin: 26px auto 0; max-width: 640px; text-align: center;
  color: var(--muted); font-size: 16px;
}
.fuel-note b { color: var(--cream); }

/* ---------- Sections ---------- */
section { padding: clamp(48px, 8vw, 88px) 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(28px, 4.5vw, 44px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* Features grid */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border-radius: var(--radius);
  padding: 30px; border: 1px solid rgba(34,28,61,.08);
  box-shadow: 0 1px 3px rgba(34,28,61,.05);
}
.feature .ic {
  width: 46px; height: 46px; border-radius: 13px; background: var(--surface-2);
  display: grid; place-items: center; margin-bottom: 18px;
}
.feature .ic svg {
  width: 24px; height: 24px; fill: none; stroke: var(--accent);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
/* Une tuile sur deux passe au bleu de Boostie : la page respire sans que le
   bleu prenne le pas sur le violet, qui reste la couleur des actions. */
.feature:nth-child(even) .ic { background: var(--boostie-soft); }
.feature:nth-child(even) .ic svg { stroke: var(--boostie-deep); }
.feature h3 { font-size: 22px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 16px; }
.feature.wide { grid-column: span 2; position: relative; overflow: hidden; }
/* Boostie en filigrane sur la tuile large : decor, pas information. */
.feature.wide .boostie-tile {
  position: absolute; right: 26px; bottom: -14px;
  width: 108px; opacity: .9; pointer-events: none;
  transform: rotate(6deg);
}
.feature.wide p { max-width: 62%; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip {
  background: var(--surface-2); color: var(--terracotta);
  padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 700;
}

/* mini notif card */
.notif-card {
  margin-top: 18px; background: var(--surface-2); border-radius: 14px; padding: 14px 16px;
  display: flex; gap: 12px; align-items: flex-start; border: 1px solid rgba(34,28,61,.06);
}
/* Icone de la fausse notification = la vraie icone de l'app (fusee). */
.notif-card .ni { width: 34px; height: 34px; border-radius: 9px; background: url(assets/icon.png) center/cover no-repeat; flex: none; font-size: 0; }
.notif-card b { font-size: 14px; }
.notif-card span { color: var(--muted); font-size: 13px; }

/* streak week */
.week { display: flex; gap: 8px; margin-top: 18px; }
.week .day { flex: 1; text-align: center; }
.week .day small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.week .day i {
  display: block; width: 100%; aspect-ratio: 1; max-width: 34px; margin: 0 auto;
  border-radius: 50%; background: rgba(107,95,166,.16); border: 1px solid rgba(34,28,61,.06);
}
.week .day i.on { background: var(--accent); border-color: transparent; box-shadow: 0 0 8px rgba(107,95,166,.35); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { text-align: center; }
.step .num {
  counter-increment: step; width: 48px; height: 48px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--surface-2); color: var(--accent);
  display: grid; place-items: center; font-family: "Fraunces", serif; font-size: 22px; font-weight: 600;
}
.step .num::before { content: counter(step); }
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Pricing / CTA band ---------- */
.band {
  background-image: var(--stars), var(--dusk);
  border-radius: 32px; padding: clamp(36px, 6vw, 64px); text-align: center;
  border: 1px solid rgba(34,28,61,.06);
}
.band { position: relative; overflow: hidden; }
/* Boostie sur la bande sombre : c'est le seul fond violet nuit de la page,
   donc le rappel le plus direct de l'ecran de l'app. */
.band .boostie-band {
  width: 96px; margin: 0 auto 20px;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.35));
  animation: float-band 5.5s ease-in-out infinite;
}
@keyframes float-band {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.band h2 { font-size: clamp(28px, 4.5vw, 42px); margin-bottom: 14px; color: #EDE7F7; }
.band p { color: #D8DEF7; font-size: 18px; margin-bottom: 10px; }
.band .badge-play { background: #EDE7F7; color: #221C3D; }
.band .badge-play small { color: #221C3D; }
.price-row { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin: 26px 0 30px; }
.price { background: var(--surface-2); border-radius: 18px; padding: 20px 30px; min-width: 160px; }
.price .amt { font-family: "Fraunces", serif; font-size: 30px; }
.price .per { color: var(--muted); font-size: 14px; }
.price.year { border: 1px solid var(--accent); }
.price .tag { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--accent); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid rgba(34,28,61,.08); padding: 48px 0 40px; }
footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
footer .brand { font-size: 18px; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); font-size: 15px; font-weight: 600; transition: color .2s; }
.foot-links a:hover { color: var(--cream); }
.copyright { width: 100%; color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ---------- Legal / privacy page ---------- */
.legal { padding: clamp(40px, 7vw, 72px) 0; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 5vw, 46px); margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-size: 15px; margin-bottom: 36px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal h3 { font-size: 18px; margin: 24px 0 8px; font-family: "Nunito Sans", sans-serif; font-weight: 800; }
.legal p, .legal li { color: var(--muted); font-size: 16px; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 16px 22px; }
.legal li { margin-bottom: 8px; }
.legal b { color: var(--cream); }
.legal a { color: var(--accent); text-decoration: underline; }
.callout {
  background: var(--surface-2); border-left: 3px solid var(--accent);
  border-radius: 12px; padding: 16px 20px; margin: 20px 0; color: var(--muted); font-size: 15px;
}
.callout b { color: var(--cream); }
.todo { color: var(--accent); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero .cta-row { justify-content: center; }
  .hero-visual { order: -1; }
  .features { grid-template-columns: 1fr; }
  .feature.wide { grid-column: span 1; }
  .feature.wide p { max-width: 100%; }
  /* La tuile large redevient etroite : Boostie recouvrirait le texte. */
  .feature.wide .boostie-tile { display: none; }
  .steps { grid-template-columns: 1fr; }
  .nav-links .hide-sm { display: none; }
  /* Le telephone est centre en pleine largeur : Boostie se recale sur lui
     plutot que sur le bord de la colonne, sinon elle part hors ecran. */
  .boostie-hero { left: 50%; margin-left: -46vw; max-width: 150px; }
}

@media (max-width: 620px) {
  .fuel-grid { grid-template-columns: 1fr; }
  /* Les 3 cartes passent l'une sous l'autre : la fusee se met a gauche et le
     texte s'empile a sa droite. Grille (et non flex) parce que la carte a
     quatre enfants a repartir sur deux colonnes. */
  .fuel-card {
    display: grid; grid-template-columns: 84px 1fr;
    column-gap: 18px; align-items: center;
    text-align: left; padding: 20px;
  }
  .fuel-card .shell { grid-row: 1 / span 3; width: 84px; height: 84px; margin: 0; }
  .fuel-card .shell img { width: 54px; height: auto; }
  .fuel-card .lvl { justify-self: start; margin-bottom: 6px; }
}

/* Le systeme demande moins d'animation : Boostie se fige, comme dans l'app
   (Mascot ne clignote pas non plus quand MediaQuery.disableAnimations est vrai). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boostie-hero, .band .boostie-band { animation: none; }
}
