/* ============================================================
   Accompagnement Transition énergétique — money site
   Palette : navy #0B1430 · or #D8B25C · blanc cassé #FAF7F0
   Mobile-first · system fonts · zéro dépendance externe
   ============================================================ */

:root {
  --navy: #0B1430;
  --navy-soft: #131F45;
  --navy-line: #24325E;
  --gold: #D8B25C;
  --gold-deep: #B8923D;
  --cream: #FAF7F0;
  --white: #FFFFFF;
  --ink: #1B2237;
  --ink-soft: #46506B;
  --line: #E6DFD2;
  --ok: #2E7D4F;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 20, 48, 0.10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow { max-width: 780px; }

/* ---------- Typo ---------- */

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }

h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 4.5vw, 2.25rem); font-weight: 750; margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; font-weight: 700; }

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.6rem;
}

.section-intro { color: var(--ink-soft); max-width: 46em; margin-bottom: 2rem; }

/* ---------- Header ---------- */

.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--navy-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.brand .brand-accent { color: var(--gold); }

.header-cta {
  white-space: nowrap;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.95rem 1.9rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
  font-size: 1.05rem;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: #E3C077;
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(216, 178, 92, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.55);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Hero ---------- */

.hero {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0 3.25rem;
  background-image:
    radial-gradient(ellipse 90% 60% at 85% -10%, rgba(216, 178, 92, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 110%, rgba(216, 178, 92, 0.10), transparent 55%);
}

.hero h1 { max-width: 15em; }
.hero h1 .gold { color: var(--gold); }

.hero-sub {
  margin-top: 1.25rem;
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 36em;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.hero-trust {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  list-style: none;
}

.hero-trust li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 800;
  margin-right: 0.45rem;
}

/* ---------- Bandeau or ---------- */

.gold-band {
  background: var(--gold);
  color: var(--navy);
  padding: 1.1rem 0;
}

.gold-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem 1rem;
  text-align: center;
}

.gold-band strong {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.gold-band .footnote {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(11, 20, 48, 0.8);
}

/* ---------- Sections ---------- */

.section { padding: 4rem 0; }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy .kicker { color: var(--gold); }
.section-navy .section-intro { color: rgba(255, 255, 255, 0.8); }

/* ---------- Cartes segments ---------- */

.cards-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.segment-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.segment-card .seg-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.segment-card p { color: var(--ink-soft); font-size: 0.98rem; }

.segment-card .seg-hook {
  color: var(--ink);
  font-weight: 600;
  font-size: 1.02rem;
}

.segment-card .seg-figure {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.segment-card .seg-figure b {
  color: var(--gold-deep);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  white-space: nowrap;
}

.segment-card .seg-figure span {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
}

/* ---------- Témoignage (emplacement à remplir avec un vrai client) ---------- */

.testimonial {
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy-line);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.testimonial blockquote {
  font-size: 1.12rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--white);
}

.testimonial blockquote::before { content: "\201C"; color: var(--gold); font-weight: 800; }
.testimonial blockquote::after { content: "\201D"; color: var(--gold); font-weight: 800; }

.testimonial .testimonial-author {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}

.testimonial .testimonial-author strong { color: var(--gold); }

/* ---------- Étapes ---------- */

.steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}

.step {
  background: var(--navy-soft);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}

.step h3 { color: var(--white); margin-bottom: 0.4rem; }
.step .step-time { color: var(--gold); font-size: 0.88rem; font-weight: 700; letter-spacing: 0.04em; }
.step p { color: rgba(255, 255, 255, 0.82); font-size: 0.97rem; margin-top: 0.35rem; }

/* ---------- Preuves ---------- */

.proofs {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.proof {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.proof .proof-icon {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.7rem;
}

.proof h3 { margin-bottom: 0.35rem; }
.proof p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Objections ---------- */

.objection {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}

.objection + .objection { margin-top: 1.5rem; }

.objection h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.objection p { color: var(--ink-soft); }
.objection p + p { margin-top: 0.75rem; }
.objection strong { color: var(--ink); }

/* ---------- Checklist prérequis ---------- */

.checklist {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin: 1.25rem 0 0;
}

.checklist li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem 0.85rem 2.7rem;
  position: relative;
  font-size: 0.98rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 1rem;
  color: var(--ok);
  font-weight: 800;
}

/* ---------- Formulaire ---------- */

.form-section {
  background: var(--navy);
  color: var(--white);
  background-image: radial-gradient(ellipse 80% 55% at 50% -15%, rgba(216, 178, 92, 0.16), transparent 60%);
}

.form-card {
  background: var(--white);
  color: var(--ink);
  border-radius: 18px;
  padding: 2rem 1.4rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  max-width: 720px;
  margin: 2.25rem auto 0;
}

.form-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}

.field label,
fieldset legend {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.field .hint {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: -0.2rem;
  margin-bottom: 0.4rem;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1.5px solid #CFC7B6;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  border-color: var(--gold-deep);
  outline: 2px solid rgba(216, 178, 92, 0.45);
  outline-offset: 0;
}

.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }

/* Q0 — segmenté */
fieldset { border: 0; }

.activity-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.activity-switch input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.activity-switch label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  text-align: center;
  border: 2px solid #CFC7B6;
  border-radius: 12px;
  padding: 0.9rem 0.6rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.activity-switch label span.sub {
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.activity-switch input[type="radio"]:checked + label {
  border-color: var(--gold-deep);
  background: rgba(216, 178, 92, 0.14);
}

.activity-switch input[type="radio"]:focus-visible + label {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.form-note-agri {
  background: rgba(216, 178, 92, 0.16);
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  color: var(--ink);
}

.form-submit {
  width: 100%;
  font-size: 1.15rem;
  padding: 1.05rem 1.5rem;
}

.form-privacy {
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 0.9rem;
}

.form-whatsapp-alt {
  text-align: center;
  margin-top: 1.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.98rem;
}

.form-whatsapp-alt a { color: var(--gold); font-weight: 700; }

/* ---------- Assistant multi-étapes (wizard) ---------- */

/* Fallback sans JS : tout s'affiche, on masque la mécanique du wizard */
.no-js [data-js-only] { display: none !important; }
.no-js .form-step + .form-step {
  margin-top: 0.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* Zone d'annonce lecteur d'écran */
.sr-live {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Bandeau de réassurance au-dessus du formulaire */
.form-reassure {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 1.6rem;
  max-width: 720px;
  margin: 1.6rem auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 600;
}

.form-reassure li { display: inline-flex; align-items: center; gap: 0.45rem; }
.form-reassure li::before { content: "✓"; color: var(--gold); font-weight: 800; }

/* Progression segmentée */
.wizard-head { margin-bottom: 1.7rem; }

.wizard-steps {
  list-style: none;
  display: flex;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  padding: 0;
}

.wizard-steps li {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  transition: background 0.35s ease;
}

.wizard-steps li.done { background: var(--gold-deep); }
.wizard-steps li.current { background: var(--gold); }

.wizard-count {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.wizard-count .step-num-label {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.wizard-encourage {
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 0.88rem;
  text-align: right;
}

/* Étapes */
.form-step {
  border: 0;
  padding: 0;
  display: grid;
  gap: 1.2rem;
}

.js .form-step:not(.is-active) { display: none; }
.form-step:focus { outline: none; }

.step-legend {
  padding: 0;
  font-size: 1.2rem;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: -0.2rem;
}

.step-hint {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: -0.55rem;
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.js .form-step.is-active { animation: stepIn 0.32s ease; }

/* Messages d'erreur doux */
.field-error {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  color: #B23B3B;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.4rem;
}

.field-error::before { content: "⚠"; flex: 0 0 auto; }

.field.has-error input,
.field.has-error select {
  border-color: #B23B3B;
  background: #FDF6F5;
}

.field.has-error input:focus,
.field.has-error select:focus {
  outline: 2px solid rgba(178, 59, 59, 0.4);
  border-color: #B23B3B;
}

/* Navigation du wizard */
.wizard-nav {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.8rem;
}

.wizard-prev { flex: 0 0 auto; }
.wizard-next,
.wizard-submit { flex: 1; }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 2px solid #CFC7B6;
}

.btn-ghost:hover {
  border-color: var(--gold-deep);
  color: var(--ink);
  transform: translateY(-1px);
}

.form-submit { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .js .form-step.is-active { animation: none; }
  .wizard-steps li,
  .btn-ghost { transition: none; }
}

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 0.9rem; }

.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1.1rem 1.25rem;
  list-style: none;
  position: relative;
  padding-right: 3rem;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-deep);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}

.faq-list details[open] summary::after { content: "–"; }

.faq-list .faq-answer {
  padding: 0 1.25rem 1.2rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 5.5rem; /* espace pour le bouton WhatsApp flottant */
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--gold); }

.footer-legal {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--navy-line);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- WhatsApp flottant ---------- */

.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #1FAF57;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}

.whatsapp-float:hover { transform: translateY(-2px); color: var(--white); }

.whatsapp-float svg { flex: 0 0 auto; }

/* ---------- Pages simples (merci, mentions, 404) ---------- */

.page-simple { padding: 4rem 0 5rem; }

.page-simple h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 1rem; }
.page-simple h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.page-simple p + p { margin-top: 0.9rem; }
.page-simple ul, .page-simple ol { margin: 0.75rem 0 0.75rem 1.4rem; }
.page-simple li + li { margin-top: 0.4rem; }

.next-steps {
  list-style: none;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
}

.next-steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}

.next-steps strong { display: block; margin-bottom: 0.2rem; }

/* ---------- Photos (placeholders) ---------- */

.photo-slot {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 2rem 0 0;
}

/* ---------- Desktop ---------- */

@media (min-width: 700px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .proofs { grid-template-columns: repeat(2, 1fr); }
  .form-card { padding: 2.75rem 2.5rem; }
  .form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 980px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .cards-grid .segment-card:nth-child(4),
  .cards-grid .segment-card:nth-child(5) { grid-column: span 1; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .proofs { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 5.5rem 0 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .whatsapp-float { transition: none; }
}
