/* Archives CCG — styles limités aux templates du thème enfant. */
body.ccg-archive-layout #main .ccg-archive-page {
    background: #f8fafc;
    padding: 0 0 72px;
}
body.ccg-archive-layout #content-wrap.ccg-archive-wrap {
    width: calc(100% - 40px);
    max-width: 1240px;
    padding: 28px 0 0;
    margin: 0 auto;
}
body.ccg-archive-layout #content-wrap.ccg-archive-wrap #primary {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.ccg-archive-layout #content-wrap.ccg-archive-wrap #content {
    width: 100%;
}
.ccg-archive-page *, .ccg-archive-page *::before, .ccg-archive-page *::after {
    box-sizing: border-box;
}
.ccg-archive-page a { text-decoration: none; }
.ccg-archive-page a:focus-visible, .ccg-archive-page summary:focus-visible {
    outline: 3px solid #f4b82b;
    outline-offset: 3px;
}
.ccg-archive-hero {
    width: 100%;
    padding: clamp(28px, 3vw, 44px) 0;
    border-radius: 0;
    background: linear-gradient(115deg, #e9f6fe 0%, #f5fbff 70%, #fff 100%);
    border: 0;
    border-bottom: 1px solid #d8edf9;
    margin: 0;
}
.ccg-archive-hero-inner {
    width: calc(100% - 40px);
    max-width: 1240px;
    margin: 0 auto;
}
.ccg-archive-page .ccg-eyebrow {
    font-size: 12px;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: #007db7;
    font-weight: 800;
    margin: 0 0 10px;
}
.ccg-archive-page .ccg-archive-title {
    font-size: clamp(28px, 3vw, 43px);
    line-height: 1.15;
    color: #153448;
    font-weight: 800;
    letter-spacing: -.025em;
    margin: 0 0 14px;
}
.ccg-archive-page .ccg-intro-short {
    max-width: 800px;
    font-size: 16px;
    line-height: 1.65;
    color: #365267;
    margin: 0;
}
.ccg-archive-description { margin-top: 14px; }
.ccg-archive-description summary {
    cursor: pointer;
    display: inline-block;
    font-weight: 700;
    color: #047bb4;
    font-size: 14px;
    list-style: none;
}
.ccg-archive-description summary::-webkit-details-marker { display: none; }
.ccg-archive-description summary::after { content: ' +'; }
.ccg-archive-description[open] summary::after { content: ' −'; }
.ccg-archive-description-content {
    max-width: 900px;
    padding-top: 16px;
    color: #365267;
    line-height: 1.65;
}
.ccg-archive-description-content p { margin: 0 0 12px; }
.ccg-archive-filter {
    background: #fff;
    border: 1px solid #e0e9ef;
    border-radius: 16px;
    padding: 22px 26px 25px;
    margin: 0 0 30px;
}
.ccg-filter-heading { margin-bottom: 18px; }
.ccg-archive-page .ccg-filter-heading h2 {
    color: #17364a;
    font-size: 21px;
    line-height: 1.3;
    margin: 0 0 4px;
    font-weight: 800;
}
.ccg-filter-heading p {
    font-size: 14px;
    margin: 0;
    color: #657b8c;
}
.ccg-filter-links { display: flex; gap: 10px; flex-wrap: wrap; }
.ccg-archive-page .ccg-filter-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 43px;
    border: 1px solid #cfdde7;
    color: #24475a;
    background: #f9fcfe;
    padding: 9px 17px;
    border-radius: 11px;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
    transition: border-color .15s, background-color .15s, transform .15s;
}
.ccg-archive-page .ccg-filter-link:hover {
    color: #007ab8;
    border-color: #0b91ce;
    background: #eef9ff;
    transform: translateY(-1px);
}
.ccg-archive-page .ccg-filter-link.is-active,
.ccg-archive-page .ccg-filter-link.is-active:hover {
    background: #098fd0;
    color: #fff;
    border-color: #098fd0;
    transform: none;
}
.ccg-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 18px;
}
.ccg-archive-page .ccg-results-bar h2 {
    margin: 0;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.3;
    color: #17364a;
}
.ccg-results-number { color: #6b7e8c; font-size: 14px; }
.ccg-course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.ccg-archive-page article.ccg-course-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e8ed;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(22, 52, 74, .035);
    margin: 0;
    padding: 0;
    transition: transform .2s, box-shadow .2s;
}
.ccg-archive-page article.ccg-course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(22, 52, 74, .1);
}
.ccg-archive-page .ccg-course-image {
    display: block;
    aspect-ratio: 640 / 427;
    overflow: hidden;
    background: #e4f4f5;
}
.ccg-archive-page .ccg-course-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s;
    border-radius: 0;
}
.ccg-archive-page .ccg-course-card:hover .ccg-course-image img { transform: scale(1.025); }
.ccg-course-no-image {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 54px;
}
.ccg-course-body { display: flex; flex: 1; flex-direction: column; padding: 18px 19px 20px; }
.ccg-course-badge {
    align-self: flex-start;
    display: inline-block;
    border-radius: 999px;
    background: #eaf6fc;
    color: #0078b4;
    padding: 4px 11px;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 800;
    margin-bottom: 11px;
}
.ccg-archive-page .ccg-course-title {
    color: #183649;
    font-size: 19px;
    line-height: 1.36;
    font-weight: 800;
    margin: 0 0 10px;
}
.ccg-archive-page .ccg-course-title a { color: inherit; }
.ccg-archive-page .ccg-course-title a:hover { color: #0079b7; }
.ccg-archive-page .ccg-course-excerpt {
    color: #5f7280;
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ccg-archive-page .ccg-course-action {
    margin-top: auto;
    align-self: flex-start;
    color: #007eb8;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 800;
}
.ccg-archive-page .ccg-course-action:hover { color: #005789; }
.ccg-course-action span { padding-left: 4px; }
.ccg-empty-results {
    background: #fff;
    padding: 30px;
    border-radius: 13px;
    border: 1px solid #e0e8ed;
}
.ccg-empty-results p { margin: 0 0 10px; }
.ccg-archive-page .ccg-empty-results a { color: #007eb8; font-weight: 700; }
.ccg-pagination { margin: 35px 0 0; }
.ccg-pagination .page-numbers {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ccg-pagination .page-numbers li { margin: 0; padding: 0; list-style: none; }
.ccg-archive-page .ccg-pagination .page-numbers a,
.ccg-archive-page .ccg-pagination .page-numbers span {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 42px;
    min-height: 42px;
    padding: 7px 12px;
    background: #fff;
    color: #24475a;
    border: 1px solid #d8e5ec;
    border-radius: 9px;
    font-size: 14px;
}
.ccg-archive-page .ccg-pagination .page-numbers .current {
    background: #098fd0;
    color: #fff;
    border-color: #098fd0;
}
@media (max-width: 980px) {
    .ccg-course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 620px) {
    body.ccg-archive-layout #main .ccg-archive-page { padding: 0 0 45px; }
    body.ccg-archive-layout #content-wrap.ccg-archive-wrap { width: calc(100% - 26px); padding-top: 18px; }
    .ccg-archive-hero { padding: 26px 0 30px; }
    .ccg-archive-hero-inner { width: calc(100% - 26px); }
    .ccg-archive-filter { padding: 20px 16px; margin-bottom: 24px; }
    .ccg-filter-links { gap: 7px; }
    .ccg-archive-page .ccg-filter-link { padding: 8px 12px; min-height: 40px; }
    .ccg-course-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .ccg-archive-page .ccg-results-bar h2 { font-size: 22px; }
    .ccg-course-body { padding: 16px 17px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .ccg-archive-page .ccg-filter-link,
    .ccg-archive-page article.ccg-course-card,
    .ccg-archive-page .ccg-course-image img { transition: none; }
}
