:root {
  --cream: #f8f3e8;
  --panel: #fffdf8;
  --green: #0e3d34;
  --green-deep: #072820;
  --green-soft: #e7efeb;
  --mint: #3fa88e;
  --gold: #d4a047;
  --gold-soft: #fbf1d8;
  --coral-start: #ff8a6b;
  --coral-end: #e8527d;
  --ink: #1a1714;
  --ink-soft: #625b51;
  --muted: #978d7e;
  --line: #e7ddca;
  --danger: #b63e52;
  --shadow: 0 18px 60px rgba(22, 52, 43, .13);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; padding: 24px; background: #e8e4dc; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.app-shell { width: min(820px, 100%); min-height: calc(100vh - 48px); margin: 0 auto; overflow: hidden; border-radius: 28px; background: var(--cream); box-shadow: var(--shadow); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px 12px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: var(--green); color: var(--gold); font-weight: 800; }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 14px; }
.brand span { margin-top: 1px; color: var(--muted); font-size: 11px; }
.draft-state { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.draft-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.draft-state.saved i { background: var(--mint); }
main { padding: 8px 24px 30px; }
.hero { position: relative; overflow: hidden; padding: 28px; border-radius: 22px; background: linear-gradient(150deg, var(--green), var(--green-deep)); color: white; }
.hero::after { content: ""; position: absolute; right: -45px; bottom: -105px; width: 260px; height: 230px; transform: rotate(42deg); border-radius: 38px; background: rgba(255,255,255,.055); }
.eyebrow, .screen-heading > span, .channel-heading > div > span, .section-title > div > span, .trajectory > span, .submit-panel > div > span { color: #e8c56f; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { position: relative; z-index: 1; max-width: 560px; margin: 8px 0 8px; font-size: clamp(28px, 5vw, 38px); line-height: 1.05; letter-spacing: -.04em; }
.hero > p { position: relative; z-index: 1; max-width: 600px; margin: 0; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.55; }
.vision-path { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 26px; }
.vision-path article { display: flex; gap: 11px; align-items: center; min-height: 70px; padding: 13px; border-radius: 14px; background: rgba(0,0,0,.16); }
.vision-path article > span { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border-radius: 10px; background: rgba(255,255,255,.12); color: #e8c56f; font-size: 10px; font-weight: 900; }
.vision-path small, .vision-path strong { display: block; }
.vision-path small { color: rgba(255,255,255,.6); font-size: 9px; text-transform: uppercase; }
.vision-path strong { margin-top: 3px; font-size: 11px; }
.vision-path > i { color: var(--gold); font-style: normal; }
.intro-note { display: grid; grid-template-columns: 42px 1fr; gap: 12px; margin: 14px 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.note-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: var(--gold-soft); color: #93691f; font-size: 20px; }
.intro-note strong { font-size: 12px; }
.intro-note p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.primary-action { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 17px; border: 0; border-radius: 999px; background: var(--green); color: white; font-weight: 800; cursor: pointer; }
.primary-action:hover { background: var(--green-deep); }
.primary-action:focus-visible, .back-action:focus-visible, input:focus-visible, select:focus-visible, .segmented input:focus-visible + span, .rating-options input:focus-visible + span { outline: 3px solid rgba(232,82,125,.28); outline-offset: 2px; }
.primary-action.large { width: 100%; min-height: 48px; background: linear-gradient(135deg, var(--coral-start), var(--coral-end)); }
.token-note { margin: 9px 0 0; color: var(--muted); font-size: 9px; text-align: center; }
.audit-progress { display: grid; grid-template-columns: 170px 1fr 42px; gap: 14px; align-items: center; margin-bottom: 17px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.progress-copy span, .progress-copy strong { display: block; }
.progress-copy span { color: var(--coral-end); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.progress-copy strong { margin-top: 2px; font-size: 11px; }
.progress-track { height: 6px; overflow: hidden; border-radius: 10px; background: var(--green-soft); }
.progress-track i { display: block; width: 20%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--coral-start), var(--coral-end)); transition: width .25s ease; }
.progress-percent { color: var(--green); font-size: 10px; font-weight: 900; text-align: right; }
.screen { display: none; animation: enter .24s ease; }
.screen.active { display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.screen-heading { margin: 7px 2px 20px; }
.screen-heading > span, .channel-heading > div > span { color: var(--coral-end); }
.screen-heading h1 { margin: 5px 0 5px; font-size: clamp(24px, 4vw, 31px); line-height: 1.1; letter-spacing: -.035em; }
.screen-heading p { max-width: 620px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.inline-scale { color: var(--ink-soft); font-weight: 700; white-space: nowrap; }
.question-section-heading { margin: 22px 0 14px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.question-section-heading:first-of-type { margin-top: 0; }
.question-section-heading span { color: var(--coral-end); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.question-section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.question-section-heading.acquisition-heading { margin-top: 27px; }
.channel-heading { display: flex; gap: 13px; align-items: center; }
.channel-icon { display: grid; width: 48px; height: 48px; flex: none; place-items: center; border-radius: 14px; background: var(--green); color: white; font-size: 22px; }
.channel-icon.coral { background: linear-gradient(135deg, var(--coral-start), var(--coral-end)); }
.channel-icon.gold { background: var(--gold); color: var(--green); }
.question-grid { display: grid; gap: 11px; margin-bottom: 11px; }
.question-grid.two-columns { grid-template-columns: repeat(2, 1fr); }
.question-grid.two-columns > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.question-grid .full-width { grid-column: 1 / -1; }
.field-card, .choice-card, .rating-card { display: block; min-width: 0; margin: 0 0 21px; padding: 0; border: 0; background: transparent; }
.field-card > span, .choice-card legend, .rating-card legend { display: block; padding: 0; color: var(--ink); font-size: 12px; font-weight: 750; line-height: 1.35; }
.field-card > span em { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 500; }
.field-card > small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.field-card input, .field-card select, .field-card textarea, .choice-card select { width: 100%; min-height: 43px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: #fff; color: var(--ink); font-size: 12px; resize: vertical; }
.field-card input:focus, .field-card select:focus, .field-card textarea:focus, .choice-card select:focus { border-color: var(--mint); background: white; }
.choice-card { min-width: 0; }
.choice-card.inset { margin: 0; }
.choice-card legend, .rating-card legend { width: 100%; }
.select-wrap { position: relative; }
.select-wrap::after { content: "⌄"; position: absolute; right: 13px; bottom: 12px; color: var(--muted); pointer-events: none; }
select { appearance: none; }
.input-suffix { position: relative; }
.input-suffix b { position: absolute; right: 13px; bottom: 12px; color: var(--muted); font-size: 11px; }
.input-suffix input { padding-right: 32px; }
.segmented { display: grid; gap: 7px; margin-top: 12px; }
.segmented.three { grid-template-columns: repeat(3, 1fr); }
.segmented.four { grid-template-columns: repeat(4, 1fr); }
.segmented.five { grid-template-columns: repeat(5, 1fr); }
.segmented label, .rating-options label { position: relative; cursor: pointer; }
.segmented input, .rating-options input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: grid; min-height: 42px; padding: 8px 7px; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink-soft); font-size: 10px; font-weight: 700; text-align: center; transition: .16s ease; }
.segmented label:hover span, .rating-options label:hover span { border-color: var(--mint); }
.segmented input:checked + span { border-color: var(--green); background: var(--green); color: white; box-shadow: 0 5px 14px rgba(14,61,52,.14); }
.scale-legend { display: flex; justify-content: space-between; margin: -7px 3px 9px; color: var(--muted); font-size: 9px; }
.rating-list { display: grid; gap: 9px; }
.rating-card { display: grid; grid-template-columns: 1fr 285px; gap: 16px; align-items: center; margin: 0 0 21px; }
.rating-card.standalone { margin-bottom: 21px; }
.rating-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.rating-options span { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--muted); font-size: 11px; font-weight: 850; transition: .16s ease; }
.rating-options label:first-child::after, .rating-options label:last-child::after { position: absolute; top: 44px; left: 50%; width: 92px; transform: translateX(-50%); color: var(--muted); font-size: 7px; font-weight: 650; line-height: 1.2; text-align: center; }
.rating-options label:first-child::after, .rating-options label:last-child::after { content: attr(data-label); }
.rating-card:has(.rating-options label[data-label]) { margin-bottom: 35px; }
.rating-options input:checked + span { border-color: var(--coral-end); background: linear-gradient(135deg, var(--coral-start), var(--coral-end)); color: white; box-shadow: 0 4px 12px rgba(232,82,125,.2); }
.field-error { box-shadow: none; }
.field-error input, .field-error select, .field-error textarea, .field-error .segmented span, .field-error .rating-options span { border-color: rgba(182,62,82,.58) !important; }
.form-navigation { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.screen-inline-navigation { display: grid; justify-items: end; gap: 8px; margin-top: 5px; }
.screen-inline-navigation .validation-message { justify-self: stretch; }
.back-action { padding: 10px 0; border: 0; background: transparent; color: var(--green); font-size: 11px; font-weight: 800; cursor: pointer; }
.validation-message { margin: 0; color: var(--danger); font-size: 10px; text-align: center; }
.result-hero { padding-bottom: 25px; }
.headline-result { position: relative; z-index: 1; display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.headline-result strong { font-size: 50px; line-height: .9; letter-spacing: -.05em; }
.headline-result span { color: rgba(255,255,255,.72); font-size: 11px; line-height: 1.35; }
.goal-track { position: relative; z-index: 1; height: 8px; margin-top: 17px; border-radius: 10px; background: rgba(255,255,255,.14); }
.goal-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--coral-start), var(--coral-end)); transition: width .5s ease; }
.goal-track span { position: absolute; top: 13px; right: 0; color: #e8c56f; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.result-hero > p { margin-top: 25px; font-size: 10px; }
.result-section { margin-top: 24px; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 0 2px 11px; }
.section-title > div > span { color: var(--coral-end); }
.section-title h2 { margin: 3px 0 0; font-size: 19px; letter-spacing: -.02em; }
.section-title > strong { color: var(--green); font-size: 12px; }
.section-title > small { color: var(--muted); font-size: 10px; }
.channel-table { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.channel-table > div { display: grid; grid-template-columns: 1fr 110px 120px; gap: 12px; align-items: center; padding: 13px 15px; border-top: 1px solid var(--line); }
.channel-table > div:first-child { border-top: 0; }
.channel-table .table-head { padding-top: 9px; padding-bottom: 9px; background: var(--green-soft); color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.channel-table .table-head span:not(:first-child) { text-align: right; }
.channel-table strong { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.channel-table strong i { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; background: var(--green-soft); color: var(--green); font-style: normal; }
.channel-table div > span, .channel-table div > b { color: var(--green); font-size: 11px; text-align: right; }
.channel-table div > b { font-weight: 850; }
.channel-table .table-total { background: var(--gold-soft); }
.result-disclaimer { margin: 8px 2px 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.trajectory { margin-top: 24px; padding: 20px; border-radius: 18px; background: linear-gradient(145deg, var(--green), var(--green-deep)); color: white; }
.trajectory-steps { display: grid; gap: 6px; margin-top: 12px; }
.trajectory-steps article { padding: 11px 13px; border-radius: 12px; background: rgba(0,0,0,.15); }
.trajectory-steps article.goal { background: linear-gradient(135deg, var(--coral-start), var(--coral-end)); }
.trajectory-steps b, .trajectory-steps strong { display: block; }
.trajectory-steps b { color: #e8c56f; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.trajectory-steps .goal b { color: rgba(255,255,255,.75); }
.trajectory-steps strong { margin-top: 3px; font-size: 11px; }
.trajectory-steps > i { color: var(--gold); font-style: normal; text-align: center; }
.starting-point-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--green); font-size: 11px; font-weight: 850; text-decoration: none; }
.starting-point-link:hover { border-color: var(--mint); background: var(--green-soft); }
.submit-panel { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; margin-top: 14px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.submit-panel > div > span { color: var(--coral-end); font-size: 8px; }
.submit-panel strong { display: block; margin-top: 3px; font-size: 13px; }
.submit-panel p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.submit-panel.success { border-color: var(--mint); background: var(--green-soft); }
.booking-action { text-decoration: none; text-align: center; }
.booking-action.is-disabled { cursor: default; opacity: .72; }
.booking-panel { margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.booking-panel > header { padding: 18px 20px 13px; border-bottom: 1px solid var(--line); }
.booking-panel > header > span { color: var(--coral-end); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.booking-panel h2 { margin: 4px 0 0; font-size: 19px; }
.booking-panel header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.booking-frame-wrap { min-height: 540px; background: #fff; }
.booking-frame { display: block; width: 100%; min-height: 720px; border: 0; overflow: hidden; }
.booking-loading { display: grid; min-height: 540px; place-content: center; justify-items: center; gap: 10px; color: var(--muted); font-size: 10px; }
.booking-loading i { width: 24px; height: 24px; border: 3px solid var(--green-soft); border-top-color: var(--mint); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Page autonome « Mon point de départ » */
.snapshot-shell main { padding-bottom: 38px; }
.snapshot-state { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 700; }
.snapshot-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.snapshot-state.ready i { background: var(--mint); }
.snapshot-hero { padding-bottom: 30px; }
.snapshot-company { position: relative; z-index: 1; margin: 12px 0 0; color: #e8c56f; font-size: 10px; font-weight: 800; }
.snapshot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 14px; }
.snapshot-card { padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.snapshot-card span, .snapshot-card strong, .snapshot-card small { display: block; }
.snapshot-card span { color: var(--coral-end); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.snapshot-card strong { margin-top: 6px; color: var(--green); font-size: 23px; letter-spacing: -.04em; }
.snapshot-card small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.foundation-list { display: grid; gap: 8px; }
.foundation-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.foundation-row span { font-size: 11px; line-height: 1.4; }
.foundation-row strong { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 11px; }
.snapshot-note { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--gold-soft); color: var(--ink-soft); font-size: 10px; line-height: 1.55; }
.snapshot-empty { margin-top: 18px; padding: 22px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); font-size: 11px; line-height: 1.6; text-align: center; }
.snapshot-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.secondary-action { display: inline-flex; align-items: center; justify-content: center; padding: 11px 17px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--green); font-size: 11px; font-weight: 800; text-decoration: none; }
.secondary-action:hover { border-color: var(--mint); background: var(--green-soft); }

/* Connexion sans mot de passe */
.auth-shell { max-width: 700px; }
.auth-main { display: grid; gap: 16px; }
.auth-hero { padding: 34px; }
.auth-card { width: min(470px, 100%); margin: 0 auto; padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.auth-card .screen-heading { margin-top: 0; }
.auth-card h2 { margin: 5px 0; font-size: 24px; letter-spacing: -.03em; }
.auth-card .field-card { margin-bottom: 16px; }
.auth-message { min-height: 18px; margin: 13px 0 0; color: var(--danger); font-size: 10px; line-height: 1.5; text-align: center; }
.auth-back { display: block; margin: 9px auto 0; }
.field-card .code-input { font-size: 25px; font-weight: 850; letter-spacing: .28em; text-align: center; }

@media (max-width: 640px) {
  body { padding: 0; background: var(--cream); }
  .app-shell { min-height: 100vh; border-radius: 0; }
  .topbar { padding: 15px 15px 10px; }
  main { padding: 6px 15px 24px; }
  .hero { padding: 22px; }
  .vision-path { grid-template-columns: 1fr; }
  .vision-path > i { transform: rotate(90deg); text-align: center; }
  .audit-progress { grid-template-columns: 125px 1fr 36px; gap: 9px; padding: 11px 12px; }
  .question-grid.two-columns { grid-template-columns: 1fr; }
  .question-grid.two-columns > :last-child:nth-child(odd) { grid-column: auto; }
  .segmented.five { grid-template-columns: repeat(3, 1fr); }
  .rating-card { grid-template-columns: 1fr; gap: 11px; }
  .rating-options { width: min(285px, 100%); }
  .form-navigation { grid-template-columns: auto 1fr; }
  .form-navigation .primary-action { grid-column: 2; }
  .validation-message { grid-column: 1 / -1; grid-row: 1; }
  .channel-table > div { grid-template-columns: 1fr 74px 82px; padding: 12px 10px; }
  .submit-panel { grid-template-columns: 1fr; }
  .submit-panel .primary-action { width: 100%; }
  .booking-panel > header { padding: 16px; }
  .snapshot-grid { grid-template-columns: 1fr; }
  .auth-hero { padding: 26px 22px; }
  .auth-card { padding: 21px 18px; }
}

@media (max-width: 430px) {
  .draft-state span { display: none; }
  .audit-progress { grid-template-columns: 1fr 36px; }
  .progress-track { grid-column: 1 / -1; grid-row: 2; }
  .segmented.three, .segmented.four, .segmented.five { grid-template-columns: repeat(2, 1fr); }
  .channel-table > div { grid-template-columns: 1fr 64px 72px; gap: 6px; }
  .channel-table strong { gap: 5px; font-size: 9px; }
  .channel-table strong i { display: none; }
  .channel-table div > span, .channel-table div > b { font-size: 9px; }
  .section-title > small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
