/* ============================================================
   ARX Avocats — Styles globaux
   Palette : noir & blanc strict, typo serif (Playfair) + sans (Inter)
   ============================================================ */

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: #0a0a0a;
  background: #fafafa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.6;
}

/* --- Variables --- */
:root {
  --ink: #0a0a0a;
  --paper: #fafafa;
  --line: #1a1a1a;
  --muted: #6a6a6a;
  --soft: #e8e8e8;
  --maxw: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 10vw, 8rem);
  --serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", sans-serif;
}

/* --- Typographie --- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
}

p {
  font-size: 1rem;
  line-height: 1.7;
  color: #1a1a1a;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
  display: block;
}

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

.section {
  padding: var(--section-y) 0;
}

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

.section--dark p {
  color: rgba(250, 250, 250, 0.85);
}

.section-title {
  margin-bottom: 3rem;
  max-width: 44rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--soft);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav__brand {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav__brand sup {
  font-size: 0.55em;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-left: 0.25rem;
  color: var(--muted);
}

.nav__links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  align-items: center;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  position: relative;
}

.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--ink);
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav__toggle span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav__toggle span:nth-child(1) { top: 14px; }
.nav__toggle span:nth-child(2) { top: 20px; }
.nav__toggle span:nth-child(3) { top: 26px; }

.nav.is-open .nav__toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav.is-open .nav__toggle span:nth-child(2) {
  opacity: 0;
}
.nav.is-open .nav__toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --- Page headers --- */
.page-header {
  padding: calc(80px + var(--section-y)) 0 var(--section-y);
  border-bottom: 1px solid var(--soft);
}

.page-header__eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: block;
}

.page-header__title {
  font-size: clamp(2.25rem, 5vw, 4rem);
  max-width: 36rem;
}

/* --- Cartes --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.card {
  border-top: 1px solid var(--ink);
  padding-top: 1.75rem;
}

.card__num {
  font-family: var(--serif);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--muted);
  display: block;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- Équipe (zig-zag photo/texte) --- */
.team {
  display: grid;
  gap: 6rem;
}

.member {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  align-items: start;
}

/* Inverser l'ordre photo/texte un membre sur deux */
.member:nth-child(even) .member__photo {
  order: 2;
}

.member__content {
  display: flex;
  flex-direction: column;
}

.member__head {
  border-top: 1px solid var(--ink);
  padding-top: 1.5rem;
  margin-bottom: 2rem;
}

.member__photo {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--soft);
}

.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  /* Noir et blanc par défaut : repasse en couleur quand on arrive
     sur la personne (au scroll) ou au survol. */
  filter: grayscale(100%);
  transition: filter 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.member__photo.in-view img {
  filter: grayscale(0%);
}

@media (hover: hover) {
  .member__photo:hover img {
    filter: grayscale(0%);
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Pas d'effet de transition : images en couleur d'emblée. */
  .member__photo img {
    filter: none;
    transition: none;
  }
}

.member__name {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0;
  line-height: 1.1;
}

.member__role {
  font-family: var(--sans);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.6rem 0 0;
  display: block;
}

.member__body p {
  margin-bottom: 1rem;
}

/* --- Expertises list --- */
.expertise-list {
  display: grid;
  gap: 0;
}

.expertise-item {
  border-top: 1px solid var(--soft);
  padding: 2.5rem 0;
}

.expertise-item:last-child {
  border-bottom: 1px solid var(--soft);
}

.expertise-item h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.75rem;
}

.expertise-item p {
  color: var(--muted);
  max-width: 52rem;
  margin-bottom: 0.75rem;
}

.expertise-item p:last-child {
  margin-bottom: 0;
}

/* --- Formulaire contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
}

.contact-info dt {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.contact-info dd {
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.form {
  display: grid;
  gap: 1.5rem;
}

.field label {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.field input,
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.75rem 0;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--muted);
}

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

.form__legal {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
}

/* --- Boutons --- */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-align: center;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
  opacity: 1;
}

.btn--light {
  border-color: var(--paper);
  color: var(--paper);
}

.btn--light:hover {
  background: var(--paper);
  color: var(--ink);
}

/* --- Citation / pull quote --- */
.quote {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  font-style: italic;
  line-height: 1.45;
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
  color: var(--paper);
}

.quote::before,
.quote::after {
  content: "—";
  display: block;
  font-style: normal;
  color: rgba(250, 250, 250, 0.5);
  margin: 1.5rem auto;
  font-size: 1rem;
}

/* --- Intro texte long --- */
.prose {
  max-width: 44rem;
}

.prose p {
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.prose p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 3.5rem;
  float: left;
  line-height: 0.9;
  margin: 0.25rem 0.75rem 0 0;
  font-weight: 400;
}

/* --- Footer --- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 4rem 0 2rem;
}

.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand {
  font-family: var(--serif);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.footer__tag {
  font-size: 0.875rem;
  color: rgba(250, 250, 250, 0.6);
  max-width: 20rem;
  line-height: 1.6;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(250, 250, 250, 0.2);
  color: rgba(250, 250, 250, 0.85);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer__social a:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.footer h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.6);
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.footer a {
  color: rgba(250, 250, 250, 0.85);
}

.footer__bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem var(--gutter) 0;
  border-top: 1px solid rgba(250, 250, 250, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(250, 250, 250, 0.5);
}

/* --- Variantes de section --- */
.section--soft {
  background: #f3f3f1;
}

/* --- Section title eyebrow (réutilisable) --- */
.section-title__eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* --- Cartes dark --- */
.card--dark {
  border-top-color: rgba(250, 250, 250, 0.4);
}

.card--dark h3 {
  color: var(--paper);
}

.card--dark p {
  color: rgba(250, 250, 250, 0.75);
}

.card--dark .card__num {
  color: rgba(250, 250, 250, 0.55);
}

/* --- Grid 3 colonnes --- */
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .grid--3 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* --- Page header lead --- */
.page-header__lead {
  margin-top: 1.75rem;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 42rem;
}

/* --- Page Actualités (vide en attendant les articles) --- */
.news-empty {
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid var(--soft);
  border-bottom: 1px solid var(--soft);
}

.news-empty__text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.social-links__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 1.75rem;
  border: 1px solid var(--ink);
  min-width: 12rem;
}

.social-links__item strong {
  font-family: var(--sans);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.social-links__item--coming span {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 0.875rem;
}

.social-links__item--link:hover {
  background: var(--ink);
  color: var(--paper);
}

/* --- Liste pratiques (page cabinet) --- */
.practice-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem 2.5rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.practice-list li {
  border-top: 1px solid var(--soft);
  padding-top: 0.75rem;
  color: var(--ink);
}

/* --- Equipe : sous-titres et barreau --- */
.member__bar {
  display: block;
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0.2rem 0 0;
  font-style: italic;
}

.member__sub {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.member__body > .member__sub:first-child {
  margin-top: 0;
}

/* --- Expertise : sous-liste --- */
.expertise-sub {
  margin-top: 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.expertise-sub li {
  margin-bottom: 0.25rem;
}

/* --- Prose variantes --- */
.prose--light p {
  color: rgba(250, 250, 250, 0.85);
}

.prose--light p:first-child::first-letter {
  color: var(--paper);
}

.prose--small p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.prose--small h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.prose--small p:first-child::first-letter {
  font-size: inherit;
  float: none;
  margin: 0;
  font-family: inherit;
  font-weight: inherit;
}

/* --- Pages légales --- */
.legal {
  max-width: 48rem;
}

.legal h2 {
  font-size: 1.5rem;
  margin-top: 4rem;
  margin-bottom: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--soft);
}

.legal h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal p,
.legal li {
  color: #1a1a1a;
  font-size: 1rem;
  line-height: 1.75;
}

.legal p {
  margin-bottom: 1.25rem;
}

.legal p:last-child {
  margin-bottom: 0;
}

.legal ul {
  margin: 0.75rem 0 1.5rem 1.5rem;
}

.legal ul li {
  margin-bottom: 0.5rem;
}

.legal-list {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 1.25rem 2rem;
  margin: 0 0 1rem;
}

.legal-list dt {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.25rem;
}

.legal-list dd {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 720px) {
  .legal-list {
    grid-template-columns: 1fr;
    gap: 0.35rem 0;
  }
  .legal-list dd {
    margin-bottom: 1.5rem;
  }
  .legal-list dd:last-of-type {
    margin-bottom: 0;
  }
}

/* --- Placeholders à compléter (discrets, italique gris) --- */
.todo {
  font-style: italic;
  color: var(--muted);
  font-weight: 400;
}

/* --- Checkbox RGPD (formulaire contact) --- */
.field--checkbox {
  margin-top: 0.5rem;
}

.field__checkbox-label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  margin-bottom: 0;
}

.field__checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 0.2rem;
  accent-color: var(--ink);
}

/* --- Boutons (variantes additionnelles) --- */
.btn--ghost {
  border-color: var(--muted);
  color: var(--ink);
}

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

.btn--small {
  padding: 0.6rem 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
}

.btn--filled {
  background: var(--ink);
  color: var(--paper);
}

.btn--filled:hover {
  background: transparent;
  color: var(--ink);
}

/* --- Bandeau cookies (barre sombre, sobre) --- */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  padding: 1.25rem 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.is-visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.cookie-banner__title {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.6);
  margin: 0 0 0.4rem;
}

.cookie-banner__text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(250, 250, 250, 0.9);
  margin: 0;
}

.cookie-banner__text a,
.cookie-banner__toggle {
  color: var(--paper);
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.cookie-banner__toggle:hover {
  text-decoration: none;
}

.cookie-banner__info {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(250, 250, 250, 0.15);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(250, 250, 250, 0.85);
}

.cookie-banner__info[hidden] {
  display: none;
}

.cookie-banner__info p {
  margin: 0 0 0.5rem;
}

.cookie-banner__info ul {
  margin: 0 0 0.5rem 1rem;
  padding: 0;
}

.cookie-banner__info li {
  margin-bottom: 0.25rem;
}

.cookie-banner__info a {
  color: var(--paper);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-banner .btn--small {
  border-color: rgba(250, 250, 250, 0.6);
  color: var(--paper);
}

.cookie-banner .btn--small.btn--filled {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.cookie-banner .btn--small:hover {
  background: var(--paper);
  color: var(--ink);
}

@media (max-width: 720px) {
  .cookie-banner__inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .cookie-banner__actions {
    justify-content: flex-end;
  }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 2rem var(--gutter);
    gap: 1.5rem;
    border-bottom: 1px solid var(--soft);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav.is-open .nav__links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .member,
  .expertise-item,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Sur mobile : photo toujours au-dessus du texte, pas de zig-zag */
  .member:nth-child(even) .member__photo {
    order: 0;
  }

  .member__photo {
    max-width: 360px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 520px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }
}

/* --- Photo équipe (bannière) --- */
.team-hero,
.cabinet-hero {
  padding: 0 0 var(--section-y);
}

.team-hero__figure,
.cabinet-hero__figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--soft);
}

.team-hero__figure img,
.cabinet-hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

@media (max-width: 720px) {
  /* Photo équipe = paysage (trio debout) : garder un cadrage large pour ne
     pas tronquer les personnes sur les côtés. */
  .team-hero__figure {
    aspect-ratio: 3/2;
  }
  .team-hero__figure img {
    object-position: center;
  }
  /* Photo cabinet = portrait (salon) : cadrage vertical adapté. */
  .cabinet-hero__figure {
    aspect-ratio: 4/5;
  }
}

/* --- Section split (texte + image) --- */
.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split__figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--soft);
}

.split__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .split__figure {
    aspect-ratio: 4/3;
    max-height: 420px;
  }
}

/* ============================================================
   HERO VIDÉO PLEIN ÉCRAN (accueil) — vidéo de fond intégrée
   ============================================================ */
.hero-v {
  position: relative;
  min-height: 100svh;
  min-height: 100vh; /* repli navigateurs sans svh */
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--ink);
}

/* La vidéo recouvre tout le hero, sans aucune interaction possible */
.hero-v__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  z-index: 0;
}

/* Voile dégradé sombre pour la lisibilité du logo et du texte */
.hero-v__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(15, 18, 30, 0.58) 0%,
    rgba(15, 18, 30, 0.44) 42%,
    rgba(15, 18, 30, 0.72) 100%
  );
  transition: opacity 0.8s ease;
}

/* Voile « outro » (≥ 11 s) : centre transparent pour laisser voir leur logo
   dans la vidéo, sombre uniquement en bas pour la lisibilité du bouton. */
.hero-v__scrim--outro {
  opacity: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 18, 30, 0) 0%,
    rgba(15, 18, 30, 0) 58%,
    rgba(15, 18, 30, 0.6) 100%
  );
}
.hero-v.is-outro .hero-v__scrim {
  opacity: 0;
}
.hero-v.is-outro .hero-v__scrim--outro {
  opacity: 1;
}

/* En mode outro : logo et texte disparaissent, seul le bouton reste. */
.hero-v__logo,
.hero-v__lead {
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.hero-v.is-outro .hero-v__logo,
.hero-v.is-outro .hero-v__lead {
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
}

.hero-v__content {
  position: relative;
  z-index: 2;
  max-width: 52rem;
  padding: calc(80px + 2.5rem) 1.5rem 5rem;
  color: var(--paper);
}

.hero-v__logo {
  display: block;
  width: clamp(240px, 34vw, 460px);
  height: auto;
  margin: 0 auto 2.25rem;
  filter: drop-shadow(0 2px 22px rgba(0, 0, 0, 0.35));
}

.hero-v__lead {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.75;
  color: rgba(250, 250, 250, 0.92);
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

/* Indicateur de défilement discret */
.hero-v__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  z-index: 2;
  width: 22px;
  height: 36px;
  margin-left: -11px;
  border: 1px solid rgba(250, 250, 250, 0.55);
  border-radius: 12px;
}
.hero-v__scroll::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  background: rgba(250, 250, 250, 0.85);
  border-radius: 2px;
  animation: heroScroll 1.8s ease-in-out infinite;
}
@keyframes heroScroll {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  70% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* Texte réservé aux lecteurs d'écran (h1 SEO) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   EFFET « GLISSANT » AU SCROLL (révélation des sections)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Respect des préférences d'accessibilité : pas d'animation ni d'autoplay */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-v__scroll::before {
    animation: none;
  }
}

/* <picture> transparent à la mise en page : les règles "figure img",
   ".member__photo img", etc. continuent de s'appliquer telles quelles. */
picture {
  display: contents;
}
