/* Solène Peyrègne (démo) : le dossier.
   Papier gris froid, encre, un seul accent rouge bolduc (le ruban des dossiers). Angles droits. */

:root {
  --paper: #f2f2ee;
  --sheet: #fbfbf8;
  --ink: #1d2026;
  --muted: #565a62;
  --line: #d8d8d1;
  --field: #7f838a;     /* bordure de champ, 3:1 minimum */
  --accent: #9b1d2a;    /* rouge bolduc : boutons, numéros, repères ; lisible en texte */
  --accent-hover: #7f1621;
  --on-accent: #fbfbf8;
  --error: #b3261e;

  --font-title: "Newsreader", Georgia, serif;
  --font-body: "Work Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15171b;
    --sheet: #1d2025;
    --ink: #ebeae6;
    --muted: #a5a8ae;
    --line: #33363c;
    --field: #7c8088;
    --accent: #ec8f98;
    --accent-hover: #f5aab1;
    --on-accent: #15171b;
    --error: #ff8a7a;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.7 var(--font-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--font-title); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1280px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 30; padding: 12px 16px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 16px; }
.note { margin-top: 16px; font-size: 12px; color: var(--muted); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); font: 500 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.big { min-height: 56px; padding-inline: 28px; font-size: 17px; }
.btn.line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--paper); }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.link:hover { text-decoration-thickness: 2px; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.mark { display: grid; text-decoration: none; line-height: 1.2; }
.mark b { font: 600 24px/1.1 var(--font-title); }
.mark span { font-size: 12px; color: var(--muted); }
@media (max-width: 520px) {
  .mark span { display: none; }
  .top .btn { padding-inline: 14px; font-size: 14px; }
}

/* Mise en page : bordereau de pièces à gauche, dossier à droite */
.layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); }
.bordereau { position: sticky; top: 72px; align-self: start; padding-block: 40px; }
.b-title { padding-bottom: 12px; border-bottom: 2px solid var(--ink); font: 600 18px/1.2 var(--font-title); }
.bordereau ol { margin: 0; padding: 0; list-style: none; }
.bordereau li a { display: grid; grid-template-columns: 28px 1fr; align-items: baseline; min-height: 44px; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: 14px; text-decoration: none; transition: color 150ms ease; }
.bordereau li a span { font: 600 16px/1 var(--font-title); color: var(--accent); font-variant-numeric: tabular-nums; }
.bordereau li a:hover { color: var(--accent); }
.bordereau li a[aria-current] { font-weight: 500; }
.bordereau li a[aria-current]::after { content: ""; grid-column: 2; height: 2px; margin-top: 6px; background: var(--accent); }
.b-urgent { margin-top: 24px; padding: 12px; border-left: 3px solid var(--accent); background: var(--sheet); font-size: 13px; line-height: 1.6; }
.b-urgent a { font-weight: 500; }
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .bordereau { display: none; }
}

/* Ouverture */
.hero { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(24px, 4vw, 56px); align-items: end; padding-block: clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(44px, 5.8vw, 84px); line-height: 1.04; }
.lead { margin-top: 24px; max-width: 48ch; font-size: 18px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.hero-photo { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 4 / 3; }
}

/* Blocs du dossier */
.block { padding-block: clamp(56px, 8vw, 104px); border-bottom: 1px solid var(--line); }
.block > h2, .end h2 { font-size: clamp(36px, 4.4vw, 56px); max-width: 20ch; }
.intro { margin-top: 12px; color: var(--muted); max-width: 56ch; }

.domains { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin: 40px 0 0; }
.domains div { padding-block: 20px 24px; border-top: 1px solid var(--ink); }
.domains dt { font: 600 24px/1.2 var(--font-title); }
.domains dd { margin: 8px 0 0; color: var(--muted); max-width: 44ch; }
@media (max-width: 640px) { .domains { grid-template-columns: 1fr; } }

/* Questionnaire (moment signature) */
.quiz { display: grid; gap: 0; margin-top: 32px; border-top: 2px solid var(--ink); }
.quiz fieldset { margin: 0; padding: 20px 0 24px; border: 0; border-bottom: 1px solid var(--line); }
.quiz legend { display: grid; grid-template-columns: 40px 1fr; float: left; width: 100%; margin-bottom: 16px; padding: 0; font: 500 22px/1.3 var(--font-title); }
.quiz legend span { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.quiz .chips { clear: both; padding-left: 40px; }
.answers { margin-top: 24px; }
.answer { padding: 24px 28px; border-left: 4px solid var(--accent); background: var(--sheet); }
.answer h3 { font-size: 28px; }
.answer p { margin-top: 10px; max-width: 64ch; }
.answer-cta { margin-top: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .answer { animation: rise 200ms var(--ease-out); }
}
@media (max-width: 560px) {
  .quiz legend { grid-template-columns: 28px 1fr; font-size: 20px; }
  .quiz .chips { padding-left: 0; }
  .answer { padding: 20px; }
}

/* Déroulé et pièces */
.flow { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 56px); margin-top: 40px; align-items: start; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; padding-block: 18px 22px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; font: 600 28px/1.1 var(--font-title); color: var(--accent); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 24px; }
.steps p { margin-top: 6px; color: var(--muted); }
.pieces { padding: 24px; background: var(--sheet); border: 1px solid var(--line); border-top: 4px solid var(--ink); }
.pieces h3 { font-size: 24px; }
.pieces > p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.pieces ol { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: p; }
.pieces li { counter-increment: p; display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding-block: 10px; border-top: 1px dashed var(--line); font-size: 14px; }
.pieces li::before { content: "Pièce " counter(p); font-size: 12px; color: var(--accent); font-weight: 500; white-space: nowrap; padding-top: 2px; }
.wide { margin-top: 48px; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } }

/* Honoraires */
.fees { width: 100%; margin-top: 32px; border-collapse: collapse; border-top: 2px solid var(--ink); }
.fees th, .fees td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.fees th { font-weight: 500; }
.fees td:nth-child(2) { font: 600 26px/1.1 var(--font-title); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fees td:last-child { padding-right: 0; font-size: 14px; color: var(--muted); }
.help-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 32px 0 0; padding: 0; list-style: none; }
.help-pay li { padding-top: 14px; border-top: 1px solid var(--ink); color: var(--muted); font-size: 15px; }
.help-pay b { display: block; color: var(--ink); font-weight: 500; }
@media (max-width: 760px) {
  .help-pay { grid-template-columns: 1fr; }
  .fees tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
  .fees th, .fees td { padding: 0; border: 0; }
  .fees td:last-child { grid-column: 1 / -1; }
}

/* Cabinet */
.cabinet { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.cabinet img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.cabinet h2 { font-size: clamp(36px, 4.4vw, 56px); }
.cabinet p:not(.note) { margin-top: 16px; color: var(--muted); max-width: 52ch; }
.infos { margin: 28px 0 0; }
.infos div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding-block: 12px; border-top: 1px solid var(--line); }
.infos dt { font-weight: 500; }
.infos dd { margin: 0; color: var(--muted); }
@media (max-width: 760px) {
  .cabinet { grid-template-columns: 1fr; }
  .cabinet img { aspect-ratio: 4 / 3; }
}

/* Questions */
.faq { margin-top: 32px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding-block: 12px; font: 500 21px/1.3 var(--font-title); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--font-body); color: var(--accent); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; max-width: 64ch; color: var(--muted); }

/* Fin et urgence */
.end { padding-block: clamp(56px, 8vw, 104px); }
.end p { margin-top: 16px; max-width: 48ch; font-size: 18px; color: var(--muted); }
.end .btn { margin-top: 28px; }
.contact { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 32px !important; }
.contact a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 500; text-underline-offset: 5px; }
.danger { margin-bottom: 56px; padding: 20px 24px; border: 1px solid var(--accent); border-left-width: 4px; }
.danger a { font-weight: 600; color: var(--accent); }

/* Pied de page */
.foot { padding-block: 24px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.foot a { display: inline-block; padding-block: 12px; color: var(--ink); text-underline-offset: 4px; }

/* Fenêtre de rendez-vous */
dialog { width: min(640px, 100% - 16px); max-height: calc(100dvh - 16px); margin: auto; padding: clamp(20px, 4vw, 36px); border: 0; border-top: 6px solid var(--accent); background: var(--sheet); color: var(--ink); overflow: auto; }
dialog::backdrop { background: rgb(12 13 16 / .64); }
.dlg-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.dlg-head h2 { font-size: clamp(30px, 5vw, 40px); }
.close { width: 44px; height: 44px; flex: none; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 400 28px/1 var(--font-body); cursor: pointer; }
.close:hover { border-color: var(--ink); }
.dlg-intro { margin-top: 8px; color: var(--muted); }
.dlg-danger { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.dlg-danger a { font-weight: 600; color: var(--accent); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; margin-top: 24px; }
.full { grid-column: 1 / -1; }
.q { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; align-content: start; min-width: 0; }
.q > label, .q legend { padding: 0; font-weight: 500; }
.q legend { margin-bottom: 8px; }
.q .opt { font-weight: 400; color: var(--muted); }
.help, .q .help { font-size: 12px; color: var(--muted); line-height: 1.5; }
.q input:not([type="radio"]), .q select, .q textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--field); border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; }
.q textarea { min-height: 96px; resize: vertical; }
.q input:focus-visible, .q select:focus-visible, .q textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--field); background: var(--paper); font-size: 15px; cursor: pointer; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
.chips input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chips label:hover { border-color: var(--ink); }
.chips label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chips label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.err { display: none; font-size: 14px; color: var(--error); line-height: 1.4; }
.invalid .err { display: block; }
.invalid input:not([type="radio"]), .invalid select { border-color: var(--error); }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.send p { font-size: 14px; color: var(--muted); }
.done { display: grid; gap: 16px; padding: 20px; border: 1px solid var(--accent); background: var(--paper); }
.done:focus { outline: none; }
.done h3 { font-size: 26px; }
.done p { color: var(--muted); }
.done textarea { width: 100%; min-height: 160px; padding: 12px 14px; border: 1px solid var(--field); background: var(--sheet); color: var(--ink); font: 14px/1.6 var(--font-body); }
.done .btn { justify-self: start; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* Mouvement : fenêtre, réponse du questionnaire, « + » des questions. Rien au défilement. */
@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: rise 200ms var(--ease-out); }
  dialog[open]::backdrop { animation: fade 200ms ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } }
