/* CSS personnalisé pour le frontend
   Congrégation des Augustins de l'Assomption - Province d'Afrique */

/* Variables CSS */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #ffffff;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

/* Styles généraux */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation */
.navbar {
    background: var(--gradient-primary) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0 2px;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-toggler {
    border: none;
    color: white;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,0 1000,100 0,80"/></svg>') no-repeat bottom;
    background-size: cover;
}

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

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    border-radius: 15px 15px 0 0;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card-text {
    color: #666;
    line-height: 1.6;
}

/* Boutons */
.btn {
    border-radius: 25px;
    font-weight: 500;
    padding: 12px 30px;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

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

.btn-light {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.btn-light:hover {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #2563eb 100%);
    color: white;
}

/* Sections */
.section-title {
    position: relative;
    margin-bottom: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Statistiques */
.stats-section {
    background: var(--light-color);
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-weight: 500;
}

/* Témoignages */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
}

.testimonial-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.testimonial-position {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.testimonial-rating {
    color: var(--warning-color);
}

/* Footer */
.footer {
    background: var(--gradient-secondary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer h5, .footer h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

.footer .social-links a {
    display: inline-block;
    margin-right: 1rem;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.footer .social-links a:hover {
    transform: translateY(-2px);
    color: var(--accent-color);
}

.contact-info {
    color: rgba(255, 255, 255, 0.8);
}

.contact-info i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
}

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

.bg-primary {
    background: var(--gradient-primary) !important;
}

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

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.shadow {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
}

.shadow-lg {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* Focus states */
.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Styles pour les sections Blog et Newsletter */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

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

.blog-card .card-img-top {
    transition: all 0.3s ease;
}

.blog-card:hover .card-img-top {
    transform: scale(1.05);
}

.blog-card .card-title a {
    transition: color 0.3s ease;
}

.blog-card .card-title a:hover {
    color: var(--primary-color) !important;
}

/* Styles pour la newsletter sur la page d'accueil */
.newsletter-content h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-benefits .d-flex {
    font-size: 0.9rem;
}

.newsletter-form-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.newsletter-form-container .newsletter-input {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #333;
}

.newsletter-form-container .newsletter-input:focus {
    background: white;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.newsletter-form-container .newsletter-input::placeholder {
    color: #666;
}

.newsletter-form-container .newsletter-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.newsletter-form-container .newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

.newsletter-form-container .newsletter-privacy {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.newsletter-form-container .newsletter-privacy i {
    color: #10b981;
}

/* Messages de newsletter sur fond sombre */
.newsletter-form-container .newsletter-message.newsletter-success {
    background-color: rgba(16, 185, 129, 0.2);
    color: #d1fae5;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.newsletter-form-container .newsletter-message.newsletter-error {
    background-color: rgba(239, 68, 68, 0.2);
    color: #fee2e2;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Styles spécifiques pour la newsletter sur fond vert */
.bg-success .newsletter-form-container {
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bg-success .newsletter-form-container .newsletter-input {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #333;
}

.bg-success .newsletter-form-container .newsletter-input:focus {
    background: white;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.bg-success .newsletter-form-container .newsletter-input::placeholder {
    color: #666;
}

.bg-success .newsletter-form-container .newsletter-btn {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.bg-success .newsletter-form-container .newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(5, 150, 105, 0.4);
}

.bg-success .newsletter-form-container .newsletter-privacy {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.bg-success .newsletter-form-container .newsletter-privacy i {
    color: #10b981;
}

/* Messages de newsletter sur fond vert */
.bg-success .newsletter-form-container .newsletter-message.newsletter-success {
    background-color: rgba(16, 185, 129, 0.3);
    color: #d1fae5;
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.bg-success .newsletter-form-container .newsletter-message.newsletter-error {
    background-color: rgba(239, 68, 68, 0.3);
    color: #fee2e2;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

/* Responsive pour les nouvelles sections */
@media (max-width: 768px) {
    .newsletter-form-container {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .newsletter-benefits .row {
        text-align: center;
    }
    
    .newsletter-benefits .col-6 {
        margin-bottom: 1rem;
    }
}

/* ========================================
   AMÉLIORATION DE L'ESPACEMENT DES CARTES
   ======================================== */

/* Espacement global pour toutes les grilles */
.row.g-4 > * {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

/* Styles pour éviter que les cartes se collent */
.card {
    transition: all 0.3s ease;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Espacement spécifique pour les cartes de membres */
.member-card, .community-card, .event-gallery-card, .photo-card {
    margin-bottom: 2rem !important;
    transition: all 0.3s ease;
}

.member-card:hover, .community-card:hover, .event-gallery-card:hover, .photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Espacement pour les colonnes */
.col-lg-4, .col-lg-3, .col-md-6, .col-sm-6 {
    margin-bottom: 2rem !important;
}

/* Amélioration de l'espacement sur mobile */
@media (max-width: 768px) {
    .row.g-4 > * {
        padding-right: 1rem;
        padding-left: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .col-lg-4, .col-lg-3, .col-md-6, .col-sm-6 {
        margin-bottom: 1.5rem !important;
    }
    
    .card {
        margin-bottom: 1.5rem !important;
    }
}

/* Espacement pour les très petits écrans */
@media (max-width: 480px) {
    .row.g-4 > * {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .col-lg-4, .col-lg-3, .col-md-6, .col-sm-6 {
        margin-bottom: 1rem !important;
    }
}

/* Styles pour les grilles de photos */
.photo-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.photo-card img {
    transition: transform 0.3s ease;
}

.photo-card:hover img {
    transform: scale(1.05);
}

/* Styles pour les cartes de galeries */
.gallery-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

/* Styles pour les cartes de communautés */
.community-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

/* Animation d'apparition pour les cartes */
.card {
    opacity: 0;
    transform: translateY(20px);
    animation: cardFadeIn 0.6s ease-out forwards;
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Délai d'animation pour les cartes multiples */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

/* Styles spécifiques pour les cartes de blogs */
.blog-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

.blog-card .card-img-top {
    transition: transform 0.3s ease;
}

.blog-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Styles pour les cartes de maisons de formation */
.formation-house-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.formation-house-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

.formation-house-card .card-img-top {
    transition: transform 0.3s ease;
}

.formation-house-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Styles pour les cartes d'événements */
.event-gallery-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.event-gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

.event-gallery-card .card-img-top {
    transition: transform 0.3s ease;
}

.event-gallery-card:hover .card-img-top {
    transform: scale(1.05);
}





