.site-footer {
    margin-top: 5% !important;
    width: 100%;
}

.black-circle {
    background-color: #1a1a3d;
    margin-right: 10px;
}

/* --- Layout Split --- */
.split-layout {
    display: flex;
    min-height: 100vh;
}

.left-block {
    flex: 0 0 40%;
}

.left-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.right-block {
    flex: 0 0 60%;
    background: #ffffff;
    padding: 60px 40px;
    overflow-y: auto;
}

.study-container {
    max-width: 800px;
    margin: 0 auto;
}

/* --- Progress Bar --- */
.progress-container {
    width: 100%;
    height: 10px;
    background: #eef0f2;
    border-radius: 20px;
    margin-bottom: 50px;
}

.progress-bar {
    height: 100%;
    background: #89cf30;
    border-radius: 20px;
    transition: width 0.4s ease;
}

/* --- Titres --- */
.main-title {
    font-size: 38px;
    font-weight: 900;
    color: #1a1a3d;
    margin-bottom: 10px;
}

.sub-description {
    font-size: 16px;
    color: #444;
    margin-bottom: 40px;
    line-height: 1.5;
}

/* --- Slider & Grille --- */
.slider-outer-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-viewport {
    flex: 1;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.slider-slide {
    flex: 0 0 100%;
}

.slide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* --- Cartes --- */
.program-card {
    background: #f7f8fc;
    border-radius: 12px;
    padding: 30px 15px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.program-card:hover {
    background: #89cf30;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: #89cf30;
    transform: translateY(-5px);
}

.card-icon {
    width: 35px;
    height: 35px;
    margin-bottom: 15px;
}

.card-icon img {
    width: 100%;
    height: auto;
    filter: brightness(0) saturate(100%) invert(10%) sepia(26%) saturate(4590%) hue-rotate(231deg) brightness(92%) contrast(106%);
}

.program-card h3 {
    font-size: 11px;
    font-weight: 700;
    color: #1a1a3d;
    margin: 0;
    text-transform: uppercase;
}

/* --- Navigation --- */
.nav-arrow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #89cf30;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-arrow:disabled {
    background: #e0e0e0;
    cursor: not-allowed;
}

.bottom-controls {
    display: flex;
    justify-content: center;
    /* Centre les boutons à l'intérieur */
    align-items: center;
    /* Aligne verticalement si les hauteurs diffèrent */
    gap: 15px;
    /* Un peu plus d'espace pour l'esthétique */
    margin: 50px auto 0 auto;
    /* Centre le bloc lui-même (haut, droite, bas, gauche) */
    flex-wrap: wrap;
    width: 100%;
    /* S'assure que le conteneur prend toute la largeur */
    max-width: 800px;
    /* Optionnel : limite la largeur pour éviter l'étalement */
}

.btn-action {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-back {
    background: #a8e6a3;
    color: #1e4d2b;
}

.btn-forward {
    background: #39b54a;
    color: #fff;

    opacity: 0.5;
    cursor: not-allowed !important;
    filter: grayscale(1) !important;
}

.icon-circle {
    background: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    color: #000;
}

.black-circle {
    background-color: #1a1a3d;
    margin-right: 10px;
}

.social-links-minimal {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 40px;
    font-size: 20px;
    color: #1a1a3d;
}

/* --- RESPONSIVE --- */

/* Tablettes et petits �crans */
@media (max-width: 1100px) {
    .split-layout {
        flex-direction: column;
    }

    .left-block {
        height: 250px;
        flex: none;
    }

    .right-block {
        padding: 40px 20px;
    }

    .main-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .right-block {
        padding: 30px 15px;
    }

    .main-title {
        font-size: 28px;
    }

    .sub-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .progress-container {
        margin-bottom: 30px;
    }

    .slide-grid {
        gap: 15px;
    }

    .program-card {
        padding: 20px 10px;
    }

    .card-icon {
        width: 40px;
        height: 40px;
    }

    .program-card h3 {
        font-size: 13px;
    }

    .bottom-controls {
        margin-top: 30px;
    }
}

/* Mobiles */
@media (max-width: 600px) {
    .nav-arrow {
        display: none;
    }

    /* On cache les fl�ches lat�rales, on utilise le bouton du footer */
    .slider-outer-wrapper {
        gap: 0;
    }

    .bottom-controls {
        justify-content: center;
    }

    .btn-action {
        padding: 12px 25px;
        font-size: 15px;
    }

    .icon-circle {
        width: 22px;
        height: 22px;
        margin: 0 5px;
    }

    .social-links-minimal {
        justify-content: center;
        margin-top: 30px;
    }
}

/* Tr�s petits mobiles (=480px) */
@media (max-width: 480px) {
    .left-block {
        height: 180px;
        display: none;
        /* Active le mode Flexbox */
        justify-content: center;
        /* Centre horizontalement */
        align-items: center;
        /* Centre verticalement */
        overflow: hidden;
        /* Empêche l'image de dépasser du bloc */
        background-color: #0fb116;
        /* Optionnel : assure la continuité du vert */
    }

    .left-block img {
        width: auto;
        /* Garde ses proportions */
        height: 100%;
        /* Prend toute la hauteur du bloc */
        object-fit: contain;
        /* S'assure que toute la carte est visible sans être coupée */
        display: block;
    }

    .right-block {
        padding: 25px 12px;
    }

    .main-title {
        font-size: 24px;
    }

    .sub-description {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .progress-container {
        height: 8px;
        margin-bottom: 25px;
    }

    .slide-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Une seule colonne */
    .program-card {
        padding: 18px 12px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
    }

    /* Disposition horizontale pour gagner de la place */
    .program-card h3 {
        font-size: 14px;
        text-align: left;
    }

    .card-icon {
        width: 35px;
        height: 35px;
        margin-bottom: 0;
    }

    .bottom-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-action {
        justify-content: center;
    }

    .social-links-minimal {
        gap: 15px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .left-block {
        height: 380px;
        display: none;
        /* Active le mode Flexbox */
        justify-content: center;
        /* Centre horizontalement */
        align-items: center;
        /* Centre verticalement */
        overflow: hidden;
        /* Empêche l'image de dépasser du bloc */
        background-color: #38B227;
        /* Optionnel : assure la continuité du vert */
    }

    .left-block img {
        width: auto;
        /* Garde ses proportions */
        height: 100%;
        /* Prend toute la hauteur du bloc */
        object-fit: contain;
        /* S'assure que toute la carte est visible sans être coupée */
        display: block;
    }
}