/* =============================================
   MSG-PRO — Documentation
   home/documentation.html.twig
   ============================================= */

:root { --accent-color: #2563eb; --nav-hover-color: #2563eb; }
.header { --background-color: #1a2e5a; }
.dark-background { --background-color: #1a2e5a; }

/* ===== HERO ===== */
.doc-hero {
    background: linear-gradient(135deg, #1a2e5a 0%, #2563eb 100%);
    padding: 60px 0 60px; color: #fff; margin-top: 0;
}
.doc-hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.doc-hero p  { font-size: 1.05rem; color: rgba(255,255,255,0.8); max-width: 600px; margin-bottom: 0; }
.doc-hero .breadcrumb { background: transparent; padding: 0; margin-bottom: 16px; font-size: 0.85rem; }
.doc-hero .breadcrumb-item a { color: rgba(255,255,255,0.65); text-decoration: none; }
.doc-hero .breadcrumb-item.active { color: rgba(255,255,255,0.9); }
.doc-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ===== QUICK START ===== */
.quick-start { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 52px 0; }
.quick-start .qs-title { text-align: center; font-size: 1.4rem; font-weight: 800; color: #1a2e5a; margin-bottom: 8px; }
.quick-start .qs-sub  { text-align: center; color: #64748b; font-size: 0.95rem; margin-bottom: 40px; }
.qs-steps {
    display: flex; gap: 0; position: relative; align-items: flex-start;
}
.qs-steps::before {
    content: '';
    position: absolute; top: 28px;
    left: calc(12.5% + 14px); right: calc(12.5% + 14px);
    height: 2px; background: #bfdbfe; z-index: 0;
}
.qs-step { flex: 1; text-align: center; padding: 0 12px; position: relative; z-index: 1; }
.qs-step .qs-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--accent-color); color: #fff; font-size: 1.3rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px; box-shadow: 0 4px 16px rgba(37,99,235,0.3); border: 3px solid #fff;
}
.qs-step h4 { font-size: 0.93rem; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
.qs-step p  { font-size: 0.83rem; color: #64748b; margin: 0; line-height: 1.5; }
.qs-step a.qs-link {
    display: inline-block; margin-top: 10px; font-size: 0.82rem; font-weight: 700;
    color: var(--accent-color); text-decoration: none;
    border: 1.5px solid #bfdbfe; border-radius: 20px;
    padding: 3px 12px; background: #eff6ff; transition: 0.2s;
}
.qs-step a.qs-link:hover { background: var(--accent-color); color: #fff; border-color: var(--accent-color); }

/* ===== LAYOUT ===== */
.doc-layout { padding: 60px 0 80px; background: #f8fafc; }
.doc-sidebar { position: sticky; top: 100px; }
.doc-nav {
    background: #fff; border-radius: 14px; border: 1px solid #e2e8f0;
    padding: 24px 0; box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.doc-nav .nav-header { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #94a3b8; padding: 0 24px 10px; }
.doc-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 24px; font-size: 0.88rem; color: #475569; text-decoration: none; border-left: 3px solid transparent; transition: 0.2s; font-weight: 500; }
.doc-nav a:hover, .doc-nav a.active { color: var(--accent-color); background: #eff6ff; border-left-color: var(--accent-color); }
.doc-nav a i { font-size: 0.85rem; flex-shrink: 0; color: #94a3b8; }
.doc-nav a:hover i, .doc-nav a.active i { color: var(--accent-color); }
.doc-nav .nav-divider { height: 1px; background: #f1f5f9; margin: 8px 0; }

/* ===== CONTENU ===== */
.doc-content { background: #fff; border-radius: 14px; border: 1px solid #e2e8f0; padding: 44px 48px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.doc-section { padding-top: 20px; padding-bottom: 36px; border-bottom: 1px solid #f1f5f9; }
.doc-section:last-child { border-bottom: none; padding-bottom: 0; }
.doc-section h2 { font-size: 1.3rem; font-weight: 800; color: #1a2e5a; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.doc-section h2 .sec-icon { background: #eff6ff; color: var(--accent-color); width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.doc-section h3 { font-size: 1rem; font-weight: 700; color: #1e293b; margin: 20px 0 10px; }
.doc-section p, .doc-section li { color: #475569; font-size: 0.94rem; line-height: 1.75; }
.doc-section ul, .doc-section ol { padding-left: 20px; margin-bottom: 0; }
.doc-section li { margin-bottom: 6px; }
.doc-section strong { color: #1e293b; }
.doc-section code { background: #f1f5f9; color: #2563eb; padding: 1px 6px; border-radius: 4px; font-size: 0.88em; font-family: monospace; }

/* ===== CALLOUTS ===== */
.callout { border-radius: 10px; padding: 14px 18px; margin: 16px 0; display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; }
.callout i { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.callout-tip     { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.callout-tip i   { color: #16a34a; }
.callout-warning { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }
.callout-warning i { color: #d97706; }
.callout-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.callout-info i  { color: #2563eb; }

/* ===== ÉTAPES ===== */
.step-list { list-style: none; padding: 0; margin: 0; }
.step-list li { display: flex; gap: 14px; margin-bottom: 14px; align-items: flex-start; }
.step-list li .step-num { background: var(--accent-color); color: #fff; width: 26px; height: 26px; border-radius: 50%; font-size: 0.78rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }

/* ===== TABLE TARIFS ===== */
.doc-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 16px 0; font-size: 0.9rem; }
.doc-table thead th { background: #1a2e5a; color: #fff; padding: 11px 16px; font-weight: 600; letter-spacing: 0.3px; }
.doc-table thead th:first-child { border-radius: 8px 0 0 0; }
.doc-table thead th:last-child  { border-radius: 0 8px 0 0; }
.doc-table tbody td { padding: 10px 16px; border-bottom: 1px solid #f1f5f9; color: #475569; }
.doc-table tbody tr:last-child td { border-bottom: none; }
.doc-table tbody tr:hover td { background: #f8fafc; }
.doc-table tbody tr.featured td { background: #eff6ff; color: #1e3a8a; font-weight: 600; }

/* ===== EXEMPLE SMS ===== */
.sms-example { display: flex; gap: 20px; margin: 16px 0; flex-wrap: wrap; }
.sms-bubble { flex: 1; min-width: 220px; border-radius: 12px; padding: 16px 18px; font-size: 0.88rem; line-height: 1.65; }
.sms-bubble.before { background: #f1f5f9; border: 1px solid #e2e8f0; color: #475569; }
.sms-bubble.after  { background: #f0fdf4; border: 1px solid #86efac; color: #14532d; }
.sms-bubble .sms-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; opacity: 0.65; }
.sms-bubble code { background: rgba(0,0,0,0.07); color: inherit; }

/* ===== BALISES ===== */
.tags-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.tag-badge { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; border-radius: 6px; padding: 5px 12px; font-size: 0.85rem; font-family: monospace; font-weight: 600; }

/* ===== CODES DE STATUT ===== */
.status-table { width: 100%; font-size: 0.9rem; border-collapse: collapse; margin-top: 12px; }
.status-table th { background: #f8fafc; color: #475569; padding: 9px 14px; text-align: left; font-weight: 700; border-bottom: 2px solid #e2e8f0; }
.status-table td { padding: 9px 14px; border-bottom: 1px solid #f1f5f9; color: #475569; }
.status-table tr:last-child td { border-bottom: none; }
.badge-success { background: #dcfce7; color: #166534; padding: 2px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.badge-pending { background: #fef9c3; color: #854d0e; padding: 2px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.badge-error   { background: #fee2e2; color: #991b1b; padding: 2px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }

/* ===== BONNES PRATIQUES ===== */
.bp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 16px; }
.bp-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 18px; font-size: 0.88rem; }
.bp-card i { font-size: 1.4rem; color: var(--accent-color); display: block; margin-bottom: 10px; }
.bp-card h4 { font-size: 0.9rem; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
.bp-card p { color: #64748b; margin: 0; line-height: 1.55; }

/* ===== FAQ ===== */
.faq-item { border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.faq-item .faq-q { padding: 14px 18px; font-weight: 700; color: #1e293b; font-size: 0.93rem; background: #f8fafc; cursor: default; }
.faq-item .faq-a { padding: 12px 18px 14px; color: #475569; font-size: 0.91rem; line-height: 1.65; border-top: 1px solid #e2e8f0; }

/* ===== CONTACT ===== */
.contact-card { display: flex; align-items: center; gap: 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; font-size: 0.92rem; color: #475569; }
.contact-card i { font-size: 1.3rem; color: var(--accent-color); flex-shrink: 0; }
.contact-card a { color: var(--accent-color); text-decoration: none; font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }

/* ===== CTA ===== */
.doc-cta { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border: 1px solid #bfdbfe; border-radius: 12px; padding: 28px 32px; text-align: center; margin-top: 8px; }
.doc-cta h3 { font-size: 1.15rem; font-weight: 800; color: #1e3a8a; margin-bottom: 8px; }
.doc-cta p  { color: #3b5bdb; font-size: 0.92rem; margin-bottom: 16px; }
.doc-cta .btn-doc { background: var(--accent-color); color: #fff; padding: 11px 28px; border-radius: 8px; font-weight: 700; font-size: 0.93rem; text-decoration: none; display: inline-block; transition: 0.25s; }
.doc-cta .btn-doc:hover { background: #1d4ed8; color: #fff; }

/* FAQ chevron accent */
.faq-item .faq-q i { color: var(--accent-color); }

/* Footer logo */
.footer-logo { height: 60px; width: auto; }

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .doc-content { padding: 28px 20px; }
    .doc-sidebar { position: static; margin-bottom: 24px; }
    .qs-steps { flex-direction: column; align-items: center; }
    .qs-steps::before { display: none; }
    .qs-step { width: 100%; max-width: 320px; padding-bottom: 20px; }
    .sms-example { flex-direction: column; }
}
