/* Navbar custom foncée */
.navbar {
    background: linear-gradient(135deg, #22345a 0%, #1a2940 100%) !important;
    box-shadow: 0 2px 8px rgba(34, 52, 90, 0.10);
}
/* Custom CSS for Kompetans */

:root {
    --primary-color: #5a8fd6;        /* Bleu pastel professionnel */
    --primary-hover: #4072b3;        /* Hover plus foncé pastel */
    --primary-light: #b3c7e6;        /* Variante claire pastel */
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700 !important;      /* Plus bold */
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-nav .nav-link {
    font-weight: 700 !important;      /* Navigation en BOLD */
    font-size: 1.1rem !important;     /* Plus gros */
    letter-spacing: 0.5px;            /* Espacement des lettres */
    text-transform: uppercase;        /* Majuscules pour plus d'impact */
    transition: all 0.3s ease;
    padding: 0.75rem 1rem !important;
    border-radius: 6px;
    margin: 0 2px;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.15) !important;
    transform: translateY(-1px);      /* Léger effet de soulèvement */
}

.navbar-nav .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.2) !important;
    font-weight: 800 !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #5a8fd6 0%, #4072b3 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

/* Formation Cards */
.formation-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.formation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.formation-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Buttons */
.btn {
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #5a8fd6 0%, #4072b3 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4072b3 0%, #2c4a6b 100%);
    transform: translateY(-2px);
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.card-header {
    font-weight: 600;
    border-bottom: none;
}

/* Form Styles */
.form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: linear-gradient(135deg, #5a8fd6 0%, #4072b3 100%) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.75rem;
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%) !important;
}

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

footer a:hover {
    color: #fff !important;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #5a8fd6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    color: #055160;
}

.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
}

/* Sticky Top */
.sticky-top {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    z-index: 1020;
}

/* Formation Content */
.formation-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.formation-content h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.formation-content ul {
    padding-left: 1.5rem;
}

.formation-content li {
    margin-bottom: 0.5rem;
}

/* Google Maps Styles */
.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.map-container iframe {
    transition: filter 0.3s ease;
}

.map-container:hover iframe {
    filter: brightness(1.1);
}

/* Contact Info Styles */
.contact-info {
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-info i {
    width: 25px;
    text-align: center;
}

.contact-info strong {
    color: var(--dark-color);
}

/* Map Card Hover Effect */
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
}
