/* Styles personnalisés pour E.A.P La MADONA DOUMA */

/* Variables CSS personnalisées */
:root {
    --primary-blue: #3d6a8c;    /* Bleu vif élégant */
    --primary-red: #d63838;     /* Rouge vif élégant */
    --dark-gray: #374151;       /* Gris foncé du logo */
    --light-gray: #f8fafc;
    --accent-blue: #335672;     /* Bleu pour les hovers */
    --accent-red: #BB3131;      /* Rouge pour les hovers */
    --soft-shadow: rgba(0, 0, 0, 0.08);
}

/* Animations personnalisées */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Classes d'animation */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Styles pour les cartes */
.card-hover {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Styles pour les boutons */
.btn-primary {
    background: var(--primary-blue);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-red);
}

.btn-secondary {
    background: var(--primary-red);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-blue);
}

/* Styles pour les formulaires */
.form-control {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.form-control:focus {
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1), 0 4px 12px rgba(0, 102, 255, 0.25);
    border-color: var(--primary-blue);
}

/* Styles pour les images */
.img-hover {
    transition: opacity 0.3s ease;
}

.img-hover:hover {
    opacity: 0.95;
}

/* Styles pour le texte */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Styles pour les sections */
.section-padding {
    padding: 5rem 0;
}

/* Styles pour les icônes */
.icon-hover {
    transition: all 0.3s ease;
}

.icon-hover:hover {
    opacity: 0.8;
}

/* Styles pour la navigation */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Styles pour les messages */
.alert {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.alert-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

/* Styles pour la pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Styles pour les cartes d'articles */
.article-card {
    border: 1px solid #e5e7eb;
}

/* Styles pour les cartes de programmes */
.programme-card {
    border: 1px solid #e5e7eb;
}

/* Styles pour les membres d'équipe */
.team-member {
    /* Pas d'effet de survol */
}

.team-member img {
    /* Pas d'effet de survol */
}

/* Styles pour le footer */
.footer-gradient {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

/* Styles pour les ombres élégantes */
.shadow-elegant {
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.08);
}

.shadow-blue-glow {
    box-shadow: 0 8px 32px -4px rgba(0, 102, 255, 0.3);
}

.shadow-red-glow {
    box-shadow: 0 8px 32px -4px rgba(255, 0, 0, 0.3);
}

/* Styles pour les liens sociaux */
.social-link {
    transition: all 0.3s ease;
}

.social-link:hover {
    opacity: 0.8;
}

/* Styles pour les badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    color: white;
}

.badge-secondary {
    background-color: #6b7280;
    color: white;
}

/* Styles pour les tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: var(--dark-gray);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Styles responsifs */
@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
}

/* Styles pour les animations d'entrée */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-delay-1 {
    animation-delay: 0.2s;
}

.fade-in-delay-2 {
    animation-delay: 0.4s;
}

.fade-in-delay-3 {
    animation-delay: 0.6s;
}

/* Styles pour les couleurs indépendantes */
.bg-primary-blue {
    background-color: var(--primary-blue);
}

.bg-primary-red {
    background-color: var(--primary-red);
}

.bg-dark-gray {
    background-color: var(--dark-gray);
}

.text-primary-blue {
    color: var(--primary-blue);
}

.text-primary-red {
    color: var(--primary-red);
}

.text-dark-gray {
    color: var(--dark-gray);
}

/* Styles pour les dégradés personnalisés */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
}

.gradient-secondary {
    background: linear-gradient(135deg, var(--dark-gray), #1f2937);
}

.gradient-light {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

/* Styles pour les ombres personnalisées */
.shadow-primary {
    box-shadow: 0 10px 25px -5px rgba(50, 87, 116, 0.1), 0 10px 10px -5px rgba(50, 87, 116, 0.04);
}

.shadow-secondary {
    box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.1), 0 10px 10px -5px rgba(220, 38, 38, 0.04);
}

/* Styles pour les bordures personnalisées */
.border-primary {
    border-color: var(--primary-blue);
}

.border-secondary {
    border-color: var(--primary-red);
}

/* Styles pour les textes personnalisés */
.text-primary {
    color: var(--primary-blue);
}

.text-secondary {
    color: var(--primary-red);
}

.text-dark {
    color: var(--dark-gray);
}

/* === AMÉLIORATIONS VISUELLES AVANCÉES === */

/* Typographie améliorée */
body {
    font-feature-settings: "kern" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
    font-weight: 700;
}

/* Boutons avec effet simple */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine:hover {
    opacity: 0.95;
}

/* Cartes avec effet simple */
.card-glow {
    position: relative;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
}

/* Sections avec fond dégradé subtil */
.section-gradient-light {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.section-gradient-blue {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.03) 0%, rgba(0, 102, 255, 0.08) 100%);
}

.section-gradient-red {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.03) 0%, rgba(255, 0, 0, 0.08) 100%);
}

/* Liens avec soulignement animé */
.link-underline {
    position: relative;
    text-decoration: none;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
    transition: width 0.3s ease;
}

.link-underline:hover::after {
    width: 100%;
}

/* Images avec effet simple */
.img-overlay {
    position: relative;
    overflow: hidden;
}

.img-overlay:hover {
    opacity: 0.95;
}

/* Icônes avec animation de rotation */
.icon-rotate:hover {
    opacity: 0.8;
}

/* Badges modernes */
.badge-modern {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Navigation sticky avec effet de scroll */
.nav-sticky {
    transition: all 0.3s ease;
}

.nav-sticky.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
}

/* Footer avec meilleur contraste */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

/* Amélioration des inputs */
input, textarea, select {
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
    outline: none;
}

/* Séparateurs élégants */
hr {
    border: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    margin: 2rem 0;
}

/* Amélioration de la lisibilité */
p {
    line-height: 1.75;
    color: #4b5563;
}

/* Effet de profondeur pour les sections */
.section-depth {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}
