/* =============================================
   SAS PLANNING - STYLES PRINCIPAUX
   ============================================= */

/* Variables CSS */
:root {
    --primary-color: #42a5f5;
    --primary-hover: #1d4ed8;
    --primary-light: #dbeafe;
    
    --secondary-color: #64748b;
    --secondary-hover: #475569;
    
    --success-color: #10b981;
    --success-light: #d1fae5;
    
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    
    --error-color: #ef4444;
    --error-light: #fee2e2;
    
    --info-color: #3b82f6;
    --info-light: #dbeafe;
    
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
    
    /* Dashboard Card Colors - Modern & Less Vivid */
    --card-plannings-bg: #5c6bc0;
    --card-published-bg: #26a69a;
    --card-courses-bg: #42a5f5;
    --card-coachs-bg: #ff7043;
}

/* Dashboard Stats Cards */
.card-plannings {
    background: var(--card-plannings-bg) !important;
    border: none;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
   
}
.card-plannings:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(92, 107, 192, 0.4);
}
.card-body h3 {
  font-weight:800;
  color: white!important;
}

.card-published {
    background: var(--card-published-bg) !important;
    border: none;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card-published:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(38, 166, 154, 0.4);
}

.card-courses {
    background: var(--card-courses-bg) !important;
    border: none;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card-courses:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(66, 165, 245, 0.4);
}

.card-coachs {
    background: var(--card-coachs-bg) !important;
    border: none;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card-coachs:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 112, 67, 0.4);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #494949;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

p {
    margin-bottom: 1rem;
}

.text-muted {
    color: var(--text-muted);
}

/* =============================================
   ALERTES
   ============================================= */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background-color: var(--success-light);
    color: #065f46;
    border: 1px solid #86efac;
}

.alert-error {
    background-color: var(--error-light);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-warning {
    background-color: var(--warning-light);
    color: #92400e;
    border: 1px solid #fcd34d;
}

.alert-info {
    background-color: var(--info-light);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* =============================================
   BOUTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--secondary-hover);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover:not(:disabled) {
    background-color: var(--bg-color);
    border-color: var(--text-muted);
}

.btn-danger {
    background-color: var(--error-color);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background-color: #dc2626;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}
span.plan-badge {
background: #27ae60;
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}



.icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* =============================================
   FORMULAIRES
   ============================================= */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: white;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-error {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--error-color);
}

.form-hint {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.password-input {
    position: relative;
}

.password-input .form-control {
    padding-right: 2.5rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--text-muted);
}

.password-toggle:hover {
    color: var(--text-primary);
}

/* =============================================
   NAVBAR
   ============================================= */
       .user-dropdown { position: relative; }
        .user-dropdown-toggle {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: var(--primary-color, #2563eb);
            color: white;
            border-radius: 8px;
            cursor: pointer;
            text-decoration: none;
            transition: all 0.2s;
        }
        .user-dropdown-toggle:hover {
            background: var(--primary-hover, #1d4ed8);
            color: white;
        }
        .user-dropdown-menu {
            position: absolute;
            top: 100%;
            right: 0;
            margin-top: 8px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            min-width: 200px;
            display: none;
            z-index: 1000;
        }
        .user-dropdown-menu.show { display: block; }
        .user-dropdown-header {
            padding: 12px 16px;
            border-bottom: 1px solid #eee;
            font-weight: 600;
            color: #333;
        }
        .user-dropdown-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            color: #333;
            text-decoration: none;
            transition: background 0.2s;
        }
        .user-dropdown-item:hover {
            background: #f8f9fa;
            color: #333;
        }
        .user-dropdown-item i {
            width: 20px;
            text-align: center;
        }
        .user-dropdown-divider {
            height: 1px;
            background: #eee;
            margin: 4px 0;
        }
        
        /* Navbar responsive */
        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 2rem;
            background: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.08);
        }
        .navbar-brand {
            font-size: 1.5rem;
            font-weight: 700;
            color: #2563eb;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .navbar-menu {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        .navbar .nav-link {
            color: #333;
            text-decoration: none;
            padding: 8px 16px;
            border-radius: 6px;
            transition: all 0.2s;
        }
        .navbar .nav-link:hover {
            background: #f1f5f9;
            color: #2563eb;
        }
        
        /* Hamburger menu */
        .navbar-toggler {
            display: none;
            flex-direction: column;
            gap: 5px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
        }
        .hamburger-line {
            width: 25px;
            height: 3px;
            background: #333;
            border-radius: 2px;
            transition: all 0.3s;
        }
        
        /* Mobile styles */
        @media (max-width: 768px) {
            .navbar-toggler {
                display: flex;
            }
            .navbar-menu {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: white;
                flex-direction: column;
                padding: 1rem;
                box-shadow: 0 4px 12px rgba(0,0,0,0.1);
                gap: 0;
            }
            .navbar-menu.show {
                display: flex;
            }
            .navbar-menu .nav-link,
            .navbar-menu .btn {
                width: 100%;
                text-align: center;
                padding: 12px;
            }
            .navbar-menu .btn {
                margin-top: 8px;
            }
        }
        
        /* Hero Section */
        .hero-section {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 5rem 1.5rem;
            text-align: center;
        }
        .hero-section h1 {
            color: white;
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
        }
        .hero-section p {
            color: rgba(255,255,255,0.9);
            font-size: 1.25rem;
            margin-bottom: 2rem;
        }
        
        /* Features Section */
        .features-section {
            padding: 4rem 1.5rem;
            background: #f8fafc;
        }
        .features-section .features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }
        .features-section .feature-card {
            background: white;
            padding: 2rem;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.07);
            text-align: center;
            transition: transform 0.3s, box-shadow 0.3s;
        }
        .features-section .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 15px rgba(0,0,0,0.1);
        }
        .features-section .feature-icon {
            font-size: 3rem;
            color: #667eea;
            margin-bottom: 1rem;
        }
        .features-section .feature-card h3 {
            color: #1e293b;
            font-size: 1.25rem;
            margin-bottom: 0.75rem;
            font-weight: 600;
        }
        .features-section .feature-card p {
            color: #64748b;
            font-size: 0.95rem;
            line-height: 1.6;
            margin: 0;
        }
        
        /* Footer */
        .footer {
            background: #1e293b;
            color: white;
            padding: 2rem;
            text-align: center;
        }
        
        /* Contact Section */
        .contact-section {
            padding: 4rem 1.5rem;
            background: white;
        }
        .contact-section h2 {
            text-align: center;
            color: #1e293b;
            margin-bottom: 2rem;
        }
        .contact-form {
            max-width: 600px;
            margin: 0 auto;
        }
        .contact-form input,
        .contact-form textarea {
            width: 100%;
            padding: 12px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            margin-bottom: 1rem;
            font-size: 1rem;
        }
        .contact-form textarea {
            min-height: 150px;
        }

 /*nav 1*/  
.header {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}
nav.sidebar h4

 {
    color: white;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--primary-color);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--border-radius);
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-color);
}

/* =============================================
   CONTENU PRINCIPAL
   ============================================= */
.main-content {
    flex: 1;
    padding: 2rem 1.5rem;
    /* max-width: 100%; */
    margin: 0 220px;
    width: calc(100% - 250px);
}

/* =============================================
   AUTH CONTAINER
   ============================================= */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
}
.section-block {
    width: calc(100% - 310px);
}
.main-edit {
    /* width: 100% !important; */
    width: calc(100% - 70px);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background-color: white;
    border-top: 1px solid var(--border-color);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-section p {
    color: var(--text-secondary);
    margin: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

/* =============================================
   BADGES
   ============================================= */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.badge-success {
    background-color: var(--success-light);
    color: #065f46;
}

.badge-warning {
    background-color: var(--warning-light);
    color: #92400e;
}

.badge-error {
    background-color: var(--error-light);
    color: #991b1b;
}

.badge-info {
    background-color: var(--info-light);
    color: #1e40af;
}

.badge-secondary {
    background-color: var(--bg-color);
    color: var(--text-secondary);
}

 .plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 30px; }
        .plan-card { background: white; border-radius: 12px; padding: 25px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 2px solid transparent; transition: all 0.3s; }
        .plan-card:hover { transform: translateY(-5px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
        .plan-card.current { border-color: #2563eb; }
        .plan-card.recommended { border-color: #10b981; }
        .plan-name { font-size: 1.25rem; font-weight: 600; margin-bottom: 10px; }
        .plan-price { font-size: 2rem; font-weight: 700; color: #2563eb; margin-bottom: 15px; }
        .plan-price span { font-size: 1rem; font-weight: 400; color: #64748b; }
        .plan-features { list-style: none; padding: 0; margin: 20px 0; }
        .plan-features li { padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
        .plan-features li:last-child { border-bottom: none; }
        .plan-features li::before { content: '✓'; color: #10b981; margin-right: 10px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: white;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
        box-shadow: var(--shadow-md);
    }

    .navbar-menu.active {
        display: flex;
    }

    .auth-card {
        padding: 1.5rem;
    }
}
