/* ============================================================
   Comment T'as Fait ?® — Diagnostic Standalone
   ============================================================ */

/* Self-hosted Poppins */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url('../assets/fonts/poppins-300.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/poppins-700.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 700; font-display: swap; src: url('../assets/fonts/poppins-italic-700.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('../assets/fonts/poppins-800.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 900; font-display: swap; src: url('../assets/fonts/poppins-900.woff2') format('woff2'); }

:root {
  --red: #FF0000;
  --black: #0A0A0A;
  --white: #FFFFFF;
  --muted: #888480;
  --border: #E5E0D8;
  --ink: #1A1814;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: var(--black); color: var(--white); overflow-x: hidden; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--black);
  border-bottom: 2px solid rgba(255,0,0,0.15);
  display: flex; align-items: center;
  padding: 0 56px; height: 72px;
}
.nav-logo { height: 52px; display: block; }

/* ── BUTTONS ── */
.btn-red {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); background: var(--red);
  padding: 13px 28px; border-radius: 6px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s; border: none; cursor: pointer; font-family: 'Poppins', sans-serif;
}
.btn-red:hover { background: #CC0000; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,0,0,0.3); }
.btn-ghost {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.85); text-decoration: none;
  padding: 13px 24px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.12);
  display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s;
  background: transparent; cursor: pointer; font-family: 'Poppins', sans-serif;
}
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.04); }

/* ── FORM ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-bottom: 7px; }
.form-group input {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  color: var(--white); border-radius: 8px; padding: 11px 14px;
  font-family: 'Poppins', sans-serif; font-size: 0.82rem; outline: none;
}
.form-group input::placeholder { color: rgba(255,255,255,0.18); }
.form-group input:focus { border-color: var(--red); background: rgba(255,255,255,0.06); }
.form-group textarea {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  color: var(--white); border-radius: 8px; padding: 11px 14px;
  font-family: 'Poppins', sans-serif; font-size: 0.82rem; outline: none;
  min-height: 110px; resize: vertical;
}
.form-group textarea::placeholder { color: rgba(255,255,255,0.18); }
.form-group textarea:focus { border-color: var(--red); background: rgba(255,255,255,0.06); }
.form-submit { width: 100%; margin-top: 8px; }
.form-success { text-align: center; padding: 48px 24px; }
.fs-icon { font-size: 2.5rem; margin-bottom: 16px; }
.form-success h3 { font-size: 1.3rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.form-success p { font-size: 0.88rem; color: rgba(255,255,255,0.7); }
.form-note { font-size: 0.65rem; color: rgba(255,255,255,0.6); margin-top: 12px; }
.diag-checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.82rem; color: rgba(255,255,255,0.8); text-transform: none; letter-spacing: 0; font-weight: 500; }
.diag-checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--red); flex-shrink: 0; }
/* ── SESSION FORM (résultats) ── */
.diag-session-form-wrap { margin-top: 56px; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 56px; }
.diag-session-hdr { margin-bottom: 36px; }
.diag-session-hdr h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; color: var(--white); letter-spacing: -0.03em; margin: 12px 0 16px; line-height: 1.2; }
.diag-session-hdr h2 em { color: var(--red); font-style: normal; }
.diag-session-hdr p { font-size: 0.88rem; color: rgba(255,255,255,0.7); line-height: 1.75; max-width: 560px; }
.diag-session-form { max-width: 580px; }
.diag-session-tagline { font-size: 1rem; font-weight: 600; color: var(--white); line-height: 1.65; margin-bottom: 16px; max-width: 560px; }
.diag-session-desc { font-size: 0.88rem; color: rgba(255,255,255,0.65); line-height: 1.75; max-width: 560px; margin-bottom: 24px; }
.diag-session-checks { list-style: none; margin-bottom: 36px; display: flex; flex-direction: column; gap: 10px; }
.diag-session-checks li { font-size: 0.85rem; color: rgba(255,255,255,0.8); padding-left: 20px; position: relative; line-height: 1.5; }
.diag-session-checks li::before { content: '✓'; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* ── DIAGNOSTIC ── */
.diag-wrap {
  background: var(--black);
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 120px 40px 80px;
}
.diag-step { display: none; width: 100%; max-width: 760px; }
.diag-step.active { display: block; }

.diag-intro-box { max-width: 640px; margin: 0 auto; text-align: center; padding: 40px 0; }
.diag-eyebrow {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red); margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 10px;
}
.diag-eyebrow::before, .diag-eyebrow::after { content: ''; display: block; width: 20px; height: 1px; background: var(--red); }
.diag-h1 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.1;
  letter-spacing: -0.04em; color: var(--white); margin-bottom: 24px;
}
.diag-h1 em { color: var(--red); font-style: italic; }
.diag-lead {
  font-size: 0.95rem; color: rgba(255,255,255,0.85); line-height: 1.75;
  border-left: 2px solid rgba(255,0,0,0.4); padding-left: 16px;
  text-align: left; margin-bottom: 16px;
}
.diag-sub { font-size: 0.85rem; color: rgba(255,255,255,0.75); line-height: 1.8; margin-bottom: 32px; }
.diag-intro-pills {
  display: flex; gap: 12px; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.65); margin-bottom: 36px;
}

.diag-header { margin-bottom: 48px; }
.diag-progress-track { height: 3px; background: rgba(255,255,255,0.07); border-radius: 2px; margin-bottom: 10px; }
.diag-progress-fill { height: 100%; background: var(--red); border-radius: 2px; transition: width 0.4s ease; width: 0%; }
.diag-progress-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.65); }

.diag-section { display: none; }
.diag-section.active { display: block; }
.diag-section-badge {
  display: inline-block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red); background: rgba(255,0,0,0.1); border: 1px solid rgba(255,0,0,0.2);
  padding: 4px 12px; border-radius: 4px; margin-bottom: 12px;
}
.diag-section-h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.03em; color: var(--white); margin-bottom: 40px; }

.diag-q { margin-bottom: 36px; }
.diag-q-num { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.diag-q-text { font-size: 1rem; font-weight: 600; color: var(--white); line-height: 1.4; margin-bottom: 16px; }
.diag-q.diag-q-unanswered .diag-q-text { color: #F59E0B; }

.diag-choices { display: grid; gap: 8px; }
.diag-choices-1 { grid-template-columns: 1fr; }
.diag-choices-2 { grid-template-columns: repeat(2, 1fr); }
.diag-choices-3 { grid-template-columns: repeat(3, 1fr); }
.diag-choice {
  padding: 13px 16px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.8);
  cursor: pointer; font-size: 0.85rem; font-weight: 500;
  line-height: 1.4; transition: all 0.15s; user-select: none;
}
.diag-choice:hover { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.05); }
.diag-choice.selected { border-color: var(--red); border-left-width: 3px; background: rgba(255,0,0,0.08); color: var(--white); font-weight: 600; }

.diag-section-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.06); gap: 12px; }
.diag-section-error { font-size: 0.75rem; color: #F59E0B; margin-top: 12px; font-weight: 500; min-height: 20px; }
.diag-contact-sub { font-size: 0.88rem; color: rgba(255,255,255,0.8); line-height: 1.7; margin-bottom: 28px; border-left: 2px solid rgba(255,0,0,0.3); padding-left: 14px; }

.diag-result-wrap { padding: 20px 0 60px; }
.diag-result-greeting { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-bottom: 32px; }
.diag-score-block { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 40px; margin-bottom: 24px; }
.diag-score-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 12px; }
.diag-score-display { display: flex; align-items: baseline; gap: 6px; margin-bottom: 20px; }
.diag-score-num { font-size: 5rem; font-weight: 700; line-height: 1; letter-spacing: -0.05em; color: var(--white); transition: color 0.3s; }
.diag-score-max { font-size: 1.5rem; font-weight: 500; color: rgba(255,255,255,0.55); }
.diag-score-bar-track { height: 10px; background: rgba(255,255,255,0.07); border-radius: 5px; overflow: hidden; margin-bottom: 8px; }
.diag-score-bar-fill { height: 100%; border-radius: 5px; width: 0%; transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); }
.diag-score-bar-fill.score-low    { background: rgba(255,255,255,0.35); }
.diag-score-bar-fill.score-mid    { background: #F59E0B; }
.diag-score-bar-fill.score-good   { background: #10B981; }
.diag-score-bar-fill.score-premium { background: var(--red); }
.diag-score-zones { display: flex; justify-content: space-between; font-size: 0.6rem; color: rgba(255,255,255,0.55); font-weight: 600; margin-bottom: 20px; }
.diag-score-band { font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,0.8); line-height: 1.5; }
.diag-score-band strong { color: var(--white); font-weight: 700; }
.diag-feedback-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 36px 40px; margin-bottom: 40px; }
.diag-feedback-icon { font-size: 1.5rem; margin-bottom: 14px; }
.diag-feedback-text { font-size: 0.95rem; color: rgba(255,255,255,0.82); line-height: 1.85; }
.diag-result-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.diag-result-cta-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-bottom: 4px; }
.diag-result-cta .btn-ghost { color: rgba(255,255,255,0.82); border-color: rgba(255,255,255,0.25); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav { padding: 0 20px; height: 64px; }
  .diag-wrap { padding: 100px 20px 60px; }
  .diag-choices-2, .diag-choices-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .diag-score-block, .diag-feedback-card { padding: 24px 20px; }
}
