/* ==========================================================
   EKELO APP — Feuille de style principale (autonome)
   ========================================================== */

:root {
    --ekelo-blue: #0050E8;
    --ekelo-violet: #5A00D8;
    --ekelo-navy: #00154F;
    --ekelo-navy-2: #071A55;
    --ekelo-gradient: linear-gradient(135deg, #0050E8 0%, #5A00D8 100%);
    --ekelo-gradient-soft: linear-gradient(135deg, rgba(0,80,232,.12), rgba(90,0,216,.12));

    --bg: #ffffff;
    --bg-soft: #f6f8fc;
    --bg-card: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e5e9f2;
    --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.10);
    --radius: 16px;
    --radius-sm: 10px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
}

[data-theme="dark"] {
    --bg: #0b1220;
    --bg-soft: #0e1729;
    --bg-card: #131c30;
    --text: #e6edf7;
    --text-muted: #96a3ba;
    --border: #1e2a44;
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background .3s ease, color .3s ease;
}

a { color: var(--ekelo-blue); }

/* ==========================================================
   SPLASH — Anneau de progression circulaire (0 → 100 %)
   ========================================================== */
#ekelo-splash,
.ekelo-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 40%, #1e293b 0%, #00154F 55%, #020617 100%);
    opacity: 1;
    visibility: visible;
    transition: opacity .7s ease, visibility .7s ease;
}
#ekelo-splash.hidden,
.ekelo-splash.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
}

/* --- Anneau SVG --- */
.splash-ring {
    position: relative;
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.splash-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    overflow: visible;
}
.splash-track {
    fill: none;
    stroke: rgba(148, 163, 184, .18);
    stroke-width: 7;
}
.splash-progress {
    fill: none;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-dasharray: 326.726;
    stroke-dashoffset: 326.726;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, .7));
}

/* --- Coeur --- */
.splash-core {
    position: relative;
    z-index: 2;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: rgba(15, 23, 42, .9);
    box-shadow:
        inset 0 0 0 1px rgba(148, 163, 184, .18),
        0 0 40px rgba(59, 130, 246, .25);
}

/* --- Logo animé (clignotement + glow dynamique) --- */
.splash-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
    animation: splashLogoPulse 1.4s ease-in-out infinite;
    will-change: transform, opacity, filter;
}

.splash-brand {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    color: #f8fafc;
    line-height: 1;
}

.splash-percent {
    font-size: 14px;
    font-weight: 700;
    color: #93c5fd;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

/* --- Texte bas --- */
.splash-text {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #94a3b8;
    animation: splashFade 1.6s ease-in-out infinite;
}

/* --- Animations --- */
@keyframes splashLogoPulse {
    0%   { transform: scale(1);    opacity: 1;    filter: drop-shadow(0 0 4px rgba(59,130,246,0.6)); }
    50%  { transform: scale(1.14); opacity: .72;  filter: drop-shadow(0 0 18px rgba(139,92,246,0.95)); }
    100% { transform: scale(1);    opacity: 1;    filter: drop-shadow(0 0 4px rgba(59,130,246,0.6)); }
}
@keyframes splashFade {
    0%, 100% { opacity: .5; }
    50%      { opacity: 1;  }
}

@media (prefers-reduced-motion: reduce) {
    .splash-logo,
    .splash-text { animation: none; }
}

/* ---------- HEADER ---------- */
.ekelo-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s ease;
}
[data-theme="dark"] .ekelo-header { background: rgba(11,18,32,.85); }
.ekelo-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 32px; width: auto; }
.brand-name {
    font-weight: 800; font-size: 20px; letter-spacing: .5px;
    background: var(--ekelo-gradient);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-desktop { display: flex; gap: 26px; }
.nav-desktop a {
    color: var(--text); font-weight: 500; text-decoration: none;
    font-size: 15px; position: relative;
}
.nav-desktop a::after {
    content: ''; position: absolute; left: 0; bottom: -6px;
    width: 0; height: 2px; background: var(--ekelo-gradient);
    transition: width .3s ease;
}
.nav-desktop a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
    background: transparent; border: none; font-size: 18px; cursor: pointer;
    padding: 8px 10px; border-radius: 10px; color: var(--text);
    position: relative; transition: background .2s;
}
.icon-btn:hover { background: var(--bg-soft); }
.notif-badge {
    position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px;
    background: #ef4444; color: #fff; font-size: 10px; font-weight: 700;
    border-radius: 999px; display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}
.notif-menu { min-width: 300px; padding: 0; overflow: hidden; }
.notif-header { padding: 12px 16px; font-weight: 700; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.notif-item { padding: 10px 16px !important; display: flex; align-items: center; gap: 8px; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ekelo-blue); flex-shrink: 0; }
[data-theme="light"] .theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: none; }
.hamburger { background: transparent; border: 0; font-size: 24px; color: var(--text); cursor: pointer; padding: 4px 10px; }
.mobile-menu { display: none; flex-direction: column; padding: 12px 16px; border-top: 1px solid var(--border); background: var(--bg); }
.mobile-menu a { padding: 12px 0; text-decoration: none; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu.open { display: flex; }
@media (min-width: 768px) { .mobile-menu { display: none !important; } }

/* ---------- BUTTONS (override Bootstrap) ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
    border: none; cursor: pointer; text-decoration: none;
    transition: transform .2s, box-shadow .25s, background .2s;
    font-family: var(--font);
    line-height: 1;
}
.btn-ekelo { background: var(--ekelo-gradient); color: #fff !important; box-shadow: 0 8px 20px rgba(0,80,232,.25); }
.btn-ekelo:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(90,0,216,.35); color: #fff; }
.btn-ghost { background: transparent; color: var(--text) !important; border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--ekelo-blue); color: var(--ekelo-blue) !important; }
.btn-ghost-light { background: rgba(255,255,255,.15); color: #fff !important; border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.25); color: #fff !important; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------- HERO ---------- */
.hero-section {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
    background: var(--bg);
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .30; animation: float 14s ease-in-out infinite; }
.blob-1 { width: 460px; height: 460px; background: #0050E8; top: -160px; left: -90px; }
.blob-2 { width: 420px; height: 420px; background: #5A00D8; top: 80px; right: -110px; animation-delay: 3s; }
.blob-3 { width: 320px; height: 320px; background: #7000E8; bottom: -140px; left: 30%; animation-delay: 6s; opacity: .22; }
.grid-overlay {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(0,80,232,.06) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0,80,232,.06) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}
@keyframes float {
    0%,100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(30px,-30px) scale(1.05); }
    66% { transform: translate(-20px,20px) scale(.97); }
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: var(--ekelo-gradient-soft); color: var(--ekelo-blue);
    font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.pulse-dot {
    width: 8px; height: 8px; background: #22c55e; border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); }
    70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900; line-height: 1.1; letter-spacing: -1px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--text) 40%, var(--ekelo-blue) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="dark"] .hero-title { background: linear-gradient(135deg, #ffffff 40%, #7ea3ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-subtitle { font-size: 18px; color: var(--text-muted); max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.trust-avatars { display: flex; }
.trust-avatars span {
    width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--bg);
    margin-left: -10px; background: var(--ekelo-gradient);
}
.trust-avatars span:first-child { margin-left: 0; }
.trust-text { font-size: 14px; color: var(--text-muted); font-weight: 500; }

/* ---------- HERO VISUAL ---------- */
.hero-visual { position: relative; min-height: 420px; }
.mockup-window {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
    transition: transform .5s ease;
}
.mockup-window:hover { transform: perspective(1200px) rotateY(-4deg) rotateX(2deg); }
.mockup-bar { display: flex; gap: 6px; padding: 12px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.mockup-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.mockup-bar span:nth-child(1) { background: #ff5f57; }
.mockup-bar span:nth-child(2) { background: #febc2e; }
.mockup-bar span:nth-child(3) { background: #28c840; }
.mockup-body { display: grid; grid-template-columns: 60px 1fr; min-height: 300px; }
.mockup-sidebar { background: var(--ekelo-navy); }
.mockup-content { padding: 20px; }
.mockup-line { height: 10px; border-radius: 6px; background: var(--bg-soft); margin-bottom: 10px; }
.mockup-line.long { width: 70%; height: 14px; }
.mockup-line.short { width: 40%; }
.mockup-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.mockup-card { height: 60px; border-radius: 10px; background: var(--ekelo-gradient-soft); }
.mockup-chart { height: 100px; border-radius: 10px; background: linear-gradient(180deg, var(--ekelo-gradient-soft), transparent); }
.floating-card {
    position: absolute; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 10px; font-size: 13px;
    animation: float-card 6s ease-in-out infinite;
}
.floating-card strong { display: block; font-size: 15px; }
.floating-card small { color: var(--text-muted); font-size: 11px; }
.fc-icon { font-size: 22px; }
.fc-1 { top: 20px; left: -20px; animation-delay: 0s; }
.fc-2 { top: 45%; right: -30px; animation-delay: 1.5s; }
.fc-3 { bottom: 30px; left: 20px; animation-delay: 3s; }
@keyframes float-card { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- SECTIONS ---------- */
.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -.5px; margin: 12px 0; }
.section-head p { color: var(--text-muted); font-size: 17px; }
.eyebrow {
    display: inline-block; padding: 4px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 700; letter-spacing: 1px;
    background: var(--ekelo-gradient-soft); color: var(--ekelo-blue);
}
.eyebrow-light { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- STATS ---------- */
.stats-section { padding: 40px 0; background: var(--ekelo-navy); color: #fff; position: relative; overflow: hidden; }
.stats-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(90,0,216,.4), transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(0,80,232,.4), transparent 50%);
}
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 30px; text-align: center; }
.stat-value { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 900; background: linear-gradient(135deg, #7ea3ff, #c39bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 14px; opacity: .85; margin-top: 4px; }

/* ---------- FEATURES ---------- */
.features-section { background: var(--bg-soft); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; transition: transform .3s, box-shadow .3s, border-color .3s;
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--ekelo-gradient); transform: scaleX(0); transform-origin: left; transition: transform .4s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
    width: 54px; height: 54px; border-radius: 14px;
    background: var(--ekelo-gradient-soft); color: var(--ekelo-blue);
    display: flex; align-items: center; justify-content: center; font-size: 26px;
    margin-bottom: 18px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.feature-card p { color: var(--text-muted); font-size: 15px; margin-bottom: 14px; }

/* ---------- AI ---------- */
.ai-section { background: var(--bg); }
.ai-card {
    background: var(--ekelo-gradient);
    border-radius: 24px; padding: 50px 40px; color: #fff;
    position: relative; overflow: hidden;
}
.ai-card::before {
    content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%;
    background: rgba(255,255,255,.12); top: -200px; right: -100px;
}
.ai-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin: 12px 0; position: relative; }
.ai-subtitle { font-size: 17px; opacity: .95; margin-bottom: 22px; position: relative; }
.ai-list { list-style: none; padding: 0; margin: 0; position: relative; }
.ai-list li { padding: 6px 0; font-size: 15px; }
.chat-bubble {
    background: #fff; color: #0f172a; padding: 14px 18px; border-radius: 16px;
    margin-bottom: 12px; max-width: 85%; box-shadow: 0 8px 24px rgba(0,0,0,.12);
    font-size: 14px; position: relative;
}
.chat-user { margin-left: auto; background: var(--ekelo-navy-2); color: #fff; }
.chat-ai { background: #ffffff; }

/* ---------- ROLES ---------- */
.roles-section { background: var(--bg-soft); }
.roles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.role-card {
    display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 30px 24px; text-decoration: none; color: var(--text);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.role-card:hover { transform: translateY(-6px); border-color: var(--ekelo-blue); box-shadow: var(--shadow-lg); color: var(--text); }
.role-icon { font-size: 40px; margin-bottom: 12px; }
.role-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.role-card p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ---------- TESTIMONIALS ---------- */
.testimonials-section { background: var(--bg); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; transition: transform .3s, box-shadow .3s;
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stars { color: #fbbf24; font-size: 18px; margin-bottom: 12px; }
.testimonial p { color: var(--text); font-size: 15px; font-style: italic; margin-bottom: 20px; }
.author { display: flex; align-items: center; gap: 12px; }
.avatar {
    width: 40px; height: 40px; border-radius: 50%; background: var(--ekelo-gradient);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px;
}
.author small { display: block; color: var(--text-muted); font-size: 12px; }

/* ---------- PRICING ---------- */
.pricing-section { background: var(--bg-soft); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; align-items: center; }
.price-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px 28px; text-align: center; position: relative;
    transition: transform .3s, box-shadow .3s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price-card.featured {
    background: linear-gradient(180deg, #ffffff, #f9fbff);
    border: 2px solid var(--ekelo-blue);
    transform: scale(1.04);
    box-shadow: 0 20px 50px rgba(0,80,232,.15);
}
[data-theme="dark"] .price-card.featured { background: linear-gradient(180deg, #131c30, #0e1729); }
.price-card h3 { font-size: 16px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 12px; }
.price { font-size: 42px; font-weight: 900; color: var(--text); margin-bottom: 4px; }
.price small { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.price-sub { color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; }
.price-card ul li { padding: 6px 0; font-size: 14px; color: var(--text); }
.badge-pop {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--ekelo-gradient); color: #fff; font-size: 11px; font-weight: 700;
    padding: 4px 12px; border-radius: 999px; letter-spacing: .5px;
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; max-width: 1000px; margin: 0 auto; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-question {
    width: 100%; background: transparent; border: none; text-align: left;
    padding: 18px 22px; font-weight: 600; font-size: 15px; color: var(--text);
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; font-family: var(--font);
}
.faq-question span { font-size: 22px; color: var(--ekelo-blue); transition: transform .3s; }
.faq-item.open .faq-question span { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer p { padding: 0 22px 18px; margin: 0; color: var(--text-muted); font-size: 14px; }
.faq-item.open .faq-answer { max-height: 200px; }

/* ---------- CTA ---------- */
.cta-section { padding: 60px 0; background: var(--bg-soft); }
.cta-card {
    background: var(--ekelo-gradient); border-radius: 24px;
    padding: 60px 40px; text-align: center; color: #fff;
    position: relative; overflow: hidden;
}
.cta-card::before {
    content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%;
    background: rgba(255,255,255,.12); top: -250px; left: -100px;
}
.cta-card h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: 12px; position: relative; }
.cta-card p { font-size: 17px; opacity: .95; margin-bottom: 32px; position: relative; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- PAGE HERO ---------- */
.page-hero { padding: 80px 0 50px; background: var(--ekelo-gradient-soft); text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -1px; }
.page-hero p { color: var(--text-muted); font-size: 18px; max-width: 600px; margin: 12px auto 0; }

/* ---------- FOOTER ---------- */
.ekelo-footer {
    background: var(--ekelo-navy); color: #fff;
    padding: 60px 0 30px;
    position: relative; overflow: hidden;
}
.ekelo-footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--ekelo-gradient);
}
.ekelo-footer h6 { font-weight: 700; margin-bottom: 16px; font-size: 15px; color: #fff; }
.ekelo-footer ul { list-style: none; padding: 0; }
.ekelo-footer ul li { padding: 5px 0; font-size: 14px; color: rgba(255,255,255,.75); }
.ekelo-footer a { color: rgba(255,255,255,.75); text-decoration: none; transition: color .2s; }
.ekelo-footer a:hover { color: #fff; }
.text-muted-light { color: rgba(255,255,255,.7); font-size: 14px; }
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-links a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #fff; transition: background .2s, transform .2s;
}
.social-links a:hover { background: var(--ekelo-gradient); transform: translateY(-2px); }
.ekelo-footer hr { border-color: rgba(255,255,255,.15); margin: 40px 0 20px; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: rgba(255,255,255,.7); flex-wrap: wrap; gap: 10px;
}
.badge-version {
    background: rgba(255,255,255,.15); padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 600;
}

/* ---------- SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
    .nav-desktop { display: none; }
    .hero-section { padding: 55px 0 40px; }
    .section { padding: 55px 0; }
    .hero-visual { min-height: 320px; margin-top: 30px; }
    .mockup-window { transform: none; }
    .fc-1, .fc-2, .fc-3 { display: none; }
    .ai-card, .cta-card { padding: 40px 24px; }
}
@media (max-width: 575px) {
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
    .price-card.featured { transform: none; }
    .brand-name { display: none; }
}
/* ==========================================================
   AUTH PAGES (login, register, forgot, reset)
   ========================================================== */

.auth-wrapper {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 16px;
    background: var(--bg-soft);
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--ekelo-gradient);
    opacity: .08;
    top: -200px;
    right: -180px;
    filter: blur(60px);
}
.auth-wrapper::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--ekelo-gradient);
    opacity: .08;
    bottom: -180px;
    left: -160px;
    filter: blur(60px);
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 34px;
    box-shadow: var(--shadow-lg);
    animation: authSlide .5s ease-out;
}
.auth-card-lg { max-width: 560px; }

@keyframes authSlide {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.auth-header { text-align: center; margin-bottom: 28px; }
.auth-logo { height: 46px; width: auto; margin-bottom: 14px; }
.auth-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text);
    margin: 0 0 6px;
}
.auth-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.auth-form .form-group { margin-bottom: 18px; }
.auth-form .form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}
.form-input:focus {
    outline: none;
    border-color: var(--ekelo-blue);
    box-shadow: 0 0 0 3px rgba(0,80,232,.12);
}
.form-input::placeholder { color: #94a3b8; }

.auth-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
    margin-top: -6px;
}
.auth-link {
    font-size: 13px;
    color: var(--ekelo-blue);
    text-decoration: none;
}
.auth-link:hover { text-decoration: underline; }

.auth-footer {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 22px;
}
.auth-footer a {
    color: var(--ekelo-blue);
    font-weight: 600;
    text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }

/* Petits écrans */
@media (max-width: 575px) {
    .auth-card { padding: 30px 22px; border-radius: 16px; }
    .auth-title { font-size: 22px; }
}

/* ============================================ */
/* LOGO PRINCIPAL EKELO                         */
/* ============================================ */
.ekelo-logo-bar {
    padding: 20px 0;
    background: transparent;
    position: relative;
    z-index: 10;
}
.ekelo-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.ekelo-logo-link:hover { transform: scale(1.04); }
.ekelo-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(59,130,246,0.35));
    animation: logoGlow 3s ease-in-out infinite;
}
.ekelo-logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 6px 18px rgba(59,130,246,0.35)); }
    50%      { filter: drop-shadow(0 8px 28px rgba(139,92,246,0.55)); }
}

/* ============================================ */
/* IMAGE DU HERO                                */
/* ============================================ */
.hero-visual-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 420px;
}
.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 560px;
}
.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    box-shadow: 0 30px 60px -20px rgba(59,130,246,0.45);
    animation: floatY 5s ease-in-out infinite;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    z-index: 2;
}
.hero-image:hover {
    transform: translateY(-10px) scale(1.03) rotate(-1deg);
    box-shadow: 0 40px 80px -20px rgba(139,92,246,0.6);
}
.hero-image-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at 50% 50%, rgba(59,130,246,0.35), transparent 70%);
    filter: blur(40px);
    z-index: 1;
    animation: pulseGlow 4s ease-in-out infinite;
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}
@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.1); }
}

/* Floating cards over image */
.floating-card {
    position: absolute;
    background: #fff;
    padding: 12px 16px;
    border-radius: 14px;
    box-shadow: 0 15px 35px -10px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.6);
}
.floating-card .fc-icon { font-size: 1.4rem; }
.floating-card strong { display: block; font-size: 1rem; color: #111827; }
.floating-card small { font-size: 0.7rem; color: #6b7280; }
.fc-1 { top: 6%;    left: -30px; }
.fc-2 { bottom: 18%; right: -20px; }
.fc-3 { bottom: 4%;  left: 8%; }
.float-a { animation: floatA 4s ease-in-out infinite; }
.float-b { animation: floatB 5s ease-in-out infinite; }
.float-c { animation: floatC 4.5s ease-in-out infinite; }
@keyframes floatA { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes floatB { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }
@keyframes floatC { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* ============================================ */
/* HERO MINI BADGES                             */
/* ============================================ */
.hero-mini-badges {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.mini-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(59,130,246,0.1);
    color: #3b82f6;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(59,130,246,0.25);
    transition: all 0.3s ease;
}
.mini-badge:hover {
    background: #3b82f6;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -6px rgba(59,130,246,0.5);
}

/* ============================================ */
/* PARTICLES + BLOB animés                      */
/* ============================================ */
.particles span {
    position: absolute;
    width: 6px; height: 6px;
    background: rgba(139,92,246,0.5);
    border-radius: 50%;
    animation: riseParticle 12s linear infinite;
}
.particles span:nth-child(1) { left: 5%;  animation-delay: 0s; }
.particles span:nth-child(2) { left: 15%; animation-delay: 2s; }
.particles span:nth-child(3) { left: 30%; animation-delay: 4s; }
.particles span:nth-child(4) { left: 45%; animation-delay: 1s; }
.particles span:nth-child(5) { left: 60%; animation-delay: 3s; }
.particles span:nth-child(6) { left: 72%; animation-delay: 5s; }
.particles span:nth-child(7) { left: 84%; animation-delay: 2.5s; }
.particles span:nth-child(8) { left: 92%; animation-delay: 4.5s; }
.particles span:nth-child(9) { left: 55%; animation-delay: 6s; }
.particles span:nth-child(10){ left: 25%; animation-delay: 7s; }
@keyframes riseParticle {
    0%   { transform: translateY(100vh) scale(0.6); opacity: 0; }
    20%  { opacity: 1; }
    100% { transform: translateY(-100px) scale(1.2); opacity: 0; }
}
.blob-4 {
    position: absolute;
    bottom: -100px; right: -80px;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(16,185,129,0.35), transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulseGlow 6s ease-in-out infinite;
}

/* ============================================ */
/* BOUTON PULSE                                 */
/* ============================================ */
.btn-pulse { position: relative; overflow: visible; }
.btn-pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid rgba(59,130,246,0.5);
    animation: btnRing 2s ease-out infinite;
}
@keyframes btnRing {
    0%   { transform: scale(1);   opacity: 0.8; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* ============================================ */
/* TRUST BAR PARTNERS                           */
/* ============================================ */
.trust-bar-section {
    padding: 40px 0;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}
.trust-bar-title {
    text-align: center;
    color: #6b7280;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 24px;
}
.trust-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.trust-logo {
    font-size: 1rem;
    color: #4b5563;
    font-weight: 600;
    opacity: 0.7;
    transition: all 0.3s ease;
}
.trust-logo:hover { opacity: 1; transform: scale(1.08); color: #3b82f6; }

/* ============================================ */
/* HOW IT WORKS                                 */
/* ============================================ */
.how-section { background: #f9fafb; }
.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    margin-top: 40px;
}
.how-step {
    position: relative;
    background: #fff;
    padding: 32px 24px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 24px -12px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}
.how-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -18px rgba(59,130,246,0.35);
}
.how-number {
    position: absolute;
    top: -18px; left: 24px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 10px 20px -6px rgba(59,130,246,0.5);
}
.how-icon { font-size: 2.5rem; margin: 10px 0 16px; }
.how-step h3 { font-size: 1.15rem; margin-bottom: 10px; color: #111827; }
.how-step p { color: #6b7280; font-size: 0.92rem; margin: 0; }

/* ============================================ */
/* WHY EKELO                                    */
/* ============================================ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.why-card {
    background: #fff;
    padding: 32px 26px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.why-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}
.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 55px -20px rgba(59,130,246,0.35);
    border-color: transparent;
}
.why-card:hover::before { transform: scaleY(1); }
.why-icon { font-size: 2.4rem; margin-bottom: 16px; }
.why-card h3 { color: #111827; margin-bottom: 10px; font-size: 1.1rem; }
.why-card p { color: #6b7280; font-size: 0.92rem; margin: 0; }

/* ============================================ */
/* MOBILE APP                                   */
/* ============================================ */
.mobile-section { background: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 100%); }
.mobile-title { font-size: 2.2rem; margin-bottom: 16px; color: #111827; }
.mobile-subtitle { color: #4b5563; font-size: 1.05rem; margin-bottom: 24px; }
.mobile-list { list-style: none; padding: 0; margin-bottom: 28px; }
.mobile-list li {
    padding: 10px 0;
    color: #374151;
    font-size: 1rem;
    border-bottom: 1px dashed #e5e7eb;
}
.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    background: #111827;
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.store-btn:hover { transform: translateY(-4px); box-shadow: 0 15px 30px -10px rgba(0,0,0,0.4); color: #fff; }
.store-btn span { font-size: 1.6rem; }
.store-btn small { display: block; font-size: 0.65rem; opacity: 0.75; }
.store-btn strong { font-size: 0.95rem; }

.phone-mockup {
    position: relative;
    width: 260px;
    height: 520px;
    background: #111827;
    border-radius: 42px;
    margin: 0 auto;
    padding: 14px;
    box-shadow: 0 40px 80px -20px rgba(17,24,39,0.5);
    animation: floatY 5s ease-in-out infinite;
}
.phone-notch {
    position: absolute;
    top: 14px; left: 50%;
    transform: translateX(-50%);
    width: 90px; height: 22px;
    background: #111827;
    border-radius: 0 0 14px 14px;
    z-index: 2;
}
.phone-screen {
    width: 100%; height: 100%;
    background: linear-gradient(180deg, #f9fafb, #f3f4f6);
    border-radius: 30px;
    padding: 40px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.phone-header {
    height: 28px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 8px;
    margin-bottom: 6px;
}
.phone-card {
    height: 60px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px -4px rgba(0,0,0,0.08);
    animation: cardIn 0.6s ease both;
}
.phone-card-1 { animation-delay: 0.2s; }
.phone-card-2 { animation-delay: 0.4s; }
.phone-card-3 { animation-delay: 0.6s; }
.phone-nav {
    margin-top: auto;
    height: 44px;
    background: #111827;
    border-radius: 12px;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================ */
/* NEWS / BLOG PREVIEW                          */
/* ============================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 40px;
}
.news-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px -15px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -20px rgba(59,130,246,0.35);
}
.news-image {
    height: 180px;
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 16px;
}
.news-tag {
    background: rgba(255,255,255,0.9);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #111827;
}
.news-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-date { color: #6b7280; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; }
.news-body h3 { font-size: 1.1rem; margin: 8px 0 10px; color: #111827; }
.news-body p { color: #6b7280; font-size: 0.9rem; flex: 1; margin-bottom: 16px; }
.news-link { color: #3b82f6; font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.news-link:hover { color: #8b5cf6; }

/* ============================================ */
/* NEWSLETTER                                   */
/* ============================================ */
.newsletter-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 28px;
    padding: 50px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.newsletter-card::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(139,92,246,0.5), transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
}
.newsletter-card h2 { color: #fff; margin-bottom: 12px; }
.newsletter-card p { color: #cbd5e1; margin: 0; }
.newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}
.newsletter-form input {
    flex: 1;
    min-width: 220px;
    padding: 14px 18px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    background: rgba(255,255,255,0.95);
}
.newsletter-form input:focus { outline: 3px solid rgba(59,130,246,0.5); }
.newsletter-privacy {
    margin-top: 12px;
    font-size: 0.8rem;
    color: #94a3b8;
    position: relative;
    z-index: 2;
}

/* ============================================ */
/* CTA FEATURES                                 */
/* ============================================ */
.cta-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* ============================================ */
/* RESPONSIVE                                   */
/* ============================================ */
@media (max-width: 991px) {
    .hero-image { max-width: 100%; }
    .fc-1, .fc-2, .fc-3 { display: none; }
    .hero-visual-image { min-height: auto; padding: 0; }
    .phone-mockup { width: 220px; height: 440px; }
    .ekelo-logo-img { height: 42px; }
    .ekelo-logo-text { font-size: 1.3rem; }
    .newsletter-card { padding: 36px 24px; }
}
@media (max-width: 576px) {
    .hero-mini-badges { justify-content: center; }
    .ekelo-logo-bar { text-align: center; }
    .ekelo-logo-link { justify-content: center; }
    .mobile-title { font-size: 1.7rem; }
    .how-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   BLOG — LISTE, DETAIL, ADMIN
   ============================================================ */

/* --- Page hero blog --- */
.blog-hero { padding: 80px 0 50px; background: var(--ekelo-gradient-soft); text-align: center; }

/* --- Filtres --- */
.blog-filters {
    display: flex; justify-content: space-between; align-items: center;
    gap: 20px; flex-wrap: wrap; margin-bottom: 40px;
}
.blog-categories { display: flex; flex-wrap: wrap; gap: 10px; }
.blog-cat-btn {
    padding: 8px 18px; border-radius: 999px;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600;
    transition: all .25s ease;
}
.blog-cat-btn:hover { border-color: var(--ekelo-blue); color: var(--ekelo-blue); }
.blog-cat-btn.active {
    background: var(--ekelo-gradient); color: #fff; border-color: transparent;
    box-shadow: 0 8px 20px -8px rgba(0,80,232,.45);
}
.blog-search { display: flex; gap: 0; }
.blog-search input {
    padding: 10px 16px; border: 1px solid var(--border);
    border-radius: 10px 0 0 10px; font-size: 14px;
    background: var(--bg-card); color: var(--text); min-width: 220px;
}
.blog-search input:focus { outline: none; border-color: var(--ekelo-blue); }
.blog-search button {
    padding: 10px 18px; background: var(--ekelo-gradient);
    color: #fff; border: none; border-radius: 0 10px 10px 0;
    cursor: pointer; font-size: 16px;
}

/* --- Articles en vedette --- */
.blog-featured-section { background: var(--bg); }
.blog-featured-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}
.blog-featured-card { background: var(--bg-card); border-radius: 20px; overflow: hidden;
    box-shadow: 0 10px 30px -15px rgba(0,0,0,0.12); transition: all .4s ease; }
.blog-featured-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -20px rgba(0,80,232,.35); }
.blog-featured-link { text-decoration: none; color: inherit; display: block; }
.blog-featured-image { position: relative; height: 220px; overflow: hidden; }
.blog-featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blog-featured-card:hover .blog-featured-image img { transform: scale(1.06); }
.blog-featured-tag {
    position: absolute; top: 16px; left: 16px;
    background: var(--ekelo-gradient); color: #fff;
    padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.blog-featured-body { padding: 24px; }
.blog-featured-body h3 { font-size: 1.25rem; margin: 10px 0; color: var(--text); }

/* --- Grille principale --- */
.blog-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}
.blog-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 18px; overflow: hidden; transition: all .35s ease;
    display: flex; flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 55px -20px rgba(0,80,232,.30);
    border-color: transparent;
}
.blog-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.blog-card-image { position: relative; height: 200px; overflow: hidden; background: var(--bg-soft); }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-tag {
    position: absolute; top: 14px; left: 14px;
    background: rgba(255,255,255,.95); color: var(--ekelo-blue);
    padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
}
.blog-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card-body h3 { font-size: 1.1rem; margin: 8px 0 12px; color: var(--text); line-height: 1.35; }
.blog-card-body p { color: var(--text-muted); font-size: 14px; flex: 1; margin-bottom: 16px; }
.blog-card-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 16px; border-top: 1px solid var(--border);
}
.blog-meta { color: var(--text-muted); font-size: 12px; }
.blog-author { color: var(--text-muted); font-size: 12px; font-weight: 600; }
.blog-read-more { color: var(--ekelo-blue); font-weight: 700; font-size: 13px; transition: color .2s; }
.blog-card:hover .blog-read-more { color: var(--ekelo-violet); }

/* --- Pagination --- */
.blog-pagination { margin-top: 50px; text-align: center; }

/* --- Empty state --- */
.blog-empty { text-align: center; padding: 80px 20px; }
.blog-empty-icon { font-size: 60px; margin-bottom: 20px; }
.blog-empty h3 { color: var(--text); margin-bottom: 10px; }
.blog-empty p { color: var(--text-muted); }

/* --- Détail article --- */
.blog-detail { background: var(--bg); }
.blog-detail-hero { padding: 60px 0 30px; background: var(--ekelo-gradient-soft); }
.blog-back-link { color: var(--ekelo-blue); text-decoration: none; font-weight: 600; font-size: 14px; }
.blog-detail-tag {
    display: inline-block; padding: 4px 14px; border-radius: 999px;
    background: var(--ekelo-gradient); color: #fff;
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    margin: 16px 0;
}
.blog-detail-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; line-height: 1.15; margin: 10px 0 20px; color: var(--text); }
.blog-detail-meta { display: flex; flex-wrap: wrap; gap: 20px; color: var(--text-muted); font-size: 14px; }
.blog-detail-cover { max-width: 1100px; margin: -30px auto 40px; padding: 0 20px; position: relative; z-index: 2; }
.blog-detail-cover img { width: 100%; border-radius: 24px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.25); }

.blog-detail-grid {
    display: grid; grid-template-columns: 1fr 320px;
    gap: 50px; margin: 40px 0 60px;
}
@media (max-width: 900px) {
    .blog-detail-grid { grid-template-columns: 1fr; gap: 40px; }
}

.blog-prose { font-size: 17px; line-height: 1.8; color: var(--text); }
.blog-prose p { margin-bottom: 1.4em; }
.blog-detail-video { margin: 30px 0; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.blog-detail-video iframe,
.blog-detail-video video { width: 100%; height: 100%; border: 0; }

/* --- Galerie --- */
.blog-gallery { margin: 40px 0; }
.blog-gallery h3 { font-size: 1.3rem; margin-bottom: 20px; }
.blog-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.blog-gallery-item img {
    width: 100%; aspect-ratio: 1; object-fit: cover;
    border-radius: 12px; transition: all .3s ease;
}
.blog-gallery-item:hover img { transform: scale(1.04); box-shadow: var(--shadow-lg); }

/* --- Partager --- */
.blog-share {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border);
}
.blog-share > span { font-weight: 700; color: var(--text-muted); font-size: 14px; }
.share-btn {
    padding: 8px 16px; border-radius: 999px; text-decoration: none;
    font-size: 13px; font-weight: 700; color: #fff;
    transition: transform .2s;
}
.share-btn:hover { transform: translateY(-2px); color: #fff; }
.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }
.share-wa { background: #25d366; }

/* --- Sidebar --- */
.blog-sidebar { position: sticky; top: 100px; align-self: flex-start; }
.sidebar-widget {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 18px; padding: 24px; margin-bottom: 24px;
}
.sidebar-widget h4 { font-size: 15px; margin-bottom: 16px; color: var(--text); }
.sidebar-posts { list-style: none; padding: 0; margin: 0; }
.sidebar-posts li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.sidebar-posts li:last-child { border-bottom: none; }
.sidebar-posts a { display: flex; gap: 12px; text-decoration: none; color: inherit; }
.sidebar-posts img { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.sidebar-posts strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.sidebar-posts small { color: var(--text-muted); font-size: 12px; }
.sidebar-cta { background: var(--ekelo-gradient); color: #fff; border: none; }
.sidebar-cta h4 { color: #fff; }
.sidebar-cta p { color: rgba(255,255,255,.9); font-size: 14px; margin-bottom: 16px; }

/* --- Articles liés --- */
.blog-related { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border); }
.blog-related h3 { font-size: 1.4rem; margin-bottom: 30px; }

/* --- Admin --- */
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 16px; }
.admin-header h1 { font-size: 1.8rem; margin: 0; }
.alert-success {
    background: #d1fae5; color: #065f46; padding: 14px 20px;
    border-radius: 12px; margin-bottom: 24px; font-weight: 600;
}
.admin-table-wrapper { overflow-x: auto; background: var(--bg-card); border-radius: 16px; box-shadow: var(--shadow); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th,
.admin-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.admin-table th { background: var(--bg-soft); font-weight: 700; color: var(--text-muted); text-transform: uppercase; font-size: 12px; letter-spacing: .5px; }
.admin-thumb { width: 60px; height: 40px; object-fit: cover; border-radius: 8px; }
.admin-no-img { color: var(--text-muted); }
.badge-status { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-published { background: #d1fae5; color: #065f46; }
.badge-draft { background: #f3f4f6; color: #6b7280; }
.admin-actions a,
.admin-actions button {
    background: none; border: none; cursor: pointer;
    font-size: 16px; padding: 6px 8px; border-radius: 6px;
    text-decoration: none; transition: background .2s;
}
.admin-actions a:hover,
.admin-actions button:hover { background: var(--bg-soft); }

/* --- Admin form --- */
.admin-form { background: var(--bg-card); padding: 32px; border-radius: 16px; box-shadow: var(--shadow); }
.admin-form .form-group { margin-bottom: 22px; }
.admin-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .admin-form .form-row { grid-template-columns: 1fr; } }
.admin-form .form-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.admin-form .form-input {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--border);
    border-radius: 10px; font-family: inherit; font-size: 15px;
    background: var(--bg); color: var(--text); transition: border-color .2s;
}
.admin-form .form-input:focus { outline: none; border-color: var(--ekelo-blue); box-shadow: 0 0 0 3px rgba(0,80,232,.12); }
.admin-form textarea.form-input { resize: vertical; min-height: 100px; }
.admin-preview { max-width: 200px; border-radius: 10px; margin-top: 12px; display: block; }
.admin-gallery-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.admin-gallery-preview img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }
.admin-form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--border); }
.form-check label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ekelo-blue); }

/* --- Responsive --- */
@media (max-width: 600px) {
    .blog-search input { min-width: 160px; }
    .blog-detail-cover { margin-top: 0; }
    .blog-detail-meta { gap: 12px; font-size: 13px; }
}
/* Bouton pagination */
.blog-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.page-link {
    display: inline-block; padding: 10px 16px; border-radius: 10px;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px;
    transition: all .2s ease;
}
.page-link:hover { border-color: var(--ekelo-blue); color: var(--ekelo-blue); }
.page-link.active {
    background: var(--ekelo-gradient); color: #fff; border-color: transparent;
}

/* Message d'erreur */
.alert-error {
    background: #fee2e2; color: #991b1b; padding: 14px 20px;
    border-radius: 12px; margin-bottom: 24px; font-weight: 600;
}