/* formation.css */

.section {
    padding: 5rem 1.5rem;
    background-color: #ffffff;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* En-tête de section */
.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #059669, #0891b2, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

/* Texte descriptif */
.section p {
    color: #4b5563;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Grille des formations */
.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Carte de formation */
.formation-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0fdf4;
    display: flex;
    flex-direction: column;
}

.formation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    border-color: #d1fae5;
}

.formation-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #059669;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.formation-card p {
    color: #4b5563;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.formation-card p strong {
    color: #1f2937;
    font-weight: 600;
}

/* Description optionnelle */
.formation-card p:last-child {
    margin-top: 1rem;
    font-style: italic;
    color: #6b7280;
    border-top: 1px dashed #e5e7eb;
    padding-top: 1rem;
}

/* Message si aucune formation */
.formations-grid p:only-child {
    grid-column: 1 / -1;
    text-align: center;
    color: #9ca3af;
    font-size: 1.1rem;
    padding: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .formations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.75rem;
    }
    .section p {
        font-size: 1rem;
    }
    .formation-card {
        padding: 1.25rem;
    }
    .formation-card h3 {
        font-size: 1.3rem;
    }
}