/* =============================================================================
   STYLES POUR LA PAGE A PROPOS - ORJEUN
   Styles personnalisés pour améliorer la visibilité et l'accessibilité
   ============================================================================= */

/* Styles pour nav-pills améliorés */
.nav-pills .nav-link {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border: 2px solid #e9ecef !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    margin: 2px !important;
    border-radius: 0.375rem !important;
    padding: 0.75rem 1.5rem !important;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    position: relative;
    overflow: hidden;
}

.nav-pills .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-pills .nav-link:hover::before {
    left: 100%;
}

.nav-pills .nav-link:hover {
    background-color: #007bff !important;
    color: #ffffff !important;
    border-color: #007bff !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.4) !important;
    text-decoration: none !important;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: #ffffff !important;
    border-color: #28a745 !important;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4) !important;
    animation: pulse 2s infinite;
}

.nav-pills .nav-link.active:hover {
    background: linear-gradient(135deg, #218838, #1e7e34) !important;
    border-color: #218838 !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 12px rgba(33, 136, 56, 0.5) !important;
}

/* Animation pour le bouton actif */
@keyframes pulse {
    0% { box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4); }
    50% { box-shadow: 0 6px 16px rgba(40, 167, 69, 0.6); }
    100% { box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4); }
}

/* Style pour les icônes */
.nav-pills .nav-link i {
    opacity: 0.8;
    transition: all 0.3s ease;
    margin-right: 0.5rem !important;
    font-size: 1.1em;
}

.nav-pills .nav-link:hover i,
.nav-pills .nav-link.active i {
    opacity: 1;
    transform: scale(1.1);
}

/* Cartes avec style amélioré */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

/* Amélioration des titres */
.card-title {
    color: #2c3e50;
    font-weight: 700;
}

.card-title i {
    color: #007bff;
}

/* Styles pour l'en-tête */
.display-4 {
    background: linear-gradient(135deg, #007bff, #28a745);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Amélioration pour mobile */
@media (max-width: 768px) {
    .nav-pills .nav-link {
        margin-bottom: 0.5rem !important;
        padding: 1rem !important;
        font-size: 1.1rem !important;
        width: 100%;
        text-align: center;
    }
    
    .nav-pills .nav-link i {
        display: block;
        font-size: 1.5em;
        margin-bottom: 0.25rem !important;
        margin-right: 0 !important;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
}

/* Amélioration pour tablettes */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-pills .nav-link {
        padding: 0.875rem 1.25rem !important;
        font-size: 1rem;
    }
}

/* Styles pour les boutons principaux */
.btn-outline-primary {
    border-width: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* Animation d'entrée pour les cartes */
.card {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Focus pour l'accessibilité */
.nav-pills .nav-link:focus {
    outline: 3px solid rgba(0, 123, 255, 0.5);
    outline-offset: 2px;
}

/* Améliorer le contraste pour les personnes malvoyantes */
@media (prefers-contrast: high) {
    .nav-pills .nav-link {
        border-width: 3px !important;
    }
    
    .nav-pills .nav-link.active {
        background: #000000 !important;
        color: #ffffff !important;
        border-color: #000000 !important;
    }
}

/* Améliorer le contraste du texte pour tous */
.text-muted {
    color: #2c3e50 !important;
    font-weight: 500;
}

.lead.text-muted {
    color: #495057 !important;
    font-weight: 600;
}

/* Texte principal plus foncé */
.card-body p {
    color: #2c3e50 !important;
    line-height: 1.7;
    font-weight: 500;
}

/* Titres plus contrastés */
h2, h3, h4, h5, h6 {
    color: #2c3e50 !important;
    font-weight: 700;
}

/* Support pour les préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    .nav-pills .nav-link,
    .card,
    .btn-outline-primary {
        transition: none;
        animation: none;
    }
    
    .nav-pills .nav-link:hover {
        transform: none !important;
    }
}