main {
    margin-top: 80px;
}

:root {
    --primary-color: #1a5276;
    --secondary-color: #2e86c1;
    --accent-color: #f39c12;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Styles de base */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

main{
    min-height: 90vh;
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color);
}

/* En-têtes de page */
.page-header {
    background: linear-gradient(rgba(26, 82, 118, 0.5), rgba(46, 134, 193, 0.85)), url('../images/header-bg.jpg') center/cover no-repeat;
    color: white;
    padding: 80px 0px;
    margin-bottom: 2rem;
}

.hero-section {
    /* background: linear-gradient(rgba(26, 82, 118, 0.8), rgba(46, 134, 193, 0.8)),C */
    color: white;
    padding: 150px 0;
    position: relative;
    height: 100vh;
    text-align: c;
}

.page-header.hero-section{
    padding: 40px 0px;
}

.hero-section::before,
.hero-section::after{
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.hero-section::before{
    background: rgba(0, 0, 0, 0.85);
    z-index: -1;
}

.hero-section::after{
    background: url("../Images/IMG-20250923-WA0017.jpg") center/cover no-repeat;
    z-index: -2;
}

/* Titres de section */
.section-title {
    position: relative;
    margin-bottom: 2rem;
    color: var(--primary-color);
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

#statistic-section{
    background-color: rgba(23, 8, 39, 0.78);
}

/* Cartes */
.card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border-radius: 10px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
}

/* Boutons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

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

/* Formulaires */
.form-control, .form-select {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #e1e5eb;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 134, 193, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.required::after {
    content: " *";
    color: #dc3545;
}

/* Sections de formulaire */
.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.form-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Upload de photos */
.photo-upload {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #f8f9fa;
}

.photo-upload:hover {
    border-color: var(--secondary-color);
    background-color: #e9f7fe;
}

.photo-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
    display: none;
    margin: 0 auto;
}

.student-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
}

.teacher-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
    margin: 0 auto 1rem;
}

/* Badges */
.badge-cycle {
    font-size: 0.75rem;
}

/* Statistiques */
.stat-card {
    text-align: center;
    padding: 1.5rem;
    border-left: 4px solid var(--accent-color);
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Personnalisation */
.customization-panel {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.view-options {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.view-option-btn {
    padding: 8px 15px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.view-option-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.column-selector {
    max-height: 200px;
    overflow-y: auto;
}

/* Cartes élèves/professeurs */
.student-card, .teacher-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
    transition: all 0.3s;
    text-align: center;
}

.student-card:hover, .teacher-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.student-card-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
    margin: 0 auto 1rem;
}

/* Tableaux */
.table th {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(46, 134, 193, 0.05);
}

/* Actions */
.action-buttons .btn {
    padding: 0.25rem 0.5rem;
    margin: 0 2px;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    margin-top: 3rem;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--accent-color);
}

/* Login */
.login-container {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    margin: 50px auto;
}

.login-header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.login-body {
    padding: 30px;
}

/* Indicateur d'étapes */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e9ecef;
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 600;
    color: #6c757d;
}

.step.active .step-number {
    background-color: var(--secondary-color);
    color: white;
}

.step-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.step.active .step-label {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header, .hero-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .view-options {
        flex-direction: column;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Utilitaires */
.bg-light-custom {
    background-color: var(--light-color);
}

.text-accent {
    color: var(--accent-color);
}

.border-accent {
    border-color: var(--accent-color) !important;
}

.shadow-custom {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}









.profile-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 25px;
    border: none;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.profile-header {
    padding: 20px;
    color: white;
    text-align: center;
}

.profile-body {
    padding: 20px;
}

.profile-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    margin: 0 auto 15px;
    display: block;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.info-label {
    font-weight: 600;
    color: #555;
}

.info-value {
    color: #333;
}

.student-card .profile-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.parent-card .profile-header {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.teacher-card .profile-header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.director-card .profile-header {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.other-card .profile-header {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.btn-profile {
    border-radius: 20px;
    padding: 8px 25px;
    font-weight: 500;
}

.card-title {
    font-weight: 700;
    margin-bottom: 5px;
}

.card-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}