/* Scoped to the homepage announcements. */
.home-section-panel {
    background: #f6f8fb;
    border: 1px solid #e0e6ee;
    border-radius: 20px;
}
.home-section-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 28px;
    background: linear-gradient(110deg, #fff, #eef2f7);
    border-top: 3px solid #bd3d3f;
    border-bottom: 1px solid #e0e6ee;
    border-radius: 18px 18px 0 0;
}
.home-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    color: #bd3d3f;
    background: #f9e9ea;
    border-radius: 14px;
}
.home-section-icon svg { width: 28px; height: 28px; }
.home-section-copy { min-width: 0; }
.home-section-copy h2 {
    margin: 0;
    color: #012355;
    font-size: clamp(22px, 1.2rem + .7vw, 32px);
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.home-section-copy p {
    max-width: 850px;
    margin: 8px 0 0;
    color: #526277;
    font-size: 16px;
    line-height: 1.65;
}
.home-section-spacing { margin-block: 40px; }
.home-news { padding-bottom: 0; }
#Avis .compact-notification.home-notices-panel {
    padding: 0;
    margin: 0;
    top: auto;
    border-left-color: #bd3d3f;
}
.home-notices-body { padding: 24px 28px; }
#E-SERVICE .features { padding: 0; }
#E-SERVICE .features_row {
    top: auto;
    margin: 0;
    padding: 16px;
    row-gap: 16px;
}
#E-SERVICE .features_row + .features_row { padding-top: 0; }
#E-SERVICE .feature_col { margin-bottom: 0; }
#E-SERVICE .feature { height: 100%; border-radius: 12px; }
#E-SERVICE .feature_col > a { display: block; height: 100%; }
@media (max-width: 575px) {
    .home-section-heading { padding: 18px 16px; gap: 12px; }
    .home-section-icon { width: 40px; height: 40px; border-radius: 10px; }
    .home-section-icon svg { width: 24px; height: 24px; }
    .home-section-copy p { font-size: 14px; }
    .home-notices-body { padding: 20px 16px; }
}
#encg-chiffres .counter {
    width: calc(100% - clamp(32px, 5vw, 96px));
    padding: 0;
    margin-inline: auto;
    border: 1px solid #e0e6ee;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 32px -8px rgba(1, 35, 85, .24),
                0 3px 10px rgba(1, 35, 85, .10);
}
#encg-chiffres .home-stats-photo { position: relative; }
#encg-chiffres .counter_content {
    padding-top: clamp(40px, 5vw, 80px);
    padding-bottom: clamp(40px, 5vw, 80px);
}
#encg-chiffres .milestones { margin-top: 0; }
#Avis .compact-notification {
    border-radius: 18px;
    box-shadow: 0 14px 32px -8px rgba(1, 35, 85, .24),
                0 3px 10px rgba(1, 35, 85, .10);
    margin: 24px 8px 40px;
}
.home-news .news_row {
    margin: 0;
    padding: 24px 8px 28px;
}
.home-news .news_post_large_container,
.home-news .news_posts_small {
    margin: 0;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 14px 32px -8px rgba(1, 35, 85, .24),
                0 3px 10px rgba(1, 35, 85, .10);
}
.home-news .news_post_large_container {
    overflow: hidden;
}
.home-news .news_post_large {
    height: auto;
    margin: 0;
    border: 0;
    border-radius: 18px;
    box-shadow: none;
}
.home-news .news_post_large > .news_post_large_title {
    flex-grow: 0;
}
.home-news .news-left-list {
    padding: 20px;
}
.home-news .news-left-list .news_post_small {
    border-top: 1px solid #e5e5e5;
    padding-top: 20px;
}
.home-news .news_post_image_large {
    border-radius: 18px 18px 0 0;
}
.home-news .news_posts_small {
    padding: clamp(20px, 2vw, 28px);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.home-news .news-more-footer {
    margin-top: auto;
    padding-top: 24px;
    text-align: right;
}
@media (max-width: 991px) {
    .home-news .news_col + .news_col { margin-top: 16px; }
}
.home.home-announcements {
    --slider-gutter: clamp(16px, 2.5vw, 48px);
    --slider-padding-top: clamp(24px, 3svh, 48px);
    --slider-padding-bottom: 64px;
    --slider-available-height: calc(100svh - var(--announcement-header-height) - 116px);
    width: calc(100% - var(--slider-gutter) - var(--slider-gutter));
    margin-inline: auto;
    margin-bottom: 44px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 32px -8px rgba(1, 35, 85, .24),
                0 3px 10px rgba(1, 35, 85, .10);
    /* Reserve the fixed header: 40px contact bar + 90px navigation. */
    --announcement-header-height: 130px;
    margin-top: calc(var(--announcement-header-height) + 24px);
    height: auto;
    min-height: min(1160px, max(0px, var(--slider-available-height)));
    display: flex;
    align-items: center;
    top: auto;
    padding: 0;
}
.home-announcements .slider-container {
    height: auto;
    width: 100%;
    box-sizing: border-box;
    padding: var(--slider-padding-top) clamp(56px, 4vw, 96px) var(--slider-padding-bottom);
}
.home-announcements .slider-slide {
    position: relative;
    top: auto;
    display: none;
    height: auto;
    width: 100%;
    max-width: 1920px;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 3vw, 96px);
}
.home-announcements .slider-slide.active { display: grid; }
.home-announcements .slide-left {
    min-width: 0;
    margin: 0;
    width: auto;
    height: auto;
}
.home-announcements .slide-left img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: clamp(280px, calc(var(--slider-available-height) - var(--slider-padding-top) - var(--slider-padding-bottom)), 1040px);
    object-fit: contain;
    margin: auto;
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(1, 35, 85, .2);
}
.home-announcements .announcement-poster { display: block; border-radius: 10px; }
.home-announcements .slide-right {
    min-width: 0;
    width: auto;
    height: auto;
    margin: 0;
    top: auto;
}
.home-announcements .slide-content {
    max-width: 960px;
    padding: clamp(24px, 2.5vw, 56px);
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(1, 35, 85, .1);
    border-top: 4px solid #bd3d3f;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(1, 35, 85, .14);
    text-align: left;
}
.home-announcements .slide-content h5 {
    margin: 0 0 20px;
    color: #012355;
    font-size: clamp(1.5rem, 1rem + 1.1vw, 2.75rem);
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    overflow-wrap: anywhere;
}
.home-announcements .slide-content p {
    margin: 0 0 28px;
    background: transparent;
    color: #35465c;
    font-size: clamp(1rem, .85rem + .25vw, 1.25rem);
    line-height: 1.75;
    text-align: left;
    overflow-wrap: anywhere;
}
#Avis .notices-more,
.home-news .news-more,
.home-announcements .slide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0;
    padding: 14px 28px;
    min-height: 48px;
    border: 2px solid #bd3d3f;
    border-radius: 8px;
    background: #bd3d3f;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-transform: none;
    box-shadow: 0 6px 16px rgba(189, 61, 63, .22);
    transition: background-color .2s, border-color .2s;
}
#Avis .notices-more:hover,
.home-news .news-more:hover,
.home-announcements .slide-btn:hover {
    background: #012355;
    border-color: #012355;
    color: #fff;
}
#Avis .notices-more:focus-visible,
.home-news .news-more:focus-visible,
.home-announcements a:focus-visible {
    outline: 3px solid #012355;
    outline-offset: 5px;
}
.home-announcements .slider-nav {
    width: 44px;
    height: 44px;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.home-announcements .slider-nav.prev { left: 10px; }
.home-announcements .slider-nav.next { right: 10px; }
.home-announcements .slider-indicators {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: max-content;
    bottom: 18px;
    max-width: calc(100% - 120px);
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}
.home-announcements .indicator {
    box-sizing: border-box;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 6px solid transparent;
    border-radius: 50%;
    background: #fff;
    background-clip: padding-box;
}
.home-announcements .indicator.active { background-color: #bd3d3f; }
.home-announcements button:focus-visible { outline: 3px solid #012355; outline-offset: 2px; }
@media (max-width: 1100px) {
    .home-announcements .slide-content { padding: 24px; }
    .home-announcements .slide-content h5 { font-size: 25px; }
    .home-announcements .slide-content p { font-size: 16px; line-height: 1.6; }
}
@media (max-width: 64rem) {
    .home.home-announcements { min-height: 0; }
    .home-announcements .slider-container { padding: 24px clamp(16px, 4vw, 32px) 88px; }
    .home-announcements .slider-slide { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 24px; }
    .home-announcements .slide-left,
    .home-announcements .slide-right { width: 100%; max-width: 680px; }
    .home-announcements .slide-left img { max-height: clamp(240px, 60svh, 580px); }
    .home-announcements .slider-nav { top: auto; bottom: 16px; transform: none; }
    .home-announcements .slider-nav.prev { left: 16px; }
    .home-announcements .slider-nav.next { right: 16px; }
    .home-announcements .slider-indicators { bottom: 26px; }
}
@media (max-width: 480px) {
    .home-announcements .slide-content { padding: 20px; }
    .home-announcements .slide-content h5 { font-size: 22px; }
    .home-announcements .slide-content p { font-size: 16px; }
    #Avis .notices-more,
    .home-news .news-more,
    .home-announcements .slide-btn { width: 100%; padding: 12px 16px; }
}
@media (max-width: 767px) {
    .home.home-announcements { --announcement-header-height: 90px; }
}
@media (min-width: 64.01rem) and (max-height: 700px) {
    .home-announcements .slider-container { padding-top: 24px; }
    .home-announcements .slide-content { padding: 22px; }
    .home-announcements .slide-content h5 { font-size: 24px; margin-bottom: 14px; }
    .home-announcements .slide-content p { margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-announcements .slider-slide, .home-announcements .slide-btn { transition: none; }
}
