/* ============================================
   Boîte à Outils - Accordéons
   ============================================ */

/* Section Vidéos - Message "À venir" */
.section-videos {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.03) 0%, rgba(59, 130, 246, 0.03) 100%);
}

.coming-soon-message {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon-message i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    opacity: 0.7;
}

.coming-soon-message h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: var(--spacing-md);
}

.coming-soon-message p {
    color: var(--gray);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

/* Section Fiches */
.section-fiches {
    background: var(--gray-lighter);
}

/* Container des accordéons */
.accordeon-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Item accordéon */
.accordeon-item {
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-normal);
}

.accordeon-item:hover {
    box-shadow: var(--shadow-md);
}

/* Header accordéon (bouton) */
.accordeon-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    background: white;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: left;
}

.accordeon-header:hover {
    background: var(--gray-lighter);
}

.accordeon-header.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
}

.accordeon-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
}

.accordeon-title i {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 30px;
}

.accordeon-title h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

/* Icône chevron */
.accordeon-icon {
    font-size: 1.25rem;
    color: var(--primary-color);
    transition: transform var(--transition-normal);
}

.accordeon-header.active .accordeon-icon {
    transform: rotate(180deg);
}

/* Contenu accordéon */
.accordeon-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 var(--spacing-lg);
}

.accordeon-content.active {
    max-height: 1200px;
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

/* Liste des fiches */
.fiches-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fiches-list li {
    border-bottom: 1px solid var(--gray-light);
    transition: background var(--transition-fast);
}

.fiches-list li:last-child {
    border-bottom: none;
}

.fiches-list li:hover {
    background: var(--gray-lighter);
}

.fiches-list a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    color: var(--dark);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.fiches-list a:hover {
    color: var(--primary-color);
    padding-left: calc(var(--spacing-md) + 10px);
}

.fiches-list a i {
    color: var(--primary-color);
    font-size: 1rem;
    min-width: 20px;
}

/* Badge de comptage */
.accordeon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    margin-left: var(--spacing-sm);
}

/* Responsive */
@media (max-width: 768px) {
    .accordeon-header {
        padding: var(--spacing-md);
    }

    .accordeon-title {
        gap: var(--spacing-sm);
    }

    .accordeon-title i {
        font-size: 1.25rem;
    }

    .accordeon-title h3 {
        font-size: 1rem;
    }

    .accordeon-content.active {
        padding: 0 var(--spacing-md) var(--spacing-md);
    }

    .fiches-list a {
        padding: var(--spacing-sm);
        font-size: 0.9rem;
    }

    .coming-soon-message {
        padding: var(--spacing-lg);
    }

    .coming-soon-message i {
        font-size: 3rem;
    }

    .coming-soon-message h3 {
        font-size: 1.25rem;
    }
}

/* Animation d'apparition */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accordeon-content.active .fiches-list li {
    animation: slideDown 0.3s ease-out;
}

.accordeon-content.active .fiches-list li:nth-child(1) { animation-delay: 0.05s; }
.accordeon-content.active .fiches-list li:nth-child(2) { animation-delay: 0.1s; }
.accordeon-content.active .fiches-list li:nth-child(3) { animation-delay: 0.15s; }
.accordeon-content.active .fiches-list li:nth-child(4) { animation-delay: 0.2s; }
.accordeon-content.active .fiches-list li:nth-child(5) { animation-delay: 0.25s; }
.accordeon-content.active .fiches-list li:nth-child(6) { animation-delay: 0.3s; }
.accordeon-content.active .fiches-list li:nth-child(7) { animation-delay: 0.35s; }
.accordeon-content.active .fiches-list li:nth-child(8) { animation-delay: 0.4s; }
.accordeon-content.active .fiches-list li:nth-child(9) { animation-delay: 0.45s; }
