/* Ayago — site vitrine. DA : bleu nuit + primaire électrique + or, typo Sora.
   Charte issue du thème de l'app. Édité directement sur le serveur. */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #050b16;
  --bg-2: #081324;
  --surface: #0e1a2d;
  --surface-2: #12203a;
  --border: #1e2c46;
  --border-soft: #17233b;
  --primary: #1e7bf2;
  --primary-2: #48a6ff;
  --ink: #f4efe3;          /* crème display */
  --text: #eaf0f8;
  --muted: #8b98ad;
  --gold: #e8b54a;
  --green: #2bd97b;
  --maxw: 1160px;
  --sora: 'Sora', sans-serif;
  --inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--inter);
  color: var(--text);
  line-height: 1.65;
  background-color: var(--bg);
  /* grain + halos superposés */
  background-image:
    radial-gradient(50% 40% at 12% -5%, rgba(30,123,242,.22), transparent 60%),
    radial-gradient(45% 45% at 100% 8%, rgba(232,181,74,.10), transparent 60%),
    radial-gradient(60% 50% at 50% 120%, rgba(30,123,242,.10), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* fin grain via overlay */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, header, footer, section { position: relative; z-index: 1; }

h1, h2, h3, h4, .brand, .num, .store .s-main, .step h4 { font-family: var(--sora); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(5, 11, 22, 0.66);
  border-bottom: 1px solid var(--border-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .2px; }
.brand img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 12px; font-weight: 600; font-size: 15px;
  font-family: var(--sora); border: 1px solid transparent; cursor: pointer;
  transition: transform .16s ease, box-shadow .22s ease, background .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; box-shadow: 0 12px 34px -10px rgba(30, 123, 242, .65);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 48px -12px rgba(30, 123, 242, .8); }
.btn-ghost { background: rgba(255,255,255,.03); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); }

/* ---------- store badges (officiels) ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.store-badge { display: inline-block; transition: transform .18s ease, filter .2s; }
.store-badge img { height: 56px; width: auto; display: block; border-radius: 12px; }
.store-badge:hover { transform: translateY(-3px); }
.store-badge.soon { position: relative; opacity: .5; filter: grayscale(.35); cursor: default; }
.store-badge.soon:hover { transform: none; }
.store-badge .tag { position: absolute; top: -9px; right: -9px; font-size: 10px; font-weight: 700;
  color: #06101f; background: var(--gold); border-radius: 999px; padding: 2px 10px; letter-spacing: .3px;
  box-shadow: 0 6px 16px -6px rgba(232,181,74,.8); }

/* ---------- hero ---------- */
.hero { min-height: calc(100svh - 74px); display: flex; align-items: center; padding: 24px 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; width: 100%; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--primary-2); background: rgba(30,123,242,.10);
  border: 1px solid rgba(30,123,242,.28); padding: 8px 15px; border-radius: 999px; margin-bottom: 26px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
h1 {
  font-size: clamp(30px, 4.4vw, 50px); line-height: 1.06; letter-spacing: -1px;
  color: var(--ink); font-weight: 800;
}
h1 .accent {
  background: linear-gradient(115deg, var(--primary-2) 10%, var(--gold) 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead { font-size: 17px; color: var(--muted); margin: 18px 0 26px; max-width: 520px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* corridors — sans emoji, badges code */
.corridors { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.corridor {
  display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500;
  color: var(--text); background: rgba(255,255,255,.02); border: 1px solid var(--border);
  padding: 8px 14px 8px 10px; border-radius: 999px;
}
.cc { font-family: var(--sora); font-weight: 700; font-size: 11px; letter-spacing: .5px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--surface-2), #0a1424); border: 1px solid var(--border); }
.corridor .arrow { color: var(--primary-2); font-weight: 700; }

/* ---------- maquette téléphone = écran d'accueil de l'app (réplique) ---------- */
.phone-wrap { display: flex; justify-content: center; }
/* rendu de l'app (image) — se cale sur la hauteur d'écran pour éviter le scroll */
.hero-shot { display: block; margin: 0 auto; width: auto; height: auto;
  max-width: min(440px, 100%); max-height: calc(100svh - 150px); }
.phone {
  position: relative; width: 300px; height: min(620px, calc(100svh - 140px)); border-radius: 44px;
  background: linear-gradient(160deg, #1a2b3d, #090f1d);
  border: 1px solid #26374f; padding: 11px; flex: none;
  box-shadow: 0 54px 120px -36px rgba(0,0,0,.9), 0 0 0 9px rgba(255,255,255,.015), inset 0 0 0 1px rgba(255,255,255,.03);
}
.phone .notch { position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 25px; background: #04070d; border-radius: 0 0 16px 16px; z-index: 3; }
.screen { height: 100%; border-radius: 34px; background: #060d1a;
  overflow: hidden; border: 1px solid #16233a; display: flex; flex-direction: column; }
.screen .scroll { flex: 1; overflow: hidden; }

/* drapeaux circulaires (SVG, pas d'emoji) */
.flag { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; flex: none;
  border: 1px solid rgba(255,255,255,.15); display: inline-block; }
.flag svg { width: 100%; height: 100%; display: block; }

/* en-tête accueil */
.ah { padding: 40px 16px 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ah .greet { font-family: var(--sora); font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.ah .sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.ah .acts { display: flex; align-items: center; gap: 10px; flex: none; }
.ah .bell { width: 22px; height: 22px; stroke: #cfd8e6; fill: none; }
.ah .avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: #12294a; border: 1px solid #2a4a6e; color: var(--primary-2); font-weight: 700; font-family: var(--sora); font-size: 15px; }

/* chips projets */
.chips { display: flex; gap: 8px; padding: 4px 16px 10px; overflow: hidden; }
.chip2 { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 12px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap; border: 1px solid #22304a; color: var(--muted); background: rgba(255,255,255,.02); }
.chip2.sel { border-color: var(--primary); color: var(--text); background: rgba(30,123,242,.10); }
.chip2 .pin { width: 13px; height: 13px; stroke: var(--primary-2); fill: none; }
.chip2 .flag { width: 18px; height: 18px; }

/* carte projet */
.pcard { margin: 6px 16px; background: #0e1a2d; border: 1px solid #1d2c47; border-radius: 20px; padding: 16px; }
.pcard .cor { display: flex; align-items: center; gap: 8px; }
.pcard .cor .name { font-family: var(--sora); font-size: 18px; font-weight: 800; color: #fff; }
.pcard .cor .plane { width: 20px; height: 20px; stroke: var(--primary-2); fill: none; margin: 0 2px; }
.pcard .visa { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.pcard .visa svg { width: 15px; height: 15px; stroke: var(--muted); fill: none; }
.pcard .visa b { color: var(--primary-2); font-weight: 700; }
.diag { margin-top: 14px; background: #16233a; border-radius: 14px; padding: 12px 14px; }
.diag .r { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; }
.diag .r + .r { border-top: 1px solid #22304a; }
.diag .r .k { font-size: 13px; color: var(--muted); }
.diag .r .v { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; }
.diag .dot { width: 8px; height: 8px; border-radius: 50%; }
.d-red { color: #f0554d; } .d-red .dot { background: #f0554d; }
.d-gold { color: var(--gold); } .d-gold .dot { background: var(--gold); }
.unlock { margin-top: 14px; text-align: center; font-family: var(--sora); font-weight: 700; font-size: 14.5px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-radius: 14px; padding: 13px;
  box-shadow: 0 12px 26px -12px rgba(30,123,242,.7); }

/* outils */
.tools-t { font-family: var(--sora); font-weight: 800; font-size: 19px; color: var(--ink); margin: 16px 16px 8px; }
.tools { display: flex; gap: 10px; margin: 0 16px; }
.tool { flex: 1; background: #0e1a2d; border: 1px solid #1d2c47; border-radius: 16px; padding: 16px 8px; text-align: center; }
.tool svg { width: 24px; height: 24px; stroke: var(--primary-2); fill: none; margin: 0 auto 8px; }
.tool span { font-size: 12px; color: #c7cfdc; line-height: 1.3; display: block; }

/* barre de navigation */
.bnav { display: flex; border-top: 1px solid #16233a; background: #070f1d; padding: 8px 0 10px; }
.bnav a { flex: 1; text-align: center; font-size: 10px; color: var(--muted); }
.bnav a svg { width: 21px; height: 21px; stroke: currentColor; fill: none; display: block; margin: 0 auto 3px; }
.bnav a.on { color: var(--primary-2); }

/* ---- aperçu marketing (résumé « Ton projet ») ---- */
.mk-head { padding: 46px 20px 14px; }
.mk-greet { font-size: 13px; color: var(--muted); }
.mk-title { font-family: var(--sora); font-size: 23px; color: var(--ink); font-weight: 800; margin-top: 2px; }
.mk-card { margin: 12px 18px; background: rgba(255,255,255,.03); border: 1px solid #1d2c47; border-radius: 20px; padding: 17px; }
.mk-chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; font-family: var(--sora);
  color: var(--primary-2); background: rgba(30,123,242,.12); border: 1px solid rgba(30,123,242,.25); border-radius: 999px; padding: 6px 13px; }
.mk-row { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; }
.mk-row .k { font-size: 13.5px; color: var(--muted); }
.mk-row .v { font-size: 14.5px; font-weight: 700; font-family: var(--sora); color: var(--ink); }
.mk-row .v.gold { color: var(--gold); }
.mk-bar { height: 9px; border-radius: 999px; background: #14203a; margin-top: 12px; overflow: hidden; }
.mk-bar > i { display: block; height: 100%; width: 62%; border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2)); box-shadow: 0 0 14px rgba(30,123,242,.6); }
.mk-mini { display: flex; gap: 10px; margin: 14px 18px 0; }
.mk-mini > div { flex: 1; background: rgba(255,255,255,.03); border: 1px solid #1d2c47; border-radius: 15px;
  padding: 13px 6px; text-align: center; font-size: 11px; color: var(--muted); }
.mk-mini b { display: block; font-family: var(--sora); color: var(--ink); font-size: 19px; }
.mk-cta { margin: 16px 18px 0; text-align: center; font-family: var(--sora); font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-radius: 15px; padding: 14px;
  box-shadow: 0 14px 30px -12px rgba(30,123,242,.7); }

/* ---------- sections ---------- */
section.block { padding: 92px 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); color: var(--ink); letter-spacing: -.5px; line-height: 1.12; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 17.5px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature {
  position: relative; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008));
  border: 1px solid var(--border); border-radius: 22px; padding: 30px;
  transition: transform .2s ease, border-color .2s, box-shadow .25s; overflow: hidden;
}
.feature::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(72,166,255,.5), transparent); opacity: 0; transition: opacity .25s; }
.feature:hover { transform: translateY(-5px); border-color: rgba(72,166,255,.5);
  box-shadow: 0 24px 50px -26px rgba(30,123,242,.55); }
.feature:hover::after { opacity: 1; }
.ficon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(30,123,242,.22), rgba(30,123,242,.06));
  border: 1px solid rgba(72,166,255,.25); margin-bottom: 18px;
}
.ficon svg { width: 27px; height: 27px; stroke: var(--primary-2); fill: none; }
.feature h3 { font-size: 20px; color: #fff; font-weight: 700; }
.feature p { color: var(--muted); margin-top: 9px; font-size: 15px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { text-align: center; padding: 12px; }
.step .num { width: 50px; height: 50px; margin: 0 auto 16px; border-radius: 16px;
  display: grid; place-items: center; font-weight: 800; font-size: 19px; color: #06101f;
  background: linear-gradient(135deg, var(--gold), #f4d488); box-shadow: 0 14px 30px -14px rgba(232,181,74,.7); }
.step h4 { color: var(--ink); font-size: 19px; }
.step p { color: var(--muted); margin-top: 9px; font-size: 15px; }

/* download band */
.download { text-align: center; }
.download .panel {
  position: relative; overflow: hidden;
  background: radial-gradient(80% 130% at 50% 0%, rgba(30,123,242,.20), transparent 65%), linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: 32px; padding: 64px 26px;
}
.download h2 { font-size: clamp(28px, 3.6vw, 44px); color: var(--ink); letter-spacing: -.5px; }
.download p { color: var(--muted); margin: 16px auto 32px; max-width: 540px; font-size: 17.5px; }
.download .stores { justify-content: center; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border-soft); background: #04080f; padding: 58px 0 36px; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 34px; }
.foot-brand { max-width: 330px; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { color: var(--muted); font-size: 14.5px; }
.foot-col h5 { font-family: var(--sora); font-size: 13px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--muted); font-size: 15px; margin-bottom: 11px; transition: color .2s; }
.foot-col a:hover { color: var(--text); }
.legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border-soft);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; }
.legal a { color: var(--muted); } .legal a:hover { color: var(--text); }

/* ---------- legal pages ---------- */
.doc { padding: 64px 0 88px; }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 8px; color: var(--ink); letter-spacing: -.5px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.doc h2 { color: var(--ink); font-size: 22px; margin: 38px 0 12px; }
.doc p, .doc li { color: #c3cddb; font-size: 16px; }
.doc ul { margin: 10px 0 10px 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--primary-2); }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 30px; font-weight: 500; }
.back:hover { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { min-height: calc(100svh - 64px); padding: 14px 0 18px; }
  .hero-grid { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .hero .stores { justify-content: center; }
  .hero p.lead { margin: 14px auto 20px; }
  .phone { width: 270px; height: min(560px, 54svh); }
  .hero-shot { max-width: 82%; max-height: 56svh; }
  .nav-links { display: none; }
  .features { grid-template-columns: 1fr; }
}
@media (max-height: 700px) and (min-width: 901px) {
  .phone { height: calc(100svh - 130px); }
}
