/* =====================================================================
   Cartographie Neuro Business Croissance(TM)
   Direction artistique : noir, ivoire, or. Sobre, premium, mobile first.
   ===================================================================== */

:root {
  --noir:        #0b0b0d;
  --noir-2:      #121114;
  --nuit:        #14203a;
  --or:          #c9a876;
  --or-clair:    #e8c77f;
  --or-pale:     #d4b47e;
  --ivoire:      #f6f2ec;
  --texte:       #e9e4dc;
  --texte-doux:  #a49f97;
  --ligne:       rgba(201, 168, 118, .22);
  --ligne-douce: rgba(246, 242, 236, .10);
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans:  "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 720px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--texte);
  background-color: var(--noir);
  background-image:
    radial-gradient(120% 80% at 78% 8%,  rgba(201,168,118,.10), transparent 60%),
    radial-gradient(90%  70% at 12% 78%, rgba(201,168,118,.07), transparent 62%),
    radial-gradient(60%  60% at 50% 50%, rgba(20,32,58,.35),    transparent 70%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* Voile texture, tres discret */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255,255,255,.028) 0 22%, transparent 22% 46%, rgba(255,255,255,.020) 46% 58%, transparent 58%),
    linear-gradient(200deg, rgba(0,0,0,.5) 0 40%, transparent 40%);
  mix-blend-mode: soft-light;
  z-index: 0;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: .2px; margin: 0; }
em { font-style: italic; }
a { color: inherit; }

/* ------------------------- structure ------------------------- */
.app { position: relative; z-index: 1; min-height: 100%; }

.ecran {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px 22px 64px;
  max-width: var(--max);
  margin: 0 auto;
}
.ecran--large { max-width: 860px; }
.ecran--haut { justify-content: flex-start; padding-top: 110px; }

.apparait { animation: apparait .55s cubic-bezier(.22,.61,.36,1) both; }
@keyframes apparait { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .apparait { animation: none; }
  * { transition: none !important; }
}

/* ------------------------- barre de progression ------------------------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  background: linear-gradient(to bottom, rgba(11,11,13,.96), rgba(11,11,13,.72) 70%, transparent);
  padding: 18px 22px 26px;
}
.topbar__inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.retour {
  background: none; border: 0; color: var(--texte-doux);
  font-family: var(--sans); font-size: 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 0;
}
.retour:hover { color: var(--ivoire); }
.compteur {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--texte-doux); font-weight: 500; white-space: nowrap;
}
.progress {
  max-width: var(--max); margin: 12px auto 0;
  height: 2px; background: rgba(246,242,236,.13); border-radius: 2px; overflow: hidden;
}
.progress__bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--or), var(--or-clair));
  transition: width .5s cubic-bezier(.22,.61,.36,1);
}

/* ------------------------- landing ------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 10px; align-self: center;
  border: 1px solid var(--ligne); border-radius: 40px;
  padding: 7px 18px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--or); background: rgba(201,168,118,.05);
}
.ecran--landing { max-width: 880px; }
.badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--or-clair); flex: none;
}
.landing { text-align: center; }
.landing h1 {
  font-size: clamp(40px, 9vw, 70px); line-height: 1.12; margin: 34px 0 26px;
  background: linear-gradient(180deg, var(--ivoire) 12%, var(--or-pale) 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.landing__sous {
  font-family: var(--serif); font-style: italic; font-size: clamp(17px, 4.2vw, 22px);
  color: var(--texte-doux); max-width: 820px; margin: 0 auto 34px;
}
.chemin {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center;
  margin: 0 auto 34px;
}
.chemin span {
  border: 1px solid var(--ligne-douce); border-radius: 40px;
  padding: 9px 18px; font-size: 13.5px; color: var(--texte-doux);
  background-color: transparent;
  /* couleur unie et non degrade : un gradient ne se fond pas en CSS,
     la pastille paraitrait vide pendant la transition */
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, box-shadow .5s ease;
}
.chemin span.actif {
  background-color: var(--or-pale);
  border-color: var(--or-clair); color: #1a1408; font-weight: 500;
  box-shadow: 0 4px 22px rgba(201,168,118,.28);
}
.chemin i { color: rgba(201,168,118,.45); font-style: normal; }
.landing__texte {
  text-align: left; color: var(--texte-doux); font-size: 16px; line-height: 1.75;
  max-width: 680px; margin: 0 auto 32px;
}
.landing__texte b { color: var(--ivoire); font-weight: 500; }
.landing__texte .or { color: var(--or-pale); }

.encart {
  text-align: left; border: 1px solid var(--ligne-douce); border-radius: 16px;
  padding: 26px 26px 22px; background: rgba(255,255,255,.018);
  max-width: 680px; margin: 0 auto 36px;
}
.encart__titre {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--texte-doux); margin-bottom: 16px;
}
.encart ul { list-style: none; margin: 0; padding: 0; }
.encart li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; font-size: 15px; }
.encart li::before { content: "✓"; color: var(--or); flex: none; }

.mention {
  font-size: 11.5px; line-height: 1.75; color: rgba(164,159,151,.6);
  text-align: center; max-width: 640px; margin: 44px auto 0;
}
.mention + .mention { margin-top: 14px; }

/* ------------------------- boutons ------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  padding: 17px 34px; border-radius: 40px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--or-pale), var(--or));
  color: #1a1408; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  box-shadow: 0 6px 26px rgba(201,168,118,.16);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 32px rgba(201,168,118,.26); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--large { width: 100%; padding: 19px 34px; font-size: 16px; }
.btn--ghost {
  background: none; border: 1px solid var(--ligne); color: var(--or); box-shadow: none;
}
.btn--ghost:hover { background: rgba(201,168,118,.08); box-shadow: none; }
.btn-centre { display: flex; justify-content: center; }

/* ------------------------- questions ------------------------- */
.question {
  font-size: clamp(24px, 5.4vw, 34px); line-height: 1.28; margin-bottom: 10px;
}
.question__sous {
  font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--or-pale); margin: 6px 0 14px;
}
.aide { font-size: 13.5px; color: var(--or); opacity: .75; margin-bottom: 20px; }
.options { display: flex; flex-direction: column; gap: 11px; margin-top: 26px; }

.option {
  display: flex; align-items: center; gap: 15px; width: 100%; text-align: left;
  padding: 17px 20px; border-radius: 13px; cursor: pointer;
  border: 1px solid var(--ligne-douce);
  background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.01));
  color: var(--texte); font-family: var(--sans); font-size: 15px; font-weight: 400; line-height: 1.45;
  transition: border-color .18s ease, background .18s ease, transform .12s ease;
}
.option:hover { border-color: rgba(201,168,118,.4); background: rgba(201,168,118,.05); }
.option:active { transform: scale(.995); }
.option__puce {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(246,242,236,.3);
  display: flex; align-items: center; justify-content: center;
  transition: all .18s ease;
}
.option__puce svg { width: 13px; height: 13px; opacity: 0; transition: opacity .18s ease; }
.option[aria-pressed="true"] {
  border-color: var(--or);
  background: linear-gradient(180deg, rgba(201,168,118,.20), rgba(201,168,118,.06));
}
.option[aria-pressed="true"] .option__puce {
  background: var(--or-pale); border-color: var(--or-pale);
}
.option[aria-pressed="true"] .option__puce svg { opacity: 1; }
.option[aria-pressed="true"] .option__texte { color: #fff; font-weight: 500; }

textarea.champ {
  width: 100%; min-height: 150px; resize: vertical;
  background: rgba(255,255,255,.03); border: 1px solid var(--ligne-douce); border-radius: 14px;
  padding: 18px 20px; color: var(--texte); font-family: var(--sans); font-size: 15.5px; line-height: 1.6;
}
textarea.champ:focus, input.champ:focus { outline: none; border-color: var(--or); background: rgba(201,168,118,.05); }
textarea.champ::placeholder, input.champ::placeholder { color: rgba(164,159,151,.65); }

/* ------------------------- ecrans de pause ------------------------- */
.pause { text-align: center; }
.pause__point {
  width: 54px; height: 54px; margin: 0 auto 28px; border-radius: 50%;
  border: 1px solid var(--ligne); display: flex; align-items: center; justify-content: center;
  animation: pulse 2.6s ease-in-out infinite;
}
.pause__point i { width: 7px; height: 7px; border-radius: 50%; background: var(--or-clair); display: block; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(201,168,118,.22);} 50% { box-shadow: 0 0 0 14px rgba(201,168,118,0);} }
.pause h2 { font-size: clamp(26px, 5.6vw, 34px); margin-bottom: 16px; }
.pause p { color: var(--texte-doux); max-width: 540px; margin: 0 auto 32px; font-size: 16px; }

/* ------------------------- capture ------------------------- */
.capture { text-align: center; }
.capture h2 { font-size: clamp(27px, 5.6vw, 36px); margin-bottom: 14px; }
.capture > p { color: var(--texte-doux); max-width: 520px; margin: 0 auto 34px; }
.carte-form {
  text-align: left; border: 1px solid var(--ligne-douce); border-radius: 20px;
  padding: 30px 26px; background: rgba(255,255,255,.022);
}
.label {
  display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--texte-doux); margin: 0 0 9px;
}
input.champ {
  width: 100%; background: rgba(255,255,255,.03);
  border: 1px solid var(--ligne-douce); border-radius: 40px;
  padding: 15px 20px; color: var(--texte); font-family: var(--sans); font-size: 15.5px;
}
.groupe { margin-bottom: 20px; }
.tel-ligne { display: flex; gap: 10px; }
.tel-ligne select {
  flex: none; width: 108px; background: rgba(255,255,255,.03);
  border: 1px solid var(--ligne-douce); border-radius: 40px;
  padding: 15px 12px; color: var(--texte); font-family: var(--sans); font-size: 14px;
}
.tel-ligne select option { background: var(--noir-2); }
.rgpd { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 24px; cursor: pointer; }
.rgpd input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--or); flex: none; cursor: pointer; }
.rgpd span { font-size: 13px; color: var(--texte-doux); line-height: 1.55; }
.confidentiel {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12px; color: var(--texte-doux); margin-top: 16px;
}
.erreur { color: #e08a7a; font-size: 13.5px; margin-top: 12px; text-align: center; }
.fomo {
  font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.65;
  color: var(--texte-doux); text-align: center; max-width: 560px; margin: 0 auto 34px;
}

/* ------------------------- resultat ------------------------- */
.res-entete { text-align: center; margin-bottom: 46px; }
.res-entete h1 {
  font-size: clamp(30px, 6.4vw, 46px); line-height: 1.14; margin: 20px 0 14px;
  background: linear-gradient(180deg, var(--ivoire) 12%, var(--or-pale) 98%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.res-entete p { color: var(--texte-doux); }

.bloc {
  border: 1px solid var(--ligne-douce); border-radius: 20px;
  padding: 32px 28px; margin-bottom: 20px; background: rgba(255,255,255,.022);
}
.bloc--or {
  border-color: var(--ligne);
  background: linear-gradient(160deg, rgba(201,168,118,.13), rgba(255,255,255,.02) 62%);
}
.bloc__label {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--or); margin-bottom: 14px;
}
.bloc h2 { font-size: clamp(27px, 6vw, 38px); line-height: 1.16; margin-bottom: 16px; color: var(--ivoire); }
.bloc h3 {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-family: var(--sans);
  font-weight: 500; color: var(--texte-doux); margin: 26px 0 14px;
}
.bloc p { color: var(--texte-doux); font-size: 15.5px; }
.bloc p + p { margin-top: 13px; }
.bloc__phrase {
  font-family: var(--serif); font-size: clamp(19px, 4.4vw, 23px); line-height: 1.45;
  color: var(--ivoire) !important; margin-bottom: 18px;
}
.citation {
  border-left: 2px solid var(--or); padding: 4px 0 4px 18px; margin: 20px 0 0;
  font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--or-pale) !important;
}
.liste { list-style: none; margin: 0; padding: 0; }
.liste li {
  display: flex; gap: 13px; align-items: flex-start; padding: 9px 0;
  font-size: 15px; color: var(--texte-doux);
}
.liste li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--or); margin-top: 10px; }
.liste--fleche li::before { content: "→"; width: auto; height: auto; background: none; color: var(--or); margin-top: 0; }

.etapes-carte { display: flex; gap: 6px; margin: 4px 0 26px; }
.etapes-carte div {
  flex: 1; text-align: center; padding: 11px 4px; border-radius: 9px;
  border: 1px solid var(--ligne-douce); font-size: 11px; color: var(--texte-doux);
  transition: all .3s ease;
}
.etapes-carte div.on {
  background: var(--or-pale);
  border-color: var(--or-clair); color: #1a1408; font-weight: 600;
  box-shadow: 0 4px 18px rgba(201,168,118,.22);
}
.etapes-carte div.passe { color: rgba(201,168,118,.65); border-color: rgba(201,168,118,.2); }

.transition { display: flex; align-items: center; gap: 16px; margin: 6px 0 8px; flex-wrap: wrap; }
.transition__de, .transition__vers {
  flex: 1 1 220px; padding: 18px 20px; border-radius: 13px; font-size: 15px; line-height: 1.45;
}
.transition__de { border: 1px solid var(--ligne-douce); color: var(--texte-doux); font-style: italic; }
.transition__vers {
  border: 1px solid var(--or); color: var(--ivoire);
  background: linear-gradient(160deg, rgba(201,168,118,.18), transparent);
}
.transition__fleche { color: var(--or); font-size: 20px; }

.indicateur {
  border: 1px dashed var(--ligne); border-radius: 16px; padding: 24px 24px;
  background: rgba(201,168,118,.045);
}
.indicateur p { color: var(--ivoire) !important; font-size: 16.5px; font-family: var(--serif); line-height: 1.5; }
.indicateur small { display: block; margin-top: 14px; font-size: 12px; color: rgba(164,159,151,.75); line-height: 1.6; }

.offre { text-align: center; }
.offre h2 { font-size: clamp(24px, 5.4vw, 32px); margin-bottom: 14px; }
.offre p { max-width: 520px; margin: 0 auto 26px; }

.rappel {
  border: 1px solid var(--or); border-radius: 18px; padding: 26px 26px 24px;
  background: linear-gradient(160deg, rgba(201,168,118,.16), rgba(201,168,118,.04));
  text-align: center; margin: 26px 0 4px;
}
.rappel__titre {
  font-family: var(--serif); font-size: clamp(20px, 4.6vw, 25px);
  color: var(--ivoire); margin-bottom: 10px;
}
.rappel p {
  color: var(--texte-doux); font-size: 15px; max-width: 460px; margin: 0 auto 20px;
}

.actions-res {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 34px 0 10px;
}
.envoye {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 13.5px; color: var(--or); margin-top: 20px; text-align: center;
}

/* ------------------------- carte partageable ------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 60; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(6,6,8,.88); backdrop-filter: blur(6px);
}
.modal.on { display: flex; }
.modal__box { max-width: 340px; width: 100%; text-align: center; }
.modal__box canvas, .modal__box img {
  width: 100%; border-radius: 16px; border: 1px solid var(--ligne); display: block;
}
.modal__actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.modal__aide { font-size: 12.5px; color: var(--texte-doux); margin-top: 14px; }

/* ------------------------- pied ------------------------- */
.pied {
  text-align: center; font-size: 11.5px; color: rgba(164,159,151,.55);
  padding: 40px 22px 60px; line-height: 1.75; max-width: 640px; margin: 0 auto;
}

/* ------------------------- impression / PDF ------------------------- */
@media print {
  @page { size: A4; margin: 14mm; }
  body {
    background: #fff !important; color: #17161a !important;
  }
  body::before, .topbar, .actions-res, .modal, .btn { display: none !important; }
  .ecran { min-height: 0; padding: 0; max-width: none; display: block; }
  .bloc, .bloc--or, .indicateur {
    border: 1px solid #ddd6c9 !important; background: #fbf9f5 !important;
    break-inside: avoid; page-break-inside: avoid; margin-bottom: 14px; padding: 20px;
  }
  .bloc p, .liste li, .res-entete p { color: #4a4640 !important; }
  .bloc h2, .bloc__phrase, .indicateur p, .res-entete h1 {
    color: #17161a !important; -webkit-text-fill-color: #17161a !important;
  }
  .bloc__label { color: #9a7c46 !important; }
  .citation { color: #7a6134 !important; border-left-color: #c9a876 !important; }
  .transition__vers { background: #f5efe2 !important; border-color: #c9a876 !important; color: #17161a !important; }
  .etapes-carte div.on { background: #f0e6d2 !important; color: #17161a !important; }
  .pied { color: #8a857d !important; }
}

@media (max-width: 480px) {
  .ecran { padding: 88px 18px 56px; }
  .bloc { padding: 26px 20px; }
  .etapes-carte { gap: 4px; }
  .etapes-carte div { font-size: 9.5px; padding: 9px 2px; }
}
