/* style.css - Design System du Robot Presse */
/* 🛡️ Géré par Carter (Orbiteo) */

/* Fond global sombre */
body {
    background: radial-gradient(circle at top left, #1a1a24 0%, #0d0d12 100%);
    color: #ffffff;
    font-family: 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

/* Effet Verre (Glassmorphism) */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Barre latérale */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 260px;
    height: 100vh;
    background: rgba(10, 10, 15, 0.6);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 1rem;
    backdrop-filter: blur(20px);
    z-index: 100; /* Garde la sidebar toujours au dessus */
}

.sidebar-brand {
    font-size: 1.4rem; font-weight: bold; color: #fff; text-decoration: none;
    display: block; margin-bottom: 3rem; padding-left: 1rem;
}

.sidebar-brand span { color: #0099FF; }

.nav-link {
    color: #888; border-radius: 8px; padding: 0.8rem 1rem; margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    background: rgba(0, 153, 255, 0.1); color: #fff;
}

/* Contenu Principal */
.main-content { margin-left: 260px; padding: 3rem; }

/* Boutons de la marque Orbiteo */
.btn-brand {
    background: linear-gradient(135deg, #0099FF 0%, #0066CC 100%);
    border: none; color: #fff; font-weight: 500;
}

.btn-brand:hover { 
    background: linear-gradient(135deg, #00b3ff 0%, #0077ee 100%); 
    color: #fff; 
}

/* Formulaires */
.form-control {
    background: rgba(0, 0, 0, 0.2); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    color: #fff;
}

.form-control:focus {
    background: rgba(0, 0, 0, 0.3); border-color: #0099FF; color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(0, 153, 255, 0.25);
}

/* Animation et Z-index pour les articles (Le correctif du menu !) */
.transition-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative; 
    z-index: 1; 
}

.transition-hover:hover, .transition-hover:focus-within {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(0, 153, 255, 0.3);
    z-index: 10; 
}

/* Utilitaires */
.cursor-pointer { cursor: pointer; }

.form-label {color:#F7F7F7 !important;}

/* ==========================================
   RESPONSIVE MOBILE (Smartphones & Tablettes)
   ========================================== */
@media (max-width: 768px) {
    /* Le contenu principal passe sous le header fixe mobile */
    .main-content {
        margin-left: 0 !important;
        padding: 80px 15px 20px 15px !important; 
    }

    /* On empile proprement les boutons et titres */
    .main-content .d-flex.justify-content-between,
    .glass-panel .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
    
    .glass-panel .d-flex.gap-2 {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    /* On agrandit les liens du menu burger pour les doigts */
    .offcanvas-body .nav-link {
        padding: 12px 20px;
        font-size: 1.1rem;
        border-radius: 10px;
        margin-bottom: 5px;
    }
}