/* ==========================================================================
   Thomas Tetart — Avocat au Barreau de Lille
   Feuille de style principale
   ========================================================================== */

:root {
  --navy: #0b1f3a;
  --navy-light: #16294a;
  --navy-dark: #071527;
  --gold: #b8934b;
  --gold-light: #d9bd82;
  --white: #ffffff;
  --off-white: #f7f5f1;
  --text: #1c2430;
  --text-light: #5b6472;
  --border: #e6e2d8;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --max-width: 1140px;
  --transition: 0.35s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

section {
  padding: 96px 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

p {
  color: var(--text-light);
}

.lede,
.hero-lede {
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lede {
  font-size: 1.08rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-gold:hover {
  background: var(--gold-light);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.btn-outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.brand-title {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav ul {
  display: flex;
  gap: 36px;
}

.main-nav a:not(.btn) {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}

.main-nav a:not(.btn):hover,
.main-nav a.active {
  color: var(--navy);
}

.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.main-nav a:not(.btn):hover::after,
.main-nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
}

/* ---------- Hero ---------- */

.hero {
  background: var(--navy);
  color: var(--white);
  padding: 140px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 40%, rgba(184, 147, 75, 0.08) 100%);
  pointer-events: none;
}

.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 44%;
  overflow: hidden;
  z-index: 0;
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  filter: grayscale(100%) contrast(1.15) brightness(0.9);
  display: block;
}

.hero-photo-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, #0b1f3a 0%, #6a4f28 55%, #d9bd82 100%);
  mix-blend-mode: color;
}

.hero-photo-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, transparent 38%, var(--navy) 94%),
    linear-gradient(to top, transparent 82%, var(--navy) 100%),
    linear-gradient(to bottom, transparent 82%, var(--navy) 100%);
}

@media (max-width: 760px) {
  .hero-photo {
    display: none;
  }
}

.hero .container {
  position: relative;
  max-width: 820px;
  z-index: 1;
}

.hero-eyebrow {
  color: var(--gold-light);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}

.hero-domains {
  font-size: 1.05rem;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  margin-bottom: 26px;
}

.hero-lede {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---------- Pillars / approche ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.pillar-index {
  display: block;
  width: 34px;
  height: 34px;
  color: var(--gold);
  margin-bottom: 18px;
}

.pillar-index svg {
  width: 100%;
  height: 100%;
}

/* ---------- Domaines cards ---------- */

.domains-section {
  background: var(--off-white);
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.domain-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 36px 28px;
  transition: border-color var(--transition), transform var(--transition);
}

.domain-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.domain-icon {
  width: 40px;
  height: 40px;
  color: var(--gold);
  margin-bottom: 22px;
}

.domain-card h3 {
  font-size: 1.08rem;
}

.domain-card p {
  font-size: 0.94rem;
}

/* ---------- Bande mise en avant (dommage-ouvrage) ---------- */

.highlight-band {
  background: var(--navy);
  color: var(--white);
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}

.highlight-band h2 {
  color: var(--white);
}

.highlight-band .lede {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 32px;
}

.check-list {
  width: fit-content;
  margin: 0 auto;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
}

.check-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.check-list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--gold);
  margin-top: 2px;
}

/* ---------- Bio ---------- */

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.bio-grid .section-head {
  margin-bottom: 0;
}

.bio-facts {
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.bio-fact dt {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 6px;
}

.bio-fact dd {
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--off-white);
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 28px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand-name {
  color: var(--white);
}

.footer-grid p,
.footer-grid a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.footer-grid ul li {
  margin-bottom: 10px;
}

.footer-grid ul a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
}

.footer-bottom a:hover {
  color: var(--gold-light);
}

/* ---------- Page header (pages secondaires) ---------- */

.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 100px 0 72px;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4vw, 2.9rem);
}

.page-header .lede {
  max-width: 560px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- Honoraires ---------- */

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 20px;
}

.principle-card {
  border: 1px solid var(--border);
  padding: 32px;
}

.principle-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.principle-card svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
  flex-shrink: 0;
}

.process-steps {
  border-top: 1px solid var(--border);
}

.process-step {
  display: flex;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}

.process-step .step-number {
  display: block;
  width: 34px;
  height: 34px;
  min-width: 34px;
  color: var(--gold);
}

.process-step .step-number svg {
  width: 100%;
  height: 100%;
}

.note-box {
  background: var(--off-white);
  border-left: 3px solid var(--gold);
  padding: 24px 28px;
  margin-top: 40px;
}

.note-box p {
  color: var(--text);
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-bottom: 36px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
}

.contact-info-item svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-item h4 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 4px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.contact-info-item a,
.contact-info-item p {
  font-size: 1rem;
  color: var(--text);
}

.map-frame {
  border: 1px solid var(--border);
  filter: grayscale(35%) contrast(1.05);
  width: 100%;
  height: 260px;
}

.contact-form {
  background: var(--off-white);
  padding: 44px;
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 26px;
}

.form-consent input {
  margin-top: 4px;
}

.form-consent label {
  font-size: 0.85rem;
  color: var(--text-light);
}

.form-consent a {
  color: var(--navy);
  text-decoration: underline;
}

/* ---------- Mentions légales ---------- */

.legal-content h2 {
  margin-top: 44px;
  font-size: 1.35rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  font-size: 0.96rem;
  margin-bottom: 12px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 22px;
}

.legal-content strong {
  color: var(--navy);
}

.todo-flag {
  color: #a04b2a;
  font-weight: 600;
}

/* ---------- Fade-in on scroll ---------- */

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .domains-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .highlight-grid,
  .bio-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

@media (max-width: 768px) {
  section {
    padding: 68px 0;
  }

  .main-nav {
    position: fixed;
    top: 92px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 32px 32px;
    gap: 24px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 18px;
  }

  .nav-toggle {
    display: flex;
  }

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 28px;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}
