/* ========================================
   LOCKLEAD HOME - Styles page d'accueil
   Extrait de index.php pour optimisation SEO/CWV
   ======================================== */

/* ========== Animation "Comment ça marche" ========== */
.how-it-works-animated { padding: 64px 0; background: var(--color-white, #fff); }
.how-it-works-animated h2 { color: var(--color-primary, #1a365d); text-align: center; font-size: 2rem; margin-bottom: 8px; }
.section-subtitle { color: var(--color-text-secondary, #666); text-align: center; font-size: 1.1rem; margin-bottom: 50px; }

.animation-container { display: flex; align-items: stretch; justify-content: center; gap: 1.5rem; flex-wrap: wrap; max-width: 1100px; margin: 0 auto; }

.anim-step { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; opacity: 0; transform: translateY(30px); }
.anim-step.active { animation: animFadeInUp 0.5s ease forwards; }
@keyframes animFadeInUp { to { opacity: 1; transform: translateY(0); } }

.anim-step-label { font-size: 1rem; font-weight: 600; text-align: center; max-width: 200px; margin-top: 1rem; color: var(--color-primary, #1a365d); min-height: 48px; }

.anim-arrow { font-size: 2rem; color: #e85d04; opacity: 0; transform: scale(0); display: flex; align-items: center; margin-bottom: 60px; }
.anim-arrow.active { animation: animPopIn 0.3s ease forwards; }
@keyframes animPopIn { to { opacity: 1; transform: scale(1); } }

/* Phone Calling */
.phone-calling { width: 170px; height: 360px; background: #1a1a1a; border-radius: 24px; padding: 6px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.phone-calling::before { content: ''; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 8px; height: 8px; background: #2d2d2d; border-radius: 50%; z-index: 10; }
.phone-calling-screen { width: 100%; height: 100%; background: linear-gradient(180deg, #4a90d9 0%, #357abd 100%); border-radius: 20px; display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden; padding-top: 50px; }

.caller-avatar { width: 70px; height: 70px; background: linear-gradient(135deg, #5a9fd4 0%, #4a8bc4 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; margin-bottom: 12px; }
.caller-name { font-size: 18px; font-weight: 600; color: white; text-align: center; }
.caller-status { font-size: 13px; color: rgba(255,255,255,0.8); margin-top: 6px; }

.phone-calling-buttons { position: absolute; bottom: 25px; left: 15px; right: 15px; display: flex; justify-content: space-between; }
.call-btn { width: 50px; height: 50px; min-width: 50px; min-height: 50px; max-width: 50px; max-height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.call-btn.decline { background: #ff3b30; }
.call-btn.accept { background: #34c759; }
.phone-icon-decline { transform: rotate(135deg); }
.phone-icon-accept { transform: rotate(0deg); }

/* Phone SMS */
.phone-sms { width: 170px; height: 360px; background: #1a1a1a; border-radius: 24px; padding: 6px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.phone-sms::before { content: ''; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 8px; height: 8px; background: #2d2d2d; border-radius: 50%; z-index: 10; }
.phone-sms-screen { width: 100%; height: 100%; background: #f2f2f7; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }

.sms-header { background: #f2f2f7; color: #1c1c1e; padding: 30px 10px 10px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; border-bottom: 1px solid #e5e5ea; }
.sms-header-icon { width: 40px; height: 40px; background: linear-gradient(135deg, #a0a0a0 0%, #8e8e93 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: white; }
.sms-header-info { text-align: center; }
.sms-header-name { font-weight: 600; font-size: 11px; color: #1c1c1e; }
.sms-header-number { font-size: 9px; color: #8e8e93; }

.sms-content { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 6px; background: #f2f2f7; }
.sms-bubble { background: #e5e5ea; color: #1c1c1e; padding: 10px 12px; border-radius: 18px 18px 18px 6px; font-size: 9px; line-height: 1.5; max-width: 95%; opacity: 0; transform: translateY(20px); }
.anim-step-2.active .sms-bubble { animation: animSlideUp 0.4s 0.2s ease forwards; }
@keyframes animSlideUp { to { opacity: 1; transform: translateY(0); } }

.sms-link { color: #007aff; text-decoration: none; word-break: break-all; }
.sms-time { font-size: 9px; color: #8e8e93; text-align: right; margin-top: 4px; }
.sms-read-status { font-size: 10px; color: #34c759; text-align: right; font-weight: 600; }

/* Dashboard Preview (animation) */
.anim-step-3 { position: relative; }
.dashboard-wrapper { position: relative; margin-bottom: 12px; }
.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; opacity: 0; transform: scale(0); box-shadow: 0 4px 12px rgba(232, 93, 4, 0.4); z-index: 10; }
.anim-step-3.active .new-lead-badge { animation: animPopIn 0.4s 0.5s ease forwards; }

.dashboard-preview { width: 360px; background: #0f172a; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.dashboard-preview-header { background: linear-gradient(135deg, #e85d04 0%, #c74e03 100%); padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.dashboard-logo { font-size: 18px; }
.dashboard-title { font-size: 14px; font-weight: 700; color: white; }
.dashboard-body { padding: 12px; }
.dashboard-section-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: white; margin-bottom: 10px; }
.leads-count { background: #e85d04; color: white; padding: 2px 8px; border-radius: 10px; font-size: 11px; }

.leads-table-preview { background: #1e293b; border-radius: 8px; overflow: hidden; }
.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; }
.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; opacity: 0; transform: translateX(-20px); align-items: center; }
.lead-row:last-child { border-bottom: none; }

.anim-step-3.active .lead-row:nth-child(1) { animation: animSlideIn 0.3s 0.1s ease forwards; }
.anim-step-3.active .lead-row:nth-child(2) { animation: animSlideIn 0.3s 0.2s ease forwards; }
.anim-step-3.active .lead-row:nth-child(3) { animation: animSlideIn 0.3s 0.3s ease forwards; }
@keyframes animSlideIn { to { opacity: 1; transform: translateX(0); } }

.lead-row.highlight { background: rgba(232, 93, 4, 0.15); }
.lead-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-phone { color: #60a5fa; font-family: monospace; font-size: 8px; }
.lead-type { color: #94a3b8; font-size: 8px; }
.lead-badge { display: inline-block; padding: 2px 4px; border-radius: 4px; font-size: 7px; font-weight: 600; white-space: nowrap; }
.lead-badge.urgent { background: #dc2626; color: white; }
.lead-badge.this_week { background: #f59e0b; color: white; }
.lead-badge.not_urgent { background: #22c55e; color: white; }
.lead-date { color: #64748b; font-size: 9px; }

/* Responsive animation */
@media (max-width: 900px) {
    .animation-container { flex-direction: column; align-items: center; }
    .anim-arrow { transform: rotate(90deg) scale(0); margin-bottom: 0; margin-top: 10px; margin-bottom: 10px; }
    .anim-arrow.active { animation: animPopInRotate 0.3s ease forwards; }
    @keyframes animPopInRotate { to { opacity: 1; transform: rotate(90deg) scale(1); } }
    .anim-step-label { height: auto; }
}


/* ========== Feature cards ========== */
.feature-card { transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.1); }
.feature-more { display: block; margin-top: 12px; font-size: 13px; color: #e85d04; font-weight: 500; }

/* ========== CTA subtext (remplace style="" inline) ========== */
.cta-subtext { font-size: 13px; color: #94a3b8; margin-top: 12px; }


/* ========== Modals ========== */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 1000; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.modal-overlay.active { display: flex; }
.modal-content { background: white; border-radius: 16px; max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 32px; position: relative; animation: modalSlide 0.3s ease; }
@keyframes modalSlide { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.modal-close { position: absolute; top: 16px; right: 16px; background: #f1f5f9; border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 16px; color: #64748b; transition: background 0.2s; }
.modal-close:hover { background: #e2e8f0; color: #1a365d; }
.modal-icon { font-size: 48px; text-align: center; margin-bottom: 16px; }
.modal-content h3 { text-align: center; color: #1a365d; font-size: 24px; margin-bottom: 20px; }
.modal-body { color: #475569; line-height: 1.6; }
.modal-body > p:first-of-type { font-size: 15px; }
.modal-example { margin-top: 20px; padding-top: 20px; border-top: 1px solid #e2e8f0; }
.example-label { font-size: 13px; color: #64748b; margin-bottom: 12px; font-weight: 500; }

/* Modal details list */
.modal-details { margin-top: 20px; }
.detail-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; }
.detail-icon { font-size: 18px; }
.detail-item span:last-child { font-size: 14px; }

/* Phone mockup (modal SMS) */
.phone-mockup { background: #1a1a1a; border-radius: 20px; padding: 16px; }
.phone-header { display: flex; justify-content: space-between; margin-bottom: 12px; }
.phone-sender { color: #a0a0a0; font-size: 12px; }
.phone-time { color: #a0a0a0; font-size: 12px; }
.phone-bubble { background: #e5e5ea; color: #000; padding: 12px 16px; border-radius: 18px; border-bottom-left-radius: 4px; font-size: 14px; line-height: 1.5; }
.phone-link { color: #007aff; }

/* Form mockup (modal formulaire) */
.form-mockup { background: #f8fafc; border-radius: 12px; padding: 16px; border: 1px solid #e2e8f0; }
.form-field { margin-bottom: 12px; }
.form-field:last-child { margin-bottom: 0; }
.form-field label { display: block; font-size: 11px; color: #64748b; margin-bottom: 4px; font-weight: 600; text-transform: uppercase; }
.form-input { background: white; border: 1px solid #e2e8f0; border-radius: 6px; padding: 8px 12px; font-size: 13px; color: #1a365d; }
.form-input.textarea { min-height: 50px; }
.form-input.photo { color: #64748b; border-style: dashed; text-align: center; }

/* Urgency tags (modal) */
.urgency-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-urgent { background: #fee2e2; color: #991b1b; padding: 6px 12px; border-radius: 20px; font-size: 12px; }
.tag-urgent.selected { background: #dc2626; color: white; }
.tag-week { background: #fef3c7; color: #92400e; padding: 6px 12px; border-radius: 20px; font-size: 12px; }
.tag-ok { background: #dcfce7; color: #166534; padding: 6px 12px; border-radius: 20px; font-size: 12px; }

/* Email mockup (modal notification) */
.email-mockup { background: white; border-radius: 12px; border: 1px solid #e2e8f0; overflow: hidden; }
.email-header { background: #f8fafc; padding: 12px 16px; border-bottom: 1px solid #e2e8f0; }
.email-from { font-size: 12px; color: #64748b; margin-bottom: 4px; }
.email-subject { font-size: 14px; font-weight: 600; color: #1a365d; }
.urgent-badge { background: #dc2626; color: white; padding: 2px 8px; border-radius: 4px; font-size: 11px; }
.email-body { padding: 16px; }
.email-section { margin-bottom: 12px; }
.email-section:last-child { margin-bottom: 0; }
.email-label { font-size: 11px; color: #64748b; text-transform: uppercase; font-weight: 600; margin-bottom: 2px; }
.email-value { font-size: 14px; color: #1a365d; }
.email-value.clickable { color: #e85d04; }

/* Stats grid (modal fiable) */
.stats-grid { display: flex; gap: 12px; justify-content: center; background: #f8fafc; border-radius: 12px; padding: 20px; }
.stat-item { text-align: center; flex: 1; }
.stat-value { font-size: 28px; font-weight: bold; color: #1a365d; }
.stat-label { font-size: 12px; color: #64748b; margin-top: 4px; }

/* Dashboard mockup (modal) */
.dashboard-mockup { background: white; border-radius: 12px; border: 1px solid #e2e8f0; overflow: hidden; }
.dashboard-header-mock { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #1a365d; color: white; }
.dash-title { font-weight: 600; }
.dash-count { background: #e85d04; padding: 2px 10px; border-radius: 12px; font-size: 12px; }
.dashboard-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #f1f5f9; }
.dashboard-row:last-child { border-bottom: none; }
.dashboard-row.done { opacity: 0.6; }
.row-left { display: flex; align-items: center; gap: 12px; }
.row-badge { font-size: 16px; }
.row-info { display: flex; flex-direction: column; }
.row-info strong { font-size: 14px; color: #1a365d; }
.row-info span { font-size: 12px; color: #64748b; }
.row-time { font-size: 12px; color: #94a3b8; }

/* France grid (modal fiable) */
.france-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.france-item { background: #f8fafc; border-radius: 8px; padding: 12px; text-align: center; }
.france-icon { font-size: 24px; margin-bottom: 4px; }
.france-label { font-size: 11px; color: #64748b; text-transform: uppercase; font-weight: 600; }
.france-value { font-size: 13px; color: #1a365d; font-weight: 500; margin-top: 2px; }

/* Commitment box (modal confidentialité) */
.commitment-box { background: #eff6ff; border-radius: 8px; padding: 16px; text-align: center; font-size: 14px; color: #1e40af; margin-top: 16px; }

/* ========== Variantes utilitaires (remplace style="" inline) ========== */
.commitment-box--danger { background: #fef2f2; color: #991b1b; }
.modal-footnote { font-size: 12px; color: #64748b; margin-top: 16px; }
