@font-face { font-family: "Quicksand"; src: url("/static/fonts/Quicksand-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url("/static/fonts/Quicksand-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url("/static/fonts/Quicksand-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url("/static/fonts/Quicksand-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
    --cq-forest: #1f3d2b;
    --cq-forest-2: #2c5a3a;
    --cq-forest-3: #3f7a52;
    --cq-moss: #7a9a52;
    --cq-orange: #e0922b;
    --cq-orange-2: #c47a1c;
    --cq-rust: #b4532a;
    --cq-paper: #f4efe4;
    --cq-surface: #fbf8f1;
    --cq-ink: #231f18;
    --cq-muted: #6b6254;
    --cq-line: #ddd3bd;
    --cq-soft: #ece4d1;
    --cq-shadow: 0 1px 2px rgba(35, 31, 24, .06), 0 8px 24px rgba(35, 31, 24, .08);
    --cq-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --client-font: "Quicksand", system-ui, sans-serif;
    --size-logo: 52px;
}

html, body {
    font-family: var(--client-font);
    background: var(--cq-paper);
    color: var(--cq-ink);
}

h1, h2, h3, h4, h5, h6, .cq-display {
    font-family: var(--cq-display);
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--cq-ink);
}

a { color: var(--cq-forest-2); text-decoration-color: rgba(44, 90, 58, .35); text-underline-offset: 2px; }
a:hover { color: var(--cq-orange-2); }
.text-muted { color: var(--cq-muted) !important; }
.text-dark { color: var(--cq-ink) !important; }

header .navbar, #navbar {
    background: var(--cq-forest);
    padding: .35rem 1rem;
    box-shadow: 0 2px 0 var(--cq-orange);
}
header .navbar .navbar-brand { padding: 0; margin-right: 1.5rem; }
header .navbar .nav-link, header .navbar .link-light { color: var(--cq-paper) !important; }
header .navbar .nav-link:hover, header .navbar .link-light:hover { color: var(--cq-orange) !important; }
header .navbar .navbar-toggler { border-color: rgba(244, 239, 228, .4); }
header .navbar .navbar-toggler-icon { filter: invert(1) brightness(1.6); }
#logo-header { height: var(--size-logo); width: auto; }
.profile_pic { width: 36px; height: 36px; object-fit: cover; border: 2px solid var(--cq-orange); background: var(--cq-paper); }

.btn { border-radius: 999px; font-weight: 600; letter-spacing: .01em; }
.btn-primary, .btn-primary:disabled, .btn-primary.disabled { color: #fff; background-color: var(--cq-forest-2); border-color: var(--cq-forest-2); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active { color: #fff; background-color: var(--cq-forest-3); border-color: var(--cq-forest-3); box-shadow: 0 0 0 .2rem rgba(224, 146, 43, .35); }
.btn-black { color: var(--cq-paper); background: transparent; border: 1.5px solid rgba(244, 239, 228, .55); }
.btn-black:hover { color: var(--cq-forest); background: var(--cq-orange); border-color: var(--cq-orange); }
.btn-outline-secondary { color: var(--cq-forest-2); border-color: var(--cq-line); background: var(--cq-surface); }
.btn-outline-secondary:hover { color: #fff; background: var(--cq-forest-2); border-color: var(--cq-forest-2); }
.btn-outline-primary { color: var(--cq-forest-2); border-color: var(--cq-forest-2); }
.btn-outline-primary:hover { color: #fff; background: var(--cq-forest-2); border-color: var(--cq-forest-2); }

.card, .modal-content, .dropdown-menu, .list-group-item {
    background: var(--cq-surface);
    border: 1px solid var(--cq-line);
    border-radius: 16px;
    color: var(--cq-ink);
}
.card { box-shadow: var(--cq-shadow); }
.card:hover { box-shadow: var(--cq-shadow); }
.dropdown-menu { border-radius: 14px; box-shadow: var(--cq-shadow); }
.dropdown-item { border-radius: 8px; color: var(--cq-ink); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--cq-soft); color: var(--cq-forest); }
.dropdown-item.active, .dropdown-item:active { background: var(--cq-forest-2); color: #fff; }

.form-control, .form-select, .input-group-text {
    background: var(--cq-surface);
    border: 1px solid var(--cq-line);
    border-radius: 10px;
    color: var(--cq-ink);
}
.form-control:focus, .form-select:focus, input:focus {
    border-color: var(--cq-forest-2);
    box-shadow: 0 0 0 .2rem rgba(44, 90, 58, .18);
    outline: none;
}
.form-check-input:checked { background-color: var(--cq-forest-2); border-color: var(--cq-forest-2); }

.nav-tabs .nav-link.active { color: var(--cq-forest); border-color: var(--cq-line) var(--cq-line) var(--cq-surface); background: var(--cq-surface); }
.table { --bs-table-hover-bg: var(--cq-soft); }
.alert { border-radius: 14px; }
hr { border-color: var(--cq-line); opacity: 1; }
code { color: var(--cq-rust); background: var(--cq-soft); padding: 1px 5px; border-radius: 4px; }

.cq-hero {
    padding: 2.5rem 1rem 1.5rem;
    background:
        radial-gradient(circle at 12% 20%, rgba(224, 146, 43, .16), transparent 42%),
        radial-gradient(circle at 88% 0%, rgba(122, 154, 82, .22), transparent 40%),
        var(--cq-paper);
}

cueilloir-carte {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}

.cq-shell {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 372px 1fr;
    grid-template-rows: 1fr;
    width: 100%;
}
.cq-panel {
    background: var(--cq-surface);
    border-right: 1px solid var(--cq-line);
    padding: 1rem 1.1rem 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 3;
}
.cq-title { font-family: var(--cq-display); font-size: 1.35rem; margin: 0; line-height: 1.15; }
.cq-sub { color: var(--cq-muted); font-size: .86rem; margin: .15rem 0 0; }
.cq-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cq-muted); font-weight: 700; margin-bottom: .4rem; display: block; }

.cq-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.cq-chip {
    display: inline-flex; align-items: center; gap: .35rem;
    border: 1px solid var(--cq-line); background: var(--cq-paper); color: var(--cq-ink);
    border-radius: 999px; padding: .28rem .75rem; font-size: .85rem; font-weight: 600; cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.cq-chip:hover { border-color: var(--cq-forest-2); transform: translateY(-1px); }
.cq-chip.is-active { background: var(--cq-forest-2); border-color: var(--cq-forest-2); color: #fff; }
.cq-chip.is-primary { border-color: var(--cq-orange); }
.cq-chip.is-active.is-primary { background: var(--cq-forest-2); border-color: var(--cq-orange); box-shadow: 0 0 0 2px rgba(224, 146, 43, .45); }

.cq-species-card { background: var(--cq-paper); border: 1px solid var(--cq-line); border-radius: 14px; padding: .8rem .95rem; }
.cq-species-card h3 { font-size: 1.15rem; margin: 0; }
.cq-latin { font-style: italic; color: var(--cq-muted); font-size: .85rem; }
.cq-season { display: flex; align-items: center; gap: .5rem; margin: .5rem 0 .2rem; font-size: .82rem; font-weight: 600; color: var(--cq-forest-2); }
.cq-season-bar { position: relative; height: 8px; flex: 1; background: var(--cq-soft); border-radius: 99px; overflow: hidden; }
.cq-season-bar span { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, var(--cq-moss), var(--cq-forest-2)); border-radius: 99px; }
.cq-season-bar i { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--cq-orange); }
.cq-tip { font-size: .84rem; margin: .45rem 0 0; color: var(--cq-ink); }

.cq-day-row { display: flex; align-items: center; gap: .5rem; }
.cq-day-row input[type=range] { flex: 1; accent-color: var(--cq-forest-2); }
.cq-icon-btn {
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--cq-line); background: var(--cq-paper);
    color: var(--cq-forest-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.1rem;
}
.cq-icon-btn:hover { background: var(--cq-forest-2); color: #fff; border-color: var(--cq-forest-2); }
.cq-day-name { font-family: var(--cq-display); font-size: 1.05rem; font-weight: 700; }
.cq-day-tag { font-size: .72rem; font-weight: 700; padding: .12rem .5rem; border-radius: 99px; background: var(--cq-orange); color: var(--cq-forest); margin-left: .4rem; vertical-align: middle; }
.cq-day-tag.is-past { background: var(--cq-soft); color: var(--cq-muted); }
.cq-day-tag.is-future { background: var(--cq-moss); color: #fff; }

.cq-seg { display: inline-flex; border: 1px solid var(--cq-line); border-radius: 999px; overflow: hidden; background: var(--cq-paper); }
.cq-seg button { border: 0; background: transparent; padding: .3rem .85rem; font-size: .83rem; font-weight: 600; color: var(--cq-muted); cursor: pointer; }
.cq-seg button.is-active { background: var(--cq-forest-2); color: #fff; }

.cq-legend-bar { height: 10px; border-radius: 99px; background: linear-gradient(90deg, #f1ecc9, #cfd679, #8fbb56, #3f8f4a, #14532d); border: 1px solid rgba(35, 31, 24, .12); }
.cq-legend-scale { display: flex; justify-content: space-between; font-size: .72rem; color: var(--cq-muted); margin-top: .2rem; }

.cq-chart { width: 100%; height: 138px; display: block; }
.cq-best { font-size: .86rem; margin: .3rem 0 0; }
.cq-best strong { color: var(--cq-forest-2); }

.cq-status { font-size: .78rem; color: var(--cq-muted); border-top: 1px dashed var(--cq-line); padding-top: .75rem; }
.cq-status .progress { height: 6px; border-radius: 99px; background: var(--cq-soft); margin-top: .35rem; }
.cq-status .progress-bar { background: var(--cq-moss); }

.cq-map { position: relative; min-width: 0; min-height: 0; background: #e8e1cd; overflow: hidden; touch-action: none; }
.cq-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.cq-map canvas.is-dragging { cursor: grabbing; }
.cq-tools { position: absolute; top: .75rem; right: .75rem; display: flex; flex-direction: column; gap: .4rem; z-index: 2; }
.cq-tools .cq-icon-btn { background: var(--cq-surface); box-shadow: var(--cq-shadow); width: 38px; height: 38px; }
.cq-tools .cq-icon-btn.is-active { background: var(--cq-forest-2); color: #fff; border-color: var(--cq-forest-2); }
.cq-attr { position: absolute; left: .5rem; bottom: .35rem; font-size: .68rem; color: rgba(35, 31, 24, .75); background: rgba(251, 248, 241, .8); padding: .05rem .4rem; border-radius: 6px; z-index: 2; pointer-events: none; }
.cq-hover { position: absolute; z-index: 4; pointer-events: none; background: var(--cq-forest); color: var(--cq-paper); font-size: .78rem; font-weight: 600; padding: .25rem .6rem; border-radius: 8px; white-space: nowrap; transform: translate(12px, 12px); box-shadow: var(--cq-shadow); }
.cq-notice { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 5; background: rgba(244, 239, 228, .82); text-align: center; padding: 1.5rem; }
.cq-notice > div { max-width: 28rem; background: var(--cq-surface); border: 1px solid var(--cq-line); border-radius: 18px; box-shadow: var(--cq-shadow); padding: 1.4rem 1.6rem; }

.cq-cell {
    position: absolute; left: .75rem; bottom: 1.6rem; z-index: 4; width: min(340px, calc(100% - 1.5rem));
    background: var(--cq-surface); border: 1px solid var(--cq-line); border-radius: 18px; box-shadow: var(--cq-shadow);
    padding: .9rem 1rem 1rem; max-height: calc(100% - 3rem); overflow-y: auto;
}
.cq-cell[hidden] { display: none; }
.cq-cell-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.cq-score { display: flex; align-items: baseline; gap: .5rem; }
.cq-score b { font-family: var(--cq-display); font-size: 2.4rem; line-height: 1; color: var(--cq-forest-2); }
.cq-score span { font-weight: 700; color: var(--cq-orange-2); }
.cq-bars { display: grid; gap: .35rem; margin: .6rem 0; }
.cq-bar { display: grid; grid-template-columns: 4.6rem 1fr 2rem; align-items: center; gap: .5rem; font-size: .78rem; color: var(--cq-muted); }
.cq-bar div { height: 7px; background: var(--cq-soft); border-radius: 99px; overflow: hidden; }
.cq-bar div i { display: block; height: 100%; background: linear-gradient(90deg, var(--cq-moss), var(--cq-forest-2)); border-radius: 99px; }
.cq-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .8rem; font-size: .8rem; margin: 0; }
.cq-facts dt { font-weight: 600; color: var(--cq-muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.cq-facts dd { margin: 0; font-weight: 600; }
.cq-facts .is-wide { grid-column: 1 / -1; }
.cq-go { margin-top: .75rem; display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 700; cursor: pointer; color: var(--cq-forest-2); list-style: none; }
.cq-go::-webkit-details-marker { display: none; }
.cq-go-menu[open] > .cq-go .mdi-chevron-down { transform: rotate(180deg); }
.cq-go-list { display: grid; margin-top: .4rem; border: 1px solid var(--cq-line); border-radius: 12px; background: var(--cq-paper); overflow: hidden; }
.cq-go-item {
    display: flex; align-items: center; gap: .55rem; padding: .5rem .75rem; font-size: .83rem; font-weight: 600;
    color: var(--cq-ink); text-decoration: none; background: transparent; border: 0; border-top: 1px solid var(--cq-line);
    text-align: left; width: 100%; cursor: pointer;
}
.cq-go-item:first-child { border-top: 0; }
.cq-go-item:hover { background: var(--cq-soft); color: var(--cq-forest); }
.cq-go-item .mdi { font-size: 1.1rem; color: var(--cq-forest-2); }

.cq-admin-ok { color: var(--cq-forest-3); }
.cq-admin-ko { color: var(--cq-rust); }

.cq-home-footer { padding: .35rem 1rem; font-size: .75rem; color: var(--cq-muted); text-align: center; background: var(--cq-surface); border-top: 1px solid var(--cq-line); }
.cq-home-footer a { color: var(--cq-muted); }

@media (max-width: 860px) {
    .cq-shell { grid-template-columns: 1fr; grid-template-rows: minmax(46vh, 1fr) auto; }
    .cq-map { order: 1; }
    .cq-panel { order: 2; border-right: 0; border-top: 1px solid var(--cq-line); max-height: 48vh; }
    .cq-cell { left: .5rem; bottom: 1.4rem; width: calc(100% - 1rem); max-height: 70%; }
}

.cq-page { max-width: 1100px; flex: none; width: 100%; margin-left: auto; margin-right: auto; }
.cq-page h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cq-block { background: var(--cq-surface); border: 1px solid var(--cq-line); border-radius: 16px; padding: 1.1rem 1.25rem; margin-bottom: 1.1rem; box-shadow: var(--cq-shadow); }
.cq-block h2 { font-family: var(--cq-display); margin-bottom: .75rem; }
.cq-list { padding-left: 1.15rem; margin-bottom: .75rem; }
.cq-list li { margin-bottom: .35rem; }
.cq-alert-box { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 14px; background: #f8e4d4; border: 1px solid #e0a97c; color: #5a2a12; }
.cq-alert-box .mdi { font-size: 1.5rem; color: var(--cq-rust); }
.cq-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.cq-latin { font-style: italic; color: var(--cq-muted); font-size: .88rem; }

.cq-know { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 700; border: 1px solid transparent; white-space: nowrap; line-height: 1.4; }
.cq-know .mdi { font-size: .95rem; }
.cq-know.k1 { background: #dcebd9; color: #1d5a32; border-color: #a8cfa5; }
.cq-know.k2 { background: #eef0cf; color: #5a6420; border-color: #cfd48f; }
.cq-know.k3 { background: #fbe7c8; color: #8a5208; border-color: #e5bd7c; }
.cq-know.k4 { background: #f5d4cb; color: #8a2a12; border-color: #de9d8c; }

.cq-level-card { border-radius: 14px; padding: .75rem .9rem; border: 1px solid var(--cq-line); background: var(--cq-surface); }
.row > div > .cq-level-card { height: 100%; }
.cq-level-card.k1 { border-left: 5px solid #3f8f4a; }
.cq-level-card.k2 { border-left: 5px solid #98ab3d; }
.cq-level-card.k3 { border-left: 5px solid #e0922b; }
.cq-level-card.k4 { border-left: 5px solid #b4532a; }

.cq-guide-card { display: block; height: 100%; padding: 1rem 1.1rem; border-radius: 16px; background: var(--cq-surface); border: 1px solid var(--cq-line); color: var(--cq-ink); text-decoration: none; box-shadow: var(--cq-shadow); transition: transform .15s, border-color .15s; }
.cq-guide-card:hover { transform: translateY(-2px); border-color: var(--cq-forest-2); color: var(--cq-ink); }
.cq-guide-card .cq-season { color: var(--cq-forest-2); font-weight: 600; font-size: .85rem; }

.cq-fiche-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.cq-lookalikes { display: grid; gap: .6rem; }
.cq-look { border-radius: 12px; padding: .65rem .85rem; border: 1px solid var(--cq-line); background: var(--cq-paper); }
.cq-look-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-bottom: .2rem; }
.cq-danger { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .1rem .5rem; border-radius: 999px; }
.cq-look.d-mortel { border-left: 5px solid #8a2a12; }
.cq-look.d-mortel .cq-danger { background: #8a2a12; color: #fff; }
.cq-look.d-toxique { border-left: 5px solid #e0922b; }
.cq-look.d-toxique .cq-danger { background: #e0922b; color: #231f18; }
.cq-look.d-indigeste { border-left: 5px solid #cfd48f; }
.cq-look.d-indigeste .cq-danger { background: #eef0cf; color: #5a6420; }
.cq-look.d-comestible { border-left: 5px solid #3f8f4a; }
.cq-look.d-comestible .cq-danger { background: #dcebd9; color: #1d5a32; }

.cq-facts-list { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin-bottom: .75rem; }
.cq-facts-list dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cq-muted); font-weight: 700; padding-top: .15rem; }
.cq-facts-list dd { margin: 0; font-weight: 600; }
.cq-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.cq-pill { padding: .2rem .7rem; border-radius: 999px; background: #f5d4cb; color: #8a2a12; font-size: .83rem; font-weight: 600; border: 1px solid #de9d8c; }

.cq-chip .cq-know { margin-left: .15rem; padding: .05rem .35rem; border-width: 1px; }
.cq-chip .cq-know span { display: none; }
.cq-chip.is-active .cq-know { background: #fbf8f1; }
.cq-more { border: 1px dashed var(--cq-line); border-radius: 14px; padding: .5rem .75rem; }
.cq-more > summary { cursor: pointer; font-weight: 700; font-size: .85rem; color: var(--cq-forest-2); list-style: none; display: flex; align-items: center; gap: .4rem; }
.cq-more > summary::-webkit-details-marker { display: none; }
.cq-more[open] > summary .mdi-chevron-down { transform: rotate(180deg); }
.cq-more .cq-chips { margin-top: .5rem; }
.cq-kind-label { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cq-muted); font-weight: 700; margin: .4rem 0 .25rem; }
.cq-dept-select { max-width: 100%; }
.cq-detail-link { font-size: .82rem; font-weight: 700; display: inline-flex; align-items: center; gap: .3rem; margin-top: .5rem; }
.cq-law-hint { font-size: .78rem; color: var(--cq-muted); margin: .4rem 0 0; }

[data-theme="dark"] .cq-alert-box { background: #3a241a; border-color: #7a4a30; color: #f0d2c0; }
[data-theme="dark"] .cq-know.k1 { background: #1d3a27; color: #a8e0b4; border-color: #2f5c3e; }
[data-theme="dark"] .cq-know.k2 { background: #353a1a; color: #d8de96; border-color: #55602b; }
[data-theme="dark"] .cq-know.k3 { background: #4a3314; color: #f0c98a; border-color: #7a5420; }
[data-theme="dark"] .cq-know.k4 { background: #4a2218; color: #f0b4a2; border-color: #7a3a2a; }
[data-theme="dark"] .cq-pill { background: #4a2218; color: #f0b4a2; border-color: #7a3a2a; }
[data-theme="dark"] .cq-chip.is-active .cq-know { background: #11160f; }
.cq-thumb { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; margin-bottom: .6rem; background: var(--cq-soft); }
.cq-figure { margin: 0; }
.cq-figure img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 16px; border: 1px solid var(--cq-line); background: var(--cq-soft); }
.cq-figure figcaption { font-size: .75rem; color: var(--cq-muted); margin-top: .35rem; }
.cq-species-img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; margin-bottom: .6rem; background: var(--cq-soft); }
.cq-preview { position: fixed; z-index: 30; width: 250px; background: var(--cq-surface); border: 1px solid var(--cq-line); border-radius: 16px; box-shadow: var(--cq-shadow); overflow: hidden; pointer-events: none; }
.cq-preview[hidden] { display: none; }
.cq-preview img { width: 100%; height: 170px; object-fit: cover; display: block; }
.cq-preview-empty { height: 120px; display: flex; align-items: center; justify-content: center; background: var(--cq-soft); font-size: 3rem; color: var(--cq-forest-2); }
.cq-preview-body { padding: .6rem .8rem .75rem; }
.cq-preview-body strong { font-family: var(--cq-display); font-size: 1.05rem; }
.cq-preview-line { font-size: .8rem; color: var(--cq-forest-2); font-weight: 600; margin: .25rem 0 .4rem; }
@media (max-width: 860px) { .cq-preview { display: none !important; } }
.cq-panel { padding: 0; overflow: hidden; gap: 0; }
.cq-panel-top { padding: .9rem 1.1rem .6rem; display: flex; flex-direction: column; gap: .5rem; border-bottom: 1px solid var(--cq-line); }
.cq-panel-top .cq-title { font-size: 1.15rem; }
.cq-current { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; padding: .4rem .55rem; border-radius: 14px; border: 1px solid var(--cq-forest-2); background: var(--cq-paper); color: var(--cq-ink); cursor: pointer; }
.cq-current:hover { background: var(--cq-soft); }
.cq-current img, .cq-current-icon { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; background: var(--cq-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--cq-forest-2); font-size: 1.5rem; }
.cq-current-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.cq-current-text strong { font-family: var(--cq-display); font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cq-current-text small { color: var(--cq-muted); font-style: italic; font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cq-current-change { font-size: .72rem; font-weight: 700; color: var(--cq-forest-2); display: inline-flex; align-items: center; gap: .2rem; flex: none; }
.cq-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--cq-line); background: var(--cq-paper); }
.cq-tabs button { border: 0; background: transparent; padding: .6rem .3rem; font-weight: 700; font-size: .82rem; color: var(--cq-muted); border-bottom: 3px solid transparent; cursor: pointer; display: inline-flex; gap: .3rem; align-items: center; justify-content: center; }
.cq-tabs button.is-active { color: var(--cq-forest-2); border-bottom-color: var(--cq-orange); background: var(--cq-surface); }
.cq-pane { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: .9rem 1.1rem 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.cq-pane[hidden] { display: none; }
.cq-legend-block { display: flex; flex-direction: column; }
.cq-map.is-picking canvas { cursor: crosshair; }
.cq-places { display: grid; gap: .25rem; }
.cq-place { display: flex; align-items: center; gap: .4rem; text-align: left; padding: .4rem .6rem; border: 1px solid var(--cq-line); border-radius: 10px; background: var(--cq-paper); color: var(--cq-ink); font-size: .82rem; cursor: pointer; }
.cq-place:hover { border-color: var(--cq-forest-2); background: var(--cq-soft); }
.cq-zone-title { font-family: var(--cq-display); font-weight: 700; margin: .25rem 0 0; }
.cq-zone-row { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; padding: .4rem .5rem; margin-bottom: .35rem; border: 1px solid var(--cq-line); border-radius: 12px; background: var(--cq-surface); color: var(--cq-ink); cursor: pointer; }
.cq-zone-row:hover { border-color: var(--cq-forest-2); background: var(--cq-paper); }
.cq-zone-row img, .cq-zone-icon { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; background: var(--cq-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--cq-forest-2); }
.cq-zone-text { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: .15rem; }
.cq-zone-text strong { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cq-zone-text small { color: var(--cq-muted); font-size: .72rem; }
.cq-bar-line { display: block; height: 6px; border-radius: 99px; background: var(--cq-soft); overflow: hidden; }
.cq-bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--cq-moss), var(--cq-forest-2)); border-radius: 99px; }
.cq-zone-score { font-family: var(--cq-display); font-size: 1.3rem; font-weight: 700; color: var(--cq-forest-2); min-width: 2ch; text-align: right; }
.cq-zone-row .cq-know span { display: none; }
@media (max-width: 860px) { .cq-panel { max-height: 52vh; } }
.cq-current-change { font-size: 0; }
.cq-current-change .mdi { font-size: 1.3rem; }
.cq-current .cq-know span { display: none; }

body { height: 100vh; height: 100dvh; width: 100%; }
.cq-handle { display: none; }
.cq-disclaimer { margin-top: 0; }

@media (max-width: 860px) {
    :root { --size-logo: 38px; }
    header .navbar, #navbar { padding: .2rem .75rem; }
    .cq-shell { display: block; position: relative; overflow: hidden; }
    .cq-map { position: absolute; inset: 0; }
    .cq-panel {
        position: absolute; left: 0; right: 0; bottom: 0; z-index: 8;
        max-height: 64vh; max-height: 64dvh;
        border: 0; border-top: 1px solid var(--cq-line); border-radius: 20px 20px 0 0;
        box-shadow: 0 -10px 30px rgba(35, 31, 24, .22);
    }
    .cq-handle { display: flex; align-items: center; justify-content: center; width: 100%; height: 22px; border: 0; background: transparent; padding: 0; cursor: pointer; flex: none; }
    .cq-handle span { width: 44px; height: 5px; border-radius: 99px; background: var(--cq-line); }
    .cq-panel-top { padding: 0 .8rem .45rem; gap: .35rem; border-bottom: 0; }
    .cq-panel-top .cq-title { display: none; }
    .cq-current { padding: .3rem .45rem; }
    .cq-current img, .cq-current-icon { width: 38px; height: 38px; }
    .cq-tabs button { padding: .5rem .2rem; }
    .cq-panel.is-collapsed .cq-pane { display: none; }
    .cq-panel.is-collapsed .cq-tabs { border-bottom: 0; }
    .cq-pane { padding: .75rem .9rem 1rem; }
    .cq-chart { height: 112px; }
    .cq-species-img { height: 120px; }
    .cq-cell { top: .5rem; bottom: auto; left: .5rem; width: calc(100% - 4rem); max-height: 52%; z-index: 9; }
    .cq-tools { top: .5rem; right: .5rem; }
    .cq-attr { display: none; }
    .cq-home-footer { display: none; }
    .cq-notice { padding: 1rem; }
}
.cq-seg { display: flex; width: 100%; }
.cq-seg button { flex: 1 1 0; text-align: center; }
.cq-panel-top .ts-wrapper { margin-top: .5rem; }
.cq-panel-top .ts-control { border-radius: 10px; border-color: var(--cq-line); background: var(--cq-surface); font-size: .85rem; padding: .25rem .5rem; }
.cq-panel-top .ts-wrapper.multi .ts-control > div { background: var(--cq-forest-2); color: #fff; border-radius: 99px; padding: .1rem .5rem; }
.cq-panel-top .ts-wrapper.multi .ts-control > div .remove { border-left-color: rgba(255,255,255,.4); color: #fff; }
.ts-dropdown { z-index: 60; border-radius: 10px; border-color: var(--cq-line); background: var(--cq-surface); color: var(--cq-ink); }
.ts-dropdown .active { background: var(--cq-soft); color: var(--cq-forest); }
@media (max-width: 860px) {
    .cq-handle { height: 36px; touch-action: none; }
    .cq-panel-top { touch-action: pan-x; }
}

/* Bandeau d'installation PWA */
.pwa-banner {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 2000;
    display: flex; align-items: center; gap: .75rem;
    padding: .65rem .75rem; border-radius: 16px;
    background: var(--cq-forest); color: var(--cq-paper);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .35); border: 1px solid rgba(244, 239, 228, .18);
}
.pwa-banner[hidden] { display: none; }
.pwa-banner-icon { border-radius: 10px; flex: none; }
.pwa-banner-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .82rem; line-height: 1.25; }
.pwa-banner-text strong { font-size: .95rem; }
.pwa-banner-text span { opacity: .85; }
.pwa-banner-accept { background: var(--cq-orange); color: #1b1408; font-weight: 700; border-radius: 999px; padding: .4rem 1rem; flex: none; }
.pwa-banner-accept:hover { background: var(--cq-orange-2); color: #1b1408; }
.pwa-banner-close { background: none; border: 0; color: var(--cq-paper); opacity: .7; font-size: 1.2rem; padding: .25rem; flex: none; }
@media (min-width: 700px) { .pwa-banner { left: auto; right: 16px; max-width: 420px; } }
