/* DigiSale - Feuille de styles
   Couleurs : bleu confiance + vert fiscalité
   Mobile-first, responsive
*/

:root {
    --primary: #0B5CAB;
    --primary-dark: #084A89;
    --primary-light: #E8F1FB;
    --secondary: #16A085;
    --secondary-dark: #117A65;
    --secondary-light: #E8F8F4;
    --accent: #F39C12;
    --dark: #1A2A3A;
    --gray-100: #F8FAFC;
    --gray-200: #EEF2F6;
    --gray-300: #DCE3EB;
    --gray-500: #6B7B8C;
    --gray-700: #344054;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #06B6D4;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--gray-100);
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--dark); }

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

.btn { font-weight: 600; padding: .65rem 1.4rem; border-radius: 8px; transition: all .2s; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); }
.btn-success { background: var(--secondary); border-color: var(--secondary); }
.btn-success:hover { background: var(--secondary-dark); border-color: var(--secondary-dark); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); }
.btn-lg { padding: .9rem 1.8rem; font-size: 1.05rem; }

/* Top bar */
.top-bar {
    background: var(--dark);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}
.top-bar a:hover { color: var(--secondary) !important; }

/* Logo */
.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    margin-right: 8px;
    font-size: 1.1rem;
}
.logo-text { font-size: 1.35rem; font-weight: 800; color: var(--dark); letter-spacing: -.5px; }
.logo-text strong { color: var(--primary); }

/* Navbar */
.navbar { padding: .85rem 0; }
.navbar .nav-link { font-weight: 500; color: var(--gray-700); padding: .5rem 1rem !important; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--primary); }

/* Hero */
.hero {
    background: linear-gradient(135deg, #0B5CAB 0%, #16A085 100%);
    color: #fff;
    padding: 90px 0 110px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cpattern id='p' width='10' height='10' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='2' cy='2' r='1' fill='rgba(255,255,255,0.07)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23p)'/%3E%3C/svg%3E");
    opacity: .6;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: 3rem; line-height: 1.15; margin-bottom: 1.2rem; }
.hero p.lead { font-size: 1.2rem; opacity: .95; margin-bottom: 2rem; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 1.5rem;
}
.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}
.hero-stat strong { display: block; font-size: 2rem; line-height: 1; color: #fff; }
.hero-stat span { font-size: 14px; opacity: .8; }

/* Sections */
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.4rem; margin-bottom: .8rem; }
.section-title p { color: var(--gray-500); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.eyebrow {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    display: inline-block;
    margin-bottom: 8px;
}

/* Feature card */
.feature-card {
    background: #fff;
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: all .3s;
    border: 1px solid var(--gray-200);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(11,92,171,.1); border-color: transparent; }
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}
.feature-card.green .feature-icon { background: var(--secondary-light); color: var(--secondary); }
.feature-card h5 { font-size: 1.15rem; margin-bottom: .5rem; }
.feature-card p { color: var(--gray-500); margin: 0; font-size: .95rem; }

/* Service card */
.service-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--gray-200);
    transition: all .3s;
    display: flex;
    flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.08); }
.service-card .card-header-custom {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    position: relative;
}
.service-card .card-header-custom .icon-big {
    font-size: 2.5rem;
    margin-bottom: .5rem;
    opacity: .9;
}
.service-card .card-header-custom h5 { color: #fff; margin: 0; font-size: 1.2rem; }
.service-card .card-body-custom { padding: 1.5rem; flex-grow: 1; }
.service-card .price-tag {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin: .5rem 0;
}
.service-card .price-tag .from { font-size: .85rem; color: var(--gray-500); font-weight: 500; margin-right: 4px; }
.service-card .delivery-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--secondary-light);
    color: var(--secondary-dark);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}
.service-card ul.features { list-style: none; padding: 0; margin: 1rem 0; }
.service-card ul.features li { padding: 4px 0; color: var(--gray-700); font-size: 14px; }
.service-card ul.features li i { color: var(--secondary); margin-right: 6px; }
.service-card .card-footer-custom { padding: 0 1.5rem 1.5rem; }

/* Footer */
.site-footer { background: var(--dark); color: #fff; padding: 70px 0 30px; }
.site-footer .footer-list { list-style: none; padding: 0; }
.site-footer .footer-list li { padding: 5px 0; color: rgba(255,255,255,.7); font-size: 14px; }
.site-footer .footer-list a { color: rgba(255,255,255,.7); }
.site-footer .footer-list a:hover { color: #fff; }
.social-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: #fff;
    transition: all .2s;
}
.social-icon:hover { background: var(--secondary); color: #fff; transform: translateY(-2px); }

/* WhatsApp float */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 8px 24px rgba(37,211,102,.5);
    z-index: 999;
    animation: pulse 2s infinite;
}
.whatsapp-float:hover { background: #1ebd57; color: #fff; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,.6); }
    70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* Live chat */
.live-chat-widget { position: fixed; bottom: 25px; right: 25px; z-index: 999; }
.chat-toggle-btn {
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; border: none; box-shadow: 0 8px 24px rgba(11,92,171,.4);
    font-size: 1.4rem; cursor: pointer; position: relative;
}
.chat-badge {
    position: absolute; top: -4px; right: -4px;
    background: var(--danger); color: #fff;
    width: 22px; height: 22px; border-radius: 50%;
    font-size: 12px; display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.chat-window {
    position: absolute; bottom: 75px; right: 0;
    width: 340px; height: 460px;
    background: #fff; border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,.18);
    display: none; flex-direction: column; overflow: hidden;
}
.chat-window.open { display: flex; }
.chat-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; padding: 14px 18px;
    display: flex; justify-content: space-between; align-items: center;
}
.online-dot {
    display: inline-block; width: 8px; height: 8px;
    background: #4ade80; border-radius: 50%; margin-right: 4px;
}
.chat-body { flex-grow: 1; padding: 16px; overflow-y: auto; background: var(--gray-100); }
.chat-message { display: flex; gap: 8px; margin-bottom: 12px; }
.chat-message.client { flex-direction: row-reverse; }
.msg-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
}
.msg-bubble { background: #fff; padding: 10px 14px; border-radius: 12px; max-width: 75%; font-size: 14px; box-shadow: 0 2px 4px rgba(0,0,0,.05); }
.chat-message.client .msg-bubble { background: var(--primary); color: #fff; }
.chat-footer { padding: 12px; border-top: 1px solid var(--gray-200); display: flex; gap: 8px; }
.chat-footer input { flex-grow: 1; border: 1px solid var(--gray-300); border-radius: 24px; padding: 8px 14px; font-size: 14px; }
.chat-footer button { background: var(--primary); color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; }

/* Auth pages */
.auth-container { min-height: 100vh; display: flex; align-items: center; padding: 40px 0; }
.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.08);
    overflow: hidden;
}
.auth-card .auth-side {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 50px 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-card .auth-form { padding: 50px 40px; }
.form-control { padding: .75rem 1rem; border-radius: 8px; border: 1px solid var(--gray-300); }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,92,171,.12); }
.form-label { font-weight: 500; font-size: 14px; color: var(--gray-700); }

/* Dashboard */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.dashboard-sidebar { background: var(--dark); color: #fff; padding: 30px 0; }
.dashboard-sidebar .brand { padding: 0 25px 30px; border-bottom: 1px solid rgba(255,255,255,.08); }
.dashboard-sidebar .brand .logo-text { color: #fff; }
.dashboard-sidebar nav { padding: 20px 0; }
.dashboard-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.7);
    padding: 12px 25px;
    text-decoration: none;
    transition: all .2s;
}
.dashboard-sidebar nav a:hover, .dashboard-sidebar nav a.active {
    color: #fff;
    background: rgba(255,255,255,.05);
    border-left: 3px solid var(--secondary);
    padding-left: 22px;
}
.dashboard-sidebar nav a i { font-size: 1.1rem; width: 20px; }
.dashboard-main { background: var(--gray-100); padding: 30px 40px; overflow-x: hidden; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.stat-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.stat-card .stat-icon.bg-blue { background: var(--primary-light); color: var(--primary); }
.stat-card .stat-icon.bg-green { background: var(--secondary-light); color: var(--secondary); }
.stat-card .stat-icon.bg-orange { background: #FEF3C7; color: #B45309; }
.stat-card .stat-icon.bg-purple { background: #EDE9FE; color: #6D28D9; }
.stat-card h3 { font-size: 1.8rem; margin: 0; }
.stat-card p { color: var(--gray-500); margin: 0; font-size: 14px; }

.card-panel {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
    .hero { padding: 60px 0 80px; }
    .hero h1 { font-size: 2.2rem; }
    .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-sidebar { position: fixed; top: 0; left: -260px; width: 260px; height: 100vh; transition: left .3s; z-index: 1050; }
    .dashboard-sidebar.open { left: 0; }
    .dashboard-main { padding: 20px; }
}

/* Page header */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 60px 0 50px;
    text-align: center;
}
.page-header h1 { color: #fff; font-size: 2.4rem; }
.page-header .breadcrumb { justify-content: center; --bs-breadcrumb-divider-color: rgba(255,255,255,.6); }
.page-header .breadcrumb a { color: rgba(255,255,255,.85); }
.page-header .breadcrumb-item.active { color: #fff; }

/* Process steps */
.process-step {
    text-align: center;
    padding: 1rem;
    position: relative;
}
.process-step .step-number {
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--primary); color: #fff;
    font-size: 1.6rem; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}

/* Blog card */
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    height: 100%;
    transition: all .3s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.08); }
.blog-card .blog-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
}
.blog-card .blog-body { padding: 1.5rem; }
.blog-card .blog-meta { font-size: 13px; color: var(--gray-500); margin-bottom: .5rem; }

/* Testimonial */
.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    height: 100%;
    border: 1px solid var(--gray-200);
}
.testimonial-card .stars { color: var(--accent); margin-bottom: 1rem; }
.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1.5rem;
}
.testimonial-card .author-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}

/* CTA section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    text-align: center;
    border-radius: 16px;
    padding: 60px 30px;
    margin: 40px 0;
}
.cta-section h2 { color: #fff; }

/* Calculator */
.calculator-box {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid var(--primary-light);
}
.calculator-result {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 1rem;
}
.calculator-result h3 { color: #fff; font-size: 2rem; }

/* Tables */
.table { background: #fff; border-radius: 8px; overflow: hidden; }
.table thead th { background: var(--gray-100); color: var(--gray-700); font-weight: 600; border: none; padding: 14px; }
.table td { padding: 14px; vertical-align: middle; border-color: var(--gray-200); }

/* Pricing badge */
.popular-badge {
    position: absolute; top: -10px; right: 20px;
    background: var(--accent); color: #fff;
    padding: 4px 14px; border-radius: 50px;
    font-size: 12px; font-weight: 700;
    text-transform: uppercase;
}

/* Promotion badge sur cartes services */
.promo-ribbon {
    position: absolute;
    top: 14px;
    right: -36px;
    background: #DC2626;
    color: #fff;
    padding: 4px 40px;
    transform: rotate(35deg);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(220,38,38,.3);
    z-index: 5;
}
.promo-tag {
    display: inline-block;
    background: linear-gradient(135deg, #DC2626, #F59E0B);
    color: #fff;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.price-old {
    text-decoration: line-through;
    color: var(--gray-500);
    font-size: 1rem;
    font-weight: 500;
    margin-right: 8px;
}
.price-new {
    color: #DC2626 !important;
}
.service-card .card-header-custom { position: relative; overflow: hidden; }

/* Bannière impersonation admin */
.impersonation-banner {
    background: linear-gradient(135deg, #DC2626, #F59E0B);
    color: #fff;
    padding: 10px 16px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(220,38,38,.3);
    position: sticky;
    top: 0;
    z-index: 1100;
}
.impersonation-banner .btn-light { color: #DC2626; font-weight: 600; }

/* FAQ */
.accordion-item { border-radius: 8px !important; margin-bottom: 8px; border: 1px solid var(--gray-200); overflow: hidden; }
.accordion-button { font-weight: 600; padding: 1rem 1.25rem; }
.accordion-button:not(.collapsed) { background: var(--primary-light); color: var(--primary); }
.accordion-button:focus { box-shadow: none; }
