/* ========== Base ========== */
:root {
  --bg: #0a0b14;
  --bg-2: #11131f;
  --card: #161927;
  --border: #262a3d;
  --text: #f3f4f8;
  --muted: #a3a8bf;
  --accent: #7c3aed;
  --accent-2: #ec4899;
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --wa: #25d366;
  --radius: 16px;
  --wrap: 1180px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.ic { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sprite { display: none; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ========== Boutons ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(236, 72, 153, .6); }
.btn-outline { border: 1px solid var(--border); background: rgba(255,255,255,.03); }
.btn-outline:hover { border-color: var(--accent); }
.btn-wa { background: var(--wa); color: #062b14; }
.btn-block { width: 100%; }

/* ========== Header ========== */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(10, 11, 20, .75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.site-header.scrolled { border-color: var(--border); background: rgba(10, 11, 20, .95); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -.5px; display: flex; align-items: center; gap: 8px; }
.logo-mark { width: 34px; height: 34px; box-sizing: border-box; border: 3px solid transparent; border-radius: 10px; background: linear-gradient(#0a0b14, #0a0b14) padding-box, linear-gradient(110deg, #7d18f2, #f70cac) border-box; display: grid; place-items: center; }
.logo-mark .ic { width: 16px; height: 16px; fill: #fff; stroke: none; }
.main-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.main-nav a { color: var(--muted); font-weight: 600; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.lang-switch { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.lang-switch a { padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.lang-switch a.current { background: var(--grad); color: #fff; }
.header-cta { padding: 10px 20px; font-size: .9rem; }
.menu-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }

/* ========== Hero ========== */
.hero { position: relative; overflow: hidden; padding: 90px 0 110px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(124, 58, 237, .35), transparent 65%); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -15%; bottom: -30%; width: 50vw; height: 50vw; max-width: 600px; max-height: 600px;
  background: radial-gradient(circle, rgba(236, 72, 153, .22), transparent 65%); pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(124, 58, 237, .15); border: 1px solid rgba(124, 58, 237, .4); color: #c4b5fd; font-size: .85rem; font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.1; letter-spacing: -1px; margin-bottom: 20px; }
.hero p.lead { color: var(--muted); font-size: 1.15rem; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 32px; color: var(--muted); font-size: .95rem; }
.hero-points span { display: flex; align-items: center; gap: 6px; }
.hero-points .ic { width: 18px; height: 18px; color: var(--wa); }

.screen {
  position: relative; aspect-ratio: 16 / 10; border-radius: 20px; padding: 14px;
  background: linear-gradient(160deg, #1d2035, #0f111c); border: 1px solid var(--border);
  box-shadow: 0 40px 80px -30px rgba(124, 58, 237, .5);
}
.screen-inner { height: 100%; border-radius: 12px; background: #07080f; padding: 14px; display: grid; grid-template-rows: auto 1fr auto; gap: 12px; overflow: hidden; }
.screen-bar { display: flex; gap: 6px; }
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2b2f45; }
.screen-feature { position: relative; overflow: hidden; border-radius: 10px; background: linear-gradient(120deg, #4c1d95, #be185d); display: grid; place-items: center; }
.screen-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(76, 29, 149, .35), rgba(190, 24, 93, .25)); }
.play { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; backdrop-filter: blur(4px); }
.play .ic { fill: #fff; stroke: none; width: 26px; height: 26px; margin-left: 4px; }
.screen-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.screen-row i, .screen-row img { aspect-ratio: 16 / 10; border-radius: 6px; width: 100%; height: auto; object-fit: cover; }
.screen-row i:nth-child(1) { background: linear-gradient(135deg, #0ea5e9, #312e81); }
.screen-row i:nth-child(2) { background: linear-gradient(135deg, #f97316, #7c2d12); }
.screen-row i:nth-child(3) { background: linear-gradient(135deg, #10b981, #064e3b); }
.screen-row i:nth-child(4) { background: linear-gradient(135deg, #eab308, #713f12); }

/* ========== Sections ========== */
section { padding: 90px 0; }
.section-alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.eyebrow { color: var(--accent-2); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; margin-bottom: 10px; display: block; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.2; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Cartes génériques */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(124, 58, 237, .6); }
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(124, 58, 237, .15); color: #c4b5fd; margin-bottom: 18px; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--muted); }

/* Appareils */
.device { text-align: center; padding: 26px 12px; }
.device .card-icon { margin: 0 auto 14px; }
.device h3 { font-size: 1rem; margin: 0; }

/* Catalogue */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: flex-end; padding: 20px; font-weight: 800; font-size: 1.25rem;
  transition: transform .25s;
}
.cat:hover { transform: scale(1.03); }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat:hover img { transform: scale(1.06); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), transparent 60%); }
.cat span { position: relative; z-index: 1; }
.cat-1 { background: linear-gradient(135deg, #7c3aed, #1e1b4b); }
.cat-2 { background: linear-gradient(135deg, #ec4899, #4a044e); }
.cat-3 { background: linear-gradient(135deg, #0ea5e9, #0c4a6e); }
.cat-4 { background: linear-gradient(135deg, #f59e0b, #78350f); }
.cat-5 { background: linear-gradient(135deg, #10b981, #064e3b); }
.cat-6 { background: linear-gradient(135deg, #ef4444, #450a0a); }

/* ========== Tarifs ========== */
.pricing { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 32px 24px;
  transition: transform .25s, border-color .25s;
}
.plan:hover { transform: translateY(-6px); }
.plan.featured { border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; }
.plan-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: .75rem; font-weight: 800; padding: 5px 14px; border-radius: 999px; white-space: nowrap; text-transform: uppercase; letter-spacing: 1px; }
.plan h3 { font-size: 1.15rem; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.price { font-size: 1.6rem; font-weight: 800; min-height: 60px; display: flex; align-items: baseline; gap: 4px; }
.price .amount { font-size: 2.8rem; line-height: 1; }
.price .cur { font-size: 1.3rem; color: var(--muted); }
.permonth { color: var(--muted); font-size: .9rem; min-height: 22px; margin-bottom: 20px; }
.plan ul { list-style: none; display: grid; gap: 12px; margin-bottom: 28px; flex: 1; }
.plan-trial ul { align-content: start; }
.plan-trial .permonth { min-height: 2lh; }
.plan-trial .btn:disabled { opacity: .65; cursor: not-allowed; }
.plan li .ic { flex-shrink: 0; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: #d6d8e5; font-size: .95rem; }
.plan li .ic { width: 18px; height: 18px; color: var(--wa); margin-top: 3px; }
.pricing-note { text-align: center; color: var(--muted); margin-top: 30px; font-size: .95rem; }

/* ========== Étapes ========== */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 60px; }
.step::before {
  counter-increment: s; content: counter(s); position: absolute; top: 24px; left: 28px;
  width: 40px; height: 40px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 800;
}

/* ========== FAQ ========== */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 0 24px; }
.faq details[open] { border-color: rgba(124, 58, 237, .6); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; }

/* ========== CTA ========== */
.cta-box {
  border-radius: 24px; padding: 60px 30px; text-align: center;
  background: radial-gradient(circle at top, rgba(236, 72, 153, .3), transparent 60%), linear-gradient(135deg, #2e1065, #1e1b4b);
  border: 1px solid rgba(124, 58, 237, .5);
}
.cta-box h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 12px; }
.cta-box p { color: #d4d4f0; margin-bottom: 28px; }
.cta-phone { margin-top: 16px; color: #d4d4f0; font-size: .95rem; }

/* ========== Footer ========== */
.site-footer { border-top: 1px solid var(--border); padding: 60px 0 30px; background: #07080f; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.footer-grid h4 { margin-bottom: 14px; font-size: 1rem; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a, .footer-grid p { color: var(--muted); font-size: .95rem; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; color: var(--muted); font-size: .85rem; text-align: center; }

/* ========== Bouton WhatsApp flottant ========== */
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .ic { width: 28px; height: 28px; }

/* ========== Cookies ========== */
.cookie-banner {
  position: fixed; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 70; max-width: 420px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px;
  display: flex; gap: 14px; align-items: center; box-shadow: 0 20px 40px rgba(0,0,0,.5); font-size: .88rem; color: var(--muted);
}
.cookie-banner a { color: var(--text); text-decoration: underline; }
.cookie-banner button { padding: 10px 18px; font-size: .85rem; }

/* ========== Pages légales ========== */
.legal { padding: 60px 0 90px; }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 10px; }
.legal .updated { color: var(--muted); margin-bottom: 30px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.legal-toc a { padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); font-size: .9rem; font-weight: 600; }
.legal-toc a:hover { border-color: var(--accent); }
.legal section { padding: 30px 0; border-top: 1px solid var(--border); scroll-margin-top: 90px; }
.legal h2 { font-size: 1.5rem; margin-bottom: 14px; }
.legal h3 { font-size: 1.1rem; margin: 18px 0 8px; }
.legal p, .legal li { color: #cfd2e0; margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.legal .fill { background: rgba(236, 72, 153, .15); color: #f9a8d4; padding: 0 4px; border-radius: 4px; }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .pricing { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; margin-left: auto; }
  .header-cta { display: none; }
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #0a0b14; border-bottom: 1px solid var(--border); padding: 10px 20px 20px; margin: 0;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .main-nav .lang-switch { margin-top: 16px; align-self: flex-start; }
  .main-nav .lang-switch a { border: 0; padding: 6px 14px; }
  .hero { padding: 50px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 70px 0; }
}
@media (max-width: 600px) {
  .pricing, .grid-3 { grid-template-columns: 1fr; }
  .grid-6, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-banner { left: 12px; right: 84px; flex-direction: column; align-items: stretch; }
  .card { padding: 22px; }
}

main > section:not(.hero) { padding-block: clamp(42px, 5vw, 56px); }
main > section:not(.hero) .section-head { margin-bottom: clamp(30px, 4vw, 38px); }

/* Hero to pricing spacing */
.hero:has(+ .pricing-section) { padding-bottom: clamp(24px, 4vw, 48px); }
.hero + .pricing-section { padding-top: clamp(24px, 4vw, 48px); }
