/* ============================================================
   ediflo.css — Styles du site public + app SaaS
   ============================================================ */

:root {
    --ediflo-primary: #7366ab;
    --ediflo-primary-dark: #5f5494;
    --ediflo-primary-light: #f0eef7;
    --ediflo-secondary: #f59b1c;
    --ediflo-accent: #f59b1c;
    --ediflo-dark: #2d2d3a;
    --ediflo-gray: #6c757d;
    --ediflo-light: #f8f9fa;
    --ediflo-success: #06d6a0;
    --ediflo-gradient: linear-gradient(135deg, #7366ab 0%, #f59b1c 100%);

    /* Override Bulma colors → violet ediflo */
    --bulma-primary-h: 250;
    --bulma-primary-s: 23%;
    --bulma-primary-l: 53%;
    --bulma-link-h: 250;
    --bulma-link-s: 23%;
    --bulma-link-l: 53%;
    --bulma-info-h: 250;
    --bulma-info-s: 23%;
    --bulma-info-l: 53%;
}

/* Override Bulma — boutons, tags, onglets, progress en violet ediflo */
.button.is-primary, .button.is-link, .button.is-info { background-color: #7366ab !important; border-color: #7366ab !important; color: #fff !important; }
.button.is-primary:hover, .button.is-link:hover, .button.is-info:hover { background-color: #5f5494 !important; border-color: #5f5494 !important; }
.button.is-primary.is-outlined, .button.is-link.is-outlined, .button.is-info.is-outlined { background-color: transparent !important; color: #7366ab !important; border-color: #7366ab !important; }
.button.is-primary.is-outlined:hover, .button.is-link.is-outlined:hover, .button.is-info.is-outlined:hover { background-color: #7366ab !important; color: #fff !important; }
.button.is-primary.is-light, .button.is-link.is-light, .button.is-info.is-light { background-color: #f0eef7 !important; color: #7366ab !important; }
.tag.is-primary, .tag.is-link, .tag.is-info { background-color: #7366ab !important; color: #fff !important; }
.tag.is-primary.is-light, .tag.is-link.is-light, .tag.is-info.is-light { background-color: #f0eef7 !important; color: #7366ab !important; }
.progress.is-primary::-webkit-progress-value, .progress.is-info::-webkit-progress-value { background-color: #7366ab !important; }
.progress.is-primary::-moz-progress-bar, .progress.is-info::-moz-progress-bar { background-color: #7366ab !important; }
a.has-text-primary, .has-text-primary { color: #7366ab !important; }
a.has-text-link, .has-text-link { color: #7366ab !important; }
a.has-text-info, .has-text-info { color: #7366ab !important; }
.tabs.is-toggle li.is-active a { background-color: #7366ab !important; border-color: #7366ab !important; color: #fff !important; }
.tabs.is-toggle a:hover { border-color: #7366ab !important; }
.tabs li.is-active a { border-bottom-color: #7366ab !important; color: #7366ab !important; }
.navbar-item.is-active, a.navbar-item:hover { color: #7366ab !important; }
.pagination-link.is-current { background-color: #7366ab !important; border-color: #7366ab !important; }
input.input:focus, textarea.textarea:focus, select.select:focus { border-color: #7366ab !important; box-shadow: 0 0 0 0.125em rgba(115,102,171,0.25) !important; }
.checkbox input[type="checkbox"]:checked + .check { background: #7366ab !important; border-color: #7366ab !important; }

/* ---- NAVBAR ---- */
.navbar-ediflo {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.navbar-ediflo .navbar-item.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--ediflo-primary);
    letter-spacing: -0.5px;
}
.navbar-ediflo .navbar-item.logo span {
    color: var(--ediflo-secondary);
}

/* ---- HERO ---- */
.hero-ediflo {
    background: var(--ediflo-gradient);
    position: relative;
    overflow: hidden;
}
.hero-ediflo::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.hero-ediflo .title, .hero-ediflo .subtitle {
    color: white;
}
.hero-ediflo .subtitle {
    opacity: 0.9;
}

/* ---- SECTIONS ---- */
.section-alt {
    background: var(--ediflo-light);
}

/* ---- FEATURE CARDS ---- */
.feature-card {
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(115, 102, 171, 0.15);
}
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.feature-icon.blue { background: var(--ediflo-primary-light); color: var(--ediflo-primary); }
.feature-icon.purple { background: var(--ediflo-primary-light); color: var(--ediflo-primary); }
.feature-icon.orange { background: #fef3e0; color: var(--ediflo-secondary); }
.feature-icon.green { background: #e0fff5; color: var(--ediflo-success); }

/* ---- PRICING ---- */
.pricing-card {
    border-radius: 16px;
    border: 2px solid #e9ecef;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    padding: 2rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.pricing-card.is-popular {
    border-color: var(--ediflo-primary);
    box-shadow: 0 8px 30px rgba(115,102,171,0.15);
}
.pricing-card .popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ediflo-gradient);
    color: white;
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.pricing-card .pricing-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ediflo-dark);
    letter-spacing: -0.3px;
}
.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--ediflo-dark);
    line-height: 1;
    letter-spacing: -1px;
}
.pricing-price small {
    font-size: 1rem;
    font-weight: 400;
    color: var(--ediflo-gray);
    letter-spacing: 0;
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}
.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.9rem;
    color: #444;
}
.pricing-features li:last-child {
    border-bottom: none;
}
.pricing-features li i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
    font-size: 0.85rem;
}
.pricing-features li i.fa-times {
    color: #ccc;
}
.pricing-features li i.fa-check {
    color: var(--ediflo-success);
}

/* ---- BILLING TOGGLE ---- */
.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--ediflo-light);
    padding: 6px 16px;
    border-radius: 30px;
}
.billing-toggle label {
    cursor: pointer;
    font-weight: 500;
    color: var(--ediflo-gray);
}
.billing-toggle label.is-active {
    color: var(--ediflo-primary);
    font-weight: 700;
}
.billing-toggle .save-badge {
    background: var(--ediflo-success);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* ---- AUTH PAGES ---- */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5fa 0%, #f0eef7 100%);
    padding: 2rem 1rem;
}
.auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
}
.auth-card .auth-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--ediflo-primary);
    text-align: center;
    margin-bottom: 0.5rem;
}
.auth-card .auth-logo span {
    color: var(--ediflo-secondary);
}
.auth-card .auth-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ediflo-dark);
    margin-bottom: 1.5rem;
}

/* ---- OAUTH BUTTONS ---- */
.oauth-separator {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: var(--ediflo-gray);
    font-size: 0.8rem;
}
.oauth-separator::before,
.oauth-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
}
.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.button.is-oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    background: white;
    color: #363636;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6em 1em;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    height: auto;
}
.button.is-oauth:hover {
    background: #f8f9fa;
    border-color: #b5b5b5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.button.is-oauth:active {
    transform: scale(0.98);
}
.button.is-oauth .oauth-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.button.is-oauth .oauth-icon img {
    width: 100%;
    height: 100%;
}
.button.is-oauth.is-loading {
    pointer-events: none;
}

/* ---- PASSWORD STRENGTH ---- */
.password-strength {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}
.password-strength .bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #e9ecef;
    transition: background 0.3s;
}
.password-strength.weak .bar:nth-child(1) { background: #f14668; }
.password-strength.medium .bar:nth-child(1),
.password-strength.medium .bar:nth-child(2) { background: #ffdd57; }
.password-strength.strong .bar:nth-child(1),
.password-strength.strong .bar:nth-child(2),
.password-strength.strong .bar:nth-child(3) { background: var(--ediflo-success); }

/* ---- TRUST BADGES ---- */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--ediflo-gray);
}
.trust-badge i {
    color: var(--ediflo-success);
}

/* ---- ONBOARDING ---- */
.onboarding-container {
    min-height: 100vh;
    background: var(--ediflo-light);
    padding: 2rem 1rem;
}
.onboarding-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2.5rem;
    max-width: 560px;
    margin: 0 auto;
    transition: max-width 0.3s ease;
}
.onboarding-card.is-wide {
    max-width: 920px;
}
.stepper {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2rem;
}
.stepper .step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e9ecef;
    transition: background 0.3s, transform 0.3s;
}
.stepper .step-dot.active {
    background: var(--ediflo-primary);
    transform: scale(1.2);
}
.stepper .step-dot.completed {
    background: var(--ediflo-success);
}

/* ---- SIRET SEARCH ---- */
.siret-results {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}
.siret-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s;
}
.siret-result-item:hover {
    background: var(--ediflo-primary-light);
}
.siret-result-item:last-child {
    border-bottom: none;
}

/* ---- FOOTER ---- */
.footer-ediflo {
    background: var(--ediflo-dark);
    color: rgba(255,255,255,0.7);
    padding: 3rem 1.5rem 2rem;
}
.footer-ediflo a {
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
    display: inline-block;
    padding: 5px 0; /* zone tactile >=24px : corrige "tap targets too small" sur mobile */
}
.footer-ediflo a:hover {
    color: white;
}
.footer-ediflo .footer-title {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* ---- BUTTONS ---- */
.button.is-ediflo {
    background: var(--ediflo-primary);
    color: white;
    border: none;
    font-weight: 600;
    transition: background 0.2s, transform 0.1s;
}
.button.is-ediflo:hover {
    background: var(--ediflo-primary-dark);
    color: white;
}
.button.is-ediflo:active {
    transform: scale(0.98);
}
.button.is-ediflo-outline {
    background: transparent;
    color: var(--ediflo-primary);
    border: 2px solid var(--ediflo-primary);
    font-weight: 600;
}
.button.is-ediflo-outline:hover {
    background: var(--ediflo-primary);
    color: white;
}

/* ---- APP SIDEBAR ---- */
.app-sidebar {
    width: 260px;
    background: var(--ediflo-dark);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding-top: 1rem;
    z-index: 30;
    transition: transform 0.3s;
}
.app-sidebar .sidebar-logo {
    padding: 1rem 1.5rem;
    font-weight: 800;
    font-size: 1.3rem;
    color: white;
}
.app-sidebar .sidebar-logo span {
    color: var(--ediflo-secondary);
}
.app-sidebar .menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 1.5rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.app-sidebar .menu-item:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}
.app-sidebar .menu-item.active {
    color: white;
    background: rgba(255,255,255,0.08);
    border-left-color: var(--ediflo-primary);
}
.app-sidebar .menu-item i {
    width: 20px;
    text-align: center;
}
.app-sidebar .menu-section {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.3);
}

.app-main {
    margin-left: 260px;
    padding: 1.5rem 2rem;
    min-height: 100vh;
    background: #f5f6fa;
}

/* ---- UPLOAD ZONE ---- */
.upload-zone {
    border: 2px dashed #dbdbdb;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}
.upload-zone:hover, .upload-zone.is-dragover {
    border-color: var(--ediflo-primary);
    background-color: var(--ediflo-primary-light);
}
.upload-zone .icon { font-size: 3rem; color: #b5b5b5; }
.upload-zone:hover .icon { color: var(--ediflo-primary); }

/* ---- CONFIDENCE METER ---- */
.confidence-high { color: #06d6a0; font-weight: 600; }
.confidence-medium { color: #ffbe0b; font-weight: 600; }
.confidence-low { color: #f14668; font-weight: 600; }

/* ---- BATCH PROGRESS ---- */
.batch-progress-box {
    border-left: 4px solid var(--ediflo-primary);
    background: #fafbff;
}

/* ---- INVOICE TABLE ---- */
.table-invoices td { vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-invoices .amount { text-align: right; font-variant-numeric: tabular-nums; }
.table-invoices th { white-space: nowrap; }

/* ---- INVOICE CARDS ---- */
.invoice-card {
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.15s;
    border-left: 4px solid #dbdbdb;
}
.invoice-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}
.invoice-card.card-success { border-left-color: var(--ediflo-success); }
.invoice-card.card-info { border-left-color: #3e8ed0; }
.invoice-card.card-link { border-left-color: var(--ediflo-primary); }
.invoice-card.card-primary { border-left-color: #00d1b2; }
.invoice-card.card-danger { border-left-color: #f14668; }

/* ---- DAY SEPARATOR ---- */
.day-separator {
    font-size: 1rem;
    font-weight: 700;
    color: #363636;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.5rem;
    background: #f5f7fa;
    border-radius: 6px;
    border-left: 4px solid var(--ediflo-primary);
}

/* ---- TIMELINE STATUTS ---- */
.timeline-item {
    padding-left: 2rem;
    border-left: 2px solid #dbdbdb;
    padding-bottom: 1rem;
    position: relative;
}
.timeline-item::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dbdbdb;
    position: absolute;
    left: -7px;
    top: 4px;
}
.timeline-item.is-current::before {
    background: var(--ediflo-primary);
}

/* ---- STATUS TAGS ---- */
.tag.status-draft { background-color: #f5f5f5; color: #4a4a4a; }
.tag.status-submitted { background-color: #3298dc; color: white; }
.tag.status-received { background-color: #48c774; color: white; }
.tag.status-error { background-color: #f14668; color: white; }

/* ---- VIEW TOGGLE ---- */
.view-toggle {
    display: inline-flex;
    background: #e9ecef;
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}
.view-toggle .vt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.view-toggle .vt-btn:hover {
    color: var(--ediflo-dark);
}
.view-toggle .vt-btn.active {
    background: white;
    color: var(--ediflo-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-weight: 600;
}

/* ---- PAGINATION ---- */
.pagination-info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

/* ---- LANDING PAGE V2 ---- */

/* Navbar dropdown */
.navbar-ediflo .navbar-item.has-dropdown .navbar-link {
    font-weight: 500;
}
.navbar-ediflo .navbar-dropdown {
    border-top: 2px solid var(--ediflo-primary);
    border-radius: 0 0 8px 8px;
}
.navbar-ediflo .navbar-dropdown .navbar-item {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Hero V2 */
.hero-ediflo-v2 {
    background: linear-gradient(135deg, #2d2d3a 0%, #3d3561 40%, #7366ab 70%, #9b7fd4 100%);
    position: relative;
    overflow: hidden;
}
.hero-ediflo-v2::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(245,155,28,0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroPulse 8s ease-in-out infinite;
}
.hero-ediflo-v2::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(115,102,171,0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroPulse 10s ease-in-out infinite reverse;
}
@keyframes heroPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
}
.hero-ediflo-v2 .title, .hero-ediflo-v2 .subtitle { color: white; position: relative; z-index: 1; }
.hero-ediflo-v2 .hero-body { position: relative; z-index: 1; }

/* Hero badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
}
.hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ediflo-success);
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Channels showcase */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}
@media (max-width: 768px) {
    .channels-grid { grid-template-columns: repeat(2, 1fr); }
}
.channel-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.channel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--ediflo-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}
.channel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(115,102,171,0.15);
    border-color: var(--ediflo-primary-light);
}
.channel-card:hover::before { opacity: 1; }
.channel-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.channel-icon.violet { background: var(--ediflo-primary-light); color: var(--ediflo-primary); }
.channel-icon.orange { background: #fef3e0; color: var(--ediflo-secondary); }
.channel-icon.green { background: #e0fff5; color: var(--ediflo-success); }
.channel-icon.blue { background: #e8f4fd; color: #3e8ed0; }

/* Stats bar */
.stats-bar {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 2rem;
    margin-top: -3rem;
    position: relative;
    z-index: 2;
}
.stat-item {
    text-align: center;
    padding: 0.5rem;
}
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--ediflo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--ediflo-gray);
    margin-top: 0.25rem;
}

/* Feature section V2 */
.feature-showcase {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 3rem 0;
}
.feature-showcase.reverse { flex-direction: row-reverse; }
.feature-showcase-text { flex: 1; }
.feature-showcase-visual {
    flex: 1;
    background: var(--ediflo-light);
    border-radius: 16px;
    padding: 2rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 768px) {
    .feature-showcase, .feature-showcase.reverse { flex-direction: column; gap: 2rem; }
}
.feature-tag {
    display: inline-block;
    background: var(--ediflo-primary-light);
    color: var(--ediflo-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 1rem;
}
.feature-tag.orange {
    background: #fef3e0;
    color: var(--ediflo-secondary);
}
.feature-tag.green {
    background: #e0fff5;
    color: #0a9b76;
}

/* Mock UI elements */
.mock-inbox {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    width: 100%;
}
.mock-inbox-header {
    background: var(--ediflo-primary);
    color: white;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mock-inbox-row {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
}
.mock-inbox-row:last-child { border-bottom: none; }
.mock-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.mock-status.green { background: var(--ediflo-success); }
.mock-status.orange { background: var(--ediflo-secondary); }
.mock-status.blue { background: #3e8ed0; }

.mock-dashboard {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    width: 100%;
}
.mock-dashboard-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mock-dashboard-body { padding: 1rem; }
.mock-chart-bar {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
    padding-top: 0.5rem;
}
.mock-chart-bar span {
    flex: 1;
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
}

/* Process steps */
.process-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
}
.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 1rem;
}
.process-step::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e9ecef;
    z-index: 0;
}
.process-step:last-child::after { display: none; }
.process-step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}
.process-step:hover .process-step-number {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(115,102,171,0.3);
}
@media (max-width: 768px) {
    .process-steps { flex-direction: column; gap: 1.5rem; }
    .process-step::after { display: none; }
    .process-step { text-align: left; display: flex; align-items: center; gap: 1rem; padding: 0; }
}

/* Timeline section */
.timeline-section {
    position: relative;
    padding-left: 3rem;
}
.timeline-section::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--ediflo-primary), var(--ediflo-secondary));
}

/* Blog cards */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.blog-card-image {
    height: 200px;
    overflow: hidden;
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}
.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-tag {
    display: inline-block;
    background: var(--ediflo-primary-light);
    color: var(--ediflo-primary);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    width: fit-content;
}
.blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ediflo-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--ediflo-gray);
    line-height: 1.6;
    flex: 1;
}
.blog-card-meta {
    font-size: 0.8rem;
    color: #adb5bd;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

/* Blog article page */
.blog-article {
    max-width: 760px;
    margin: 0 auto;
}
.blog-article h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--ediflo-dark);
    line-height: 1.3;
    margin-bottom: 1rem;
}
.blog-article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}
.blog-article .content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ediflo-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.blog-article .content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ediflo-dark);
    margin-top: 2rem;
}
.blog-article .content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 1.25rem;
}
.blog-article .content ul, .blog-article .content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}
.blog-article .content li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 0.5rem;
}
.blog-article .content blockquote {
    border-left: 4px solid var(--ediflo-primary);
    background: var(--ediflo-primary-light);
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}
.blog-article .content blockquote p {
    font-size: 1rem;
    color: var(--ediflo-primary-dark);
    margin: 0;
}

/* Feature page hero */
.feature-hero {
    background: linear-gradient(135deg, #2d2d3a 0%, #3d3561 60%, #7366ab 100%);
    padding: 6rem 1.5rem 4rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.feature-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245,155,28,0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.feature-hero .title { color: white; }
.feature-hero .subtitle { color: rgba(255,255,255,0.8); }

/* Feature page detail cards */
.detail-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e9ecef;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}
.detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.detail-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Code mockup */
.code-mockup {
    background: #1e1e2e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.code-mockup-header {
    background: #313244;
    padding: 8px 12px;
    display: flex;
    gap: 6px;
}
.code-mockup-header span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.code-mockup-header span:nth-child(1) { background: #f38ba8; }
.code-mockup-header span:nth-child(2) { background: #f9e2af; }
.code-mockup-header span:nth-child(3) { background: #a6e3a1; }
.code-mockup-body {
    padding: 1rem 1.25rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    line-height: 1.7;
    color: #cdd6f4;
    overflow-x: auto;
}
.code-mockup-body .code-keyword { color: #cba6f7; }
.code-mockup-body .code-string { color: #a6e3a1; }
.code-mockup-body .code-comment { color: #6c7086; }
.code-mockup-body .code-number { color: #fab387; }
.code-mockup-body .code-key { color: #89b4fa; }

/* CTA gradient section */
.cta-gradient {
    background: linear-gradient(135deg, #2d2d3a 0%, #3d3561 40%, #7366ab 70%, #9b7fd4 100%);
    position: relative;
    overflow: hidden;
}
.cta-gradient::before {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245,155,28,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section label */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ediflo-primary);
    margin-bottom: 1rem;
}
.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--ediflo-primary);
}

/* Comparison table */
.comparison-table th {
    background: var(--ediflo-primary);
    color: white;
    font-weight: 600;
    padding: 1rem;
}
.comparison-table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}
.comparison-table tr:nth-child(even) td {
    background: var(--ediflo-light);
}

/* Gradient text */
.gradient-text {
    background: var(--ediflo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating elements for hero */
.floating-element {
    position: absolute;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 16px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}
.floating-element:nth-child(2) { animation-delay: -2s; }
.floating-element:nth-child(3) { animation-delay: -4s; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Feature icon pink */
.feature-icon.pink { background: #fde8ef; color: #e91e8c; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .app-sidebar {
        transform: translateX(-100%);
    }
    .app-sidebar.is-open {
        transform: translateX(0);
    }
    .app-main {
        margin-left: 0;
    }
    .auth-card {
        padding: 1.5rem;
    }
    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

/* ---- SIDEBAR MODE TOGGLE (Simple / Avancé) ---- */
.sidebar-mode-toggle {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.mode-switch {
    cursor: pointer;
    user-select: none;
}
.mode-switch-track {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 4px;
    height: 32px;
    transition: background 0.3s;
}
.mode-switch:hover .mode-switch-track {
    background: rgba(255,255,255,0.12);
}
.mode-label {
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    transition: color 0.3s;
    line-height: 24px;
}
.mode-label-simple {
    color: #fff;
}
.mode-switch.is-advanced .mode-label-simple {
    color: rgba(255,255,255,0.5);
}
.mode-switch.is-advanced .mode-label-advanced {
    color: #fff;
}
.mode-switch-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: 24px;
    background: var(--ediflo-primary);
    border-radius: 16px;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.mode-switch.is-advanced .mode-switch-thumb {
    left: calc(50% + 0px);
}
