:root {
    --yellow: #FFD700;
    --white: #FFFFFF;
    --red: #DC143C;
    --green: #228B22;
    --dark: #0A0A0A;
    --dark-card: #111827;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-mocha: linear-gradient(135deg, #228B22, #FFD700, #DC143C);
    --shadow-glow: 0 0 40px rgba(255, 215, 0, 0.15);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
}

/* ========== NAVIGATION ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 2rem;
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--white);
}

.logo-svg {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text span {
    background: var(--gradient-mocha);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-mocha);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: 0.3s;
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(34, 139, 34, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(220, 20, 60, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.06) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero h1 span {
    background: var(--gradient-mocha);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== BOUTONS ========== */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-mocha);
    color: var(--dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--yellow);
    background: rgba(255, 215, 0, 0.1);
}

.btn-delete {
    background: rgba(220, 20, 60, 0.2);
    color: var(--red);
    border: 1px solid rgba(220, 20, 60, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.3s;
}

.btn-delete:hover {
    background: var(--red);
    color: var(--white);
}

/* ========== PAGES ========== */
.page-section {
    min-height: 100vh;
    padding: 7rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-mocha);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
}

/* ========== TIMELINE ========== */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-mocha);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 2.5rem;
    width: 50%;
    position: relative;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-content {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: 0.3s;
}

.timeline-content:hover {
    border-color: var(--yellow);
    box-shadow: var(--shadow-glow);
}

.timeline-year {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-mocha);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
}

.timeline-content h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ========== CARDS GRID ========== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: 0.3s;
}

.card:hover {
    border-color: var(--yellow);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.card h3 {
    color: var(--yellow);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* ========== MEMBER CARD ========== */
.member-card {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
}

.member-card:hover {
    border-color: var(--yellow);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.member-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--dark-card);
}

.member-info {
    padding: 1.5rem;
}

.member-info h3 {
    color: var(--white);
    margin-bottom: 0.3rem;
}

.member-info .role {
    color: var(--yellow);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.member-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ========== FOOTER ========== */
.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.3);
}

.empty-state p {
    font-size: 1.1rem;
}

/* ========== ADMIN LOGIN ========== */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
}

.login-box {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    width: 90%;
    max-width: 400px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    background: var(--gradient-mocha);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.login-box .subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.login-box input {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1rem;
    outline: none;
}

.login-box input:focus {
    border-color: var(--yellow);
}

.login-box .error {
    color: var(--red);
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* ========== ADMIN DASHBOARD ========== */
.admin-dashboard {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--dark-card);
    border-right: 1px solid var(--glass-border);
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1rem;
}

.sidebar-header h3 {
    background: var(--gradient-mocha);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    list-style: none;
    padding: 0 1rem;
    flex: 1;
}

.sidebar-nav li {
    margin-bottom: 2px;
}

.sidebar-nav a {
    display: block;
    padding: 0.7rem 1rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.sidebar-nav a.active {
    color: var(--yellow);
    background: rgba(255, 215, 0, 0.1);
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.btn-logout {
    width: 100%;
    padding: 0.7rem;
    background: rgba(220, 20, 60, 0.15);
    border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: 8px;
    color: var(--red);
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-logout:hover {
    background: var(--red);
    color: var(--white);
}

.admin-main {
    flex: 1;
    margin-left: 250px;
    padding: 2rem;
}

.admin-tab {
    display: none;
}

.admin-tab.active {
    display: block;
}

.admin-card {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-card h3 {
    color: var(--yellow);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--yellow);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.list-item-info {
    flex: 1;
}

.list-item-title {
    font-weight: 600;
    color: var(--white);
}

.list-item-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--dark-card);
    border: 1px solid var(--green);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: var(--white);
    z-index: 9999;
    animation: slideInToast 0.3s ease;
}

@keyframes slideInToast {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--dark-card);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .page-section {
        padding: 5rem 1rem 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px !important;
        padding-right: 0 !important;
        left: 0 !important;
        text-align: left !important;
    }

    .admin-dashboard {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }

    .admin-main {
        margin-left: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}