/* Budget Compostelle · app.ludovicnoel.fr/budget-pelerinage-compostelle (2026-12-05)
   Charte reprise du carnet de voyage de Compostelle (jeviensdulivre/assets/livre.css) :
   crème #f4eee2, encre #23252e, sable #ead9b3, ocre #b7761c, bleu #1f4d9b, jaune #f2c230, rouge #c9342b.
   Cinzel (titres), Cormorant Garamond (texte), Caveat (écriture à la main). */
@font-face { font-family: "Cinzel"; font-weight: 400 900; font-display: swap; src: url(fonts/cinzel.woff2) format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 300 700; font-display: swap; src: url(fonts/cormorant.woff2) format("woff2"); }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 300 700; font-display: swap; src: url(fonts/cormorant-italic.woff2) format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 400 700; font-display: swap; src: url(fonts/caveat.woff2) format("woff2"); }

:root {
  --cream: #f4eee2; --paper: #fbf7ef; --ink: #23252e; --ink-2: #423c38; --muted: #6b655e; --line: #bcb4a5;
  --sand: #ead9b3; --ochre: #b7761c; --blue: #1f4d9b; --yellow: #f2c230; --red: #c9342b; --green: #4f7a3a;
  --title: "Cinzel", Georgia, serif; --text: "Cormorant", Garamond, Georgia, serif; --hand: "Caveat", "Segoe Print", cursive;
  --r: 18px; --stroke: 1.5px solid var(--ink);
  --spring: cubic-bezier(.22, 1, .36, 1);
  --glass: rgba(244, 238, 226, .8);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 500 1.2rem/1.5 var(--text); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; font-variant-numeric: lining-nums; }
h1, h2, h3 { margin: 0; font-family: var(--title); font-weight: 700; line-height: 1.1; letter-spacing: .02em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--sand); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.muted { color: var(--muted); }
.opt { font-weight: 500; font-size: .95rem; color: var(--muted); font-style: italic; }
.hint { font-size: 1rem; color: var(--muted); margin-top: 6px; font-style: italic; }

/* Barre du haut : verre translucide */
.bar { position: relative; z-index: 50; background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid rgba(35, 37, 46, .12); }
.bar-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 14px; }
.brand { font-family: var(--title); font-weight: 700; letter-spacing: .22em; font-size: 1rem; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.bar-tag { font-family: var(--hand); font-size: 1.3rem; color: var(--ink-2); }

/* Héros */
.hero { padding: 40px 0 20px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }
.hero-txt { display: flex; flex-direction: column; gap: 16px; }
.kicker { font-family: var(--hand); font-size: 1.7rem; color: var(--ochre); line-height: 1.1; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.lead { font-size: 1.3rem; color: var(--ink-2); max-width: 34em; }
.art { width: min(320px, 100%); justify-self: center; -webkit-mask-image: radial-gradient(closest-side, #000 78%, transparent); mask-image: radial-gradient(closest-side, #000 78%, transparent); }
.quote { font-style: italic; color: var(--ink-2); border-left: 2px solid var(--ochre); padding-left: 14px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 20px; } .art { width: min(200px, 55%); grid-row: 1; } .hero { padding-top: 24px; } }

/* Cartes */
.card { background: var(--paper); border: var(--stroke); border-radius: var(--r); box-shadow: 0 18px 40px -24px rgba(35, 37, 46, .45); }
.page { padding: 20px 0 80px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 1000px) { .layout { grid-template-columns: 1fr; } }
.cols { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.block { padding: 26px 26px 20px; }
@media (max-width: 600px) { .block { padding: 20px 14px 14px; } }
.block h2 { font-size: 1.35rem; display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tag-terrain { color: var(--green); border-color: var(--green); }
.num { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--yellow); font-size: 1rem; }
.block-sub { color: var(--ink-2); margin-bottom: 14px; font-size: 1.1rem; }
.tag { display: inline-block; font: 700 .68rem var(--title); letter-spacing: .1em; text-transform: uppercase; color: var(--ochre); border: 1px solid var(--ochre); border-radius: 999px; padding: 1px 7px; vertical-align: 2px; margin-left: 6px; }

/* Champs */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; gap: 4px; } }
.field { margin-bottom: 10px; }
.field label { display: block; font-weight: 700; font-size: 1.08rem; margin-bottom: 6px; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.stepper { display: inline-grid; grid-template-columns: 48px minmax(56px, 1fr) 48px; align-items: stretch; width: 100%; max-width: 230px; height: 52px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden;
  transition: border-color .2s, box-shadow .2s var(--spring); }
.stepper:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(183, 118, 28, .18); }
.stepper input { width: 100%; min-width: 0; border: 0; text-align: center; font: 700 1.3rem var(--text); color: var(--ink); background: transparent; caret-color: var(--ochre); }
.stepper input:focus { outline: none; }
.step { border: 0; background: var(--cream); color: var(--ink); font: 600 1.5rem/1 var(--text); cursor: pointer; touch-action: manipulation; transition: background .15s, transform 100ms ease-out; }
.step:active { background: var(--sand); transform: scale(.92); }
@media (hover: hover) { .step:hover { background: #ece3d1; } }
.stepper-sm { height: 44px; max-width: 150px; grid-template-columns: 44px minmax(40px, 1fr) 44px; border-radius: 12px; }
.stepper-sm input { font-size: 1.15rem; }

/* Compteur de répartition */
.alloc { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; font-size: 1.02rem; color: var(--ink-2); font-style: italic; }
.meter { height: 6px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--ochre); border-radius: inherit; transition: width .45s var(--spring); }

/* Lignes (hébergement, repas, extras) */
.rows { display: flex; flex-direction: column; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) 128px 190px 84px; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid rgba(188, 180, 165, .6); }
.line:first-child { border-top: 0; }
.line-txt b { font-weight: 700; font-size: 1.12rem; }
.line-txt .opt { display: block; line-height: 1.25; margin-top: 2px; }
.line.is-rest, .line.is-auto { background: linear-gradient(90deg, rgba(234, 217, 179, .35), transparent); border-radius: 10px; padding-left: 10px; padding-right: 6px; }
.price { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s var(--spring); }
.price:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(183, 118, 28, .18); }
.price input { width: 100%; min-width: 0; border: 0; font: 700 1.12rem var(--text); color: var(--ink); background: transparent; text-align: right; }
.price input:focus { outline: none; }
.price span { font-size: .9rem; color: var(--muted); white-space: nowrap; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty-auto { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px; background: var(--sand); font: 700 1.15rem var(--text); }
.qty-unit { font: italic 500 1rem var(--text); color: var(--ink-2); background: transparent; padding: 0; justify-items: start; }
.qty-lab { font-size: .98rem; color: var(--muted); }
.line-sum { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "txt sum" "price qty"; gap: 8px 10px; }
  .line-txt { grid-area: txt; } .price { grid-area: price; } .qty { grid-area: qty; justify-content: flex-end; } .line-sum { grid-area: sum; align-self: start; padding-top: 2px; }
  .qty-unit { justify-items: end; }
}

/* Marge imprévus */
.marge { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input { flex: 1; accent-color: var(--ochre); height: 44px; }
.range-row output { min-width: 64px; text-align: center; font: 700 1.25rem var(--text); background: var(--sand); border-radius: 12px; padding: 6px 10px; }

/* Boutons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 22px; border-radius: 999px; border: var(--stroke);
  font: 700 .9rem var(--title); letter-spacing: .06em; text-decoration: none; cursor: pointer; transition: transform 100ms ease-out, background .2s; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:active { transform: scale(.97); background: var(--sand); }
@media (hover: hover) { .btn-ghost:hover { background: #ece3d1; } }

/* Résultat */
.result { position: sticky; top: 20px; }
@media (max-width: 1000px) { .result { position: static; grid-row: 1; } }
.res-card { padding: 26px 24px 22px; background: var(--ink); color: var(--cream); border-color: var(--ink); }
.res-card h2 { font-size: 1rem; letter-spacing: .16em; color: var(--sand); }
.total { font: 700 clamp(2.4rem, 6vw, 3.2rem)/1.05 var(--title); color: var(--yellow); margin-top: 10px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.total-sub { color: var(--sand); font-style: italic; margin-top: 4px; }
.estim { margin-top: 10px; font-size: 1rem; line-height: 1.35; color: var(--cream); background: rgba(242, 194, 48, .12); border-left: 2px solid var(--yellow); padding: 6px 10px; border-radius: 0 8px 8px 0; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 16px; }
.kpis div { border: 1px solid rgba(234, 217, 179, .35); border-radius: 12px; padding: 10px 12px; }
.kpis dt { font-size: .95rem; color: var(--sand); font-style: italic; line-height: 1.2; }
.kpis dd { margin: 4px 0 0; font: 700 1.35rem var(--text); font-variant-numeric: tabular-nums; }
.parts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.parts li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 1.05rem; }
.p-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.p-bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: rgba(244, 238, 226, .14); overflow: hidden; }
.p-bar i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .5s var(--spring); }
.c1 { background: var(--yellow); } .c2 { background: #e39a3b; } .c3 { background: #8fb3e8; } .c4 { background: #e8706a; } .c5 { background: var(--sand); } .c6 { background: #b9b2a6; } .c7 { background: #9cc58a; }
.ref { margin-top: 16px; padding-top: 12px; border-top: 1px dashed rgba(234, 217, 179, .35); font-size: 1rem; color: var(--sand); font-style: italic; line-height: 1.35; }

/* Sources */
.sources { margin-top: 28px; padding: 24px 26px; }
.sources h2 { font-size: 1.15rem; margin-bottom: 10px; }
.sources h3 { font-size: .95rem; letter-spacing: .12em; color: var(--ochre); margin: 18px 0 8px; }
.sources ul { margin: 10px 0; padding-left: 22px; }
.sources li { margin: 3px 0; }
.sources a { color: var(--blue); }

/* Barre du total en bas (mobile), verre translucide */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding-bottom: env(safe-area-inset-bottom); background: rgba(35, 37, 46, .86); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  color: var(--cream); transform: translateY(110%); transition: transform .45s var(--spring); }
.dock.on { transform: none; }
.dock-in { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.dock span { font: 700 .8rem var(--title); letter-spacing: .14em; color: var(--sand); }
.dock b { font: 700 1.5rem var(--title); color: var(--yellow); font-variant-numeric: tabular-nums; }
@media (min-width: 1001px) { .dock { display: none; } }

/* Pied de page */
.foot { border-top: 1px solid var(--line); padding: 24px 0 80px; font-size: 1.02rem; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot a { min-height: 44px; display: inline-flex; align-items: center; }
.foot-quote { font-style: italic; }

/* Accessibilité : moins de mouvement, moins de transparence, plus de contraste */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .dock { transition: opacity .2s; transform: none; opacity: 0; pointer-events: none; } .dock.on { opacity: 1; }
}
@media (prefers-reduced-transparency: reduce) {
  .bar { background: var(--cream); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .dock { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #3d3833; --line: #6b655e; }
  .bar { background: var(--cream); border-bottom-color: var(--ink); }
  .stepper, .price { border-color: var(--ink); }
}

/* Impression : le budget sur une feuille */
@media print {
  .bar, .dock, .actions, .hero .art, .foot, .step { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .card { box-shadow: none; break-inside: avoid; }
  .layout { grid-template-columns: 1fr; }
  .result { position: static; grid-row: 1; }
  .res-card { background: #fff; color: var(--ink); }
  .res-card h2, .total-sub, .kpis dt, .ref, .estim { color: var(--ink-2); }
  .estim { background: none; }
  .total { color: var(--ink); }
}

/* ===== Questionnaire guidé (quiz.js), 2026-12-05 : public souvent âgé → gros texte, grosses cibles ===== */
.quiz { padding: 10px 0 60px; }
.quiz .wrap { max-width: 760px; }
.q-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.q-count { font: 700 .95rem var(--title); letter-spacing: .12em; color: var(--ink-2); margin-left: auto; }
.q-back { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px 0 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper);
  font: 700 1.15rem var(--text); color: var(--ink); cursor: pointer; transition: transform 100ms ease-out, background .15s; }
.q-back svg { width: 22px; height: 22px; }
.q-back:active { transform: scale(.96); background: var(--sand); }
.q-meter { height: 8px; border-radius: 999px; background: var(--sand); overflow: hidden; margin: 10px 0 18px; }
.q-meter i { display: block; height: 100%; width: 0; background: var(--ochre); border-radius: inherit; transition: width .5s var(--spring); }
.q-card { padding: 34px 30px 30px; }
@media (max-width: 600px) { .q-card { padding: 24px 16px 20px; } }
.q-title { font-size: clamp(1.55rem, 4.4vw, 2.1rem); line-height: 1.2; outline: none; }
.q-help { margin-top: 12px; font-size: 1.25rem; line-height: 1.45; color: var(--ink-2); border-left: 3px solid var(--ochre); padding-left: 14px; }
.q-help:empty { display: none; }
.q-opts { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.q-opt { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 68px; padding: 14px 20px; text-align: left; cursor: pointer;
  background: #fff; border: 2px solid var(--line); border-radius: 16px; font: 700 1.35rem/1.3 var(--text); color: var(--ink);
  transition: transform 100ms ease-out, border-color .15s, background .15s; touch-action: manipulation; }
.q-opt:active { transform: scale(.98); background: #fffaf0; border-color: var(--ink); }
@media (hover: hover) { .q-opt:hover { border-color: var(--ink); background: #fffaf0; } }
.q-dot { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; display: grid; place-items: center; transition: background .15s; }
.q-opt.is-on { border-color: var(--ink); background: #fff6df; }
.q-opt.is-on .q-dot { background: var(--ink); box-shadow: inset 0 0 0 6px var(--yellow); }
.q-num { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.stepper-xl { height: 68px; max-width: 280px; grid-template-columns: 68px minmax(70px, 1fr) 68px; border-width: 2px; border-radius: 16px; }
.stepper-xl input { font-size: 1.8rem; }
.stepper-xl .step { font-size: 2rem; }
.q-unit { font-size: 1.3rem; color: var(--ink-2); font-style: italic; }
.btn-ink { background: var(--ink); color: var(--cream); box-shadow: 0 5px 0 -1px var(--ochre); }
.btn-ink:active { box-shadow: 0 1px 0 -1px var(--ochre); transform: translateY(3px); }
.btn-xl { width: 100%; min-height: 64px; margin-top: 22px; font-size: 1.1rem; }
.q-skip-row { margin-top: 22px; text-align: center; }
.q-skip { min-height: 52px; padding: 8px 16px; border: 0; background: transparent; font: 600 1.15rem var(--text); color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; border-radius: 12px; }
.q-skip:active { background: var(--sand); }
@keyframes q-in-next { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes q-in-prev { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.q-card.in-next { animation: q-in-next .42s var(--spring); }
.q-card.in-prev { animation: q-in-prev .42s var(--spring); }

/* Écran de calcul */
.loading { padding: 10px 0 80px; }
.loading .wrap { max-width: 640px; }
.load-card { padding: 34px 28px; text-align: center; }
.load-shell { margin: 0 auto 14px; animation: shell 1.6s ease-in-out infinite; }
@keyframes shell { 50% { transform: translateY(-6px) rotate(-4deg); } }
.load-card h2 { font-size: 1.6rem; }
.load-steps { list-style: none; padding: 0; margin: 22px auto 0; max-width: 460px; text-align: left; display: flex; flex-direction: column; gap: 14px; }
.load-steps li { display: flex; align-items: center; gap: 14px; font-size: 1.3rem; color: var(--muted); transition: color .3s; }
.load-steps li::before { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); transition: background .3s, border-color .3s; }
.load-steps li.done { color: var(--ink); font-weight: 700; }
.load-steps li.done::before { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 18px no-repeat; border-color: var(--green); }

/* En-tête du tableau après le questionnaire */
.t-head { margin-bottom: 22px; display: flex; flex-direction: column; gap: 10px; }
.t-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); outline: none; }
.t-recap { font-size: 1.3rem; font-weight: 700; color: var(--ink-2); }
.t-sub { font-size: 1.2rem; color: var(--ink-2); max-width: 46em; }

@media (prefers-reduced-motion: reduce) { .q-card.in-next, .q-card.in-prev, .load-shell { animation: none; } }
@media (prefers-contrast: more) { .q-opt, .q-back { border-color: var(--ink); } }
@media print { .quiz, .loading, .t-head .actions { display: none !important; } }

/* Le total en bas n'a de sens qu'avec le tableau (pas pendant les questions ni le calcul). */
body:not([data-view=tableau]) .dock { display: none; }

/* ===== Accueil : deux choix en deux colonnes ===== */
.choix { padding: 36px 0 70px; }
.choix .hero-grid { margin-bottom: 30px; }
.choix-q { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-bottom: 16px; }
.choix-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .choix-grid { grid-template-columns: 1fr; gap: 16px; } }
.choix-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px 26px 24px; text-align: left; cursor: pointer;
  font: inherit; color: var(--ink); min-height: 250px; transition: transform .25s var(--spring), box-shadow .25s; touch-action: manipulation; }
.choix-card:active { transform: scale(.985); }
@media (hover: hover) { .choix-card:hover { transform: translateY(-4px); box-shadow: 0 26px 46px -24px rgba(35, 37, 46, .55); } .choix-card:hover .choix-go svg { transform: translateX(4px); } }
.choix-main { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.choix-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--sand); color: var(--ink); }
.choix-main .choix-ico { background: var(--yellow); }
.choix-ico svg { width: 30px; height: 30px; }
.choix-tag { position: absolute; top: 22px; right: 22px; font: 700 .72rem var(--title); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: var(--yellow); border-radius: 999px; padding: 4px 10px; }
.choix-title { font: 700 clamp(1.25rem, 2.6vw, 1.55rem)/1.25 var(--title); letter-spacing: .01em; }
.choix-txt { font-size: 1.22rem; line-height: 1.4; color: var(--ink-2); }
.choix-main .choix-txt { color: var(--sand); }
.choix-go { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 22px; border-radius: 999px; border: var(--stroke); font: 700 .95rem var(--title); letter-spacing: .06em; }
.choix-main .choix-go { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.choix-go svg { width: 18px; height: 18px; transition: transform .3s var(--spring); }
.choix-quote { margin-top: 30px; }

/* ===== Questionnaire et calcul en pleine page ===== */
html.lock, html.lock body { overflow: hidden; }
.full { position: fixed; inset: 0; z-index: 100; background: var(--cream); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; animation: full-in .35s var(--spring); }
@keyframes full-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.full-bar { position: sticky; top: 0; z-index: 2; background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid rgba(35, 37, 46, .12); }
.full-bar-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.full-bar .brand { font-size: .9rem; letter-spacing: .18em; }
.q-quit { min-height: 48px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font: 700 1.1rem var(--text); color: var(--ink); cursor: pointer; }
.q-quit:active { transform: scale(.96); background: var(--sand); }
.full-body { max-width: 760px; padding-top: 22px; padding-bottom: 50px; }
.full-center { min-height: calc(100dvh - 20px); display: flex; align-items: center; justify-content: center; }
.full-center .load-card { width: 100%; }
.quiz.full { padding: 0; }
.loading.full { padding: 0; }
@media (prefers-reduced-motion: reduce) { .full { animation: none; } .choix-card { transition: none; } }
@media (prefers-reduced-transparency: reduce) { .full-bar { background: var(--cream); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media print { .choix { display: none !important; } }

/* ===== Envoi par e-mail ===== */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mail-card { margin-top: 18px; padding: 24px 22px 20px; }
.mail-card h2 { font-size: 1.15rem; line-height: 1.25; }
.mail-sub { margin: 8px 0 14px; color: var(--ink-2); font-size: 1.08rem; line-height: 1.4; }
.field input[type=text], .field input[type=email] { width: 100%; min-height: 52px; padding: 10px 14px; font: 600 1.15rem var(--text); color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s var(--spring); caret-color: var(--ochre); }
.field input[type=text]:focus, .field input[type=email]:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(183, 118, 28, .18); }
.field input[aria-invalid] { border-color: var(--red); box-shadow: 0 0 0 4px rgba(201, 52, 43, .12); }
.f-err { color: var(--red); font-size: 1rem; font-weight: 700; margin-top: 4px; }
.f-err:empty, .f-global:empty { display: none; }
.f-global { margin-top: 12px; text-align: center; color: var(--red); font-weight: 700; }
.choice { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 12px 14px; margin-top: 6px; min-height: 44px;
  border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box { width: 28px; height: 28px; border: var(--stroke); border-radius: 8px; display: grid; place-items: center; background: #fff; color: transparent; transition: background .15s, transform .1s; }
.box svg { width: 18px; height: 18px; }
.choice:active .box { transform: scale(.88); }
.choice:has(input:checked) { border-color: var(--ink); background: #fffaf0; }
.choice input:checked ~ .box { background: var(--ink); color: var(--yellow); }
.choice input:focus-visible ~ .box { outline: 3px solid var(--blue); outline-offset: 3px; }
.choice-txt { font-size: 1.05rem; line-height: 1.35; }
.choice-txt .opt { display: block; margin-top: 2px; }
.btn-block { width: 100%; margin-top: 16px; }
.btn svg { width: 18px; height: 18px; }
.btn:disabled { cursor: default; }
.btn.is-busy { pointer-events: none; opacity: .85; }
.btn.is-busy::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(244, 238, 226, .35); border-top-color: var(--cream); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rgpd { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .98rem; color: var(--muted); line-height: 1.4; }
.mail-ok { text-align: center; padding: 10px 0 4px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 1.15rem; }
.mail-ok[hidden] { display: none; }
@media print { .mail-card { display: none !important; } }
@media (max-width: 760px) { .choix .art { display: none; } .choix { padding-top: 22px; } .choix .hero-grid { margin-bottom: 18px; } }

/* ===== Popup e-mail (dialog) ===== */
.mail-open { margin-top: 16px; }
.btn-ink svg { width: 20px; height: 20px; }
.dlg { width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; background: transparent; overflow: visible; }
.dlg::backdrop { background: rgba(35, 37, 46, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dlg[open] { animation: dlg-in .35s var(--spring); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.dlg .mail-card { position: relative; margin: 0; max-height: calc(100dvh - 24px); overflow-y: auto; padding: 28px 24px 22px; }
.dlg .mail-card h2 { font-size: 1.35rem; padding-right: 48px; }
.dlg-close { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; }
.dlg-close svg { width: 22px; height: 22px; }
.dlg-close:active { transform: scale(.92); background: var(--sand); }
@media (prefers-reduced-motion: reduce) { .dlg[open] { animation: none; } }
@media (prefers-reduced-transparency: reduce) { .dlg::backdrop { background: rgba(35, 37, 46, .7); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media print { .mail-open, [data-open-mail] { display: none !important; } }

/* Croissant de lune (demi-cercle de répartition) sous le total */
.moon { position: relative; margin: 18px auto 4px; max-width: 280px; }
.moon svg { display: block; width: 100%; height: auto; }
.moon path { transition: stroke-dasharray .5s var(--spring), stroke-dashoffset .5s var(--spring), stroke-width .2s var(--spring), opacity .2s; }
.moon .seg { cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.moon .seg:hover, .moon .seg:focus-visible, .moon .seg.is-on { stroke-width: 30; }
.moon svg:hover .seg:not(:hover), .moon svg.has-sel .seg:not(.is-on):not(:hover) { opacity: .45; }
.moon .seg:focus-visible { stroke-width: 32; }
.moon svg { overflow: visible; }
.moon-eur { margin-top: 2px; font: 700 1.35rem var(--title); color: var(--cream); font-variant-numeric: tabular-nums; }
.moon-cap { pointer-events: none; }
.moon-cap b { transition: color .2s; }
.moon-cap { position: absolute; left: 0; right: 0; bottom: -6px; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.moon-cap b { font: 700 1.9rem var(--title); color: var(--cream); font-variant-numeric: tabular-nums; }
.moon-cap span { font-size: 1rem; color: var(--sand); font-style: italic; }
@media (prefers-reduced-motion: reduce) { .moon path { transition: none; } }
@media print { .moon-cap b { color: var(--ink); } }

/* Menu du site compostelle.ludovicnoel.com (Accueil · Carnet de bord · Budget), 2026-12-05 */
.brand { white-space: nowrap; }
.site-nav { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(35, 37, 46, .06); }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; text-decoration: none; font: 700 .8rem var(--title); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); transition: background .2s, color .2s, transform .1s; white-space: nowrap; }
.site-nav a:active { transform: scale(.95); }
@media (hover: hover) { .site-nav a:hover { background: rgba(35, 37, 46, .08); color: var(--ink); } }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--cream); }
@media (max-width: 640px) {
  .bar-in { flex-direction: column; align-items: stretch; gap: 0; padding-top: 4px; padding-bottom: 8px; }
  .brand { justify-content: center; font-size: .9rem; }
  .site-nav { justify-content: space-between; }
  .site-nav a { flex: 1; justify-content: center; padding: 0 8px; font-size: .72rem; letter-spacing: .04em; }
}
