/* =============================================
   EXTRIUME - Stylesheet principal
   Couleurs : Magenta #E2017B | Bleu #1772DB | Noir #0A0A1A
   ============================================= */

/* === Variables CSS === */
:root {
    --primary: #E2017B;
    --primary-dark: #b8015f;
    --primary-light: #ff4da6;
    --secondary: #1772DB;
    --secondary-dark: #1259ad;
    --secondary-light: #4d9bef;
    --dark: #0A0A1A;
    --dark-light: #1a1a2e;
    --dark-card: #16213e;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-500: #6c757d;
    --gray-700: #495057;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #E2017B, #1772DB);
    --gradient-dark: linear-gradient(135deg, #0A0A1A, #1a1a2e);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.18);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-700);
    background: var(--gray-100);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* === Navbar === */
.navbar-extriume {
    background: var(--dark) !important;
    padding: 0.8rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1050;
}

.navbar-extriume .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 3px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-extriume .navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

.navbar-extriume .nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.navbar-extriume .nav-link:hover,
.navbar-extriume .nav-link.active {
    color: var(--white) !important;
}

.navbar-extriume .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.navbar-extriume .btn-primary-ext {
    background: var(--primary);
    border: none;
    padding: 8px 24px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    transition: var(--transition);
}

.navbar-extriume .btn-primary-ext:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(226, 1, 123, 0.4);
}

/* === Boutons === */
.btn-primary-ext {
    background: var(--primary);
    border: none;
    color: white;
    padding: 10px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
}

.btn-primary-ext:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(226, 1, 123, 0.4);
}

.btn-secondary-ext {
    background: var(--secondary);
    border: none;
    color: white;
    padding: 10px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
}

.btn-secondary-ext:hover {
    background: var(--secondary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(23, 114, 219, 0.4);
}

.btn-outline-ext {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 9px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
}

.btn-outline-ext:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* === Hero Section === */
.hero-section {
    background: var(--gradient-dark);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(226, 1, 123, 0.15), transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(23, 114, 219, 0.1), transparent 70%);
    border-radius: 50%;
}

.hero-section .hero-content {
    position: relative;
    z-index: 2;
}

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

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

.hero-section p.lead {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    max-width: 550px;
    margin-bottom: 2rem;
}

/* === Section Styles === */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

/* === Cards === */
.card-ext {
    background: white;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}

.card-ext:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.card-ext .card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-ext .card-body {
    padding: 1.8rem;
}

.card-ext .card-title {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.8rem;
}

/* === Service Cards === */
.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 2px solid transparent;
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
}

.service-card .icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(226,1,123,0.1), rgba(23,114,219,0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .icon-wrapper {
    background: var(--gradient-primary);
    color: white;
}

.service-card h5 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.8rem;
}

.service-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* === Steps / Process === */
.step-item {
    text-align: center;
    padding: 1.5rem;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-item h5 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.step-item p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* === Stats === */
.stat-box {
    text-align: center;
    padding: 1.5rem;
}

.stat-box .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-box .stat-label {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin-top: 0.3rem;
}

/* === Forms === */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(226, 1, 123, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.auth-card {
    max-width: 480px;
    margin: 60px auto;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
}

.auth-card .auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card .auth-header h2 {
    font-weight: 700;
    color: var(--dark);
}

.auth-card .auth-header p {
    color: var(--gray-500);
}

/* === Dashboard Client === */
.dashboard-stat {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.dashboard-stat:hover {
    box-shadow: var(--shadow-md);
}

.dashboard-stat .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.dashboard-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.dashboard-stat .stat-label {
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* === Sidebar Admin === */
.sidebar-admin {
    width: 260px;
    background: var(--dark);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    transition: var(--transition);
    overflow-y: auto;
}

.sidebar-admin .sidebar-brand {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-admin .sidebar-brand h4 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0;
}

.sidebar-admin .nav-link {
    color: rgba(255,255,255,0.7) !important;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-admin .nav-link:hover {
    color: white !important;
    background: rgba(255,255,255,0.05);
    border-left-color: var(--primary);
}

.sidebar-admin .nav-link.active {
    color: white !important;
    background: rgba(226, 1, 123, 0.15);
    border-left-color: var(--primary);
}

.sidebar-admin .nav-link i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.sidebar-admin .sidebar-section {
    padding: 1rem 1.5rem 0.5rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.admin-content {
    margin-left: 260px;
    padding: 1.5rem;
    min-height: 100vh;
    background: var(--gray-100);
}

.admin-topbar {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* === Admin Cards === */
.admin-stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.admin-stat-card:hover {
    box-shadow: var(--shadow-md);
}

.admin-stat-card .icon-box {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.admin-stat-card h3 {
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.admin-stat-card p {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin: 0;
}

/* === Tables === */
.table-ext {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-ext thead {
    background: var(--dark);
    color: white;
}

.table-ext thead th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.9rem 1rem;
    border: none;
}

.table-ext tbody td {
    padding: 0.9rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9rem;
}

.table-ext tbody tr:hover {
    background: rgba(226, 1, 123, 0.03);
}

/* === Badges === */
.badge-etape {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* === Progress Steps === */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 30px;
    right: 30px;
    height: 3px;
    background: var(--gray-200);
}

.progress-step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.progress-step .step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition);
}

.progress-step.active .step-circle {
    background: var(--primary);
    color: white;
}

.progress-step.completed .step-circle {
    background: #28a745;
    color: white;
}

.progress-step .step-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 600;
}

.progress-step.active .step-label {
    color: var(--primary);
}

.progress-step.completed .step-label {
    color: #28a745;
}

/* === Footer === */
.footer-extriume {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-extriume h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-extriume h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-extriume a {
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-extriume a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-extriume .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.2rem 0;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.85rem;
}

.footer-extriume .social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-extriume .social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    padding-left: 0;
}

/* === Notification dropdown === */
.notif-dropdown {
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
}

.notif-item {
    padding: 10px 15px;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.notif-item:hover {
    background: var(--gray-100);
}

.notif-item.unread {
    background: rgba(226, 1, 123, 0.05);
    border-left: 3px solid var(--primary);
}

/* === Responsive === */
@media (max-width: 991px) {
    .sidebar-admin {
        transform: translateX(-100%);
    }
    
    .sidebar-admin.show {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
    }
    
    .hero-section {
        padding: 60px 0 50px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .progress-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-steps::before {
        display: none;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .auth-card {
        margin: 30px 15px;
        padding: 1.5rem;
    }
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* === Utilities === */
.text-primary-ext { color: var(--primary) !important; }
.text-secondary-ext { color: var(--secondary) !important; }
.bg-primary-ext { background: var(--primary) !important; }
.bg-secondary-ext { background: var(--secondary) !important; }
.bg-gradient-primary { background: var(--gradient-primary) !important; }
.bg-dark-ext { background: var(--dark) !important; }
.border-primary-ext { border-color: var(--primary) !important; }

/* === Loader === */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
