/* =====================================================
   InSkillOps — Landing page (dark premium)
   ===================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0b0d17;
    --bg-alt: #101322;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.09);
    --text: #f4f5f9;
    --text-muted: #9aa1b5;
    --accent-1: #6d5cff;
    --accent-2: #a855f7;
    --gradient: linear-gradient(120deg, var(--accent-1), var(--accent-2));
    --radius: 16px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Accessibilité ---------- */
.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--accent-1); color: #fff; padding: 10px 18px;
    border-radius: 0 0 8px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 10px 20px; border-radius: 10px;
    font-weight: 600; font-size: 0.95rem; text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 1.05rem; border-radius: 12px; }
.btn-primary {
    background: var(--gradient); color: #fff;
    box-shadow: 0 8px 24px rgba(109, 92, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(109, 92, 255, 0.5); }
.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }
.btn-outline {
    border: 1px solid var(--border); color: var(--text);
    background: var(--surface);
}
.btn-outline:hover { background: var(--surface-hover); transform: translateY(-2px); }
.btn-light { background: #fff; color: #1c1145; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.3); }
.btn-outline-light { border: 1px solid rgba(255,255,255,0.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

/* ---------- Navbar ---------- */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(11, 13, 23, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--gradient); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.05rem;
}
.brand-name { font-weight: 700; font-size: 1.15rem; color: var(--text); letter-spacing: -0.02em; }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
    color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.95rem;
    transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
    display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.lang {
    padding: 6px 12px; font-size: 0.85rem; font-weight: 600;
    color: var(--text-muted); text-decoration: none; transition: background 0.15s ease;
}
.lang:hover { background: var(--surface-hover); color: var(--text); }
.lang.active { background: var(--surface-hover); color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 80px; overflow: hidden; }
.hero-glow {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 600px 400px at 20% 10%, rgba(109, 92, 255, 0.22), transparent 60%),
        radial-gradient(ellipse 500px 400px at 85% 70%, rgba(168, 85, 247, 0.14), transparent 60%);
}
.hero-grid {
    position: relative;
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.hero-eyebrow {
    display: inline-block; padding: 6px 14px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text-muted); font-size: 0.85rem; font-weight: 600;
    margin-bottom: 22px;
}
.hero h1 {
    font-size: clamp(2.4rem, 5.4vw, 3.8rem);
    font-weight: 800; line-height: 1.08; letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub { font-size: 1.15rem; color: var(--text-muted); max-width: 34rem; margin-bottom: 24px; }

.hero-checks { list-style: none; display: grid; gap: 10px; margin-bottom: 32px; }
.hero-checks li {
    display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 500;
}
.hero-checks li::before {
    content: "✓"; flex: none;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--gradient); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-note { color: var(--text-muted); font-size: 0.88rem; margin: -26px 0 34px; font-style: italic; }

.hero-facts { display: flex; gap: 36px; }
.fact { display: flex; flex-direction: column; }
.fact strong { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.fact span { color: var(--text-muted); font-size: 0.88rem; }

/* Terminal visuel */
.hero-visual { display: flex; justify-content: center; }
.terminal {
    width: 100%; max-width: 460px;
    background: #0d1020;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(109,92,255,0.12);
    overflow: hidden;
    animation: float-in 0.8s ease both;
}
@keyframes float-in {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.terminal-bar {
    display: flex; align-items: center; gap: 7px;
    padding: 12px 16px; background: rgba(255,255,255,0.04);
    border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f57; } .dot.yellow { background: #febc2e; } .dot.green { background: #28c840; }
.terminal-title { margin-left: 10px; font-family: var(--mono); font-size: 0.78rem; color: var(--text-muted); }
.terminal-body { padding: 20px 18px; font-family: var(--mono); font-size: 0.86rem; line-height: 1.9; }
.terminal-body .prompt { color: var(--accent-2); font-weight: 500; }
.terminal-body .out { color: var(--text-muted); }
.cursor-blink { animation: blink 1.1s steps(1) infinite; color: var(--accent-2); }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Bandeau technologies ---------- */
.tech-strip { padding: 34px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.tech-label { text-align: center; color: var(--text-muted); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 18px; }
.tech-list {
    list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px;
}
.tech-list li {
    padding: 8px 18px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text); font-weight: 600; font-size: 0.92rem;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.tech-list li:hover { border-color: var(--accent-1); transform: translateY(-2px); }

/* ---------- Sections génériques ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.5rem);
    font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px;
}
.section-head p { color: var(--text-muted); font-size: 1.08rem; }

/* ---------- Parcours ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-card {
    padding: 28px 24px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.step-card:hover { transform: translateY(-4px); border-color: rgba(109, 92, 255, 0.5); background: var(--surface-hover); }
.step-num {
    font-family: var(--mono); font-weight: 700; font-size: 0.95rem;
    background: var(--gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.step-card h3 { margin: 12px 0 8px; font-size: 1.15rem; font-weight: 700; }
.step-card p { color: var(--text-muted); font-size: 0.94rem; }

/* ---------- Cours ---------- */
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.course-card {
    display: flex; flex-direction: column; gap: 10px;
    padding: 30px 26px; border-radius: var(--radius);
    background: var(--bg); border: 1px solid var(--border);
    text-decoration: none; color: var(--text);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.course-card:hover {
    transform: translateY(-4px);
    border-color: rgba(109, 92, 255, 0.55);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}
.course-icon { font-size: 1.9rem; }
.course-card h3 { font-size: 1.2rem; font-weight: 700; }
.course-card p { color: var(--text-muted); font-size: 0.94rem; flex-grow: 1; }
.course-link { color: var(--accent-2); font-weight: 600; font-size: 0.92rem; }
.course-card-more { background: linear-gradient(150deg, rgba(109,92,255,0.16), rgba(168,85,247,0.08)); }

/* ---------- Langues ---------- */
.lang-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 820px; margin: 0 auto; }
.lang-card {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 34px 22px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border);
    text-decoration: none; color: var(--text);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.lang-card:hover { transform: translateY(-4px); border-color: rgba(109, 92, 255, 0.5); }
.lang-flag { font-size: 2.2rem; }
.lang-card h3 { font-size: 1.15rem; font-weight: 700; }
.badge {
    padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
}
.badge-live { background: rgba(40, 200, 96, 0.15); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.35); }
.badge-soon { background: rgba(254, 188, 46, 0.12); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }

/* ---------- CTA final ---------- */
.cta-final { padding: 40px 0 110px; }
.cta-box {
    text-align: center; padding: 70px 40px;
    border-radius: 24px; background: var(--gradient);
    box-shadow: 0 30px 80px rgba(109, 92, 255, 0.35);
}
.cta-box h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; color: #fff; }
.cta-box p { color: rgba(255, 255, 255, 0.85); font-size: 1.08rem; margin-bottom: 30px; }
.cta-box .hero-cta { justify-content: center; margin-bottom: 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 64px 0 32px; }
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.94rem; margin-top: 14px; max-width: 18rem; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 6px; }
.footer-col a { color: var(--text); text-decoration: none; font-size: 0.94rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    padding-top: 26px; border-top: 1px solid var(--border);
    color: var(--text-muted); font-size: 0.88rem;
}
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { color: var(--text-muted); text-decoration: none; }
.footer-legal a:hover { color: var(--text); }

/* ---------- Animations à l'apparition ---------- */
@media (prefers-reduced-motion: no-preference) {
    .step-card, .course-card, .lang-card { animation: rise 0.6s ease both; }
    .step-card:nth-child(2), .course-card:nth-child(2) { animation-delay: 0.08s; }
    .step-card:nth-child(3), .course-card:nth-child(3) { animation-delay: 0.16s; }
    .step-card:nth-child(4), .course-card:nth-child(4) { animation-delay: 0.24s; }
    .course-card:nth-child(5) { animation-delay: 0.32s; }
    .course-card:nth-child(6) { animation-delay: 0.4s; }
}
@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- RTL (arabe) ---------- */
html[dir="rtl"] body { font-family: 'Noto Sans Arabic', var(--font); }
html[dir="rtl"] .hero-sub { max-width: 36rem; }
html[dir="rtl"] .terminal { direction: ltr; text-align: left; }
html[dir="rtl"] .tech-list { direction: ltr; }
html[dir="rtl"] .brand-name,
html[dir="rtl"] .terminal-title { font-family: var(--font); }
html[dir="rtl"] .step-num { font-family: var(--mono); }
html[dir="rtl"] .skip-link { left: auto; right: -9999px; }
html[dir="rtl"] .skip-link:focus { right: 0; left: auto; border-radius: 0 0 0 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .hero { padding: 64px 0 56px; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
}
@media (max-width: 620px) {
    .steps-grid, .courses-grid, .lang-grid { grid-template-columns: 1fr; }
    .hero-facts { gap: 24px; }
    .btn-ghost { display: none; }
    .lang-switch { display: none; }
    .section { padding: 64px 0; }
    .cta-box { padding: 48px 22px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
