/* ============================================
   INFO CARDS CAROUSEL
   ============================================ */
:root {
    --school-primary: #26428f;      /* Bleu - couleur secondaire principale */
    --school-primary-dark: #124A94B; /* Bleu foncé */
    --school-secondary: #004080;    /* Bleu secondaire */
    --school-accent: #008779;       /* Vert - couleur tertiaire pour accents */
    --school-accent-dark: #CDDB6D;  /* Vert foncé */
    --school-light: #f0f7ff;        /* Bleu très clair pour backgrounds */
    --school-gray: #6c757d;
    --school-dark: #2c3e50;
}
.infocards-section {
    background: transparent;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    width: 100%;
    max-width: 100%;
    z-index: 2;
    margin-top: 140px;
    color: var(--school-primary, #124A9B);
}

.infocards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

.infocards-carousel {
    display: flex;
    gap: 20px;
    overflow: visible;
    align-items: center;
    position: absolute;
    bottom:-240px;
    left: 0;
    right: 0;
    width: 80%;
    min-height: 280px;
    z-index: 3;
    margin: 0 auto;
}

.infocard-item {
    min-width: calc(50% - 12px);
    max-width: calc(50% - 12px);
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 4px 16px rgb(0 0 0 / .1);
    transition: transform 0.5s
    ease, opacity 0.5s
    ease;
    opacity: 0;
    transform: translateX(50px);
    display: none;
    flex-shrink: 0;
    box-sizing: border-box;
    min-height: 260px;
    position: relative;
    z-index: 3;
    margin-bottom: 0;
}

.infocard-item.active {
    opacity: 1;
    transform: translateX(0);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.infocard-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--school-primary-dark, #124A9B);
}

.infocard-icon svg {
    width: 100%;
    height: 100%;
}

.infocard-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--school-primary-dark, #124A9B);
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.4;
}

.infocard-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--school-primary-dark, #124A9B);
    text-align: center;
    margin: 0;
    flex-grow: 1;
}

.infocards-controls {
    display: flex;
    gap: 12px;
    z-index: 10;
    flex-shrink: 0;
    align-items: center;
    position: absolute;
    right: 0;
    bottom: 20px;
}

.infocards-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--school-primary-dark, #124A9B);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.infocards-btn:hover {
    background: var(--school-primary, #26428f);
    transform: scale(1.1);
}

.infocards-btn:active {
    transform: scale(0.95);
}

.infocards-btn svg {
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (max-width: 991px) {
    .infocards-carousel {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        flex-direction: column;
        padding-bottom: 0;
        align-items: stretch;
        bottom: auto;
    }

    .infocards-container {
        padding: 0 24px;
    }

    .infocard-item {
        min-width: 100%;
        max-width: 100%;
    }

    .infocards-controls {
        position: static;
        justify-content: center;
        margin-top: 24px;
        transform: none;
        right: auto;
        bottom: auto;
    }
}

@media (max-width: 767px) {
    .infocard-item {
        padding: 24px 20px;
    }

    .infocard-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 14px;
    }

    .infocard-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .infocard-description {
        font-size: 0.85rem;
    }
}
