/**
 * Shortcode [gas_nouvelles]
 * Layout : grille 3 colonnes, image en haut, accent heading, titre, description
 * Dépend de gas-design-tokens.css
 */

/* =============================================
   CONTAINER — grille adaptative
   ============================================= */

.gas-nouvelles {
    display: grid;
    grid-template-columns: repeat(var(--gas-nouvelles-cols, 3), 1fr);
    gap: var(--gas-space-xl);
    max-width: 960px;
    margin: 0 auto;
}

/* =============================================
   CARD
   ============================================= */

.gas-nouvelles__card {
    display: flex;
    flex-direction: column;
}

/* =============================================
   IMAGE
   ============================================= */

.gas-nouvelles__image {
    border-radius: var(--gas-radius-m);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.gas-nouvelles__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gas-nouvelles__image a:hover img {
    transform: scale(1.03);
}

/* =============================================
   CONTENT
   ============================================= */

.gas-nouvelles__content {
    padding-top: var(--gas-space-m);
}

/* Accent heading (date ou lien) */
.gas-nouvelles__accent {
    margin: 0 0 var(--gas-space-xs);
    font-size: var(--gas-text-s);
    font-weight: var(--gas-weight-semibold);
    color: var(--gas-primary);
    line-height: 1.4;
}

a.gas-nouvelles__accent {
    text-decoration: none;
    display: block;
}

a.gas-nouvelles__accent:hover {
    text-decoration: underline;
}

/* Title */
.gas-nouvelles__title {
    margin: 0 0 var(--gas-space-s);
    font-size: var(--gas-text-xl);
    font-weight: var(--gas-weight-bold);
    line-height: 1.2;
    color: var(--gas-neutral-900);
}

.gas-nouvelles__title a {
    color: inherit;
    text-decoration: none;
}

.gas-nouvelles__title a:hover {
    color: var(--gas-primary);
}

/* Description */
.gas-nouvelles__description {
    margin: 0;
    font-size: var(--gas-text-s);
    line-height: 1.6;
    color: var(--gas-neutral-600);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .gas-nouvelles {
        grid-template-columns: 1fr;
        gap: var(--gas-space-2xl);
    }

    .gas-nouvelles__title {
        font-size: var(--gas-text-l);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .gas-nouvelles {
        grid-template-columns: repeat(2, 1fr);
    }
}
