.cq-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    font-family: inherit;
}

.cq-search-bar {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 10px;
    margin-bottom: 18px;
}

.cq-search-bar input,
.cq-search-bar button {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
}

.cq-search-bar button[type="submit"] {
    background: #1a4c8a;
    color: #fff;
    border-color: #1a4c8a;
    cursor: pointer;
}

.cq-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    padding: 0;
    font-size: 18px;
    line-height: 1;
}

.cq-count {
    margin: 0 0 12px;
    font-size: 13px;
    color: #666;
}

.cq-sort-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.cq-sort-bar button {
    background: none;
    border: none;
    padding: 6px 4px;
    font: inherit;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    user-select: none;
}

.cq-sort-arrow {
    display: inline-block;
    width: 10px;
}

.cq-fav-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 6px 12px;
    border: 1px solid #d3d3d3;
    border-radius: 999px;
    background: #fff;
    font: inherit;
    font-size: 13px;
    color: #444;
    cursor: pointer;
}

.cq-fav-filter-heart {
    color: #d1495b;
}

.cq-fav-filter.is-active {
    background: #d1495b;
    border-color: #d1495b;
    color: #fff;
}

.cq-fav-filter.is-active .cq-fav-filter-heart {
    color: #fff;
}

.cq-fav-filter-count {
    opacity: 0.75;
}

.cq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cq-band {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: #fff;
}

.cq-band--open {
    border-color: #1a4c8a;
}

.cq-band-main {
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
    background: none;
    border: none;
    padding: 4px 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.cq-band-num {
    flex-shrink: 0;
    min-width: 44px;
    font-weight: 700;
    color: #1a4c8a;
}

.cq-band-title {
    font-weight: 600;
}

.cq-band-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
}

.cq-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #d3d3d3;
    background: #fff;
    color: #1a4c8a;
    cursor: pointer;
    text-decoration: none;
}

.cq-icon-youtube {
    color: #c4302b;
}

.cq-icon-fav {
    color: #c9c9c9;
}

.cq-icon-fav.is-favorite {
    color: #d1495b;
    border-color: #d1495b;
}

.cq-icon-btn:hover {
    transform: translateY(-1px);
}

.cq-icon-disabled {
    opacity: 0.25;
    cursor: default;
}

.cq-band-detail {
    grid-column: 1 / -1;
    border-top: 1px solid #eee;
    padding-top: 10px;
    line-height: 1.6;
}

.cq-stanza {
    margin: 0 0 14px;
}

.cq-stanza p {
    margin: 0;
}

.cq-stanza-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a4c8a;
}

.cq-loading,
.cq-error {
    color: #888;
    font-size: 14px;
}

.cq-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.cq-page-btn {
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    padding: 6px 12px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: #1a4c8a;
}

.cq-page-btn:hover:not(:disabled) {
    background: #1a4c8a;
    color: #fff;
    border-color: #1a4c8a;
}

.cq-page-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.cq-page-status {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

/* === Plein ecran : presentation et video === */
.cq-no-scroll {
    overflow: hidden;
}

.cq-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    background: #0c1a2b;
    color: #fff;
}

.cq-overlay-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.35);
    font-size: 16px;
}

.cq-overlay-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cq-slide-counter {
    font-variant-numeric: tabular-nums;
    opacity: 0.8;
}

.cq-overlay-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.cq-slide-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2vh 4vw;
    cursor: pointer;
}

.cq-slide-inner {
    max-width: 100%;
    max-height: 100%;
    text-align: center;
}

.cq-slide-label {
    display: block;
    margin-bottom: 0.4em;
    font-size: 0.55em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.75;
}

.cq-slide-text {
    white-space: pre-line;
    text-align: center;
    line-height: 1.35;
    font-weight: 600;
}

.cq-slide-nav {
    display: flex;
    justify-content: space-between;
    padding: 10px 18px 18px;
}

.cq-slide-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.cq-slide-btn:disabled {
    opacity: 0.25;
    cursor: default;
}

.cq-overlay--video {
    background: #000;
}

.cq-video-area {
    flex: 1;
    display: flex;
}

.cq-video-area iframe {
    flex: 1;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 700px) {
    .cq-search-bar {
        grid-template-columns: 90px 1fr auto;
    }

    .cq-band-main {
        flex-direction: column;
        gap: 2px;
    }
}
