/* ============================================================
   ACENSI Click Cards — v5 (fidèle Figma)
   ============================================================ */

.acensi-click-cards {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin: 0 auto;
    gap: 51px;
}

/* ── Carte (bouton) ────────────────────────────────────────── */
.acensi-card {
    position: relative;
    appearance: none;
    border: 0;
    padding: 0;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    color: #ffffff;
    background-color: #2a3a50;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    transition: flex 420ms ease;
}

/* Carte active : prend environ 2.5x la place */
.acensi-card.active {
    flex: 2.5 1 0;
}

/* ── Overlay ───────────────────────────────────────────────── */
.acensi-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* Inactif : fond sombre quasi opaque */
    background: rgba(30, 44, 62, 0.93);
    transition: background 420ms ease;
}

/* Actif : gradient latéral laissant voir l'image à droite */
.acensi-card.active .acensi-card-overlay {
    background: linear-gradient(
        90deg,
        rgba(20, 35, 55, 0.92) 0%,
        rgba(28, 44, 66, 0.72) 45%,
        rgba(15, 28, 48, 0.18) 100%
    );
}

/* ── Motif décoratif (cercle) ──────────────────────────────── */
.acensi-card-pattern {
    position: absolute;
    right: -34px;
    bottom: -42px;
    width: 190px;
    height: 190px;
    border-radius: 999px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.35;
    background: radial-gradient(
        circle,
        transparent 0 42px,
        rgba(255, 255, 255, 0.12) 43px 78px,
        transparent 79px 100%
    );
    transition: all 420ms ease;
}

.acensi-card.active .acensi-card-pattern {
    left: -52px;
    right: auto;
    bottom: -60px;
    width: 230px;
    height: 230px;
}

/* ── Contenu ───────────────────────────────────────────────── */
.acensi-card-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px 22px;
    pointer-events: none;
}

/* Inactif : titre en haut, description en bas */
.acensi-card:not(.active) .acensi-card-content {
    justify-content: space-between;
}

/* ── Titre ─────────────────────────────────────────────────── */
.acensi-card-title {
    display: block;
    margin: 0 0 10px 0;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.acensi-card:not(.active) .acensi-card-title {
    font-size: 18px;
    margin-bottom: 0;
    align-self: flex-start;
}

/* ── Description ───────────────────────────────────────────── */
.acensi-card-text {
    display: block;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 400;
    max-width: 280px;
    opacity: 0.9;
}

/* Description masquée sur les cartes inactives */
.acensi-card:not(.active) .acensi-card-text {
    font-size: 16px;
    opacity: 0.75;
    max-width: 100%;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 767px) {
    .acensi-click-cards {
        flex-direction: column;
        height: auto !important;
        gap: 14px !important;
    }

    .acensi-card,
    .acensi-card.active {
        flex: none;
        height: 160px;
    }
}

/* ── Fix image de fond (visible uniquement sur carte active) ── */
.acensi-click-cards {
    overflow: hidden;
}

.acensi-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 420ms ease;
}

.acensi-card.active .acensi-card-bg {
    opacity: 1;
}