:root {
  --navy: #182846;
  --navy-soft: #23375d;
  --gold: #c7a568;
  --gold-soft: #eadfca;
  --paper: #fffcf7;
  --cream: #f4efe6;
  --ink: #20252c;
  --muted: #626b76;
  --line: #ded4c2;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(24, 40, 70, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: 0;
}
h1 { font-size: clamp(2.8rem, 8vw, 5.8rem); }
h1 span { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--gold); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 18px; }

.skip-link, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  z-index: 20;
  padding: 10px 14px;
  background: var(--navy);
  color: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 252, 247, 0.94);
  border-bottom: 1px solid rgba(222, 212, 194, 0.8);
  backdrop-filter: blur(14px);
}
.brand img { width: 150px; }
.nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 0.95rem;
}
.nav a, .site-footer a {
  text-decoration: none;
  color: var(--navy);
}
.nav a:hover, .site-footer a:hover { color: var(--gold); }
.nav-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--navy);
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.btn:hover { transform: translateY(-2px); background: var(--navy-soft); }
.btn-small { min-height: 40px; padding: 9px 14px; font-size: 0.9rem; }
.btn-secondary { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-secondary:hover { background: #d2b77e; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--cream); }

.section {
  padding: clamp(72px, 9vw, 120px) clamp(20px, 5vw, 72px);
}
.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  gap: clamp(34px, 7vw, 100px);
  align-items: center;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(255, 252, 247, 0.98) 0%, rgba(255, 252, 247, 0.88) 48%, rgba(24, 40, 70, 0.18) 100%),
    url("assets/palais-justice-tours.jpg") center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.1), rgba(255, 252, 247, 0.32)),
    linear-gradient(90deg, transparent 0%, transparent 57%, rgba(24, 40, 70, 0.16) 100%);
}
.hero-copy {
  max-width: 820px;
}
.justice-logo {
  width: 78px;
  margin-bottom: 18px;
}
.eyebrow {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.lead {
  max-width: 720px;
  color: var(--navy);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}
blockquote {
  margin: 28px 0;
  padding-left: 22px;
  border-left: 4px solid var(--gold);
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}
.hero-actions, .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.portrait-panel {
  width: min(100%, 410px);
  aspect-ratio: 4 / 5.25;
  min-height: 0;
  justify-self: center;
  padding: 10px;
  border: 1px solid rgba(199, 165, 104, 0.72);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 252, 247, 0.82), rgba(199, 165, 104, 0.64));
  box-shadow:
    0 24px 58px rgba(24, 40, 70, 0.22),
    0 0 0 1px rgba(255, 252, 247, 0.42) inset;
  position: relative;
}
.portrait-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 1;
  border: 1px solid rgba(255, 252, 247, 0.72);
  border-radius: 6px;
  pointer-events: none;
}
.portrait-panel::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 5px;
  background: linear-gradient(180deg, transparent 58%, rgba(24, 40, 70, 0.2));
  pointer-events: none;
}
.portrait-panel picture {
  display: block;
  width: 100%;
  height: 100%;
}
.portrait-panel img {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 4px;
  object-fit: cover;
  object-position: center 34%;
}
.portrait-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  place-content: center;
  text-align: center;
  padding: 28px;
}
.portrait-panel.is-placeholder .portrait-placeholder { display: grid; }
.portrait-placeholder span {
  width: 116px;
  height: 116px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: 700;
}

.split, .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.diplomas, .values-grid article, .contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(24, 40, 70, 0.07);
}
.diplomas { padding: 22px; margin-top: 28px; }
.diplomas ul { margin: 0; padding-left: 20px; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.values-grid article { padding: 24px; }
.values-grid p { color: var(--muted); margin-bottom: 0; }
.section-muted { background: var(--cream); }
.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.practice-card {
  min-height: 152px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 12px 34px rgba(24, 40, 70, 0.07);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.practice-card:hover,
.practice-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 18px 42px rgba(24, 40, 70, 0.13);
}
.practice-card:hover .practice-icon,
.practice-card:focus-visible .practice-icon {
  background: var(--navy);
  color: var(--gold-soft);
  transform: scale(1.04);
}
.practice-card:focus-visible {
  outline: 3px solid rgba(199, 165, 104, 0.34);
  outline-offset: 3px;
}
.practice-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: #fbf5e9;
  color: var(--navy);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.practice-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: 36px;
  align-items: center;
  background: var(--navy);
  color: var(--white);
}
.info-band h2, .info-band .eyebrow { color: var(--white); }
.info-band p { color: #e8edf6; }
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.facts div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}
.facts span { display: block; color: var(--gold-soft); font-size: 0.85rem; }
.facts strong { display: block; margin-top: 6px; font-size: 1.08rem; }

.appointment {
  background: var(--paper);
  padding-top: clamp(38px, 5vw, 62px);
  padding-bottom: clamp(42px, 5vw, 70px);
}
.appointment .section-heading {
  max-width: 980px;
  margin-bottom: 20px;
}
.appointment h2 {
  font-size: clamp(1.85rem, 4vw, 3.15rem);
  margin-bottom: 12px;
}
.appointment .section-heading p:last-child {
  margin-bottom: 0;
}
.form-panel {
  width: 100%;
  padding: clamp(12px, 2vw, 20px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(24, 40, 70, 0.08);
}
.contact-form {
  display: grid;
  gap: 8px;
}
.contact-form .btn {
  min-height: 38px;
  padding: 8px 14px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
label {
  display: grid;
  gap: 3px;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 36px;
  padding: 6px 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
textarea {
  min-height: 76px;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(199, 165, 104, 0.32);
  border-color: var(--gold);
}
.rgpd {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-weight: 400;
  font-size: 0.86rem;
  color: var(--ink);
}
.rgpd input { width: auto; margin-top: 5px; }
.hidden { display: none; }
.contact-card {
  padding: 28px;
}
.contact-card img { width: 180px; margin-bottom: 22px; }
.contact-card a { color: var(--navy); }
.map-frame {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: start;
  padding: 38px clamp(20px, 5vw, 72px);
  background: #f0e8da;
  border-top: 1px solid var(--line);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}
.credit { color: var(--muted); font-size: 0.92rem; }
.credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.credit a:hover {
  color: var(--navy);
}
.photo-credit {
  color: var(--muted);
  font-size: 0.82rem;
}
.photo-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 30;
  transform: translate(-50%, 18px);
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.legal-page, .card-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 80px 22px;
}
.legal-page section { margin-top: 34px; }
.domain-page section {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(24, 40, 70, 0.07);
}
.domain-page section:target {
  border-color: var(--gold);
  box-shadow: 0 18px 42px rgba(24, 40, 70, 0.12);
}
.domain-page .btn {
  margin-top: 8px;
}
.domain-detail-page {
  max-width: 1080px;
}
.domain-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: center;
  margin-bottom: 36px;
}
.domain-intro img {
  width: 150px;
  justify-self: center;
}
.domain-detail-page h1 {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
}
.domain-detail-page h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}
.domain-detail-page section {
  margin-top: 26px;
}
.domain-detail-page ul {
  margin: 0 0 18px;
  padding-left: 22px;
}
.domain-detail-page li {
  margin-bottom: 8px;
}
.domain-example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.domain-example {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
}
.domain-example h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}
.domain-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.business-card {
  width: min(100%, 880px);
  aspect-ratio: 1.75 / 1;
  margin: 30px auto;
  padding: clamp(24px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.business-card img { width: 210px; }
.business-card .name { font-size: clamp(2rem, 5vw, 3.7rem); }
.print-actions { text-align: center; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto auto; }
  .site-header > .btn-small { display: none; }
  .nav-toggle {
    display: grid;
    gap: 5px;
    justify-self: end;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    place-content: center;
  }
  .nav-toggle span:not(.sr-only) {
    width: 22px;
    height: 2px;
    background: var(--navy);
  }
  .nav {
    display: none;
    grid-column: 1 / -1;
    padding: 12px 0 6px;
    justify-content: start;
    flex-direction: column;
  }
  .nav.is-open { display: flex; }
  .legal-nav {
    display: flex;
    grid-column: 1 / -1;
    justify-content: start;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .hero, .split, .contact-layout, .info-band {
    grid-template-columns: 1fr;
  }
  .portrait-panel {
    justify-self: center;
    width: min(100%, 390px);
  }
  .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card { position: static; }
}

@media (max-width: 640px) {
  .section { padding: 62px 18px; }
  .brand img { width: 132px; }
  .hero { min-height: auto; }
  .hero-actions .btn, .contact-actions .btn { width: 100%; }
  .portrait-panel {
    width: 100%;
    max-width: 420px;
    min-height: 0;
  }
  .portrait-panel img { min-height: 0; }
  .values-grid, .practice-grid, .facts, .form-row, .site-footer, .business-card {
    grid-template-columns: 1fr;
  }
  .domain-intro, .domain-example-grid {
    grid-template-columns: 1fr;
  }
  .domain-intro img {
    justify-self: start;
  }
  .business-card { aspect-ratio: auto; }
}

@media print {
  body { background: var(--white); }
  .site-header, .site-footer, .print-actions { display: none; }
  .card-page { padding: 0; }
  .business-card { box-shadow: none; margin: 0; width: 100%; }
}
