/* =====================================================================
   PARC NOTAIRES — Étude notariale, Paris 1er
   Palette : vert notarial profond + or vieilli + ivoire crème
   Typo    : Cormorant Garamond (titres) + Inter (texte)
   ===================================================================== */

:root {
  --ink: #072C1D;
  --ink-2: #0E3F2C;
  --ink-3: #1A5238;
  --gold: #B8924A;
  --gold-light: #D4B97E;
  --gold-deep: #8B6E37;
  --paper: #FAF7F2;
  --cream: #F4EFE8;
  --sand: #E9E1D2;
  --line: rgba(7, 44, 29, 0.12);
  --line-light: rgba(7, 44, 29, 0.06);
  --text: #1B2620;
  --text-muted: #5A6760;
  --text-faint: #8A958E;
  --on-dark: #FAF7F2;
  --on-dark-muted: rgba(250, 247, 242, 0.72);

  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 1240px;
  --radius: 8px;
  --radius-lg: 18px;

  --shadow-sm: 0 2px 8px rgba(7, 44, 29, 0.06);
  --shadow: 0 8px 24px rgba(7, 44, 29, 0.08);
  --shadow-lg: 0 24px 60px rgba(7, 44, 29, 0.18);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
html { scroll-behavior: smooth; }

/* Anti-flash : tant que <html> n'a pas la classe .content-ready (posée par le
   content-loader une fois le JSON appliqué), on masque le contenu textuel du
   hero et on retient les sections. Le reveal scroll (.reveal) s'en charge
   ailleurs. Une fois .content-ready posé, les animations démarrent. */
html:not(.content-ready) .hero-inner > * { opacity: 0; }
html:not(.content-ready) body { opacity: 0; }
html.content-ready body {
  opacity: 1;
  transition: opacity 0.4s ease-out;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; margin: 0; }
.hidden { position: absolute; left: -9999px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}
p { margin: 0; }
::selection { background: var(--gold); color: var(--ink); }

/* ===== Layout helpers ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: currentColor;
  display: inline-block;
}
.eyebrow.eyebrow-light { color: var(--gold-light); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  margin-top: 14px;
  letter-spacing: -0.015em;
}
.section-title em { font-style: italic; color: var(--gold-deep); }

.section-lead {
  max-width: 680px;
  margin-top: 18px;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.section {
  padding: clamp(80px, 11vw, 140px) 0;
  position: relative;
}
.section + .section { border-top: 1px solid var(--line-light); }
.section.fees + .section.tools,
.section.tools + .section.contact { border-top: 0; }

/* Sections vert-sur-vert : on retire le padding entre fees et tools */
.section.fees    { padding-bottom: clamp(48px, 6vw, 72px); }
.section.tools   { padding-top: 0; padding-bottom: clamp(64px, 8vw, 100px); }

.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-header .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.4s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-deep); color: var(--paper); box-shadow: 0 12px 28px rgba(184, 146, 74, 0.35); }

.btn-ghost {
  background: transparent;
  border-color: rgba(250, 247, 242, 0.4);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }

.btn-block { width: 100%; padding: 18px 30px; margin-top: 8px; }

/* =====================================================================
   HEADER
   ===================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(7, 44, 29, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
  border-bottom-color: rgba(184, 146, 74, 0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand { display: inline-flex; align-items: center; }
.brand-logo {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: height 0.4s var(--ease);
}
.header.scrolled .brand-logo { height: 36px; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--paper);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-light);
  transition: width 0.4s var(--ease);
}
.nav a:hover { color: var(--gold-light); }
.nav a:hover::after { width: 100%; }
.nav a.active { color: var(--gold-light); }
.nav a.active::after { width: 100%; }

.nav-cta {
  margin-left: 8px;
  padding: 11px 20px !important;
  border: 1px solid rgba(212, 185, 126, 0.4) !important;
  border-radius: 999px;
  font-size: 11px !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
}
.nav-cta:hover { background: var(--gold); color: var(--ink) !important; border-color: var(--gold) !important; }
.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-size: 20px;
}

/* =====================================================================
   HERO — parallax
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -10vh 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: contrast(1.04) saturate(0.95) brightness(0.92);
  z-index: -2;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 22% 55%, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.18) 45%, transparent 75%),
    radial-gradient(ellipse at 20% 90%, rgba(184, 146, 74, 0.22) 0%, transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(7, 44, 29, 0.78) 100%);
  z-index: -1;
}

.hero-inner {
  padding-top: 140px;
  padding-bottom: 100px;
  max-width: 920px;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.hero-eyebrow::before {
  content: '';
  width: 38px; height: 1px;
  background: var(--gold-light);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 28px 0 22px;
  color: var(--paper);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.4;
  font-weight: 400;
  color: var(--on-dark-muted);
  max-width: 640px;
  white-space: pre-line;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  padding: 10px 18px;
  border: 1px solid rgba(212, 185, 126, 0.32);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.hero-meta i { color: var(--gold); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  z-index: 1;
  opacity: 0;
  animation: heroFadeIn 1s var(--ease) 1.4s forwards;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, var(--gold-light) 0%, transparent 100%);
  animation: scrollLine 2.5s var(--ease) infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Animations d'entrée du hero (staggered) */
.hero-eyebrow,
.hero-title,
.hero-subtitle,
.hero-meta,
.hero-actions {
  opacity: 0;
  transform: translateY(28px);
  animation: heroRise 1s var(--ease) forwards;
}
.hero-eyebrow  { animation-delay: 0.20s; }
.hero-title    { animation-delay: 0.40s; }
.hero-subtitle { animation-delay: 0.65s; }
.hero-meta     { animation-delay: 0.85s; }
.hero-actions  { animation-delay: 1.05s; }

.hero-bg {
  animation: heroZoom 8s var(--ease) forwards;
}

@keyframes heroRise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
  to { opacity: 1; }
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

/* =====================================================================
   ABOUT
   ===================================================================== */
.about { background: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-content .section-title { margin-top: 18px; }
.about-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.55;
  color: var(--ink);
  margin-top: 28px;
}
.about-paragraphs {
  margin-top: 24px;
  display: grid;
  gap: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}

.about-stats {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.about-stat-value {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  font-weight: 500;
  color: var(--gold-deep);
  line-height: 1;
}
.about-stat-label {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.about-visual {
  position: relative;
  aspect-ratio: 4 / 5;
}
.about-visual::before {
  content: '';
  position: absolute;
  inset: 24px -24px -24px 24px;
  background: var(--gold);
  z-index: -1;
}
.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =====================================================================
   EXPERTISES
   ===================================================================== */
.expertises {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.expertises::before,
.expertises::after {
  content: '';
  position: absolute;
  border: 1px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
}
.expertises::before { top: -120px; right: -120px; width: 380px; height: 380px; opacity: 0.18; }
.expertises::after  { bottom: -160px; left: -160px; width: 460px; height: 460px; opacity: 0.12; }

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}
.expertise-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 44px 36px;
  transition: all 0.5s var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
}
.expertise-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.expertise-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.expertise-card:hover::before { transform: scaleX(1); }

.expertise-icon {
  width: 64px; height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--gold-light);
  font-size: 22px;
  margin-bottom: 28px;
}
.expertise-title {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  margin-bottom: 14px;
}
.expertise-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.expertise-group + .expertise-group { margin-top: 22px; }
.expertise-group-title {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-light);
}
.expertise-points {
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.55;
}
.expertise-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.expertise-points li::before {
  content: '';
  margin-top: 9px;
  flex-shrink: 0;
  width: 14px; height: 1px;
  background: var(--gold);
}

/* =====================================================================
   GALLERY (cabinet)
   ===================================================================== */
.gallery { background: var(--paper); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 18px;
}
.gallery-item {
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  position: relative;
  background: var(--cream);
  cursor: zoom-in;
  display: block;
}
.gallery-item::after {
  content: '\f065'; /* fa-expand */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 44, 29, 0.7);
  color: var(--gold-light);
  border-radius: 50%;
  font-size: 13px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.gallery-item:hover::after { opacity: 1; transform: translateY(0); }
.gallery-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease), filter 0.6s var(--ease);
  filter: grayscale(0.1);
}
.gallery-item:hover img { transform: scale(1.05); filter: grayscale(0); }
/* Layout 4×3 mosaïque sans trous : item-1 grand format, item-6 panoramique en bas */
.gallery-item-1 { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.gallery-item-2 { grid-column: 3 / span 2; grid-row: 1; }
.gallery-item-3 { grid-column: 3;          grid-row: 2; }
.gallery-item-4 { grid-column: 4;          grid-row: 2; }
.gallery-item-5 { grid-column: 1;          grid-row: 3; }
.gallery-item-6 { grid-column: 2 / span 3; grid-row: 3; }

/* =====================================================================
   TEAM
   ===================================================================== */
.team { background: var(--cream); }
.team-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.team-visual {
  position: relative;
  aspect-ratio: 3 / 4;
  max-width: 460px;
}
.team-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.team-visual::before {
  content: '';
  position: absolute;
  inset: -16px -16px 16px 16px;
  border: 1px solid var(--gold);
  z-index: -1;
}
.team-content .section-title { margin-top: 16px; }
.team-role {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.team-role::before {
  content: '';
  width: 24px; height: 1px;
  background: currentColor;
}
.team-bio {
  margin-top: 28px;
  display: grid;
  gap: 16px;
  line-height: 1.8;
  color: var(--text-muted);
}
.team-meta {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.team-meta-item-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.team-meta-item a {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  transition: color 0.3s var(--ease);
  display: inline-flex; gap: 8px; align-items: center;
}
.team-meta-item a:hover { color: var(--gold-deep); }

/* =====================================================================
   FEES
   ===================================================================== */
.fees {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.fees .section-title { color: var(--paper); }
.fees .section-lead { color: var(--on-dark-muted); }
.fees::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80%; height: 80%;
  background: radial-gradient(ellipse, rgba(184, 146, 74, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.fees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}
.fee-block {
  padding: 40px 32px;
  border: 1px solid rgba(212, 185, 126, 0.18);
  background: rgba(250, 247, 242, 0.02);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.fee-block:hover {
  background: rgba(212, 185, 126, 0.06);
  border-color: rgba(212, 185, 126, 0.32);
  transform: translateY(-4px);
}
.fee-block-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.fee-block-title {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: 16px;
}
.fee-block-text {
  color: var(--on-dark-muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

/* =====================================================================
   TOOLS / SIMULATEURS — bande compacte
   ===================================================================== */
.tools {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(48px, 6vw, 72px) 0;
  border-top: 0;
}
.tools-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(24px, 2.6vw, 36px) clamp(28px, 3.2vw, 44px);
  background: linear-gradient(135deg, rgba(184, 146, 74, 0.10) 0%, rgba(184, 146, 74, 0.03) 100%);
  border: 1px solid rgba(212, 185, 126, 0.22);
  border-left: 3px solid var(--gold);
  position: relative;
}
.tools-icon {
  width: 56px; height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 185, 126, 0.10);
  border: 1px solid rgba(212, 185, 126, 0.32);
  border-radius: 50%;
  color: var(--gold-light);
  font-size: 22px;
  flex-shrink: 0;
}
.tools-content { min-width: 0; }
.tools-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 500;
  color: var(--paper);
  margin: 6px 0 6px;
  line-height: 1.2;
}
.tools-lead {
  font-size: 0.95rem;
  color: var(--on-dark-muted);
  line-height: 1.55;
  margin: 0;
  max-width: 620px;
}
.tools-note {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  font-style: italic;
}
.tools-cta { flex-shrink: 0; }
.tools-cta i { font-size: 0.85em; opacity: 0.8; }

/* =====================================================================
   CONTACT — form + info + map
   ===================================================================== */
.contact { background: var(--paper); }
.contact-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: stretch;
}

/* Form */
.contact-form {
  background: var(--cream);
  padding: clamp(32px, 4vw, 48px);
  border: 1px solid var(--line);
  position: relative;
}
.contact-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
}
.form-title {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 500;
  margin-bottom: 28px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group { margin-bottom: 18px; display: flex; flex-direction: column; }
.form-row .form-group { margin-bottom: 18px; }
.form-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: var(--sans);
  color: var(--text);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 146, 74, 0.15);
}
.form-control::placeholder { color: var(--text-faint); }
textarea.form-control { resize: vertical; min-height: 130px; line-height: 1.55; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%238B6E37' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 38px;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 8px 0 16px;
  line-height: 1.5;
}
.form-consent input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--gold);
}

/* Feedback (loading / success / error) injecté lors de la soumission */
.form-feedback {
  display: none;
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 0.92rem;
  line-height: 1.5;
  border-left: 3px solid currentColor;
}
.form-feedback.is-loading {
  display: block;
  color: var(--gold-deep);
  background: rgba(184, 146, 74, 0.08);
}
.form-feedback.is-success {
  display: block;
  color: #1F6F4A;
  background: rgba(31, 111, 74, 0.08);
}
.form-feedback.is-error {
  display: block;
  color: #A03325;
  background: rgba(160, 51, 37, 0.08);
}

/* Bloc sous le bouton Envoyer : confidentialité + échange direct */
.form-extras {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form-extras-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-style: italic;
}
.form-extras-note i {
  color: var(--gold);
  margin-top: 3px;
  font-size: 14px;
  flex-shrink: 0;
}

.form-extras-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.form-extras-divider::before,
.form-extras-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.form-extras-direct {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-extras-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}
.form-extras-link i { color: var(--gold-deep); font-size: 14px; }
.form-extras-link:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.form-extras-link:hover i { color: var(--gold-light); }

@media (max-width: 480px) {
  .form-extras-direct { grid-template-columns: 1fr; }

  /* Hero actions centrées en mobile */
  .hero-inner { text-align: center; }
  .hero-eyebrow { justify-content: center; }
  .hero-meta { justify-content: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions {
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn { width: 100%; }
}

/* Info & Map column */
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-info {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(28px, 3vw, 38px);
  display: grid;
  gap: 22px;
}
.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.contact-info-icon {
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 185, 126, 0.16);
  color: var(--gold-light);
  flex-shrink: 0;
}
.contact-info-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.contact-info-lines {
  font-size: 0.95rem;
  color: var(--on-dark-muted);
  line-height: 1.55;
}

.contact-map {
  position: relative;
  flex: 1;
  min-height: 280px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.3) contrast(0.95);
  transition: filter 0.4s var(--ease);
}
.contact-map:hover iframe { filter: grayscale(0); }
.contact-map-link {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s var(--ease);
}
.contact-map-link:hover { background: var(--gold); color: var(--ink); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  padding: 88px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(212, 185, 126, 0.16);
}
.footer-logo {
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-tagline {
  margin-top: 22px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--on-dark-muted);
  line-height: 1.6;
  max-width: 280px;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 22px;
}
.footer-links { display: grid; gap: 12px; }
.footer-links a {
  color: var(--on-dark-muted);
  font-size: 0.92rem;
  transition: color 0.3s var(--ease);
}
.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--on-dark-muted);
}
.footer-bottom a:hover { color: var(--gold-light); }

/* =====================================================================
   REVEAL ANIMATIONS
   ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* =====================================================================
   LIGHTBOX
   ===================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(7, 44, 29, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
  padding: 64px 80px;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox-stage {
  margin: 0;
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.96);
  transition: transform 0.5s var(--ease);
}
.lightbox.is-open .lightbox-stage img { transform: scale(1); }

.lightbox-caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--on-dark-muted);
  text-align: center;
  max-width: 720px;
}
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--gold-light);
}

.lightbox button {
  position: absolute;
  background: rgba(212, 185, 126, 0.10);
  border: 1px solid rgba(212, 185, 126, 0.32);
  color: var(--gold-light);
  width: 52px; height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.lightbox button:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.lightbox-close { top: 28px; right: 28px; }
.lightbox-prev  { left: 28px;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 28px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover {
  transform: translateY(-50%) scale(1.06);
}

@media (max-width: 720px) {
  .lightbox {
    padding: 0;
    background: rgba(7, 44, 29, 0.985);
  }
  .lightbox-stage {
    max-width: 100%;
    width: 100%;
    height: 100%;
    justify-content: center;
    gap: 12px;
    padding: 56px 0 64px;
    touch-action: pan-y pinch-zoom;
  }
  .lightbox-stage img {
    max-width: 100vw;
    max-height: calc(100vh - 130px);
    box-shadow: none;
  }
  .lightbox-caption {
    padding: 0 18px;
    font-size: 0.92rem;
  }
  .lightbox-counter {
    bottom: 16px;
    font-size: 10px;
    letter-spacing: 0.28em;
  }
  /* Boutons discrets : transparents, plus petits, sans bordure */
  .lightbox button {
    width: 36px; height: 36px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.32);
    border: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: rgba(212, 185, 126, 0.85);
  }
  .lightbox button:hover,
  .lightbox button:active {
    background: rgba(0, 0, 0, 0.5);
    color: var(--gold-light);
    transform: none;
  }
  .lightbox-prev  { left: 8px; }
  .lightbox-next  { right: 8px; }
  .lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%); }
  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 38px; height: 38px;
  }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1080px) {
  .gallery-grid { grid-auto-rows: 160px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    top: 0; right: 0;
    width: min(360px, 86vw);
    height: 100vh;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 36px 36px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    border-left: 1px solid rgba(212, 185, 126, 0.2);
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { font-size: 18px; }
  .nav-cta { margin-left: 0; margin-top: 12px; }

  .hero-bg { background-attachment: scroll; }

  .about-grid,
  .team-grid,
  .contact-layout { grid-template-columns: 1fr; gap: 56px; }
  .team-visual,
  .about-visual { max-width: 480px; margin: 0 auto; }

  .expertise-grid,
  .fees-grid { grid-template-columns: 1fr; }

  .tools-card { grid-template-columns: 1fr; gap: 20px; text-align: center; padding: 28px 24px; }
  .tools-icon { margin: 0 auto; }
  .tools-lead { margin: 0 auto; }
  .tools .eyebrow { display: inline-flex; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery-item { grid-column: span 1 !important; grid-row: span 1 !important; }

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

@media (max-width: 640px) {
  .container { padding: 0 22px; }
  .hero-title { font-size: clamp(2.75rem, 11vw, 4rem); }
  .about-stats { grid-template-columns: 1fr; gap: 18px; }
  .team-meta { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }

  /* Hero mobile : texte plus lumineux + voile sombre plus marqué */
  .hero-overlay {
    background:
      radial-gradient(ellipse 95% 70% at 50% 50%, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.30) 55%, transparent 85%),
      radial-gradient(ellipse at 20% 90%, rgba(184, 146, 74, 0.22) 0%, transparent 55%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(7, 44, 29, 0.78) 100%);
  }
  .hero-title {
    color: #FFFFFF;
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
  }
  .hero-subtitle {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
  }
  .hero-eyebrow {
    color: #E8D5A8;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-bg { background-attachment: scroll; }
}
