/* ============================================
   Regards Métiers — Dark modern editorial
   ============================================ */

:root {
  --bg: #0b0b14;
  --bg-card: #13132a;
  --bg-card-hover: #1a1a3a;
  --bg-surface: #0f0f20;
  --border: rgba(139, 38, 53, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --texte: #f0eef5;
  --texte-secondary: #9a97b0;
  --texte-muted: #6b6880;
  --accent: #c2185b;
  --accent-soft: rgba(194, 24, 91, 0.15);
  --accent-glow: rgba(194, 24, 91, 0.4);
  --gold: #d4a853;
  --gold-soft: rgba(212, 168, 83, 0.12);
  --gradient: linear-gradient(135deg, #8B2635, #c2185b, #7c3aed);
  --gradient-subtle: linear-gradient(135deg, rgba(139, 38, 53, 0.3), rgba(124, 58, 237, 0.15));
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", Times, serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 50px;
  --max-w: 1200px;
  --content-w: 760px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--texte);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }

/* --- Typographie --- */
h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--texte);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 20px; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 16px; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: 12px; }

p { margin-bottom: 1.2em; color: var(--texte-secondary); }
p:last-child { margin-bottom: 0; }

.accent-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sous-titre {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.7;
  color: var(--texte-secondary);
  max-width: 600px;
}

/* --- Badge pill --- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(194, 24, 91, 0.25);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.badge-pill.gold {
  color: var(--gold);
  background: var(--gold-soft);
  border-color: rgba(212, 168, 83, 0.25);
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 22px;
  color: var(--texte);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.wordmark:hover { color: var(--accent); }

.wordmark .wm-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-desktop { display: none; }

.nav-desktop a {
  font-size: 14px;
  font-weight: 500;
  color: var(--texte-secondary);
  margin-left: 32px;
  transition: color var(--transition);
  position: relative;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--texte);
}

.nav-desktop a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--texte);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav mobile */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-size: 24px;
  font-weight: 700;
  color: var(--texte);
  transition: color var(--transition);
}

.nav-mobile a:hover { color: var(--accent); }

/* --- Layout --- */
.contenu {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.contenu-texte {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Sections --- */
.section {
  padding: 64px 0;
}

.section-hero {
  padding: 80px 0 64px;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: rgba(194, 24, 91, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(194, 24, 91, 0.1);
}

/* --- Grille métiers --- */
.grille-metiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}

.metier-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all var(--transition);
  cursor: default;
}

.metier-card:hover {
  border-color: rgba(194, 24, 91, 0.3);
  background: var(--bg-card-hover);
  transform: translateX(4px);
  box-shadow: 0 4px 24px rgba(194, 24, 91, 0.08);
}

.metier-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}

.metier-card h3 {
  margin-bottom: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.metier-card .metier-status {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  white-space: nowrap;
}

/* --- Boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-primary {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px var(--accent-glow);
  color: #fff;
}

.btn-outline {
  color: var(--texte);
  background: transparent;
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* --- Lien éditorial --- */
.lien-editorial {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 20px;
  transition: gap var(--transition), color var(--transition);
}

.lien-editorial::after {
  content: "\2192";
  transition: transform var(--transition);
}

.lien-editorial:hover {
  color: var(--gold);
}

.lien-editorial:hover::after {
  transform: translateX(4px);
}

/* --- Stats row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--texte-muted);
}

/* --- Sections spéciales --- */
.section-gradient {
  background: var(--gradient-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-manifeste h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--gold);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: 20px;
}

.manifeste-block {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.manifeste-block:last-of-type {
  border-bottom: none;
}

/* --- Liste éditoriale --- */
.liste-editoriale li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  color: var(--texte-secondary);
  line-height: 1.7;
}

.liste-editoriale li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
}

/* --- Contact blocks --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-card h3 {
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 15px;
  margin-bottom: 16px;
}

.contact-card .email-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  transition: color var(--transition);
}

.contact-card .email-link:hover {
  color: var(--gold);
}

/* --- Mentions --- */
.mentions {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
  color: var(--texte-muted);
  font-size: 14px;
}

/* --- Glow decorative --- */
.glow-blob {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.glow-accent { background: var(--accent); }
.glow-purple { background: #7c3aed; }

.hero-wrapper {
  position: relative;
  overflow: hidden;
}

.hero-wrapper > *:not(.glow-blob) {
  position: relative;
  z-index: 1;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  margin-top: 48px;
  background: var(--bg-surface);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand .footer-wordmark {
  font-weight: 800;
  font-size: 20px;
  color: var(--texte);
  margin-bottom: 8px;
}

.footer-brand .footer-tagline {
  font-size: 14px;
  color: var(--texte-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--texte-secondary);
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--texte); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-contact a {
  font-size: 14px;
  color: var(--accent);
}

.footer-legal {
  font-size: 13px;
  color: var(--texte-muted);
}

/* --- Note --- */
.note-editoriale {
  font-size: 14px;
  font-style: italic;
  color: var(--texte-muted);
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

/* --- Divider --- */
.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 48px 0;
}

/* ============================================
   Responsive — 768px
   ============================================ */
@media (min-width: 768px) {
  body { font-size: 18px; }

  .header-inner { padding: 18px 48px; }
  .wordmark { font-size: 24px; }

  .contenu { padding: 0 48px; }
  .contenu-texte { padding: 0 48px; }

  .section { padding: 80px 0; }
  .section-hero { padding: 100px 0 72px; }

  .grille-metiers { grid-template-columns: 1fr 1fr; gap: 16px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }

  .footer-inner { padding: 56px 48px 40px; }
  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

/* ============================================
   Responsive — 1024px
   ============================================ */
@media (min-width: 1024px) {
  .header-inner { padding: 18px 64px; }

  .nav-desktop {
    display: flex;
    align-items: center;
  }

  .burger { display: none; }

  .contenu { padding: 0 64px; }
  .contenu-texte { padding: 0 64px; }

  .section { padding: 100px 0; }
  .section-hero { padding: 120px 0 80px; }

  .footer-inner { padding: 64px 64px 40px; }
}
/* ============================================
   Questionnaire mandataires + admin
   ============================================ */
.survey-hero {
  padding: 96px 0 56px;
  background:
    radial-gradient(circle at 15% 10%, rgba(194, 24, 91, 0.22), transparent 34%),
    radial-gradient(circle at 85% 0%, rgba(212, 168, 83, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(19, 19, 42, 0.82), rgba(11, 11, 20, 0));
  border-bottom: 1px solid var(--border-subtle);
}

.survey-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.survey-kicker { display: inline-flex; margin-bottom: 18px; color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.survey-hero h1 { max-width: 880px; font-size: clamp(2rem, 5vw, 4rem); }
.survey-hero p { max-width: 720px; font-size: clamp(1rem, 2vw, 1.22rem); }
.survey-section { padding: 56px 0 96px; }
.survey-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.survey-side { position: sticky; top: 96px; background: rgba(19, 19, 42, 0.62); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 28px; }
.survey-side h2 { margin-bottom: 10px; }
.survey-progress-card, .metric-card { display: grid; gap: 4px; margin-top: 24px; padding: 18px; border: 1px solid rgba(212, 168, 83, 0.22); border-radius: 8px; background: rgba(212, 168, 83, 0.08); }
.survey-progress-card strong, .metric-card strong { color: var(--texte); font-size: 1.8rem; line-height: 1; }
.survey-progress-card span, .metric-card span { color: var(--texte-secondary); font-size: 14px; }
.survey-panel, .auth-card, .stats-card, .empty-state { background: rgba(19, 19, 42, 0.82); border: 1px solid var(--border-subtle); border-radius: 8px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28); }
.survey-panel { padding: clamp(20px, 4vw, 42px); }
.survey-form { display: grid; gap: 22px; }
.question-block { border: 1px solid var(--border-subtle); border-radius: 8px; padding: clamp(18px, 3vw, 28px); background: rgba(15, 15, 32, 0.68); }
.question-block legend { display: flex; gap: 14px; align-items: flex-start; width: 100%; margin-bottom: 18px; color: var(--texte); font-weight: 750; line-height: 1.35; }
.question-block legend span { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 999px; color: #fff; background: var(--gradient); font-size: 14px; font-weight: 800; }
.option-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.choice-card { position: relative; display: flex; min-height: 54px; align-items: center; padding: 13px 16px 13px 48px; border: 1px solid var(--border-subtle); border-radius: 8px; color: var(--texte-secondary); background: rgba(255, 255, 255, 0.025); cursor: pointer; transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition); }
.choice-card:hover { transform: translateY(-1px); border-color: rgba(212, 168, 83, 0.36); color: var(--texte); }
.choice-card input { position: absolute; left: 16px; width: 18px; height: 18px; accent-color: var(--accent); }
.choice-card:has(input:checked) { color: var(--texte); border-color: rgba(194, 24, 91, 0.72); background: rgba(194, 24, 91, 0.12); }
.rating-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.rating-row label { cursor: pointer; }
.rating-row input { position: absolute; opacity: 0; pointer-events: none; }
.rating-row span { display: grid; place-items: center; height: 46px; border: 1px solid var(--border-subtle); border-radius: 8px; color: var(--texte-secondary); background: rgba(255, 255, 255, 0.025); font-weight: 800; transition: all var(--transition); }
.rating-row input:checked + span, .rating-row span:hover { color: #fff; border-color: rgba(194, 24, 91, 0.72); background: var(--gradient); }
.question-block textarea, .auth-form input { width: 100%; border: 1px solid var(--border-subtle); border-radius: 8px; color: var(--texte); background: rgba(11, 11, 20, 0.78); padding: 15px 16px; font: inherit; resize: vertical; }
.question-block textarea:focus, .auth-form input:focus { outline: none; border-color: rgba(212, 168, 83, 0.62); box-shadow: 0 0 0 4px rgba(212, 168, 83, 0.1); }
.survey-submit { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding-top: 10px; }
.survey-submit p { font-size: 14px; color: var(--texte-muted); }
.survey-errors, .survey-success { margin-bottom: 20px; padding: 18px; border-radius: 8px; border: 1px solid rgba(194, 24, 91, 0.3); background: rgba(194, 24, 91, 0.12); }
.survey-success { border-color: rgba(212, 168, 83, 0.35); background: rgba(212, 168, 83, 0.1); }
.survey-success.compact { margin-top: 16px; }
.survey-errors p, .survey-success p { margin: 0; }
.hp-field { position: absolute; left: -9999px; }
.admin-body { min-height: 100vh; background: radial-gradient(circle at 12% 0%, rgba(194, 24, 91, 0.16), transparent 35%), radial-gradient(circle at 92% 8%, rgba(212, 168, 83, 0.12), transparent 28%), var(--bg); }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.auth-card { width: min(460px, 100%); padding: clamp(24px, 5vw, 40px); }
.auth-form { display: grid; gap: 16px; margin-top: 22px; }
.auth-form label { display: grid; gap: 8px; color: var(--texte-secondary); font-size: 14px; font-weight: 700; }
.admin-topbar { max-width: 1280px; margin: 0 auto; padding: 22px 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.admin-dashboard { width: min(1280px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 80px; }
.dashboard-head { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 24px; }
.hero-metric { margin-top: 0; }
.stats-grid-admin { display: grid; grid-template-columns: 1fr; gap: 18px; }
.stats-card, .empty-state { padding: clamp(20px, 3vw, 28px); }
.stats-card h2, .empty-state h2 { font-size: 1.1rem; letter-spacing: 0; }
.bar-list { display: grid; gap: 14px; }
.bar-meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 6px; color: var(--texte-secondary); font-size: 14px; }
.bar-meta strong { color: var(--gold); white-space: nowrap; }
.bar-track { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.07); }
.bar-track span { display: block; height: 100%; border-radius: inherit; background: var(--gradient); }
.verbatims, .responses-table { margin-top: 18px; }
.verbatims blockquote { margin-top: 14px; padding: 16px 18px; border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; color: var(--texte-secondary); background: rgba(255, 255, 255, 0.035); }
.table-scroll { overflow-x: auto; }
.responses-table table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 13px; }
.responses-table th, .responses-table td { padding: 12px; border-bottom: 1px solid var(--border-subtle); text-align: left; vertical-align: top; }
.responses-table th { color: var(--gold); font-weight: 800; }
.responses-table td { color: var(--texte-secondary); }
@media (min-width: 760px) { .option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rating-row { grid-template-columns: repeat(10, minmax(0, 1fr)); } .survey-submit { flex-direction: row; justify-content: space-between; align-items: center; } .dashboard-head { grid-template-columns: 1fr 190px 190px; align-items: stretch; } }
@media (min-width: 1024px) { .survey-grid { grid-template-columns: 320px 1fr; } .stats-grid-admin { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ============================================
   Readability overhaul - survey and admin
   ============================================ */
.survey-hero {
  padding: 72px 0 40px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(11, 11, 20, 0.96), rgba(58, 22, 48, 0.94)),
    radial-gradient(circle at 82% 12%, rgba(212, 168, 83, 0.28), transparent 34%);
}

.survey-shell {
  width: min(1080px, calc(100% - 28px));
}

.survey-hero h1 {
  max-width: 920px;
  margin-bottom: 18px;
  color: #ffffff;
  font-size: clamp(2rem, 4.6vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.survey-hero p {
  max-width: 760px;
  color: #e8e1ea;
  font-size: 1.12rem;
  line-height: 1.7;
}

.survey-kicker {
  padding: 7px 12px;
  border: 1px solid rgba(212, 168, 83, 0.35);
  border-radius: 999px;
  background: rgba(212, 168, 83, 0.12);
}

.survey-section {
  padding: 42px 0 82px;
  background: #f6f3f7;
}

.survey-grid {
  grid-template-columns: 1fr;
  gap: 22px;
}

.survey-side,
.survey-panel,
.auth-card,
.stats-card,
.empty-state {
  color: #171520;
  background: #ffffff;
  border: 1px solid #e4dfea;
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(31, 24, 43, 0.12);
}

.survey-side {
  position: static;
  padding: 24px;
}

.survey-side h2,
.survey-panel h2,
.auth-card h1,
.stats-card h2,
.empty-state h2 {
  color: #171520;
  letter-spacing: 0;
}

.survey-side p,
.survey-panel p,
.auth-card p,
.empty-state p {
  color: #5b5668;
}

.survey-progress-card,
.metric-card {
  background: #fff8ea;
  border-color: #ead3a0;
}

.survey-progress-card strong,
.metric-card strong {
  color: #171520;
}

.survey-progress-card span,
.metric-card span {
  color: #655f70;
}

.survey-panel {
  padding: clamp(18px, 3.5vw, 36px);
}

.question-block {
  padding: clamp(18px, 3vw, 30px);
  background: #fbfafc;
  border: 1px solid #e5dfeb;
  border-radius: 8px;
}

.question-block legend {
  color: #171520;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0;
}

.question-block legend span {
  margin-top: 1px;
  background: #c2185b;
  color: #ffffff;
}

.option-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.choice-card {
  min-height: 58px;
  padding: 14px 16px 14px 52px;
  color: #2a2633;
  background: #ffffff;
  border: 1px solid #ded7e6;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.35;
  box-shadow: 0 1px 0 rgba(31, 24, 43, 0.04);
}

.choice-card:hover {
  color: #171520;
  border-color: #c2185b;
  background: #fff7fb;
  transform: none;
}

.choice-card input {
  left: 18px;
  width: 18px;
  height: 18px;
}

.choice-card:has(input:checked) {
  color: #171520;
  border-color: #c2185b;
  background: #fff0f6;
  box-shadow: inset 0 0 0 1px rgba(194, 24, 91, 0.18);
}

.rating-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.rating-row span {
  height: 50px;
  color: #2a2633;
  background: #ffffff;
  border-color: #ded7e6;
  border-radius: 8px;
  font-size: 1rem;
}

.question-block textarea,
.auth-form input {
  color: #171520;
  background: #ffffff;
  border: 1px solid #d8d0e2;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.55;
}

.question-block textarea::placeholder {
  color: #928a9f;
}

.survey-submit {
  padding: 22px;
  border: 1px solid #ead3a0;
  border-radius: 8px;
  background: #fff8ea;
}

.survey-submit p {
  color: #655f70;
}

.survey-errors,
.survey-success {
  color: #171520;
  background: #fff2f6;
  border-color: #efb7cc;
}

.survey-success {
  background: #f8f2df;
  border-color: #e1c575;
}

.admin-body {
  background: #f6f3f7;
}

.auth-wrap {
  color: #171520;
}

.auth-form label {
  color: #423b4d;
}

.admin-topbar,
.admin-dashboard {
  color: #171520;
}

.admin-topbar .wordmark {
  color: #171520;
}

.dashboard-head p,
.stats-card p,
.responses-table td,
.verbatims blockquote,
.bar-meta {
  color: #5b5668;
}

.bar-track {
  background: #eee8f1;
}

.responses-table th,
.responses-table td {
  border-bottom-color: #e4dfea;
}

.responses-table th {
  color: #7a2446;
}

.verbatims blockquote {
  background: #fbfafc;
}

@media (min-width: 760px) {
  .rating-row {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .survey-grid {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .survey-side {
    position: sticky;
    top: 92px;
  }
}

@media (max-width: 520px) {
  .survey-shell {
    width: min(100% - 20px, 1080px);
  }

  .survey-hero {
    padding: 52px 0 30px;
  }

  .survey-panel,
  .survey-side {
    padding: 16px;
  }

  .question-block {
    padding: 16px 14px;
  }

  .question-block legend {
    gap: 10px;
  }

  .choice-card {
    padding-right: 12px;
  }
}
