/* ================================================
   Gauthier Delmas - Landing page (styles dédiés)
   ================================================ */

:root {
  --navy:       #1a3a5c;
  --navy-dark:  #0f2338;
  --navy-light: #2a5a8c;
  --gold:       #c4922a;
  --gold-light: #e8b845;
  --white:      #ffffff;
  --off-white:  #f8f6f0;
  --border:     #d4cfc6;
  --text:       #1a1a1a;
  --text-muted: #555550;

  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body:    -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --max-width: 960px;
  --radius: 4px;
  --transition: 200ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute; top: -100%; left: 0;
  background: var(--navy); color: var(--white);
  padding: 0.75rem 1.25rem; text-decoration: none;
  font-weight: 700; z-index: 9999;
  border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.25; color: var(--navy-dark); }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--navy); }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Mini header ---- */
.lp-header {
  background: var(--navy);
  padding: 1rem 0;
  text-align: center;
}
.lp-header__logo {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}
.lp-header__logo span {
  display: inline-block;
  margin-left: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
}

/* ---- Hero ---- */
.lp-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 65%, var(--navy-light) 100%);
  color: var(--white);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}
.lp-hero__eyebrow {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 2rem;
  margin-bottom: 1.25rem;
}
.lp-hero__title { color: var(--white); max-width: 720px; margin: 0 auto 1rem; }
.lp-hero__title em { color: var(--gold-light); font-style: normal; }
.lp-hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* ---- Formulaire de capture ---- */
.lp-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  text-align: left;
}
.lp-form-wrap h2 {
  font-size: 1.25rem;
  color: var(--navy-dark);
  margin-bottom: 0.35rem;
}
.lp-form-wrap .sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.lp-form { display: flex; flex-direction: column; gap: 0.9rem; }
.lp-form label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}
.lp-form input[type="text"],
.lp-form input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.lp-form input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.15);
}
.lp-form__submit {
  background: var(--gold);
  color: var(--navy-dark);
  border: none;
  border-radius: var(--radius);
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  width: 100%;
  transition: background var(--transition);
}
.lp-form__submit:hover, .lp-form__submit:focus-visible {
  background: var(--gold-light);
}
.lp-form__privacy {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.25rem;
  line-height: 1.5;
}
.lp-form__privacy a { color: var(--navy); }

/* Confirmation */
.lp-form__success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: #155724;
  font-weight: 600;
  text-align: center;
}

/* ---- Bénéfices ---- */
.lp-benefits { padding: 4rem 0; background: var(--off-white); }
.lp-benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.lp-benefit {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.lp-benefit__icon { font-size: 2rem; margin-bottom: 0.75rem; }
.lp-benefit h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.lp-benefit p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

/* ---- Social proof / profil ---- */
.lp-proof {
  padding: 4rem 0;
  background: var(--white);
}
.lp-proof__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 640px) { .lp-proof__inner { grid-template-columns: 1fr; } }
.lp-proof__card {
  background: var(--off-white);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.lp-proof__card h3 { margin-bottom: 0.35rem; }
.lp-proof__card .role { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1rem; }
.lp-proof__card ul { margin: 0; padding-left: 1.2rem; }
.lp-proof__card li { font-size: 0.9rem; color: var(--text-muted); }

.lp-proof__photo {
  margin: 0 0 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.lp-proof__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 15%;
}

/* ---- Témoignages ---- */
.lp-testimonials { padding: 4rem 0; background: var(--off-white); }
.lp-testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.lp-testi {
  background: var(--white);
  border-left: 4px solid var(--gold);
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-left-color: var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.lp-testi p { font-style: italic; font-size: 0.95rem; margin-bottom: 0.75rem; }
.lp-testi strong { font-size: 0.88rem; color: var(--navy); display: block; }
.lp-testi span { font-size: 0.8rem; color: var(--text-muted); }

/* Extraits de témoignages (pages prestations) */
.client-quote {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.1rem 1.35rem;
  margin: 1.5rem 0 0;
}
.client-quote p {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0.65rem;
  font-style: italic;
}
.client-quote footer {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.client-quote cite {
  font-style: normal;
  font-weight: 700;
  color: var(--navy);
}
.client-quote__detail {
  display: block;
  margin-top: 0.15rem;
}

/* ---- CTA final ---- */
.lp-final-cta {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.lp-final-cta h2 { color: var(--white); margin-bottom: 0.75rem; }
.lp-final-cta p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--transition);
}
.btn--primary { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.btn--primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-dark); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* ---- Footer ---- */
.lp-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.82rem;
}
.lp-footer a { color: rgba(255,255,255,0.6); }
.lp-footer a:hover { color: var(--white); }

/* ---- Section header ---- */
.section-header { text-align: center; }
.section-header__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { font-size: 1rem; color: var(--text-muted); max-width: 540px; margin: 0 auto; }

@media print {
  .lp-hero, .lp-form-wrap, .lp-final-cta { display: none !important; }
}

/* ================================================
   DIAGNOSTIC OVERLAY
   ================================================ */

/* --- Overlay backdrop --- */
#diag-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 20, 35, 0.82);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(2px);
}

/* --- Modal panel --- */
#diag-inner {
  background: var(--white);
  border-radius: 8px;
  width: 100%;
  max-width: 700px;
  max-height: 92vh;
  display: flex; flex-direction: column;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}

/* --- Close button --- */
#diag-close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 2.25rem; height: 2.25rem;
  background: none; border: 2px solid var(--border);
  border-radius: 50%; font-size: 1.35rem; line-height: 1;
  color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--transition), color var(--transition);
  z-index: 1;
}
#diag-close:hover, #diag-close:focus-visible {
  border-color: var(--navy); color: var(--navy);
  outline: none;
}

/* --- Scrollable content area --- */
#diag-content {
  overflow-y: auto;
  padding: 2rem 2.25rem 2.25rem;
  flex: 1;
}
@media (max-width: 480px) {
  #diag-content { padding: 1.5rem 1.25rem 1.75rem; }
}

/* --- Eyebrow pill --- */
.diag-eyebrow {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}

/* --- Intro screen --- */
.diag-intro h2 { margin-bottom: 0.75rem; }
.diag-intro p  { color: var(--text-muted); margin-bottom: 0.6rem; }
.diag-intro-list {
  list-style: none; padding: 0;
  margin: 1rem 0 1.5rem;
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
}
.diag-intro-list li {
  font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.4rem;
}
.diag-intro-list li::before { content: '✓ '; color: var(--gold); font-weight: 700; }

/* --- Primary button (shared across screens) --- */
.diag-btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  border: none;
  border-radius: var(--radius);
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition);
}
.diag-btn-primary:hover, .diag-btn-primary:focus-visible {
  background: var(--gold-light);
  outline: 3px solid var(--gold-light); outline-offset: 2px;
}

/* --- Back button --- */
.diag-btn-back {
  background: none; border: none;
  color: var(--text-muted); font-size: 0.88rem;
  cursor: pointer; padding: 0.5rem 0;
  margin-top: 0.75rem; display: block;
  font-family: var(--font-body);
  text-decoration: underline;
  transition: color var(--transition);
}
.diag-btn-back:hover { color: var(--navy); }

/* --- Progress bar --- */
.diag-progress-wrap { margin-bottom: 1.5rem; }
.diag-progress-bar {
  height: 6px;
  background: var(--off-white);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.diag-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
  transition: width 0.4s ease;
}
.diag-progress-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex; gap: 0.5rem; align-items: center;
  margin: 0;
}
.diag-section-label {
  background: var(--navy);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: 2rem;
}

/* --- Question screen --- */
.diag-question { }
.diag-q-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--navy-dark);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

/* --- Options --- */
.diag-options {
  display: flex; flex-direction: column; gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.diag-option {
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform 80ms ease;
  line-height: 1.4;
}
.diag-option:hover {
  border-color: var(--navy-light);
  background: var(--off-white);
}
.diag-option:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
.diag-option--selected {
  border-color: var(--gold) !important;
  background: #fdf6e8 !important;
  color: var(--navy-dark);
  font-weight: 600;
}
.diag-option:active { transform: scale(0.99); }

/* --- Next button for multi --- */
.diag-btn-next {
  margin-top: 0.75rem;
  width: 100%;
}

/* --- Email capture screen --- */
.diag-email-screen { }
.diag-email-icon {
  font-size: 2.5rem; text-align: center; margin-bottom: 0.75rem;
}
.diag-email-screen h2 { margin-bottom: 0.5rem; }
.diag-email-screen > p { color: var(--text-muted); margin-bottom: 1.25rem; }

.diag-field { margin-bottom: 1rem; }
.diag-field label {
  display: block; font-weight: 700; font-size: 0.88rem;
  margin-bottom: 0.3rem; color: var(--text);
}
.diag-field input[type="text"],
.diag-field input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text);
  transition: border-color var(--transition);
}
.diag-field input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.15);
}
.diag-field--check label {
  font-weight: 400; font-size: 0.84rem; color: var(--text-muted);
  display: flex; gap: 0.5rem; align-items: flex-start; cursor: pointer;
}
.diag-field--check input { flex-shrink: 0; margin-top: 3px; }
.diag-field--check a { color: var(--navy); }
#diag-email-form .diag-btn-primary { width: 100%; margin-top: 0.5rem; }

.diag-error {
  color: #b94040;
  font-size: 0.85rem;
  background: #fdf0f0;
  border: 1px solid #f5c6c6;
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.75rem;
}

/* --- Results screen --- */
.diag-results { }
.diag-results-hero { margin-bottom: 1.5rem; }
.diag-results-hero h2 { margin-bottom: 0.5rem; }
.diag-results-intro { color: var(--text-muted); font-size: 0.95rem; }

/* Score circle + radar side by side */
.diag-score-row {
  display: flex; gap: 1.5rem; align-items: center;
  margin-bottom: 1.75rem; flex-wrap: wrap;
}
.diag-score-circle {
  flex-shrink: 0;
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 6px solid; /* color set inline */
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--white);
}
.diag-score-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
}
.diag-score-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.diag-radar-wrap {
  flex: 1; min-width: 180px;
  display: flex; justify-content: center;
}

/* Bar scores + forces/axes */
.diag-detail-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 520px) {
  .diag-detail-row { grid-template-columns: 1fr; }
}

.diag-section-scores h3,
.diag-forces h3,
.diag-axes h3,
.diag-reco h3,
.diag-cta-block h3 {
  font-size: 1rem;
  margin-bottom: 0.65rem;
  color: var(--navy-dark);
}

/* Horizontal bars */
.diag-bars { list-style: none; padding: 0; margin: 0; }
.diag-bar-item {
  display: grid;
  grid-template-columns: 80px 1fr 36px;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.diag-bar-label { font-size: 0.8rem; color: var(--text-muted); }
.diag-bar-track {
  height: 8px;
  background: var(--off-white);
  border-radius: 4px;
  overflow: hidden;
}
.diag-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}
.diag-bar-val { font-size: 0.8rem; font-weight: 700; color: var(--text); text-align: right; }

/* Forces / Axes */
.diag-ff-wrap { display: flex; flex-direction: column; gap: 1rem; }
.diag-forces ul, .diag-axes ul {
  list-style: none; padding: 0; margin: 0;
}
.diag-forces li, .diag-axes li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.3rem 0 0.3rem 1.25rem;
  position: relative;
}
.diag-forces li::before { content: '✓'; position: absolute; left: 0; color: #2d7d46; font-weight: 700; }
.diag-axes li::before   { content: '→'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* Recommendation block */
.diag-reco {
  background: var(--off-white);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.diag-reco p { font-size: 0.95rem; color: var(--text); margin: 0; }

/* CTA block */
.diag-cta-block {
  background: var(--navy-dark);
  color: var(--white);
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}
.diag-cta-block h3 { color: var(--white); margin-bottom: 0.5rem; }
.diag-cta-block > p { color: rgba(255,255,255,0.8); font-size: 0.92rem; margin-bottom: 1.25rem; }
.diag-cta-block .diag-btn-primary { display: inline-block; }
.diag-cta-note { margin-top: 0.75rem; font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.diag-cta-note a { color: rgba(255,255,255,0.75); }

/* Email confirmation */
.diag-email-confirm {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---- Sticky CTA bar (mobile, after 1 viewport scroll) ---- */
#diag-sticky {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--navy-dark);
  padding: 0.85rem 1.25rem;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9000;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.25);
}
#diag-sticky .diag-btn-primary {
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
}
@media (max-width: 640px) {
  #diag-sticky { display: flex; }
  #diag-sticky.is-hidden { display: none; }
}

/* ======= COMMENT ÇA MARCHE ======= */
.lp-how { padding: 4rem 0; }
.lp-how p { max-width: 760px; margin-left: auto; margin-right: auto; color: var(--text-muted); }
.lp-how__steps {
  max-width: 760px;
  margin: 1.5rem auto;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.6rem;
}
.lp-how__steps li { color: var(--text-muted); }

/* ======= FAQ ======= */
.lp-faq { padding: 4rem 0; background: var(--off-white); }
.lp-faq__list { max-width: 760px; margin: 0 auto; }
.lp-faq__list dt {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy-dark);
  font-size: 1.05rem;
  margin-top: 1.5rem;
  padding-left: 0.9rem;
  border-left: 4px solid var(--gold);
}
.lp-faq__list dd {
  margin: 0.5rem 0 0;
  padding-left: 0.9rem;
  color: var(--text-muted);
}
