/**
 * HAGE - Bannière Collections
 * Variables personnalisables en tête de fichier : le thème du site peut les
 * surcharger (dans son propre CSS, après ce fichier) sans toucher au module.
 */
.hcb-section {
    --hcb-bg: #eeeeee;
    --hcb-text: #222222;
    --hcb-overlay: rgba(0, 0, 0, 0.45);

    background: var(--hcb-bg);
    padding: 48px 20px;
    box-sizing: border-box;
}

.hcb-container {
    max-width: 1280px;
    margin: 0 auto;
}

.hcb-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--hcb-text);
}

.hcb-subtitle {
    text-align: center;
    font-size: 15px;
    margin: 0 0 32px;
    color: var(--hcb-text);
    opacity: 0.75;
}

.hcb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .hcb-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hcb-grid {
        grid-template-columns: 1fr;
    }
}

.hcb-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s ease;
}

.hcb-card:hover,
.hcb-card:focus {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.hcb-card-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.hcb-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.4s ease;
}

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

/* Carte standard : image détourée sur fond blanc, nom en italique en bas à gauche */
.hcb-card--standard .hcb-card-media {
    background: #ffffff;
    padding: 16px;
    box-sizing: border-box;
    aspect-ratio: 4 / 3;
}

.hcb-card--standard .hcb-card-media img {
    object-fit: contain;
}

.hcb-card--standard .hcb-card-name {
    display: block;
    padding: 12px 16px 16px;
    font-style: italic;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    color: var(--hcb-text);
}

/* Carte "mise en avant" : image plein cadre + overlay + nom en grand + icône "+" */
.hcb-card--mise_en_avant {
    grid-column: span 1;
}

.hcb-card--mise_en_avant .hcb-card-media img {
    object-fit: cover;
}

.hcb-card--mise_en_avant .hcb-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--hcb-overlay) 0%, rgba(0, 0, 0, 0) 55%);
    transition: opacity 0.25s ease;
}

.hcb-card--mise_en_avant:hover .hcb-card-overlay {
    opacity: 0.85;
}

.hcb-card--mise_en_avant .hcb-card-plus {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--hcb-text);
    font-size: 20px;
    line-height: 34px;
    text-align: center;
    font-style: normal;
}

.hcb-card--mise_en_avant .hcb-card-name {
    position: absolute;
    left: 18px;
    bottom: 16px;
    font-style: italic;
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    padding: 0;
}
