.page-content {
    padding-top: 8rem;
    padding-bottom: 8rem;
    margin: 20px;
    background: #F8F9FA;
}

.section-title h2 {
    font-family: 'Spline Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #4C5C6B;
    display: inline-block;
    padding: 2rem 4rem 1rem 0;
    color: #4C5C6B;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60%;
    height: 2px;
    background: linear-gradient(to right, #4C5C6B, #7A8FA3);
    transition: width 0.3s ease;
}

.section-title h2:hover::after {
    width: 100%;
}

.formation-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    background: #F8F9FA;
    box-shadow: 0 4px 12px rgba(76, 92, 107, 0.15);
    margin: 40px 0;
    overflow: hidden;
    position: relative;
    z-index: 0;
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.formation-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-border);
    z-index: 1;
}

.formation-card:hover {
    box-shadow: 0 8px 20px rgba(76, 92, 107, 0.2);
    transform: translateY(-4px);
    background: #FFFFFF;
}

/* Cartes impaires - Gradient principal */
.formation-card:nth-child(odd) {
    --gradient-border: linear-gradient(135deg, #4C5C6B, #7A8FA3);
}

/* Cartes paires - Gradient chaleureux */
.formation-card:nth-child(even) {
    --gradient-border: linear-gradient(135deg, #4C5C6B, #B8A082);
}

.formation-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.formation-title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 12px;
    color: #4C5C6B;
    font-family: 'Spline Sans', sans-serif;
    line-height: 1.3;
}

.formation-info {
    display: flex;
    gap: 32px;
    font-size: 14px;
    color: #7A8FA3;
    font-family: 'Spline Sans', sans-serif;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.info-item svg {
    width: 18px;
    height: 18px;
    color: #7A8FA3;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-text {
    line-height: 1.4;
    font-weight: 400;
}

.formation-cta {
    margin-left: 24px;
    flex-shrink: 0;
}

.cta-button {
    background: linear-gradient(135deg, #4C5C6B, #7A8FA3);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Spline Sans', sans-serif;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover {
    background: #3A4751;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 92, 107, 0.3);
}

.cta-button:hover::before {
    left: 100%;
}

/* Version alternative avec bouton accent */
.cta-button.accent {
    background: #B8A082;
}

.cta-button.accent:hover {
    background: #A08B6F;
}

/* Version secondaire */
.cta-button.secondary {
    background: #E8EBF0;
    color: #4C5C6B;
    border: 1px solid rgba(76, 92, 107, 0.2);
}

.cta-button.secondary:hover {
    background: #4C5C6B;
    color: white;
    border-color: #4C5C6B;
}

/* Responsive */
@media (max-width: 768px) {
    .page-content {
        margin: 10px;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
        padding: 1rem 2rem 0.8rem 0;
    }

    .formation-card {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        margin: 20px 0;
        padding: 20px;
    }

    .formation-title {
        font-size: 16px;
    }

    .formation-info {
        flex-direction: column;
        gap: 12px;
    }

    .formation-cta {
        margin-left: 0;
        align-self: flex-end;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        align-self: stretch;
    }
}

@media (max-width: 480px) {
    .formation-card {
        margin: 15px 0;
        padding: 15px;
    }

    .formation-info {
        gap: 8px;
    }
}

/* États d'interaction améliorés */
.formation-card:focus-within {
    outline: 2px solid #4C5C6B;
    outline-offset: 2px;
}

/* Animation d'apparition pour les cartes */
.formation-card {
    animation: fadeInUp 0.6s ease-out;
}

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