/* ============================================================
   COLLÈGE MONTAIGNE — SOCLE GLOBAL v0.2.9
   Reproduction du résultat visuel de l'accueil restauré,
   sans dépendance à Divi ni marges négatives structurelles.
   ============================================================ */

:root {
    --cm-blue: #3585CD;
    --cm-blue-secondary: #2EA3F2;
    --cm-alert-red: #E02B20;
    --cm-content-max: 1200px;
    --cm-reading-max: 1080px;
    --cm-menu-height: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) {
    html { overflow-y: scroll; }
}
body {
    margin: 0;
    color: #333;
    font-family: Nunito, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    background-color: #1e73be;
    background-image: url("../images/fond.jpg");
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--cm-blue-secondary); text-decoration: none; }
a:hover { text-decoration: none; }
button, input, textarea, select { font: inherit; }

/* ---------- Typographie globale ----------
   Nunito est la police de référence de tout le site. Elle est chargée par
   functions.php. On cible les éléments textuels et les composants du thème
   sans utiliser le sélecteur universel *, afin de ne pas écraser une
   éventuelle police d'icônes fournie par WordPress ou une extension. */
body.cm-site,
body.cm-site h1,
body.cm-site h2,
body.cm-site h3,
body.cm-site h4,
body.cm-site h5,
body.cm-site h6,
body.cm-site p,
body.cm-site a,
body.cm-site li,
body.cm-site label,
body.cm-site button,
body.cm-site input,
body.cm-site textarea,
body.cm-site select,
body.cm-site option,
body.cm-site table,
body.cm-site th,
body.cm-site td,
body.cm-site blockquote,
body.cm-site summary,
.cm-primary-nav,
.cm-menu,
.cm-menu a,
.cm-menu-label,
.cm-menu-toggle,
.cm-main,
.cm-entry,
.cm-entry-title,
.cm-entry-content,
.cm-home-notices,
.cm-home-notice-toggle,
.cm-home-notice-title,
.cm-home-notice-content,
.cm-home-news-shell,
.cm-home-carousel,
.cm-home-blog,
.cm-site-footer {
    font-family: "Nunito", "Segoe UI", Arial, sans-serif;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background: #fff;
    clip: auto !important;
    clip-path: none;
    color: #111;
    display: block;
    height: auto;
    left: 8px;
    padding: 12px 16px;
    top: 8px;
    width: auto;
    z-index: 2147483647;
}

.cm-page-shell { min-height: 100vh; }

/* ---------- Préchargeur ---------- */
.preloader {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483647;
    opacity: 1;
    visibility: visible;
    transition: opacity .55s ease, visibility .55s ease;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader .status { display: flex; align-items: center; justify-content: center; }
.preloader .dtb_custom_preloader_img {
    display: block;
    width: 180px;
    height: auto;
    max-width: 45vw;
    max-height: 45vh;
    object-fit: contain;
}

/* ---------- Header / bannière ---------- */
.cm-site-header { width: 100%; background: transparent; padding-top: 3px; }
.cm-header-inner {
    width: 90%;
    max-width: var(--cm-content-max);
    margin: 0 auto;
}
.cm-banner-link { display: block; width: 100%; line-height: 0; }
.cm-banner {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

/* ---------- Navigation desktop ---------- */
.cm-primary-nav { position: relative; width: 100%; padding-top: 19px; }
.cm-menu-toggle { display: none; }
.cm-main-menu-wrap { width: 100%; }
.cm-menu {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0;
}
.cm-menu > .cm-menu-item,
.cm-menu > .menu-item {
    position: relative;
    flex: 0 1 108px;
    min-width: 90px;
    max-width: 120px;
    margin: 0;
    padding: 0;
    text-align: center;
}
.cm-menu > .cm-menu-item > a,
.cm-menu > .menu-item > a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: var(--cm-menu-height);
    padding: 4px 4px 12px;
    color: #222;
    text-align: center;
    font-size: 13px;
    line-height: 1.15;
    font-weight: 600;
    white-space: normal;
}
.cm-menu > .cm-menu-item > a::before,
.cm-menu > .menu-item > a::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 3px;
    transform: translateX(-50%);
    background: var(--cm-blue);
    transition: width .3s ease;
}
.cm-menu > .cm-menu-item:hover > a::before,
.cm-menu > .cm-menu-item:focus-within > a::before,
.cm-menu > .cm-current > a::before,
.cm-menu > .current-menu-item > a::before,
.cm-menu > .current-menu-ancestor > a::before {
    width: calc(100% - 18px);
}
.cm-menu-icon {
    display: block;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    max-width: 48px;
    max-height: 48px;
    margin: 0 auto;
    object-fit: contain;
    transition: transform .22s ease;
    transform-origin: center center;
}
.cm-menu-icon-empty { width: 48px; height: 48px; }
.cm-menu-label { display: block; width: 100%; margin: 0; padding: 0; }
.cm-submenu-toggle { display: none; }

/* ---------- CM_ICON_HOVER_ZOOM ---------- */
@media (min-width: 981px) {
    .cm-menu > .cm-menu-item > a:hover .cm-menu-icon,
    .cm-menu > .cm-menu-item > a:focus .cm-menu-icon { transform: scale(1.28); }
    .cm-sub-menu .cm-menu-item > a:hover .cm-menu-icon,
    .cm-sub-menu .cm-menu-item > a:focus .cm-menu-icon { transform: scale(1.18); }
}

/* ---------- Sous-menus desktop ---------- */
.cm-sub-menu,
.cm-menu .sub-menu {
    list-style: none;
    position: absolute;
    z-index: 10000;
    top: 100%;
    left: 0;
    width: 280px;
    margin: 0;
    padding: 8px 0;
    background: #fff;
    border-top: 3px solid var(--cm-blue);
    box-shadow: 0 6px 18px rgba(0,0,0,.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.cm-menu-item:hover > .cm-sub-menu,
.cm-menu-item:focus-within > .cm-sub-menu,
.cm-menu .menu-item:hover > .sub-menu,
.cm-menu .menu-item:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.cm-sub-menu .cm-menu-item,
.cm-menu .sub-menu .menu-item {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
}
.cm-sub-menu .cm-menu-item > a,
.cm-menu .sub-menu .menu-item > a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 8px 14px;
    color: #222;
    text-align: left;
    font-size: 13px;
    line-height: 1.25;
    white-space: normal;
}
.cm-sub-menu .cm-menu-item > a:hover,
.cm-sub-menu .cm-menu-item > a:focus,
.cm-menu .sub-menu .menu-item > a:hover,
.cm-menu .sub-menu .menu-item > a:focus { background: rgba(53,133,205,.08); }
.cm-sub-menu .cm-menu-icon {
    display: block;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    max-width: 30px;
    max-height: 30px;
    margin: 0;
    object-fit: contain;
    object-position: center;
}
.cm-sub-menu .cm-menu-label,
.cm-menu .sub-menu .menu-item > a .cm-menu-label {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    text-align: left;
}
.cm-sub-menu .cm-sub-menu,
.cm-menu .sub-menu .sub-menu { top: -3px; left: 100%; }

/* ---------- Contenu ---------- */
.cm-main {
    width: 100%;
    min-height: 220px;
    padding: 24px 0 44px;
    background: transparent;
}
.cm-main-home { padding-top: 15px; }
.cm-home-content { width: 90%; max-width: var(--cm-content-max); margin: 0 auto; }
.cm-content-container { width: 90%; max-width: var(--cm-reading-max); margin: 0 auto; }
.cm-entry {
    background: rgba(255,255,255,.84);
    padding: clamp(20px, 4vw, 42px);
    box-shadow: 0 2px 14px rgba(0,0,0,.06);
}
.cm-entry-title { margin: 0 0 24px; color: #333; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; font-weight: 600; }
.cm-entry-meta { margin-top: -12px; margin-bottom: 24px; color: #666; }
.cm-entry-content > *:first-child { margin-top: 0; }
.cm-entry-content > *:last-child { margin-bottom: 0; }
.cm-entry-content table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.75); }
.cm-entry-content th, .cm-entry-content td { border: 1px solid #e5e5e5; padding: 8px 12px; }

/* Médias importés : empêcher les anciennes dimensions fixes de déborder. */
.cm-entry-content img,
.cm-entry-content video,
.cm-entry-content object,
.cm-entry-content embed {
    max-width: 100%;
}
.cm-entry-content iframe {
    max-width: 100%;
}
.cm-entry-content iframe[src*="youtube.com"],
.cm-entry-content iframe[src*="youtube-nocookie.com"],
.cm-entry-content iframe[src*="youtu.be"],
.cm-entry-content iframe[src*="vimeo.com"] {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border: 0;
}
.cm-entry-content .wp-block-embed,
.cm-entry-content .wp-block-embed__wrapper,
.cm-entry-content .fluid-width-video-wrapper {
    max-width: 100%;
}
.cm-entry-content .wp-block-embed__wrapper iframe,
.cm-entry-content .fluid-width-video-wrapper iframe {
    width: 100% !important;
    max-width: 100% !important;
}
.cm-featured-image { margin-bottom: 24px; }
.cm-list-entry + .cm-list-entry { margin-top: 22px; }
.cm-list-title { margin-top: 0; }

/* ============================================================
   ACCUEIL — INFORMATIONS IMPORTANTES
   Ces classes ne sont utilisées que par front-page.php.
   ============================================================ */
.cm-home-notices {
    width: 90%;
    max-width: var(--cm-reading-max);
    margin: 10px auto 0;
}
.cm-home-notice {
    width: 100%;
    margin: 10px 0;
    color: #fff;
    border: 2px inset #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 18px #fff;
}
.cm-home-notice--red { background: #E02B20; }
.cm-home-notice--orange { background: #E09900; }
.cm-home-notice-heading { margin: 0; }
.cm-home-notice-toggle {
    position: relative;
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    width: 100%;
    min-height: 64px;
    padding: 12px 10px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
}
.cm-home-notice-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-size: 24px;
    line-height: 1;
    font-weight: 400;
    transform: rotate(0deg);
    transform-origin: center;
    transition: transform .18s ease;
}
.cm-home-notice-title { grid-column: 2; text-align: center; }
.cm-home-notice-toggle::after { content: ""; grid-column: 3; width: 38px; height: 1px; }
.cm-home-notice-toggle[aria-expanded="true"] .cm-home-notice-symbol { transform: rotate(90deg); }
.cm-home-notice-content {
    overflow: hidden;
    max-height: 0;
    padding: 0 18px;
    color: #fff;
    font-size: 14px;
    opacity: 0;
}
.cm-home-notice-content.is-animating {
    transition: max-height .35s ease, padding .35s ease, opacity .25s ease;
}
.cm-home-notice-content.is-open {
    padding-top: 4px;
    padding-bottom: 18px;
    opacity: 1;
}
.cm-home-notice-content[hidden] { display: none; }
.cm-home-notice-content > *:first-child { margin-top: 0; }
.cm-home-notice-content > *:last-child { margin-bottom: 0; }
.cm-home-notice-content a { color: #fff; text-decoration: underline; font-weight: 700; }
.cm-home-notice-content table { width: 100%; border-collapse: collapse; }
.cm-home-notice-content td { padding: 8px; vertical-align: top; border: 0; }
.cm-home-notice-content img { max-width: 100%; height: auto; }
.cm-supplies-table td { width: 50%; text-align: center; }

/* ============================================================
   ACCUEIL — CARROUSEL D'ACTUALITÉS
   Géométrie reprise du carrousel restauré : 75 %, 350 px,
   rayon 50 px, rotation 5 secondes.
   ============================================================ */
.cm-home-news-shell {
    width: 90%;
    max-width: var(--cm-reading-max);
    margin: 60px auto;
    padding: 30px 0 28px;
    background: rgba(12,113,195,.50);
    border-radius: 10px;
    overflow: hidden;
}
.cm-home-carousel {
    position: relative;
    width: 75%;
    height: 350px;
    margin: 0 auto;
    border-radius: 50px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 2px 18px rgba(0,0,0,.30);
    color: #fff;
}
.cm-home-carousel-slides,
.cm-home-slide { position: absolute; inset: 0; }
.cm-home-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.cm-home-slide[hidden] { display: none !important; }
.cm-home-slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.38);
}
.cm-home-slide--no-image .cm-home-slide-overlay { background: #000; }
.cm-home-slide-inner {
    position: relative;
    z-index: 2;
    width: 80%;
    margin: 0 auto;
    text-align: center;
}
.cm-home-slide-text {
    padding: 24px 28px;
    border-radius: 3px;
    background: rgba(0,0,0,.62);
    text-shadow: 0 .08em 0 rgba(0,0,0,.4);
}
.cm-home-slide-title {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(23px, 2.25vw, 32px);
    line-height: 1.15;
    font-weight: 800;
}
.cm-home-slide-title a { color: #fff; }
.cm-home-slide-excerpt {
    color: #fff;
    font-size: 16px;
    line-height: 1.45;
    text-shadow: 0 .08em 0 rgba(0,0,0,.4);
}
.cm-home-slide-more {
    display: inline-block;
    margin-top: 18px;
    padding: .3em 1em;
    border: 2px solid #fff;
    border-radius: 60px;
    color: #fff;
    background: transparent;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.7;
    box-shadow: 0 2px 18px rgba(0,0,0,.30);
    text-shadow: 0 .08em 0 rgba(0,0,0,.4);
    transition: transform .2s ease, background-color .2s ease;
}
.cm-home-slide-more:hover,
.cm-home-slide-more:focus { color: #fff; background: rgba(255,255,255,.12); transform: scale(1.04); }
.cm-carousel-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 48px;
    height: 64px;
    margin-top: -32px;
    padding: 0;
    border: 0;
    background: rgba(0,0,0,.20);
    color: #fff;
    cursor: pointer;
    font-size: 52px;
    line-height: 56px;
    opacity: 0;
    transition: opacity .2s ease, background-color .2s ease;
}
.cm-carousel-arrow--prev { left: 0; border-radius: 0 8px 8px 0; }
.cm-carousel-arrow--next { right: 0; border-radius: 8px 0 0 8px; }
.cm-home-carousel:hover .cm-carousel-arrow,
.cm-home-carousel:focus-within .cm-carousel-arrow { opacity: 1; }
.cm-carousel-arrow:hover,
.cm-carousel-arrow:focus { background: rgba(0,0,0,.45); }
.cm-carousel-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 12px;
    display: flex;
    gap: 7px;
    transform: translateX(-50%);
}
.cm-carousel-dot {
    width: 9px;
    height: 9px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 50%;
    background: rgba(255,255,255,.42);
    cursor: pointer;
}
.cm-carousel-dot.is-active { background: #fff; }



/* ============================================================
   ACCUEIL — BLOG ACTUALITÉS
   10 derniers articles de la catégorie Actualités, dans le même
   panneau bleu que le carrousel, comme sur l'accueil restauré.
   ============================================================ */
.cm-home-blog {
    margin-top: 60px;
    padding: 0 60px;
    color: #fff;
}
.cm-home-blog-post {
    margin: 0 0 60px;
    color: #fff;
    word-wrap: break-word;
}
.cm-home-blog-post:last-child { margin-bottom: 0; }
.cm-home-blog-image {
    display: block;
    margin: 0 0 22px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0,0,0,.12);
    line-height: 0;
}
.cm-home-blog-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    transition: transform .25s ease;
}
.cm-home-blog-image:hover img { transform: scale(1.015); }
.cm-home-blog-title {
    margin: 0 0 10px;
    color: #fff;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 700;
    text-shadow: 0 0 .3em #0C71C3;
}
.cm-home-blog-title a,
.cm-home-blog-title a:hover,
.cm-home-blog-title a:focus { color: #fff; }
.cm-home-blog-excerpt {
    color: #fff;
    font-size: 14px;
    line-height: 1.7;
}
.cm-home-blog-more {
    display: inline-block;
    margin-top: 2px;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
}
.cm-home-blog-more:hover,
.cm-home-blog-more:focus { color: #fff; text-decoration: underline; }

/* ---------- Footer historique ---------- */
.cm-site-footer { width: 100%; background: rgba(0,0,0,.32); padding: 15px 0 5px; }
.cm-footer-inner { width: 80%; max-width: 1080px; margin: 0 auto; }
.cm-footer-info { color: #666; padding-bottom: 10px; }
.cm-footer-info a { color: #666; font-weight: 700; transition: opacity .4s ease; }
.cm-footer-info a:hover { opacity: .7; }

/* ---------- Menu natif WordPress provisoire ----------
   Le fallback du thème est celui qui porte les icônes. Un menu natif affecté
   reste fonctionnel et garde la géométrie, même avant l'outil d'icônes v0.2. */
.cm-native-menu .menu-item > a { justify-content: center; }
.cm-native-menu .menu-item > a .cm-menu-icon { display: none; }

/* ---------- Mobile / tablette ---------- */
@media (max-width: 980px) {
    body { background-attachment: scroll; }
    .cm-header-inner { width: 94%; }
    .cm-primary-nav { padding-top: 8px; }
    .cm-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        min-height: 50px;
        padding: 8px 14px;
        border: 0;
        border-top: 3px solid var(--cm-blue);
        background: rgba(255,255,255,.92);
        color: #222;
        cursor: pointer;
        font-weight: 700;
    }
    .cm-menu-toggle-lines { width: 24px; display: grid; gap: 4px; }
    .cm-menu-toggle-lines span { display: block; width: 24px; height: 2px; background: var(--cm-blue); }
    .cm-main-menu-wrap {
        display: none;
        background: rgba(255,255,255,.97);
        box-shadow: 0 8px 18px rgba(0,0,0,.12);
    }
    .cm-main-menu-wrap.is-open { display: block; }
    .cm-menu { display: block; width: 100%; }
    .cm-menu > .cm-menu-item,
    .cm-menu > .menu-item { max-width: none; min-width: 0; width: 100%; text-align: left; border-bottom: 1px solid rgba(0,0,0,.07); }
    .cm-menu > .cm-menu-item > a,
    .cm-menu > .menu-item > a,
    .cm-sub-menu .cm-menu-item > a,
    .cm-menu .sub-menu .menu-item > a {
        height: auto;
        min-height: 52px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        padding: 8px 48px 8px 14px;
        text-align: left;
    }
    .cm-menu > .cm-menu-item > a::before,
    .cm-menu > .menu-item > a::before { display: none; }
    .cm-menu-icon { width: auto; height: auto; max-width: 36px; max-height: 36px; margin: 0; flex: 0 0 36px; }
    .cm-menu-label { width: auto; text-align: left; }
    .cm-submenu-toggle {
        display: block;
        position: absolute;
        z-index: 3;
        top: 6px;
        right: 6px;
        width: 40px;
        height: 40px;
        border: 0;
        border-radius: 4px;
        background: rgba(53,133,205,.08);
        cursor: pointer;
    }
    .cm-submenu-toggle::before,
    .cm-submenu-toggle::after {
        content: "";
        position: absolute;
        top: 19px;
        left: 12px;
        width: 16px;
        height: 2px;
        background: var(--cm-blue);
    }
    .cm-submenu-toggle::after { transform: rotate(90deg); transition: transform .15s ease; }
    .cm-submenu-toggle[aria-expanded="true"]::after { transform: rotate(0); }
    .cm-sub-menu,
    .cm-sub-menu .cm-sub-menu,
    .cm-menu .sub-menu,
    .cm-menu .sub-menu .sub-menu {
        position: static;
        display: none;
        width: 100%;
        margin: 0;
        padding: 0 0 0 18px;
        border-top: 0;
        border-left: 3px solid rgba(53,133,205,.28);
        box-shadow: none;
        background: rgba(53,133,205,.025);
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .cm-menu-item.is-submenu-open > .cm-sub-menu { display: block; }
    .cm-content-container, .cm-home-content { width: 94%; }
    .cm-main { padding-top: 18px; }
    .cm-entry { padding: 20px; }
    .cm-footer-inner { width: 90%; }
}

@media (max-width: 980px) {
    .cm-home-notices, .cm-home-news-shell { width: 94%; }
    .cm-home-carousel { width: 90%; }
    .cm-home-blog { padding-left: 36px; padding-right: 36px; }
}

@media (max-width: 640px) {
    .cm-home-notice-toggle { padding: 10px 6px; font-size: 20px; grid-template-columns: 34px 1fr 34px; }
    .cm-home-notice-content { padding-left: 12px; padding-right: 12px; }
    .cm-supplies-table, .cm-supplies-table tbody, .cm-supplies-table tr, .cm-supplies-table td { display: block; width: 100%; }
    .cm-home-news-shell { margin-top: 38px; padding-top: 18px; }
    .cm-home-carousel { width: 94%; height: 330px; border-radius: 28px; }
    .cm-home-slide-inner { width: 86%; }
    .cm-home-slide-text { padding: 18px 16px; }
    .cm-home-slide-title { font-size: 20px; }
    .cm-home-slide-excerpt { font-size: 13px; line-height: 1.35; }
    .cm-home-slide-more { margin-top: 14px; font-size: 15px; }
    .cm-carousel-arrow { opacity: .75; width: 38px; }
    .cm-home-blog { margin-top: 42px; padding-left: 18px; padding-right: 18px; }
    .cm-home-blog-post { margin-bottom: 42px; }
    .cm-home-blog-image { margin-bottom: 16px; }
    .cm-home-blog-title { font-size: 22px; }
}

@media (max-width: 520px) {
    .cm-header-inner { width: 100%; }
    .cm-site-header { padding-top: 0; }
    .cm-banner { width: 100%; }
    .cm-primary-nav { padding-top: 0; }
    .cm-entry { box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* ============================================================
   CONTENUS RESTAURÉS — RESSOURCES MANQUANTES
   Le diagnostic est fait une seule fois pendant l'import : aucun test HTTP
   n'est déclenché chez les visiteurs.
   ============================================================ */
.cm-entry-content .cm-missing-resource {
    color: #c90000 !important;
    font-weight: 700;
    text-decoration: none !important;
    cursor: default;
    overflow-wrap: anywhere;
}
.cm-entry-content .cm-missing-media-notice {
    margin: 0 0 22px;
    padding: 12px 16px;
    border-left: 4px solid #c90000;
    background: rgba(201, 0, 0, .08);
    color: #8b0000;
    font-weight: 700;
}

/* ============================================================
   CONTENUS RESTAURÉS — ONGLETS (6e / 5e / 4e / 3e, etc.)
   ============================================================ */
.cm-entry-content .cm-tabs {
    margin: 20px 0 28px;
    border: 1px solid rgba(53,133,205,.32);
    background: rgba(255,255,255,.72);
}
.cm-entry-content .cm-tabs-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid var(--cm-blue);
    background: rgba(53,133,205,.08);
}
.cm-entry-content .cm-tab-button {
    appearance: none;
    border: 0;
    border-right: 1px solid rgba(53,133,205,.25);
    padding: 12px 24px;
    background: transparent;
    color: #333;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.cm-entry-content .cm-tab-button:hover,
.cm-entry-content .cm-tab-button:focus-visible {
    background: rgba(53,133,205,.14);
    outline: 2px solid transparent;
}
.cm-entry-content .cm-tab-button[aria-selected="true"] {
    background: var(--cm-blue);
    color: #fff;
}
.cm-entry-content .cm-tab-panel {
    padding: 18px;
    overflow-x: auto;
}
.cm-entry-content .cm-tab-panel[hidden] { display: none !important; }
.cm-entry-content .cm-tab-panel > *:first-child { margin-top: 0; }
.cm-entry-content .cm-tab-panel > *:last-child { margin-bottom: 0; }

@media (max-width: 680px) {
    .cm-entry-content .cm-tabs-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cm-entry-content .cm-tab-button { width: 100%; padding: 10px 12px; }
    .cm-entry-content .cm-tab-panel { padding: 10px; }
}
