/* ============================================================
   Colloque International sur la Cybersécurité - UNITECH
   Feuille de style principale
   ============================================================ */

:root {
    --bleu-fonce: #003366;
    --bleu-fonce-dark: #002347;
    --bleu-clair: #4d9fff;
    --bleu-clair-2: #e8f1fb;
    --blanc: #ffffff;
    --gris-clair: #f4f6f9;
    --gris-texte: #495057;
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: #1f2a37;
    background-color: var(--gris-clair);
}

.text-primary-dark { color: var(--bleu-fonce) !important; }
.bg-primary-dark { background-color: var(--bleu-fonce) !important; }

/* ---------- Header ---------- */
.site-header .navbar {
    background: linear-gradient(90deg, var(--bleu-fonce) 0%, var(--bleu-fonce-dark) 100%);
    padding: 14px 0;
}
.brand-text {
    color: #fff;
    font-weight: 700;
    line-height: 1.1;
    font-size: 1.05rem;
}
.brand-text small {
    font-weight: 400;
    font-size: 0.72rem;
    color: #cfe0f5;
}

/* ---------- Hero ---------- */
.hero-section {
    position: relative;
    min-height: 78vh;
    background: linear-gradient(135deg, var(--bleu-fonce) 0%, #001d3d 60%, #000c1a 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(77,159,255,0.18) 0, transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(77,159,255,0.15) 0, transparent 45%);
    pointer-events: none;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 40px);
}
.badge.bg-light.text-primary-dark {
    background: rgba(255,255,255,0.12) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.35);
}
.hero-image-card img {
    border: 4px solid rgba(255,255,255,0.15);
    max-height: 420px;
    object-fit: cover;
    width: 100%;
}

.btn-cta {
    background: var(--bleu-clair);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(77,159,255,0.35);
}
.btn-cta:hover, .btn-cta:focus {
    background: #2f8bf7;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(77,159,255,0.45);
}

/* ---------- Info cards ---------- */
.info-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0,51,102,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0,51,102,0.14);
}

.cta-section {
    background: var(--bleu-clair-2);
}

/* ---------- Form ---------- */
.form-page { background: var(--gris-clair); }
.form-card {
    border-radius: 20px !important;
    background: #fff;
}
.form-label { font-weight: 600; color: var(--bleu-fonce); }
.form-control:focus, .form-select:focus {
    border-color: var(--bleu-clair);
    box-shadow: 0 0 0 0.2rem rgba(77,159,255,0.2);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bleu-fonce-dark);
    color: #c9d6e5;
    padding: 48px 0 20px;
    margin-top: 60px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #c9d6e5; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

/* ============================================================
   Espace Administrateur
   ============================================================ */
.admin-body {
    background: var(--gris-clair);
    min-height: 100vh;
}
.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    background: var(--bleu-fonce-dark);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    padding: 20px 0;
    transition: transform 0.25s ease;
    z-index: 1030;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 10px;
}
.sidebar-nav .nav-link {
    color: #c9d6e5;
    padding: 12px 20px;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}
.sidebar-nav .nav-link i { width: 18px; }
.sidebar-nav .nav-link:hover, .sidebar-nav .nav-link.active {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-left-color: var(--bleu-clair);
}
.admin-content {
    margin-left: 260px;
    padding: 28px;
}
@media (max-width: 991.98px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-content { margin-left: 0; }
}

.admin-topbar {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 14px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-left: 4px solid var(--bleu-clair);
    height: 100%;
}
.stat-card .stat-value { font-size: 1.9rem; font-weight: 700; color: var(--bleu-fonce); }
.stat-card .stat-label { color: var(--gris-texte); font-size: 0.9rem; }

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bleu-fonce) 0%, #001d3d 100%);
}
.login-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    max-width: 420px;
    width: 100%;
    padding: 40px 32px;
}

/* Dark mode admin */
body.dark-mode { background: #10151c; color: #dfe6ee; }
body.dark-mode .admin-sidebar { background: #0a0e13; }
body.dark-mode .admin-topbar,
body.dark-mode .stat-card,
body.dark-mode .card,
body.dark-mode .table {
    background: #1a212b !important;
    color: #dfe6ee !important;
}
body.dark-mode .table { --bs-table-color: #dfe6ee; --bs-table-bg: #1a212b; }
body.dark-mode .form-control, body.dark-mode .form-select {
    background: #232c38; color: #dfe6ee; border-color: #333f4d;
}

@media print {
    .admin-sidebar, .admin-topbar, .no-print { display: none !important; }
    .admin-content { margin-left: 0 !important; }
}
