:root {
    --tchad-blue: #002664;
    --tchad-blue-light: #003d8f;
    --tchad-blue-dark: #001a42;
    --tchad-yellow: #FECB00;
    --tchad-yellow-dark: #E6B800;
}

.hero-section {
    background: linear-gradient(120deg, rgba(0,38,100,0.95), rgba(0,61,143,0.9)),
                radial-gradient(circle at top, rgba(254,203,0,0.25), transparent 55%);
    color: white;
    padding: 120px 0 90px;
}

.hero-emblem {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 600;
    letter-spacing: 0.2px;
}

.hero-emblem img {
    width: 48px;
    height: 48px;
}

.hero-emblem .hero-flag {
    width: 64px;
    height: 42px;
    border-radius: 6px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 700;
}

.hero-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 24px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.hero-carousel {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    background: white;
}

.hero-carousel .carousel-item img {
    height: 320px;
    object-fit: cover;
}

.section-title {
    font-weight: 700;
    color: var(--tchad-blue-dark);
}

.section-subtitle {
    color: #6b7280;
}

.badge-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.stats-card {
    background: white;
    border-radius: 15px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    border-top: 4px solid var(--tchad-yellow);
}

.stats-card.info {
    border-top-color: #4facfe;
}

.stats-card.success {
    border-top-color: #38ef7d;
}

.stats-card.warning {
    border-top-color: #f5576c;
}

.stats-number {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 10px 0;
    color: var(--tchad-blue);
}

.mission-item {
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.mission-item:last-child {
    border-bottom: none;
}

.mission-item i {
    color: var(--tchad-yellow-dark);
    margin-right: 10px;
}

.activity-card {
    background: white;
    border-radius: 14px;
    padding: 24px;
    height: 100%;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    border-top: 4px solid var(--tchad-blue);
}

.activity-icon {
    font-size: 1.8rem;
    color: var(--tchad-blue);
    margin-bottom: 12px;
    display: inline-block;
}

.device-card {
    background: white;
    border-radius: 14px;
    padding: 24px;
    height: 100%;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    border-left: 4px solid var(--tchad-blue);
}

.device-card h5 {
    color: var(--tchad-blue-dark);
}

.institution-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.institution-card h4 {
    color: var(--tchad-blue-dark);
}

.report-section {
    background: #eef2ff;
    padding: 60px 0;
}

.report-card {
    background: white;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.preview-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--tchad-blue);
    color: var(--tchad-blue);
    background: rgba(0, 38, 100, 0.04);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.preview-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(0, 38, 100, 0.12);
    color: var(--tchad-blue);
    font-size: 1rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.preview-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.preview-placeholder.is-hidden {
    display: none;
}

.preview-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: none;
}

.preview-iframe.is-active {
    display: block;
}

.preview-label {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.preview-title {
    font-size: 0.85rem;
}

.preview-subtitle {
    font-size: 0.7rem;
    color: #6b7280;
}

.preview-container:hover,
.preview-container:focus {
    background: var(--tchad-blue);
    color: white;
    outline: none;
}

.preview-container:hover .preview-thumb,
.preview-container:focus .preview-thumb {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.preview-container:hover .preview-subtitle,
.preview-container:focus .preview-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.btn-primary-soft {
    background: var(--tchad-blue);
    border: none;
    padding: 12px 26px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-soft:hover {
    background: var(--tchad-blue-light);
    color: white;
}

.btn-outline-soft {
    border: 1px solid var(--tchad-blue);
    padding: 12px 26px;
    border-radius: 10px;
    color: var(--tchad-blue);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-soft:hover {
    background: var(--tchad-blue);
    color: white;
}

footer {
    background: var(--tchad-blue-dark);
    color: white;
    padding: 40px 0;
    margin-top: 40px;
}
