/* ============================================================
   Articles Avec Images en Avant — aaia-styles.css
   Fidèle à la maquette fournie : carte blanche, ombre douce,
   titre gras centré, extrait teinté, footer avec icône + social
   ============================================================ */

/* ---------- Police Google ---------- */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Source+Sans+3:wght@400;600&display=swap');

/* ---------- Variables ---------- */
:root {
    --aaia-accent:      #d97c29;   /* orange chaud : date inline */
    --aaia-text:        #1a1a2e;
    --aaia-muted:       #5a6880;
    --aaia-border:      #e8ecf2;
    --aaia-card-bg:     #ffffff;
    --aaia-shadow:      0 2px 12px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.05);
    --aaia-shadow-hover:0 8px 28px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.07);
    --aaia-radius:      10px;
    --aaia-gap:         22px;

    /* Réseaux sociaux */
    --aaia-fb:  #1877f2;
    --aaia-tw:  #1da1f2;
    --aaia-wa:  #25d366;
}

/* ---------- Grille ---------- */
.aaia-grid {
    display: grid;
    gap: var(--aaia-gap);
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.aaia-cols-1 { grid-template-columns: 1fr; max-width: 480px; }
.aaia-cols-2 { grid-template-columns: repeat(2, 1fr); }
.aaia-cols-3 { grid-template-columns: repeat(3, 1fr); }
.aaia-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .aaia-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .aaia-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .aaia-cols-2,
    .aaia-cols-3,
    .aaia-cols-4 { grid-template-columns: 1fr; }
}

/* ---------- Carte ---------- */
.aaia-card {
    background: var(--aaia-card-bg);
    border-radius: var(--aaia-radius);
    box-shadow: var(--aaia-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s ease, transform .25s ease;
    font-family: 'Source Sans 3', sans-serif;
}

.aaia-card:hover {
    box-shadow: var(--aaia-shadow-hover);
    transform: translateY(-3px);
}

/* ---------- Image ---------- */
.aaia-card__image-link {
    display: block;
    overflow: hidden;
    line-height: 0;
}

.aaia-card__image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.aaia-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.aaia-card:hover .aaia-card__image {
    transform: scale(1.04);
}

/* ---------- Corps ---------- */
.aaia-card__body {
    padding: 18px 20px 10px;
    flex: 1;
    text-align: center;
}

.aaia-card__title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
    color: var(--aaia-text);
}

.aaia-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.aaia-card__title a:hover {
    color: var(--aaia-accent);
}

.aaia-card__excerpt {
    font-size: .875rem;
    line-height: 1.6;
    color: var(--aaia-accent);
    margin: 0;
    font-weight: 400;
}

.aaia-card__date-inline {
    font-weight: 600;
}

/* ---------- Pied de carte ---------- */
.aaia-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px 14px;
    border-top: 1px solid var(--aaia-border);
    gap: 8px;
    flex-wrap: wrap;
}

.aaia-card__date-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: var(--aaia-muted);
    font-weight: 500;
}

.aaia-card__date-icon svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--aaia-muted);
}

/* ---------- Boutons sociaux ---------- */
.aaia-card__social {
    display: flex;
    gap: 7px;
}

.aaia-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: opacity .2s, transform .2s;
    flex-shrink: 0;
}

.aaia-social:hover {
    opacity: .85;
    transform: scale(1.12);
}

.aaia-social svg {
    width: 15px;
    height: 15px;
    fill: #fff;
}

.aaia-social--fb { background: var(--aaia-fb); }
.aaia-social--tw { background: var(--aaia-tw); }
.aaia-social--wa { background: var(--aaia-wa); }

/* ---------- Message vide ---------- */
.aaia-no-posts {
    text-align: center;
    color: var(--aaia-muted);
    font-family: 'Source Sans 3', sans-serif;
    font-size: .95rem;
    padding: 20px;
}
