/* themes/bootswatch_cerulean/css/style.css — bespoke polish on top of the
   Bootswatch Cerulean skin. Concept: classic sky-blue corporate, calm and
   dependable. The skin supplies palette/typo via --bs-* vars; this file adds
   a soft cerulean hero, section rhythm, confident headings, and hover cards. */

/* ---- Section rhythm ------------------------------------------------------ */
.bsw-section,
main > section {
    padding: clamp(3rem, 7vw, 5.5rem) 0;
    scroll-margin-top: 5rem;
}
main > section:nth-of-type(even) {
    background: rgba(var(--bs-primary-rgb), 0.035);
}

/* ---- Hero — image-split: text left, gradient "photo" panel right --------- */
.bsw-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3.5rem, 8vw, 6rem);
    background:
        radial-gradient(ellipse 70% 70% at 100% 0%, rgba(var(--bs-primary-rgb), 0.16), transparent 65%),
        linear-gradient(180deg, rgba(var(--bs-primary-rgb), 0.06) 0%, var(--bs-body-bg) 70%);
}
.bsw-hero .container { position: relative; z-index: 1; }

/* faint sky glow drifting toward the visual side */
.bsw-hero__glow {
    position: absolute;
    top: -25%;
    right: -10%;
    width: min(46rem, 95vw);
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(var(--bs-primary-rgb), 0.14), transparent 62%);
    pointer-events: none;
    z-index: 0;
}

.bsw-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: clamp(0.72rem, 1.6vw, 0.82rem);
    font-weight: 600;
    color: var(--bs-primary);
    margin-bottom: 1rem;
}

.bsw-hero__title {
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.01em;
    font-size: clamp(2.2rem, 5.5vw, 3.4rem);
    color: var(--bs-body-color);
}

.bsw-hero__lead {
    font-size: clamp(1.05rem, 2.4vw, 1.3rem);
    line-height: 1.6;
    color: var(--bs-secondary-color);
    max-width: 46ch;
}

.bsw-hero__actions { margin-top: 0.5rem; }
.bsw-hero__actions .btn {
    border-radius: 50rem;
    font-weight: 600;
    box-shadow: 0 0.5rem 1.25rem rgba(var(--bs-primary-rgb), 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.bsw-hero__actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.75rem 1.75rem rgba(var(--bs-primary-rgb), 0.28);
}
.bsw-hero__actions .btn-outline-primary {
    box-shadow: none;
    background: var(--bs-body-bg);
}

/* Right-hand visual ------------------------------------------------------- */
.bsw-hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
}

/* the rounded "photo" panel: soft sky-blue gradient scene */
.bsw-hero__panel {
    position: relative;
    width: 100%;
    max-width: 30rem;
    aspect-ratio: 4 / 3;
    border-radius: 1.5rem;
    background:
        radial-gradient(ellipse 80% 70% at 25% 20%, rgba(255, 255, 255, 0.55), transparent 60%),
        linear-gradient(150deg,
            rgba(var(--bs-primary-rgb), 0.85) 0%,
            rgba(var(--bs-primary-rgb), 0.45) 55%,
            rgba(var(--bs-primary-rgb), 0.25) 100%);
    box-shadow:
        0 1.5rem 3.5rem rgba(var(--bs-primary-rgb), 0.28),
        inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}
.bsw-hero__panel-icon {
    font-size: clamp(3rem, 8vw, 5rem);
    color: rgba(255, 255, 255, 0.85);
    filter: drop-shadow(0 0.25rem 0.75rem rgba(13, 33, 49, 0.25));
}

/* floating stat/feature chips overlapping the panel corners */
.bsw-hero__chip {
    position: absolute;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    padding: 0.7rem 1rem;
    border-radius: 0.9rem;
    background: var(--bs-body-bg);
    box-shadow: 0 0.75rem 1.75rem rgba(13, 33, 49, 0.16);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.12);
}
.bsw-hero__chip strong {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--bs-primary);
}
.bsw-hero__chip span {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bs-secondary-color);
}
.bsw-hero__chip--tl { top: -1.1rem; left: -0.6rem; }
.bsw-hero__chip--br { bottom: -1.1rem; right: -0.6rem; }

/* Stacks below lg: visual drops under the text, chips pull inward */
@media (max-width: 991.98px) {
    .bsw-hero__lead { max-width: 100%; }
    .bsw-hero__panel { max-width: 26rem; }
    .bsw-hero__chip--tl { left: 0; }
    .bsw-hero__chip--br { right: 0; }
}

/* ---- Section titles ------------------------------------------------------ */
.section-title,
.bsw-section > .container > .row > [class*="col"] {
    margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.section-title h2,
.bsw-section h2 {
    font-weight: 700;
    letter-spacing: -0.01em;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
}
.section-title p {
    color: var(--bs-secondary-color);
    font-size: clamp(1rem, 2.2vw, 1.1rem);
}

/* ---- Cards --------------------------------------------------------------- */
.card {
    border: 1px solid rgba(var(--bs-primary-rgb), 0.12);
    border-radius: 0.85rem;
    background: var(--bs-body-bg);
    box-shadow: 0 0.25rem 0.85rem rgba(13, 33, 49, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--bs-primary-rgb), 0.4);
    box-shadow: 0 1rem 2rem rgba(var(--bs-primary-rgb), 0.16);
}
.card .card-title a {
    color: var(--bs-body-color);
    transition: color 0.18s ease;
}
.card:hover .card-title a { color: var(--bs-primary); }

/* ---- Footer -------------------------------------------------------------- */
.bsw-footer a { text-decoration: none; }
.bsw-footer a:hover { color: var(--bs-primary) !important; }

/* ---- Motion safety ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .card,
    .bsw-hero__actions .btn {
        transition: none;
    }
    .card:hover,
    .bsw-hero__actions .btn:hover {
        transform: none;
    }
}

/* ---- Small screens ------------------------------------------------------- */
@media (max-width: 575.98px) {
    .bsw-hero__actions .btn { width: 100%; }
}

/* ========================================================================== */
/* Phase 3 — bespoke section overrides (calm cerulean corporate)              */
/* ========================================================================== */

/* Shared helpers ---------------------------------------------------------- */
.cer-muted { color: var(--bs-secondary-color); }

.cer-pill {
    border-radius: 50rem;
    font-weight: 600;
    padding-inline: 1.5rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cer-pill:hover { transform: translateY(-2px); }
.btn-primary.cer-pill { box-shadow: 0 0.5rem 1.25rem rgba(var(--bs-primary-rgb), 0.22); }
.btn-primary.cer-pill:hover { box-shadow: 0 0.75rem 1.75rem rgba(var(--bs-primary-rgb), 0.3); }

/* inline arrow link with soft underline-on-hover */
.cer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--bs-primary);
}
.cer-link i { transition: transform 0.18s ease; }
.cer-link:hover { color: var(--bs-primary); }
.cer-link:hover i { transform: translateX(3px); }

.cer-badge {
    background: rgba(var(--bs-primary-rgb), 0.12);
    color: var(--bs-primary);
    font-weight: 600;
    border-radius: 50rem;
    padding: 0.35em 0.8em;
}

/* Projects ---------------------------------------------------------------- */
.cer-project-card {
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
}
.cer-project-card__media {
    overflow: hidden;
    aspect-ratio: 16 / 10;
}
.cer-project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.cer-project-card:hover .cer-project-card__media img { transform: scale(1.05); }
.cer-project-card__cat { color: var(--bs-primary); }

/* Team -------------------------------------------------------------------- */
.cer-team-card {
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
}
.cer-team-card__media {
    aspect-ratio: 1;
    overflow: hidden;
    background: rgba(var(--bs-primary-rgb), 0.06);
}
.cer-team-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.cer-team-card:hover .cer-team-card__media img { transform: scale(1.05); }
.cer-team-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary);
    font-size: 3.5rem;
}
.cer-team-card__role { color: var(--bs-primary); font-weight: 600; }
.cer-team-card__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-inline: 0.1rem;
    border-radius: 50rem;
    color: var(--bs-secondary-color);
    background: rgba(var(--bs-primary-rgb), 0.08);
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease;
}
.cer-team-card__social a:hover {
    color: #fff;
    background: var(--bs-primary);
}

/* Testimonials ------------------------------------------------------------ */
.cer-quote {
    position: relative;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
}
.cer-quote__mark {
    display: block;
    font-size: 2.75rem;
    line-height: 1;
    color: rgba(var(--bs-primary-rgb), 0.4);
    margin-bottom: 0.5rem;
}
.cer-quote__text {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--bs-body-color);
}
.cer-quote__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50rem;
    object-fit: cover;
    flex: 0 0 auto;
}
.cer-quote__avatar--ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--bs-primary-rgb), 0.12);
    color: var(--bs-primary);
    font-size: 1.5rem;
}
.cer-quote__name { color: var(--bs-body-color); }

/* FAQ --------------------------------------------------------------------- */
.cer-accordion__item {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.85rem;
    overflow: hidden;
    background: var(--bs-body-bg);
    box-shadow: 0 0.25rem 0.85rem rgba(13, 33, 49, 0.05);
}
.cer-accordion .accordion-button {
    font-weight: 600;
    border-radius: 0.85rem;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
}
.cer-accordion .accordion-button:not(.collapsed) {
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.06);
    box-shadow: none;
}
.cer-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* About ------------------------------------------------------------------- */
.cer-about__media {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.12);
    box-shadow: 0 0.75rem 2rem rgba(var(--bs-primary-rgb), 0.12);
}
.cer-about__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cer-about__title {
    font-weight: 700;
    letter-spacing: -0.01em;
}
.cer-about__facts {
    display: grid;
    gap: 0.65rem;
}
.cer-about__facts li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}
.cer-about__facts i {
    flex: 0 0 auto;
    margin-top: 0.15rem;
    width: 1.9rem;
    height: 1.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50rem;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.1);
}
.cer-about__facts a { color: var(--bs-primary); text-decoration: none; }
.cer-about__facts a:hover { text-decoration: underline; }

/* Skills ------------------------------------------------------------------ */
.cer-skill {
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.85rem;
    background: var(--bs-body-bg);
    box-shadow: 0 0.25rem 0.85rem rgba(13, 33, 49, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.cer-skill:hover {
    border-color: rgba(var(--bs-primary-rgb), 0.4);
    box-shadow: 0 0.75rem 1.5rem rgba(var(--bs-primary-rgb), 0.14);
    transform: translateY(-3px);
}
.cer-skill__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.cer-skill__icon {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    font-size: 1.2rem;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.1);
}
.cer-skill__name { font-weight: 600; flex: 1 1 auto; }
.cer-skill__pct { color: var(--bs-secondary-color); font-weight: 600; }
.cer-skill__bar { height: 7px; border-radius: 50rem; background: rgba(var(--bs-primary-rgb), 0.12); }
.cer-skill__bar .progress-bar {
    border-radius: 50rem;
    background: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 0.7), var(--bs-primary));
}

/* Stats ------------------------------------------------------------------- */
.cer-stat {
    padding: 1.5rem 1rem;
    border-radius: 0.85rem;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 0.25rem 0.85rem rgba(13, 33, 49, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cer-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.75rem 1.5rem rgba(var(--bs-primary-rgb), 0.14);
}
.cer-stat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 0.75rem;
    border-radius: 50rem;
    font-size: 1.5rem;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.1);
}
.cer-stat__value {
    font-size: clamp(1.9rem, 5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--bs-primary);
}
.cer-stat__unit { font-size: 0.55em; font-weight: 700; margin-left: 0.1em; }
.cer-stat__label { color: var(--bs-secondary-color); margin-top: 0.35rem; }

/* Resume / timeline ------------------------------------------------------- */
.cer-resume__head {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}
.cer-resume__head i { color: var(--bs-primary); }
.cer-timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.5rem;
    border-left: 2px solid rgba(var(--bs-primary-rgb), 0.2);
}
.cer-timeline__item {
    position: relative;
    padding-bottom: 1.5rem;
}
.cer-timeline__item:last-child { padding-bottom: 0; }
.cer-timeline__item::before {
    content: "";
    position: absolute;
    left: calc(-1.5rem - 6px);
    top: 0.3rem;
    width: 11px;
    height: 11px;
    border-radius: 50rem;
    background: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.18);
}
.cer-timeline__title { font-weight: 600; }
.cer-timeline__meta { color: var(--bs-secondary-color); font-size: 0.875rem; }

/* Services ---------------------------------------------------------------- */
.cer-service-card { position: relative; border: 1px solid var(--bs-border-color); }
.cer-service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    font-size: 1.5rem;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.1);
    transition: color 0.2s ease, background-color 0.2s ease;
}
.cer-service-card:hover .cer-service-card__icon {
    color: #fff;
    background: var(--bs-primary);
}

/* ========================================================================== */
/* Phase 5 — list sections (publications / events / resources / blog)         */
/* ========================================================================== */

/* Publications — academic citation list -------------------------------------- */
.cer-pub-list { border-top: 1px solid var(--bs-border-color); }
.cer-pub-item {
    padding: 1.1rem 1rem;
    border-bottom: 1px solid var(--bs-border-color);
    border-radius: 0.65rem;
    transition: background-color 0.18s ease;
}
.cer-pub-item:hover { background: rgba(var(--bs-primary-rgb), 0.045); }
.cer-pub-item__title a {
    color: var(--bs-body-color);
    transition: color 0.18s ease;
}
.cer-pub-item:hover .cer-pub-item__title a { color: var(--bs-primary); }
.cer-pub-item__meta { color: var(--bs-secondary-color); }
.cer-pub-item__cat { color: var(--bs-primary); font-weight: 600; }

/* Events — media card with date ---------------------------------------------- */
.cer-event-card {
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
}
.cer-event-card__media {
    overflow: hidden;
    aspect-ratio: 16 / 9;
}
.cer-event-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.cer-event-card:hover .cer-event-card__media img { transform: scale(1.05); }
.cer-event-card__date {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.1);
    border-radius: 50rem;
    padding: 0.25em 0.7em;
}

/* Resources — download cards ------------------------------------------------- */
.cer-resource-card { border: 1px solid var(--bs-border-color); }
.cer-resource-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    font-size: 1.4rem;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.1);
    transition: color 0.2s ease, background-color 0.2s ease;
}
.cer-resource-card:hover .cer-resource-card__icon {
    color: #fff;
    background: var(--bs-primary);
}

/* Blog — article cards ------------------------------------------------------- */
.cer-blog-card {
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
}
.cer-blog-card__media {
    overflow: hidden;
    aspect-ratio: 16 / 9;
}
.cer-blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.cer-blog-card:hover .cer-blog-card__media img { transform: scale(1.05); }
.cer-blog-card__cat { color: var(--bs-primary); }

/* Motion safety ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .cer-pill,
    .cer-link i,
    .cer-project-card__media img,
    .cer-team-card__media img,
    .cer-team-card__social a,
    .cer-skill,
    .cer-stat,
    .cer-service-card__icon,
    .cer-event-card__media img,
    .cer-resource-card__icon,
    .cer-blog-card__media img {
        transition: none;
    }
    .cer-pill:hover,
    .cer-link:hover i,
    .cer-project-card:hover .cer-project-card__media img,
    .cer-team-card:hover .cer-team-card__media img,
    .cer-skill:hover,
    .cer-stat:hover,
    .cer-event-card:hover .cer-event-card__media img,
    .cer-blog-card:hover .cer-blog-card__media img {
        transform: none;
    }
}

/* ========================================================================== */
/* Phase 6 — bespoke page templates (blog + project list/detail)              */
/* ========================================================================== */

/* Section headings inside article/detail bodies --------------------------- */
.cer-section-head {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--bs-body-color);
}

/* Jobs — vacancy cards (Phase 6 pages) ------------------------------------ */
.cer-job-card { border: 1px solid var(--bs-border-color); }
.cer-job-card__meta {
    margin-top: 0.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--bs-border-color);
}
/* urgent variant of the soft sky-blue badge: warm accent for deadlines */
.cer-badge--urgent {
    background: rgba(var(--bs-danger-rgb), 0.12);
    color: var(--bs-danger);
}

/* Breadcrumb — calm pill-ish trail ---------------------------------------- */
.cer-breadcrumb .breadcrumb {
    margin-bottom: 0;
    padding: 0.5rem 0.9rem;
    background: rgba(var(--bs-primary-rgb), 0.05);
    border: 1px solid var(--bs-border-color);
    border-radius: 50rem;
    font-size: 0.875rem;
}
.cer-breadcrumb .breadcrumb-item a {
    color: var(--bs-primary);
    text-decoration: none;
}
.cer-breadcrumb .breadcrumb-item a:hover { text-decoration: underline; }
.cer-breadcrumb .breadcrumb-item.active { color: var(--bs-secondary-color); }

/* Pagination — soft sky-blue pills ---------------------------------------- */
.cer-pagination { gap: 0.35rem; }
.cer-pagination .page-link {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.6rem;
    color: var(--bs-primary);
    background: var(--bs-body-bg);
    font-weight: 600;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.cer-pagination .page-link:hover {
    background: rgba(var(--bs-primary-rgb), 0.1);
    border-color: rgba(var(--bs-primary-rgb), 0.4);
    color: var(--bs-primary);
}
.cer-pagination .page-item.active .page-link {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
    box-shadow: 0 0.4rem 1rem rgba(var(--bs-primary-rgb), 0.22);
}
.cer-pagination .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Article (blog/project detail) ------------------------------------------- */
.cer-article__title {
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.12;
    color: var(--bs-body-color);
}
.cer-article__hero {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 0.75rem 2rem rgba(var(--bs-primary-rgb), 0.14);
}
.cer-article__lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--bs-secondary-color);
}
.cer-article__body { line-height: 1.75; }
.cer-article__body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.85rem;
}
.cer-article__body a { color: var(--bs-primary); }
.cer-article__body blockquote {
    margin: 1.5rem 0;
    padding: 0.5rem 1.25rem;
    border-left: 3px solid var(--bs-primary);
    color: var(--bs-secondary-color);
    background: rgba(var(--bs-primary-rgb), 0.04);
    border-radius: 0 0.5rem 0.5rem 0;
}

/* Sidebar info cards ------------------------------------------------------- */
.cer-aside-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.85rem;
    background: var(--bs-body-bg);
    box-shadow: 0 0.25rem 0.85rem rgba(13, 33, 49, 0.05);
}
.cer-aside-card:hover { transform: none; }
.cer-aside-card__title {
    font-weight: 700;
    color: var(--bs-body-color);
}
.cer-aside-card .list-unstyled li { color: var(--bs-body-color); }

/* Gallery figures --------------------------------------------------------- */
.cer-figure { margin: 0; }
.cer-figure .figure-img {
    width: 100%;
    border-radius: 0.85rem;
    box-shadow: 0 0.25rem 0.85rem rgba(13, 33, 49, 0.08);
    margin-bottom: 0.5rem;
}


/* =========================================
   AUDIT CONTRASTE — WCAG AA (texte 4.5)
   Accent cérulean #2fa4e7 (2.77 sur blanc) + muté trop clairs pour du texte.
   Jour : accent -> #1476ae ; muté lisible ; boutons (var + color/border direct
   figés par le skin) + fonds pleins accent. Nuit : texte sombre sur accent clair.
   ========================================= */
:root:not([data-bs-theme="dark"]) {
    --bs-primary: #1476ae;
    --bs-primary-rgb: 20, 118, 174;
    --bs-heading-color: #1476ae;  /* le skin met les titres à l'accent */
    --bs-secondary-color: #5c636a;
    --bs-secondary-color-rgb: 92, 99, 106;
}
:root:not([data-bs-theme="dark"]) .btn-outline-primary {
    --bs-btn-color: #1476ae; --bs-btn-border-color: #1476ae;
    --bs-btn-hover-bg: #1476ae; --bs-btn-hover-border-color: #1476ae;
    color: #1476ae !important; border-color: #1476ae !important;
}
:root:not([data-bs-theme="dark"]) .btn-outline-primary:hover { color: #fff !important; }
:root:not([data-bs-theme="dark"]) .btn-primary {
    --bs-btn-bg: #1476ae; --bs-btn-border-color: #1476ae;
    --bs-btn-hover-bg: #10608f; --bs-btn-hover-border-color: #10608f;
}
:root:not([data-bs-theme="dark"]) .btn-primary,
:root:not([data-bs-theme="dark"]) .bg-primary,
:root:not([data-bs-theme="dark"]) .text-bg-primary { color: #fff !important; }
/* Nuit : fonds pleins accent (bleu clair) -> texte sombre ; badge danger éclairci. */
[data-bs-theme="dark"] .btn-primary,
[data-bs-theme="dark"] .badge.bg-primary,
[data-bs-theme="dark"] .bg-primary,
[data-bs-theme="dark"] .page-link.active { color: #06222f !important; }
[data-bs-theme="dark"] .cer-badge, [data-bs-theme="dark"] .badge.bg-danger { color: #fff !important; background-color: #d6453c !important; }
