/* Styles améliorés pour les pages de formations */

/* Carte de formation */
.formation-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    border: none;
    margin-bottom: 30px;
    background: #fff;
}

.formation-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.formation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #8e44ad, #0099cc);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.formation-card:hover::before {
    transform: scaleX(1);
}

.formation-img-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.formation-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.formation-card:hover .formation-img {
    transform: scale(1.1);
}

.formation-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.formation-card:hover .formation-img-overlay {
    opacity: 1;
}

.formation-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(142, 68, 173, 0.9);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.formation-card:hover .formation-category {
    transform: translateY(0);
    opacity: 1;
}

.formation-body {
    padding: 25px;
    position: relative;
}

.formation-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.formation-card:hover .formation-title {
    color: #8e44ad;
}

.formation-title::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, #8e44ad, transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.formation-card:hover .formation-title::after {
    transform: scaleX(1);
}

.formation-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.formation-card:hover .formation-meta {
    opacity: 1;
}

.formation-meta i {
    color: #8e44ad;
    margin-right: 10px;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.formation-card:hover .formation-meta i {
    transform: scale(1.2);
}

.formation-description {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #666;
}

.formation-stats {
    display: flex;
    justify-content: space-between;
    background: rgba(142, 68, 173, 0.05);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.formation-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.formation-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #8e44ad;
}

.formation-stat-label {
    font-size: 12px;
    color: #666;
}

.formation-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
}

.formation-date {
    color: #666;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.formation-date i {
    margin-right: 8px;
    color: #8e44ad;
}

.formation-actions .btn {
    transition: all 0.3s ease;
    border-radius: 30px;
    padding: 8px 25px;
    font-weight: 600;
    background: linear-gradient(135deg, #8e44ad, #0099cc);
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.formation-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.formation-actions .btn:hover::before {
    left: 100%;
}

.formation-actions .btn:hover {
    box-shadow: 0 10px 20px rgba(142, 68, 173, 0.3);
    transform: translateY(-3px);
}

/* Page de détail de formation */
.formation-detail-header {
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.9), rgba(0, 153, 204, 0.9));
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    color: white;
    border-radius: 0 0 50px 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.formation-detail-header::before,
.formation-detail-header::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.formation-detail-header::before {
    top: -150px;
    right: -150px;
}

.formation-detail-header::after {
    bottom: -150px;
    left: -150px;
}

.formation-detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.formation-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.formation-detail-meta-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
}

.formation-detail-meta-item i {
    margin-right: 10px;
    font-size: 18px;
}

.formation-detail-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.formation-detail-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #8e44ad, #0099cc);
}

.formation-detail-section {
    margin-bottom: 40px;
}

.formation-detail-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.formation-detail-section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    bottom: -10px;
    left: 0;
    background: linear-gradient(90deg, #8e44ad, transparent);
}

.formation-instructor {
    display: flex;
    align-items: center;
    background: rgba(142, 68, 173, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.instructor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.instructor-info {
    flex: 1;
}

.instructor-name {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.instructor-title {
    color: #8e44ad;
    font-weight: 600;
    margin-bottom: 10px;
}

.instructor-bio {
    color: #666;
    line-height: 1.6;
}

.formation-lectures {
    margin-bottom: 30px;
}

.lecture-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.lecture-item:hover {
    background: rgba(142, 68, 173, 0.05);
    transform: translateX(10px);
}

.lecture-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #8e44ad;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.lecture-info {
    flex: 1;
}

.lecture-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.lecture-duration {
    font-size: 13px;
    color: #666;
}

.lecture-preview {
    background: rgba(142, 68, 173, 0.1);
    color: #8e44ad;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.lecture-preview:hover {
    background: rgba(142, 68, 173, 0.2);
    transform: translateY(-3px);
}

.formation-reviews {
    margin-bottom: 30px;
}

.review-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

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

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.review-date {
    font-size: 13px;
    color: #999;
}

.review-rating {
    display: flex;
    margin-left: 15px;
}

.review-star {
    color: #f39c12;
    font-size: 14px;
    margin-right: 2px;
}

.review-content {
    color: #666;
    line-height: 1.6;
}

.formation-enroll-container {
    position: sticky;
    top: 100px;
}

.formation-enroll-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.formation-price {
    background: linear-gradient(135deg, #8e44ad, #0099cc);
    color: white;
    padding: 30px;
    text-align: center;
}

.price-value {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.price-original {
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.price-save {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-block;
}

.enroll-features {
    padding: 30px;
}

.enroll-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.enroll-feature-icon {
    color: #8e44ad;
    margin-right: 15px;
    font-size: 18px;
}

.enroll-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #8e44ad, #0099cc);
    color: white;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    border-radius: 10px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.enroll-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.enroll-btn:hover::before {
    left: 100%;
}

.enroll-btn:hover {
    box-shadow: 0 10px 20px rgba(142, 68, 173, 0.3);
    transform: translateY(-3px);
}
