/* ========================================
   LOCKLEAD - PAGE COMMENT ÇA MARCHE
   ======================================== */

/* ========== Hero ========== */
.ccm-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2d4a7c 100%);
    color: var(--color-white);
    padding: 140px 0 60px;
    text-align: center;
}

.ccm-hero h1 {
    color: var(--color-white);
    font-size: 44px;
    margin-bottom: var(--space-md);
}

.ccm-hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========== Section vidéo ========== */
.ccm-video-section {
    padding: var(--space-3xl) 0;
    background: var(--color-bg-light);
}

.ccm-video-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.ccm-video-placeholder {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.ccm-video-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(232, 93, 4, 0.08) 0%, transparent 70%);
}

.ccm-video-placeholder:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
}

.ccm-play-icon {
    width: 80px;
    height: 80px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(232, 93, 4, 0.4);
    position: relative;
    z-index: 1;
}

.ccm-video-placeholder:hover .ccm-play-icon {
    transform: scale(1.1);
}

.ccm-video-label {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    position: relative;
    z-index: 1;
}

.ccm-video-sublabel {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ========== Étapes détaillées — CENTRÉ ========== */
.ccm-steps {
    padding: var(--space-3xl) 0;
}

.ccm-steps h2 {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.ccm-step {
    display: block;
    max-width: 700px;
    margin: 0 auto 48px auto;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e9eef4;
    border-radius: 16px;
    padding: 32px 32px 28px;
    position: relative;
}

.ccm-step:last-child {
    margin-bottom: 0;
}

/* Connecteur vertical entre les étapes */
.ccm-step:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -48px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 48px;
    background: linear-gradient(to bottom, #e2e8f0, transparent);
}

.ccm-step-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    width: 100%;
}

.ccm-step-number {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 22px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(232, 93, 4, 0.3);
}

.ccm-step-header h3 {
    color: var(--color-primary);
    font-size: 22px;
    margin: 0;
    padding: 0;
    text-align: left;
}

.ccm-step > p {
    display: block;
    color: var(--color-text-secondary);
    font-size: 16px;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 16px auto;
}

/* Visuels centrés */
.ccm-visual-center {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    width: 100%;
}

/* Highlight box */
.ccm-step-highlight {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    background: #eff6ff;
    padding: 14px 20px;
    border-radius: 8px;
    margin: 16px auto 0 auto;
    font-size: 14px;
    color: #1e40af;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    max-width: 600px;
    width: 100%;
    box-sizing: border-box;
}

.ccm-highlight-icon {
    font-size: 20px;
    flex-shrink: 0;
}

/* SMS example */
.ccm-sms-example {
    max-width: 340px;
    text-align: left;
}

.ccm-sms-bubble {
    background: #e5e5ea;
    color: #1c1c1e;
    padding: 14px 18px;
    border-radius: 18px 18px 18px 6px;
    font-size: 14px;
    line-height: 1.6;
}

.ccm-sms-link {
    color: #007aff;
    display: inline-block;
    margin-top: 4px;
}

.ccm-sms-time {
    display: block;
    text-align: right;
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-top: 6px;
}

/* Form preview */
.ccm-form-preview {
    background: var(--color-bg-light);
    border-radius: 8px;
    padding: 16px 24px;
    max-width: 400px;
    border: 1px solid #e2e8f0;
    text-align: left;
    width: 100%;
}

.ccm-form-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.ccm-form-field:last-child {
    border-bottom: none;
}

.ccm-form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
}

.ccm-form-value {
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
}

.ccm-form-tag {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.ccm-form-tag.urgent {
    background: #fee2e2;
    color: #991b1b;
}

.ccm-form-photo {
    color: var(--color-accent);
}

/* ========== Dashboard Preview (standalone, pas de dépendance home.css) ========== */
.ccm-dashboard-visual {
    display: inline-block;
}

.ccm-dashboard-visual .dashboard-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.ccm-dashboard-visual .new-lead-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e85d04;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(232, 93, 4, 0.4);
    z-index: 10;
}

.ccm-badge-visible {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.ccm-dashboard-visual .dashboard-preview {
    width: 360px;
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ccm-dashboard-visual .dashboard-preview-header {
    background: linear-gradient(135deg, #e85d04 0%, #c74e03 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ccm-dashboard-visual .dashboard-logo { font-size: 18px; }

.ccm-dashboard-visual .dashboard-title {
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.ccm-dashboard-visual .dashboard-body { padding: 12px; }

.ccm-dashboard-visual .dashboard-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.ccm-dashboard-visual .leads-count {
    background: #e85d04;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.ccm-dashboard-visual .leads-table-preview {
    background: #1e293b;
    border-radius: 8px;
    overflow: hidden;
}

.ccm-dashboard-visual .leads-table-header {
    display: grid;
    grid-template-columns: 1fr 70px 50px 60px 40px;
    gap: 4px;
    padding: 8px 10px;
    background: #334155;
    font-size: 9px;
    font-weight: 600;
    color: #94a3b8;
}

.ccm-dashboard-visual .lead-row {
    display: grid;
    grid-template-columns: 1fr 70px 50px 60px 40px;
    gap: 4px;
    padding: 10px;
    border-bottom: 1px solid #334155;
    font-size: 9px;
    color: #e2e8f0;
    align-items: center;
}

.ccm-dashboard-visual .lead-row:last-child { border-bottom: none; }
.ccm-dashboard-visual .lead-row.highlight { background: rgba(232, 93, 4, 0.15); }

.ccm-row-visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.ccm-dashboard-visual .lead-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ccm-dashboard-visual .lead-phone {
    color: #60a5fa;
    font-family: monospace;
    font-size: 8px;
}

.ccm-dashboard-visual .lead-type {
    color: #94a3b8;
    font-size: 8px;
}

.ccm-dashboard-visual .lead-badge {
    display: inline-block;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 7px;
    font-weight: 600;
    white-space: nowrap;
}

.ccm-dashboard-visual .lead-badge.urgent { background: #dc2626; color: white; }
.ccm-dashboard-visual .lead-badge.this_week { background: #f59e0b; color: white; }
.ccm-dashboard-visual .lead-badge.not_urgent { background: #22c55e; color: white; }

.ccm-dashboard-visual .lead-date {
    color: #64748b;
    font-size: 9px;
}

/* ========== Avantages ========== */
.ccm-benefits {
    padding: var(--space-3xl) 0;
    background: var(--color-bg-light);
}

.ccm-benefits h2 {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.ccm-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.ccm-benefit {
    background: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ccm-benefit:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.ccm-benefit-icon {
    font-size: 36px;
    margin-bottom: var(--space-md);
}

.ccm-benefit h3 {
    color: var(--color-primary);
    font-size: 18px;
    margin-bottom: var(--space-sm);
}

.ccm-benefit p {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .ccm-hero {
        padding: 120px 0 50px;
    }

    .ccm-hero h1 {
        font-size: 32px;
    }

    .ccm-hero-subtitle {
        font-size: 16px;
    }

    .ccm-step-header {
        flex-direction: column;
        gap: 8px;
    }

    .ccm-step-header h3 {
        text-align: center;
        font-size: 19px;
    }

    .ccm-step-number {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        font-size: 18px;
    }

    .ccm-step {
        padding: 24px 20px 20px;
        margin-bottom: 40px;
    }

    .ccm-step:not(:last-child)::after {
        height: 40px;
        bottom: -40px;
    }

    .ccm-benefits-grid {
        grid-template-columns: 1fr;
    }

    .ccm-play-icon {
        width: 64px;
        height: 64px;
    }

    .ccm-play-icon svg {
        width: 36px;
        height: 36px;
    }

    .ccm-dashboard-visual .dashboard-preview {
        width: 100%;
        max-width: 360px;
    }

    .ccm-dashboard-visual {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ccm-sms-example {
        max-width: 100%;
    }

    .ccm-form-preview {
        max-width: 100%;
    }
}

/* ========== Lien Calendrier CTA ========== */
.cta-calendar-alternative {
    margin-top: 28px;
}

.cta-calendar-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 14px 24px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    transition: all 0.25s ease;
}

.cta-calendar-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    transform: translateY(-2px);
}

.cta-calendar-badge {
    display: inline-block;
    background: #e85d04;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

@media (max-width: 600px) {
    .cta-calendar-link {
        flex-direction: column;
        text-align: center;
        font-size: 14px;
        padding: 12px 20px;
    }
}
