/* ── ADEL Enquêtes Emploi – surveys.css  v2 ─────────────────────────────── */

.adel-survey-wrap {
    font-family: inherit;
    max-width: 900px;
    margin: 0 auto 2.5em;
    box-sizing: border-box;
}
.adel-survey-wrap *, .adel-survey-wrap *::before, .adel-survey-wrap *::after {
    box-sizing: inherit;
}

/* ── En-tête ─────────────────────────────────────────────────────────────── */
.adel-survey-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6em .8em;
    margin-bottom: .75em;
}
.adel-survey-badge {
    background: #1a3a5c;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .28em .65em;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}
.adel-survey-title {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #1a3a5c !important;
    margin: 0 !important;
    line-height: 1.25 !important;
}

/* ── Description ─────────────────────────────────────────────────────────── */
.adel-survey-desc {
    font-size: .93rem;
    line-height: 1.7;
    color: #3d4d5c;
    background: #f2f5f9;
    border-left: 4px solid #1a3a5c;
    padding: .85em 1.15em;
    border-radius: 0 4px 4px 0;
    margin-bottom: 1.2em;
}
.adel-survey-desc p:last-child { margin-bottom: 0; }
.adel-survey-desc strong       { color: #1a3a5c; }

/* ── Cadre PDF ───────────────────────────────────────────────────────────── */
.adel-pdf-frame {
    border: 1px solid #d4dae4;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

/* ── Toolbar ─────────────────────────────────────────────────────────────── */
.adel-pdf-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35em .6em;
    padding: .5em .75em;
    background: #1a3a5c;
    border-bottom: 2px solid #122840;
    user-select: none;
}
.apv-nav, .apv-zoom {
    display: flex;
    align-items: center;
    gap: .25em;
}
.apv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff !important;
    border-radius: 4px;
    padding: .28em .6em;
    font-size: .82rem;
    line-height: 1;
    cursor: pointer;
    transition: background .15s;
    text-decoration: none !important;
    white-space: nowrap;
}
.apv-btn:hover, .apv-btn:focus {
    background: rgba(255,255,255,.28);
    border-color: rgba(255,255,255,.4);
    outline: none;
    color: #fff !important;
}
.apv-btn:disabled { opacity: .35; cursor: default; }

.apv-page-wrap {
    display: flex;
    align-items: center;
    gap: .1em;
    color: rgba(255,255,255,.9);
    font-size: .82rem;
    cursor: default;
}
.apv-page-num {
    width: 3em;
    text-align: center;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    border-radius: 3px;
    padding: .2em .25em;
    font-size: inherit;
    -moz-appearance: textfield;
}
.apv-page-num:focus { outline: none; background: rgba(255,255,255,.22); }
.apv-page-num::-webkit-inner-spin-button,
.apv-page-num::-webkit-outer-spin-button { opacity: .6; }
.apv-sep   { color: rgba(255,255,255,.5); }
.apv-total { color: rgba(255,255,255,.75); min-width: 1.5em; }
.apv-scale {
    color: rgba(255,255,255,.85);
    font-size: .82rem;
    min-width: 3.6em;
    text-align: center;
}
.apv-dl {
    margin-left: auto;
    background: #b5281e !important;
    border-color: #951e16 !important;
    font-weight: 600;
}
.apv-dl:hover, .apv-dl:focus {
    background: #d4302a !important;
    border-color: #b5281e !important;
}

/* ── Zone de rendu ───────────────────────────────────────────────────────── */
.adel-pdf-stage {
    min-height: 420px;
    background: #dde3ec;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1.4em 1em 1.8em;
    overflow: auto;
}
.apv-canvas {
    max-width: 100%;
    height: auto !important;
    box-shadow: 0 3px 20px rgba(0,0,0,.22);
    border-radius: 2px;
    background: #fff;
    display: block;
}
/* Iframe fallback occupe toute la zone */
.apv-iframe {
    width: 100%;
    min-height: 700px;
    border: none;
    background: #fff;
}

/* Loader */
.apv-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .65em;
    color: #5a6a7a;
    font-size: .88rem;
    padding: 2.5em;
}
.apv-loading p { margin: 0; }
.apv-spinner {
    width: 34px; height: 34px;
    border: 3px solid rgba(26,58,92,.15);
    border-top-color: #1a3a5c;
    border-radius: 50%;
    animation: apv-spin .75s linear infinite;
}
@keyframes apv-spin { to { transform: rotate(360deg); } }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 540px) {
    .adel-pdf-toolbar { padding: .4em .5em; gap: .25em .4em; }
    .apv-scale { display: none; }
}
