/* Maître Hélène Rouxel — site de démonstration La Balise.
   Aucune règle inline dans la page : la CSP du domaine (style-src 'self') les bloquerait. */

@font-face { font-family: "Instrument Serif"; src: url("/exemples/avocat/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/exemples/avocat/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/exemples/avocat/fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

/* Contrastes (WCAG) : paper/ink 14.3 · brass/ink 7.6 · mist/ink 8.4 · ink/paper 14.3 · muted/paper 6.0 · burgundy/paper 9.0 · ink/brass 7.6 · brass-dark/paper 5.2 */
:root {
  --ink: #1A1F2B;
  --ink-2: #252B3A;
  --ink-3: #343C50;
  --paper: #F6F2EA;
  --card: #FFFDF8;
  --sand: #EAE3D5;
  --muted: #565C68;
  --mist: #C3C8D2;
  --brass: #C9A468;
  --brass-2: #D8B880;
  --brass-dark: #7D5C22;
  --burgundy: #7A2237;
  --line: rgba(26, 31, 43, .15);
  --line-light: rgba(246, 242, 234, .15);
  --radius: 18px;
  --shadow: 0 1px 0 rgba(26, 31, 43, .05), 0 24px 46px -30px rgba(26, 31, 43, .5);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --serif: "Instrument Serif", Georgia, serif;
  --font: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--font); }
main, .foot { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -0.01em; }
h4 { margin: 0; font: 800 13px var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
h1 em, h2 em { font-style: italic; color: var(--burgundy); }
.fees h2 em { color: var(--brass); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--burgundy); outline-offset: 3px; border-radius: 6px; }
.fees :focus-visible, .foot :focus-visible { outline-color: var(--brass); }
small { font-size: .84em; }

/* ---------- Bandeau démo ---------- */
.demo-bar { position: relative; z-index: 60; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 16px; padding: 8px 16px; background: var(--ink); color: var(--mist); font-size: 13px; text-align: center; }
.demo-bar strong { color: var(--paper); }
.demo-bar a { color: var(--brass); font-weight: 700; text-decoration: none; }
.demo-bar a:hover { text-decoration: underline; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border: 0; border-radius: 4px; font: 700 15px/1.1 var(--font); letter-spacing: .03em; text-decoration: none; text-align: center; cursor: pointer; transition: transform .25s var(--ease), background-color .2s ease, color .2s ease; }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--brass-2); transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-3); transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--paper); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(26, 31, 43, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--paper); border-bottom: 1px solid var(--line-light); }
.top-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; }
.brand-text { display: grid; }
.brand-name { font: 400 26px/1 var(--serif); }
.brand-sub { margin-top: 3px; font-size: 13px; letter-spacing: .06em; color: var(--mist); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--mist); font-weight: 600; font-size: 15px; text-decoration: none; transition: color .2s ease; }
.nav a:hover { color: var(--paper); }
.top-cta { padding: 11px 18px; border-radius: 4px; background: var(--brass); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; transition: background-color .2s ease; }
.top-cta:hover { background: var(--brass-2); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 90px; background: var(--ink); color: var(--paper); background-image: radial-gradient(800px 500px at 90% 0%, rgba(201, 164, 104, .14), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.eyebrow { font: 700 13px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.hero h1 { margin-top: 18px; font-size: clamp(42px, 5.6vw, 80px); }
.hero h1 em { color: var(--brass); }
.hero-lead { margin-top: 24px; max-width: 34em; font-size: 19px; color: var(--mist); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-fact { margin-top: 26px; max-width: 34em; padding-left: 16px; border-left: 3px solid var(--brass); color: var(--mist); font-size: 16px; }
.hero-fact strong { color: var(--paper); }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px 4px 140px 4px; box-shadow: 0 40px 70px -36px rgba(0, 0, 0, .9); }

/* ---------- Sujet ---------- */
.topic { padding: 100px 0; }
.kicker { font: 700 13px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-dark); }
.kicker-brass { color: var(--brass); }
.topic h2, .fees h2, .flow h2, .office h2, .book h2 { margin-top: 12px; font-size: clamp(38px, 4.8vw, 62px); }
.section-lead { margin-top: 18px; max-width: 36em; font-size: 18px; color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tabs button { padding: 12px 18px; border: 0; border-radius: 4px; background: var(--card); color: var(--ink); font: 700 15px var(--font); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .2s ease, color .2s ease, transform .25s var(--ease); }
.tabs button:hover { transform: translateY(-2px); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.panel { display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; margin-top: 18px; padding: 32px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); animation: fade .4s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.panel h3 { font-size: 40px; }
.panel-lead { margin-top: 12px; color: var(--muted); font-size: 18px; }
.panel h4 { margin-top: 26px; }
.faq { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.faq li { padding: 14px 16px; border-radius: 10px; background: var(--paper); }
.faq strong { display: block; font-weight: 800; }
.faq span { color: var(--muted); font-size: 16px; }
.side-card { padding: 20px; border-radius: 14px; background: var(--ink); color: var(--paper); }
.side-card h4 { color: var(--brass); margin: 0; }
.check { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.check button { position: relative; display: block; width: 100%; padding: 10px 10px 10px 42px; border: 0; border-radius: 8px; background: var(--ink-2); color: var(--mist); font: 500 15px/1.4 var(--font); text-align: left; cursor: pointer; transition: background-color .2s ease; }
.check button::before { content: ""; position: absolute; left: 12px; top: 12px; width: 20px; height: 20px; border-radius: 5px; box-shadow: inset 0 0 0 2px var(--mist); transition: background-color .2s ease, box-shadow .2s ease; }
.check button[aria-pressed="true"] { color: var(--paper); background: var(--ink-3); }
.check button[aria-pressed="true"]::before { background: var(--brass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.5 3.5L16 8' fill='none' stroke='%231A1F2B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100%; box-shadow: none; }
.check-count { min-height: 1.5em; margin-top: 12px; color: var(--brass); font-weight: 700; font-size: 15px; }
.side-facts { display: grid; gap: 8px; margin: 14px 0; }
.side-facts div { padding: 12px 14px; border-radius: 10px; background: var(--paper); }
.side-facts dt { font: 800 12px var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.side-facts dd { margin: 3px 0 0; font-weight: 700; }

/* ---------- Honoraires ---------- */
.fees { padding: 100px 0; background: var(--ink); color: var(--paper); }
.fees .section-lead { color: var(--mist); }
.fee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 34px 0 0; padding: 0; list-style: none; }
.fee-grid li { padding: 26px; border-radius: var(--radius); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-light); color: var(--mist); font-size: 16px; transition: transform .4s var(--ease); }
.fee-grid li:hover { transform: translateY(-5px); }
.fee-grid li.is-main { background: var(--brass); color: #38301F; box-shadow: none; }
.fee-grid h3 { font-size: 30px; color: var(--paper); }
.fee-grid li.is-main h3, .fee-grid li.is-main .fee-price { color: var(--ink); }
.fee-price { margin: 10px 0 12px; font: 400 40px/1 var(--serif); color: var(--brass); font-variant-numeric: lining-nums; }
.fee-price small { font: 700 13px var(--font); letter-spacing: .08em; }
.aid { margin-top: 24px; padding: 26px; border-radius: var(--radius); background: var(--card); color: var(--ink); }
.aid h3 { font-size: 32px; }
.aid > p { margin-top: 8px; color: var(--muted); }
.aid-check { display: block; margin-top: 18px; font-weight: 700; }
.aid-check output { color: var(--burgundy); }
.aid-check input { width: 100%; margin: 10px 0 0; accent-color: var(--burgundy); }
.aid-result { min-height: 3.4em; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--paper); font-weight: 600; }
.aid-result[data-level="total"] { background: #E0F0E5; color: #1B5A35; }
.aid-result[data-level="partiel"] { background: #F6EBCB; color: #5E4710; }

/* ---------- Déroulé ---------- */
.flow { padding: 100px 0; background: var(--sand); }
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 34px 0 0; padding: 0; list-style: none; counter-reset: s; }
.flow-steps li { position: relative; padding: 62px 20px 22px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); counter-increment: s; }
.flow-steps li::before { content: "0" counter(s); position: absolute; left: 20px; top: 14px; font: 400 40px/1 var(--serif); color: var(--brass-dark); }
.flow-steps strong { display: block; font-weight: 800; }
.flow-steps span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }

/* ---------- Cabinet ---------- */
.office { padding: 100px 0; background: var(--ink); color: var(--paper); }
.office .section-lead { color: var(--mist); }
.office-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.office figure { margin: 0; }
.office img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.office-room { margin-top: 26px !important; }
.office h2 em { color: var(--brass); }

/* ---------- Rendez-vous ---------- */
.book { padding: 100px 0; }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.recap { margin-top: 20px; padding: 16px 18px; border-radius: 10px; background: var(--ink); color: var(--paper); font-weight: 600; }
.recap:empty { display: none; }
.recap b { color: var(--brass); }
.secret { margin-top: 20px; padding: 14px 16px; border-radius: 10px; background: var(--sand); color: var(--ink); font-size: 15px; }
.book-form, .book-done { padding: 28px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.b-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: block; }
.field-wide { grid-column: 1 / -1; }
.field > span { display: block; margin: 0 0 6px 2px; font-size: 13px; font-weight: 800; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 0; border-radius: 6px; background: var(--paper); color: var(--ink); font: 600 16px var(--font); box-shadow: inset 0 0 0 1.5px rgba(26, 31, 43, .28); }
.field textarea { resize: vertical; font-weight: 500; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 4px rgba(201, 164, 104, .55); }
.form-error { min-height: 1.4em; margin: 12px 0 8px; color: #B3261E; font-weight: 700; font-size: 15px; }
.fine { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.book-done { text-align: center; }
.book-done[hidden] { display: none; }
.book-done:focus { outline: none; }
.book-done h3 { margin-top: 10px; font-size: 34px; }
.book-done p { margin-top: 8px; color: var(--muted); }
.book-done .btn { margin-top: 16px; }
.done-mark { width: 84px; margin: 0 auto; animation: seal .6s var(--ease) both; }
.done-tick { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .6s .25s var(--ease) forwards; }
@keyframes seal { from { transform: scale(1.5) rotate(-10deg); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Pied de page ---------- */
.foot { padding: 56px 0; background: #11151D; color: var(--mist); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 32px; }
.brand-name-foot { margin-bottom: 12px; color: var(--paper); font-size: 30px; }
.foot a { color: var(--paper); }
.foot-small { margin-top: 6px; font-size: 13px; }
.foot-credit a { color: var(--brass); font-weight: 700; text-decoration: none; }
.foot-credit a:hover { text-decoration: underline; }

.sticky-cta { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .nav { display: none; }
  .top-cta { margin-left: auto; }
  .hero-grid, .panel, .office-grid, .book-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 360px; }
  .fee-grid { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .demo-long { display: none; }
  .top-inner { min-height: 62px; gap: 10px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 23px; }
  .brand-sub { display: none; }
  .top-cta { display: none; }
  .hero { padding: 36px 0 64px; }
  .hero-lead { font-size: 17px; }
  .topic, .fees, .flow, .office, .book { padding: 72px 0; }
  .panel { padding: 22px 16px; }
  .panel h3 { font-size: 32px; }
  .flow-steps, .b-grid { grid-template-columns: 1fr; }
  .book-form, .book-done { padding: 22px 16px; }
  .foot { padding-bottom: 100px; }
  .foot-grid { grid-template-columns: 1fr; }
  .sticky-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 55; transition: transform .35s var(--ease), opacity .3s ease; }
  .sticky-cta .btn { width: 100%; box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .6); }
  .sticky-cta.is-away { transform: translateY(150%); opacity: 0; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Les éléments de grille peuvent rétrécir sous la largeur de leur contenu */
.hero-grid > *, .panel > *, .office-grid > *, .book-grid > * { min-width: 0; }
