/* ─────────────────────────────────────────────────────────────
   Anderson Survey Leads — charte Anderson (Brand Guidelines v3)
   Teal #003E43 · Green #00C56F · Slate #688080 · Off-white #EDEDED
   Titres : Raleway · Corps : Poppins
   ───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Raleway:wght@300;400;500;600;700;900&display=swap');

:root {
  --teal: #003E43;
  --green: #00C56F;
  --green-dark: #00a85e;
  --slate: #688080;
  --off-white: #EDEDED;
  --white: #FFFFFF;
  --danger: #b00020;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 2px 12px rgba(0, 62, 67, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 62, 67, 0.14);
  --font-title: 'Raleway', -apple-system, system-ui, sans-serif;
  --font-body: 'Poppins', -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--teal);
  background: var(--off-white);
  font-size: 15px;
  line-height: 1.5;
}

h1, h2, h3, h4 { font-family: var(--font-title); color: var(--teal); margin: 0 0 .5em; }
h1 { font-weight: 700; font-size: 1.8rem; }
h2 { font-weight: 300; text-transform: uppercase; letter-spacing: 1.2px; font-size: 1.35rem; }
h3 { font-weight: 600; font-size: 1.1rem; }

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: var(--font-body); cursor: pointer; }

.hidden { display: none !important; }
.muted { color: var(--slate); }
.small { font-size: .85rem; }
.danger-text { color: var(--danger); }
.success-text { color: var(--green-dark); }
.right { text-align: right; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stack > * + * { margin-top: 14px; }

/* ── Boutons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; border-radius: var(--radius-sm);
  padding: 10px 18px; font-weight: 600; font-size: .9rem;
  background: var(--teal); color: var(--white);
  transition: background .15s, transform .05s;
}
.btn:hover { background: #00565c; }
.btn:active { transform: translateY(1px); }
.btn.green { background: var(--green); color: var(--teal); }
.btn.green:hover { background: var(--green-dark); color: var(--white); }
.btn.ghost { background: transparent; color: var(--teal); border: 1.5px solid var(--slate); }
.btn.ghost:hover { background: rgba(104,128,128,.12); }
.btn.danger { background: transparent; color: var(--danger); border: 1.5px solid var(--danger); }
.btn.danger:hover { background: rgba(176,0,32,.08); }
.btn.small { padding: 6px 12px; font-size: .8rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Formulaires ───────────────────────────────────────── */
label { font-weight: 500; display: block; margin-bottom: 4px; font-size: .9rem; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=url], textarea, select {
  width: 100%; padding: 10px 12px; border: 1.5px solid #cdd6d6;
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: .95rem;
  color: var(--teal); background: var(--white); transition: border-color .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--green); }
textarea { min-height: 80px; resize: vertical; }
.field { margin-bottom: 14px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { margin-top: 1px; }

/* ── Checkbox personnalisée ────────────────────────────── */
input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; flex: 0 0 auto; margin: 0; padding: 0;
  border: 2px solid #cdd6d6; border-radius: 6px; background: var(--white);
  position: relative; cursor: pointer; vertical-align: middle;
  transition: border-color .12s, background .12s;
}
input[type="checkbox"]:hover:not(:disabled) { border-color: var(--green); }
input[type="checkbox"]:checked { background: var(--green); border-color: var(--green); }
input[type="checkbox"]:checked::after {
  content: ''; position: absolute; left: 50%; top: 47%;
  width: 5px; height: 9px; border: solid var(--white); border-width: 0 2.5px 2.5px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}
input[type="checkbox"]:disabled { opacity: .45; cursor: not-allowed; }
input[type="checkbox"]:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* ── Dropdown personnalisé (cselect) ───────────────────── */
.cselect { position: relative; width: 100%; }
.cselect-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; border: 1.5px solid #cdd6d6; border-radius: var(--radius-sm);
  background: var(--white); color: var(--teal); font-family: var(--font-body); font-size: .95rem;
  cursor: pointer; text-align: left; transition: border-color .12s;
}
.cselect-trigger:hover { border-color: var(--green); }
.cselect-trigger.open, .cselect-trigger:focus-visible { border-color: var(--green); outline: none; }
.cselect-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cselect-chev { display: inline-flex; color: var(--slate); flex: 0 0 auto; transition: transform .15s; }
.cselect-chev svg { width: 16px; height: 16px; display: block; }
.cselect-trigger.open .cselect-chev { transform: rotate(180deg); }
.cselect-menu {
  background: var(--white); border: 1.5px solid #d6e0e0; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: 6px; z-index: 1000;
  max-height: 280px; overflow-y: auto; animation: cselectIn .12s ease both;
}
@keyframes cselectIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.cselect-option {
  padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: .92rem;
  color: var(--teal); white-space: nowrap; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.cselect-option:hover { background: #f3fbf7; }
.cselect-option.selected { background: #eafaf2; font-weight: 600; }
.cselect-option.selected::after { content: '✓'; color: var(--green-dark); }
.cselect-group { padding: 9px 12px 4px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--green-dark); white-space: nowrap; }
.cselect-group + .cselect-option { /* première question du groupe */ }
.cselect-menu .cselect-group:not(:first-child) { margin-top: 4px; border-top: 1px solid var(--off-white); }

/* ── Cartes & panneaux ─────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px;
}
.pill {
  display: inline-block; background: var(--green); color: var(--teal);
  border-radius: 999px; padding: 3px 12px; font-size: .72rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
}
.pill.slate { background: var(--slate); color: var(--white); }
.pill.draft { background: var(--off-white); color: var(--slate); border: 1px solid #cdd6d6; }

/* ── Layout app ─────────────────────────────────────────── */
.topbar {
  background: var(--teal); color: var(--white);
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px;
}
.topbar .brand { font-family: var(--font-title); font-weight: 700; font-size: 1.15rem; letter-spacing: .5px; }
.topbar .brand .dot { color: var(--green); }
.topbar nav { display: flex; gap: 8px; align-items: center; }
.topbar nav a {
  color: var(--white); padding: 8px 14px; border-radius: var(--radius-sm);
  font-weight: 500; font-size: .9rem; cursor: pointer;
}
.topbar nav a.active, .topbar nav a:hover { background: rgba(255,255,255,.14); text-decoration: none; }

.container { max-width: 980px; margin: 28px auto; padding: 0 20px; }

/* ── Login ─────────────────────────────────────────────── */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { width: 100%; max-width: 380px; }
.login-card .logo { text-align: center; margin-bottom: 8px; font-family: var(--font-title); font-weight: 700; font-size: 1.5rem; }
.login-card .logo .dot { color: var(--green); }
.tagline { text-align: center; color: var(--slate); font-size: .85rem; margin-bottom: 24px; }

/* ── Boutons-icônes (actions compactes) ────────────────── */
.icon-actions { display: inline-flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; flex: 0 0 auto;
  border: 1.5px solid #d6e0e0; border-radius: 9px;
  background: var(--white); color: var(--teal); cursor: pointer;
  transition: border-color .12s, background .12s, color .12s, transform .05s;
}
.icon-btn svg { width: 18px; height: 18px; display: block; }
.icon-btn:hover { border-color: var(--green); background: #f3fbf7; color: var(--green-dark); }
.icon-btn:active { transform: translateY(1px); }
.icon-btn.danger { color: var(--danger); border-color: #e7c9cf; }
.icon-btn.danger:hover { background: #fbeef0; border-color: var(--danger); color: var(--danger); }

/* ── Tableaux ──────────────────────────────────────────── */
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--off-white); }
table.list th { font-family: var(--font-title); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: var(--slate); }
table.list tr:hover td { background: #f6f8f8; }

/* ── Onglets de langue ─────────────────────────────────── */
.lang-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.lang-tab {
  padding: 5px 14px; border-radius: 999px; border: 1.5px solid #cdd6d6;
  background: var(--white); font-size: .8rem; font-weight: 600; color: var(--slate); cursor: pointer;
}
.lang-tab.active { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* ── Éditeur de questions (cartes repliables + drag) ───── */
.question-card { border: 1.5px solid #e1e8e8; border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--white); transition: border-color .12s, box-shadow .12s; }
.question-card.expanded { border-color: var(--green); box-shadow: var(--shadow); }
.question-card.dragging { opacity: .45; }
.q-head-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; border-radius: var(--radius-sm); }
.q-head-bar:hover { background: #f6f9f9; }
.q-num { font-family: var(--font-title); font-weight: 700; font-size: .72rem; color: var(--green-dark); flex: 0 0 auto; }
.q-type-badge { font-size: .7rem; font-weight: 600; background: var(--off-white); color: var(--slate); border-radius: 999px; padding: 2px 9px; flex: 0 0 auto; }
.q-label-preview { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--teal); font-size: .92rem; min-width: 0; }
.q-head-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.q-chevron { display: inline-flex; color: var(--slate); transition: transform .15s; }
.q-chevron svg { width: 18px; height: 18px; display: block; }
.q-chevron.open { transform: rotate(180deg); }
.q-body { padding: 6px 14px 16px; border-top: 1px solid var(--off-white); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.option-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.option-row input { flex: 1; }

/* Poignée de glissement */
.drag-handle { cursor: grab; color: var(--slate); user-select: none; display: inline-flex; align-items: center; flex: 0 0 auto; }
.drag-handle:active { cursor: grabbing; }
.drag-handle svg { width: 18px; height: 18px; display: block; }

/* Boutons-icônes : variantes */
.icon-btn.sm { width: 30px; height: 30px; border-radius: 8px; }
.icon-btn.sm svg { width: 16px; height: 16px; }
.icon-btn.on-dark { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.icon-btn.on-dark:hover { background: rgba(255,255,255,.18); border-color: #fff; color: #fff; }

/* Indicateurs de dépôt (drag & drop) */
.dnd-before { box-shadow: inset 0 3px 0 0 var(--green) !important; }
.dnd-after { box-shadow: inset 0 -3px 0 0 var(--green) !important; }
.section-body.dnd-into { background: #f0fbf5; outline: 2px dashed var(--green); outline-offset: -5px; border-radius: var(--radius-sm); }

/* ── Stats ─────────────────────────────────────────────── */
.bar-track { background: var(--off-white); border-radius: 999px; height: 22px; overflow: hidden; flex: 1; }
.bar-fill { background: var(--green); height: 100%; border-radius: 999px; min-width: 2px; transition: width .3s; }
.stat-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.stat-label { width: 200px; font-size: .85rem; }
.stat-count { width: 90px; text-align: right; font-size: .85rem; color: var(--slate); }
.kpi { display: inline-flex; flex-direction: column; align-items: center; padding: 16px 28px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); margin-right: 14px; }
.kpi .num { font-family: var(--font-title); font-weight: 900; font-size: 2.4rem; color: var(--teal); line-height: 1; }
.kpi .lbl { font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; color: var(--slate); margin-top: 6px; }

/* ── Toast ─────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: var(--white); padding: 12px 22px;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 1000;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
#toast.error { background: var(--danger); }

/* ── Modale de confirmation ────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000; padding: 20px;
  background: rgba(0, 62, 67, .45);
  display: flex; align-items: center; justify-content: center;
  animation: overlayIn .15s ease both;
}
.modal-overlay.closing { animation: overlayOut .15s ease both; }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes overlayOut { from { opacity: 1; } to { opacity: 0; } }
.modal-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 440px; padding: 26px 26px 22px;
  animation: modalIn .18s cubic-bezier(.16, .84, .44, 1) both;
}
.modal-overlay.closing .modal-card { animation: none; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-title { font-family: var(--font-title); font-weight: 700; font-size: 1.2rem; color: var(--teal); margin: 0 0 8px; }
.modal-message { color: var(--slate); font-size: .95rem; line-height: 1.55; margin: 0 0 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.btn.danger-solid { background: var(--danger); color: #fff; }
.btn.danger-solid:hover { background: #8c0019; }

/* ── Page publique (survey) ────────────────────────────── */
.survey-body { background: var(--off-white); min-height: 100vh; padding: 28px 16px; }
.survey-card { max-width: 640px; margin: 0 auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 32px; }
.survey-card .survey-title { font-family: var(--font-title); font-weight: 700; font-size: 1.6rem; margin-bottom: 6px; }
.survey-pill-anchor { display: flex; justify-content: flex-end; margin-bottom: -10px; }
.q-block { margin-bottom: 22px; }
.q-label { font-weight: 600; margin-bottom: 8px; display: block; }
.q-label .req { color: var(--green-dark); margin-left: 3px; }
.rating-stars { display: flex; gap: 8px; }
.rating-stars button {
  width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1.5px solid #cdd6d6;
  background: var(--white); font-size: 1.1rem; font-weight: 600; color: var(--slate);
}
.rating-stars button.active { background: var(--green); border-color: var(--green); color: var(--teal); }
.choice-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid #cdd6d6; border-radius: var(--radius-sm); margin-bottom: 8px; cursor: pointer; }
.choice-option:hover { border-color: var(--green); }
.choice-option input { width: auto; }
.consent-box { background: #f6f8f8; border-radius: var(--radius-sm); padding: 16px; margin: 20px 0; }
.survey-footer { text-align: center; margin-top: 24px; color: var(--slate); font-size: .8rem; }
.lang-switch { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 14px; }
.field-error { color: var(--danger); font-size: .8rem; margin-top: 4px; }

@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .stat-label { width: 120px; }
  .topbar { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
  .container { margin: 18px auto; }
}

/* ═══════════════════════════════════════════════════════
   Parcours public paginé (une question par page)
   ═══════════════════════════════════════════════════════ */
/* Pleine page, sans cadre : contenu centré et aéré. */
.survey-body { background: var(--off-white); padding: 0; display: block; }

/* Barre de progression FIXE, tout en haut au bord de la page, pleine largeur. */
.progress-fixed { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 6px; background: rgba(0, 62, 67, .08); }
.progress-fill { background: var(--green); height: 100%; border-radius: 0 4px 4px 0; transition: width .45s cubic-bezier(.4, 0, .2, 1); min-width: 0; }

/* Colonne centrée occupant la hauteur de la page. */
.survey-shell {
  min-height: 100vh; min-height: 100dvh;
  max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column;
  padding: 0 32px;
}
.survey-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 28px 0 0; min-height: 30px; }
.step-counter { font-size: .82rem; color: var(--slate); font-weight: 600; letter-spacing: .3px; }
.lang-switch-inline { display: flex; gap: 6px; }

/* Hôte animé : l'étape est centrée verticalement, libre de prendre l'espace. */
.step-host { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 36px 0; position: relative; }
.step { width: 100%; }
@keyframes stepInFwd { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: translateX(0); } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: translateX(0); } }
.anim-fwd .step { animation: stepInFwd .32s cubic-bezier(.16, .84, .44, 1) both; }
.anim-back .step { animation: stepInBack .32s cubic-bezier(.16, .84, .44, 1) both; }

.survey-title { font-family: var(--font-title); font-weight: 700; font-size: 2.1rem; line-height: 1.2; color: var(--teal); margin: 0 0 12px; }
.step-desc { color: var(--slate); font-size: 1.05rem; margin: 6px 0 28px; line-height: 1.6; }
.q-label-big { display: block; font-family: var(--font-title); font-weight: 600; font-size: 1.75rem; line-height: 1.3; color: var(--teal); margin-bottom: 26px; }
.q-label-big .req { color: var(--green-dark); }

.big-input { font-size: 1.2rem; padding: 16px 18px; border-width: 2px; border-radius: 12px; }
textarea.big-input { min-height: 130px; }
.enter-hint { font-size: .78rem; color: var(--slate); margin-top: 10px; }

.rating-stars.big { gap: 12px; flex-wrap: wrap; }
.rating-stars.big button { width: 64px; height: 64px; font-size: 1.35rem; border-width: 2px; transition: transform .1s, background .15s; }
.rating-stars.big button:hover { transform: translateY(-2px); border-color: var(--green); }

/* Cartes de choix (style Typeform) */
.choice-card {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 18px 20px; margin-bottom: 12px; border: 2px solid #cdd6d6; border-radius: 12px;
  background: var(--white); font-family: var(--font-body); font-size: 1.08rem; color: var(--teal);
  cursor: pointer; transition: border-color .12s, background .12s, transform .08s;
}
.choice-card:hover { border-color: var(--green); background: #f7fdfa; }
.choice-card:active { transform: scale(.99); }
.choice-card.selected { border-color: var(--green); background: #eafaf2; }
.choice-key {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid #cdd6d6;
  font-size: .9rem; font-weight: 700; color: var(--slate); background: var(--off-white);
}
.choice-card.selected .choice-key { background: var(--green); border-color: var(--green); color: var(--teal); }
.choice-key.check { font-size: 1rem; }

.section-badge { display: inline-block; font-family: var(--font-title); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .74rem; color: var(--green-dark); margin-bottom: 10px; }
.section-title { font-family: var(--font-title); font-weight: 300; text-transform: uppercase; letter-spacing: 1px; font-size: 1.8rem; color: var(--teal); margin-bottom: 12px; }

.step-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; gap: 12px; }
.step-nav.single { justify-content: flex-start; }
.btn.big { padding: 15px 30px; font-size: 1.08rem; }

.success-check { width: 76px; height: 76px; border-radius: 50%; background: var(--green); color: var(--white); font-size: 2.3rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; animation: stepInFwd .4s both; }

.survey-footer { text-align: center; padding: 18px 0 30px; color: var(--slate); font-size: .8rem; }

/* Responsive mobile */
@media (max-width: 600px) {
  .survey-shell { padding: 0 20px; }
  .survey-topline { padding-top: 20px; }
  .step-host { padding: 24px 0; }
  .survey-title { font-size: 1.65rem; }
  .q-label-big { font-size: 1.4rem; margin-bottom: 20px; }
  .section-title { font-size: 1.4rem; }
  .step-desc { font-size: 1rem; margin-bottom: 22px; }
  .big-input { font-size: 1.05rem; padding: 14px 15px; }
  .choice-card { padding: 15px 16px; font-size: 1rem; }
  .rating-stars.big button { width: 54px; height: 54px; font-size: 1.2rem; }
  .btn.big { padding: 14px 22px; font-size: 1rem; }
  .step-nav { margin-top: 28px; }
}

/* ═══════════════════════════════════════════════════════
   Éditeur admin — sections & ergonomie
   ═══════════════════════════════════════════════════════ */
.section-block { border: 1.5px solid #cfdcdc; border-radius: var(--radius); margin-bottom: 24px; overflow: hidden; background: #e9efef; box-shadow: var(--shadow); }
.section-block.dragging { opacity: .5; }
/* Barre de titre teal : forte délimitation visuelle de chaque section. */
.section-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--teal); color: #fff; padding: 11px 16px; cursor: pointer; }
.section-bar:hover { background: #00484e; }
.section-bar .section-tag { color: #fff; flex: 0 0 auto; }
.section-bar .drag-handle { color: rgba(255,255,255,.7); }
.section-bar .drag-handle:hover { color: #fff; }
.section-chevron { display: inline-flex; color: rgba(255,255,255,.85); transition: transform .15s; flex: 0 0 auto; }
.section-chevron svg { width: 18px; height: 18px; display: block; }
.section-chevron.open { transform: rotate(180deg); }
.section-collapsed-info { color: rgba(255,255,255,.8); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.section-block.collapsed { box-shadow: var(--shadow); }
.section-tag { font-family: var(--font-title); font-weight: 700; text-transform: uppercase; letter-spacing: .8px; font-size: .78rem; }
.section-meta { padding: 16px 18px 6px; border-bottom: 1px solid #d8e2e2; background: transparent; }
.section-body { padding: 14px 18px 18px; background: transparent; }
.add-question-bar { display: flex; gap: 8px; flex-wrap: wrap; padding: 6px 0 2px; }
.add-question-bar .btn { flex: 0 0 auto; }
.qtype-menu { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.qtype-menu button {
  border: 1.5px solid #cdd6d6; background: var(--white); border-radius: 999px;
  padding: 6px 12px; font-size: .78rem; font-weight: 600; color: var(--teal); cursor: pointer;
}
.qtype-menu button:hover { border-color: var(--green); background: #f7fdfa; }
.editor-sticky { position: sticky; top: 0; z-index: 20; background: var(--off-white); padding: 12px 0; margin: -12px 0 6px; }
.editor-sticky .spread { background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 12px 16px; }
.q-mini { font-size: .8rem; color: var(--slate); }
.section-select-inline { max-width: 220px; }

/* Disposition 2 colonnes de l'éditeur */
.editor-grid { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
.editor-col { display: flex; flex-direction: column; }
.editor-col .card { margin-bottom: 18px; }
@media (max-width: 900px) { .editor-grid { grid-template-columns: 1fr; } }

/* Chips drapeaux (langues) */
.lang-flags { display: flex; gap: 8px; flex-wrap: wrap; }
.flag-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 9px;
  border: 1.5px solid #cdd6d6; border-radius: 999px; background: var(--white);
  cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: .82rem; color: var(--teal);
  transition: border-color .12s, background .12s;
}
.flag-chip:hover { border-color: var(--green); }
.flag-chip.active { border-color: var(--green); background: #eafaf2; }
.flag-chip.locked { cursor: default; }
.flag-chip.locked:hover { border-color: var(--green); }
.flag-chip .flag { width: 22px; height: 15px; border-radius: 3px; overflow: hidden; display: inline-block; box-shadow: 0 0 0 1px rgba(0,0,0,.1); flex: 0 0 auto; }
.flag-chip .flag svg { width: 100%; height: 100%; display: block; }

/* Texte de consentement fixe (lecture seule) */
.consent-fixed {
  background: #f6f8f8; border: 1px solid #e3eaea; border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--teal); font-size: .92rem; line-height: 1.5;
}
