/*
 * FormaSound Learning - CSS de la page d'accueil
 */

/* Hero Section */
.hero {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/pattern.png');
    background-size: 200px;
    opacity: 0.05;
    z-index: 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--burgundy);
}

.hero .lead {
    font-size: 1.25rem;
    line-height: 1.6;
}

.hero img {
    transition: transform 0.5s ease;
}

.hero img:hover {
    transform: scale(1.02);
}

/* Features Section */
.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--burgundy);
    color: white !important;
}

/* Parcours Cards */
.card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1) !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Testimonials */
.testimonial-avatar {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card .fst-italic {
    position: relative;
    padding-left: 20px;
}

.card .fst-italic::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.5;
}

/* Animations */
[data-animation] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animation].animated {
    opacity: 1;
    transform: translateY(0);
}

/* Décalage des animations */
[data-animation="fade-up"]:nth-child(2) {
    transition-delay: 0.2s;
}

[data-animation="fade-up"]:nth-child(3) {
    transition-delay: 0.4s;
}

/* FAQ Section */
.accordion-item {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    padding: 1.25rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.accordion-button:not(.collapsed) {
    color: var(--burgundy);
    background-color: var(--light-burgundy);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.1);
}

.accordion-body {
    padding: 1.25rem;
    background-color: #f9f9f9;
}

/* CTA Section */
.bg-burgundy {
    position: relative;
    overflow: hidden;
}

.bg-burgundy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/pattern-light.png');
    background-size: 200px;
    opacity: 0.05;
    z-index: 0;
}

.bg-burgundy > * {
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .accordion-button {
        padding: 1rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Badges flottants */
.badge {
    transition: all 0.3s ease;
}

.card:hover .badge {
    transform: scale(1.1);
}

/* Animation badge */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.badge.bg-burgundy {
    animation: bounce 2s infinite;
    animation-delay: 1s;
}

/* Animation spéciale pour les éléments en hover */
.btn-burgundy, .btn-gold, .btn-outline-burgundy {
    transition: all 0.3s ease !important;
}

.btn-burgundy:hover, .btn-gold:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 20px rgba(138, 25, 61, 0.3) !important;
}

.btn-outline-burgundy:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 20px rgba(138, 25, 61, 0.2) !important;
}

/* Animation des éléments en hover */
.accordion-item:hover {
    transform: translateX(5px);
}

/* Images de fond pour les parcours */
.card .card-img-top {
    position: relative;
}

.card .card-img-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}