/* Diaporama en haut + grille éditoriale */

.ca-wrapper {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1rem 2rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Diapo top */

.ca-diapo-top {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: stretch;
}

.ca-diapo-image-wrap {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 12px;
    border-radius: 10px;
    box-sizing: border-box;
}

.ca-diapo-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.ca-diapo-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ca-diapo-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.ca-diapo-link {
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 600;
    text-decoration: underline;
    color: #c32026;
}

.ca-diapo-controls {
    display: flex;
    gap: 0.8rem;
    margin-top: auto;
}

.ca-diapo-btn {
    border: none;
    color: #fff;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, filter 0.08s ease-out;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

.ca-diapo-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.24);
    filter: brightness(1.05);
}

/* Grille */

.ca-grid {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ca-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e4e4e4;
    background: #fff;
    padding: 0;
    cursor: pointer;
    transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, border-color 0.08s ease-out;
    border-radius: 10px;
}

.ca-card-image {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.ca-card-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.ca-card-title {
    padding: 0.7rem 0.9rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
}

.ca-card:hover {
    transform: translateY(-3px);
}

/* Responsive */

@media (max-width: 900px) {
    .ca-diapo-top {
        grid-template-columns: minmax(0, 1fr);
    }
}
