.cny-custom-article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

@media (max-width: 600px) {
    .cny-custom-article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.article-card {
    overflow: hidden;
    background: #fff;
}

.article-card img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.article-card img:hover {
    transform: scale(1.05);
}

.article-card h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700 !important;
    font-size: 17px !important;
    margin: 0 0 10px;
    color: #111111;
    line-height: 25px;
}

.article-card h3 a {
    text-decoration: none;
    color: #111111;
}

.article-card h3 a:hover {
    color: #4db2ec;
}

.article-card p {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px !important;
    color: #767676 !important;
    line-height: 21px !important;
}

.article-image-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
    margin-bottom: 15px;
}

.article-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.cny-custom-title-block h2 {
    font-size: 28px;
    line-height: 36px;
    font-weight: 400;
    margin-bottom: 0.3em;
}

.cny-title-underline {
    width: 200px;
    height: 10px;
    background-color: var(--cny-primary-color);
    margin-bottom: 1em;
}

.cny-custom-paragraph-block {
    font-size: 17px !important;
    line-height: 26px;
    font-weight: 400;
    margin-bottom: 26px;
    margin-top: 10px;
}

.cny-cta-block {
    border: 1px solid #ddd;
    padding: 20px;
    box-shadow: 0px 0px 20px 10px #bcbcbc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.cny-cta-content {
    max-width: 70%;
}

.cny-cta-title {
    font-size: 21px !important;
    font-weight: 700 !important;
    margin-bottom: 10px;
}

.cny-cta-description {
    font-size: 15px;
    line-height: 24px;
    color: #666 !important;
    font-family: var(--td_default_google_font_1, 'Open Sans', 'Open Sans Regular', sans-serif);
}

.cny-cta-button-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1;
}

.cny-cta-button {
    background-color: var(--cny-primary-color);
    font-size: 20px;
    line-height: 41px;
    padding: 0 24px;
    text-align: center;
    color: #111;
    border: none;
    border-radius: 3px;
    text-decoration: none;
    cursor: pointer;
    font-family: var(--td_default_google_font_2, 'Roboto', sans-serif);
}

.cny-cta-button:hover {
    background-color: color-mix(in srgb, var(--cny-primary-color) 80%, black 20%);
}

/* Media query pour les écrans mobiles */
@media (max-width: 768px) {
    .cny-cta-block {
        flex-direction: column;
        /* Empile les éléments verticalement */
        align-items: flex-start;
        /* Aligne les éléments au début */
    }

    .cny-cta-content {
        max-width: 100%;
        /* Le contenu prend toute la largeur */
        margin-bottom: 15px;
        /* Ajoute un espace entre le contenu et le bouton */
    }

    .cny-cta-button-container {
        justify-content: center;
        /* Centrer le bouton sur mobile */
        width: 100%;
        /* Le bouton prend toute la largeur disponible */
    }

    .cny-cta-button {
        width: auto;
        /* Le bouton conserve sa taille par défaut */
    }
}

.cny-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}