/**
 * Results Carousel — Front-end styles
 */

/* ── Conteneur ───────────────────────────────────────────────────────────── */

.mci-results-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    position: relative;
    font-family: 'Poppins', 'Inter', sans-serif;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.mci-results-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
    padding: 0 16px;
}

.mci-results-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #1363df;
    background: rgba(19, 99, 223, 0.08);
    padding: 5px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
    font-family: 'Poppins', 'Inter', sans-serif;
}

.mci-results-eyebrow::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #1363df;
    border-radius: 50%;
}

.mci-results-heading {
    font-size: 30px;
    font-weight: 800;
    color: #061e43;
    line-height: 1.25;
    margin: 0 0 14px;
    font-family: 'Poppins', 'Inter', sans-serif;
}

.mci-results-heading strong {
    color: #1363df;
    font-weight: 800;
}

.mci-results-desc {
    font-size: 15px;
    color: #4c5a7a;
    line-height: 1.75;
    margin: 0;
    font-family: 'Poppins', 'Inter', sans-serif;
}

/* ── Slide ───────────────────────────────────────────────────────────────── */

.mci-results-carousel {
    padding-bottom: 20px;
}

.mci-result-slide {
    padding: 12px;
}

.mci-results-carousel .slick-slide {
    background: white;
}

/* ── Card ────────────────────────────────────────────────────────────────── */

.mci-result-card {
    display: flex;
    background: #fff;
    box-shadow:
        0 8px 32px rgba(6, 30, 67, 0.10),
        0 1px 4px rgba(6, 30, 67, 0.05);
    border-radius: 16px;
    overflow: hidden;
    height: 160px;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    border: 1px solid rgba(19, 99, 223, 0.07);
}

.mci-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 48px rgba(6, 30, 67, 0.14);
}

/* ── Image principale ────────────────────────────────────────────────────── */

.mci-result-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #f7f9fc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.mci-result-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* ── Bandeau latéral ─────────────────────────────────────────────────────── */

.mci-result-panel {
    display: none;
}

/* Blob décoratif haut-droite */
.mci-result-panel::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

/* Blob décoratif bas-gauche */
.mci-result-panel::after {
    content: '';
    position: absolute;
    bottom: -24px;
    left: -24px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

/* Badge "Réussite" — masqué */
.mci-result-success-badge {
    display: none;
}

/* Logo */
.mci-result-logo {
    position: relative;
    z-index: 1;
}

.mci-result-logo img {
    max-width: 88px;
    max-height: 52px;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Drapeau circulaire */
.mci-result-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.mci-result-flag__ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 0 0 5px rgba(255, 255, 255, 0.12),
        0 6px 20px rgba(0, 0, 0, 0.25);
}

.mci-result-flag__ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Séparateur */
.mci-result-panel-sep {
    width: 20px;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 1px;
    position: relative;
    z-index: 1;
}

/* Textes bas */
.mci-result-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.mci-result-duration {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.1px;
    opacity: 0.95;
}

.mci-result-program {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1.1px;
}

/* ── Wrapper carousel + flèches ─────────────────────────────────────────── */

.mci-results-track-wrap {
    position: relative;
    padding: 0 5px;
}

/* ── Navigation ──────────────────────────────────────────────────────────── */

.mci-results-nav {
    display: none;
}

.mci-results-prev,
.mci-results-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #fff;
    border: 1.5px solid rgba(19, 99, 223, 0.22);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    color: #1363df;
    box-shadow: 0 2px 8px rgba(19, 99, 223, 0.10);
    padding: 0;
}

.mci-results-prev {
    left: 0;
}

.mci-results-next {
    right: 0;
}

.mci-results-prev:hover,
.mci-results-next:hover {
    background: #1363df;
    border-color: #1363df;
    color: #fff;
    box-shadow: 0 4px 14px rgba(19, 99, 223, 0.28);
}

/* ── Slick dots ──────────────────────────────────────────────────────────── */

.mci-results-container .slick-dots {
    position: static;
    display: flex !important;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mci-results-container .slick-dots li {
    margin: 0;
    width: auto;
    height: auto;
}

.mci-results-container .slick-dots li button {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    background: rgba(19, 99, 223, 0.22);
    border: none;
    transition: background 0.18s, width 0.18s;
}

.mci-results-container .slick-dots li button::before {
    display: none;
}

.mci-results-container .slick-dots li.slick-active button {
    background: #1363df;
    width: 20px;
    border-radius: 4px;
}

/* ── Slick track égalité hauteur ─────────────────────────────────────────── */

.mci-results-carousel .slick-track {
    display: flex !important;
    align-items: stretch;
}

.mci-results-carousel .slick-slide {
    height: auto !important;
    display: flex !important;
    flex-direction: column;
}

.mci-results-carousel .slick-slide>div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mci-results-carousel .slick-slide .mci-result-slide {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mci-results-carousel .slick-slide .mci-result-card {
    flex: 1;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .mci-results-heading {
        font-size: 24px;
    }

    .mci-results-container {
        padding: 0;
    }

    /* Supprime le padding du wrapper pour que le carousel occupe toute la largeur */
    .mci-results-track-wrap {
        padding: 0;
    }

    /* Flèches superposées sur les bords du carousel */
    .mci-results-prev {
        left: 6px;
        width: 32px;
        height: 32px;
        z-index: 20;
    }

    .mci-results-next {
        right: 6px;
        width: 32px;
        height: 32px;
        z-index: 20;
    }

    .mci-result-card {
        height: auto;
    }

    .mci-result-image {
        height: 120vw;
        padding: 10px;
    }
}