/* Homepage specific styles - Premium Design v2.0 */

/* =================================================================
   HERO SLIDER WITH PREMIUM ANIMATIONS
   ================================================================= */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--couleur-primaire) 0%, var(--couleur-secondaire-dark) 100%);
    animation: heroFadeIn 1.2s ease forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: scale(1.02);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--white);
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 1s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    transform: scale(1.05);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transform: scale(1);
}

.hero-slide.exiting {
    opacity: 0;
    transform: scale(0.95);
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 20% 80%, rgba(255, 215, 0, 0.12), transparent 52%),
        radial-gradient(ellipse at 80% 30%, rgba(255, 255, 255, 0.1), transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(24, 3, 145, 0.15), transparent 70%);
    pointer-events: none;
    animation: ambientGlow 8s ease-in-out infinite alternate;
}

@keyframes ambientGlow {
    0% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.hero-slide-content {
    text-align: center;
    position: relative;
    z-index: 5;
    width: 100%;
    padding: 0 var(--space-6);
}

.hero-slide-content h1 {
    color: var(--white);
    margin-bottom: var(--space-4);
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    font-size: clamp(1.7rem, 3.4vw, 2.7rem);
}

.hero-slide-content p {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(0.92rem, 1.7vw, 1.1rem);
    max-width: 700px;
    margin: 0 auto var(--space-6);
    line-height: 1.75;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Smooth text animations when slide is active */
.hero-slide.active .hero-slide-content h1 {
    animation: slideTextIn 1s ease-out 0.2s both;
}

.hero-slide.active .hero-slide-content p {
    animation: slideTextIn 1s ease-out 0.4s both;
}

.hero-slide.active .hero-ctas {
    animation: slideTextIn 1s ease-out 0.6s both;
}

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

.hero-ctas .btn-primary {
    background: linear-gradient(135deg, #9e1620 0%, #6f0f18 100%);
    color: var(--white);
    box-shadow: 0 10px 28px rgba(120, 16, 28, 0.38);
}

.hero-ctas .btn-primary:hover {
    background: linear-gradient(135deg, #b11e2a 0%, #83141f 100%);
    box-shadow: 0 14px 30px rgba(120, 16, 28, 0.45);
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    backdrop-filter: blur(8px);
    cursor: pointer;
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeInNav 0.8s ease 1.2s forwards;
}

@keyframes fadeInNav {
    to {
        opacity: 1;
    }
}

.hero-nav.prev { left: var(--space-6); }
.hero-nav.next { right: var(--space-6); }

.hero-nav svg {
    width: 22px;
    height: 22px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: var(--space-9);
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-3);
    z-index: 8;
    opacity: 0;
    animation: fadeInNav 0.8s ease 1.2s forwards;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.hero-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.hero-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    z-index: 8;
}

.hero-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(135deg, #9e1620 0%, #6f0f18 100%);
}

.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: var(--space-14);
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    z-index: 8;
    text-decoration: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(4px);
}

.scroll-indicator span {
    font-size: var(--text-sm);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-indicator svg {
    width: 18px;
    height: 18px;
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(6px);
    }
    60% {
        transform: translateY(3px);
    }
}

/* =================================================================
   KEY FIGURES SECTION - PREMIUM CARDS
   ================================================================= */
.key-figures-section {
    background: linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
    padding: var(--space-12) 0;
}

.key-figures-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--couleur-primaire), var(--couleur-secondaire), var(--couleur-primaire));
}

.key-figures-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-6);
}

.figure-item {
    background: var(--white);
    border: none;
    border-radius: var(--radius-xl);
    padding: var(--space-8) var(--space-6);
    text-align: center;
    box-shadow: 0 10px 40px rgba(24, 3, 145, 0.08);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.figure-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(24, 3, 145, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.figure-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--couleur-primaire), var(--couleur-secondaire));
    border-radius: 3px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.figure-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(24, 3, 145, 0.15);
}

.figure-item:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.figure-item .icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    background: linear-gradient(135deg, var(--couleur-primaire), var(--couleur-secondaire));
    color: var(--white);
    box-shadow: 0 8px 20px rgba(24, 3, 145, 0.25);
}

.figure-item .icon svg {
    width: 28px;
    height: 28px;
}

.figure-item .number {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--couleur-primaire), var(--couleur-secondaire));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
    line-height: 1.1;
}

.figure-item .label {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.why-ucao-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 15%, rgba(24, 3, 145, 0.1), transparent 35%),
        radial-gradient(circle at 86% 80%, rgba(183, 28, 28, 0.08), transparent 38%),
        #ffffff;
}

.why-ucao-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
}

.why-card {
    position: relative;
    background: linear-gradient(160deg, #ffffff 0%, #f9f9fd 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(24, 3, 145, 0.08);
    box-shadow: 0 10px 28px rgba(24, 3, 145, 0.08);
    padding: var(--space-8);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(24, 3, 145, 0.03) 0%, rgba(139, 0, 0, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.why-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.why-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 24px 48px rgba(24, 3, 145, 0.18);
}

.why-card:hover::before {
    opacity: 1;
}

.why-card:hover::after {
    opacity: 1;
}

.why-card .icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(135deg, rgba(24, 3, 145, 0.16), rgba(183, 28, 28, 0.16));
    color: var(--couleur-primaire);
}

.why-card h3 {
    margin-bottom: var(--space-3);
    text-align: center;
}

.why-card p {
    color: var(--text-muted);
    text-align: center;
}

.process-section {
    background: var(--light-gray);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-5);
}

.process-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--medium-gray);
    padding: var(--space-6);
    text-align: center;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.process-content::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--couleur-secondaire), var(--couleur-primaire));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-item:hover .process-content {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(24, 3, 145, 0.12);
}

.process-item:hover .process-content::before {
    transform: scaleX(1);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9e1620 0%, #6f0f18 100%);
    color: var(--white);
    margin-bottom: var(--space-3);
    font-weight: 700;
}

.testimonials-section {
    background: var(--light-gray);
    overflow: hidden;
}

.testimonials-container {
    position: relative;
}

.testimonials-wrapper {
    display: flex;
    gap: var(--space-6);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: var(--space-4) var(--space-2);
}

.testimonials-wrapper::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - var(--space-4));
    min-width: 300px;
    scroll-snap-align: start;
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: 0 8px 24px rgba(24, 3, 145, 0.06);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--couleur-primaire), var(--couleur-secondaire));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card::after {
    content: '\201C';
    position: absolute;
    top: var(--space-5);
    right: var(--space-5);
    font-size: 5rem;
    line-height: 1;
    font-family: Georgia, serif;
    color: rgba(24, 3, 145, 0.06);
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(24, 3, 145, 0.12);
}

.testimonial-card:hover::before {
    opacity: 1;
}

.quote {
    color: var(--text-dark);
    margin-bottom: var(--space-6);
    padding-top: var(--space-2);
    font-size: 1.02rem;
    line-height: 1.8;
    font-style: italic;
}

.testimonial-author {
    font-weight: 700;
    color: var(--couleur-primaire);
    font-size: 1.05rem;
    margin-bottom: var(--space-1);
}

.testimonial-program {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-top: var(--space-1);
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.testimonials-nav button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--couleur-primaire);
    background: var(--white);
    color: var(--couleur-primaire);
    display: flex;
    align-items: center;
    justify-content: center;
}

.final-cta-section {
    background: linear-gradient(135deg, var(--couleur-primaire) 0%, var(--couleur-secondaire-dark) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: var(--space-16) 0;
    margin-top: var(--space-8);
}

.final-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 80% at 50% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.06), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06), transparent 40%);
    pointer-events: none;
}

.final-cta-section .container {
    position: relative;
    z-index: 2;
    padding: var(--space-6) var(--space-4);
}

.final-cta-section h2 {
    color: var(--white);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: var(--space-6);
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.final-cta-section p {
    color: rgba(255, 255, 255, 0.92);
    max-width: 650px;
    margin: 0 auto var(--space-10);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.8;
}

.final-cta-section .btn.btn-primary {
    background: linear-gradient(135deg, #9e1620 0%, #6f0f18 100%);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(120, 16, 28, 0.5);
    padding: var(--space-4) var(--space-8);
    font-size: 1.05rem;
    font-weight: 600;
}

.final-cta-section .btn.btn-primary:hover {
    background: linear-gradient(135deg, #b11e2a 0%, #83141f 100%);
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(120, 16, 28, 0.55);
}

@media (max-width: 992px) {
    .hero-slider { min-height: 620px; }
    .hero-nav { display: none; }
    .key-figures-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .testimonial-card {
        flex: 0 0 calc(50% - var(--space-3));
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .hero-slider { min-height: 560px; }
    .hero-ctas { flex-direction: column; align-items: center; }
    .hero-dots { bottom: var(--space-6); }
    .scroll-indicator { display: none; }
    .key-figures-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
    .figure-item { padding: var(--space-5) var(--space-4); }
    .figure-item .icon { width: 54px; height: 54px; }
    .figure-item .icon svg { width: 22px; height: 22px; }
    .why-ucao-grid { grid-template-columns: 1fr; gap: var(--space-4); }
    .why-card { text-align: center; }
    .why-card .icon { margin-left: auto; margin-right: auto; }
    .process-timeline { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
    .process-content { padding: var(--space-4) var(--space-3); }
    .process-content h3 { font-size: 0.85rem; margin-bottom: var(--space-2); }
    .process-content p { font-size: 0.72rem; line-height: 1.4; }
    .step-number { width: 30px; height: 30px; font-size: 0.8rem; margin-bottom: var(--space-2); }
    .testimonial-card {
        flex: 0 0 calc(100% - var(--space-4));
        min-width: 260px;
    }
    .final-cta-section {
        padding: var(--space-12) 0;
        margin-top: var(--space-6);
    }
}

/* =================================================================
   PREMIUM REVEAL ANIMATIONS
   ================================================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* =================================================================
   HERO NAV BUTTONS ENHANCED
   ================================================================= */
.hero-nav {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s ease,
                box-shadow 0.3s ease;
}

.hero-nav:hover {
    transform: translateY(-50%) scale(1.1);
    background: rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* =================================================================
   HERO DOTS ENHANCED
   ================================================================= */
.hero-dot {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s ease,
                box-shadow 0.3s ease;
}

.hero-dot:hover {
    transform: scale(1.3);
    background: rgba(255, 255, 255, 0.8);
}

.hero-dot.active {
    background: var(--white);
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

/* =================================================================
   TESTIMONIALS NAV ENHANCED
   ================================================================= */
.testimonials-nav button {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
    cursor: pointer;
}

.testimonials-nav button:hover:not(:disabled) {
    transform: scale(1.1);
    background: var(--couleur-primaire);
    border-color: var(--couleur-primaire);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(24, 3, 145, 0.25);
}

.testimonials-nav button:disabled {
    cursor: not-allowed;
}

.testimonials-nav button svg {
    width: 18px;
    height: 18px;
}

/* =================================================================
   STEP NUMBER PULSE
   ================================================================= */
.step-number {
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(158, 22, 32, 0.3), rgba(111, 15, 24, 0.3));
    z-index: -1;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.process-item:hover .step-number::after {
    opacity: 1;
    transform: scale(1);
}
