/* ==================== */ /* RESET & BASE */ /* ==================== */ * { margin: 0; padding: 0; box-sizing: border-box; } :root { --primary: #667eea; --primary-dark: #5568d3; --secondary: #764ba2; --success: #48bb78; --danger: #f56565; --warning: #ed8936; --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%); --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1); --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.15); --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3); --radius: 12px; --radius-lg: 20px; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--bg-gradient); min-height: 100vh; color: #2d3748; line-height: 1.6; overflow-x: hidden; } /* ==================== */ /* PAGE D'ACCUEIL */ /* ==================== */ .hero-container { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; position: relative; } .hero-container::before { content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient( circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50% ), radial-gradient( circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50% ); pointer-events: none; } .hero-content { text-align: center; position: relative; z-index: 1; margin-bottom: 60px; } .logo { margin-bottom: 30px; animation: float 3s ease-in-out infinite; } @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } } .hero-content h1 { font-size: 3.5rem; font-weight: 800; color: white; margin-bottom: 15px; text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); letter-spacing: -1px; } .subtitle { font-size: 1.3rem; color: rgba(255, 255, 255, 0.9); margin-bottom: 40px; font-weight: 300; } .cta-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; } .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 1000px; width: 100%; position: relative; z-index: 1; } .feature-card { background: rgba(255, 255, 255, 0.95); padding: 35px 30px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; backdrop-filter: blur(10px); } .feature-card:hover { transform: translateY(-5px); box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35); } .feature-icon { font-size: 3rem; margin-bottom: 20px; } .feature-card h3 { font-size: 1.3rem; margin-bottom: 10px; color: #2d3748; } .feature-card p { color: #718096; font-size: 0.95rem; } /* ==================== */ /* AUTHENTIFICATION */ /* ==================== */ .auth-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; position: relative; } .auth-container::before { content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient( circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50% ), radial-gradient( circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50% ); pointer-events: none; } .auth-card { background: rgba(255, 255, 255, 0.98); padding: 45px 50px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 480px; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.3); position: relative; z-index: 1; animation: slideUp 0.5s ease-out; } @keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } .auth-header { text-align: center; margin-bottom: 35px; } .logo-small { display: inline-block; margin-bottom: 20px; } .auth-header h1 { font-size: 2rem; color: #2d3748; margin-bottom: 8px; font-weight: 700; } .auth-subtitle { color: #718096; font-size: 0.95rem; } .auth-form { display: flex; flex-direction: column; gap: 25px; } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } .form-group { display: flex; flex-direction: column; } .form-group label { font-weight: 600; color: #2d3748; margin-bottom: 8px; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; } .form-group label svg { opacity: 0.6; } .form-group input, .form-group select, .form-group textarea { padding: 12px 15px; border: 2px solid #e2e8f0; border-radius: var(--radius); font-size: 1rem; transition: all 0.3s ease; background: white; color: #2d3748; } .form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .form-group textarea { resize: vertical; font-family: inherit; } .form-hint { font-size: 0.85rem; color: #a0aec0; margin-top: 5px; } .auth-footer { text-align: center; margin-top: 25px; padding-top: 25px; border-top: 1px solid #e2e8f0; } .auth-footer p { color: #718096; margin-bottom: 10px; font-size: 0.9rem; } .link-primary { color: var(--primary); text-decoration: none; font-weight: 600; transition: color 0.3s ease; } .link-primary:hover { color: var(--primary-dark); text-decoration: underline; } /* ==================== */ /* MESSAGES */ /* ==================== */ .message { padding: 15px 20px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 500; display: flex; align-items: center; gap: 10px; animation: slideIn 0.3s ease-out; } @keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } .message.error { background: rgba(245, 101, 101, 0.1); color: #c53030; border: 2px solid rgba(245, 101, 101, 0.3); } .message.success { background: rgba(72, 187, 120, 0.1); color: #2f855a; border: 2px solid rgba(72, 187, 120, 0.3); } .alert { padding: 15px 20px; border-radius: var(--radius); margin-bottom: 20px; display: flex; align-items: flex-start; gap: 15px; background: rgba(237, 137, 54, 0.1); border: 2px solid rgba(237, 137, 54, 0.3); color: #c05621; } .alert svg { flex-shrink: 0; margin-top: 2px; } .alert strong { display: block; margin-bottom: 5px; } .alert a { color: var(--primary); font-weight: 600; text-decoration: underline; } /* ==================== */ /* BOUTONS */ /* ==================== */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border: none; border-radius: var(--radius); font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; text-decoration: none; white-space: nowrap; } .btn-primary { background: var(--bg-gradient); color: white; box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); } .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6); } .btn-primary:active { transform: translateY(0); } .btn-secondary { background: rgba(118, 75, 162, 0.1); color: var(--secondary); border: 2px solid var(--secondary); } .btn-secondary:hover { background: var(--secondary); color: white; } .btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); } .btn-outline:hover { background: var(--primary); color: white; } .btn-success { background: var(--success); color: white; box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4); } .btn-success:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(72, 187, 120, 0.6); } .btn-full { width: 100%; } .btn-large { padding: 15px 30px; font-size: 1.1rem; } .btn:disabled { opacity: 0.5; cursor: not-allowed; } .btn:disabled:hover { transform: none; } /* ==================== */ /* DASHBOARD */ /* ==================== */ .dashboard-wrapper { min-height: 100vh; background: var(--bg-gradient); } .navbar { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .nav-brand { display: flex; align-items: center; gap: 12px; color: white; font-weight: 700; font-size: 1.3rem; } .nav-links, .nav-user { display: flex; align-items: center; gap: 15px; } .nav-link { color: white; text-decoration: none; padding: 8px 16px; border-radius: var(--radius); transition: background 0.3s ease; display: flex; align-items: center; gap: 6px; font-weight: 500; } .nav-link:hover { background: rgba(255, 255, 255, 0.15); } .user-badge { background: rgba(255, 255, 255, 0.2); padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; color: white; font-weight: 600; } .user-name { color: white; font-weight: 600; } .btn-logout { background: rgba(245, 101, 101, 0.2); color: white; padding: 8px 16px; border-radius: var(--radius); text-decoration: none; display: flex; align-items: center; gap: 6px; font-weight: 600; transition: all 0.3s ease; } .btn-logout:hover { background: rgba(245, 101, 101, 0.3); } .content-wrapper { max-width: 1200px; margin: 0 auto; padding: 40px 20px; } .page-header { margin-bottom: 40px; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; } .page-header h1 { font-size: 2.5rem; color: white; font-weight: 700; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); display: flex; align-items: center; gap: 15px; } .page-subtitle { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; margin-top: 10px; } /* ==================== */ /* DASHBOARD GRID */ /* ==================== */ .dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; } .action-card { background: rgba(255, 255, 255, 0.95); padding: 35px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); transition: transform 0.3s ease, box-shadow 0.3s ease; } .action-card:hover { transform: translateY(-5px); box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35); } .action-card.highlight { background: linear-gradient( 135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100% ); border: 2px solid rgba(102, 126, 234, 0.3); } .action-icon { width: 70px; height: 70px; border-radius: 15px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; } .action-icon.students { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; } .action-icon.subjects { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: white; } .action-icon.grades { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); color: white; } .action-card h3 { font-size: 1.5rem; margin-bottom: 10px; color: #2d3748; } .action-card p { color: #718096; margin-bottom: 20px; } .action-buttons { display: flex; flex-direction: column; gap: 10px; } /* ==================== */ /* STATS & CARDS */ /* ==================== */ .stats-section { margin-bottom: 40px; } .stats-section h2 { color: white; font-size: 1.8rem; margin-bottom: 25px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); } .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; } .stat-card { background: rgba(255, 255, 255, 0.95); padding: 25px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); } .stat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; } .stat-code { background: var(--bg-gradient); color: white; padding: 6px 12px; border-radius: 8px; font-weight: 700; font-size: 0.9rem; } .stat-badge { background: rgba(102, 126, 234, 0.1); color: var(--primary); padding: 4px 10px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; } .stat-card h3 { color: #2d3748; font-size: 1.1rem; margin-bottom: 15px; } .stat-moyenne { display: flex; align-items: baseline; gap: 5px; margin-bottom: 10px; } .moyenne-value { font-size: 2.5rem; font-weight: 700; background: var(--bg-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .moyenne-max { font-size: 1.3rem; color: #a0aec0; } .progress-bar { height: 8px; background: #e2e8f0; border-radius: 10px; overflow: hidden; } .progress-fill { height: 100%; background: var(--bg-gradient); border-radius: 10px; transition: width 0.5s ease; } /* ==================== */ /* TABLEAUX */ /* ==================== */ .table-container { background: rgba(255, 255, 255, 0.95); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; backdrop-filter: blur(10px); } table { width: 100%; border-collapse: collapse; } thead { background: var(--bg-gradient); } th { color: white; padding: 18px 20px; text-align: left; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; } td { padding: 18px 20px; border-bottom: 1px solid #e2e8f0; color: #2d3748; } tbody tr:last-child td { border-bottom: none; } tbody tr { transition: background 0.2s ease; } tbody tr:hover { background: rgba(102, 126, 234, 0.05); } .text-center { text-align: center !important; } .text-muted { color: #a0aec0; font-size: 0.9rem; } /* ==================== */ /* BADGES */ /* ==================== */ .badge-ue, .badge-code, .badge-login { display: inline-block; padding: 5px 12px; border-radius: 8px; font-weight: 600; font-size: 0.85rem; } .badge-ue { background: var(--bg-gradient); color: white; } .badge-code { background: rgba(102, 126, 234, 0.1); color: var(--primary); } .badge-login { background: rgba(118, 75, 162, 0.1); color: var(--secondary); } .coef-badge { background: rgba(237, 137, 54, 0.1); color: var(--warning); padding: 4px 10px; border-radius: 6px; font-weight: 600; font-size: 0.85rem; } .note-value { font-weight: 700; font-size: 1.1rem; padding: 6px 14px; border-radius: 8px; display: inline-block; } .note-success { background: rgba(72, 187, 120, 0.1); color: var(--success); } .note-danger { background: rgba(245, 101, 101, 0.1); color: var(--danger); } .date-cell { color: #718096; font-size: 0.9rem; } /* ==================== */ /* RECHERCHE */ /* ==================== */ .search-section { background: rgba(255, 255, 255, 0.95); padding: 25px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); margin-bottom: 30px; display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; backdrop-filter: blur(10px); } .search-form { display: flex; gap: 15px; flex: 1; flex-wrap: wrap; } .search-input-group { position: relative; flex: 1; min-width: 250px; } .search-input-group svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #a0aec0; } .search-input-group input { width: 100%; padding: 12px 15px 12px 45px; border: 2px solid #e2e8f0; border-radius: var(--radius); font-size: 1rem; transition: all 0.3s ease; } .search-input-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .quick-actions { display: flex; gap: 10px; flex-wrap: wrap; } .search-info { background: rgba(102, 126, 234, 0.1); padding: 12px 20px; border-radius: var(--radius); color: var(--primary); font-weight: 600; display: flex; align-items: center; gap: 10px; } /* ==================== */ /* FORMULAIRES */ /* ==================== */ .form-card { background: rgba(255, 255, 255, 0.95); padding: 35px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); } .create-form, .grade-form { display: flex; flex-direction: column; gap: 25px; } .details-section { margin-top: 40px; } .details-section h2 { color: white; font-size: 1.8rem; margin-bottom: 25px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); } /* ==================== */ /* EMPTY STATE */ /* ==================== */ .empty-state { text-align: center; padding: 60px 20px; background: rgba(255, 255, 255, 0.95); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); } .empty-state svg { margin-bottom: 20px; } .empty-state h3 { font-size: 1.5rem; color: #2d3748; margin-bottom: 10px; } .empty-state p { color: #718096; margin-bottom: 20px; } /* ==================== */ /* ACTIONS BOUTONS */ /* ==================== */ .btn-action { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: var(--bg-gradient); color: white; text-decoration: none; border-radius: var(--radius); font-weight: 600; font-size: 0.9rem; transition: all 0.3s ease; } .btn-action:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); } /* ==================== */ /* RESPONSIVE */ /* ==================== */ @media (max-width: 768px) { .hero-content h1 { font-size: 2.5rem; } .subtitle { font-size: 1.1rem; } .features { grid-template-columns: 1fr; } .auth-card { padding: 35px 30px; } .form-row { grid-template-columns: 1fr; } .navbar { flex-direction: column; gap: 15px; } .nav-links { flex-direction: column; width: 100%; } .nav-link { width: 100%; justify-content: center; } .page-header { flex-direction: column; } .page-header h1 { font-size: 2rem; } .dashboard-grid { grid-template-columns: 1fr; } .stats-grid { grid-template-columns: 1fr; } .search-section { flex-direction: column; } .search-form { width: 100%; } .quick-actions { width: 100%; flex-direction: column; } .quick-actions .btn { width: 100%; } .table-container { overflow-x: auto; } table { min-width: 600px; } } @media (max-width: 480px) { .hero-content h1 { font-size: 2rem; } .cta-buttons { flex-direction: column; width: 100%; } .cta-buttons .btn { width: 100%; } }