/* ============================================================
   MAÎTRE DOUNIA GOSCINIAK — Styles globaux — Mobile-first
   Palette : « patio ensoleillé » — blanc cassé, sable, anthracite (aucun vert, aucun brun)
   ============================================================ */

/* ---- Polices hébergées (aucun appel à Google) ----
   Deux polices variables, sous-ensemble latin (français complet).
   Manrope (400, 500, 600) : tous les textes. Cormorant Garamond : logo, titres en capitales, couverture de l'accueil. */
@font-face {
  font-family: 'Tinos';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Tinos-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tinos';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Tinos-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tinos';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/Tinos-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/CormorantGaramond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/Manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  /* Palette principale */
  --color-accent:    #2E2A26; /* anthracite : liens, logo à l'état défilé */
  --color-sand:          #E4CDB3; /* pied de page, bandeau final, boutons pleins */
  --color-sand-dark:     #D9C3A8; /* survol des boutons pleins */
  --color-gold:          #2E2A26; /* petits accents */
  --color-bg:            #FFFFFF; /* blanc */
  --color-bg-secondary:  #FFFFFF; /* blanc */
  --color-text:          #2E2A26;
  --color-text-light:    #5C5148;
  --color-white:         #FFFFFF;
  --color-border:        #1F1D1B; /* filets (anthracite foncé, plus de beige) */
  --color-placeholder:   #EBDDCB;

  /* Aliases rétro-compatibles avec les styles inline existants */
  --bg:       var(--color-bg);
  --primary:  var(--color-accent);
  --accent:   var(--color-gold);
  --text:     var(--color-text);
  --text-sec: var(--color-text-light);
  --white:    #FFFDFA; /* blanc chaud des encadrés */
  --placeholder: var(--color-placeholder);
  --border:   var(--color-border);

  /* Typo */
  --font-h: 'Tinos', 'Times New Roman', Times, serif; /* titres de sections, en capitales */
  --font-serif: 'Cormorant Garamond', Georgia, serif; /* logo, couverture de l'accueil, titres des bandeaux photo */
  --font-b: 'Tinos', 'Times New Roman', Times, serif; /* tous les textes */
  --font-m: 'Manrope', system-ui, sans-serif;     /* en-tête et couverture de l'accueil uniquement */

  /* Graisses : 2 par police, pas plus */
  --fw-regular: 400;
  --fw-medium:  400; /* Tinos : 2 graisses seulement (400 et 700) */
  --fw-semibold: 400;
  --fw-bold:    700;

  /* Tailles de texte */
  --fs-text:  1.125rem; /* 18 px */
  --fs-small: 1.0625rem; /* 17 px : dates, mentions, légendes */

  /* Petites étiquettes en majuscules espacées : un seul style sur tout le site */
  --label-size:    0.8125rem; /* 13 px */
  --label-weight:  var(--fw-semibold);
  --label-spacing: 0.14em;
  --label-color:   var(--color-text-light);       /* fond clair */
  --label-color-on-dark: #FFFFFF;           /* fond sombre */

  /* Texte d'introduction sous un titre principal : un seul style sur tout le site */
  --intro-size:   1.125rem;
  --intro-weight: var(--fw-medium);
  --intro-line:   1.6;

  /* Titres d'encadrés (h3 des cartes) : une seule taille */
  --title-card-size: 1.125rem;

  /* Layout */
  --max:       1200px;
  --nav-h:     72px;
  --radius:    2px;
  --shadow:    0 4px 32px rgba(0, 0, 0, 0.07);
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; } /* chiffres alignés partout (B2B, dates…) */

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-b);
  font-size: var(--fs-text);
  font-weight: var(--fw-medium);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---- Typographie ---- */
h1, h2, h3 {
  font-family: var(--font-h);
  font-weight: var(--fw-medium);
  line-height: 1.25;
  color: var(--color-text);
  text-wrap: balance;
}

/* Titres de pages et de sections : capitales Cormorant Garamond, espacement large comme le logo */
h1, h2 {
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.2; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
/* Sous-titres et titres d'encadrés : Manrope */
h3 {
  font-family: var(--font-b);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: var(--fw-semibold);
  letter-spacing: 0;
  line-height: 1.35;
}
/* Étiquette (majuscules espacées) — seule la couleur change selon le fond */
.label,
.footer__title,
.section__tag,
.page-hero__tag,
.spec-hero__tag,
.spec-card__tag,
.hero__label,
.nav__logo-text small,
.contact-detail-text strong,
.legal-table td::before {
  font-family: var(--font-b);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  letter-spacing: var(--label-spacing);
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--label-color);
}

/* Variante de couleur de l'étiquette (texte sombre) */
.label--text { color: var(--color-text); }

/* Texte d'introduction placé sous un titre principal */
.intro,
.page-hero p:not(.page-hero__meta),
.spec-hero__intro {
  font-family: var(--font-b);
  font-size: var(--intro-size);
  font-weight: var(--intro-weight);
  line-height: var(--intro-line);
  color: var(--color-text);
  max-width: 640px;
}

p { color: var(--color-text); margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--color-text); font-weight: var(--fw-bold); }
em { font-style: normal; font-weight: var(--fw-semibold); } /* pas d'italique : la police n'en contient pas */

/* Liens dans le corps du texte : soulignement fin au survol (les autres liens : trait animé, voir « Animations ») */
main p a, main address a {
  text-decoration-line: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
main p a:hover, main address a:hover { text-decoration-line: underline; }

/* ---- Utilitaires ---- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; }
.text-primary { color: var(--color-accent); }

.accent-line {
  display: block;
  width: 40px; height: 2px;
  background: var(--color-gold);
  margin: 1rem 0 1.5rem;
}
.accent-line--center { margin: 1rem auto 1.5rem; }

/* ---- Boutons ---- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: var(--font-b);
  font-size: 0.9375rem;
  font-weight: var(--label-weight);
  letter-spacing: var(--label-spacing);
  border-radius: var(--radius);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}
/* Bouton plein : anthracite, texte blanc (inversion au survol : voir « Animations ») */
.btn--primary {
  background: #1F1D1B;
  color: #FFFFFF;
  border: 1px solid #1F1D1B;
  font-family: var(--font-m);
  cursor: pointer;
}
.btn--primary:focus-visible { outline: 2px solid #1F1D1B; outline-offset: 3px; }
.btn--primary:disabled { opacity: .55; cursor: not-allowed; }
.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}
.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.65);
}
.btn--large { padding: 1rem 2.5rem; }

/* Bouton « long trait » : contour fin, petites majuscules espacées, flèche dans un carré séparé */
.btn-line {
  display: inline-flex;
  align-items: center;
  min-height: 3.25rem;
  padding: 0 0 0 1.75rem;
  border: 1px solid currentColor;
  color: var(--color-accent);
  font-family: var(--font-b);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  letter-spacing: var(--label-spacing);
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn-line__arrow {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  margin-left: 1.75rem;
  border-left: 1px solid currentColor;
}
.btn-line__arrow svg { width: 22px; height: 11px; }
/* Anciens boutons des articles enregistrés (fond clair) */
.article-cta .btn--outline-white { color: var(--color-accent); border-color: var(--color-accent); }

/* ============================================================
   NAVIGATION — logo au centre, liens de part et d'autre
   État de base : fond blanc cassé, texte et logo anthracite
   (pages intérieures, accueil au défilement, menu mobile ouvert).
   Accueil au-dessus de la photo : transparent, blanc.
   ============================================================ */
.nav {
  font-family: var(--font-m);
  font-weight: 400;
  line-height: 1.75;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--color-bg);
  transition: background 0.4s ease;
}

.nav__container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

/* Logo (centré) */
.nav__logo {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
}
.nav__logo-initials { display: none; }
.nav__logo-text {
  font-family: var(--font-serif);
  font-size: 1.568rem; /* +12 % */
  font-weight: 500;
  letter-spacing: 0.15em;
  padding-left: 0.15em; /* compense l'espace ajouté après la dernière lettre */
  text-transform: uppercase;
  color: var(--color-accent);
  line-height: 1.15;
  transition: color 0.4s ease;
}
.nav__logo-text small {
  display: block;
  margin-top: 1px;
  padding-left: 0.2em;
  color: var(--color-accent);
  transition: color 0.4s ease;
}

/* Étiquette du logo : police inchangée */
.nav__logo-text small { font-family: var(--font-m); font-size: 0.84rem; font-weight: 600; letter-spacing: 0.2em; line-height: 1.5; }

/* Liens */
.nav__links { display: none; align-items: center; gap: 0.2rem; }
.nav__links--left { grid-column: 1; justify-self: start; }
.nav__right { grid-column: 3; justify-self: end; display: none; align-items: center; gap: 0.2rem; }
.nav__right .nav__links { display: flex; }
.nav__links a {
  font-family: "Tinos", "Times New Roman", Times, serif;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.75rem;
  color: var(--color-accent);
  transition: color 0.4s ease;
  position: relative;
}

/* Bouton du header : reste plein */
.nav__cta {
  font-family: var(--font-m);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-left: 0.8rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}

/* Bouton du header : anthracite, texte blanc (inversion au survol : voir « Animations ») */
.btn--primary.nav__cta,
.nav__mobile .btn--primary { background: #1F1D1B; border: 1px solid #1F1D1B; color: #FFFFFF; }

/* Burger */
.nav__burger {
  grid-column: 3;
  justify-self: end;
  width: 40px; height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--color-accent);
  transition: all var(--transition);
}
.nav__burger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Accueil, au-dessus de la photo */
.nav--hero:not(.nav--scrolled):not(:has(.nav__burger.active)) {
  background: transparent;
}
.nav--hero:not(.nav--scrolled):not(:has(.nav__burger.active)) .nav__logo-text,
.nav--hero:not(.nav--scrolled):not(:has(.nav__burger.active)) .nav__logo-text small,
.nav--hero:not(.nav--scrolled):not(:has(.nav__burger.active)) .nav__links a { color: #fff; }
.nav--hero:not(.nav--scrolled):not(:has(.nav__burger.active)) .nav__burger span { background: #fff; }
.nav--hero:not(.nav--scrolled):not(:has(.nav__burger.active)) .nav__cta { background: #FFFFFF; border-color: #FFFFFF; color: var(--color-text); }

/* Menu mobile */
.nav__mobile {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.nav__mobile.open { transform: translateX(0); }
.nav__mobile a {
  font-family: "Tinos", "Times New Roman", Times, serif;
  font-size: 1.4375rem;
  font-weight: 400;
  color: var(--color-text);
  padding: 0.4rem 1rem;
}
.nav__mobile .btn { margin-top: 1.5rem; font-family: var(--font-m); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em; color: #FFFFFF; }

@media (max-width: 899px) {
  .nav__container { padding: 0 1rem; }
  .nav__logo-text { font-size: 1.4rem; }
}
@media (min-width: 900px) {
  .nav__links--left { display: flex; }
  .nav__right { display: flex; }
  .nav__burger { display: none; }
}

/* Menu « Compétences » : ordinateur seulement (survol + clavier). Ailleurs, le panneau reste masqué.
   Panneau blanc opaque, pleine largeur, juste sous l'en-tête (et sous son trait) : trois colonnes centrées comme les blocs « Domaines d'intervention »
   de l'accueil (Droit bancaire · Droit des affaires · Droit civil), police du menu (Tinos). Même aspect sur toutes les pages, photo ou non. */
.nav__drop { display: none; }
@media (hover: hover) and (min-width: 1024px) {
  .nav__drop {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid #DEDCD8;
    box-shadow: 0 8px 20px rgba(31, 29, 27, .06);
    opacity: 0;
    visibility: hidden;
    /* fermeture : fondu de .2 s après 300 ms de délai (la souris peut revenir sans que le panneau disparaisse) */
    transition: opacity .2s ease .3s, visibility 0s linear .5s;
  }
  .nav__item--drop:hover .nav__drop,
  .nav__item--drop:focus-within .nav__drop {
    opacity: 1;
    visibility: visible;
    transition: opacity .2s ease, visibility 0s;
  }
  .nav__item--drop.is-closed .nav__drop {
    opacity: 0; visibility: hidden; transition: none;
  }
  /* zone invisible sous le lien : la souris rejoint le panneau sans espace ni fermeture */
  .nav__item--drop > a::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 30px; }
  .nav__drop-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, max-content));
    justify-content: center;
    align-items: start;
    column-gap: 40px;
    padding: 18px 2rem 20px;
  }
  .nav__drop-title {
    margin: 0 0 10px;
    font-family: "Tinos", "Times New Roman", Times, serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    line-height: 1.4;
    text-transform: uppercase;
    color: #5A554F;
  }
  .nav__drop ul { list-style: none; margin: 0; padding: 0; }
  .nav .nav__links .nav__drop a,
  .nav .nav__links .nav__drop a:hover,
  .nav .nav__links .nav__drop a:focus-visible,
  .nav--hero:not(.nav--scrolled):not(:has(.nav__burger.active)) .nav__links .nav__drop a,
  .nav--banner:not(.nav--scrolled):not(:has(.nav__burger.active)) .nav__links .nav__drop a {
    display: block;
    font-family: "Tinos", "Times New Roman", Times, serif;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    line-height: 1.35;
    color: #1F1D1B;
    padding: 3px 0;
    border: 0;
    background-image: none;
  }
  .nav .nav__links .nav__drop a[aria-current="page"] { font-weight: 700; }
  .nav__drop a span {
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size .35s ease;
    box-decoration-break: clone; -webkit-box-decoration-break: clone;
  }
  .nav__drop a:hover span, .nav__drop a:focus-visible span { background-size: 100% 1px; }
}
/* Écrans assez larges : chaque domaine tient sur une seule ligne (panneau plus bas) ; en dessous, les libellés longs passent à la ligne */
@media (hover: hover) and (min-width: 1200px) {
  .nav__drop a { white-space: nowrap; }
  .nav__drop-inner { column-gap: 64px; }
}

/* ============================================================
   HERO — photo pleine largeur et pleine hauteur d'écran
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--color-bg-secondary);
  font-family: var(--font-m);
  font-weight: 400;
  line-height: 1.75;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% center;
}

/* Voile : dégradé qui part du bas, derrière le bloc de texte */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.34) 62%, rgba(0,0,0,.1) 92%),
    rgba(0,0,0,.06);
}

/* Bloc de texte calé en bas : le bas du bouton est à 23 % de la hauteur de la couverture (19 % sur téléphone) ;
   48 px minimum sous l'en-tête, rien ne se chevauche sur les écrans peu hauts */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 48px) 1.5rem 20svh;
  width: 100%;
}
@media (min-width: 1024px) { .hero__content { padding-bottom: 23.3svh; } }

.hero .hero__label { color: #fff; display: block; margin-bottom: 22px; font-family: var(--font-m); font-size: 0.65625rem; font-weight: 500; letter-spacing: 0.2em; line-height: 1.5; }
@media (min-width: 1024px) { .hero .hero__label { font-size: 0.875rem; } }

.hero h1,
.hero__title {
  font-family: var(--font-serif);
  /* Téléphone : environ 31 px, retour à la ligne naturel */
  font-size: 1.9375rem;
  font-weight: var(--fw-regular);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 26px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}
.hero__line { display: inline; }
/* Ordinateur : 2 lignes, 62 px à 1440 px (la ligne la plus longue tient dans la largeur de l'en-tête) de large, réduit proportionnellement en dessous */
@media (min-width: 1024px) {
  .hero h1, .hero__title { font-size: min(3.875rem, calc((100vw - 3rem) / 20)); line-height: 1.12; letter-spacing: 0.01em; }
  .hero__line { display: block; white-space: nowrap; }
}

.hero .hero__body {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5;
  max-width: 640px;
  color: #fff;
  margin-bottom: 34px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}
@media (min-width: 1024px) { .hero .hero__body { font-size: 1.3125rem; } }

.hero .btn-line { color: #fff; font-family: var(--font-m); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.28em; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 5rem 0; }
.section--lg { padding: 7rem 0; }

/* Bandeau d'appel à l'action : travertin clair */
.section--cta { background: var(--color-sand); }

.section--cream { background: var(--color-bg-secondary); }

/* Filets fins entre les sections (grille d'architecte) */
main > section + section { border-top: 1px solid var(--color-border); }

.section__header { margin-bottom: 3.5rem; }
.section__tag {
  display: block;
  margin-bottom: 0.75rem;
}

/* ---- Piliers ---- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  border: 1px solid var(--color-border);
}
.pillar {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--color-border);
  transition: background var(--transition);
}
.pillar:last-child { border-right: none; }
.pillar:hover { background: rgba(46,42,38,0.04); }
.pillar__number {
  font-family: var(--font-b);
  font-size: 3rem;
  font-weight: var(--fw-regular);
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.55;
}
.pillar h3 { margin-bottom: 0.75rem; font-size: var(--title-card-size); }
.pillar p { font-size: var(--fs-text); margin: 0; }

/* ---- Liste des domaines : deux colonnes (5 + 4) lues de haut en bas, un filet fin (::before) sous chaque ligne ---- */
#domaines-title { font-weight: var(--fw-regular); }
.domains__col { display: contents; }
.domains {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .domains {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(5, auto); /* 9 domaines : 5 + 4, filets alignés d'une colonne à l'autre */
    grid-auto-flow: column;
    column-gap: 5rem;
  }
}
.domain-card {
  display: block;
  padding: 1.75rem 0.5rem calc(1.75rem + 1px) 0; /* +1 px : l'ancien filet bas est maintenant un ::before */
  text-align: left;
  text-decoration: none;
  position: relative;
}
.domain-card h3 {
  font-family: var(--font-b);
  font-size: 1.1875rem; /* 19 px */
  line-height: 1.4;
  font-weight: var(--fw-medium);
}

/* ---- CTA section ---- */
.cta-section { text-align: center; padding-block: 6rem; }
.cta-section h2 { margin-bottom: 1rem; padding-left: 0.15em; }
.cta-section p { max-width: 480px; margin: 0 auto 2rem; }

/* ---- Deux colonnes ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.two-col--reverse .two-col__visual { order: -1; }

@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .two-col > * { padding: 0 2.5rem; }
  .two-col > :first-child { padding-left: 0; }
  .two-col > :last-child { padding-right: 0; }
  .two-col > * + * { border-left: 1px solid var(--color-border); }
  .two-col--reverse .two-col__visual { order: 0; }
}

/* Page Le Cabinet : le texte de présentation ouvre la page, sous le header fixe */
.section.bio-section { padding-top: calc(var(--nav-h) + 4rem); }

/* Page Le Cabinet : nom en tête du texte de présentation (≈ 2/3 de l'ancien titre) */
/* Nom en tête du texte : même police que le logo, capitales espacées */
.bio-name {
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: var(--fw-medium);
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
}

/* ---- Page Le Cabinet : « L'approche du cabinet », trois blocs séparés par un filet fin ---- */
.approach { max-width: 760px; margin: 0 auto; }
.approach__block { padding: 2.5rem 0; border-top: 1px solid var(--color-border); }
.approach__block:first-child { border-top: none; padding-top: 0; }
.approach__block:last-child { padding-bottom: 0; }
.approach__title {
  font-family: var(--font-h);
  font-size: 1.2rem;
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
}
.approach__quote {
  margin: 1.75rem 0 0 1.5rem;
  padding-left: 1.5rem;
  position: relative;
  font-style: italic;
  color: var(--color-text);
}
/* Trait vertical de la citation (pseudo-élément pour pouvoir le tracer) */
.approach__quote::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  background: #1F1D1B; transform-origin: top;
  transition: transform 1s cubic-bezier(.65,0,.25,1);
}
.approach__quote-text {
  display: block;
  transition: opacity .9s cubic-bezier(.2,.7,.2,1) .55s, transform .9s cubic-bezier(.2,.7,.2,1) .55s;
}

/* ---- Compétences grille ---- */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.spec-card {
  display: block;
  padding: 2rem;
  border: 1px solid var(--color-border);
  background: var(--white);
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  border-radius: var(--radius);
}
.spec-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.spec-card__tag {
  display: block;
  margin-bottom: 0.75rem;
}
.spec-card h3 {
  font-size: var(--title-card-size);
  margin-bottom: 0.75rem;
}
.spec-card p { font-size: var(--fs-text); margin: 0 0 1.25rem; }
.spec-card__link {
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.spec-card:hover .spec-card__link { color: var(--color-gold); }

@media (min-width: 640px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .spec-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Honoraires ---- */
.fees {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
.fee-card {
  padding: 2.5rem 2rem;
  background: var(--white);
  border-left: 3px solid var(--color-gold);
  border-radius: var(--radius);
}
.fee-card__num {
  font-family: var(--font-b);
  font-size: 2.5rem;
  font-weight: var(--fw-medium);
  color: var(--color-gold);
  display: block;
  line-height: 1;
  margin-bottom: 1rem;
}
.fee-card h3 { font-size: var(--title-card-size); margin-bottom: 0.75rem; }
.fee-card p { font-size: var(--fs-text); margin: 0; }

@media (min-width: 768px) {
  .fees { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Blog / Articles ----
   Une seule police sur ces pages : Tinos (celle du menu). Seul le logo GOSCINIAK / AVOCAT garde ses polices (Cormorant Garamond et Manrope).
   Une seule photo de fond pour tous les articles (assets/fond-articles*). Couleurs : blanc, anthracite #1F1D1B, gris déjà utilisés. */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 2rem;
}
@media (min-width: 768px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Page Actualités : petit titre et phrase centrés */
.page-hero--center { text-align: center; }
.page-hero--center p:not(.page-hero__meta) { margin: 0 auto; }   /* sans petit titre : pas d'espace en plus au-dessus de la phrase */

/* Encadré anthracite posé sur la photo de fond (cartes et en-tête d'article) : ni trait ni cadre */
.article-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72%;
  max-height: 88%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.25rem 1.35rem;
  background: rgba(31, 29, 27, 0.86);
  color: #FFFFFF;
  font-family: var(--font-b);
  transition: background-color .35s ease;
}
.article-box__cat {
  font-family: var(--font-b);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  padding-left: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
  color: #CFC8BE;
  margin: 0 0 0.75rem;
}
.article-box__title {
  font-family: var(--font-b);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: var(--fw-regular);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
  text-wrap: balance;
  color: #FFFFFF;
  margin: 0;
  overflow-wrap: anywhere;
}
.article-card .article-box__title {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-box__rule {
  display: block;
  width: 36px;
  height: 1px;
  background: #CFC8BE;
  margin: 1rem 0 0.9rem;
}
/* Logo (polices du logo conservées) */
.article-box__logo {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  padding-left: 0.15em;
  text-transform: uppercase;
  line-height: 1.15;
  color: #FFFFFF;
  text-align: center;
}
.article-box__logo small {
  display: block;
  margin-top: 1px;
  padding-left: 0.2em;
  font-family: var(--font-m);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.5;
  color: #FFFFFF;
}

/* Carte d'article (page Actualités) */
.article-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.article-card__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #656565;
}
.article-card__thumb picture,
.article-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
}
.article-card__thumb img { object-fit: cover; }
.article-card__body { padding: 1.25rem 0 0; }
.article-card__meta {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  margin: 0 0 0.6rem;
}
.article-card__extract {
  font-size: var(--fs-text);
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__more {
  font-family: var(--font-b);
  font-size: var(--label-size);
  letter-spacing: var(--label-spacing);
  text-transform: uppercase;
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.article-card:focus-visible { outline: 2px solid #1F1D1B; outline-offset: 4px; }
.article-card:focus-visible .article-box { background: rgba(31, 29, 27, 0.95); }
@media (hover: hover) {
  .article-card:hover .article-box { background: rgba(31, 29, 27, 0.95); }   /* l'encadré fonce légèrement */
}

/* ---- Page d'un article ---- */
/* En-tête : la photo reste en place (sticky), le corps blanc remonte par-dessus */
.article-cover {
  position: sticky;
  top: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(420px, 78vh, 640px);
  padding-top: var(--nav-h);
  background: #656565;
  overflow: hidden;
}
.article-cover picture,
.article-cover__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.article-cover__img { object-fit: cover; }
.article-box--hero {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: min(760px, 78%);
  max-height: none;
  padding: 3rem 2.5rem 2.5rem;
}
.article-box--hero .article-box__cat { font-size: 0.8125rem; margin-bottom: 1rem; }
.article-box--hero .article-box__title { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.article-box--hero .article-box__rule { margin: 1.5rem 0 1.25rem; }
.article-box--hero .article-box__logo { font-size: 1.35rem; }
.article-box--hero .article-box__logo small { font-size: 0.7rem; }
@media (max-width: 767px) {
  .article-cover {
    height: auto;
    min-height: 0;
    padding: calc(var(--nav-h) + 2.5rem) 1.25rem 3rem;
  }
  .article-box--hero { width: 100%; padding: 2rem 1.25rem 1.75rem; }
}

.article-sheet { position: relative; z-index: 1; background: #FFFFFF; }
.article-layout {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.article-main { max-width: 680px; margin: 0 auto; }
.article-toc--side { display: none; }
@media (min-width: 1024px) {
  .article-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 680px);
    justify-content: center;
    max-width: none;
    padding: 4rem 2rem 5rem;
  }
  .article-layout--solo { grid-template-columns: minmax(0, 680px); }
  .article-toc--side {
    display: block;
    position: sticky;
    top: calc(var(--nav-h) + 24px);
    align-self: start;
    padding-right: 2.25rem;
  }
  .article-toc--fold { display: none; }
  .article-main { max-width: none; margin: 0; padding-left: 3rem; border-left: 1px solid rgba(31, 29, 27, .18); }   /* trait vertical gris clair */
  .article-layout--solo .article-main { padding-left: 0; border-left: 0; }
}

/* Sommaire : à gauche sur ordinateur, bloc repliable sur tablette et téléphone */
.article-toc__title,
.article-toc summary {
  font-family: var(--font-b);
  font-size: var(--label-size);
  letter-spacing: var(--label-spacing);
  text-transform: uppercase;
  color: var(--color-text-light);
}
.article-toc__title { margin: 0 0 1rem; }
.article-toc ul { list-style: none; }
.article-toc li { margin-bottom: 0.7rem; }
.article-toc a {
  font-family: var(--font-b);
  font-size: var(--fs-small);
  line-height: 1.4;
  color: var(--color-text-light);
}
.article-toc a[aria-current="true"] { color: #1F1D1B; font-weight: var(--fw-bold); }   /* partie en cours de lecture */
@media (hover: hover) {
  .article-toc a:hover { color: #1F1D1B; }
}
.article-toc--fold { background: #F4F4F3; padding: 1rem 1.25rem; margin-bottom: 2rem; }
.article-toc--fold summary { cursor: pointer; list-style-position: inside; }
.article-toc--fold[open] summary { margin-bottom: 1rem; }
.article-toc--fold li:last-child { margin-bottom: 0; }

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-text);
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

/* Signature */
.article-byline { display: flex; align-items: center; gap: 1rem; margin: 0 0 2.25rem; }
.article-byline img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.article-byline__text { display: flex; flex-direction: column; gap: 0.15rem; margin: 0; }
.article-byline__name { font-size: var(--fs-text); line-height: 1.35; color: var(--color-text); }
.article-byline__meta { font-size: var(--fs-small); color: var(--color-text-light); }

/* Texte de l'article (la page 404 et les anciens articles utilisent aussi .article-hero / .article-body) */
.article-hero {
  padding: calc(var(--nav-h) + 4rem) 0 3rem;
}
.article-hero h1 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}
.article-main .article-body { max-width: none; margin: 0; padding: 0; }
.article-body h2 {
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
  margin: 3rem 0 1rem;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.article-body h3 { font-size: 1.25rem; font-weight: var(--fw-bold); margin: 2rem 0 0.75rem; }
.article-body p { margin-bottom: 1.25rem; }
.article-body .article-lead { font-size: 1.25rem; line-height: 1.55; }   /* chapeau */
@media (min-width: 768px) {
  .article-body h2 { font-size: 1.75rem; margin-top: 3.5rem; }
  .article-body .article-lead { font-size: 1.375rem; }
}
.article-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.article-body ul li {
  color: var(--color-text);
  margin-bottom: 0.4rem;
  font-size: var(--fs-text);
}
/* Listes numérotées : grand chiffre à gauche du texte */
.article-body ol {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  counter-reset: etape;
}
.article-body ol > li {
  position: relative;
  counter-increment: etape;
  min-height: 2.25rem;
  padding-left: 3.5rem;
  margin-bottom: 1.1rem;
  color: var(--color-text);
  font-size: var(--fs-text);
}
.article-body ol > li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: -0.2rem;
  font-family: var(--font-b);
  font-size: 2.5rem;
  line-height: 1;
  color: #1F1D1B;
}
.article-body strong { font-weight: var(--fw-bold); }
.article-body a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.article-body .article-cta {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
}
.article-body .article-cta p { margin-bottom: 1rem; }
.article-cta .btn--outline-white { color: var(--color-accent); border-color: var(--color-accent); }

/* Encadré (lignes qui commencent par >) : fond gris très clair, trait anthracite de 2 px à gauche */
.article-aside {
  background: #F4F4F3;
  border-left: 2px solid #1F1D1B;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.article-aside > p,
.article-aside > ul,
.article-aside > ol { margin-bottom: 1rem; }
.article-aside > :last-child { margin-bottom: 0; }
.article-body .article-aside__label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}
@media (max-width: 767px) {
  .article-aside { padding: 1.25rem 1.25rem; margin: 1.5rem 0; }
}

/* Encart de contact au milieu de l'article (avant le 4e intertitre) */
.article-contact {
  background: #1F1D1B;
  padding: 2.5rem 1.75rem;
  margin: 3rem 0;
  text-align: center;
}
.article-body .article-contact__title {
  font-family: var(--font-b);
  font-size: 1.5rem;
  line-height: 1.3;
  color: #FFFFFF;
  margin: 0 0 0.6rem;
}
.article-body .article-contact__text { color: #FFFFFF; max-width: 34rem; margin: 0 auto 1.5rem; }
.article-body .article-contact__btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: #FFFFFF;
  border: 1px solid #FFFFFF;
  color: #1F1D1B;
  font-family: var(--font-b);
  font-size: 0.9375rem;
  letter-spacing: var(--label-spacing);
  text-decoration: none;
  transition: background-color .3s ease, color .3s ease;
}
.article-body .article-contact__btn:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }
@media (hover: hover) {
  .article-body .article-contact__btn:hover { background: transparent; color: #FFFFFF; }
}
@media (prefers-reduced-motion: reduce) {
  .article-box, .article-body .article-contact__btn { transition: none; }
}

/* ---- Formulaire contact ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
@media (min-width: 768px) {
  .contact-layout { grid-template-columns: 5fr 4fr; gap: 0; }
  .contact-layout > :first-child { padding-right: 3rem; }
  .contact-layout > :last-child { padding-left: 3rem; border-left: 1px solid var(--color-border); }
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 1.0625rem; /* 17 px */
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}
.form-group label .req { color: var(--color-accent); margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-b);
  font-size: 1.0625rem; /* 17 px */
  font-weight: 400;
  color: var(--color-text);
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--color-accent); }
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: #C0392B; }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B6B6B' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-error {
  font-size: var(--fs-small);
  color: #C0392B;
  margin-top: 0.35rem;
  display: none;
}
.form-error.visible { display: block; }
.form-success {
  display: none;
  padding: 1.5rem;
  background: rgba(228,205,179,0.35);
  border: 1px solid #1F1D1B;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 1.5rem;
}
.form-success.visible { display: block; }
.form-success h3 { font-size: var(--title-card-size); color: var(--color-accent); margin-bottom: 0.5rem; }
.form-success p { font-size: var(--fs-text); margin: 0; }

.form-error-msg {
  display: none;
  padding: 1.5rem;
  background: rgba(180,30,30,0.06);
  border: 1px solid #c0392b;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 1.5rem;
}
.form-error-msg.visible { display: block; }
.form-error-msg h3 { font-size: var(--title-card-size); color: #c0392b; margin-bottom: 0.5rem; }
.form-error-msg p { font-size: var(--fs-text); margin: 0; }
.form-error-msg a { color: #c0392b; }

.contact-info address { font-style: normal; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-detail:first-child { border-top: 1px solid var(--color-border); }
.contact-detail svg { width: 18px; height: 18px; color: var(--color-accent); flex-shrink: 0; margin-top: 3px; }
.contact-detail-text strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}
.contact-detail-text p { font-size: var(--fs-text); margin: 0; }

/* ---- Sous-pages compétences ---- */
.spec-hero {
  padding: calc(var(--nav-h) + 4rem) 0 0;
}
.spec-hero__tag {
  display: block;
  margin-bottom: 1rem;
}
.spec-hero h1 { max-width: 700px; }
.spec-hero__intro { margin-top: 1.5rem; }
.spec-body { padding: 40px 0 0; }
.spec-body h2 {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}
.spec-body h3 { font-size: var(--title-card-size); margin: 1.75rem 0 0.6rem; }
.spec-body p { margin-bottom: 1rem; font-size: var(--fs-text); }

.spec-list { margin: 0 0 1rem 1.25rem; padding: 0; list-style: disc; font-size: var(--fs-text); }
.spec-list li { margin-bottom: 0.5rem; }

/* ---- Sous-pages Compétences : chapô, filet, sommaire à gauche, sections, encadrés, bandeau ---- */
/* Chapô, juste sous le titre */
.spec-hero__intro {
  margin-top: 28px;
  max-width: 42rem;
  font-size: 21px;
  line-height: 1.65;
}
/* Filet sur toute la largeur du conteneur */
.spec-rule { margin-top: 56px; height: 1px; background: #1F1D1B; }
.spec-hero + .spec-body { border-top: 0; }

/* Deux colonnes : sommaire (gauche) et texte (droite) */
.spec-layout { display: block; }
.spec-text { max-width: 720px; }

/* Sommaire */
.spec-toc {
  background: #F4F4F4;
  padding: 18px 20px 6px;
  margin-bottom: 36px;
}
.spec-toc__label {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
  color: #5A554F;
}
.spec-toc ul { list-style: none; margin: 0; padding: 0; }
.spec-toc li { border-top: 1px solid #D9D6D0; }
.spec-toc li:last-child { border-bottom: 1px solid #D9D6D0; }
.spec-toc a {
  display: block;
  padding: 14px 0 16px;
  font-family: var(--font-b);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.35;
  color: #1F1D1B;
}

/* Sections */
.spec-section { scroll-margin-top: calc(var(--nav-h) + 24px); padding: 32px 0 56px; border-top: 1px solid #1F1D1B; }
.spec-section:first-child { padding-top: 0; border-top: 0; }
.spec-section > * + * { margin-top: 24px; }
.spec-section h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0;
}
.spec-section p { margin-bottom: 0; }
.spec-section ul.spec-list { margin: 0 0 0 1.25rem; }
.spec-section h2 + ul.spec-list { margin-top: 24px; }

/* Liste numérotée (« Quatre points… ») */
.spec-steps { list-style: none; counter-reset: etape; margin: 0; padding: 0; }
.spec-steps li { counter-increment: etape; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); padding: 14px 0 16px; border-top: 1px solid #D9D6D0; }
.spec-steps li:last-child { border-bottom: 1px solid #D9D6D0; }
.spec-steps li::before {
  content: counter(etape);
  font-family: var(--font-m);
  font-size: 12px;
  line-height: 2.2;
  color: #5A554F;
}

/* Encadrés (anciens paragraphes en italique) */
.spec-aside { background: #F4F4F4; padding: 20px; }
.spec-aside__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
  color: #5A554F;
}
.spec-aside p { font-size: 16.5px; line-height: 1.65; font-style: normal; }

/* Types d'escroqueries : liste sur deux colonnes */
.spec-types { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; column-gap: 36px; }
.spec-types li { padding: 14px 0 16px; border-top: 1px solid #D9D6D0; }
.spec-types strong { display: block; font-size: 16.5px; line-height: 1.4; }
.spec-types span { display: block; margin-top: 4px; font-size: 15.5px; line-height: 1.5; color: #3A3734; }

/* Bandeau « Le cabinet intervient notamment pour » (4 pages) : pleine largeur, photo en noir et blanc */
.spec-band { position: relative; overflow: hidden; background: #1F1D1B; }
.spec-band + .section--cta { border-top: 0; }
.spec-band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.spec-band::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); pointer-events: none; }
.spec-band__inner { position: relative; z-index: 2; padding-block: 56px 64px; }
.spec-band h2 {
  max-width: 680px;
  margin: 0 0 44px;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  color: #FFFFFF;
}
.spec-band ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0 44px; }
.spec-band li { position: relative; }
.spec-band li::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255, 255, 255, .7); transform-origin: left center; }
.spec-band li { padding: 22px 0 8px; }
.spec-band__txt {
  display: inline;
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1.25;
  color: #FFFFFF;
}

@media (min-width: 1024px) {
  .spec-layout { display: grid; grid-template-columns: 280px minmax(0, 720px); column-gap: 64px; align-items: start; }
  .spec-toc {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
    background: none;
    padding: 0;
    margin-bottom: 0;
  }
  .spec-toc a { color: #5A554F; transition: color .25s ease; }
  .spec-toc li:has(a[aria-current="true"]) { border-top-color: #1F1D1B; }
  .spec-toc a:hover, .spec-toc a:focus-visible { color: #1F1D1B; }
  .spec-toc a[aria-current="true"] { color: #1F1D1B; font-weight: 700; }
  .spec-section h2 { font-size: 34px; }
  .spec-aside { padding: 24px 28px; }
  .spec-types { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .spec-band__inner { padding-block: 88px 96px; }
  .spec-band h2 { font-size: 42px; }
  .spec-band ul { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (max-width: 1023px) {
  .spec-hero__intro { font-size: 18.5px; line-height: 1.6; }
  .spec-rule { margin-top: 36px; }
  .spec-types { grid-template-columns: 1fr; }
}

/* Bandeau « Questions fréquentes » (page Honoraires) : même bandeau, voile plus sombre, une colonne de 800 px */
.spec-band--faq::after { background: rgba(0, 0, 0, .6); }
.spec-band--faq ul { display: block; max-width: 800px; }
.spec-band--faq li { padding: 24px 0 28px; }
.spec-band--faq .spec-band__txt { display: block; font-family: var(--font-b); font-size: 17px; line-height: 1.6; color: #E8E5E0; }
.spec-band--faq .spec-band__q { margin: 0 0 10px; font-family: var(--font-serif); font-size: 24px; font-weight: 500; line-height: 1.25; color: #FFFFFF; }
.spec-band--faq .spec-band__a { margin: 0; color: #E8E5E0; }

/* Résumé sous chaque domaine (page Compétences) */
.domain-card__sum { display: block; margin-top: 0.5rem; font-size: 16px; line-height: 1.5; color: #5A554F; }

/* ---- Bandeau photo en haut des sous-pages Compétences (composant .banner) ---- */
.banner.banner--spec {
  height: auto;
  min-height: 320px;
  align-items: flex-end;
  justify-content: flex-start;
}
.banner--spec .banner__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: calc(var(--nav-h) + 40px) 40px;
}
.banner--spec .breadcrumb { padding: 0 0 .9rem; color: #E8E5E0; }
.banner--spec .breadcrumb a { color: #E8E5E0; }
.banner--spec .breadcrumb .container { padding: 0; max-width: none; }
.banner--spec .spec-hero__tag { color: #E8E5E0; margin-bottom: .75rem; }
.banner--spec h1 {
  max-width: none;
  color: #fff;
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  letter-spacing: .02em;
  line-height: 1.15;
}
.banner--spec .banner__loc { display: block; margin-top: .6rem; color: #E8E5E0; font-size: .6em; line-height: 1.3; }
/* Chapô sous le bandeau, sur fond clair */
.banner + .spec-hero { padding-top: 48px; }
.banner + .spec-hero .spec-hero__intro { margin-top: 0; }
@media (max-width: 1023px) {
  .banner.banner--spec { min-height: 220px; }
  .banner--spec .banner__inner { padding-block: calc(var(--nav-h) + 24px) 28px; }
  .banner + .spec-hero { padding-top: 32px; }
}

/* ---- Hero pages internes ---- */
.page-hero {
  padding: calc(var(--nav-h) + 3rem) 0 3.5rem;
}
.page-hero__tag {
  display: block;
  margin-bottom: 0.75rem;
}
.page-hero h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.page-hero p { margin-top: 1rem; }
.page-hero__meta { font-size: var(--fs-text); }

/* Fil d'Ariane */
.breadcrumb {
  padding: calc(var(--nav-h) + 1rem) 0 0;
  font-size: var(--fs-small);
  color: var(--color-text-light);
}
.breadcrumb a { color: var(--color-text-light); }

/* ============================================================
   FOOTER — blanc cassé
   ============================================================ */
.footer {
  background: var(--color-bg);
  color: var(--color-text);
  border-top: 1px solid #1F1D1B;
  padding: 5rem 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 4rem;
}
.footer__brand .footer__logo {
  font-family: var(--font-b);
  font-size: 2rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  display: block;
}
.footer__brand p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
}
.footer__brand a { color: var(--color-text); }

.footer { font-size: 1rem; font-weight: var(--fw-medium); } /* pied de page : 16 px */
.footer__col .footer__title { margin-bottom: 1.25rem; color: var(--color-text); }
.footer__col ul li { margin-bottom: 0.6rem; }
.footer__col a {
  font-size: 1rem;
  color: var(--color-text);
}
.footer__col p,
.footer address p { color: var(--color-text); }
.footer address a { color: var(--color-text); }

.footer__bottom {
  border-top: 1px solid #1F1D1B;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer__bottom p { font-size: var(--fs-small); color: var(--color-text-light); margin: 0; }

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 0; }
  .footer__grid > * { padding: 0 2rem; }
  .footer__grid > :first-child { padding-left: 0; }
  .footer__grid > :last-child { padding-right: 0; }
  .footer__grid > * + * { border-left: 1px solid #1F1D1B; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
  :root { --fs-text: 1.0625rem; --fs-small: 1rem; } /* 17 px */
  .section { padding: 3.5rem 0; }
  .section--lg { padding: 4.5rem 0; }
  .pillar { border-right: none; border-bottom: 1px solid var(--color-border); }
  .pillars { border: none; gap: 0; }
  .two-col--reverse .two-col__visual { order: 0; }
}

@media print {
  .nav, .footer, .nav__mobile { display: none; }
  body { font-size: 12pt; }
}

/* ---- Pages légales ---- */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 1.25rem; margin: 2.5rem 0 1rem; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin-bottom: 1.1rem; }
.legal ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.legal ul li { margin-bottom: 0.5rem; color: var(--color-text); font-size: var(--fs-text); }
.legal a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.legal-table { margin: 1.5rem 0; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: var(--fs-text); background: var(--white); }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 0.85rem 1rem; border: 1px solid var(--color-border); }
.legal-table th { background: var(--color-bg-secondary); color: var(--color-accent); font-weight: var(--fw-medium); }
@media (max-width: 640px) {
  .legal-table thead { position: absolute; left: -9999px; }
  .legal-table table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table tr { margin-bottom: 1rem; border: 1px solid var(--color-border); }
  .legal-table td { border: 0; border-bottom: 1px solid var(--color-border); }
  .legal-table td:last-child { border-bottom: 0; }
  .legal-table td::before { content: attr(data-label); display: block; margin-bottom: 0.2rem; }
}

.form-legal { margin-top: 0.9rem; font-size: var(--fs-small); line-height: 1.5; color: var(--color-text-light); }
.form-legal a { color: var(--color-accent); text-decoration: underline; }


/* ---- Le Cabinet : texte de présentation, une seule colonne ---- */
.bio { max-width: 720px; }

/* Portrait : en couleur, sans cadre ni ombre ; au-dessus du texte sous 1024 px, à gauche dès 1024 px */
.bio__photo { display: block; width: 100%; max-width: 420px; height: auto; margin-bottom: 32px; }
@media (min-width: 1024px) {
  main.page-cabinet .bio { max-width: none; display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 720px); column-gap: 64px; align-items: start; }
  .bio__photo { max-width: 400px; margin-bottom: 0; }
}

/* Bloc de texte seul (Le Cabinet, localisation) : largeur de lecture normale, aligné sur la grille */
.text-block { max-width: 760px; }

/* ---- Accueil : domaines sur fond blanc ---- */
.section--white { background: #FFFFFF; }

/* ---- Accueil : domaines en trois familles (classes propres à l'accueil) ----
   Police unique : Tinos (celle du menu). Fond : la photo du bandeau Compétences (assets/banniere-competences-courbes*),
   en triptyque sur ordinateur (un tiers de l'image par bloc), entière (cover) dans chaque bloc sur téléphone et tablette ;
   voile anthracite léger ; texte blanc. Survol / focus clavier : voile blanc opaque, texte et traits anthracite, photo qui grossit à peine. */
.familles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.famille {
  position: relative;
  isolation: isolate;           /* la photo et le voile restent derrière le texte, à l'intérieur du bloc */
  overflow: hidden;
  border: 1px solid transparent;   /* transparente : rien ne bouge au survol */
  padding: 30px 24px 32px;
  color: #FFFFFF;
  transition: color .45s ease, border-color .45s ease;
}
.famille::before,
.famille::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.famille::before {              /* photo */
  z-index: -2;
  background: #1F1D1B url('/assets/banniere-competences-courbes.jpg') center / cover no-repeat;
  background-image: image-set(url('/assets/banniere-competences-courbes-1280.webp') type('image/webp'), url('/assets/banniere-competences-courbes.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center;
  transform-origin: center;
  transition: transform 1.2s ease;
}
.famille::after {               /* voile : anthracite léger, blanc opaque au survol */
  z-index: -1;
  background: rgba(31, 29, 27, .35);
  transition: background-color .45s ease;
}
/* Survol (souris) ou focus clavier sur un lien : seul ce bloc passe en blanc ; les autres restent sur la photo.
   Ordinateur seulement : sur téléphone et tablette, les blocs restent sur la photo (pas d'effet au toucher). */
@media (hover: hover) {
  .famille:hover, .famille:focus-within { color: #1F1D1B; border-color: #1F1D1B; }
  .famille:hover::after, .famille:focus-within::after { background-color: #FFFFFF; }
  .famille:hover::before, .famille:focus-within::before { transform: scale(1.04); }
  .famille:hover li + li, .famille:focus-within li + li { border-top-color: rgba(31, 29, 27, .18); }
}
@media (prefers-reduced-motion: reduce) {
  .famille, .famille::before, .famille::after, .famille li + li { transition: none; }
  .famille:hover::before, .famille:focus-within::before { transform: none; }   /* pas de grossissement */
}
.famille h3 {
  font-family: var(--font-b);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: inherit;
  margin: 0 0 26px;
  padding-bottom: 18px;
  position: relative;
}
.famille h3::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
}
.famille ul { list-style: none; margin: 0; padding: 0; }
.famille li { padding: 14px 0; }
.famille li + li { border-top: 1px solid rgba(255, 255, 255, .28); transition: border-color .45s ease; }
.famille li:first-child { padding-top: 0; }
.famille li:last-child { padding-bottom: 0; }
.famille a {
  font-family: var(--font-b);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.3;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s ease;
}
.famille a:focus-visible { background-size: 100% 1px; }
@media (hover: hover) { .famille a:hover { background-size: 100% 1px; } }
@media (min-width: 1024px) {
  .familles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .famille { padding: 44px 40px 48px; min-height: 460px; }
  .famille li { padding: 16px 0; }
  .famille a { font-size: 22px; }
  /* triptyque : chaque bloc montre un tiers de l'image */
  .famille::before {
    background-image: image-set(url('/assets/banniere-competences-courbes-1920.webp') type('image/webp'), url('/assets/banniere-competences-courbes.jpg') type('image/jpeg'));
    background-size: 300% 100%;
    background-position: 0% 50%;
  }
  .famille:nth-child(2)::before { background-position: 50% 50%; }
  .famille:nth-child(3)::before { background-position: 100% 50%; }
}
/* apparition au défilement : blocs l'un après l'autre, puis trait sous le nom */
html.anim .familles:not(.in) .famille { opacity: 0; }
html.anim .familles:not(.in) .famille h3::after { transform: scaleX(0); }
.familles.in .famille { animation: montee16 .8s cubic-bezier(.2,.65,.2,1) both; animation-delay: calc(var(--b, 0) * 150ms); }
.familles.in .famille h3::after { animation: trace .8s cubic-bezier(.65,0,.35,1) both; animation-delay: calc(var(--b, 0) * 150ms + 300ms); }

/* ---- Bande « Discutons de votre situation » : anthracite ---- */
.section--cta { background: #1F1D1B; }
.section--cta h2,
.section--cta .section__tag { color: #FFFFFF; }
.section--cta p { color: #FFFFFF; }
.section--cta .accent-line { background: #FFFFFF; }
.section--cta .btn-line { color: #FFFFFF; }
.section--cta .btn-line:hover { background: #FFFFFF; border-color: #FFFFFF; color: #1F1D1B; }

/* ============================================================
   BANDEAUX PHOTO — Le Cabinet, Compétences, Honoraires, Actualités, Contact
   ============================================================ */
.banner {
  position: relative;
  height: 380px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1F1D1B;
}
@media (min-width: 1024px) { .banner { height: 480px; } }
@media (max-width: 767px)  { .banner { height: 300px; } }

.banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}
/* Voile anthracite sur toute la photo */
.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(31, 29, 27, 0.40);
  pointer-events: none;
}
.banner__title {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem;
  text-align: center;
  font-family: var(--font-serif);
  font-size: min(3.6rem, calc((100vw - 3rem) / 19.6));
  font-weight: var(--fw-regular);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.12;
  color: #FFFFFF;
}
@media (max-width: 639px) {
  .banner__title { font-size: min(3.6rem, 11vw); letter-spacing: 0.01em; }
}

/* Le texte de la page commence juste sous le bandeau (plus de header à compenser) */
/* Bandeaux Compétences (photo très sombre) : voile à 20 % au lieu de 40 % */
.banner.banner--courbes::after { background: rgba(31, 29, 27, 0.20); }
.banner + .page-hero { padding-top: 3rem; }
.banner + .section.bio-section { padding-top: 4rem; }
.bio-name { line-height: 1.2; }

/* Header sur le bandeau : même comportement qu'à l'accueil, en #FFFFFF */
.nav--banner:not(.nav--scrolled):not(:has(.nav__burger.active)) .nav__logo-text,
.nav--banner:not(.nav--scrolled):not(:has(.nav__burger.active)) .nav__logo-text small,
.nav--banner:not(.nav--scrolled):not(:has(.nav__burger.active)) .nav__links a { color: #FFFFFF; }
.nav--banner:not(.nav--scrolled):not(:has(.nav__burger.active)) .nav__burger span { background: #FFFFFF; }


/* ---- Page Le Cabinet : alignement sur la grille (bord gauche commun, 720 px, texte à gauche) ---- */
.page-cabinet .bio,
.page-cabinet .approach,
.page-cabinet .text-block,
.page-cabinet .section__header { max-width: 720px; margin-left: 0; margin-right: 0; text-align: left; }
.page-cabinet .bio p,
.page-cabinet .approach p,
.page-cabinet .text-block p { text-align: left; }
.page-cabinet .section__header .accent-line { margin-left: 0; }

/* Boutons de la page Le Cabinet : blanc / anthracite (inversion au survol : voir « Animations ») */
.btn--cabinet {
  background: #FFFFFF;
  color: #1F1D1B;
  border: 1px solid #1F1D1B;
}
/* Posés sur fond sombre */
.section--cta .btn--cabinet { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }

/* ============================================================
   ANIMATIONS — bloc unique (script : script.js)
   Seules opacity et transform sont animées (sauf le trait de survol).
   Sans JavaScript, tout est visible : l'état de départ invisible
   ne s'applique que si le script a ajouté la classe « anim » sur <html>.
   ============================================================ */
@keyframes recul    { from { opacity: 0.01; transform: scale(1.06); } }
@keyframes voile    { from { opacity: 0.01; } }
@keyframes montee12 { from { opacity: 0.01; transform: translateY(12px); } }
@keyframes montee16 { from { opacity: 0.01; transform: translateY(16px); } }
@keyframes trace    { from { transform: scaleX(0); } }
@keyframes fondu    { from { opacity: 0.01; } }

/* Opacité de départ 0.01 (et non 0) : Chrome ne compte pas un élément à 0 comme affiché (erreur PageSpeed NO_LCP) */
/* 1. Bandeau photo (pages intérieures) et couverture de l'accueil : fondu et léger recul, joué au chargement, en CSS seul */
.banner__img,
.hero__bg { animation: recul 1.8s cubic-bezier(.2,.65,.2,1) both; }
/* Voile (et assombrissement local) : apparaît avec la photo, même durée et même courbe, jamais seul */
.banner::after { animation: voile 1.8s cubic-bezier(.2,.65,.2,1) both; }
.banner__title { animation: montee12 .9s .45s cubic-bezier(.2,.65,.2,1) both; }
/* Accueil : séquence d'arrivée (photo 0 s, en-tête .1 s, ligne .2 s, puis étiquette, titre, introduction, bouton) */
.hero__label { animation: montee12 .9s .5s cubic-bezier(.2,.65,.2,1) both; }
.hero__title { animation: montee12 .9s .68s cubic-bezier(.2,.65,.2,1) both; }
.hero__body  { animation: montee12 .9s .9s cubic-bezier(.2,.65,.2,1) both; }
.hero .btn-line { animation: montee12 .9s 1.12s cubic-bezier(.2,.65,.2,1) both; }
/* Logo, menu et bouton de l'en-tête : fondu, sur l'accueil seulement */
.nav--hero:not(.nav--banner) .nav__container { animation: fondu .6s .1s ease both; }
/* Sous-pages Compétences : fil d'Ariane, libellé et titre (avec « Avocat à Aix-en-Provence ») apparaissent à l'arrivée */
.banner--spec .breadcrumb,
.banner--spec .spec-hero__tag,
.banner--spec h1 { animation: montee12 .9s .15s cubic-bezier(.2,.65,.2,1) both; }

/* Sous-pages Compétences : le chapô arrive avec l'en-tête, un peu après lui */
.spec-hero__intro { animation: montee12 .9s .3s cubic-bezier(.2,.65,.2,1) both; }

/* 2. Passage d'une page à l'autre : fondu enchaîné (les navigateurs sans cet effet changent de page normalement) */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .35s; animation-timing-function: ease; }

/* 3. Apparition des textes au défilement : fondu et montée (classes posées par le script) */
html.anim .r:not(.in) { opacity: 0.01; }
.r.in { animation: montee16 .7s cubic-bezier(.2,.65,.2,1) backwards; animation-delay: var(--d, 0ms); }

/* 4. Liste des domaines (accueil et Compétences) : filets tracés, puis intitulés et résumés en fondu */
.domain-card::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: #1F1D1B;
  transform-origin: left center;
}
html.anim .domains:not(.in) .domain-card::before { transform: scaleX(0); }
html.anim .domains:not(.in) .domain-card h3,
html.anim .domains:not(.in) .domain-card__sum { opacity: 0; }
.domains.in .domain-card::before { animation: trace .8s cubic-bezier(.65,0,.35,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.domains.in .domain-card h3,
.domains.in .domain-card__sum { animation: fondu .55s ease-out both; animation-delay: calc(var(--i, 0) * 70ms + 380ms); }

/* 4 bis. Bandeau « Le cabinet intervient notamment pour » (4 sous-pages) : même tracé que la liste des domaines */
html.anim .spec-band ul:not(.in) li::before { transform: scaleX(0); }
html.anim .spec-band ul:not(.in) .spec-band__txt { opacity: 0; }
.spec-band ul.in li::before { animation: trace .8s cubic-bezier(.65,0,.35,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.spec-band ul.in .spec-band__txt { animation: fondu .55s ease-out both; animation-delay: calc(var(--i, 0) * 70ms + 380ms); }

/* 5. Survol : trait de 1 px tracé de gauche à droite sous le texte (aucune flèche) */
.nav__links a,
.nav__mobile a:not(.btn),
.breadcrumb a,
.footer a,
.article-back,
.domain-card h3 {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s ease;
}
.nav__links a { background-origin: content-box; } /* le trait reste sous le texte, pas sous les marges du lien */
.domain-card h3 { display: inline; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.nav__links a[aria-current="page"] { background-size: 100% 1px; } /* page en cours : trait fixe */

@media (hover: hover) {
  .nav__links a:hover, .nav__links a:focus-visible,
  .nav__mobile a:not(.btn):hover, .nav__mobile a:not(.btn):focus-visible,
  .breadcrumb a:hover, .breadcrumb a:focus-visible,
  .footer a:hover, .footer a:focus-visible,
  .article-back:hover, .article-back:focus-visible,
  a.domain-card:hover h3, a.domain-card:focus-visible h3 { background-size: 100% 1px; }
}
/* Focus clavier : toujours actif, y compris sur écran tactile */
@media (hover: hover) {

  /* Boutons : le bouton s'inverse en .3 s ; fond plein ⇄ contour de 1 px, taille inchangée */
  /* en-tête et menu mobile : plein anthracite → contour */
  .btn--primary.nav__cta:hover, .btn--primary.nav__cta:focus-visible,
  .nav__mobile .btn--primary:hover, .nav__mobile .btn--primary:focus-visible { background: transparent; border-color: #1F1D1B; color: #1F1D1B; }
  /* en-tête au-dessus d'une photo : plein blanc → contour */
  .nav--hero:not(.nav--scrolled):not(:has(.nav__burger.active)) .nav__cta:hover,
  .nav--hero:not(.nav--scrolled):not(:has(.nav__burger.active)) .nav__cta:focus-visible { background: transparent; border-color: #FFFFFF; color: #FFFFFF; }
  /* contour → plein */
  .btn-line:hover, .btn-line:focus-visible { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-bg); }
  .hero .btn-line:hover, .hero .btn-line:focus-visible { background: #fff; border-color: #fff; color: var(--color-text); }
  .section--cta .btn-line:hover, .section--cta .btn-line:focus-visible { background: #FFFFFF; border-color: #FFFFFF; color: #1F1D1B; }
  :where(.btn--primary:not(.btn--cabinet)):hover:not(:disabled), :where(.btn--primary:not(.btn--cabinet)):focus-visible:not(:disabled) { background: transparent; border-color: #1F1D1B; color: #1F1D1B; }
  .btn--cabinet:hover, .btn--cabinet:focus-visible { background: #1F1D1B; border-color: #1F1D1B; color: #FFFFFF; }
  .section--cta .btn--cabinet:hover, .section--cta .btn--cabinet:focus-visible { background: #FFFFFF; border-color: #FFFFFF; color: #1F1D1B; }
  .article-cta .btn--outline-white:hover, .article-cta .btn--outline-white:focus-visible { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-bg); }
}

/* Accueil : ligne fine sous l'en-tête transparent, d'un bord à l'autre de l'écran ;
   elle se trace au chargement et s'efface en fondu quand l'en-tête devient opaque */
.nav--hero:not(.nav--banner)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  transform-origin: left center;
  pointer-events: none;
  transition: opacity .3s ease;
  animation: trace .8s .2s cubic-bezier(.65,0,.35,1) both;
}
.nav--hero:not(.nav--banner).nav--scrolled::after,
.nav--hero:not(.nav--banner):has(.nav__burger.active)::after { opacity: 0; }

/* 6. Mouvement réduit : aucune animation, aucune transition, tout visible immédiatement */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .r, .domains .domain-card::before, .domains .domain-card h3, .domains .domain-card__sum,
  .spec-band li::before, .spec-band__txt, .famille, .famille h3::after { opacity: 1 !important; transform: none !important; }
}

/* ---- Page Contact : toutes les lignes en anthracite, 1 px ---- */
.page-contact main > section + section { border-top-color: #1F1D1B; }
.page-contact .contact-detail { border-bottom-color: #1F1D1B; }
.page-contact .contact-detail:first-child { border-top-color: #1F1D1B; }
.page-contact .form-group input,
.page-contact .form-group select,
.page-contact .form-group textarea { border-color: #1F1D1B; }
.page-contact .form-group input:focus,
.page-contact .form-group select:focus,
.page-contact .form-group textarea:focus { outline: 2px solid #1F1D1B; outline-offset: 0; }
.page-contact .form-group input.error,
.page-contact .form-group select.error,
.page-contact .form-group textarea.error { border-color: #C0392B; }
@media (min-width: 768px) {
  .page-contact .contact-layout > :last-child { border-left-color: #1F1D1B; }
}

/* Liste à puces dans un encadré (page Prêt immobilier, « Délais ») */
.spec-aside ul.spec-list { margin: 10px 0 0 1.25rem; font-size: 16.5px; line-height: 1.65; }
.spec-aside ul.spec-list li + li { margin-top: 6px; }


/* ---- Page Le Cabinet : traits noirs tracés au défilement (script.js pose « in ») ----
   Séparateurs de sections et de blocs : pseudo-élément qui se trace de gauche à droite. */
.page-cabinet > section + section { border-top: 0; position: relative; }
.page-cabinet > section + section::before,
.page-cabinet .approach__block + .approach__block::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: #1F1D1B; transform-origin: left;
  transition: transform 1.4s cubic-bezier(.65,0,.25,1);
}
.page-cabinet .approach__block + .approach__block { border-top: 0; position: relative; }
html.anim .cab-anim:not(.in)::before { transform: scaleX(0); }
html.anim .approach__quote.cab-anim:not(.in)::before { transform: scaleY(0); }
html.anim .approach__quote.cab-anim:not(.in) .approach__quote-text { opacity: 0; transform: translateX(-10px); }
@media (prefers-reduced-motion: reduce) {
  .page-cabinet > section + section::before, .page-cabinet .approach__block + .approach__block::before, .approach__quote::before, .approach__quote-text { transition: none !important; transform: none !important; opacity: 1 !important; }
}

/* ---- Accueil : présentation (portrait + texte) ---- */
.presentation__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; justify-items: start; }
.presentation__photo { display: block; width: 100%; max-width: 320px; height: auto; }
@media (min-width: 1024px) {
  .presentation__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; justify-items: stretch; }
  .presentation__photo { max-width: 440px; }
}
.presentation__text .section__tag { margin-bottom: 14px; }
.presentation__text h2 { line-height: 1.2; margin-bottom: 2rem; }          /* comme le nom sur Le Cabinet */
.presentation__text p { margin-bottom: 1.2em; }                           /* comme les paragraphes de Le Cabinet */
.presentation__text p:nth-of-type(2) { margin-bottom: 28px; }
.presentation__text p:last-child { margin-bottom: 0; }

/* ---- Démarrage des animations d'arrivée une fois la photo chargée et décodée ----
   « att » (attente) est posée par un petit script du <head> ; script.js la remplace par « att-run »
   quand l'image est prête (ou au bout de 3 s au plus). Sans JavaScript, rien n'est en attente.
   En attente, les animations sont en pause : l'état de départ (invisible) est affiché, puis elles se lancent. */
html.att :is(.banner, .hero) *,
html.att .banner::after,
html.photo-attente :is(.banner__img, .hero__bg),
html.photo-attente .banner::after,
html.att .spec-hero__intro,
html.att .nav--hero .nav__container,
html.att .nav--hero::after { animation-play-state: paused; }
/* Seuls opacity et transform sont animés ; will-change pendant l'attente et l'animation seulement */
:is(html.att, html.att-run) :is(.banner__img, .hero__bg, .banner__title, .banner--spec h1, .banner--spec .breadcrumb,
  .banner--spec .spec-hero__tag, .spec-hero__intro, .hero__label, .hero__title, .hero__body, .hero .btn-line,
  .nav--hero .nav__container) { will-change: opacity, transform; }
/* L'en-tête n'anime que l'opacité : sans « transform » dans will-change, la bande Compétences reste calée sur toute la largeur de l'écran */
html.att .nav--hero .nav__container,
html.att-run .nav--hero .nav__container { will-change: opacity; }
html.att .banner::after, html.att-run .banner::after { will-change: opacity; }

/* ============================================================
   ACCUEIL — fluidité (classe « page-accueil » sur <body>)
   Un seul langage d'animation : fondu + montée de 24 px, .9 s, courbe douce, une seule fois à l'entrée dans l'écran
   (script.js). Départ à opacity .01 (jamais 0) ; l'état de départ n'existe que si le script a posé « anim » sur <html> :
   sans script, tout reste visible. Rien n'est ajouté à la couverture ni à son titre (animations d'arrivée inchangées).
   ============================================================ */
@keyframes monteeAccueil { from { opacity: 0.01; transform: translateY(24px); } }

.page-accueil .r.in { animation: monteeAccueil .9s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: var(--d, 0ms); }

/* 1. Couverture : environ 70 % de la hauteur de l'écran (520 à 760 px), 62 % sur téléphone ;
   le bloc de texte garde ses proportions (bas du bouton à 23 % de la hauteur de la couverture, 20 % sur téléphone) */
.page-accueil .hero { --hero-h: clamp(520px, 70svh, 760px); min-height: var(--hero-h); }
.page-accueil .hero__content { padding-bottom: calc(var(--hero-h) * .2); }
@media (min-width: 1024px) { .page-accueil .hero__content { padding-bottom: calc(var(--hero-h) * .233); } }
@media (max-width: 767px) { .page-accueil .hero { --hero-h: 62svh; } }

/* 2. Portrait puis texte, .15 s plus tard */
.page-accueil .presentation__text.r.in { animation-delay: 150ms; }

/* 3. Domaines : le titre d'abord, puis les trois blocs l'un après l'autre (.15 s), puis le trait sous le nom */
html.anim .page-accueil .familles:not(.in) .famille { opacity: 0.01; }
.page-accueil .familles.in .famille {
  animation: monteeAccueil .9s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(400ms + var(--b, 0) * 150ms);
}
.page-accueil .familles.in .famille h3::after { animation-delay: calc(400ms + var(--b, 0) * 150ms + 300ms); }

@media (prefers-reduced-motion: reduce) {
  .page-accueil .r.in, .page-accueil .familles.in .famille { animation: none !important; }
}


/* ---- Lisibilité des pages de contenu : texte à gauche, sans césure, colonne d'environ 70 caractères, interligne 1,6 ---- */
.spec-hero__intro, .spec-section p, .spec-section li, .spec-aside p,
.article-body, .article-body p, .article-body li,
.bio p, .text-block p, .approach p, .page-cabinet .section:not(.section--cta) p {
  text-align: left;
  hyphens: none;
  -webkit-hyphens: none;
  line-height: 1.6;
}
.spec-text, .spec-section, .article-main, .article-body, .bio, .text-block, .approach { max-width: 42rem; }
@media (min-width: 1024px) {
  .spec-layout { grid-template-columns: 280px minmax(0, 42rem); }
  .article-main { max-width: 42rem; }
  main.page-cabinet .bio { grid-template-columns: minmax(0, 400px) minmax(0, 42rem); }
}

/* Espace entre un paragraphe et la liste qui le suit (contenu des pages, hors en-tête et pied de page) */
main p + ul, main p + ol { margin-top: 1.25rem !important; }

/* ============================================================
   ACCUEIL — couverture : escalier en spirale, même traitement que le bandeau Le Cabinet
   (noir et blanc + voile anthracite 40 %), textes et en-tête en blanc.
   ============================================================ */
.page-accueil .hero__bg { filter: grayscale(1); object-position: 28% 20%; }

/* Voile anthracite (comme le bandeau Cabinet) + dégradé noir par-dessus, derrière le texte */
.page-accueil .hero__overlay {
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,.30) 45%, rgba(0,0,0,.30) 100%),
    rgba(31, 29, 27, 0.40);
}
@media (min-width: 1024px) {
  .page-accueil .hero__bg { object-position: 50% 50%; }
  .page-accueil .hero__overlay {
    background:
      linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 48%, rgba(0,0,0,.30) 64%, rgba(0,0,0,.30) 100%),
      rgba(31, 29, 27, 0.40);
  }
}

/* Titre sur 3 lignes (taille inchangée par rapport à la version précédente) */
.page-accueil .hero__line { display: block; white-space: nowrap; }
.page-accueil .hero h1, .page-accueil .hero__title {
  font-size: min(1.9375rem, calc((100vw - 3rem) / 12.6));
  line-height: 1.12;
}

/* Libellé sur deux lignes, un peu plus grand ; paragraphe plus grand, interligne 1,6 */
.page-accueil .hero .hero__label { font-size: 0.735rem; }
.page-accueil .hero__label-line { display: block; }
.page-accueil .hero .hero__body { font-size: 1.17rem; line-height: 1.6; }

/* Bouton de la couverture : contour blanc, texte blanc (comme avant) ; survol : blanc plein */
.page-accueil .hero .btn-line { background: transparent; border-color: #fff; color: #fff; }

/* Ordinateur : bloc de texte dans la colonne de droite ; couverture à 75 % de la hauteur de l'écran */
@media (min-width: 1024px) {
  .page-accueil .hero { --hero-h: clamp(520px, 75svh, 820px); }
  .page-accueil .hero__content { max-width: none; margin: 0; padding-left: 62vw; padding-right: 3vw; }
  .page-accueil .hero h1, .page-accueil .hero__title { font-size: min(2.7vw, 3.4rem); letter-spacing: 0.02em; }
  .page-accueil .hero .hero__label { font-size: 0.98rem; }
  .page-accueil .hero .hero__body { max-width: 34rem; font-size: 1.25rem; }
}

/* Téléphone : couverture pleine hauteur, texte calé dans la moitié basse */
@media (max-width: 767px) {
  .page-accueil .hero { --hero-h: 100svh; }
  .page-accueil .hero__content { padding-bottom: 40px; }
  .page-accueil .hero .hero__label { font-size: 13px; }
}

/* Petits écrans (hauteur < 700 px, ex. iPhone SE) : titre réduit d'environ 15 %, dégradé plus haut */
@media (max-width: 1023px) and (max-height: 699px) {
  .page-accueil .hero h1, .page-accueil .hero__title { font-size: min(1.65rem, calc((100vw - 3rem) / 14.8)); margin-bottom: 18px; }
  .page-accueil .hero__overlay {
    background:
      linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.30) 28%, rgba(0,0,0,.30) 100%),
      rgba(31, 29, 27, 0.40);
  }
}

/* Le Cabinet : photo des panneaux lumineux (toute la largeur, centrée verticalement).
   Bande sombre horizontale sur toute la largeur derrière le titre : dégradé vertical transparent en haut et en bas,
   55 % d'anthracite à la hauteur du titre, par-dessus le voile de 40 % (contraste du titre blanc ≥ 4,5:1). */
.page-cabinet .banner::after {
  background:
    linear-gradient(180deg, rgba(31,29,27,0) 0%, rgba(31,29,27,.55) 50%, rgba(31,29,27,0) 100%),
    rgba(31, 29, 27, 0.40);
}

/* Liens dans le corps du texte (Compétences et articles) : soulignement fin permanent, 2 px au survol.
   Couleur du texte, aucune nouvelle couleur. Ni menu, ni boutons, ni sommaire, ni cartes, ni pied de page. */
.spec-text a:not(.btn):not(.btn-line):not([class*="__btn"]),
.spec-hero__intro a:not(.btn):not(.btn-line):not([class*="__btn"]),
.article-body a:not(.btn):not(.btn-line):not([class*="__btn"]),
.article-lead a:not(.btn):not(.btn-line):not([class*="__btn"]) {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.spec-text a:not(.btn):not(.btn-line):not([class*="__btn"]):hover,
.spec-hero__intro a:not(.btn):not(.btn-line):not([class*="__btn"]):hover,
.article-body a:not(.btn):not(.btn-line):not([class*="__btn"]):hover,
.article-lead a:not(.btn):not(.btn-line):not([class*="__btn"]):hover {
  text-decoration-thickness: 2px;
}

/* Deuxième paragraphe du chapô (page Prêt professionnel) */
.banner + .spec-hero .spec-hero__intro + .spec-hero__intro { margin-top: 1rem; }
