:root {
    --qaq-ink: #111111;
    --qaq-bg: #f6f1ea;
    --qaq-paper: #ffffff;
    --qaq-muted: rgba(17, 17, 17, .66);
    --qaq-border: rgba(17, 17, 17, .10);
    --qaq-soft: rgba(17, 17, 17, .05);
    --qaq-soft-2: rgba(17, 17, 17, .035);
    --qaq-shadow: 0 10px 30px rgba(17, 17, 17, .06);
    --qaq-radius: 18px;
}

html,
body {
    height: 100%;
}

body {
    color: var(--qaq-ink);
    background: linear-gradient(180deg, #f3eee8 0%, #fbf8f4 180px, #ffffff 520px);
    font-feature-settings: "ss01" on, "cv01" on;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container-xl,
.container-xxl {
    max-width: 1280px;
}

.rounded-4 {
    border-radius: var(--qaq-radius) !important;
}

.qaq-site-main {
    min-height: calc(100vh - 160px);
}

.qaq-header {
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(17, 17, 17, .08);
}

.qaq-brand {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.qaq-brand-mark {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--qaq-ink);
    display: inline-block;
}

.qaq-header .nav-link {
    color: rgba(17, 17, 17, .72);
    font-weight: 700;
    border-radius: 999px;
    padding: .55rem .9rem !important;
}

.qaq-header .nav-link:hover,
.qaq-header .nav-link:focus,
.qaq-header .nav-link.active {
    color: var(--qaq-ink);
    background: rgba(17, 17, 17, .05);
}

.qaq-header .btn-dark,
.qaq-fab-report,
.btn-dark {
    background: #111 !important;
    border-color: #111 !important;
}

.qaq-footer {
    border-top: 1px solid var(--qaq-border);
    padding: 1.15rem 0 1.5rem;
    background: transparent;
    color: var(--qaq-muted);
}

.qaq-fab-report {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1040;
}

.qaq-home-map-band {
    margin-top: -1px;
}

.qaq-home-map-shell {
    min-height: 68vh;
    background: #151515;
    border-radius: 0 !important;
}

.qaq-home-map,
.qaq-home-map-shell,
.qaq-home-map-shell > .leaflet-container,
.qaq-home-map-shell .leaflet-pane,
.qaq-home-map-shell .leaflet-tile-pane,
.qaq-home-map-shell .leaflet-map-pane,
.qaq-home-map-shell .leaflet-control-container {
    border-radius: 0 !important;
}

.qaq-home-map {
    height: min(72vh, 760px);
    width: 100%;
}

.qaq-home-map-band,
.qaq-home-map-band .container-fluid,
.qaq-home-map-band .row,
.qaq-home-map-shell .leaflet-container {
    border-radius: 0 !important;
}

.qaq-home-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: end;
    padding-top: 2rem;
    padding-bottom: 2rem;
    pointer-events: none;
}

.qaq-home-overlay>* {
    pointer-events: auto;
}

.qaq-surface-dark {
    background: rgba(17, 17, 17, .72);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: var(--qaq-shadow);
}

.qaq-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.qaq-stat-card {
    background: rgba(255, 255, 255, .93);
    border-radius: var(--qaq-radius);
    padding: 1.15rem 1.2rem;
    border: 1px solid rgba(17, 17, 17, .08);
    box-shadow: var(--qaq-shadow);
}

.qaq-stat-card span {
    display: block;
    font-size: clamp(1.4rem, 2vw, 2rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.04em;
}

.qaq-stat-card small {
    display: block;
    margin-top: .35rem;
    color: var(--qaq-muted);
    font-size: .9rem;
    font-weight: 600;
}

.qaq-panel,
.bg-light.border.rounded-4,
section.border.rounded-4.overflow-hidden.bg-light,
.card.rounded-4,
.card.rounded-4.shadow-sm,
.border.rounded-4.bg-light,
.bg-light.rounded-4.border {
    background: var(--qaq-paper) !important;
    border: 1px solid var(--qaq-border) !important;
    border-radius: var(--qaq-radius) !important;
    box-shadow: var(--qaq-shadow);
}

.qaq-panel {
    padding: 1.1rem 1.1rem 1rem;
}

.qaq-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .9rem;
}

.qaq-section-head h2,
.qaq-section-head .h4,
.qaq-section-head .h5 {
    letter-spacing: -.03em;
}

.qaq-empty {
    font-size: .95rem;
    color: var(--qaq-muted);
    padding: .35rem 0 .15rem;
}

.qaq-feed-list {
    border-radius: 16px;
    overflow: hidden;
}

.qaq-feed-item {
    border: 0 !important;
    border-bottom: 1px solid rgba(17, 17, 17, .08) !important;
    padding: .9rem .1rem .9rem .95rem !important;
    background: transparent;
    position: relative;
}

.qaq-feed-item:last-child {
    border-bottom: 0 !important;
}

.qaq-feed-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: .95rem;
    bottom: .95rem;
    width: 3px;
    border-radius: 999px;
    background: rgba(17, 17, 17, .16);
}

.qaq-feed-item:hover {
    background: rgba(17, 17, 17, .026);
}

.qaq-feed-item__title {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: .25rem;
}

.qaq-feed-item__meta,
.qaq-feed-item__tag,
.text-secondary,
.text-muted,
.qaq-meta {
    color: var(--qaq-muted) !important;
}

.qaq-feed-item__meta,
.qaq-feed-item__tag {
    font-size: .875rem;
}

.qaq-feed-item__tag {
    margin-top: .15rem;
}

.qaq-people-list {
    display: grid;
    gap: .75rem;
}

.qaq-person-row {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .3rem;
    border-radius: 16px;
}

.qaq-person-row:hover {
    background: rgba(17, 17, 17, .035);
}

.qaq-person-row__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.qaq-person-row__body strong,
.qaq-profile-tile__title {
    line-height: 1.2;
    letter-spacing: -.02em;
}

.qaq-person-row__body small {
    color: var(--qaq-muted);
    margin-top: .15rem;
}

.qaq-avatar {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
    background: #e7e1d8;
    border: 1px solid rgba(17, 17, 17, .08);
}

.qaq-avatar-lg {
    width: 72px;
    height: 72px;
}

.qaq-avatar--placeholder {
    display: inline-block;
}

.qaq-profile-tile {
    display: flex;
    height: 100%;
    min-height: 132px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: .65rem;
    padding: 1rem .75rem;
    border-radius: 16px;
    border: 1px solid rgba(17, 17, 17, .08);
    background: linear-gradient(180deg, rgba(17, 17, 17, .02), rgba(17, 17, 17, .01));
}

.qaq-profile-tile:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(17, 17, 17, .06);
}

/* Common pages */
.qaq-hero,
.qaq-section {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: .75rem;
}

.qaq-hero {
    padding-top: 2rem;
    padding-bottom: .75rem;
}

.qaq-title,
.display-6,
.display-5,
.h2,
.h3,
.h4,
.h5,
h1,
h2,
h3 {
    letter-spacing: -.04em;
}

.qaq-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: .98;
    font-weight: 800;
}

.qaq-lead {
    max-width: 64ch;
    font-size: 1rem;
    color: var(--qaq-muted);
}

.qaq-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.2rem;
}

.qaq-section {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.qaq-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--qaq-border);
    border-radius: var(--qaq-radius);
    background: var(--qaq-paper);
    box-shadow: var(--qaq-shadow);
}

.qaq-item {
    padding: 1rem 1rem;
    border-bottom: 1px solid var(--qaq-border);
}

.qaq-item:last-child {
    border-bottom: 0;
}

.qaq-item>a:first-child,
.qaq-linkline {
    font-weight: 700;
}

.pagination,
.page-numbers {
    gap: .35rem;
}

.page-numbers {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.page-numbers li a,
.page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 .85rem;
    border: 1px solid var(--qaq-border);
    border-radius: 999px;
    background: var(--qaq-paper);
}

.form-control,
.form-select {
    min-height: 48px;
    border-radius: 14px;
    border-color: rgba(17, 17, 17, .14);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(17, 17, 17, .32);
    box-shadow: 0 0 0 .2rem rgba(17, 17, 17, .08);
}

textarea.form-control {
    min-height: 140px;
}

.leaflet-container {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border-radius: var(--qaq-radius);
}

#avecq-sentinelle-map {
    width: 100%;
    min-height: 460px;
}

#avecqWatchdogMap,
#avecq-watchdog-single-map,
#avecqPatrimonySingleMap {
    width: 100%;
    min-height: 380px;
}

@media (max-width: 991.98px) {
    .qaq-home-overlay {
        position: absolute;
        align-items: end;
        padding-bottom: 1rem;
    }

    .qaq-home-map {
        height: 78vh;
    }

    .qaq-panel {
        padding: 1rem;
    }
}

@media (max-width: 767.98px) {
    .qaq-home-map {
        height: 74vh;
    }

    .qaq-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: .75rem;
    }

    .qaq-stat-card {
        padding: .95rem 1rem;
    }

    .qaq-fab-report {
        right: 14px;
        bottom: 14px;
    }
}


/* Front-page composition redesign */
.qaq-home-glass-label {
    position: absolute;
    top: clamp(18px, 3vw, 34px);
    left: clamp(18px, 4vw, 40px);
    z-index: 400;
    padding: .9rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(17, 17, 17, .08);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px rgba(17, 17, 17, .12);
}

.qaq-home-glass-label__kicker {
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, .54);
}

.qaq-home-glass-label__text {
    margin-top: .2rem;
    font-size: .98rem;
    font-weight: 700;
    color: #111111;
}

.qaq-home-map-dock {
    position: absolute;
    right: clamp(18px, 4vw, 40px);
    bottom: clamp(18px, 3vw, 34px);
    z-index: 400;
    width: min(360px, calc(100vw - 36px));
    display: grid;
    gap: .6rem;
}

.qaq-map-dock-item {
    display: block;
    padding: .9rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(17, 17, 17, .08);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px rgba(17, 17, 17, .12);
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.qaq-map-dock-item:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .94);
}

.qaq-map-dock-item strong,
.qaq-map-dock-item span {
    display: block;
}

.qaq-map-dock-item strong {
    font-size: .96rem;
    line-height: 1.25;
    color: #111111;
}

.qaq-map-dock-item span {
    margin-top: .22rem;
    font-size: .83rem;
    color: rgba(17, 17, 17, .64);
}

.qaq-home-intro {
    margin-top: .1rem;
}

.qaq-eyebrow {
    margin-bottom: .4rem;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, .46);
}

.qaq-home-title {
    max-width: 14ch;
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: .95;
    letter-spacing: -.06em;
    font-weight: 800;
    color: #111111;
}

.qaq-stat-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    justify-content: flex-start;
}

.qaq-stat-strip span {
    display: inline-flex;
    align-items: baseline;
    gap: .33rem;
    padding: .72rem .92rem;
    border-radius: 999px;
    background: rgba(17, 17, 17, .035);
    border: 1px solid rgba(17, 17, 17, .08);
    font-weight: 800;
    letter-spacing: -.03em;
    color: #111111;
}

.qaq-stat-strip small {
    font-size: .76rem;
    font-weight: 700;
    color: rgba(17, 17, 17, .56);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.qaq-composer-panel {
    padding: 1.2rem 1.2rem .55rem;
}

.qaq-unified-feed,
.qaq-actor-stack {
    display: grid;
    gap: .8rem;
}

.qaq-unified-feed__item,
.qaq-actor-card {
    position: relative;
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: 1rem 1rem 1rem .95rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,248,250,.92));
    border: 1px solid rgba(17, 17, 17, .08);
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.qaq-unified-feed__item:hover,
.qaq-actor-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(17, 17, 17, .08);
    background: #ffffff;
}

.qaq-unified-feed__item.is-soft {
    background: linear-gradient(180deg, rgba(249,248,246,.95), rgba(255,255,255,.98));
}

.qaq-unified-feed__rail {
    width: 4px;
    align-self: stretch;
    border-radius: 999px;
    background: linear-gradient(180deg, #111111, rgba(17,17,17,.18));
    flex: 0 0 4px;
}

.qaq-unified-feed__item.is-soft .qaq-unified-feed__rail {
    background: linear-gradient(180deg, rgba(17,17,17,.3), rgba(17,17,17,.1));
}

.qaq-unified-feed__body,
.qaq-actor-card__body {
    min-width: 0;
    flex: 1 1 auto;
}

.qaq-unified-feed__topline,
.qaq-actor-card__meta-row {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
    margin-bottom: .45rem;
}

.qaq-chip {
    display: inline-flex;
    align-items: center;
    padding: .34rem .58rem;
    border-radius: 999px;
    background: rgba(17, 17, 17, .055);
    border: 1px solid rgba(17, 17, 17, .08);
    color: rgba(17, 17, 17, .72);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.qaq-chip.is-dark {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
}

.qaq-unified-feed__meta,
.qaq-actor-card__role {
    font-size: .84rem;
    color: rgba(17, 17, 17, .58);
}

.qaq-unified-feed__title,
.qaq-actor-card__title {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #111111;
}

.qaq-unified-feed__tag {
    margin-top: .28rem;
    font-size: .84rem;
    color: rgba(17, 17, 17, .58);
}

.qaq-actor-card__media {
    flex: 0 0 54px;
}

.qaq-actor-card .qaq-avatar {
    width: 54px;
    height: 54px;
}

@media (max-width: 991.98px) {
    .qaq-home-map-dock {
        left: 18px;
        right: 18px;
        width: auto;
    }

    .qaq-home-title {
        max-width: none;
    }
}

@media (max-width: 767.98px) {
    .qaq-home-glass-label {
        right: 14px;
        left: 14px;
        top: 14px;
        padding: .78rem .88rem;
    }

    .qaq-home-map-dock {
        bottom: 14px;
        left: 14px;
        right: 14px;
        gap: .5rem;
    }

    .qaq-map-dock-item {
        padding: .78rem .9rem;
    }

    .qaq-composer-panel {
        padding: 1rem 1rem .45rem;
    }
}
