/* ==========================================================================
   Cabinet Balducci-Guerin — feuille de style
   Motif directeur : la verrière noire de l'entrée du cabinet (cadre + montants fins)
   ========================================================================== */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/PlayfairDisplay.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 {
  --white: #ffffff;
  --stone: #eeedeb;
  --line: #d9d7d3;
  --ink: #1a1a1c;
  --ink-soft: #4a4a4e;
  --bordeaux: #6b2a2a;
  --bordeaux-deep: #531f1f;
  --gold: #b08d57;
  --gold-light: #d9b77a;
  --error: #9b1c1c;

  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;

  --frame: 10px;      /* épaisseur du cadre de verrière */
  --mullion: 5px;     /* épaisseur des montants */
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 64ch; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--bordeaux); outline-offset: 3px; }
.on-dark :focus-visible, .band-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-light); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- Typographie ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.005em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.2; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); max-width: 56ch; }
.note { font-size: .95rem; color: var(--ink-soft); }
strong { font-weight: 600; }

/* ---------- Boutons et liens ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 500; font-size: 1rem; line-height: 1;
  padding: 1rem 1.6rem; border: 2px solid var(--bordeaux); background: var(--bordeaux); color: var(--white);
  text-decoration: none; border-radius: 2px; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--bordeaux-deep); border-color: var(--bordeaux-deep); }
.btn--ghost { background: transparent; color: var(--bordeaux); }
.btn--ghost:hover { background: var(--bordeaux); color: var(--white); }
.band-dark .btn { background: var(--white); border-color: var(--white); color: var(--bordeaux); }
.band-dark .btn:hover { background: var(--stone); border-color: var(--stone); }
.band-dark .btn--ghost { background: transparent; color: var(--white); border-color: var(--white); }
.band-dark .btn--ghost:hover { background: var(--white); color: var(--bordeaux); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

.link {
  font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
  text-decoration-color: var(--gold);
}
.link:hover { text-decoration-color: currentColor; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px; }
.brand { display: block; line-height: 0; }
.brand img { height: 104px; width: auto; }
.nav-toggle {
  display: none; font: inherit; font-weight: 500; background: none; border: 2px solid var(--ink); padding: 8px 14px; border-radius: 2px; cursor: pointer; color: var(--ink);
}
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.nav ul { display: flex; gap: clamp(16px, 2.2vw, 32px); list-style: none; }
.nav a { white-space: nowrap; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 1rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { border-bottom-color: var(--gold); }
.nav a[aria-current="page"] { border-bottom-color: var(--bordeaux); color: var(--bordeaux); }
.nav .btn { padding: .85rem 1.3rem; font-size: .95rem; }

/* ---------- Verrière (motif directeur) ---------- */
.veriere {
  background: var(--ink); padding: var(--frame); display: grid; gap: var(--mullion);
}
.veriere figure { margin: 0; position: relative; overflow: hidden; background: var(--stone); min-height: 0; }
.veriere img { width: 100%; height: 100%; object-fit: cover; }

.veriere--hero {
  grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr 1fr; height: clamp(440px, 70vh, 660px);
}
.veriere--hero figure:nth-child(1) { grid-row: 1 / span 2; }
.veriere--hero .pane-plaque img { object-position: 50% 80%; }

.veriere--single { grid-template-columns: 1fr; }
.veriere--single figure { aspect-ratio: 4 / 5; }
.veriere--wide figure { aspect-ratio: 3 / 2; }

.veriere--quad { grid-template-columns: 1fr 1fr; }
.veriere--quad figure { aspect-ratio: 1 / 1; }
.veriere--gallery { grid-template-columns: repeat(6, 1fr); }
.veriere--gallery figure { aspect-ratio: 4 / 5; }
.veriere--gallery .g-wide { grid-column: span 3; aspect-ratio: 3 / 2; }
.veriere--gallery .g-narrow { grid-column: span 3; aspect-ratio: 3 / 2; }
.veriere--gallery .g-third { grid-column: span 2; }

/* ---------- Sections ---------- */
section { padding-block: var(--section); }
.stone { background: var(--stone); }
.band-dark { background: var(--bordeaux); color: var(--white); }
.band-dark .lead, .band-dark p { color: rgba(255,255,255,.88); }
.ink { background: var(--ink); color: var(--white); }

/* Hero */
.hero { padding-block: clamp(36px, 6vw, 72px) var(--section); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: 1fr 1.08fr; align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .where { margin-top: 2.2rem; padding-left: 16px; border-left: 3px solid var(--gold); font-size: .98rem; color: var(--ink-soft); }
.hero .where strong { color: var(--ink); }

/* Divorce */
.divorce-grid { display: grid; gap: clamp(32px, 5vw, 80px); grid-template-columns: 1fr 1.05fr; align-items: stretch; }
.divorce-grid > .veriere { align-self: stretch; grid-template-rows: 1fr; }
.divorce-grid > .veriere figure { aspect-ratio: auto; height: 100%; min-height: 420px; }
.procedures { margin: 2rem 0 0; }
.procedures div { padding-block: 1.15rem; border-top: 1px solid rgba(255,255,255,.28); }
.procedures div:last-child { border-bottom: 1px solid rgba(255,255,255,.28); }
.procedures dt { font-family: var(--serif); font-size: 1.25rem; margin-bottom: .3rem; }
.procedures dd { margin: 0; color: rgba(255,255,255,.86); max-width: 58ch; }

/* Domaines (liste à filets) */
.split { display: grid; gap: clamp(28px, 5vw, 80px); grid-template-columns: 1fr 1.6fr; align-items: start; }
.split-head { position: sticky; top: 110px; }
.rows { list-style: none; }
.rows > li { display: grid; grid-template-columns: 1fr 1.5fr; gap: 12px 32px; padding-block: 1.8rem; border-top: 3px solid var(--ink); }
.rows > li:last-child { border-bottom: 1px solid var(--line); }
.rows h3 { margin: 0; }
.rows p { margin-bottom: .7rem; }

/* Rencontre */
.meet { display: grid; gap: clamp(32px, 6vw, 88px); grid-template-columns: .8fr 1.2fr; align-items: center; }
.principles { margin-top: 1.6rem; display: grid; gap: .9rem; }
.principles p { margin: 0; }

/* Cabinet */
.where-grid { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: 1.3fr 1fr; align-items: start; }
.address { font-style: normal; }
.address + .address { margin-top: 1.4rem; }
.address strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.2rem; margin-bottom: .1rem; }

/* Bandeau contact */
.cta { text-align: left; }
.cta-inner { display: grid; gap: 28px 64px; grid-template-columns: 1.2fr 1fr; align-items: center; }
.cta .big-tel { font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 2.8rem); text-decoration: none; display: inline-block; line-height: 1.1; }
.cta .big-tel:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 8px; }

/* Pages intérieures */
.page-head { padding-block: clamp(44px, 7vw, 96px) clamp(32px, 5vw, 56px); }
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-bottom: 0; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; max-width: 64ch; }
.prose li { margin-bottom: .45em; }
.prose a { text-decoration-color: var(--gold); text-underline-offset: 4px; }
.two-col { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: .8fr 1.2fr; align-items: start; }
.toc { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin-top: 2rem; }
.toc a { font-weight: 500; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.steps { list-style: none; counter-reset: step; margin: 1.2rem 0 1.6rem; max-width: 64ch; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.1rem 3.2rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
  background: var(--bordeaux); color: var(--white); font-family: var(--serif); font-size: 1.05rem; border-radius: 50%;
}
.domain { padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.domain:first-of-type { border-top: 0; }
.domain--featured { background: var(--stone); border-top: 0; }
.callout { border-left: 3px solid var(--gold); padding: .2rem 0 .2rem 18px; margin: 1.6rem 0; max-width: 64ch; }

/* Formulaire */
.form { display: grid; gap: 1.3rem; max-width: 640px; }
.field label { display: block; font-weight: 500; margin-bottom: .4rem; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid var(--ink-soft);
  border-radius: 3px; padding: .85rem 1rem;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--bordeaux); outline: 3px solid rgba(107,42,42,.25); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--error); }
.err { color: var(--error); font-size: .95rem; margin: .35rem 0 0; min-height: 0; }
.err:empty { display: none; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--bordeaux); }
.check label { margin: 0; font-weight: 400; font-size: .98rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; padding: 14px 16px; border-left: 3px solid var(--bordeaux); background: var(--stone); }
.status:empty { display: none; }
.status.is-error { border-left-color: var(--error); }
.contact-card { background: var(--stone); padding: clamp(24px, 3vw, 40px); }
.contact-card h2 { font-size: 1.6rem; }
.contact-card dl { margin: 0; display: grid; gap: 1.1rem; }
.contact-card dt { font-family: var(--serif); font-size: 1.1rem; }
.contact-card dd { margin: 0; }

mark.todo { background: #fff1b8; color: var(--ink); padding: 0 .3em; border-radius: 2px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); border-top: 6px solid var(--gold); color: rgba(255,255,255,.82); padding-block: clamp(48px, 6vw, 80px) 28px; font-size: .98rem; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.3fr 1fr 1fr; }
.site-footer img { height: 104px; width: auto; margin-bottom: 1rem; }
.site-footer h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: .8rem; letter-spacing: 0; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 4px; }
.site-footer a:hover { text-decoration-color: var(--gold-light); }
.footer-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); font-size: .9rem; color: rgba(255,255,255,.62); display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }


/* ---------- Carte (chargée au clic) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.map-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.map-tab { font: inherit; padding: .55rem 1.1rem; border: 1px solid var(--bordeaux); background: transparent; color: var(--bordeaux); cursor: pointer; }
.map-tab:hover, .map-tab.is-active { background: var(--bordeaux); color: var(--white); }
.map-frame { position: relative; aspect-ratio: 16 / 7; min-height: 320px; background: var(--stone); border: 1px solid var(--line); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; padding: 24px; text-align: center; }
.map-consent p { max-width: 52ch; margin: 0 0 .4rem; }
.map-consent[hidden] { display: none; }

/* ---------- Adaptation ---------- */
@media (max-width: 1040px) {
  .hero-grid, .divorce-grid, .split, .meet, .where-grid, .cta-inner, .two-col { grid-template-columns: 1fr; }
  .split-head { position: static; }
  .divorce-grid > .veriere figure { aspect-ratio: 3 / 2; height: auto; min-height: 0; }
  .hero h1 { max-width: 18ch; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .meet .veriere--single { max-width: 460px; }
}
@media (max-width: 1240px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 18px; text-align: center; }
}
@media (max-width: 820px) {
  .brand img { height: 72px; }
  .rows > li { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .veriere--hero { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .veriere--hero figure:nth-child(1) { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 4.3; }
  .veriere--hero figure:nth-child(2), .veriere--hero figure:nth-child(3) { aspect-ratio: 1; }
  .veriere--gallery { grid-template-columns: 1fr 1fr; }
  .veriere--gallery .g-wide, .veriere--gallery .g-narrow { grid-column: 1 / -1; }
  .veriere--gallery .g-third { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
@media print {
  .site-header, .site-footer, .nav-toggle, .actions { display: none; }
}
