/*
Theme Name: Mizan
Theme URI: https://mizan.ma
Description: Thème officiel Mizan — comptabilité conforme pour les PME marocaines. Page d'accueil, tarif unique, téléchargements, compte client.
Author: Mizan
Version: 1.0.0
Text Domain: mizan
*/

/* ============ Base ============ */
:root {
  --teal: #0D9488;
  --teal-dark: #0F766E;
  --gold: #F59E0B;
  --ink: #0B1120;
  --muted: #5B6B7F;
  --bg: #F6F8FA;
  --card: #FFFFFF;
  --line: #E2E8F0;
  --radius: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
a { color: var(--teal); text-decoration: none; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
h1, h2, h3 { line-height: 1.2; font-weight: 800; letter-spacing: -0.4px; }
h2 { font-size: 32px; margin-bottom: 12px; }
.section-sub { color: var(--muted); max-width: 640px; margin-bottom: 40px; }

/* ============ Boutons ============ */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 12px;
  font-weight: 700; font-size: 15px; cursor: pointer; border: 0;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff !important; box-shadow: 0 8px 20px rgba(13,148,136,.3);
}
.btn-gold { background: linear-gradient(135deg, #F59E0B, #D97706); color: #fff !important; }
.btn-outline { border: 2px solid var(--teal); color: var(--teal) !important; background: transparent; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 900; }
.brand span {
  background: linear-gradient(90deg, var(--teal), #14B8A6, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.main-nav { margin-left: auto; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: 14.5px; }
.main-nav a:hover { color: var(--teal); }
.nav-cta { padding: 10px 20px; }

/* ============ Hero ============ */
.hero {
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(245,158,11,.14), transparent 60%),
    linear-gradient(135deg, #0D9488 0%, #0F766E 55%, #115E59 100%);
  color: #fff; padding: 90px 0 100px;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.15); font-size: 12px; font-weight: 800;
  letter-spacing: 1px; margin-bottom: 18px;
}
.hero h1 { font-size: 44px; margin-bottom: 18px; }
.hero p.lead { font-size: 17px; opacity: .92; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-outline { border-color: rgba(255,255,255,.7); color: #fff !important; }
.hero-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px; padding: 28px; backdrop-filter: blur(6px);
}
.hero-card h3 { margin-bottom: 14px; font-size: 18px; }
.hero-card ul { list-style: none; }
.hero-card li { padding: 8px 0 8px 30px; position: relative; font-size: 14.5px; }
.hero-card li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold); color: #fff; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ============ Stats ============ */
.stats { padding: 40px 0; background: #fff; border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { display: block; font-size: 30px; color: var(--teal); }
.stat span { color: var(--muted); font-size: 13.5px; }

/* ============ Grille cartes ============ */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 14px 34px rgba(11,17,32,.08); transform: translateY(-3px); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-size: 22px;
  background: rgba(13,148,136,.12); margin-bottom: 16px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ============ Étapes ============ */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; margin-bottom: 26px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff; font-weight: 900; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 17px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ============ Pricing ============ */
.pricing { background: linear-gradient(180deg, #fff, var(--bg)); }
.price-card {
  max-width: 520px; margin: 0 auto; background: #fff;
  border: 2px solid var(--teal); border-radius: 24px; padding: 40px;
  text-align: center; position: relative;
  box-shadow: 0 20px 50px rgba(13,148,136,.15);
}
.price-card .flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #fff; font-weight: 800; font-size: 12px;
  padding: 5px 16px; border-radius: 999px; letter-spacing: .6px;
}
.price { font-size: 52px; font-weight: 900; color: var(--teal-dark); margin: 10px 0 2px; }
.price small { font-size: 16px; color: var(--muted); font-weight: 600; }
.price-card ul { list-style: none; text-align: left; margin: 26px 0; }
.price-card li { padding: 9px 0 9px 30px; position: relative; font-size: 14.5px; }
.price-card li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--teal); font-weight: 900;
}
.secure { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

/* ============ Bande démo web ============ */
.demo-band {
  background: linear-gradient(135deg, var(--teal-dark, #0F766E), var(--teal));
  color: #fff; padding: 70px 0; text-align: center;
}
.demo-band h2, .demo-band .section-sub { color: #fff; }
.demo-band .section-sub { opacity: .92; }
.demo-band .btn-outline { border-color: rgba(255,255,255,.75); color: #fff !important; }
.demo-band .secure { color: rgba(255,255,255,.85); }

/* ============ Grille des paliers ============ */
.trial-banner {
  text-align: center; margin: 0 auto 30px; max-width: 560px;
  background: rgba(217,160,50,.12); border: 1px solid rgba(217,160,50,.4);
  color: var(--gold-dark, #9a6d14); padding: 12px 20px; border-radius: 999px; font-size: 15px;
}
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 30px 24px; text-align: center; position: relative;
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(13,148,136,.12); }
.plan-card.featured {
  border: 2px solid var(--teal);
  box-shadow: 0 20px 50px rgba(13,148,136,.16);
}
.plan-card .flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #fff; font-weight: 800; font-size: 11px;
  padding: 5px 16px; border-radius: 999px; letter-spacing: .6px; white-space: nowrap;
}
.plan-card h3 { font-size: 19px; }
.plan-card .price { font-size: 34px; font-weight: 900; color: var(--teal-dark); margin: 8px 0 2px; }
.plan-card .price small { font-size: 13px; color: var(--muted); font-weight: 600; }
.plan-card .plan-tag { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.plan-card ul { list-style: none; text-align: left; margin: 20px 0 24px; flex: 1; }
.plan-card li { padding: 7px 0 7px 26px; position: relative; font-size: 13.5px; }
.plan-card li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 900; }
.plan-card .btn { width: 100%; }
.pricing-note { text-align: center; max-width: 680px; margin: 30px auto 0; }
.pricing-note p { margin: 8px 0; }
@media (max-width: 1000px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .plans-grid { grid-template-columns: 1fr; } .trial-banner { border-radius: 16px; } }

/* ============ Téléchargements ============ */
.dl-card { text-align: center; }
.dl-card .os { font-size: 40px; margin-bottom: 10px; }
.dl-card .meta { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ============ FAQ ============ */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 22px; margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 700; font-size: 15.5px; list-style: none; }
.faq summary::before { content: "+"; color: var(--teal); font-weight: 900; margin-right: 10px; }
.faq details[open] summary::before { content: "−"; }
.faq details p { margin-top: 10px; color: var(--muted); font-size: 14.5px; }

/* ============ Formulaires / compte ============ */
.mizan-form { max-width: 440px; margin: 40px auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px; }
.mizan-form h1 { font-size: 24px; margin-bottom: 20px; text-align: center; }
.mizan-form label { display: block; font-weight: 600; font-size: 13.5px; margin: 14px 0 6px; }
.mizan-form input, .mizan-form textarea, .mizan-form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 14.5px; background: #F8FAFC;
}
.mizan-form input:focus { outline: 2px solid var(--teal); border-color: transparent; }
.mizan-form .btn { width: 100%; margin-top: 20px; }
.mizan-form .alt { text-align: center; margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.notice { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.notice.ok { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.notice.err { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }

/* ============ Footer ============ */
.site-footer { background: var(--ink); color: #94A3B8; padding: 50px 0 30px; margin-top: 60px; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 15px; }
.site-footer a { color: #94A3B8; display: block; padding: 3px 0; font-size: 13.5px; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { text-align: center; margin-top: 36px; padding-top: 20px; border-top: 1px solid #1E293B; font-size: 12.5px; }

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .hero .wrap, .grid, .grid-2, .site-footer .wrap { grid-template-columns: 1fr; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 32px; }
  .main-nav { display: none; }
}
