/* =========================================================
   TAGNON AFRICA — DIAGNOSTICS V3
   Direction artistique : corporate, premium, flat, dynamique
   ========================================================= */

:root {
  --black: #0b0d10;
  --black-soft: #14171c;
  --yellow: #f4bb18;
  --yellow-light: #fff6d9;
  --cream: #f4f5f7;
  --gray-dark: #20242b;
  --gray-mid: #606771;
  --gray-light: #9ca3ad;
  --white: #ffffff;
  --red: #d7473f;
  --orange: #df7b28;
  --green: #2d936c;
  --dark-green: #176b50;
  --navy: #142c4c;
  --line: #e1e4e8;
  --surface: #ffffff;
  --shadow-sm: 0 8px 24px rgba(10, 18, 30, .06);
  --shadow-md: 0 20px 48px rgba(10, 18, 30, .10);
}

html { scroll-behavior: smooth; }

body {
  background:
    linear-gradient(90deg, rgba(20,44,76,.025) 1px, transparent 1px),
    linear-gradient(rgba(20,44,76,.025) 1px, transparent 1px),
    #f4f5f7;
  background-size: 32px 32px;
  color: var(--gray-dark);
  font-size: 15px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 420px;
  background: linear-gradient(135deg, rgba(20,44,76,.06), transparent 58%);
  pointer-events: none;
  z-index: -1;
}

header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 82px;
  padding: 16px max(5%, calc((100% - 1180px) / 2));
  background: rgba(11,13,16,.97);
  border: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}

header::after {
  content: "DIAGNOSTIC STRATÉGIQUE";
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 9px 13px;
  border: 1px solid rgba(244,187,24,.42);
  color: var(--yellow);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2.2px;
}

.brand {
  font-size: 21px;
  line-height: 1;
  letter-spacing: .4px;
}

.brand-sub {
  margin-top: 7px;
  color: rgba(255,255,255,.58);
  font-size: 8px;
  letter-spacing: 2.5px;
}

.container {
  width: min(100%, 980px);
  padding: 70px 28px 110px;
}

.screen { animation: corporateReveal .46s cubic-bezier(.2,.8,.2,1) both; }

@keyframes corporateReveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

h1 {
  max-width: 850px;
  margin-bottom: 22px;
  color: var(--black);
  font-size: clamp(35px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2.2px;
}

h1 span {
  color: var(--navy);
  position: relative;
}

h1 span::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 8px;
  background: var(--yellow);
}

.lead {
  max-width: 760px;
  margin-bottom: 40px;
  color: var(--gray-mid);
  font-size: 17px;
  line-height: 1.8;
}

.intro-card {
  position: relative;
  margin: 18px 0;
  padding: 32px 34px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 0 !important;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  transform: none;
}

.intro-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--yellow);
}

.intro-card:nth-of-type(2)::before { background: var(--navy); }

.intro-card:hover {
  transform: translateY(-3px);
  border-color: #ccd1d8;
  box-shadow: var(--shadow-md);
}

.intro-card h3,
.chapter-scores h3,
.interpretation h3,
.cta-block h3 {
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.intro-card li {
  padding: 10px 0 10px 34px;
  font-size: 14px;
  font-weight: 500;
}

.intro-card li::before {
  top: 12px;
  width: 17px;
  height: 17px;
  background: transparent;
  border: 1.5px solid var(--yellow);
  color: var(--navy);
  font-size: 9px;
}

.btn {
  min-height: 52px;
  padding: 16px 26px;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 3px;
  box-shadow: none;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.btn::after { content: ""; margin-left: 0; }

.btn:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
  box-shadow: 0 12px 28px rgba(20,44,76,.15);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border-color: #c7ccd3;
  color: var(--gray-dark);
}

.btn-secondary:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.trust-note {
  background: #fffaf0;
  border: 1px solid #eadba9;
  border-radius: 3px;
  box-shadow: none;
}

.form-group label {
  color: #363b43;
  font-size: 11px;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.form-group input,
.form-group select {
  min-height: 54px;
  padding: 15px 16px;
  background: var(--white);
  border: 1px solid #d6dae0;
  border-radius: 3px;
  color: var(--black);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

.form-group input:hover,
.form-group select:hover { border-color: #aeb5bf; }

.form-group input:focus,
.form-group select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(20,44,76,.10);
}

.privacy-consent {
  border-radius: 3px;
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.progress-bar {
  height: 4px;
  background: #dfe3e8;
  border-radius: 0;
}

.progress-fill {
  background: linear-gradient(90deg, var(--navy), var(--yellow));
  border-radius: 0;
}

.progress-info {
  margin-bottom: 42px;
  color: #747b85;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.question-chapter {
  margin-bottom: 20px;
  padding: 8px 11px;
  background: var(--yellow-light);
  border: 1px solid #edd995;
  border-radius: 2px;
  color: var(--navy);
  font-size: 9px;
  letter-spacing: 1.6px;
}

.question-text {
  max-width: 880px;
  margin-bottom: 30px;
  color: var(--black);
  font-size: clamp(22px, 3vw, 31px);
  font-weight: 750;
  letter-spacing: -.6px;
}

.question-help {
  margin: -12px 0 28px;
  padding: 14px 16px;
  background: transparent;
  border: 1px solid #d9dde3;
  border-left: 3px solid var(--yellow);
  border-radius: 2px;
}

.answer-option {
  position: relative;
  margin-bottom: 10px;
  padding: 17px 19px 17px 52px;
  background: rgba(255,255,255,.96);
  border: 1px solid #dfe2e6;
  border-radius: 3px;
  box-shadow: none;
  font-size: 13px;
  line-height: 1.55;
}

.answer-option strong {
  color: var(--gray-dark);
  font-weight: 600;
}

.answer-option:hover {
  background: var(--white);
  border-color: #9ca7b4;
  box-shadow: var(--shadow-sm);
  transform: translateX(3px);
}

.answer-option .opt-icon {
  position: absolute;
  top: 50%;
  left: 19px;
  width: 17px;
  height: 17px;
  border: 1.5px solid #9fa6af;
  border-radius: 50%;
  transform: translateY(-50%);
}

.answer-option.selected {
  background: #f5f8fc;
  border-color: var(--navy);
  box-shadow: inset 4px 0 0 var(--yellow);
}

.answer-option.selected strong { color: var(--navy); }

.answer-option.selected .opt-icon {
  border: 5px solid var(--navy);
  background: var(--yellow);
}

.answer-option.na-option {
  background: #f0f1f3;
  border-style: solid;
  color: #6f7680;
}

.nav-buttons {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.results-hero {
  position: relative;
  padding: 48px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), #0b1727);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  text-align: left;
}

.results-hero::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -70px;
  width: 260px;
  height: 260px;
  border: 55px solid rgba(244,187,24,.12);
  border-radius: 50%;
}

.score-label {
  color: rgba(255,255,255,.66);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.score-value {
  color: var(--white);
  font-size: clamp(58px, 10vw, 92px);
  font-weight: 800;
  letter-spacing: -5px;
}

.level-tag {
  border-radius: 2px;
  box-shadow: none;
  font-size: 9px;
  letter-spacing: 1.4px;
}

.level-name {
  color: var(--white);
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: -.5px;
}

.chapter-scores,
.interpretation,
.cta-block {
  margin-top: 22px;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.chapter-row {
  padding: 18px 0;
  border-bottom: 1px solid #edf0f2;
}

.chapter-name { color: var(--gray-dark); font-size: 13px; }
.chapter-score { color: var(--navy); font-size: 12px; font-weight: 800; }

.chapter-bar-container {
  height: 5px;
  background: #e9ebee;
  border-radius: 0;
}

.chapter-bar { border-radius: 0; }

.interpretation { border-top: 4px solid var(--yellow); }
.interpretation p { color: #4f5660; line-height: 1.8; }

.audit-executive {
  display: grid;
  grid-template-columns: 1.5fr .9fr;
  gap: 22px;
  margin-bottom: 26px;
}

.audit-status {
  padding: 26px;
  background: #f6f8fb;
  border-left: 4px solid var(--navy);
}

.audit-status > span {
  color: #8a6500;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.audit-status h3 {
  margin: 8px 0 10px;
  color: var(--navy);
  font-size: 21px;
  letter-spacing: -.5px;
}

.audit-status p { margin: 0; }

.audit-facts {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
}

.audit-facts > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.audit-facts > div:last-child { border-bottom: 0; }
.audit-facts strong { color: var(--navy); font-size: 21px; }
.audit-facts span { color: var(--gray-mid); font-size: 10px; text-align: right; text-transform: uppercase; letter-spacing: .7px; }

.auditor-conclusion {
  padding: 24px 0 27px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.auditor-conclusion h3,
.audit-panel h3,
.audit-action-plan h3 {
  margin-bottom: 13px;
  color: var(--navy);
  font-size: 14px;
  letter-spacing: .1px;
}

.audit-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.audit-panel {
  padding: 23px;
  background: #fafbfc;
  border: 1px solid var(--line);
}

.audit-strengths { border-top: 3px solid var(--green); }
.audit-gaps { border-top: 3px solid var(--orange); }
.audit-panel ul { margin: 0; padding: 0; list-style: none; }
.audit-panel li { padding: 13px 0; border-bottom: 1px solid #e6e9ed; }
.audit-panel li:last-child { border-bottom: 0; padding-bottom: 0; }
.audit-panel li:first-child { padding-top: 0; }
.audit-panel li strong { display: block; color: #30363e; font-size: 12px; line-height: 1.5; }
.audit-panel li span { display: block; margin-top: 5px; color: #737b85; font-size: 11px; line-height: 1.5; }

.audit-action-plan {
  margin-top: 24px;
  padding: 25px;
  background: var(--navy);
  color: var(--white);
}

.audit-action-plan h3 { color: var(--yellow); }
.action-row { display: grid; grid-template-columns: 82px 1fr; gap: 16px; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.14); }
.action-deadline { color: var(--yellow); font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.action-row strong { color: var(--white); font-size: 12px; }
.action-row p { margin: 6px 0 0; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.6; }

.audit-warning {
  margin-top: 18px;
  padding: 16px 18px;
  background: #fff8e6;
  border: 1px solid #ead9a5;
  color: #665622;
  font-size: 11px;
  line-height: 1.6;
}

.business-note,
.priority-block {
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: none;
}

.business-note {
  background: #fafbfc;
  border-left: 4px solid var(--yellow);
}

.priority-block h3 { color: var(--navy); }

.priority-list li {
  padding: 4px 0 4px 8px;
  color: #4e555f;
}

.urgency-block {
  position: relative;
  background: var(--navy);
  border: 0;
  border-radius: 3px;
}

.urgency-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--yellow);
}

.cta-block {
  background: #0b0d10;
  border: 0;
  color: var(--white);
}

.cta-block h3 { color: var(--yellow); }
.cta-block p { color: rgba(255,255,255,.78); }
.cta-block .btn { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.cta-block .btn:hover { background: var(--white); border-color: var(--white); }
.cta-block .btn-secondary { background: transparent; border-color: rgba(255,255,255,.38); color: var(--white); }
.cta-block .contact-row { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; }
.cta-block .contact-row a { color: rgba(255,255,255,.72); }

footer {
  padding: 36px 20px;
  background: var(--white);
  border-top: 1px solid var(--line);
  color: #737a84;
  font-size: 10px;
  letter-spacing: 1px;
}

.toast-success {
  border-radius: 3px;
  border-left: 4px solid var(--yellow);
  box-shadow: var(--shadow-md);
}

@media (max-width: 720px) {
  header { min-height: 70px; padding: 14px 20px; }
  header::after { display: none; }
  .brand { font-size: 18px; }
  .container { padding: 42px 18px 80px; }
  h1 { font-size: 34px; letter-spacing: -1.4px; }
  .lead { font-size: 15px; }
  .intro-card { padding: 24px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .question-text { font-size: 23px; }
  .answer-option { padding: 15px 15px 15px 46px; font-size: 12px; }
  .answer-option .opt-icon { left: 16px; }
  .nav-buttons { gap: 10px; }
  .nav-buttons .btn { width: 100%; }
  .results-hero { padding: 34px 25px; }
  .score-value { font-size: 62px; }
  .chapter-scores, .interpretation, .cta-block { padding: 25px 20px; }
  .audit-executive, .audit-columns { grid-template-columns: 1fr; }
  .audit-status, .audit-panel, .audit-action-plan { padding: 20px; }
  .action-row { grid-template-columns: 1fr; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
