/* Custom CSS for Nafoore School Website */

:root {
    --primary-color: #0840bc;
    --secondary-color: #ff8c42;
    --tertiary-color: #062f8a;
    --gradient-primary: linear-gradient(135deg, #0840bc 0%, #062f8a 100%);
    --gradient-secondary: linear-gradient(135deg, #ff8c42 0%, #ff6b1a 100%);
    --gradient-light: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --shadow-soft: 0 8px 32px rgba(8, 64, 188, 0.1);
    --shadow-medium: 0 12px 48px rgba(8, 64, 188, 0.15);
    --shadow-strong: 0 16px 64px rgba(8, 64, 188, 0.2);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

.hero-section h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.hero-section .lead {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Typography */
.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1.5rem;
    position: relative;
    font-size: 2.5rem;
}

.sous-titre{
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    position: relative;
    font-size: 1.4rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b1a 100%);
    border-radius: 2px;
}

.section-title.text-start::after {
    left: 0;
    transform: none;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-secondary);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, #ff6b1a 0%, #e55a0f 100%);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-primary {
    border: 2px solid #0840bc;
    color: #0840bc;
    background: transparent;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #0840bc;
    color: white;
    border-color: #0840bc;
}

/* Cards */
.modern-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid rgba(8, 64, 188, 0.08);
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

.stats-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid rgba(8, 64, 188, 0.08);
}

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

.stats-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(8, 64, 188, 0.08);
    transition: all 0.3s ease;
}

.navbar.fixed-top {
    z-index: 1030;
}

body {
    padding-top: 0; /* Remove space at top */
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #0840bc !important;
}

.nav-link {
    font-weight: 500;
    color: #ff8c42 !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #0840bc !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #0840bc 0%, #062f8a 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}
.footer {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem 0 2rem;
    position: relative;
    overflow: hidden;
    z-index: 0; /* contexte */
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M20 20c0-11.046-8.954-20-20-20v20h20z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1; /* passe derrière le contenu */
}

/* Forms */
.contact-form {
    background: var(--gradient-light);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(8, 64, 188, 0.08);
}

.form-control, .form-select {
    border: 2px solid rgba(8, 64, 188, 0.1);
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
}

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

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

/* Tables */
.enrollment-table {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid rgba(8, 64, 188, 0.08);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1.5rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.table tbody td {
    padding: 1.2rem 1rem;
    border-color: rgba(8, 64, 188, 0.1);
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: rgba(8, 64, 188, 0.02);
}

.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 5px solid var(--secondary-color);
}

.contact-info {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(8, 64, 188, 0.08);
}

.contact-info .fas, .contact-info .fab {
    width: 20px;
    text-align: center;
}

/* Email Cards */
.email-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.email-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(8, 64, 188, 0.1);
}

.email-card strong {
    color: #333 !important;
    font-weight: 600;
}

.email-card i {
    display: inline-block !important;
}

/* Social Networks */
.social-networks {
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    min-width: 120px;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    color: white;
    text-decoration: none;
}

.social-link i {
    font-size: 1.2rem;
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.social-link.facebook {
    background: linear-gradient(135deg, #1877f2, #0d5dbf);
}

.social-link.instagram {
    background: linear-gradient(135deg, #e4405f, #833ab4, #fcb045);
}

.social-link.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.social-link.linkedin {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.social-link.youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.social-link.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

/* Footer Social Links */
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.footer-social-link:hover {
    background: rgba(255, 140, 66, 0.9);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 140, 66, 0.4);
}

.footer-social-link i {
    font-size: 1.2rem;
}

/* Sections */
.section-padding {
    padding: 5rem 0;
}

.bg-light-custom {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .modern-card {
        padding: 1.5rem;
    }
    
    .stats-number {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 80px 0 60px;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    /* Header responsive */
    .navbar-brand img {
        height: 45px !important;
    }
    
    .navbar-brand span {
        font-size: 1.4rem !important;
    }
    
    .navbar .btn {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    body {
        padding-top: 75px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn-primary {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .modern-card {
        padding: 1.2rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Header for mobile */
    .navbar-brand img {
        height: 35px !important;
    }
    
    .navbar-brand span {
        font-size: 1.2rem !important;
    }
    
    .navbar .d-flex {
        flex-direction: column;
        gap: 10px !important;
    }
    
    .navbar .btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    body {
        padding-top: 0;
    }
}