.chx-section {
    margin: 5rem 0;
}

/* En-tête de chx */
.chx-header {
    text-align: center;
    margin-bottom: 2rem;
}

.chx-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gray);
    margin-bottom: 0.5rem;
}

.chx-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Divider stylisé */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
}

.divider-line {
    width: 100%;
    max-width: 120px;
    height: 2px;
}

.divider-line-red {
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.divider-line-green {
    background: linear-gradient(90deg, transparent, var(--color-success), transparent);
}


.divider-icon {
    margin: 0 1rem;
}

.divider-icon svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: #d2a90b;
}

/* Grille de cartes */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

/* Cartes */
.card-item {
    position: relative;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    text-decoration: none;
    color: var(--color-gray);
    height: 100%;
    min-height: 150px;
    z-index: 1;
}

.card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(252, 235, 93, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);;
}

.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.card-item:hover::before {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--color-primary);
}

.card-content {
    flex: 1;
    text-align: center;
    align-content: center;
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 0.75rem;
    color: var(--color-gray);
}

.card-content p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.card-arrow {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-item:hover .card-arrow {
    transform: translateX(5px);
}

/* Effet de highlight au survol */
.card-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-item:hover .card-highlight {
    transform: scaleX(1);
}

/* Animation pour la carte 2 */
.card-item[data-card="2"] .card-icon {
    background: rgba(58, 12, 163, 0.1);
}

.card-item[data-card="2"] .card-icon svg {
    fill: var(--color-secondary);
}

.card-item[data-card="2"]::before {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
}

.card-item[data-card="2"] .card-highlight {
    background: var(--color-accent);
}

/* Responsive */
@media (max-width: 1200px) {
    .chx-section {
        margin: 4rem 0;
    }

    .card-content h3 {
        font-size: 1.3rem;
    }
    .chx-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 992px) {
    .chx-section {
        margin: 3rem 0;
    }

    .card-content h3 {
        font-size: 1.2rem;
    }
}
@media (max-width: 768px) {
    .chx-section {
        margin: 2rem 0;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .chx-title {
        font-size: 1.2rem;
    }

    .card-content h3 {
        font-size: 1rem;
    }
    .chx-subtitle {
        font-size: 0.7rem;
    }

    .divider-line {
        max-width: 70px;
    }
}
