/* AGORA FORMATION - Style */
:root {
    --navy: #3b4a6b;
    --navy-dark: #2a3450;
    --navy-light: #5a6a8a;
    --accent: #7b8fb5;
    --bg: #f4f6fa;
    --white: #ffffff;
    --text: #2a2a2a;
    --text-muted: #6b7280;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 10px;
    --shadow: 0 2px 12px rgba(59,74,107,0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}

/* NAV */
nav {
    background: var(--navy-dark);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

nav .logo img { height: 40px; }
nav .logo span {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 600;
    margin-left: 10px;
    vertical-align: middle;
}

nav ul { list-style: none; display: flex; gap: 1.5rem; }
nav ul li a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}
nav ul li a:hover { color: var(--white); }

/* HERO */
.hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    color: var(--white);
    padding: 5rem 2rem 4rem;
    text-align: center;
}
.hero h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; opacity: 0.85; margin-bottom: 2rem; }

/* BOUTON */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.2s;
}
.btn-primary { background: var(--white); color: var(--navy-dark); }
.btn-primary:hover { background: var(--bg); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); }
.btn-success { background: var(--success); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-warning { background: var(--warning); color: var(--white); }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* CONTAINER */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 3rem 0; }
.section-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 2rem;
}

/* CARDS */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }

/* FORMATION CARD */
.formation-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.formation-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(59,74,107,0.15); }
.formation-card .card-header {
    background: var(--navy);
    color: var(--white);
    padding: 1.2rem 1.5rem;
}
.formation-card .card-header h3 { font-size: 1.05rem; font-weight: 600; }
.formation-card .card-header .duree { font-size: 0.82rem; opacity: 0.8; margin-top: 3px; }
.formation-card .card-body { padding: 1.2rem 1.5rem; }
.formation-card .prix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.formation-card .prix span { font-size: 0.85rem; font-weight: 400; color: var(--text-muted); }
.formation-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }

/* FORM */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--navy-dark);
    font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s;
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--navy); }
.form-group .hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }

/* BADGE */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }

/* ALERT */
.alert {
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius);
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid var(--success); }
.alert-danger { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--danger); }
.alert-warning { background: #fef3c7; color: #92400e; border-left: 4px solid var(--warning); }
.alert-info { background: #dbeafe; color: #1e40af; border-left: 4px solid #3b82f6; }

/* TABLE */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table th { background: var(--navy-dark); color: var(--white); padding: 0.75rem 1rem; text-align: left; font-weight: 600; }
table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); }
table tr:hover td { background: #f8fafc; }

/* STAT CARD */
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.3rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--navy);
}
.stat-card .stat-num { font-size: 2rem; font-weight: 700; color: var(--navy-dark); }
.stat-card .stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* FOOTER */
footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
    margin-top: 3rem;
}

/* ADMIN SIDEBAR */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 240px;
    background: var(--navy-dark);
    color: var(--white);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar .sidebar-logo {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar .sidebar-logo img { height: 35px; }
.sidebar ul { list-style: none; padding: 1rem 0; }
.sidebar ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.7rem 1.5rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.sidebar ul li a:hover,
.sidebar ul li a.active { background: rgba(255,255,255,0.1); color: var(--white); }
.sidebar ul li a .icon { font-size: 1.1rem; width: 20px; text-align: center; }
.admin-content { flex: 1; padding: 2rem; background: var(--bg); overflow-y: auto; }
.admin-header { margin-bottom: 2rem; }
.admin-header h1 { font-size: 1.5rem; color: var(--navy-dark); font-weight: 700; }

/* PEMAN BOX */
.natcash-box {
    background: var(--navy-dark);
    color: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}
.natcash-box .numero { font-size: 2rem; font-weight: 700; letter-spacing: 2px; }
.natcash-box .label { font-size: 0.85rem; opacity: 0.75; margin-top: 5px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    nav ul { display: none; }
    .hero h1 { font-size: 1.6rem; }
    .admin-layout { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: relative; }
}

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.fw-bold { font-weight: 700; }
.text-muted { color: var(--text-muted); }
.text-navy { color: var(--navy); }
