/* css/style.css - Styles Globaux Memoris Custos RDC */

:root {
    --primary-color: #0d3b66;      /* Bleu profond officiel */
    --primary-hover: #082440;
    --secondary-color: #f4d35e;    /* Or / Jaune d'espoir */
    --accent-red: #d62828;         /* Rouge RDC */
    --accent-sky: #00a8e8;         /* Bleu ciel RDC */
    --dark-bg: #091a2b;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --heading-font: 'Playfair Display', Georgia, serif;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: #f4f6f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, .heading-serif {
    font-family: var(--heading-font);
}

.bg-dark-custom {
    background-color: var(--dark-bg) !important;
}

/* Hero Section avec Vidéo en Arrière-Plan */
.hero-section {
    position: relative;
    color: #ffffff;
    padding: 100px 0 90px;
    border-bottom: 4px solid var(--secondary-color);
    overflow: hidden;
    background: #091a2b url('../assets/images/main-slider-01.jpg') center/cover no-repeat;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(9, 26, 43, 0.88), rgba(13, 59, 102, 0.82));
    z-index: 2;
    pointer-events: none;
}


.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(244, 211, 94, 0.15);
    border: 1px solid rgba(244, 211, 94, 0.4);
    color: var(--secondary-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #e2e8f0;
    max-width: 650px;
    margin-bottom: 30px;
}

/* Modern Buttons */
.btn-gold {
    background-color: var(--secondary-color);
    color: #0f172a;
    font-weight: 700;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(244, 211, 94, 0.3);
}

.btn-gold:hover {
    background-color: #ecc038;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(244, 211, 94, 0.4);
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    color: #fff;
    transform: translateY(-2px);
}

/* Feature Cards */
.mission-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 24px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.mission-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(13, 59, 102, 0.08);
    border-color: #cbd5e1;
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.icon-box-primary {
    background-color: rgba(13, 59, 102, 0.1);
    color: var(--primary-color);
}

.icon-box-warning {
    background-color: rgba(244, 211, 94, 0.2);
    color: #b45309;
}

.icon-box-danger {
    background-color: rgba(214, 40, 40, 0.1);
    color: var(--accent-red);
}

.icon-box-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
}

/* Form Styling */
.form-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.form-header-bar {
    background: linear-gradient(135deg, var(--dark-bg), var(--primary-color));
    color: #fff;
    padding: 30px;
    border-bottom: 4px solid var(--secondary-color);
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.step-pill {
    flex: 1;
    text-align: center;
    padding: 10px 5px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 3px solid #e2e8f0;
}

.step-pill.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.step-pill.completed {
    color: #059669;
    border-bottom-color: #059669;
}

.form-section-box {
    background: #fbfcfd;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.form-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 6px;
}

.form-control, .form-select {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 59, 102, 0.15);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Custom Checkbox Group */
.checkbox-card {
    display: block;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

.checkbox-card:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.checkbox-card .form-check-input {
    margin-top: 3px;
}

/* Receipt / Printable Slip */
.receipt-card {
    background: #fff;
    border: 2px dashed #0d3b66;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.ref-code-box {
    background: #f0fdf4;
    border: 2px solid #86efac;
    color: #166534;
    padding: 16px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 2px;
}

/* ===================================================
   FICHE OFFICIELLE ADMINISTRATIVE (FORMAT A4 & PDF)
   =================================================== */
.official-pdf-container {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 25px 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    color: #0f172a;
    font-size: 12.5px;
    line-height: 1.45;
    position: relative;
}

.official-tricolor-bar {
    height: 5px;
    width: 100%;
    background: linear-gradient(90deg, #0077b6 0%, #0077b6 40%, #ffd166 40%, #ffd166 60%, #e63946 60%, #e63946 100%);
    border-radius: 4px 4px 0 0;
    margin-bottom: 15px;
}

.official-doc-header {
    border-bottom: 2px solid #0d3b66;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.official-stamp-box {
    border: 2px dashed #0d3b66;
    border-radius: 8px;
    padding: 8px 14px;
    background: #f8fafc;
    text-align: center;
}

.doc-section-title {
    background-color: #0d3b66;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    margin-top: 14px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.doc-table-grid {
    width: 100%;
    margin-bottom: 10px;
    border-collapse: collapse;
}

.doc-table-grid th, .doc-table-grid td {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    vertical-align: top;
}

.doc-table-grid th {
    background-color: #f1f5f9;
    color: #334155;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    width: 25%;
}

.doc-table-grid td {
    color: #0f172a;
    font-size: 12px;
}

.doc-signature-box {
    border: 1px solid #94a3b8;
    background: #ffffff;
    border-radius: 6px;
    height: 110px;
    padding: 8px;
    position: relative;
}

.doc-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-35deg);
    font-size: 5rem;
    font-weight: 900;
    color: rgba(13, 59, 102, 0.035);
    text-transform: uppercase;
    pointer-events: none;
    white-space: nowrap;
    z-index: 0;
}

/* Print Utilities & Export PDF Exact A4 */
@media print {
    @page {
        size: A4 portrait;
        margin: 10mm 10mm 10mm 10mm;
    }
    .no-print, header, nav, footer, .navbar, .admin-action-card, .btn {
        display: none !important;
    }
    body {
        background-color: #ffffff !important;
        font-size: 11pt !important;
        color: #000000 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .container, .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .official-pdf-container {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        page-break-after: avoid;
    }
    .doc-section-title {
        background-color: #0d3b66 !important;
        color: #ffffff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .doc-table-grid th {
        background-color: #f1f5f9 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .official-tricolor-bar {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .badge {
        border: 1px solid #333 !important;
        color: #000 !important;
    }
}