/* valeurvraie.fr — feuille de style unique, sans dépendance externe */
:root {
  /* Charte SAFTI — contrastes vérifiés (WCAG AA) :
     blanc sur #EC6525 = 3,3:1 → réservé au texte gras ≥ 18,7 px (« grand texte ») ;
     blanc sur #D4561A = 4,1:1 ; #B8481A sur blanc = 5,3:1, sur #FBF6F2 = 4,9:1 ;
     #494343 sur blanc = 9,6:1 ; #1D1B1B sur blanc = 17:1. */
  --bg: #ffffff;
  --surface: #ffffff;
  --tint: #fbf6f2;
  --ink: #1d1b1b;
  --text: #494343;
  --muted: #625a5a;
  --line: #ece2da;
  --accent: #ec6525;          /* orange principal : fonds, traits, pastilles */
  --accent-strong: #d4561a;   /* survol des boutons */
  --accent-text: #b8481a;     /* orange lisible pour le texte courant (liens…) */
  --accent-text-strong: #9a3c14;
  --accent-soft: #fde9de;
  --focus: #b8481a;
  --error: #b3261e;
  --ok: #1f6b45;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(29, 27, 27, .05), 0 8px 28px rgba(29, 27, 27, .06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--accent-text-strong); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); }
h3 { font-size: 1.08rem; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(780px, 100% - 2rem); }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--accent-text); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 1rem; color: #fff; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; border-radius: 999px; padding: .7rem 1.35rem; min-height: 46px;
  transition: background-color .15s, border-color .15s, transform .15s;
}
/* Texte blanc sur orange : gras et ≥ 18,7 px pour rester lisible (grand texte, AA) */
.btn-primary { background: var(--accent); color: #fff; font-weight: 700; font-size: 1.17rem; }
.btn-primary:hover { background: var(--accent-strong); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--accent-text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text-strong); }
.btn-sm { padding: .45rem 1rem; min-height: 40px; font-size: .95rem; }
.btn-primary.btn-sm { padding: .3rem 1.1rem; font-size: 1.17rem; }
.btn-lg { padding: .85rem 1.7rem; font-size: 1.17rem; min-height: 52px; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand, .footer-brand { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand span, .footer-brand span { color: var(--accent-text); font-style: italic; }

/* Bandeau d'accueil */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero-inner { display: grid; gap: 3rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .75rem; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 1.25rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 4.2vw, 4rem); max-width: 14ch; margin-bottom: 1.25rem; }
.lead { font-size: clamp(1.07rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 36rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.hero-note { font-size: .93rem; color: var(--muted); }

.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.75rem; box-shadow: var(--shadow); max-width: 420px; justify-self: center; width: 100%; }
.hc-label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hc-range { display: flex; align-items: center; gap: .75rem; margin: 1.1rem 0 1.5rem; font-size: .85rem; color: var(--muted); }
.hc-bar { position: relative; flex: 1; height: 10px; border-radius: 99px; background: var(--tint); }
.hc-bar i { position: absolute; inset: 0 22% 0 28%; border-radius: 99px; background: linear-gradient(90deg, #f5a982, var(--accent)); }
.hc-bar i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.hc-rows { display: grid; gap: .1rem; }
.hc-rows div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); font-size: .93rem; }
.hc-rows b { color: var(--ink); font-weight: 600; }
.hc-rows span { color: var(--muted); text-align: right; }

/* Bloc de confiance */
.trust { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.advisor { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem 1.5rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem; box-shadow: var(--shadow); }
.advisor-photo { position: relative; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: #fff; border: 2px solid var(--accent); display: grid; place-items: center; }
.advisor-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.advisor-initials { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--accent-text); }
.advisor-name { font-family: var(--serif); font-size: 1.4rem; margin: 0 0 .1rem; }
.advisor-role { color: var(--muted); margin: 0 0 .5rem; }
.advisor-phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: 1.12rem; color: var(--accent-text); text-decoration: none; padding: .2rem 0; }
.advisor-phone:hover { text-decoration: underline; }
.advisor-logo { grid-column: 1 / -1; display: flex; align-items: center; min-height: 48px; }
.advisor-logo img { height: 40px; width: auto; max-width: 100%; border: 0; }
.logo-placeholder { display: none; }
.advisor-logo.is-empty .logo-placeholder { display: inline-flex; align-items: center; justify-content: center; width: 132px; height: 48px; border: 1.5px dashed var(--line); border-radius: 8px; font-size: .8rem; color: var(--muted); }

/* Section estimation */
.estimation { padding: clamp(3rem, 7vw, 5rem) 0; background: var(--tint); border-block: 1px solid var(--line); scroll-margin-top: 64px; }
.estimation:focus { outline: none; }
.estimation h2 { text-align: center; }
.section-intro { text-align: center; color: var(--muted); max-width: 38rem; margin: 0 auto 2rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.form-card { padding: clamp(1.25rem, 4vw, 2.5rem); }

.stepper { display: flex; align-items: center; gap: .75rem; margin-bottom: 2rem; font-size: .92rem; font-weight: 600; color: var(--muted); }
.stepper-item { display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
.stepper-item span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: .85rem; }
.stepper-item.is-active span, .stepper-item.is-done span { font-size: 1.17rem; font-weight: 700; }
.stepper-item.is-active { color: var(--ink); }
.stepper-item.is-active span, .stepper-item.is-done span { background: var(--accent); border-color: var(--accent); color: #fff; }
.stepper-line { flex: 1; height: 2px; background: var(--line); border-radius: 2px; min-width: 16px; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.step-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); margin-bottom: 1.25rem; padding: 0; }
.step-title:focus { outline: none; }
.step-intro { color: var(--muted); margin-top: -.5rem; }

.field { margin-bottom: 1.35rem; }
.field.sub { margin-bottom: 1.5rem; }
label, .label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .45rem; font-size: .98rem; padding: 0; }
.req { color: var(--error); }
.hint { font-size: .88rem; color: var(--muted); margin: .4rem 0 0; }
.error { font-size: .9rem; color: var(--error); font-weight: 600; margin: .4rem 0 0; }
.form-error { padding: .75rem 1rem; background: #fbeceb; border-radius: var(--radius-sm); }
.notice { font-size: .92rem; background: #fff7e6; border: 1px solid #f0d9a8; color: #5c4210; border-radius: var(--radius-sm); padding: .7rem .9rem; margin: .6rem 0 0; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #d6cbc3; border-radius: var(--radius-sm); padding: .72rem .9rem; min-height: 50px;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #7a706b; }
input:hover, select:hover { border-color: #b3a69c; }
input:focus, select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(236, 101, 37, .25); }
input[aria-invalid="true"] { border-color: var(--error); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23625a5a' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.grid-2 { display: grid; gap: 0 1rem; }

/* Autocomplétion */
.combo { position: relative; }
.combo-list { position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: .35rem; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 12px 30px rgba(29, 27, 27, .14); max-height: 320px; overflow: auto; }
.combo-list li { padding: .65rem .75rem; border-radius: 8px; cursor: pointer; line-height: 1.35; }
.combo-list li small { display: block; color: var(--muted); font-size: .84rem; }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--accent-soft); }
.combo-list .combo-empty { color: var(--muted); cursor: default; }
.combo-list .combo-empty:hover { background: none; }

/* Choix */
.choices { display: grid; gap: .75rem; }
.choices-2 { grid-template-columns: 1fr 1fr; }
.choices-4 { grid-template-columns: repeat(2, 1fr); }
.choice-card, .choice-pill, .chip, .dpe label { position: relative; margin: 0; cursor: pointer; font-weight: 600; }
.choice-card input, .choice-pill input, .chip input, .dpe input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-card span { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 1rem; border: 1.5px solid #d6cbc3; border-radius: var(--radius); background: #fff; color: var(--ink); transition: border-color .15s, background-color .15s; }
.choice-card span svg { color: var(--accent-text); }
.choice-pill span, .chip span { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: .5rem 1rem; border: 1.5px solid #d6cbc3; border-radius: 999px; background: #fff; color: var(--ink); font-size: .96rem; transition: border-color .15s, background-color .15s; }
.choice-card:hover span, .choice-pill:hover span, .chip:hover span { border-color: var(--accent); }
.choice-card input:checked + span, .choice-pill input:checked + span, .chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.choice-card input:focus-visible + span, .choice-pill input:focus-visible + span, .chip input:focus-visible + span, .dpe input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip input:checked + span::before { content: "✓"; margin-right: .4rem; color: var(--accent-text); }

.dpe { display: flex; flex-wrap: wrap; gap: .5rem; }
.dpe span { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 .75rem; border-radius: 10px; font-weight: 700; border: 2px solid transparent; transition: transform .12s; }
.dpe-a span { background: #2f8f4e; color: #fff; }
.dpe-b span { background: #57a85b; color: #0d260f; }
.dpe-c span { background: #a8c84a; color: #1f2a07; }
.dpe-d span { background: #f2dd3a; color: #3a3203; }
.dpe-e span { background: #f2b33d; color: #3d2600; }
.dpe-f span { background: #e57a2e; color: #2e1300; }
.dpe-g span { background: #cf3a2c; color: #fff; }
.dpe-x span { background: #fff; color: var(--ink); border-color: #d6cbc3; font-weight: 600; font-size: .93rem; }
.dpe input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 2px #fff inset; transform: translateY(-2px); }
.dpe-x input:checked + span { background: var(--accent-soft); border-color: var(--accent); }

.check { display: flex; gap: .75rem; align-items: flex-start; font-weight: 500; color: var(--text); font-size: .95rem; line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: .1rem 0 0; accent-color: var(--accent); cursor: pointer; }
.consent { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }

.actions { display: flex; justify-content: flex-end; margin-top: 1.75rem; }
.actions .btn-lg { width: 100%; }
.actions-split { justify-content: space-between; gap: .75rem; flex-direction: column-reverse; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Résultat */
.result-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; text-align: center; }
.result-title:focus { outline: none; }
.result-range { text-align: center; padding: 1.5rem 1rem; margin: 1rem 0 1.25rem; background: var(--tint); border-radius: var(--radius); }
.result-range .rr-label { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .35rem; }
.result-range .rr-value { font-family: var(--serif); font-size: clamp(1.75rem, 1.2rem + 3vw, 2.6rem); font-weight: 600; color: var(--accent-text); line-height: 1.15; margin: 0; }
.result-range .rr-value span { white-space: nowrap; }
.result-range .rr-sub { color: var(--muted); font-size: .95rem; margin: .5rem 0 0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; text-align: center; }
.facts li { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .75rem .5rem; }
.facts b { display: block; color: var(--ink); font-size: 1.1rem; }
.facts span { font-size: .82rem; color: var(--muted); }
.explain { color: var(--text); }
.adjustments { font-size: .92rem; color: var(--muted); }
.adjustments ul { margin: .35rem 0 0; padding-left: 1.2rem; }
.disclaimer { font-size: .88rem; color: var(--muted); border-left: 3px solid var(--accent); padding: .25rem 0 .25rem .9rem; margin: 1.25rem 0; }
.callback { text-align: center; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.btn-call { font-size: 1.2rem; letter-spacing: .02em; }
.result-message { text-align: center; font-size: 1.1rem; color: var(--ink); padding: 1.25rem; background: var(--tint); border-radius: var(--radius); margin: 1rem 0; }

/* Comment ça marche */
.how, .why { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.how h2, .why h2 { margin-bottom: 2.25rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: none; }
.steps li { position: relative; padding: 1.5rem 1.5rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--serif); font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; }
.steps p, .reasons p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Pourquoi me faire confiance */
.why { background: var(--tint); border-top: 1px solid var(--line); }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem 2rem; }
.reasons li { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.reasons svg { color: var(--accent-text); margin-bottom: .75rem; }
.why-cta { margin-top: 2.5rem; }

/* Pied de page */
.site-footer { background: var(--ink); color: #ddd5d0; padding: 2.75rem 0; font-size: .93rem; }
.footer-brand { color: #fff; margin-bottom: .5rem; }
.footer-brand span { color: var(--accent); }
.footer-inner p { max-width: 40rem; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1rem 0 0; padding: 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #f5a982; }

/* Pages légales */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal .placeholder { background: #fff3c4; color: #4a3800; padding: 0 .3rem; border-radius: 4px; font-weight: 600; }
.legal .back { display: inline-block; margin-bottom: 1.5rem; }

/* Écrans plus larges */
@media (min-width: 560px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .choices-4 { grid-template-columns: repeat(4, 1fr); }
  .actions .btn-lg { width: auto; }
  .actions-split { flex-direction: row; align-items: center; }
  .advisor { grid-template-columns: auto 1fr auto; padding: 1.75rem 2rem; }
  .advisor-photo { width: 120px; height: 120px; }
  .advisor-logo { grid-column: auto; justify-content: flex-end; }
  .advisor-logo img { height: 52px; }
}
@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1.25fr .9fr; }
  .hero-card { justify-self: end; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .reasons { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .stepper { font-size: .82rem; gap: .5rem; }
  .facts { grid-template-columns: 1fr; }
}
