/* =============================================
   RECRUTER EFFICACEMENT — Warm Minimal Light
   Override Orange Store — V3
   ============================================= */

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

:root {
  --bg: #F7F5F2;
  --surface: #FFFFFF;
  --border: #EBE7E1;
  --accent: #FF7900;
  --accent-dark: #E8650A;
  --accent-bg: #FFF6EE;
  --text-title: #1A1A1A;
  --text-body: #34322E;
  --text-muted: #9A958E;
  --badge-bg: #F0EDE8;
  --badge-text: #6B6864;
  --good: #1E9E6A;
  --ok: #E8650A;
  --bad: #D64545;
  --radius-card: 16px;
  --radius-btn: 12px;
  --radius-input: 10px;
  --shadow-card: 0 2px 10px rgba(0,0,0,0.04);
  --shadow-selected: 0 6px 18px rgba(255,121,0,0.16);
  --shadow-cta: 0 6px 16px rgba(255,121,0,0.22);
}

html { height: 100%; }

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--border); }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 3px; }

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  padding: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 2rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.header-logo-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-title);
  white-space: nowrap;
}

.header-spacer { flex: 1; }

.header-counter {
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Barre de progression (sous le header-inner) */
.progress-wrap {
  height: 3px;
  background: var(--border);
  width: 100%;
}

.progress-fill {
  height: 3px;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Container ---- */
.container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  flex: 1;
}

.content-narrow {
  max-width: 720px;
  margin: 0 auto;
}

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  border-top: 0.5px solid var(--border);
  flex-shrink: 0;
  background: var(--surface);
}

/* ---- Card générique ---- */
.card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

/* ---- Option cards ---- */
.option-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: var(--shadow-card);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  user-select: none;
}

.option-card:hover {
  border-color: rgba(255,121,0,0.35);
  box-shadow: 0 3px 14px rgba(255,121,0,0.08);
}

.option-card.selected {
  border: 2px solid var(--accent);
  background: var(--accent-bg);
  box-shadow: var(--shadow-selected);
}

/* Badge lettre */
.option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
  margin-top: 2px;
}

.option-card.selected .option-letter {
  background: var(--accent);
  color: #ffffff;
}

.option-text, .option-texte {
  font-size: 0.975rem;
  line-height: 1.6;
  color: var(--text-body);
  flex: 1;
}

/* ---- CTA Bouton ---- */
.btn-primary {
  display: block;
  width: 100%;
  max-width: 380px;
  margin: 1.75rem auto 0;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-cta);
}

.btn-primary:not(:disabled):hover {
  opacity: 0.9;
  box-shadow: 0 8px 22px rgba(255,121,0,0.3);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---- Formulaires ---- */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 0.75rem 1rem;
  color: var(--text-body);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,121,0,0.10);
}

/* ---- Eyebrow / Label pilier ---- */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
}

/* ---- Loader ---- */
.loader {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,121,0,0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 2rem auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Error message ---- */
.error-msg {
  color: var(--bad);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(214,69,69,0.06);
  border: 1px solid rgba(214,69,69,0.2);
  border-radius: var(--radius-input);
}

/* ---- Badges statut ---- */
.badge {
  display: inline-block;
  padding: 0.2em 0.7em;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-good { background: rgba(30,158,106,0.1); color: var(--good); }
.badge-ok   { background: rgba(232,101,10,0.1); color: var(--ok); }
.badge-bad  { background: rgba(214,69,69,0.1);  color: var(--bad); }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .header-inner { padding: 0.75rem 1rem; }
  .container { padding: 1.5rem 1rem; }
  .option-card { padding: 1rem 1.125rem; gap: 0.75rem; }
  .btn-primary { max-width: 100%; }
  .card { padding: 1.25rem; }
}
