/* =========================
   Kursus UI — Global Styles
   v1.1 (unifié home + features + pricing)
   ========================= */

/* --- Variables (thème) --- */
:root{
  --bg1:#F5F7FB; --bg2:#EAF3FF;
  --ink:#0f172a; --muted:#64748b;
  --pri:#3B82F6; --pri-2:#6366F1; --accent:#06B6D4;
  --card:rgba(255,255,255,.85);
  --line:rgba(15,23,42,.08);
  --radius:20px;
}

/* --- Base / Reset léger --- */
*{ box-sizing:border-box }
html,body{ height:100% }
body{
  margin:0; font-family:Inter,system-ui,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--ink);
  background:linear-gradient(140deg,var(--bg1),var(--bg2));
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img{ max-width:100%; height:auto; display:block }
a{ color:inherit; text-decoration:none }
.wrap{ max-width:1120px; margin:0 auto; padding:0 24px }
.muted{ color:var(--muted) }

/* --- Utils --- */
.text-center{ text-align:center }
.mt-0{ margin-top:0 } .mt-1{ margin-top:8px } .mt-2{ margin-top:16px } .mt-3{ margin-top:24px } .mt-4{ margin-top:32px }
.mb-0{ margin-bottom:0 } .mb-1{ margin-bottom:8px } .mb-2{ margin-bottom:16px } .mb-3{ margin-bottom:24px } .mb-4{ margin-bottom:32px }

/* =========================
   Header / Navigation
   ========================= */
.header{
  position:sticky; top:0; z-index:10;
  backdrop-filter:saturate(180%) blur(10px);
  background:rgba(250,253,255,.6);
  border-bottom:1px solid var(--line);
}
.nav{ display:flex; align-items:center; justify-content:space-between; height:64px }
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.2px }
.brand .logo{
  width:28px; height:28px; border-radius:8px;
  background:radial-gradient(circle at 30% 30%, var(--accent), var(--pri));
  box-shadow:0 6px 20px rgba(59,130,246,.35);
}

/* Nav responsive */
@media (max-width:640px){
  .nav{ height:auto; padding:10px 0 }
  .nav > nav{ display:flex; gap:8px; flex-wrap:wrap; justify-content:center }
}

/* =========================
   Boutons (cohérents partout)
   ========================= */
.btn, .btn-outline, .primary, .ghost{
  padding:10px 18px; line-height:1.3;
  border-radius:10px; font-weight:600; display:inline-block; text-align:center;
}

/* Primary (plein) */
.primary{
  background:var(--pri); color:#fff;
  box-shadow:0 6px 16px rgba(59,130,246,.25);
  transition:filter .15s ease, transform .05s ease;
}
.primary:hover{ filter:brightness(1.05) }
.primary:active{ transform:translateY(1px) }

/* Outline */
.btn-outline{
  border:1px solid rgba(15,23,42,.12);
  background:transparent;
  transition:all .2s ease;
}
.btn-outline:hover{
  background:rgba(59,130,246,.08);
  border-color:rgba(59,130,246,.25);
  color:var(--pri);
}

/* Ghost */
.ghost{
  border:1px solid rgba(15,23,42,.14);
  background:rgba(255,255,255,.6);
}

/* Focus (accessibilité) */
a.btn-outline, .ghost, .primary{ outline:none }
a.btn-outline:focus-visible, .ghost:focus-visible, .primary:focus-visible{
  box-shadow:0 0 0 3px rgba(59,130,246,.35);
  border-radius:12px;
}

/* Conteneur CTA */
.k-cta{ display:flex; gap:14px; flex-wrap:wrap; margin-top:10px }
.k-cta.text-center{ justify-content:center }
.k-cta.make-space{ margin-top:48px; margin-bottom:16px }

/* =========================
   Hero (home & pages)
   ========================= */
.hero{ position:relative; overflow:hidden; padding:92px 0 64px; text-align:center }
.hero::before{
  content:''; position:absolute; inset:-30% -10% auto -10%; height:60%;
  background:
    radial-gradient(600px 400px at 10% 10%, rgba(99,102,241,.18), transparent 60%),
    radial-gradient(500px 380px at 90% 20%, rgba(6,182,212,.14), transparent 60%);
  pointer-events:none; z-index:0;
}
.hero .inner{ position:relative; z-index:1; display:grid; gap:28px; justify-items:center }

.k-badge{
  display:inline-flex; align-items:center; gap:10px; padding:8px 12px; border-radius:999px;
  background:rgba(255,255,255,.8); border:1px solid rgba(15,23,42,.1); font-size:.92rem; color:var(--muted);
}
.k-title{ font-size:clamp(34px,5vw,52px); line-height:1.05; margin:4px 0 8px; font-weight:900; letter-spacing:.2px }
.k-sub{ font-size:clamp(16px,2.4vw,20px); max-width:760px; color:var(--muted) }

/* Hero compact (features/pricing) */
.hero.slim{ padding:72px 0 24px }

/* Mock produit (home) */
.mock{
  margin-top:30px; width:min(960px,95%); background:var(--card);
  border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:0 18px 60px rgba(15,23,42,.12);
  padding:24px; backdrop-filter:blur(10px);
}
.mock-bar{ display:flex; gap:8px; margin-bottom:16px }
.dot{ width:10px; height:10px; border-radius:999px }
.dot.r{ background:#ef4444 } .dot.y{ background:#f59e0b } .dot.g{ background:#10b981 }
.mock-grid{ display:grid; grid-template-columns:1.3fr 1fr; gap:18px }
.card{ background:#fff; border:1px solid rgba(15,23,42,.06); border-radius:14px; padding:16px; min-height:120px }
.card h3{ margin:0 0 10px; font-size:1rem }
.stat{ font-weight:800; font-size:28px }

@media (max-width:900px){
  .mock-grid{ grid-template-columns:1fr }
  .k-sub{ padding:0 6px }
}

/* =========================
   Features (grilles & intro)
   ========================= */
.features{ padding:64px 0 }
.grid{ display:grid; gap:18px; grid-template-columns:repeat(3,1fr) }
@media (max-width:900px){ .grid{ grid-template-columns:1fr } }

.feat{
  background:#fff; border:1px solid rgba(15,23,42,.06);
  border-radius:16px; padding:20px;
}
.icon{
  width:38px; height:38px; border-radius:10px;
  background:linear-gradient(135deg, var(--pri), var(--pri-2));
  box-shadow:0 8px 18px rgba(99,102,241,.25);
  display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800;
  margin-bottom:10px;
}
.feat h4{ margin:0 0 6px }
.feat p{ margin:0; color:var(--muted) }

/* Intro avant les features */
.intro-fonctionnalites{ margin-bottom:40px; text-align:center }
.intro-fonctionnalites h2{
  font-size:clamp(24px, 4vw, 34px); font-weight:800; color:var(--ink); margin-bottom:10px;
}
.intro-fonctionnalites p{
  color:var(--muted); font-size:1.1rem; max-width:640px; margin:0 auto; line-height:1.5;
}

/* =========================
   Sections (features page)
   ========================= */
section.block{ padding:40px 0 }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px }
.grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px }
.card.section{ background:#fff; border:1px solid var(--line); border-radius:16px; padding:18px }
h2{ font-size:28px; margin:0 0 16px }
h3{ font-size:18px; margin:0 0 6px }
p{ margin:0 0 10px }
ul{ margin:0; padding-left:18px; color:var(--muted) }
.note{ font-size:.95rem; color:var(--muted) }

/* Onglets / pills (features header) */
.tabs{ display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin:20px 0 0 }
.pill{
  padding:10px 14px; border-radius:999px;
  border:1px solid var(--line); background:rgba(255,255,255,.7);
  font-weight:600;
}

/* =========================
   Pricing (pricing page)
   ========================= */
.hero.pricing .title{ font-size:clamp(32px,5vw,48px); font-weight:900; margin:8px 0 }
.hero.pricing .sub{ color:var(--muted); font-size:clamp(16px,2.4vw,20px) }

.toggle{ display:flex; gap:10px; justify-content:center; align-items:center; margin:22px 0 }
.switch{ position:relative; width:56px; height:30px; background:#e5e7eb; border-radius:999px; cursor:pointer }
.knob{
  position:absolute; top:3px; left:3px; width:24px; height:24px; border-radius:999px;
  background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.15); transition:transform .2s ease
}
.switch.on .knob{ transform:translateX(26px) }
.save{
  background:rgba(6,182,212,.12); color:#0e7490; padding:6px 10px; border-radius:999px;
  font-weight:600; border:1px solid rgba(14,116,144,.15)
}
.pricing .grid{ display:grid; gap:18px; grid-template-columns:repeat(3,1fr); padding:28px 0 8px }
.plan{
  background:#fff; border:1px solid var(--line); border-radius:18px; padding:22px;
  display:flex; flex-direction:column
}
.plan.highlight{ border-color:rgba(59,130,246,.4); box-shadow:0 16px 40px rgba(59,130,246,.18) }
.tag{
  display:inline-block; background:rgba(59,130,246,.1); color:#1d4ed8;
  border:1px solid rgba(59,130,246,.2); border-radius:999px; padding:6px 10px;
  font-weight:700; font-size:.9rem
}
.plan h3{ margin:12px 0 0; font-size:22px }
.price{ font-size:38px; font-weight:900; margin:8px 0 }
.per{ color:var(--muted); font-size:.95rem }
ul.features{ margin:14px 0 18px; padding-left:18px; color:var(--muted) }
.plan .cta{ margin-top:auto; display:flex; gap:10px; flex-wrap:wrap }

@media(max-width:1000px){ .pricing .grid{ grid-template-columns:1fr } }

.section{ padding:36px 0 }
.cards{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px }
.card{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:18px }
.card h4{ margin:0 0 6px }
@media(max-width:1000px){ .cards{ grid-template-columns:1fr 1fr } }
@media(max-width:620px){ .cards{ grid-template-columns:1fr } }

/* =========================
   Footer
   ========================= */
footer{
  padding:48px 0; color:var(--muted);
  border-top:1px solid var(--line); margin-top:40px
}
.foot{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap }
.social a{
  display:inline-block; padding:10px 14px; border:1px solid rgba(15,23,42,.12);
  border-radius:10px; margin-right:8px
}

/* =========================
   Liens (feedback global)
   ========================= */
a:hover{ color:#0f5bd3 }



/* Badges de statut */
.badges{ display:flex; gap:8px; flex-wrap:wrap; margin:8px 0 0 }
.badge{
  display:inline-block; padding:6px 10px; border-radius:999px;
  font-weight:700; font-size:.85rem; border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.7); color:#334155;
}
.badge.live{ border-color:rgba(16,185,129,.25); background:rgba(16,185,129,.10); color:#065f46 }
.badge.beta{ border-color:rgba(99,102,241,.25); background:rgba(99,102,241,.10); color:#3730a3 }
.badge.req{  border-color:rgba(2,132,199,.25);  background:rgba(2,132,199,.10); color:#075985 }
.badge.wip{  border-color:rgba(234,179,8,.25);  background:rgba(234,179,8,.12); color:#854d0e }



/* Section alt (fond doux) */
.block.alt { background: linear-gradient(140deg, rgba(255,255,255,.6), rgba(234,243,255,.6)); }

/* Carte “highlight” (mettre en avant la colonne Kursus) */
.card.highlight{
  border-color: rgba(59,130,246,.35);
  box-shadow: 0 16px 40px rgba(59,130,246,.18);
}

/* Lead text sous le bloc */
.lead{
  max-width: 760px;
  margin: 12px auto 0;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.55;
}
