/* ============================================================
   PAGE D'ACCUEIL COMPLÈTE — VERSION 4.0
   Structure : Hero → Grille de titres → Grille image+titre
   ============================================================ */

/* ── Conteneur principal ─────────────────────────────────── */
.hca-wrapper {
    max-width: 60%;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: inherit;
}

/* ============================================================
   SECTION 1 — ARTICLE HERO
   ============================================================ */

.hca-hero {
    margin-bottom: 50px;
}

.hca-hero-article {
    position: relative;
    overflow: hidden;
    height: 480px;
}

.hca-hero-link {
    display: block;
    position: relative;
    height: 100%;
    text-decoration: none;
}

.hca-hero-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hca-hero-article:hover img {
    transform: scale(1.04);
}

/* Overlay titre sur l'image */
.hca-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.60) 55%,
        transparent 100%
    );
    padding: 50px 30px 28px;
}

.hca-hero-title {
    font-size: 1.75em;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    color: #ffffff;
}

/* Hero sans image */
.hca-hero-no-image {
    height: 100%;
    background: #f4f4f4;
    padding: 40px;
    display: flex;
    align-items: center;
}

.hca-hero-title-no-image {
    font-size: 2em;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

/* ============================================================
   SECTION 2 — GRILLE DE TITRES
   ============================================================ */

.hca-titles-section {
    margin-bottom: 50px;
}

.hca-titles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 36px;
}

.hca-title-item {
    padding: 0;
    border-top: 1px solid #e0e0e0;
    padding-top: 14px;
}

.hca-title-item-heading {
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
}

.hca-title-item-heading a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.25s ease;
}

.hca-title-item-heading a:hover {
    color: #0055bb;
}

/* ============================================================
   SECTION 3 — GRILLE IMAGE + TITRE
   ============================================================ */

.hca-image-grid-section {
    margin-bottom: 20px;
}

.hca-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.hca-image-item {
    /* Pas de bordure ni ombre */
}

.hca-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.hca-image-thumb {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 12px;
    transition: opacity 0.25s ease;
}

.hca-image-link:hover .hca-image-thumb {
    opacity: 0.88;
}

.hca-image-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 450;
    line-height: 1.4;
    color: #1a1a1a;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Grands écrans */
@media (min-width: 1280px) {
    .hca-wrapper {
        max-width: 55%;
    }
}

/* Tablettes */
@media (max-width: 1024px) {
    .hca-wrapper {
        max-width: 75%;
    }

    .hca-hero-article {
        height: 380px;
    }

    .hca-titles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px 28px;
    }

    .hca-image-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }
}

/* Petites tablettes */
@media (max-width: 768px) {
    .hca-wrapper {
        max-width: 92%;
        padding: 24px 14px;
    }

    .hca-hero-article {
        height: 300px;
    }

    .hca-hero-title {
        font-size: 1.35em;
    }

    .hca-titles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 22px;
    }

    .hca-image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobiles */
@media (max-width: 480px) {
    .hca-wrapper {
        max-width: 100%;
        padding: 14px 10px;
    }

    .hca-hero-article {
        height: 240px;
    }

    .hca-hero-title {
        font-size: 1.15em;
    }

    .hca-hero-overlay {
        padding: 30px 16px 18px;
    }

    .hca-titles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hca-image-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
