/**
 * CSS SPÉCIFIQUE POUR LA PAGE D'ACCUEIL
 * Design ultra moderne avec effets avancés
 */

/* ============================================
   STATISTIQUES SECTION
   ============================================ */
.stats-section {
    position: relative;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #1F4E79 0%, #2d6ba8 100%);
    margin-top: 0;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(201, 161, 59, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    font-size: 2rem;
    transition: var(--transition);
}

.stat-item:hover .stat-icon {
    transform: scale(1.1) rotate(360deg);
    background: rgba(255, 255, 255, 0.3);
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* ============================================
   COURSES GRID
   ============================================ */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.course-card {
    position: relative;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.course-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(201, 161, 59, 0.95) 0%, rgba(212, 176, 95, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    color: #1F4E79;
    box-shadow: var(--shadow-gold);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.course-content {
    padding: 1.5rem;
}

.course-title {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.course-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.course-meta > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-meta i {
    color: var(--secondary);
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.course-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    background: var(--bg-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.course-price.free {
    color: var(--accent);
    background: linear-gradient(135deg, #A7C7A9, #8ab58d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   TÉMOIGNAGES
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    position: relative;
    padding: 2.5rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 6rem;
    font-family: Georgia, serif;
    color: var(--primary);
    opacity: 0.1;
    line-height: 1;
}

.testimonial-rating {
    margin-bottom: 1.5rem;
    color: #FFA500;
    font-size: 1.125rem;
}

.testimonial-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gradient);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.testimonial-name {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.testimonial-role {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    position: relative;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #1F4E79 0%, #2d6ba8 100%);
    overflow: hidden;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(201, 161, 59, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(167, 199, 169, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="white" opacity="0.05"/></svg>');
    background-size: 100px 100px;
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: white;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    color: white;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: white;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   ANIMATIONS SPÉCIALES
   ============================================ */
.pulse-animation {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .8;
    }
}

.bounce-animation {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.95rem;
    }
    
    .course-card {
        margin: 0;
        border-radius: var(--radius-lg);
    }
    
    .course-image {
        height: 180px;
    }
    
    .course-badge {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .course-content {
        padding: 1.25rem;
    }
    
    .course-title {
        font-size: 1.125rem;
    }
    
    .course-description {
        font-size: 0.875rem;
    }
    
    .course-meta {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .course-price {
        font-size: 1.25rem;
    }
    
    .testimonial-card {
        padding: 1.75rem;
    }
    
    .testimonial-rating {
        font-size: 1rem;
    }
    
    .testimonial-content {
        font-size: 0.95rem;
    }
    
    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }
    
    .cta-section {
        padding: 4rem 1rem;
    }
}

/* ============================================
   CYCLES D'ÉDUCATION
   ============================================ */
.cycle-card {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(31, 78, 121, 0.12);
}

.cycle-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.cycle-card:hover .cycle-image i {
    transform: scale(1.2) rotate(5deg);
}

.cycle-card .cycle-badge {
    transition: all 0.3s ease;
}

.cycle-card:hover .cycle-badge {
    transform: scale(1.1);
}

.education-cycles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* ============================================
   TRAINING CARDS
   ============================================ */
.training-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    text-decoration: none;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(31, 78, 121, 0.15);
    border: 2px solid rgba(201, 161, 59, 0.15);
}

.training-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 30px 70px rgba(201, 161, 59, 0.3) !important;
    border-color: rgba(201, 161, 59, 0.4) !important;
}

.training-card:hover .training-image img {
    transform: scale(1.15) rotate(2deg);
}

.training-card .training-image {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 240px;
    overflow: hidden;
}

.training-card .training-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.training-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .education-cycles-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .training-courses-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .course-image-wrapper {
        height: 180px !important;
    }
    
    .course-card-body {
        padding: 1.25rem !important;
    }
    
    .live-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.85rem;
    }
}

@media (max-width: 480px) {
    .education-cycles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cycle-card .cycle-image {
        height: 200px !important;
    }
    
    .training-courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .training-card .training-image {
        height: 200px !important;
    }
    
    .training-card h3,
    .cycle-card h3 {
        font-size: 1.25rem !important;
    }
    
    .training-card p,
    .cycle-card p {
        font-size: 0.95rem !important;
    }
    
    .course-image-wrapper {
        height: 160px !important;
    }
    
    .live-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }
    
    .session-meta-item {
        font-size: 0.8rem !important;
    }
    
    .teacher-info-inline {
        padding: 0.75rem !important;
    }
    
    .teacher-avatar-sm {
        width: 35px !important;
        height: 35px !important;
    }
}

/* ============================================
   SÉANCES LIVE STYLES
   ============================================ */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #E91E63, #F44336);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
    animation: livePulse 2s infinite;
}

.live-badge i {
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

@keyframes livePulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(233, 30, 99, 0.7);
    }
}

/* ============================================
   RESPONSIVE - STATS SECTION MOBILE
   ============================================ */
@media (max-width: 768px) {
    .stats-section {
        padding: 3.5rem 1.5rem;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .stats-section {
        padding: 3rem 1rem;
        margin-top: 0;
    }
}

.session-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: rgba(201, 161, 59, 0.1);
    color: var(--secondary);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
}

.teacher-info-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin-top: auto;
}

.teacher-avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary);
}

.session-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.session-meta-item i {
    color: var(--secondary);
    width: 18px;
}
 
 