/* =============================================================================
   PDYA - Fichier CSS Global
   Design glassmorphism sombre – terrerouge.tascocorporation.com
   ============================================================================= */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --warning-gradient: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
    --danger-gradient:  linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
    --info-gradient:    linear-gradient(135deg, #00b4db 0%, #0083b0 100%);

    --glass-bg:     rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    --dark-blue:   #0f2027;
    --medium-blue: #203a43;
    --light-blue:  #2c5364;
}

/* Body & Background */
body {
    font-family: 'DM Sans', sans-serif;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--medium-blue) 50%, var(--light-blue) 100%);
    min-height: 100vh;
    color: #fff;
    padding-top: 80px;
}

/* ─── Header Navigation ──────────────────────────────────────────────────── */
.header-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(15, 32, 39, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header-brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    background: linear-gradient(45deg, #00b4db, #0083b0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-brand:hover { transform: scale(1.05); }

.header-nav-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-button {
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-button:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); color: white; }
.nav-button.primary { background: var(--info-gradient); border-color: transparent; }
.nav-button.info    { background: var(--info-gradient); }
.nav-button.info:hover { background: var(--success-gradient); }
.nav-button.danger  { background: var(--danger-gradient); }
.nav-button.danger:hover { opacity: 0.9; }

.menu-toggle {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: rgba(15, 32, 39, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255,255,255,0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
}
.mobile-menu.active { right: 0; }

.close-menu {
    position: absolute;
    top: 1rem; right: 1rem;
    background: rgba(255,255,255,0.1);
    border: none; color: white;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.2rem;
}

.overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
}
.overlay.active { opacity: 1; visibility: visible; }

/* ─── Main Container ─────────────────────────────────────────────────────── */
.main-container {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1400px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.fade-in { animation: fadeIn 0.5s ease; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px; padding: 1.5rem;
    transition: all 0.3s ease;
}
.glass-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

.card-custom {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
}
.card-custom .card-body { padding: 1.5rem; }

.profile-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn-premium {
    background: var(--info-gradient);
    border: none; padding: 0.8rem 1.5rem;
    border-radius: 10px; color: white;
    font-weight: 600; transition: all 0.3s ease;
}
.btn-premium:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,180,219,0.4); color: white; }

.btn-secondary-custom {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2); color: white;
}
.btn-secondary-custom:hover { background: rgba(255,255,255,0.2); color: white; }

/* ─── Typography ─────────────────────────────────────────────────────────── */
.page-title {
    font-family: 'Orbitron', sans-serif;
    color: #00f2fe;
    margin-bottom: 2rem;
    font-size: 2rem;
}
.text-gradient {
    background: linear-gradient(45deg, #00b4db, #0083b0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gold { color: #f2c94c; }

/* ─── Forms ──────────────────────────────────────────────────────────────── */
.form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white; border-radius: 10px;
}
.form-control:focus {
    background: rgba(255,255,255,0.15);
    border-color: #00b4db; color: white;
    box-shadow: 0 0 0 0.2rem rgba(0,180,219,0.25);
}
.form-control::placeholder { color: rgba(255,255,255,0.5); }
.form-label { color: rgba(255,255,255,0.9); font-weight: 500; }
.form-select { background-color: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.2); color: white; }
.form-select option { background: #203a43; }

/* ─── Tables ─────────────────────────────────────────────────────────────── */
.table { color: white; }
.table thead th {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: #00f2fe; font-weight: 600;
}
.table tbody td { border-color: rgba(255,255,255,0.1); }
.table-hover tbody tr:hover { background: rgba(255,255,255,0.05); }

/* ─── Badges ─────────────────────────────────────────────────────────────── */
.badge { padding: 0.5rem 1rem; border-radius: 8px; font-weight: 500; }

/* ─── Utilities ──────────────────────────────────────────────────────────── */
.tracking-wider { letter-spacing: 0.1em; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .main-container { padding: 1.5rem; margin: 1rem; }
    .page-title { font-size: 1.5rem; }
}
@media (max-width: 768px) {
    body { padding-top: 70px; }
    .header-brand { font-size: 1.1rem; }
}
