/* ============================================================
   VALMONT & ASSOCIÉS — Cabinet d'avocats
   Feuille de style principale — ATLAS CODE
   Direction : noir profond · or · ivoire — typographie monumentale
   ============================================================ */

:root {
  --black: #0a0b0e;
  --ink: #121419;
  --ink-2: #1a1d24;
  --ink-3: #23272f;
  --cream: #efe7d6;
  --cream-2: #e3d8c0;
  --gold: #c9a35a;
  --gold-2: #e2c57f;
  --gold-dark: #9c7a3b;
  --gold-soft: rgba(201, 163, 90, 0.18);

  /* Variables de contexte : redéfinies par section */
  --bg: var(--black);
  --fg: var(--cream);
  --fg-muted: rgba(239, 231, 214, 0.62);
  --fg-faint: rgba(239, 231, 214, 0.38);
  --rule: rgba(239, 231, 214, 0.14);
  --rule-strong: rgba(239, 231, 214, 0.32);

  --serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--fg);
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--gold); color: var(--black); }

/* ---------- Utilitaires ---------- */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 34px; height: 1px; background: var(--gold); }

.title-xl { font-size: clamp(42px, 6.2vw, 86px); }
.title-lg { font-size: clamp(36px, 4.4vw, 60px); }
.title-md { font-size: clamp(28px, 3vw, 40px); }
.title-sm { font-size: clamp(22px, 2.2vw, 28px); }
.title em { font-style: italic; color: var(--gold-2); }

.lead { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.6; color: var(--fg-muted); font-weight: 300; }

.text-center { text-align: center; }
.mt-1 { margin-top: 18px; }
.mt-2 { margin-top: 36px; }
.mt-3 { margin-top: 64px; }

/* Sections : trois ambiances */
.section { padding: clamp(80px, 10vw, 140px) 0; background: var(--bg); position: relative; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section--dark { --bg: var(--ink); }
.section--ivory {
  --bg: var(--cream);
  --fg: var(--black);
  --fg-muted: #5e584c;
  --fg-faint: #8a8373;
  --rule: rgba(10, 11, 14, 0.14);
  --rule-strong: rgba(10, 11, 14, 0.34);
}
.section--ivory .title em { color: var(--gold-dark); }
.section--ivory .eyebrow { color: var(--gold-dark); }
.section--ivory .eyebrow::before, .section--ivory .eyebrow::after { background: var(--gold-dark); }

.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 20px; }

/* Filet or décoratif sous certains titres */
.rule-gold { width: 54px; height: 1px; background: var(--gold); margin: 22px 0 0; }
.section-head--center .rule-gold { margin-inline: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 17px 32px;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  border: 1px solid var(--rule-strong); color: var(--fg);
  background: transparent;
  transition: all .45s var(--ease);
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: var(--fg);
  transform: translateY(101%); transition: transform .45s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--bg); border-color: var(--fg); }
.btn:hover::after { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translate(3px, -3px); }

.btn--gold { border-color: var(--gold); background: var(--gold); color: var(--black); }
.btn--gold::after { background: var(--cream); }
.btn--gold:hover { color: var(--black); border-color: var(--cream); }

.btn--light { border-color: rgba(239,231,214,.45); color: var(--cream); }
.btn--light::after { background: var(--cream); }
.btn--light:hover { color: var(--black); border-color: var(--cream); }

.btn--text { padding: 0; border: 0; gap: 10px; color: var(--gold); }
.btn--text::after { display: none; }
.btn--text span { position: relative; }
.btn--text span::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.btn--text:hover { color: var(--gold-2); }
.btn--text:hover span::after { transform: scaleX(1); }
.section--ivory .btn--text { color: var(--gold-dark); }

/* Bouton rond "play" (hero) */
.btn-round {
  width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold);
  display: inline-grid; place-items: center;
  transition: all .45s var(--ease);
}
.btn-round svg { width: 18px; height: 18px; }
.btn-round:hover { background: var(--gold); color: var(--black); transform: scale(1.06); }

/* ---------- Header ---------- */
.topbar {
  background: var(--black); color: var(--fg-faint);
  font-size: 11.5px; letter-spacing: 0.1em;
  border-bottom: 1px solid var(--rule);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar a:hover { color: var(--gold-2); }
.topbar__right { display: flex; gap: 28px; }

.header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(10, 11, 14, 0.78);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .4s var(--ease), background .4s var(--ease);
}
.header.is-scrolled { background: rgba(10, 11, 14, 0.94); box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.header .container {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; height: 90px; gap: 30px;
}

.brand { display: flex; align-items: center; gap: 14px; justify-self: center; }
.brand__mark {
  width: 42px; height: 42px; border: 1px solid var(--gold);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 24px; color: var(--cream);
  position: relative;
}
.brand__mark::after { content: ""; position: absolute; inset: 4px; border: 1px solid var(--gold-soft); }
.brand__text { line-height: 1.05; text-align: left; }
.brand__name { font-family: var(--display); font-size: 22px; letter-spacing: 0.14em; color: var(--cream); font-weight: 400; }
.brand__sub { display: block; font-size: 9.5px; letter-spacing: 0.36em; text-transform: uppercase; color: var(--gold); margin-top: 3px; font-family: var(--sans); }

.nav { display: flex; align-items: center; gap: 38px; }
.nav--left { justify-self: start; }
.nav--right { justify-self: end; }
.nav a {
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cream); position: relative; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 12px 22px; }
.nav .btn::after { transform: translateY(101%); }
.nav .btn:hover::after { transform: translateY(0); }

.burger {
  display: none; justify-self: end;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.burger span { width: 26px; height: 1.5px; background: var(--cream); transition: all .4s var(--ease); }
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 80;
  background: var(--black); color: var(--cream);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: all .5s var(--ease);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav a {
  font-family: var(--serif); font-size: clamp(34px, 8vw, 52px);
  padding: 10px 0; border-bottom: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-nav a small { font-family: var(--sans); font-size: 11px; letter-spacing: .3em; color: var(--gold); }
.mobile-nav__foot { margin-top: 36px; font-size: 13px; color: var(--fg-muted); line-height: 2; }
.mobile-nav__foot a { font: inherit; border: 0; padding: 0; display: block; }

/* ---------- Hero (accueil) : wordmark monumental ---------- */
.hero {
  position: relative; background: var(--black); color: var(--cream);
  overflow: hidden; padding-top: 30px;
}
.hero__word {
  font-family: var(--display);
  font-size: clamp(96px, 21vw, 330px);
  line-height: .85; letter-spacing: .02em; text-align: center;
  color: var(--cream);
  background: linear-gradient(180deg, #f3ecdc 0%, #d9d0bc 40%, rgba(60, 58, 52, .5) 80%, rgba(10,11,14,0) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  user-select: none; white-space: nowrap;
  position: relative; z-index: 1;
  margin: 0 -2vw;
  animation: wordIn 1.4s var(--ease) both;
}
@keyframes wordIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }

.hero__stage {
  position: relative; z-index: 2;
  margin: clamp(-40px, -8vw, -130px) auto 0;
  width: min(1120px, 100% - 2 * var(--gutter));
  aspect-ratio: 16 / 8.2;
  min-height: 420px;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  filter: grayscale(1) contrast(1.15) brightness(.78);
  transform: scale(1.04);
  animation: heroZoom 10s var(--ease) forwards;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 85%, rgba(10,11,14,.85) 0%, rgba(10,11,14,0) 55%),
    linear-gradient(180deg, rgba(10,11,14,0) 40%, rgba(10,11,14,.6) 100%);
}
.hero__content {
  position: absolute; left: 0; right: 0; bottom: 8%;
  text-align: center; padding: 0 var(--gutter);
}
.hero__content h1 { font-size: clamp(26px, 3.2vw, 44px); max-width: 24ch; margin-inline: auto; text-shadow: 0 2px 30px rgba(0,0,0,.6); }
.hero__content h1 em { font-style: italic; color: var(--gold-2); }

.hero__wave {
  display: flex; align-items: center; justify-content: space-between;
  height: 46px; margin: 26px auto 0; width: min(760px, 100%);
  opacity: .85;
}
.hero__wave i { display: block; width: 2px; background: var(--gold); height: var(--h, 20%); border-radius: 1px; animation: wave 2.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes wave { 0%,100% { transform: scaleY(1); opacity: .9 } 50% { transform: scaleY(.45); opacity: .5 } }

.hero__case {
  position: relative; z-index: 3;
  text-align: center;
  width: min(760px, 100% - 2 * var(--gutter));
  margin: clamp(16px, 3vw, 40px) auto 0;
  padding-bottom: clamp(50px, 6vw, 80px);
}
.hero__case-label { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.hero__case-title { font-family: var(--serif); font-size: 22px; margin-top: 12px; letter-spacing: .04em; }
.hero__case-q { color: var(--fg-muted); font-size: 15.5px; max-width: 60ch; margin: 10px auto 24px; }
.hero__case .btn-round { position: relative; }
.hero__case .btn-round::after { content: ""; position: absolute; top: 100%; left: 50%; width: 1px; height: 40px; background: var(--gold); opacity: .5; }

/* Hero page interne : photo à droite, texte à gauche */
.page-hero {
  position: relative; background: var(--black); color: var(--cream);
  padding: clamp(100px, 15vw, 180px) 0 clamp(70px, 9vw, 120px);
  overflow: hidden; min-height: 60vh; display: flex; align-items: center;
}
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; opacity: .55; filter: saturate(.55) contrast(1.1); }
.page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,11,14,.96) 0%, rgba(10,11,14,.85) 35%, rgba(10,11,14,.25) 70%, rgba(10,11,14,.1) 100%),
    linear-gradient(180deg, rgba(10,11,14,.3), rgba(10,11,14,0) 30%, rgba(10,11,14,.95) 100%);
}
.page-hero__word {
  position: absolute; right: -2vw; bottom: -4vw; z-index: 0;
  font-family: var(--display); font-size: clamp(90px, 18vw, 280px); line-height: .85;
  letter-spacing: .02em; color: transparent;
  -webkit-text-stroke: 1px rgba(239,231,214,.14);
  user-select: none; pointer-events: none; white-space: nowrap;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { max-width: 56ch; margin-top: 24px; }
.breadcrumb { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 30px; display: flex; gap: 14px; }
.breadcrumb a:hover { color: var(--gold-2); }

/* ---------- Bandeau marquee ---------- */
.ticker {
  background: var(--gold); color: var(--black);
  overflow: hidden; padding: 16px 0;
  font-family: var(--display); font-size: 16px; letter-spacing: .14em; text-transform: uppercase;
}
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker__track span { padding: 0 36px; white-space: nowrap; display: flex; align-items: center; gap: 36px; }
.ticker__track span::after { content: ""; width: 6px; height: 6px; background: var(--black); transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Intro / présentation ---------- */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.intro__media { position: relative; }
.intro__media img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; filter: saturate(.7) contrast(1.05); }
.intro__media::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 1px solid var(--gold); z-index: -1; }
.intro__badge {
  position: absolute; left: -30px; bottom: 50px;
  background: var(--gold); color: var(--black);
  padding: 26px 30px; max-width: 230px;
}
.intro__badge strong { font-family: var(--display); font-size: 54px; line-height: 1; display: block; letter-spacing: .02em; }
.intro__badge span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; display: block; margin-top: 10px; line-height: 1.6; color: rgba(10,11,14,.75); }
.intro__text .lead { margin: 24px 0 22px; }
.intro__text p { color: var(--fg); }
.intro__text p:not(.lead) { color: var(--fg-muted); }
.intro__signature { margin-top: 36px; display: flex; align-items: center; gap: 22px; }
.intro__signature img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; filter: grayscale(1); border: 1px solid var(--gold); padding: 3px; }
.intro__signature strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 400; }
.intro__signature span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }

/* ---------- Expertises (liste) ---------- */
.expertises { border-top: 1px solid var(--rule); }
.expertise {
  display: grid; grid-template-columns: 90px 1.1fr 1.4fr auto;
  gap: 40px; align-items: center; padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding .5s var(--ease); position: relative;
}
.expertise::before { content: ""; position: absolute; left: 0; bottom: -1px; width: 0; height: 1px; background: var(--gold); transition: width .6s var(--ease); }
.expertise:hover::before { width: 100%; }
.expertise:hover { padding-left: 14px; }
.expertise__num { font-family: var(--display); font-size: 20px; color: var(--gold); letter-spacing: .08em; }
.expertise__title { font-size: clamp(26px, 2.6vw, 34px); }
.expertise__desc { color: var(--fg-muted); font-size: 15px; line-height: 1.7; }
.expertise__arrow {
  width: 54px; height: 54px; border: 1px solid var(--rule-strong); border-radius: 50%;
  display: grid; place-items: center; color: var(--cream); transition: all .45s var(--ease);
}
.expertise__arrow svg { width: 18px; height: 18px; }
.expertise:hover .expertise__arrow { background: var(--gold); border-color: var(--gold); color: var(--black); transform: rotate(-45deg); }

/* ---------- Valeurs / chiffres ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.value { background: var(--bg); padding: 46px 40px; transition: background .5s var(--ease); }
.value:hover { background: var(--ink-2); }
.section--ivory .value:hover { background: var(--cream-2); }
.value__icon { width: 46px; height: 46px; color: var(--gold); margin-bottom: 26px; }
.value__icon svg { width: 100%; height: 100%; }
.value h3 { font-size: 26px; margin-bottom: 14px; }
.value p { color: var(--fg-muted); font-size: 15.5px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { border-top: 1px solid var(--gold); padding-top: 24px; }
.stat strong { font-family: var(--display); font-size: clamp(54px, 5.6vw, 84px); line-height: 1; display: block; letter-spacing: .02em; color: var(--fg); }
.stat span { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-muted); display: block; margin-top: 12px; }

/* ---------- Équipe ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.member { position: relative; }
.member__photo { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: var(--ink-2); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); transition: transform 1s var(--ease), filter .8s var(--ease); }
.member:hover .member__photo img { transform: scale(1.05); filter: grayscale(.2) contrast(1.05); }
.member__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,11,14,.7)); opacity: .3; transition: opacity .6s var(--ease); }
.member:hover .member__photo::after { opacity: 1; }
.member__info { padding-top: 20px; border-top: 1px solid var(--rule); margin-top: 18px; }
.member__info h3 { font-size: 24px; }
.member__info span { display: block; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-top: 8px; }
.member__info p { font-size: 14.5px; color: var(--fg-muted); margin-top: 12px; }

.team--detailed { grid-template-columns: repeat(2, 1fr); gap: 60px 50px; }
.team--detailed .member { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.team--detailed .member__info { padding-top: 0; border-top: 0; margin-top: 0; }
.team--detailed .member__info p { font-size: 15px; }
.member__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.member__tags li { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--rule); padding: 6px 12px; color: var(--fg-muted); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; counter-reset: step; }
.step { position: relative; padding-top: 40px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--display); font-size: 18px; letter-spacing: .1em; color: var(--gold);
  position: absolute; top: 0; left: 0;
}
.step::after { content: ""; position: absolute; top: 12px; left: 52px; right: 0; height: 1px; background: var(--rule); }
.step:last-child::after { display: none; }
.step h3 { font-size: 24px; margin-bottom: 12px; }
.step p { font-size: 15px; color: var(--fg-muted); }

/* ---------- Témoignages ---------- */
.testimonials { position: relative; }
.testimonial__quote { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 44px); line-height: 1.3; max-width: 22ch; margin-inline: auto; text-align: center; font-style: italic; }
.testimonial__quote::before { content: "“"; color: var(--gold); font-size: 1.4em; line-height: 0; margin-right: .1em; vertical-align: -.25em; }
.testimonial__meta { text-align: center; margin-top: 34px; }
.testimonial__meta strong { display: block; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; color: var(--gold); }
.testimonial__meta span { font-size: 13px; color: var(--fg-muted); }
.testimonial { display: none; animation: fadeUp .9s var(--ease); }
.testimonial.is-active { display: block; }
.testimonials__nav { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 46px; }
.testimonials__nav button { width: 48px; height: 48px; border: 1px solid var(--rule-strong); border-radius: 50%; display: grid; place-items: center; transition: all .4s var(--ease); }
.testimonials__nav button:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.testimonials__nav svg { width: 16px; height: 16px; }
.testimonials__dots { display: flex; gap: 10px; }
.testimonials__dots i { width: 28px; height: 1px; background: var(--rule-strong); transition: background .4s; cursor: pointer; }
.testimonials__dots i.is-active { background: var(--gold); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Actualités ---------- */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.post { display: flex; flex-direction: column; }
.post__media { overflow: hidden; aspect-ratio: 16 / 11; background: var(--ink-2); position: relative; }
.post__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) contrast(1.08); transition: transform 1s var(--ease), filter .8s var(--ease); }
.post:hover .post__media img { transform: scale(1.05); filter: grayscale(.1); }
.post__meta { display: flex; gap: 18px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 22px 0 12px; }
.post__meta time { color: var(--fg-faint); }
.post h3 { font-size: 25px; line-height: 1.2; }
.post h3 a { background-image: linear-gradient(var(--gold), var(--gold)); background-size: 0 1px; background-repeat: no-repeat; background-position: left bottom; transition: background-size .5s var(--ease); }
.post:hover h3 a { background-size: 100% 1px; }
.post p { color: var(--fg-muted); font-size: 15px; margin-top: 12px; }
.post .btn--text { margin-top: 18px; }

.post--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; margin-bottom: 20px; }
.post--featured .post__media { aspect-ratio: 16 / 10; }
.post--featured h3 { font-size: clamp(30px, 3.4vw, 44px); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 50px; }
.filters button { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 10px 18px; border: 1px solid var(--rule); transition: all .4s var(--ease); color: var(--fg-muted); }
.filters button:hover, .filters button.is-active { background: var(--gold); color: var(--black); border-color: var(--gold); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 30px;
  padding: 26px 0; text-align: left;
  font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); color: var(--fg);
  transition: color .3s;
}
.faq__q:hover { color: var(--gold); }
.faq__q i { flex: none; width: 34px; height: 34px; border: 1px solid var(--rule-strong); border-radius: 50%; position: relative; transition: all .4s var(--ease); }
.faq__q i::before, .faq__q i::after { content: ""; position: absolute; background: currentColor; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.faq__q i::before { width: 12px; height: 1px; }
.faq__q i::after { width: 1px; height: 12px; transition: transform .4s var(--ease); }
.faq__item.is-open .faq__q i { background: var(--gold); border-color: var(--gold); color: var(--black); }
.faq__item.is-open .faq__q i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .6s var(--ease); }
.faq__a p { padding: 0 60px 28px 0; color: var(--fg-muted); font-size: 15.5px; }

/* ---------- CTA ---------- */
.cta { position: relative; background: var(--black); color: var(--cream); overflow: hidden; }
.cta__media { position: absolute; inset: 0; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: grayscale(1) contrast(1.1); }
.cta__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--black) 25%, rgba(10,11,14,.55)); }
.cta .container { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; }
.cta h2 { max-width: 16ch; }
.cta__right { display: flex; flex-direction: column; gap: 24px; justify-self: end; }
.cta__contact { font-family: var(--serif); font-size: 28px; }
.cta__contact small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }

/* ---------- Page Expertises ---------- */
.domain { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; padding: clamp(60px, 8vw, 110px) 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 110px; position: relative; }
.domain:nth-child(even) .domain__media { order: 2; }
.domain__media { position: relative; }
.domain__media img { aspect-ratio: 5 / 4; width: 100%; object-fit: cover; filter: grayscale(.8) contrast(1.08); transition: filter .8s var(--ease); }
.domain:hover .domain__media img { filter: grayscale(.1); }
.domain__media::before { content: ""; position: absolute; inset: 20px -20px -20px 20px; border: 1px solid var(--gold); z-index: -1; }
.domain__num { font-family: var(--display); font-size: 15px; letter-spacing: .2em; color: var(--gold); margin-bottom: 16px; display: block; text-transform: uppercase; }
.domain h2 { font-size: clamp(32px, 3.6vw, 48px); margin-bottom: 20px; }
.domain__list { margin: 26px 0 30px; display: grid; gap: 10px; }
.domain__list li { display: flex; gap: 14px; align-items: baseline; font-size: 15.5px; color: var(--fg-muted); }
.domain__list li::before { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); flex: none; position: relative; top: -2px; }

.subnav { position: sticky; top: 90px; z-index: 50; background: rgba(10,11,14,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.subnav .container { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 20px 16px; white-space: nowrap; border-bottom: 1px solid transparent; margin-bottom: -1px; transition: all .3s; color: var(--fg-muted); }
.subnav a:hover, .subnav a.is-active { color: var(--gold-2); border-color: var(--gold); }

/* ---------- Honoraires ---------- */
.fees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.fee { border: 1px solid var(--rule); padding: 44px 38px; position: relative; transition: all .5s var(--ease); background: var(--bg); }
.fee:hover { border-color: var(--gold); transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.fee--highlight { background: var(--gold); color: var(--black); border-color: var(--gold); --fg: var(--black); --fg-muted: rgba(10,11,14,.72); }
.fee--highlight h3 { color: var(--black); }
.fee__label { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.fee--highlight .fee__label { color: rgba(10,11,14,.7); }
.fee h3 { font-size: 30px; margin: 14px 0 10px; }
.fee__price { font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--fg-muted); margin-bottom: 20px; }
.fee p { font-size: 15px; color: var(--fg-muted); }
.fee ul { margin-top: 22px; display: grid; gap: 10px; }
.fee li { font-size: 14.5px; display: flex; gap: 12px; align-items: baseline; color: var(--fg); }
.fee li::before { content: "—"; color: var(--gold); flex: none; }
.fee--highlight li::before { color: var(--black); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__info { display: grid; gap: 34px; }
.contact__block h3 { font-size: 15px; font-family: var(--sans); font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.contact__block p { font-size: 16px; }
.contact__block a:hover { color: var(--gold); }
.hours { display: grid; gap: 8px; font-size: 15px; }
.hours li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--rule); padding-bottom: 8px; }
.hours li span:last-child { color: var(--fg-muted); }

.form { background: var(--ink); padding: clamp(32px, 4vw, 56px); border: 1px solid var(--rule); position: relative; }
.form::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--gold-soft); pointer-events: none; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; position: relative; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--cream);
  background: transparent; border: 0; border-bottom: 1px solid var(--rule-strong);
  padding: 12px 0; outline: none; border-radius: 0; -webkit-appearance: none; appearance: none;
  transition: border-color .3s;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c9a35a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; cursor: pointer; }
.field select option { background: var(--ink); color: var(--cream); }
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-faint); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field.is-error input, .field.is-error select, .field.is-error textarea { border-color: #d0574f; }
.field__error { font-size: 12px; color: #e0736b; display: none; }
.field.is-error .field__error, .form__consent.is-error .field__error { display: block; }
.form__consent { display: flex; gap: 14px; align-items: flex-start; font-size: 13px; color: var(--fg-muted); grid-column: 1 / -1; }
.form__consent input { margin-top: 5px; accent-color: var(--gold); }
.form__footer { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 10px; }
.form__note { font-size: 12.5px; color: var(--fg-muted); max-width: 40ch; }
.form__success { display: none; text-align: center; padding: 40px 0; position: relative; }
.form__success h3 { font-size: 34px; margin: 20px 0 12px; }
.form__success p { color: var(--fg-muted); }
.form__success .check { width: 72px; height: 72px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; margin: 0 auto; color: var(--gold); }
.form.is-sent form { display: none; }
.form.is-sent .form__success { display: block; animation: fadeUp .8s var(--ease); }

.map { height: 460px; filter: grayscale(1) invert(.92) contrast(.9) brightness(.9); border: 1px solid var(--rule); }
.section--ivory .map { filter: grayscale(1) contrast(1.05); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: var(--fg-muted); padding: clamp(64px, 8vw, 100px) 0 40px; border-top: 1px solid var(--rule); position: relative; overflow: hidden; }
.footer__word {
  position: absolute; left: 50%; bottom: -3vw; transform: translateX(-50%);
  font-family: var(--display); font-size: clamp(90px, 20vw, 320px); line-height: .85; letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 1px rgba(239,231,214,.07);
  white-space: nowrap; pointer-events: none; user-select: none;
}
.footer .container { position: relative; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 60px; border-bottom: 1px solid var(--rule); }
.footer .brand { justify-self: start; }
.footer__about { max-width: 38ch; font-size: 14.5px; margin-top: 26px; }
.footer h4 { font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.footer li { margin-bottom: 11px; font-size: 14.5px; }
.footer a:hover { color: var(--cream); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 30px; font-size: 12.5px; }
.footer__bottom a { color: var(--fg-muted); }
.footer__bottom .credit a { color: var(--gold-2); letter-spacing: .08em; }
.footer__legal { display: flex; gap: 22px; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="fade"] { transform: none; }
[data-delay="1"] { transition-delay: .12s; }
[data-delay="2"] { transition-delay: .24s; }
[data-delay="3"] { transition-delay: .36s; }
[data-delay="4"] { transition-delay: .48s; }

/* ---------- Cookie / RGPD bandeau ---------- */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 95;
  background: var(--ink); color: var(--cream);
  padding: 22px 26px; max-width: 420px; font-size: 13.5px;
  border: 1px solid var(--rule);
  display: none; gap: 16px; align-items: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.cookie.is-visible { display: flex; animation: fadeUp .8s var(--ease); }
.cookie button { flex: none; border: 1px solid var(--gold); color: var(--gold-2); padding: 9px 16px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.cookie button:hover { background: var(--gold); color: var(--black); }

/* ---------- Page légale ---------- */
.legal h2 { font-size: 30px; margin: 44px 0 14px; }
.legal p, .legal li { font-size: 15.5px; color: var(--fg-muted); }
.legal ul { list-style: disc; padding-left: 20px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .header .container { grid-template-columns: auto 1fr auto; }
  .nav { display: none; }
  .brand { justify-self: start; }
  .burger { display: flex; grid-column: 3; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 30px; }
  .step::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .fees { grid-template-columns: 1fr; max-width: 560px; }
  .team--detailed { grid-template-columns: 1fr; }
  .expertise { grid-template-columns: 60px 1fr auto; }
  .expertise__desc { grid-column: 2; }
  .expertise__arrow { grid-row: 1 / span 2; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .topbar { display: none; }
  .header .container { height: 72px; }
  .brand__name { font-size: 18px; }
  .hero { padding-top: 16px; }
  .hero__word { font-size: 23vw; }
  .hero__stage { min-height: 360px; aspect-ratio: 4 / 5; margin-top: -5vw; width: 100%; }
  .hero__media img { object-position: center 40%; }
  .hero__content { bottom: 6%; }
  .hero__content h1 { font-size: 24px; }
  .hero__wave { height: 34px; margin-top: 18px; gap: 2px; }
  .page-hero { min-height: 0; }
  .page-hero__media img { object-position: 60% center; opacity: .4; }
  .page-hero__word { font-size: 24vw; right: -3vw; bottom: -5vw; }
  .intro, .domain, .contact, .cta .container, .post--featured { grid-template-columns: 1fr; }
  .domain:nth-child(even) .domain__media { order: 0; }
  .intro__media::before, .domain__media::before { inset: 14px -14px -14px 14px; }
  .intro__badge { left: 0; bottom: -20px; padding: 18px 20px; }
  .intro__badge strong { font-size: 38px; }
  .intro__text { margin-top: 40px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .news { grid-template-columns: 1fr; }
  .cta__right { justify-self: start; }
  .expertise { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .expertise__num { font-size: 16px; }
  .expertise__desc { grid-column: auto; }
  .expertise__arrow { display: none; }
  .expertise:hover { padding-left: 0; }
  .form__grid { grid-template-columns: 1fr; }
  .team--detailed .member { grid-template-columns: 1fr; }
  .team--detailed .member__photo { max-width: 280px; }
  .subnav { top: 72px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; flex-direction: column; align-items: stretch; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .team, .values, .steps, .stats { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__wave i:nth-child(n+41) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Page article (article.html) ---------- */
.page-hero--article h1 { max-width: 22ch; font-size: clamp(34px, 4.6vw, 64px); }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 6vw, 90px); align-items: start; }
.article__body { font-size: 17px; line-height: 1.8; color: var(--fg-muted); max-width: 72ch; }
.article__body h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; color: var(--fg); margin: 46px 0 16px; }
.article__body h2:first-child { margin-top: 0; }
.article__body p { margin: 0 0 20px; }
.article__body strong { color: var(--fg); font-weight: 500; }
.article__body em { font-style: italic; }
.article__body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.article__body a:hover { color: var(--gold-2); }
.article__body ul, .article__body ol { margin: 0 0 24px; padding-left: 22px; }
.article__body li { margin-bottom: 10px; padding-left: 6px; }
.article__body li::marker { color: var(--gold); }
.article__body blockquote { margin: 36px 0; padding: 4px 0 4px 28px; border-left: 1px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 27px); line-height: 1.4; color: var(--fg); }
.article__note { margin-top: 44px; padding: 20px 24px; border: 1px solid var(--rule); font-size: 13.5px; line-height: 1.6; color: var(--fg-faint); }
.article__nav { margin-top: 36px; }
.article__aside { position: sticky; top: 110px; display: grid; gap: 22px; }
.aside-box { border: 1px solid var(--rule); padding: 28px; }
.aside-box h3 { font-family: var(--sans); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.aside-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.aside-box li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.55; color: var(--fg-muted); }
.aside-box li::before { content: ""; position: absolute; left: 0; top: 11px; width: 10px; height: 1px; background: var(--gold); }
.aside-box p { font-size: 14.5px; line-height: 1.6; color: var(--fg-muted); margin-bottom: 20px; }
.aside-box .btn--gold { width: 100%; justify-content: center; margin-bottom: 14px; }
.aside-box--gold { border-color: var(--rule-strong); background: linear-gradient(160deg, rgba(201,163,90,.08), transparent 60%); }
.author { display: flex; gap: 16px; align-items: center; }
.author__photo { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: none; background: var(--ink-2); }
.author__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.author strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.1; color: var(--fg); margin-bottom: 6px; }
.author span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); line-height: 1.5; }
@media (max-width: 960px) {
  .article { grid-template-columns: 1fr; gap: 40px; }
  .article__aside { position: static; }
}
