/* Ajustements des cartes pour le mobile */
@media (max-width: 768px) {
    .domains-section .card,
    .domain-card {
        width: 100% !important;
        margin: 0 0 20px 0;
        min-height: 100%;
    }

    .col-md-6,
    .col-lg-4 {
        padding: 0;
        width: 100%;
        flex: 0 0 100%;
    }

    .row {
        margin: 0;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }

    .card-body {
        padding: 1.25rem;
    }

    /* Animation plus subtile sur mobile */
    .domain-card:hover {
        transform: translateY(-5px);
    }

    /* Ajustement pour la grille */
    .row.g-4 {
        --bs-gutter-x: 0;
        --bs-gutter-y: 1rem;
        row-gap: 1rem !important;
    }
}

/* Très petits écrans */
@media (max-width: 576px) {
    .domain-card {
        margin: 0 0 15px 0;
        width: 100% !important;
    }

    .container {
        padding: 0 10px;
    }

    .card-body {
        padding: 1rem;
    }

    .domain-card:hover {
        transform: translateY(-3px);
    }
}

/* Style général des cartes */
.domain-card {
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    overflow: hidden;
}

.domain-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.domain-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
}

.domain-card .btn {
    margin-top: auto;
}