/* -------------------------------------------------------------
   🎨 DESIGN GLOBAL & BASES
------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
    display: flex;
    background-color: #f4f7fa;
    color: #2c3e50;
    overflow-x: hidden;
}

/* -------------------------------------------------------------
   💎 SIDEBAR PREMIUM (Harmonisée)
------------------------------------------------------------- */
.sidebar {
    position: fixed;
    height: 100vh;
    width: 260px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
}
.sidebar .logo-details {
    height: 75px;
    display: flex;
    align-items: center;
    padding: 0 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar .logo-details .logo_name {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.sidebar .nav-links {
    padding: 25px 15px;
    list-style: none;
}
.sidebar .nav-links li {
    margin-bottom: 8px;
}
.sidebar .nav-links li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 14px 20px;
    color: #94a3b8;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
/* États Hover et Actif de la Sidebar */
.sidebar .nav-links li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}
.sidebar .nav-links li a.active {
    background: linear-gradient(90deg, #0288d1 0%, #00d2fc 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(2, 136, 209, 0.3);
}
/* Bouton Admin Spécial */
.sidebar .nav-links li.login-btn {
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
}
.sidebar .nav-links li.login-btn a {
    background: rgba(2, 136, 209, 0.1);
    color: #00d2fc;
}
.sidebar .nav-links li.login-btn a:hover {
    background: rgba(2, 136, 209, 0.2);
    color: #ffffff;
}

/* -------------------------------------------------------------
   🚀 CONTENU PRINCIPAL & RESPONSIVE
------------------------------------------------------------- */
.main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.toggle-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 22px;
    background: #0f172a;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    display: none;
    z-index: 101;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
@media (max-width: 992px) {
    .sidebar { left: -260px; }
    .sidebar.active { left: 0; }
    .main-content { margin-left: 0; width: 100%; padding: 80px 20px 20px 20px; }
    .toggle-btn { display: block; }
}

/* -------------------------------------------------------------
   📸 COMPOSANT SLIDER ULTRA-PREMIUM
------------------------------------------------------------- */
.slider-container {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
    margin-bottom: 40px;
}
.slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: center;
    background-position: center;
}
/* Voile sombre pour lisibilité du texte */
.slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(2, 136, 209, 0.4) 100%);
}
.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    max-width: 650px;
    z-index: 2;
}
.slide-content h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #00d2fc;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.slide-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.95;
}

/* Flèches de navigation du Slider */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}
.slider-nav:hover {
    background: #0288d1;
    border-color: #0288d1;
    transform: translateY(-50%) scale(1.1);
}
.prev { left: 20px; }
.next { right: 20px; }

/* Points indicateurs (Dots) */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}
.dot.active {
    background: #00d2fc;
    width: 30px;
    border-radius: 6px;
}

@media(max-width: 768px) {
    .slider-container { height: 350px; }
    .slide-content h1 { font-size: 2rem; }
    .slide-content p { font-size: 1rem; }
    .slider-nav { display: none; } /* On cache les flèches sur mobile */
}
