/* assets/css/style.css */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #0dcaf0;
    --dark-bg: #212529;
    --light-bg: #f8f9fa;
    --text-light: #f8f9fa;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    background-color: var(--light-bg);
}

/* --- ANIMATED HERO SECTION --- */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none; /* Let clicks pass through */
}

.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.9), rgba(13, 202, 240, 0.8)), url('https://picsum.photos/seed/tech/1920/1080') center/cover;
    color: white;
    padding: 100px 0;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* --- UI COMPONENTS --- */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

/* --- ADMIN PANEL STYLES --- */
body.admin-mode {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--dark-bg);
    color: white;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
}

.admin-sidebar a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    transition: 0.2s;
}

.admin-sidebar a:hover, .admin-sidebar a.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left: 4px solid var(--accent-color);
}

.admin-content {
    margin-left: 260px;
    width: 100%;
    padding: 20px;
    transition: margin-left 0.3s;
}

/* --- UTILITIES --- */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
}

/* ==========================
   STYLE PARALLAXE (WELCOME)
   ========================== */
.section-welcome-parallax {
    /* Votre demande exacte pour le fond */
    background: url("../images/parallax-bg.jpg") center top no-repeat;
    
    /* Correction pour que l'image couvre bien toute la largeur */
    background-size: cover;
    
    /* Dimensions et alignement */
    min-height: 490px; 
    display: flex;
    align-items: center;
    position: relative;
    color: #fff;
}

/* Overlay sombre pour lisibilité du texte (Obligatoire sur une image) */
.section-welcome-parallax::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* Noir 60% transparent */
    z-index: 1;
}

/* Pour s'assurer que le contenu est AU-DESSUS de l'overlay */
.section-welcome-parallax .content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}