/* =============================================================================
   ZForm — Feuille de Styles Unifiée (Front-Office Public, Mode Kiosque Tablette & Back-Office)
   Responsive Desktop / Tablette / Mobile & Conformité RGAA / WCAG 2.1
   ============================================================================= */

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --zf-primary: #0284c7;
    --zf-secondary: #0f172a;
    --zf-bg: #f1f5f9;
    --zf-card-bg: #ffffff;
    --zf-text: #1e293b;
    --zf-font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --zf-radius: 12px;
}

body {
    margin: 0;
    padding: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.zf-hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Focus clavier accessible RGAA / WCAG */
*:focus-visible {
    outline: 3px solid var(--zf-primary);
    outline-offset: 2px;
}

/* -----------------------------------------------------------------------------
   1. FRONT-OFFICE PUBLIC & MODE KIOSQUE TABLETTE
   ----------------------------------------------------------------------------- */
.zf-public-body {
    min-height: 100vh;
    background-color: var(--zf-bg);
    color: var(--zf-text);
    font-family: var(--zf-font);
    padding-bottom: 3rem;
}

.zf-preview-banner {
    background: #0f172a;
    color: #f8fafc;
    padding: 0.6rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.zf-kiosk-topbar {
    background: linear-gradient(90deg, #312e81 0%, #4f46e5 100%);
    color: #fff;
    padding: 0.7rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.zf-kiosk-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.zf-kiosk-sub {
    font-size: 0.82rem;
    background: rgba(255,255,255,0.18);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-weight: 500;
}

.zf-btn-kiosk-tool {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
}
.zf-btn-kiosk-tool:hover {
    background: rgba(255,255,255,0.28);
}

.zf-survey-container {
    max-width: 880px;
    margin: 1.75rem auto;
    padding: 0 1.25rem;
}

.zf-survey-header {
    background: linear-gradient(135deg, var(--zf-secondary) 0%, var(--zf-primary) 100%);
    color: #fff;
    padding: 1.75rem 2rem;
    border-radius: var(--zf-radius);
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}

.zf-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.zf-survey-logo {
    max-height: 52px;
    margin-bottom: 0.5rem;
}

.zf-survey-title {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 700;
}

.zf-survey-subtitle {
    margin: 0.4rem 0 0;
    opacity: 0.92;
    font-size: 0.98rem;
}

.zf-lang-select {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
.zf-lang-select option {
    color: #0f172a;
}

.zf-progress-wrap {
    margin-top: 1.25rem;
    background: rgba(255,255,255,0.22);
    height: 10px;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
}

.zf-progress-bar {
    height: 100%;
    background: #38bdf8;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.zf-progress-label {
    display: block;
    font-size: 0.78rem;
    margin-top: 0.35rem;
    opacity: 0.9;
}

.zf-welcome-banner {
    background: var(--zf-card-bg);
    border-left: 5px solid var(--zf-primary);
    padding: 1.1rem 1.5rem;
    border-radius: var(--zf-radius);
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.zf-group-header {
    margin: 1.5rem 0 0.85rem;
}

.zf-group-title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--zf-secondary);
}

.zf-group-desc {
    margin: 0.25rem 0 0;
    color: #64748b;
    font-size: 0.92rem;
}

.zf-question-card {
    background: var(--zf-card-bg);
    border-radius: var(--zf-radius);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
}

.zf-q-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.zf-q-title-wrap {
    font-size: 1.08rem;
    font-weight: 600;
}

.zf-q-index {
    color: var(--zf-primary);
    margin-right: 0.35rem;
}

.zf-q-code {
    font-size: 0.82rem;
    background: #f1f5f9;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    margin-right: 0.4rem;
}

.zf-q-mandatory {
    color: #dc2626;
    font-weight: 700;
    margin-left: 0.25rem;
}

.zf-q-help {
    margin-top: 0.85rem;
    font-size: 0.86rem;
    color: #64748b;
    background: #f8fafc;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
}

/* Choix Radio & Cases à cocher */
.zf-radio-list, .zf-checkbox-list, .zf-yesno-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.zf-choice-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    transition: all 0.15s ease;
}

.zf-choice-item:hover {
    border-color: var(--zf-primary);
    background: #f8fafc;
}

.zf-choice-item input[type="radio"],
.zf-choice-item input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--zf-primary);
    cursor: pointer;
}

/* Thèmes de questions (Question Themes) */
.zf-qtheme-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.85rem;
}

.zf-qtheme-touch-xl .zf-choice-item,
.zf-kiosk-mode .zf-choice-item {
    padding: 1.1rem 1.35rem;
    font-size: 1.1rem;
    border-width: 2px;
    border-radius: 14px;
}

/* Échelles 5 et 10 points (Étoiles, Smileys, NPS) */
.zf-scale-5, .zf-scale-10 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.zf-scale-btn {
    flex: 1;
    min-width: 64px;
    text-align: center;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    padding: 0.85rem 0.5rem;
    cursor: pointer;
    font-weight: 600;
    background: #fff;
    transition: all 0.15s ease;
}
.zf-scale-btn:hover {
    border-color: var(--zf-primary);
    transform: translateY(-2px);
}
.zf-scale-btn input {
    margin-right: 0.35rem;
    accent-color: var(--zf-primary);
}

/* Champs de saisie */
.zf-input-text, .zf-select, .zf-textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.96rem;
    font-family: inherit;
    background: #fff;
    color: #0f172a;
}

.zf-select-sm {
    padding: 0.4rem 0.65rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.88rem;
    background: #fff;
}

.zf-multiple-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}
.zf-multiple-row .zf-choice-item {
    flex: 1;
    min-width: 240px;
}
.zf-comment-inline {
    flex: 1;
    min-width: 200px;
}

/* Tableaux (Arrays) */
.zf-table-responsive {
    overflow-x: auto;
}

.zf-array-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.25rem;
}
.zf-array-table th, .zf-array-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}
.zf-array-table th {
    background: #f8fafc;
    font-size: 0.88rem;
    color: #475569;
}
.zf-array-row-label {
    text-align: left !important;
    font-weight: 500;
}

/* Classement par rang (Ranking) */
.zf-ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.zf-ranking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}
.zf-rank-Pos {
    background: var(--zf-primary);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}
.zf-rank-label {
    flex: 1;
    font-weight: 500;
}
.zf-btn-rank {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
}

/* Géolocalisation & Équations */
.zf-geo-controls {
    display: flex;
    gap: 0.6rem;
}
.zf-btn-geo {
    white-space: nowrap;
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
}
.zf-equation-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.92rem;
}

/* Boutons d'action */
.zf-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.zf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.15s ease;
}

.zf-btn-primary {
    background: var(--zf-primary);
    color: #fff;
}
.zf-btn-primary:hover {
    filter: brightness(0.93);
}

.zf-btn-secondary {
    background: #e2e8f0;
    color: #1e293b;
}
.zf-btn-secondary:hover {
    background: #cbd5e1;
}

.zf-btn-outline {
    background: #fff;
    color: #334155;
    border-color: #cbd5e1;
}
.zf-btn-outline:hover {
    background: #f8fafc;
}

/* Écran de fin, Score Quiz & Compte à rebours Auto-Reset Tablette (Section 5) */
.zf-completed-card {
    text-align: center;
    padding: 2.5rem 2rem;
}
.zf-completed-icon {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}
.zf-anon-confirm-pill {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    margin: 1rem 0;
}
.zf-quiz-results-panel {
    margin: 1.5rem auto;
    max-width: 640px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}
.zf-quiz-score-circle {
    margin-bottom: 1rem;
}
.zf-score-big {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--zf-primary);
}
.zf-score-max {
    font-size: 1.1rem;
    color: #64748b;
}
.zf-assessment-box {
    background: #fff;
    border-left: 4px solid var(--zf-primary);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: left;
}
.zf-quiz-breakdown {
    text-align: left;
    margin-top: 1rem;
}
.zf-quiz-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.zf-quiz-correct {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}
.zf-quiz-wrong {
    background: #fee2e2;
    border: 1px solid #fecaca;
}
.zf-kiosk-reset-box {
    margin-top: 1.75rem;
    padding: 1.5rem;
    background: #eef2ff;
    border: 2px solid #6366f1;
    border-radius: 14px;
}
.zf-kiosk-countdown-text {
    font-size: 1.08rem;
    color: #1e1b4b;
    margin-bottom: 0.75rem;
}
.zf-kiosk-progress-track {
    height: 12px;
    background: #c7d2fe;
    border-radius: 999px;
    overflow: hidden;
}
.zf-kiosk-progress-fill {
    width: 100%;
    height: 100%;
    background: #4f46e5;
}

/* Bandeau RGPD */
.zf-gdpr-banner {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 1.15rem;
    margin: 1.25rem 0;
}
.zf-gdpr-consent-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
}
.zf-gdpr-policy-box {
    margin-top: 0.6rem;
    padding: 0.85rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #475569;
}

.zf-survey-footer {
    text-align: center;
    color: #64748b;
    font-size: 0.84rem;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
}

/* Portail Public */
.zf-portal-hero {
    background: linear-gradient(135deg, #0f172a 0%, #0284c7 100%);
    color: #fff;
    padding: 2.5rem 1.5rem;
}
.zf-portal-hero-inner {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.zf-hero-pill {
    display: inline-block;
    background: rgba(255,255,255,0.16);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
}
.zf-portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.25rem;
}
.zf-portal-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.zf-portal-card-footer {
    display: flex;
    gap: 0.65rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

/* -----------------------------------------------------------------------------
   2. BACK-OFFICE D'ADMINISTRATION & DE CONCEPTION
   ----------------------------------------------------------------------------- */
.zf-admin-body {
    background: #f1f5f9;
    color: #0f172a;
    font-family: system-ui, -apple-system, sans-serif;
}

.zf-admin-layout {
    display: flex;
    min-height: 100vh;
}

.zf-sidebar {
    width: 270px;
    background: #0f172a;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.zf-sidebar-brand {
    padding: 1.25rem 1.25rem;
    border-bottom: 1px solid #1e293b;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.zf-brand-logo {
    font-size: 1.75rem;
}
.zf-sidebar-brand strong {
    display: block;
    color: #fff;
    font-size: 1.05rem;
}
.zf-sidebar-brand span {
    font-size: 0.76rem;
    color: #94a3b8;
}

.zf-sidebar-nav {
    padding: 1rem 0.75rem;
    flex: 1;
}
.zf-nav-section {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.06em;
    padding: 0.75rem 0.6rem 0.35rem;
}
.zf-nav-item {
    display: block;
    padding: 0.6rem 0.85rem;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}
.zf-nav-item:hover {
    background: #1e293b;
    color: #fff;
}
.zf-nav-item.active {
    background: #0284c7;
    color: #fff;
    font-weight: 600;
}

.zf-sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #1e293b;
    font-size: 0.85rem;
}
.zf-sidebar-link {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    padding: 0.3rem 0;
}

.zf-admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.zf-admin-topbar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.zf-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.zf-quick-survey-picker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.zf-user-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
}

.zf-role-badge {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
}
.zf-role-administrateur {
    background: #dcfce7;
    color: #15803d;
}
.zf-role-gestionnaire {
    background: #e0f2fe;
    color: #0369a1;
}
.zf-role-utilisateur {
    background: #f1f5f9;
    color: #475569;
}

.zf-admin-content {
    padding: 1.5rem;
    max-width: 1440px;
}

.zf-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.zf-page-header h1 {
    margin: 0;
    font-size: 1.45rem;
}
.zf-page-header p {
    margin: 0.25rem 0 0;
    color: #64748b;
    font-size: 0.92rem;
}
.zf-header-btns {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.zf-admin-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.zf-admin-card h3 {
    margin-top: 0;
    font-size: 1.08rem;
}

.zf-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.zf-tabs-bar {
    display: flex;
    gap: 0.35rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.zf-tab-link {
    padding: 0.65rem 1rem;
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}
.zf-tab-link:hover {
    color: #0284c7;
}
.zf-tab-link.active {
    color: #0284c7;
    border-bottom-color: #0284c7;
    background: #fff;
    border-radius: 8px 8px 0 0;
}

.zf-grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
    gap: 1.25rem;
}

.zf-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}
.zf-form-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}
.zf-admin-card label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.3rem;
}
.zf-checkbox-inline {
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.zf-admin-table {
    width: 100%;
    border-collapse: collapse;
}
.zf-admin-table th, .zf-admin-table td {
    text-align: left;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.88rem;
    vertical-align: top;
}
.zf-admin-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
}

.zf-badge, .zf-badge-xs {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    background: #e2e8f0;
    color: #334155;
}
.zf-badge-kiosk {
    background: #e0e7ff;
    color: #3730a3;
}
.zf-badge-anon {
    background: #dcfce7;
    color: #15803d;
}
.zf-badge-warn {
    background: #fef3c7;
    color: #b45309;
}

.zf-status-pill {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.zf-status-active {
    background: #dcfce7;
    color: #15803d;
}
.zf-status-draft {
    background: #e0f2fe;
    color: #0369a1;
}
.zf-status-closed, .zf-status-expired {
    background: #fee2e2;
    color: #b91c1c;
}

.zf-btn-xs, .zf-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #1e293b;
    cursor: pointer;
    text-decoration: none;
}
.zf-btn-xs:hover, .zf-btn-sm:hover {
    background: #f8fafc;
}
.zf-btn-kiosk {
    background: #eef2ff;
    color: #4338ca;
    border-color: #c7d2fe;
}
.zf-btn-danger {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}
.zf-btn-success {
    background: #dcfce7;
    color: #15803d;
    border-color: #bbf7d0;
}
.zf-btn-group-inline {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.zf-alert {
    padding: 0.9rem 1.15rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
}
.zf-alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.zf-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.zf-kiosk-highlight-box {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
}

.zf-wcag-audit-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
}

.zf-code-editor, .zf-code-block {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.84rem;
    background: #0f172a;
    color: #e2e8f0;
    padding: 0.85rem;
    border-radius: 8px;
    overflow-x: auto;
}

/* Statistiques & Barres */
.zf-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}
.zf-kpi-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
}
.zf-kpi-val {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0284c7;
}
.zf-kpi-lbl {
    font-size: 0.76rem;
    color: #64748b;
}
.zf-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1rem;
}
.zf-stat-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}
.zf-bar-row {
    margin-bottom: 0.5rem;
}
.zf-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.84rem;
    margin-bottom: 0.2rem;
}
.zf-bar-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}
.zf-bar-fill {
    height: 100%;
    background: #0284c7;
}

@media (max-width: 900px) {
    .zf-admin-layout {
        flex-direction: column;
    }
    .zf-sidebar {
        width: 100%;
    }
    .zf-grid-2col {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------------------------------------------------------
   3. MODE SIMPLE — PARCOURS CRÉATEUR & UTILISATEUR STYLE MICROSOFT FORMS
   ----------------------------------------------------------------------------- */
.zf-msforms-body {
    background: linear-gradient(180deg, #e6f4f1 0%, #f1f5f9 100%);
}
.zf-msforms-shell {
    max-width: 820px;
}
.zf-msforms-header-card {
    background: var(--zf-card-bg, #ffffff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
    margin-bottom: 1.35rem;
    border: 1px solid rgba(15, 118, 110, 0.14);
}
.zf-msforms-top-accent {
    height: 10px;
    background: linear-gradient(90deg, var(--zf-primary, #0f766e) 0%, #0284c7 100%);
}
.zf-msforms-header-inner {
    padding: 1.85rem 2.2rem;
}
.zf-msforms-title {
    margin: 0 0 0.45rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--zf-text, #0f172a);
}
.zf-msforms-subtitle {
    margin: 0;
    font-size: 0.98rem;
    color: #475569;
    line-height: 1.5;
}
.zf-msforms-welcome {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.94rem;
    color: #334155;
}
.zf-msforms-required-note {
    margin-top: 0.85rem;
    font-size: 0.82rem;
    color: #dc2626;
}
.zf-msforms-stream {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.zf-msforms-question-card {
    border-radius: 10px;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.zf-msforms-question-card:focus-within {
    border-color: var(--zf-primary, #0f766e);
    box-shadow: 0 4px 18px rgba(15, 118, 110, 0.12);
}
.zf-msforms-qnum {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--zf-primary, #0f766e);
    margin-right: 0.35rem;
    font-size: 1.05rem;
}
.zf-msforms-submit-btn {
    background: #0f766e;
    border-color: #0f766e;
    padding: 0.85rem 2.2rem;
    font-size: 1.02rem;
    border-radius: 8px;
}
.zf-msforms-submit-btn:hover {
    background: #115e59;
}

/* Parcours Créateur (Back-Office Mode Simple style Microsoft Forms) */
.zf-msforms-builder-wrap {
    max-width: 880px;
    margin: 0 auto 2rem;
}
.zf-msforms-builder-header {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    margin-bottom: 1.15rem;
}
.zf-msforms-builder-header-body {
    padding: 1.5rem 1.85rem;
}
.zf-msforms-builder-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #0f766e;
    border-radius: 10px;
    padding: 1.15rem 1.5rem;
    margin-bottom: 0.9rem;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.zf-msforms-builder-card:hover {
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}
.zf-msforms-builder-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.zf-msforms-builder-add-card {
    background: #ffffff;
    border: 2px dashed #0f766e;
    border-radius: 12px;
    padding: 1.4rem 1.75rem;
    margin-top: 1.25rem;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.06);
}
.zf-msforms-quicktypes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.zf-msforms-qbtn {
    background: #f0fdfa;
    color: #0f766e;
    border: 1px solid #99f6e4;
    border-radius: 8px;
    padding: 0.45rem 0.8rem;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.zf-msforms-qbtn:hover {
    background: #0f766e;
    color: #ffffff;
    border-color: #0f766e;
}
