/* ============================================================
   Avocat Lavens — feuille de style principale
   Palette : encre / papier / pierre / bordeaux
   ============================================================ */

:root {
  --ink: #1C2230;
  --ink-soft: #454C5C;
  --paper: #F6F4EF;
  --paper-deep: #EFEBE2;
  --stone: #B7AFA0;
  --bordeaux: #6E2A34;
  --bordeaux-deep: #551F27;
  --white: #FFFFFF;
  --line: rgba(28, 34, 48, 0.14);
  --line-soft: rgba(28, 34, 48, 0.08);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1180px;
  --gutter: clamp(1.5rem, 4vw, 4rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 460; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.navy { color: #1B3B6F; }

.page-accueil main p {
  text-align: justify;
  text-justify: inter-word;
}

p { margin: 0 0 1.1em; max-width: 62ch; }

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--bordeaux);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75em 1.2em;
  z-index: 100;
}
.skip-link:focus { left: var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand img {
  height: 104px;
  width: auto;
  display: block;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(1.1rem, 2vw, 2.2rem);
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

nav.main-nav a {
  position: relative;
  padding-bottom: 4px;
}

nav.main-nav a[aria-current="page"] {
  color: var(--bordeaux);
}

nav.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--bordeaux);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 0.5em 0.7em;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border: 1px solid var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--bordeaux); border-color: var(--bordeaux); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--bordeaux); color: var(--bordeaux); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--bordeaux-deep);
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-aside {
  border-left: 1px solid var(--line);
  padding-left: clamp(1.4rem, 3vw, 2.2rem);
}

.hero-aside dl {
  margin: 0;
}
.hero-aside dt {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-top: 1.1rem;
}
.hero-aside dt:first-child { margin-top: 0; }
.hero-aside dd {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

/* ---------- Section shell ---------- */
section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
section + section {
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  max-width: 62ch;
}

.section-head h2 {
  margin-top: 0.6rem;
}

.section-tag {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--bordeaux);
  font-family: var(--font-body);
  font-weight: 600;
}

/* ---------- Articles (domaines) ---------- */
.articles {
  border-top: 1px solid var(--line);
}

.article-row {
  padding: clamp(1.8rem, 4vw, 2.6rem) 0;
  border-bottom: 1px solid var(--line);
}

.article-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--stone);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.article-row h3 { margin-bottom: 0.5rem; }
.article-row p { margin-bottom: 0.6rem; }

.article-row .practice-list {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.article-row .practice-list li::before {
  content: "— ";
  color: var(--stone);
}

/* ---------- Home teaser grid ---------- */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.teaser {
  padding: 2rem 1.6rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.teaser .article-num {
  display: block;
  margin-bottom: 0.8rem;
}

.teaser h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.teaser p { font-size: 0.92rem; margin-bottom: 0.8rem; }
.teaser a { font-size: 0.85rem; color: var(--bordeaux); }

/* ---------- Quote / values ---------- */
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 34ch;
  border-left: 2px solid var(--bordeaux);
  padding-left: 1.4rem;
}

/* ---------- Bio / photo ---------- */
.bio-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.photo-frame {
  aspect-ratio: 4 / 5;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  padding: 1.5rem;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

.credentials {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.credentials li { padding: 0.35rem 0; }

/* ---------- Values list ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.values h3 { font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.contact-block dt {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-top: 1.4rem;
}
.contact-block dt:first-child { margin-top: 0; }
.contact-block dd {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.4rem;
  font-size: 0.92rem;
}
.hours-table td {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.hours-table td:last-child { text-align: right; color: var(--ink-soft); }

form.contact-form {
  display: grid;
  gap: 1.2rem;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}
.field input,
.field textarea,
.field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75em 0.9em;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: -0.4rem;
}

.map-frame {
  border: 1px solid var(--line);
  width: 100%;
  aspect-ratio: 16/10;
}

/* ---------- Legal page ---------- */
.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 2.4rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--paper);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--stone); }
.cta-band .btn-primary { background: var(--bordeaux); border-color: var(--bordeaux); }
.cta-band .btn-primary:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2.2rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 0.8rem;
  font-weight: 600;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: 0.25rem 0; }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid,
  .bio-grid,
  .contact-grid,
  .section-head {
    grid-template-columns: 1fr;
  }
  .hero-aside {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 1.4rem;
  }
  .teaser-grid { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
}

@media (max-width: 640px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: inline-block; }
  .teaser-grid { grid-template-columns: 1fr; }
  .article-row { grid-template-columns: 1fr; }
  .article-num { padding-top: 0; }
}

/* Mobile nav open state (JS toggles this class) */
.nav-open nav.main-nav {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 1rem var(--gutter) 1.5rem;
}
.nav-open nav.main-nav ul {
  flex-direction: column;
  gap: 1rem;
}
