html, body {
    margin: 0;
    padding: 0;
}
body {
    background:#060367;
    color:#ffffff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cal-avent-page .ca-main-title-wrapper {
    max-width: 900px;
    margin: 2rem auto 1rem;
}
#ca-snow-canvas {
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:-1;
    pointer-events:none;
}
.cal-avent-wrapper,
.ca-wrapper {
    max-width: 900px;
    margin: 0 auto 3rem;
}
.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-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
}
.ca-card:hover {
    transform: translateY(-3px);
}
.ca-card.ca-locked { cursor:not-allowed; }
@media (max-width: 900px) {
    .cal-avent-wrapper,
    .ca-wrapper {
        padding: 0 1rem;
    }
}
@media (max-width: 800px) {
    .ca-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.8rem;
    }
    .ca-card-title {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.4rem 0.6rem;
    }
    .ca-card-image {
        padding: 6px;
    }
}
@media (max-width: 400px) {
    .cal-avent-wrapper,
    .ca-wrapper {
        padding: 0 0.6rem;
    }
    .ca-grid {
        gap: 0.5rem;
    }
    .ca-card-title {
        font-size: 0.6rem !important;
    }
}

@media (max-width: 900px) {
    .cal-avent-page .ca-main-title-wrapper {
        padding: 0 1rem;
        box-sizing: border-box;
    }
    .ca-today-banner {
        max-width: 100%;
        margin: 1.5rem 0 1rem;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }
}


/* Icônes de réseaux sociaux pour le bandeau et le footer */
.ca-today-inner {
    position: relative;
}
.ca-rs-icons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.ca-rs-icons a {
    color: inherit;
    text-decoration: none;
}
.ca-rs-icons a:hover {
    opacity: 0.8;
}
.ca-rs-icons button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: inherit;
}
.ca-rs-icons button:hover {
    opacity: 0.8;
}

/* Ancien comportement : les icônes du bas peuvent pousser le contenu */
.ca-rs-layout-classic.ca-rs-pos-banner_bottom_right {
    margin-top: 0.4rem;
    justify-content: flex-end;
}

/* Nouveau comportement overlay : les icônes sont superposées dans le bandeau */
.ca-rs-layout-overlay.ca-rs-pos-banner_top_right,
.ca-rs-layout-overlay.ca-rs-pos-banner_bottom_right {
    position: absolute;
    right: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    max-width: 40%;
    justify-content: flex-end;
}

.ca-rs-layout-overlay.ca-rs-pos-banner_top_right {
    top: 0.4rem;
}

.ca-rs-layout-overlay.ca-rs-pos-banner_bottom_right {
    bottom: 0.4rem;
}

.ca-rs-pos-footer_center {
    justify-content: center;
    margin-top: 0.75rem;
}

.ca-rs-pos-under_banner_center {
    justify-content: center;
    margin-top: 0.75rem;
}

.ca-rs-pos-under_article_center {
    justify-content: center;
    margin-top: 0.75rem;
}
