/* ============================================================
   CARD SYSTEM (card_system.inc.php) — LoisirsGratuits.ch
   ============================================================ */

.card_system-base {
    max-width: 300px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    position: relative;
    color: #333;
    border: none;
    box-shadow: 0 6px 24px 0 rgba(0,0,0,0.13), 0 1.5px 6px 0 rgba(0,0,0,0.07);
    transition: transform 0.3s cubic-bezier(.45,.02,.53,.97), box-shadow 0.3s cubic-bezier(.45,.02,.53,.97);
    cursor: pointer;
}

.card_system-base:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 10px 36px 0 rgba(0,0,0,0.16), 0 3px 12px 0 rgba(0,0,0,0.09);
}

.card_system-header {
    background-color: var(--lg-primary-dark, #24992d);
    color: #fff;
    padding: 10px 15px;
    font-size: 0.97rem;
    line-height: 1.24;
    text-align: center;
    font-weight: bold;
    z-index: 15;
    position: relative;
    min-height: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    white-space: normal;
    word-break: break-word;
}

.card_system-header br {
    line-height: 1.10;
}

.card_system-btn-bottom {
    background-color: var(--lg-primary-dark, #24992d);
    color: #fff;
    font-weight: bold;
    padding: 10px;
    border-radius: 0 0 12px 12px;
    width: 100%;
    border: none;
    text-align: center;
    text-transform: uppercase;
    z-index: 15;
    transition: background-color 0.2s ease;
    font-size: 0.98rem;
}

.card_system-btn-bottom:hover {
    background-color: var(--lg-primary, #48d148);
}

.card_system-image-overlay {
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card_system-img-abs {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.card_system-overlay-readability {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.05));
    z-index: 2;
}

.card_system-text-superimposed {
    position: relative;
    z-index: 3;
    color: #fff;
    padding: 13px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card_system-title-super {
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    margin-top: 5px;
    text-transform: none;
    color: #fff;
}

.card_system-text-super {
    font-size: 0.98rem;
    line-height: 1.35;
    margin-top: 4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    margin-bottom: 13px;
    color: #fff;
}
