* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #444444;
}

.wrapper {
    width: 100%;
    padding: 60px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(5, 74, 133, 0.9), rgba(5, 74, 133, 0.9)), url('../img/stostep-bg2.webp') fixed center center;
    background-size: cover;
}

.wrapper .container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.wrapper .title-section {
    text-align: center;
    margin-bottom: 50px;
    color: #fff;
}

.wrapper .title-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 20px;
}

.wrapper .title-section h2:after {
    content: "";
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: #47b2e4;
    bottom: 0;
    left: calc(50% - 25px);
}

.wrapper .title-section p {
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
}

.choice-card {
    width: 380px;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.6s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
    background-size: cover;
    background-position: center;
    transform: translateY(0);
}

.choice-card.academie {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8)), url('../img/services/formation2.webp');
}

.choice-card.cours {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8)), url('../img/services/formation3.webp');
}

.choice-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.choice-card .card-content {
    color: #fff;
    text-align: center;
    z-index: 1;
    transition: all 0.5s ease;
}

.choice-card .card-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.choice-card .card-title:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: #47b2e4;
    bottom: 0;
    left: calc(50% - 20px);
    transition: width 0.4s ease;
}

.choice-card:hover .card-title:after {
    width: 80px;
    left: calc(50% - 40px);
}

.choice-card .card-description {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    margin-bottom: 20px;
}

.choice-card:hover .card-description {
    max-height: 200px;
    opacity: 1;
}

.choice-card .btn-choice {
    display: inline-block;
    background: #47b2e4;
    color: #fff;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.choice-card:hover .btn-choice {
    opacity: 1;
    transform: translateY(0);
}

.choice-card .btn-choice:hover {
    background: #209dd8;
}

/* Catalogue de formations */
.formation-catalog {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    padding-bottom: 30px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    position: relative;
    color: #37517e;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.section-title h2::after {
    content: "";
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: #47b2e4;
    bottom: 0;
    left: calc(50% - 25px);
}

.section-title p {
    margin-bottom: 0;
    color: #6c757d;
}

.formation-category {
    margin-bottom: 60px;
}

.category-title {
    color: #37517e;
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 4px solid #47b2e4;
    font-weight: 600;
}

.formation-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.formation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.formation-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.formation-content {
    padding: 20px;
}

.formation-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #37517e;
}

.formation-details {
    margin-bottom: 15px;
}

.formation-details span {
    display: inline-block;
    margin-right: 15px;
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.formation-details span i {
    color: #47b2e4;
    margin-right: 5px;
}

.formation-description {
    font-size: 14px;
    margin-bottom: 15px;
    color: #6c757d;
    line-height: 1.5;
}

.formation-price {
    font-size: 18px;
    font-weight: 700;
    color: #37517e;
    margin-bottom: 15px;
}

.btn-inscription {
    display: inline-block;
    background: #47b2e4;
    color: #fff;
    text-decoration: none;
    padding: 8px 25px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-inscription:hover {
    background: #209dd8;
    color: #fff;
}

/* Cours individuels */
.cours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.cours-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cours-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.cours-img {
    height: 160px;
    overflow: hidden;
}

.cours-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.cours-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cours-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #37517e;
}

.cours-details {
    margin-bottom: 15px;
}

.cours-details span {
    display: block;
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.cours-details span i {
    color: #47b2e4;
    margin-right: 5px;
}

.cours-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.cours-price {
    font-size: 16px;
    font-weight: 700;
    color: #37517e;
}

.btn-acheter {
    display: inline-block;
    background: #47b2e4;
    color: #fff;
    text-decoration: none;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-acheter:hover {
    background: #209dd8;
    color: #fff;
}

/* Animation pour l'apparition des éléments */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease forwards;
}

/* Délais d'animation pour les éléments */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

/* Responsive */
@media (max-width: 991px) {
    .wrapper .container {
        flex-direction: column;
        gap: 40px;
    }

    .choice-card {
        width: 100%;
        max-width: 380px;
    }
}

@media (max-width: 768px) {
    .formation-catalog {
        padding: 60px 0;
    }

    .cours-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 576px) {
    .cours-grid {
        grid-template-columns: 1fr;
    }
}
