/* Cabinet Hervieux - feuille de style commune
   Aucune dépendance externe : polices système, pas de JavaScript. */

:root {
  --robe: #1a1b1f;
  --blanc: #ffffff;
  --pierre: #f0f1f3;
  --ligne: #d8dade;
  --texte: #24262b;
  --texte-doux: #4a4d55;
  --petrole: #1f5c6b;
  --petrole-fonce: #164652;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --mesure: 68ch;
  --marge: clamp(1.25rem, 5vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texte);
  background: var(--blanc);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--petrole); text-underline-offset: 0.18em; }
a:hover { color: var(--petrole-fonce); }

:focus-visible {
  outline: 3px solid var(--petrole);
  outline-offset: 3px;
}

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

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--blanc); color: var(--robe);
  padding: 0.75rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--robe); }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0 0 1.5rem; }
h3 { font-size: 1.3rem; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; max-width: var(--mesure); }

/* ---------- En-tête ---------- */
.site-header {
  background: var(--blanc);
  border-bottom: 1px solid var(--ligne);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.5rem 2rem;
  padding-block: 0.85rem;
}
.brand {
  font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
  color: var(--robe); text-decoration: none; line-height: 1.2;
}
.brand span { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.85rem; color: var(--texte-doux); }
.site-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-header nav a { color: var(--texte); text-decoration: none; padding: 0.35rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.site-header nav a:hover { border-bottom-color: var(--petrole); }
.site-header nav a[aria-current="page"] { border-bottom-color: var(--petrole); }

/* ---------- Accueil : bandeau noir ---------- */
.hero { background: var(--blanc); color: var(--texte); padding-block: clamp(3rem, 8vw, 5rem) 0; border-bottom: 1px solid var(--ligne); }
.hero h1 {
  color: var(--robe);
  font-size: clamp(2.6rem, 7vw, 5rem);
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
}
.hero h1 span { display: block; font-weight: 400; font-style: italic; font-size: 0.55em; letter-spacing: 0; margin-top: 0.35em; color: var(--petrole); }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--texte-doux); max-width: 46ch; margin-bottom: 2rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-block; padding: 0.85rem 1.5rem;
  font-weight: 600; text-decoration: none;
  border: 2px solid var(--petrole); border-radius: 2px;
  color: var(--petrole); background: transparent;
}
.btn:hover { background: rgba(31, 92, 107, 0.08); color: var(--petrole-fonce); }
.btn-plein { background: var(--petrole); color: var(--blanc); }
.btn-plein:hover { background: var(--petrole-fonce); color: var(--blanc); }
.hero-illu { display: block; width: min(100%, 75rem); height: auto; margin: clamp(2rem, 5vw, 3.5rem) auto 0; }

/* ---------- Sections ---------- */
section { padding-block: clamp(3rem, 7vw, 5rem); }
.fond-pierre { background: var(--pierre); }

/* Domaines : lignes pleine largeur */
.domaines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ligne); }
.domaines a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.35rem 0.25rem;
  border-bottom: 1px solid var(--ligne);
  font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 600;
  color: var(--robe); text-decoration: none;
}
.domaines a::after {
  content: ""; flex: none; width: 0.6rem; height: 0.6rem;
  border-top: 2px solid var(--petrole); border-right: 2px solid var(--petrole);
  transform: rotate(45deg); transition: transform 0.15s ease;
}
.domaines a:hover { color: var(--petrole); }
.domaines a:hover::after { transform: translateX(4px) rotate(45deg); }

/* Votre avocat */
.avocat { display: grid; gap: 2.5rem; align-items: start; }
.avocat figure { margin: 0; }
.avocat img { width: 100%; border-radius: 2px; }
@media (min-width: 52rem) {
  .avocat { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; }
  .avocat figure { position: sticky; top: 6rem; }
}
.confreres { padding-left: 1.2rem; margin: 0 0 1.25rem; }
.confreres li { margin-bottom: 0.35rem; }

/* Honoraires : accordéon natif */
.honoraires details { border-top: 1px solid var(--ligne); background: var(--blanc); }
.honoraires details:last-of-type { border-bottom: 1px solid var(--ligne); }
.honoraires summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1rem;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--robe);
}
.honoraires summary::-webkit-details-marker { display: none; }
.honoraires summary::after { content: "+"; font-family: var(--sans); font-size: 1.5rem; color: var(--petrole); line-height: 1; }
.honoraires details[open] summary::after { content: "\2212"; }
.honoraires .contenu { padding: 0 1rem 1.25rem; }
.a-completer { border-left: 4px solid #b3261e; padding-left: 0.75rem; color: #8c1d18; }

/* Contact */
.contact { display: grid; gap: 2.5rem; }
@media (min-width: 52rem) { .contact { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; } }
.coordonnees { font-style: normal; margin: 0 0 1.5rem; line-height: 1.9; }
.coordonnees strong { font-family: var(--serif); font-size: 1.25rem; }
.acces h3 { margin-top: 0; }

/* Publications */
.publications { list-style: none; margin: 0 0 1.5rem; padding: 0; border-top: 1px solid var(--ligne); }
.publications li { border-bottom: 1px solid var(--ligne); }
.publications a { display: block; padding: 0.9rem 0.25rem; color: var(--robe); text-decoration: none; font-weight: 500; }
.publications a:hover { color: var(--petrole); text-decoration: underline; }

/* ---------- Pages intérieures ---------- */
.hero-page { background: var(--pierre); padding-block: clamp(2.5rem, 6vw, 4rem); border-bottom: 0; }
.hero-page .wrap, .prose .wrap, .cta .wrap { width: min(100% - 2 * var(--marge), 46rem); }
.hero-page h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0; }
.fil { font-size: 0.95rem; color: var(--texte-doux); margin-bottom: 1rem; }
.fil a { color: var(--petrole); }
.fil a:hover { color: var(--petrole-fonce); }
.hero-page .date { color: var(--texte-doux); margin: 1rem 0 0; }

.prose h2 { margin: 2.75rem 0 1rem; }
.prose h3 { margin: 2rem 0 0.5rem; }
.prose h4 { font-family: var(--serif); font-size: 1.1rem; color: var(--robe); margin: 1.5rem 0 0.5rem; }
.prose .wrap > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1rem; max-width: var(--mesure); }
.prose li { margin-bottom: 0.4rem; }
.prose figure { margin: 2rem 0; }
.prose figure img { border-radius: 2px; }
.prose figcaption { font-size: 0.9rem; color: var(--texte-doux); margin-top: 0.5rem; }

blockquote {
  margin: 1.5rem 0; padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--petrole);
  font-family: var(--serif); font-size: 1.1rem; line-height: 1.7;
}
blockquote ul { font-family: var(--sans); font-size: 1rem; }
blockquote .source { font-family: var(--sans); font-size: 0.95rem; color: var(--texte-doux); margin-bottom: 0; }

.sommaire {
  list-style: none; margin: 0 0 2rem; padding: 1.25rem 1.5rem;
  background: var(--pierre); columns: 2 14rem; column-gap: 2rem;
}
.prose .sommaire { padding-left: 1.5rem; }
.sommaire li { break-inside: avoid; }

.publications .date { display: block; font-weight: 400; font-size: 0.9rem; color: var(--texte-doux); }

.cta h2 { margin-bottom: 0.75rem; }
.cta p { margin-bottom: 1.5rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--robe); color: #d9dce1; padding-block: 2rem; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
.site-footer a { color: #ffffff; }
.site-footer p { margin: 0; max-width: none; }

/* ---------- Barre d'actions mobile ---------- */
.barre-mobile { display: none; }
@media (max-width: 40rem) {
  body { padding-bottom: 4.25rem; }
  .barre-mobile {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; inset: auto 0 0 0; z-index: 60;
    background: var(--robe); border-top: 1px solid #3a3c42;
  }
  .barre-mobile a {
    color: #fff; text-align: center; text-decoration: none;
    padding: 0.95rem 0.25rem; font-size: 0.95rem; font-weight: 600;
  }
  .barre-mobile a + a { border-left: 1px solid #3a3c42; }
  .barre-mobile a:focus-visible { outline-color: #fff; outline-offset: -3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .domaines a::after { transition: none; }
}

@media print {
  .site-header, .barre-mobile, .actions { display: none; }
  .hero { background: none; color: #000; padding-block: 1rem; }
  .hero h1, .hero .lead { color: #000; }
}
