:root {
  --color-wine: #4b1e1e;
  --color-wine-dark: #321313;
  --color-gold: #a67c52;
  --color-gold-soft: #d2bba0;
  --color-cream: #f8f4ef;
  --color-paper: #fffaf3;
  --color-ink: #2f2f2f;
  --color-muted: #6b625c;
  --shadow-soft: 0 18px 45px rgba(50, 19, 19, 0.12);
  --radius: 8px;
  --header-height: 116px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  font-family: "Roboto", Arial, sans-serif;
  background: var(--color-cream);
  color: var(--color-ink);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(75, 30, 30, 0.96);
  color: #fff7e8;
  box-shadow: 0 8px 30px rgba(31, 13, 13, 0.16);
  transition: padding 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-compact {
  padding-top: 8px;
  padding-bottom: 8px;
  box-shadow: 0 8px 24px rgba(31, 13, 13, 0.2);
}

.brand img {
  width: 172px;
  height: auto;
  transition: width 0.2s ease;
}

.site-header.is-compact .brand img {
  width: 148px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 26px);
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a {
  color: #fff1d2;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #ffffff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 241, 210, 0.35);
  background: transparent;
  color: #fff1d2;
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(72px, 9vw, 130px) clamp(20px, 5vw, 72px) clamp(42px, 6vw, 72px);
  background:
    linear-gradient(115deg, rgba(50, 19, 19, 0.88), rgba(75, 30, 30, 0.62)),
    var(--color-wine) url("../images/equipe.jpg") center center / contain no-repeat;
  color: #fffaf3;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--color-gold-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.08;
  color: var(--color-wine);
}

.hero h1 {
  max-width: 780px;
  color: #fffaf3;
  font-size: clamp(2.4rem, 5vw, 5rem);
}

.hero p {
  max-width: 650px;
  margin: 24px 0 0;
  font-size: 1.12rem;
  color: #fff1d2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--color-gold);
  color: #ffffff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #8a5f35;
}

.button-secondary {
  border: 1px solid rgba(255, 250, 243, 0.7);
  background: rgba(255, 250, 243, 0.08);
  color: #fffaf3;
}

.hero-card {
  align-self: end;
  padding: 24px;
  border: 1px solid rgba(255, 241, 210, 0.26);
  border-radius: var(--radius);
  background: rgba(50, 19, 19, 0.55);
  backdrop-filter: blur(10px);
}

.hero-card strong,
.hero-card span {
  display: block;
}

.hero-card span {
  margin-top: 10px;
  color: #fff1d2;
}

.section {
  scroll-margin-top: calc(var(--header-height) + 20px);
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.hero {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.section-split,
.contact-section,
.team-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.section-split {
  background: var(--color-paper);
}

.section h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.section p {
  margin: 18px 0 0;
  color: var(--color-muted);
  font-size: 1.04rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.practice-grid article {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(166, 124, 82, 0.28);
  border-radius: var(--radius);
  background: #fffdf8;
  box-shadow: 0 8px 22px rgba(50, 19, 19, 0.06);
  font-weight: 700;
  color: var(--color-wine);
}

.team-section {
  background: var(--color-wine);
  color: #fffaf3;
}

.team-section h2 {
  color: #fffaf3;
}

.team-section p {
  color: #fff1d2;
}

.team-image {
  max-width: 440px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-paper);
  box-shadow: var(--shadow-soft);
}

.team-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: contain;
}

.lawyer-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.lawyer-list article {
  padding: 18px;
  border: 1px solid rgba(255, 241, 210, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.06);
}

.lawyer-list strong,
.lawyer-list span {
  display: block;
}

.lawyer-list span {
  margin-top: 6px;
  color: #f6d9a6;
}

.contact-info ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.contact-info a {
  color: var(--color-wine);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--radius);
  background: #fffdf8;
  box-shadow: var(--shadow-soft);
}

.field {
  display: grid;
  gap: 7px;
}

label {
  font-weight: 700;
  color: var(--color-wine);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--color-gold-soft);
  border-radius: var(--radius);
  padding: 13px 14px;
  background: #ffffff;
  color: var(--color-ink);
  font: inherit;
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(166, 124, 82, 0.35);
  outline-offset: 3px;
}

textarea {
  resize: vertical;
}

.field-hidden {
  position: absolute;
  left: -9999px;
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #eef8ec;
  color: #245628;
  font-weight: 700;
}

.site-footer {
  padding: 22px clamp(20px, 5vw, 72px);
  background: var(--color-wine-dark);
  color: #fff1d2;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-wine);
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(50, 19, 19, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .menu-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 18px;
    background: var(--color-wine);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
    border-top: 1px solid rgba(255, 241, 210, 0.16);
  }

  .hero,
  .section-split,
  .contact-section,
  .team-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    align-items: start;
  }

  .hero-card {
    max-width: 520px;
  }

  .practice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 142px;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-actions {
    display: grid;
  }

  .practice-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 20px;
  }
}
