/* Portail apporteurs Votre Barman — interface partenaire */
@font-face { font-family: 'Bodoni Moda'; src: url('fonts/bodoni-moda.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('fonts/jost.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --zinc: #e6e9e5;
  --paper: #ffffff;
  --bitters: #173029;
  --bitters-2: #21403a;
  --vermouth: #8e2c3a;
  --vermouth-dark: #74222f;
  --peel: #e3b75c;
  --ink: #1d2a26;
  --muted: #56645f;
  --line: #d3d9d4;
  --soft: #f3f5f2;
  --alert: #9a3412;
  --ok: #2f6b4f;
  --radius-l: 18px;
  --radius-m: 12px;
  --radius-s: 8px;
  --display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --ui: 'Jost', 'Futura', 'Avenir Next', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--zinc); color: var(--ink); font: 400 16px/1.5 var(--ui); font-feature-settings: 'tnum' 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--vermouth); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--peel); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Masthead */
.masthead { background: var(--bitters); color: #f4f1e8; }
.masthead-inner { max-width: 1180px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: .01em; font-variation-settings: 'opsz' 28; }
.wordmark .with { font-family: var(--ui); font-weight: 400; font-size: 15px; color: #c9d3cd; margin-left: 10px; letter-spacing: 0; }
.wordmark .with b { color: var(--peel); font-weight: 500; }
.masthead-note { margin: 0; font-size: 14px; color: #b9c6bf; }
.demo-ribbon { background: var(--peel); color: var(--bitters); text-align: center; font-size: 14px; padding: 7px 16px; }

/* Mise en page */
.page { max-width: 1180px; margin: 0 auto; padding: 36px 24px 120px; display: grid; grid-template-columns: minmax(0, 1fr) 390px; column-gap: 40px; align-items: start; }
.page > * { grid-column: 1; min-width: 0; }
.page > .carte { grid-column: 2; grid-row: 1 / span 6; position: sticky; top: 20px; }

.intro h1 { font-family: var(--display); font-weight: 500; font-variation-settings: 'opsz' 96; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.04; letter-spacing: -.01em; margin: 0 0 14px; color: var(--bitters); max-width: 16ch; }
.intro p { margin: 0 0 30px; color: var(--muted); max-width: 60ch; font-size: 17px; }

/* Blocs du formulaire */
.block { border: 0; margin: 0 0 18px; padding: 26px 28px 28px; background: var(--paper); border-radius: var(--radius-l); }
.block legend { float: left; width: 100%; padding: 0; margin: 0 0 18px; font-family: var(--display); font-weight: 500; font-size: 25px; font-variation-settings: 'opsz' 32; color: var(--bitters); }
.block legend + * { clear: both; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.grid .wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-weight: 500; font-size: 15px; }
.field .opt { font-weight: 400; color: var(--muted); }
.hint { font-size: 14px; color: var(--muted); }
.err { font-size: 14px; color: var(--alert); font-weight: 500; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], select, textarea {
  width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius-s); padding: 11px 13px; font-size: 16px; transition: border-color .15s;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--bitters); outline: 2px solid rgba(23, 48, 41, .18); outline-offset: 0; }
.invalid { border-color: var(--alert) !important; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.times { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.times .to { color: var(--muted); }

/* Compteur */
.field .stepper { align-self: flex-start; }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: #fff; }
.stepper button { width: 46px; min-height: 46px; border: 0; background: var(--soft); font-size: 22px; line-height: 1; cursor: pointer; color: var(--bitters); }
.stepper button:hover:not(:disabled) { background: #e8ece8; }
.stepper button:disabled { color: #b5bdb8; cursor: default; }
.stepper input { width: 84px; border: 0; border-radius: 0; text-align: center; font-weight: 600; min-height: 46px; padding: 8px 4px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper .value { min-width: 64px; padding: 0 10px; display: flex; align-items: center; justify-content: center; font-weight: 600; }

/* Format */
.formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.format { position: relative; display: block; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 16px 16px 50px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.format input { position: absolute; left: 18px; top: 19px; width: 20px; height: 20px; accent-color: var(--vermouth); margin: 0; }
.format strong { display: block; font-weight: 600; font-size: 17px; }
.format span { display: block; font-size: 14px; color: var(--muted); margin-top: 3px; }
.format:has(input:checked) { border-color: var(--bitters); background: var(--soft); box-shadow: inset 0 0 0 1px var(--bitters); }

.subhead { font-weight: 600; font-size: 15px; margin: 22px 0 10px; }
.subhead:first-child { margin-top: 0; }
.row-split { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); }
.row-split:first-of-type { border-top: 0; padding-top: 0; }
.row-split .txt { flex: 1 1 220px; }
.row-split .txt b { display: block; font-weight: 600; }
.linklike { background: none; border: 0; padding: 0; color: var(--vermouth); text-decoration: underline; cursor: pointer; font-size: 14px; }
.tip { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--peel); background: #fbf6ea; font-size: 14px; border-radius: 0 var(--radius-s) var(--radius-s) 0; }

/* Installations et options */
.choices { display: grid; gap: 8px; }
.choice { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-m); cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.choice input[type=radio], .choice input[type=checkbox] { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--vermouth); }
.choice .name { font-weight: 600; }
.choice .desc { grid-column: 2 / 4; font-size: 14px; color: var(--muted); margin-top: -2px; }
.choice .price { font-weight: 500; white-space: nowrap; text-align: right; font-feature-settings: 'tnum' 1; }
.choice .price.quote { font-weight: 500; color: var(--vermouth); font-size: 14px; border: 1px solid #e3c3c8; border-radius: 999px; padding: 1px 10px; }
.choice:has(input:checked) { border-color: var(--bitters); background: var(--soft); }
.choice.qty { cursor: default; grid-template-columns: minmax(0, 1fr) auto; }
.choice.qty .desc { grid-column: 1 / 2; }
.choice.qty .ctrl { grid-row: 1 / span 2; grid-column: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.choice.qty.on { border-color: var(--bitters); background: var(--soft); }
.choice.qty .stepper input, .choice.qty .stepper .value { width: 52px; min-width: 52px; }
.choice.qty .stepper button { width: 40px; min-height: 40px; }
.after-choices { margin: 12px 0 0; }
.choices.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices.compact .choice { grid-template-columns: 26px minmax(0, 1fr); padding: 11px 12px; }
.choices.compact .choice .desc { grid-column: 2; }
.quote-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.quote-head .price.quote { font-weight: 500; color: var(--vermouth); font-size: 14px; border: 1px solid #e3c3c8; border-radius: 999px; padding: 1px 10px; }

/* Bouton principal */
.actions { margin-top: 22px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--vermouth); color: #fff; font-weight: 600; font-size: 17px; cursor: pointer; transition: background .15s, transform .1s; }
.btn:hover:not(:disabled) { background: var(--vermouth-dark); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.ghost { background: transparent; color: var(--bitters); border: 1px solid var(--bitters); }
.btn.ghost:hover:not(:disabled) { background: var(--soft); }
.form-msg { font-size: 15px; }
.form-msg.error { color: var(--alert); font-weight: 500; }
.privacy { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* La carte : « Votre projet en résumé » */
.carte-mobile { display: none; }
.carte { background: var(--bitters); color: #eef1ec; border-radius: var(--radius-l); padding: 28px 28px 24px; box-shadow: 0 24px 50px -30px rgba(23, 48, 41, .7); }
.carte h2 { font-family: var(--display); font-weight: 500; font-size: 26px; font-variation-settings: 'opsz' 32; margin: 0 0 4px; color: #fff; }
.carte .facts { margin: 0 0 18px; font-size: 14px; color: #b9c8c0; }
.carte .facts span { white-space: nowrap; }
.carte .facts span + span::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--peel); margin: 0 9px 3px; }
.lines { list-style: none; margin: 0; padding: 18px 0 6px; border-top: 1px solid rgba(227, 183, 92, .45); }
.lines li { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; font-size: 15px; }
.lines .l { display: flex; flex-direction: column; min-width: 0; }
.lines .l small { color: #9fb2a8; font-size: 13px; }
.lines .dots { flex: 1 1 auto; border-bottom: 1px dotted rgba(238, 241, 236, .35); transform: translateY(-5px); min-width: 14px; }
.lines .a { font-feature-settings: 'tnum' 1; white-space: nowrap; font-weight: 500; }
.lines li.neg .a { color: var(--peel); }
.lines li.muted { color: #b9c8c0; }
.total { margin-top: 12px; padding-top: 16px; border-top: 1px solid rgba(227, 183, 92, .45); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.total .lbl { font-size: 15px; color: #d7dfd9; }
.total .amt { font-family: var(--display); font-size: 44px; font-weight: 500; font-variation-settings: 'opsz' 72; color: var(--peel); line-height: 1; font-feature-settings: 'lnum' 1; white-space: nowrap; }
.total .amt small { font-family: var(--ui); font-size: 15px; color: #d7dfd9; font-weight: 400; }
.ttc { text-align: right; font-size: 14px; color: #b9c8c0; margin: 4px 0 0; }
.pending { margin: 18px 0 0; padding: 12px 14px; border-radius: var(--radius-s); background: var(--bitters-2); font-size: 14px; }
.pending b { color: #fff; font-weight: 500; }
.pending ul { margin: 6px 0 0; padding-left: 18px; color: #d0dad4; }
.notes { list-style: none; margin: 14px 0 0; padding: 0; font-size: 14px; color: #e9d6a8; }
.notes li { position: relative; padding-left: 16px; margin-bottom: 6px; }
.notes li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--peel); }
.included { margin: 16px 0 0; font-size: 13px; color: #b9c8c0; }
.disclaimer { margin: 10px 0 0; font-size: 13px; color: #9fb2a8; line-height: 1.45; }
.carte .empty { color: #b9c8c0; font-size: 15px; margin: 14px 0 0; }
.carte-tools { margin-top: 16px; display: flex; gap: 14px; }
.carte-tools button { background: none; border: 0; color: #d7dfd9; text-decoration: underline; padding: 10px 0; min-height: 44px; cursor: pointer; font-size: 14px; }
.amt-flash { animation: flash .5s ease-out; }
@keyframes flash { from { color: #fff; } to { color: var(--peel); } }

/* Barre mobile */
.mobilebar { display: none; }

/* Confirmation */
.done { background: var(--paper); border-radius: var(--radius-l); padding: 34px 30px; }
.done h2 { font-family: var(--display); font-weight: 500; font-size: 34px; font-variation-settings: 'opsz' 48; margin: 0 0 10px; color: var(--bitters); }
.done .ref { display: inline-block; font-weight: 600; font-size: 20px; letter-spacing: .04em; padding: 8px 14px; background: var(--soft); border-radius: var(--radius-s); margin: 6px 0 16px; font-feature-settings: 'tnum' 1; }
.done p { max-width: 60ch; }
.done pre { white-space: pre-wrap; background: var(--soft); border-radius: var(--radius-m); padding: 16px; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; max-height: 420px; overflow: auto; }

/* Accès */
.access { max-width: 460px; margin: 60px auto; background: var(--paper); border-radius: var(--radius-l); padding: 34px 30px; }
.access h1 { font-family: var(--display); font-weight: 500; font-size: 32px; margin: 0 0 10px; color: var(--bitters); }
.access p { color: var(--muted); }

footer.foot { max-width: 1180px; margin: 0 auto; padding: 0 24px 40px; font-size: 13px; color: var(--muted); }

@media (max-width: 960px) {
  .page { grid-template-columns: minmax(0, 1fr); padding: 26px 16px 110px; }
  .page > .carte { display: none; }
  .carte-mobile { display: block; margin: 0 0 18px; scroll-margin-top: 12px; }
  .mobilebar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bitters); color: #fff; box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, .6); }
  .mobilebar .mb-total { font-family: var(--display); font-size: 26px; color: var(--peel); line-height: 1.05; font-feature-settings: 'lnum' 1; }
  .mobilebar .mb-total small { font-family: var(--ui); font-size: 13px; color: #d7dfd9; display: block; }
  .mobilebar a { color: #fff; font-weight: 500; text-decoration: none; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; padding: 9px 16px; font-size: 15px; white-space: nowrap; }
}
@media (max-width: 560px) {
  .masthead-inner { padding: 14px 16px; }
  .wordmark { font-size: 21px; }
  .wordmark .with { display: block; margin: 2px 0 0; }
  .masthead-note { display: none; }
  .block { padding: 20px 16px 22px; border-radius: 14px; }
  .block legend { font-size: 22px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .formats { grid-template-columns: minmax(0, 1fr); }
  .choices.compact { grid-template-columns: minmax(0, 1fr); }
  .carte { padding: 22px 18px 20px; border-radius: 14px; }
  .total .amt { font-size: 38px; }
  .btn { width: 100%; }
  .done, .access { padding: 26px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

@media print {
  body { background: #fff; }
  .masthead { background: #fff; color: #000; border-bottom: 1px solid #000; }
  .wordmark .with b, .wordmark .with { color: #000; }
  form, .mobilebar, .carte-tools, .demo-ribbon, .intro p, .masthead-note { display: none !important; }
  .page { display: block; padding: 20px 0; }
  .page > .carte { display: block; position: static; background: #fff; color: #000; box-shadow: none; border: 1px solid #000; }
  .carte h2, .carte .facts, .lines .l small, .total .lbl, .total .amt, .total .amt small, .ttc, .pending, .pending b, .pending ul, .notes, .included, .disclaimer, .lines li.muted { color: #000 !important; background: #fff !important; }
  .lines .dots { border-color: #000; }
}
.subhead-gap { margin-top: 22px; }
.quote-head .subhead { margin: 0; }
@media (max-width: 480px) {
  .choice.qty { grid-template-columns: minmax(0, 1fr); }
  .choice.qty .name { order: 1; }
  .choice.qty .desc { order: 2; grid-column: 1; margin-top: 0; }
  .choice.qty .ctrl { order: 3; grid-row: auto; grid-column: 1; flex-direction: row; flex-wrap: wrap; gap: 8px 12px; justify-content: space-between; align-items: center; margin-top: 6px; }
}
@media (max-width: 380px) {
  .choice { grid-template-columns: 26px minmax(0, 1fr); }
  .choice .price { grid-column: 2; text-align: left; justify-self: start; }
  .choice .desc { grid-column: 2; }
}
