/* ============================================================================
   MaZone — site vitrine (apex public). Thème sombre premium, dégradés,
   glassmorphism, mockup animé. Zéro dépendance externe (police système).
   ========================================================================== */

.mk {
    --ink: #e8eaf6;
    --ink-soft: #a9b0d6;
    --bg: #070912;
    --bg-2: #0d1124;
    --card: rgba(255, 255, 255, 0.04);
    --card-brd: rgba(255, 255, 255, 0.10);
    --i1: #6366f1; /* indigo  */
    --i2: #a855f7; /* violet  */
    --i3: #ec4899; /* pink    */
    --i4: #22d3ee; /* cyan    */
    --grad: linear-gradient(110deg, var(--i1), var(--i2) 45%, var(--i3));
    --maxw: 1180px;

    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.mk * { box-sizing: border-box; }
.mk a { color: inherit; text-decoration: none; }
.mk img { max-width: 100%; display: block; }

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

/* ── Boutons ─────────────────────────────────────────────────────────────── */
.mk-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.98rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s;
    white-space: nowrap;
}
.mk-btn--primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 12px 34px -10px rgba(124, 58, 237, 0.7);
}
.mk-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -10px rgba(124, 58, 237, 0.85); }
.mk-btn--ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--card-brd);
    color: var(--ink);
}
.mk-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.mk-btn--xl { padding: 1.05rem 2rem; font-size: 1.05rem; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.mk-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 14px 0;
    backdrop-filter: blur(14px);
    background: rgba(7, 9, 18, 0.55);
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s;
}
.mk-nav.is-scrolled {
    background: rgba(7, 9, 18, 0.9);
    border-bottom-color: var(--card-brd);
}
.mk-nav__inner { display: flex; align-items: center; justify-content: space-between; }
.mk-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.2rem; }
.mk-brand__mark {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 11px;
    background: var(--grad);
    color: #fff; font-weight: 900;
    box-shadow: 0 8px 22px -8px rgba(124, 58, 237, 0.8);
}
.mk-brand--sm { font-size: 1.05rem; }
.mk-nav__links { display: flex; align-items: center; gap: 1.6rem; }
.mk-nav__links a { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.mk-nav__links a:hover { color: #fff; }
.mk-nav__links .mk-btn { color: var(--ink); }

.mk-burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.mk-burger span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink); border-radius: 2px; transition: 0.25s; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.mk-hero { position: relative; padding: 96px 0 80px; overflow: hidden; }
.mk-hero__aurora {
    position: absolute; inset: -20% -10% auto -10%; height: 720px; z-index: 0;
    filter: blur(90px); opacity: 0.55; pointer-events: none;
}
.mk-hero__aurora::before,
.mk-hero__aurora::after {
    content: ""; position: absolute; border-radius: 50%;
}
.mk-hero__aurora::before {
    width: 540px; height: 540px; left: 8%; top: 0;
    background: radial-gradient(circle, var(--i1), transparent 65%);
    animation: mkFloat 14s ease-in-out infinite;
}
.mk-hero__aurora::after {
    width: 600px; height: 600px; right: 4%; top: 60px;
    background: radial-gradient(circle, var(--i3), transparent 65%);
    animation: mkFloat 18s ease-in-out infinite reverse;
}
@keyframes mkFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(30px, 40px, 0) scale(1.08); }
}

.mk-hero__inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.mk-eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0.9rem; border-radius: 999px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--card-brd);
    font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.03em;
}
.mk-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--i4); box-shadow: 0 0 12px var(--i4); }
.mk-hero__title {
    margin: 1.1rem 0 0;
    font-size: clamp(2.4rem, 5.4vw, 4rem);
    line-height: 1.05; font-weight: 850; letter-spacing: -0.02em;
}
.mk-grad {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mk-hero__sub {
    margin: 1.4rem 0 0; max-width: 33rem;
    font-size: 1.12rem; line-height: 1.6; color: var(--ink-soft);
}
.mk-cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.mk-hero__note { margin-top: 1.1rem; font-size: 0.85rem; color: var(--ink-soft); }
.mk-hero__note i { color: #34d399; }

/* ── Mockup app animé (à la place d'une vraie vidéo) ─────────────────────── */
.mk-mock { position: relative; perspective: 1400px; }
.mk-mock__win {
    border-radius: 18px;
    background: linear-gradient(180deg, #141a33, #0c1022);
    border: 1px solid var(--card-brd);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    transform: rotateY(-13deg) rotateX(6deg);
    transition: transform 0.6s ease;
    animation: mkTilt 9s ease-in-out infinite;
}
@keyframes mkTilt {
    0%, 100% { transform: rotateY(-13deg) rotateX(6deg) translateY(0); }
    50% { transform: rotateY(-7deg) rotateX(3deg) translateY(-10px); }
}
.mk-mock__bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--card-brd); }
.mk-mock__bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3358; }
.mk-mock__bar i:nth-child(1) { background: #ef4444; }
.mk-mock__bar i:nth-child(2) { background: #f59e0b; }
.mk-mock__bar i:nth-child(3) { background: #22c55e; }
.mk-mock__body { padding: 18px; }
.mk-mock__hi { font-weight: 800; font-size: 1.05rem; }
.mk-mock__hi small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 0.78rem; margin-top: 2px; }
.mk-mock__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.mk-mock__tile {
    display: flex; align-items: center; gap: 10px;
    padding: 12px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.035); border: 1px solid var(--card-brd);
    opacity: 0; transform: translateY(10px);
    animation: mkTileIn 0.6s ease forwards;
}
.mk-mock__tile:nth-child(1) { animation-delay: 0.2s; }
.mk-mock__tile:nth-child(2) { animation-delay: 0.35s; }
.mk-mock__tile:nth-child(3) { animation-delay: 0.5s; }
.mk-mock__tile:nth-child(4) { animation-delay: 0.65s; }
.mk-mock__tile:nth-child(5) { animation-delay: 0.8s; }
.mk-mock__tile:nth-child(6) { animation-delay: 0.95s; }
@keyframes mkTileIn { to { opacity: 1; transform: none; } }
.mk-mock__ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 1rem; flex: none; }
.mk-mock__tile b { font-size: 0.86rem; }
.mk-mock__tile span { display: block; font-size: 0.72rem; color: var(--ink-soft); }
.mk-float {
    position: absolute; padding: 10px 14px; border-radius: 12px;
    background: rgba(20, 26, 51, 0.92); border: 1px solid var(--card-brd);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.7);
    font-size: 0.82rem; font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.mk-float i { font-size: 1.1rem; }
.mk-float--a { top: 8%; left: -34px; animation: mkFloat 7s ease-in-out infinite; }
.mk-float--b { bottom: 10%; right: -28px; animation: mkFloat 9s ease-in-out infinite reverse; }
.mk-float--a i { color: #34d399; }
.mk-float--b i { color: var(--i3); }

/* ── Sections génériques ─────────────────────────────────────────────────── */
.mk-section { position: relative; padding: 84px 0; }
.mk-section--alt { background: linear-gradient(180deg, transparent, var(--bg-2) 12%, var(--bg-2) 88%, transparent); }
.mk-section__head { text-align: center; max-width: 42rem; margin: 0 auto 56px; }
.mk-kicker {
    text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem;
    font-weight: 800; color: var(--i2);
}
.mk-h2 { margin: 0.7rem 0 0; font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 820; letter-spacing: -0.01em; }
.mk-lead { margin: 1rem 0 0; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; }

/* ── Reveal au scroll ────────────────────────────────────────────────────── */
.mk-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.mk-reveal.is-in { opacity: 1; transform: none; }
.mk-reveal[data-d="1"] { transition-delay: 0.08s; }
.mk-reveal[data-d="2"] { transition-delay: 0.16s; }
.mk-reveal[data-d="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
    .mk-reveal { opacity: 1; transform: none; transition: none; }
    .mk-mock__win, .mk-hero__aurora::before, .mk-hero__aurora::after,
    .mk-float, .mk-mock__tile { animation: none; }
}

/* ── Grille modules ──────────────────────────────────────────────────────── */
.mk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mk-feature {
    padding: 26px; border-radius: 18px;
    background: var(--card); border: 1px solid var(--card-brd);
    transition: transform 0.25s ease, border-color 0.25s, background 0.25s;
}
.mk-feature:hover { transform: translateY(-6px); border-color: rgba(168, 85, 247, 0.5); background: rgba(255, 255, 255, 0.06); }
.mk-feature__icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center; font-size: 1.5rem; color: #fff; margin-bottom: 16px;
}
.mk-feature h3 { margin: 0 0 0.4rem; font-size: 1.16rem; font-weight: 750; }
.mk-feature p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; }

/* ── Démo ────────────────────────────────────────────────────────────────── */
.mk-demo-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.mk-demo-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.mk-demo-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--card-brd); }
.mk-demo-list li:last-child { border-bottom: 0; }
.mk-demo-list .n {
    width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center;
    background: rgba(99, 102, 241, 0.18); color: #c7d2fe; font-weight: 800; font-size: 0.85rem;
}
.mk-demo-list b { font-size: 1rem; }
.mk-demo-list span { display: block; color: var(--ink-soft); font-size: 0.9rem; margin-top: 2px; }
.mk-video {
    position: relative; border-radius: 20px; overflow: hidden;
    border: 1px solid var(--card-brd);
    background: radial-gradient(120% 120% at 30% 0%, #1b2347, #0a0e1f);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
    aspect-ratio: 16 / 10;
}
.mk-video video { width: 100%; height: 100%; object-fit: cover; }
.mk-video__ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.mk-video__play {
    width: 84px; height: 84px; border-radius: 50%;
    display: grid; place-items: center; color: #fff; font-size: 2rem;
    background: var(--grad); box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.55);
    animation: mkPulse 2.4s ease-out infinite;
}
@keyframes mkPulse {
    0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.55); }
    70% { box-shadow: 0 0 0 26px rgba(168, 85, 247, 0); }
    100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}
.mk-video__ph p { margin: 16px 0 0; color: var(--ink-soft); font-weight: 600; }

/* ── Stats ───────────────────────────────────────────────────────────────── */
.mk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mk-stat { text-align: center; padding: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--card-brd); }
.mk-stat b { display: block; font-size: 2.1rem; font-weight: 850; }
.mk-stat span { color: var(--ink-soft); font-size: 0.92rem; }

/* ── Tarifs ──────────────────────────────────────────────────────────────── */
.mk-price {
    max-width: 460px; margin: 0 auto; text-align: center;
    padding: 40px 32px; border-radius: 22px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.14), var(--card));
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 40px 90px -36px rgba(124, 58, 237, 0.6);
}
.mk-price__amt { font-size: 3rem; font-weight: 880; margin: 0.4rem 0; }
.mk-price__amt small { font-size: 1rem; color: var(--ink-soft); font-weight: 600; }
.mk-price ul { list-style: none; padding: 0; margin: 22px 0; text-align: left; }
.mk-price li { padding: 8px 0; color: var(--ink-soft); display: flex; gap: 10px; }
.mk-price li i { color: #34d399; }

/* ── CTA final ───────────────────────────────────────────────────────────── */
.mk-cta {
    position: relative; overflow: hidden;
    margin: 0 auto; max-width: var(--maxw);
    padding: 64px 40px; border-radius: 28px; text-align: center;
    background: var(--grad);
    box-shadow: 0 40px 100px -40px rgba(124, 58, 237, 0.8);
}
.mk-cta h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 850; color: #fff; }
.mk-cta p { margin: 1rem auto 2rem; max-width: 34rem; color: rgba(255, 255, 255, 0.9); }
.mk-cta .mk-btn--primary { background: #fff; color: #4f1d96; box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.5); }

/* ── Formulaire / pages contenu ──────────────────────────────────────────── */
.mk-page { padding: 72px 0; }
.mk-card {
    background: var(--card); border: 1px solid var(--card-brd);
    border-radius: 20px; padding: 32px;
}
.mk-form { display: grid; gap: 16px; max-width: 620px; }
.mk-form label { font-weight: 700; font-size: 0.9rem; display: block; margin-bottom: 6px; }
.mk-form input, .mk-form textarea {
    width: 100%; padding: 13px 15px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--card-brd);
    color: var(--ink); font: inherit; font-size: 0.98rem; outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.mk-form input:focus, .mk-form textarea:focus { border-color: var(--i2); background: rgba(255, 255, 255, 0.07); }
.mk-form textarea { resize: vertical; min-height: 150px; }
.mk-alert { padding: 14px 18px; border-radius: 12px; font-weight: 600; margin-bottom: 20px; }
.mk-alert--ok { background: rgba(52, 211, 153, 0.14); border: 1px solid rgba(52, 211, 153, 0.45); color: #6ee7b7; }
.mk-alert--err { background: rgba(239, 68, 68, 0.14); border: 1px solid rgba(239, 68, 68, 0.45); color: #fca5a5; }

.mk-legal { max-width: 800px; }
.mk-legal h1 { font-size: 2.1rem; font-weight: 820; }
.mk-legal h2 { margin-top: 2.2rem; font-size: 1.3rem; font-weight: 750; color: #fff; }
.mk-legal p, .mk-legal li { color: var(--ink-soft); line-height: 1.7; }
.mk-legal a { color: #c4b5fd; text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 920px) {
    .mk-hero__inner, .mk-demo-wrap { grid-template-columns: 1fr; }
    .mk-mock { margin-top: 28px; }
    .mk-grid { grid-template-columns: 1fr 1fr; }
    .mk-stats { grid-template-columns: 1fr 1fr; }
    .mk-float--a { left: 0; }
    .mk-float--b { right: 0; }
}
@media (max-width: 680px) {
    .mk-nav__links {
        position: fixed; inset: 64px 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: rgba(7, 9, 18, 0.98); border-bottom: 1px solid var(--card-brd);
        padding: 10px 24px 22px; transform: translateY(-130%); transition: transform 0.3s ease;
    }
    .mk.menu-open .mk-nav__links { transform: none; }
    .mk-nav__links a { padding: 14px 0; border-bottom: 1px solid var(--card-brd); }
    .mk-nav__links .mk-btn { justify-content: center; margin-top: 12px; }
    .mk-burger { display: block; }
    .mk-grid, .mk-stats { grid-template-columns: 1fr; }
    .mk-cta { padding: 48px 24px; border-radius: 22px; }
    .mk-section { padding: 60px 0; }
}
