/* ==========================================================================
   Les Trois Piliers SRL — Feuille de style principale
   Palette pierre bleue de Belgique · Marcellus + Manrope
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Encres */
  --ink:            #16191D;
  --ink-soft:       #2A2F35;
  --muted:          #63676D;
  --muted-light:    #8E9299;

  /* Surfaces claires — blanc cassé */
  --paper:          #FCFBF8;   /* cartes, surface la plus claire */
  --stone:          #F6F4EF;   /* fond de section principal */
  --stone-warm:     #EEEBE4;   /* fond de section alterné */
  --white:          #FFFFFF;

  /* Surfaces sombres — rythme et contraste */
  --bluestone:      #2E3B48;
  --bluestone-deep: #1A252F;

  /* Laiton — dédoublé : texte conforme AA / décor plus doré */
  --brass:          #816125;   /* texte, liens, eyebrows (AA sur toutes surfaces claires) */
  --brass-deco:     #A8843D;   /* filets, cadres, pastilles — sans contrainte de contraste */
  --brass-soft:     #C4A46A;   /* accent sur fonds sombres unis */
  --brass-photo:    #D6BC8A;   /* accent sur photo sous voile (AA même sur image claire) */

  /* Filets */
  --rule:           #DEDAD1;   /* hairlines sur fond clair */
  --rule-strong:    #CFC9BE;   /* séparateurs marqués */
  --rule-dark:      #4A5560;   /* filets sur fonds sombres */

  --f-display: 'Marcellus', 'Cormorant Garamond', 'Times New Roman', serif;
  --f-body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.005em;
}
p { margin: 0 0 1em; }
a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}
img, svg { display: block; max-width: 100%; }
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}
::selection { background: var(--brass-soft); color: var(--ink); }

/* ---------- Utilities ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.eyebrow {
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--brass-deco);
}
.roman {
  font-family: var(--f-display);
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  color: var(--brass);
}
.rule-h { height: 1px; background: var(--rule); border: none; margin: 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Opacité élevée volontairement : à 0.90, les photos sombres des hero
     transparaissent et font chuter le laiton du logo sous 4.5:1. */
  background: rgba(246, 244, 239, 0.96);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-family: var(--f-display);
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1.05;
}
.brand-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.brand-name-small {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  font-family: var(--f-body);
  font-weight: 600;
}

/* ---------- Hero logo lockup (grand logo sur la page d'accueil) ---------- */
.hero-lockup {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(196, 164, 106, 0.35);
}
.hero-lockup .lockup-logo {
  width: clamp(72px, 9vw, 118px);
  height: auto;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}
.hero-lockup .lockup-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.hero-lockup .lockup-name {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  color: var(--stone-warm);
  line-height: 1;
  letter-spacing: 0.01em;
}
.hero-lockup .lockup-tag {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass-photo);
  font-weight: 600;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}
.nav-links a {
  color: var(--ink-soft);
  position: relative;
}
.nav-links a:hover { color: var(--brass); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--brass);
  transition: width 220ms ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--bluestone);
  background: var(--bluestone);
  color: var(--stone-warm);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 180ms ease, color 180ms ease;
}
.nav-cta:hover {
  background: transparent;
  color: var(--bluestone);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: all 220ms ease;
}

/* ---------- Hero (index) ---------- */
.hero {
  position: relative;
  padding: clamp(4rem, 10vh, 8rem) 0 clamp(5rem, 12vh, 9rem);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; }
.hero-eyebrow-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.hero-eyebrow-row .meta {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  max-width: 14ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--brass);
  font-weight: 400;
}
.hero-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  max-width: 52ch;
  color: var(--ink-soft);
  margin-bottom: 3rem;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--f-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 220ms ease;
}
.btn-primary {
  background: var(--bluestone);
  color: var(--stone-warm);
  border-color: var(--bluestone);
}
.btn-primary:hover {
  background: var(--bluestone-deep);
  border-color: var(--bluestone-deep);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--stone-warm);
}
.btn .arr {
  font-family: var(--f-display);
  transition: transform 220ms ease;
}
.btn:hover .arr { transform: translateX(4px); }

.hero-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}
.hero-pillar {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.hero-pillar .num {
  font-family: var(--f-display);
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--brass);
}
.hero-pillar .title {
  font-family: var(--f-display);
  font-size: 1.25rem;
  color: var(--ink);
}
.hero-pillar .caption {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg .pillar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--rule);
  opacity: 0.5;
}
.hero-bg .pillar::before,
.hero-bg .pillar::after {
  content: "";
  position: absolute;
  left: -10px;
  width: 21px;
  height: 3px;
  background: var(--brass-deco);
  opacity: 0.35;
}
.hero-bg .pillar::before { top: 8%; }
.hero-bg .pillar::after { bottom: 8%; }
.hero-bg .pillar-1 { left: 20%; }
.hero-bg .pillar-2 { left: 50%; }
.hero-bg .pillar-3 { left: 80%; }

/* ---------- Section base ---------- */
section {
  padding: clamp(4rem, 10vh, 7rem) 0;
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 6vw, 5rem);
  margin-bottom: 4rem;
  align-items: end;
}
/* Variante sans colonne de texte : le titre reprend toute la largeur
   au lieu d'être comprimé sur 1fr. */
.section-head.is-solo {
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}
.section-head.is-solo h2 { max-width: 24ch; }
.section-head .lede {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  max-width: 20ch;
}
.section-head .body {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 55ch;
}
.section-head .body p:last-child { margin-bottom: 0; }

/* ---------- Three Pillars ---------- */
#piliers { background: var(--stone-warm); }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pillar-card {
  padding: 3rem 2rem;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  transition: background 240ms ease;
}
.pillar-card:last-child { border-right: none; }
.pillar-card:hover { background: var(--white); }
.pillar-card .num {
  font-family: var(--f-display);
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  color: var(--brass);
}
.pillar-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.pillar-card .desc {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}
.pillar-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.pillar-card ul li {
  padding-left: 1.25rem;
  position: relative;
}
.pillar-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.5rem;
  height: 1px;
  background: var(--brass-deco);
}

/* ---------- À propos ---------- */
#a-propos {
  background: var(--bluestone);
  color: var(--stone-warm);
}
#a-propos .eyebrow { color: var(--brass-soft); }
#a-propos .eyebrow::before { background: var(--brass-soft); }
#a-propos h2 { color: var(--stone-warm); }
#a-propos .body { color: rgba(245, 239, 221, 0.85); }
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-dark);
  margin-top: 2rem;
}
.stat {
  padding: 2.5rem 1.5rem 0;
  border-right: 1px solid var(--rule-dark);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.stat:last-child { border-right: none; }
.stat .value {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  color: var(--brass-soft);
  line-height: 1;
}
.stat .label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 239, 221, 0.7);
}
.stat .caption {
  font-size: 0.88rem;
  color: rgba(245, 239, 221, 0.75);
  margin-top: 0.5rem;
}
.about-signature {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule-dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-signature blockquote {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.4;
  color: var(--stone-warm);
}
.about-signature blockquote::before {
  content: "«";
  color: var(--brass-soft);
  margin-right: 0.3rem;
}
.about-signature blockquote::after {
  content: "»";
  color: var(--brass-soft);
  margin-left: 0.3rem;
}
.about-signature .attribution {
  font-size: 0.85rem;
  color: rgba(245, 239, 221, 0.7);
  margin-top: 1rem;
  letter-spacing: 0.06em;
}
.about-cred {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 0.92rem;
  color: rgba(245, 239, 221, 0.85);
}
.about-cred .cred-item {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule-dark);
}
.about-cred .cred-item strong {
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--brass-soft);
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  text-transform: uppercase;
}

/* ==========================================================================
   Page hero avec image de fond (pour les pages détaillées)
   ========================================================================== */
.page-hero {
  position: relative;
  padding: clamp(5rem, 12vh, 8rem) 0 clamp(4rem, 10vh, 7rem);
  background-size: cover;
  background-position: center;
  color: var(--stone-warm);
  overflow: hidden;
  min-height: 40vh;
  display: flex;
  align-items: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,25,29,0.74) 0%, rgba(20,25,29,0.88) 100%);
  z-index: 1;
}
.page-hero .wrap { position: relative; z-index: 2; width: 100%; }
.page-hero .eyebrow { color: var(--brass-photo); }
.page-hero .eyebrow::before { background: var(--brass-photo); }
.page-hero h1 {
  color: var(--stone-warm);
  font-size: clamp(2.25rem, 5vw, 4rem);
  max-width: 20ch;
  margin: 1.5rem 0 1.5rem;
  line-height: 1.05;
}
.page-hero h1 em { color: var(--brass-photo); font-style: italic; }
.page-hero .lede {
  color: rgba(245, 239, 221, 0.9);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  max-width: 60ch;
  line-height: 1.55;
  margin-bottom: 2rem;
}
.page-hero .breadcrumb {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 239, 221, 0.65);
  margin-bottom: 2rem;
}
.page-hero .breadcrumb a { color: rgba(245, 239, 221, 0.75); }
.page-hero .breadcrumb a:hover { color: var(--brass-soft); }
.page-hero .breadcrumb .sep { color: var(--brass-soft); margin: 0 0.5rem; }

/* Page-hero actions row */
.page-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.page-hero .btn-secondary {
  border-color: var(--stone-warm);
  color: var(--stone-warm);
}
.page-hero .btn-secondary:hover {
  background: var(--stone-warm);
  color: var(--ink);
}

/* ==========================================================================
   Section teaser (pour homepage — 3 métiers présentés en cards avec images)
   ========================================================================== */
.pillar-teasers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}
.pillar-teaser {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgba(22, 25, 29, 0.03);
  overflow: hidden;
  transition: transform 300ms ease, box-shadow 300ms ease;
  text-decoration: none;
  color: inherit;
}
.pillar-teaser:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(20, 25, 30, 0.08);
}
.pillar-teaser .teaser-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bluestone);
}
.pillar-teaser .teaser-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease, filter 400ms ease;
  filter: saturate(0.85) brightness(0.95);
}
.pillar-teaser:hover .teaser-image img {
  transform: scale(1.05);
  filter: saturate(1) brightness(1);
}
.pillar-teaser .teaser-num {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  background: var(--stone-warm);
  color: var(--brass);
  padding: 0.35rem 0.75rem;
  font-family: var(--f-display);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
}
.pillar-teaser .teaser-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.pillar-teaser h3 {
  font-size: 1.6rem;
  color: var(--ink);
}
.pillar-teaser p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.pillar-teaser .teaser-link {
  margin-top: 1rem;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.02em;
}
.pillar-teaser .teaser-link .arr {
  font-family: var(--f-display);
  transition: transform 220ms ease;
}
.pillar-teaser:hover .teaser-link .arr { transform: translateX(4px); }

/* ==========================================================================
   Split section (image + content côte à côte)
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split.reverse .split-content { order: 2; }
.split.reverse .split-image { order: 1; }
.split-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bluestone);
  position: relative;
}
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-image .brass-frame {
  position: absolute;
  inset: 15px;
  border: 1px solid var(--brass-deco);
  pointer-events: none;
  opacity: 0.7;
}
.split-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 18ch;
  margin-bottom: 1.5rem;
}
.split-content p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}
.split-content .eyebrow { margin-bottom: 1rem; }

/* ==========================================================================
   Full-width image break
   ========================================================================== */
.image-break {
  position: relative;
  height: clamp(20rem, 40vh, 30rem);
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.image-break::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,25,29,0.64), rgba(20,25,29,0.80));
}
.image-break-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--stone-warm);
  padding: 0 var(--gutter);
  max-width: 60ch;
}
.image-break blockquote {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.35;
  font-style: italic;
}
.image-break blockquote::before,
.image-break blockquote::after {
  color: var(--brass-soft);
}
.image-break .attr {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass-photo);
}

/* ==========================================================================
   Espace client — login card
   ========================================================================== */
.portal-card {
  background: var(--bluestone);
  color: var(--stone-warm);
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--rule-dark);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.portal-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(196, 164, 106, 0.15), transparent 60%);
  pointer-events: none;
}
.portal-card .eyebrow { color: var(--brass-soft); }
.portal-card .eyebrow::before { background: var(--brass-soft); }
.portal-content { position: relative; z-index: 2; }
.portal-content h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--stone-warm);
  margin-bottom: 1rem;
  max-width: 20ch;
}
.portal-content p {
  color: rgba(245, 239, 221, 0.8);
  margin-bottom: 2rem;
  max-width: 50ch;
  font-size: 1.05rem;
}
.portal-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
  font-size: 0.92rem;
}
.portal-features li {
  padding-left: 1.5rem;
  position: relative;
  color: rgba(245, 239, 221, 0.9);
}
.portal-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.8rem;
  height: 0.8rem;
  border: 1px solid var(--brass-soft);
}
.portal-features li::after {
  content: "✓";
  position: absolute;
  left: 0.15rem;
  top: 0.2em;
  color: var(--brass-soft);
  font-size: 0.7rem;
  font-weight: bold;
}
.portal-action {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 2;
}
.portal-btn {
  background: var(--brass);
  color: var(--stone-warm);
  padding: 1.25rem 2rem;
  text-align: center;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 220ms ease;
}
.portal-btn:hover {
  background: var(--brass-soft);
  border-color: var(--brass-soft);
  color: var(--ink);
}
.portal-btn .arr {
  font-family: var(--f-display);
  transition: transform 220ms ease;
}
.portal-btn:hover .arr { transform: translateX(4px); }
.portal-sub {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(245, 239, 221, 0.6);
}
/* Le halo laiton de .portal-card::before éclaircit le fond côté droit,
   là où se trouve .portal-action. --brass-soft y tombe à 4,0:1. */
.portal-sub a {
  color: var(--brass-photo);
  border-bottom: 1px solid var(--brass-photo);
}

/* ==========================================================================
   Espace client — état « en construction »
   ========================================================================== */

/* Bandeau d'information, version fond clair */
.notice {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brass-deco);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 1px 3px rgba(22, 25, 29, 0.04);
}
.notice-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--brass-deco);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: var(--brass);
  line-height: 1;
}
.notice-body { flex: 1; }
.notice-body h4 {
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.notice-body p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 0.6rem;
}
.notice-body p:last-child { margin-bottom: 0; }
.notice-body a {
  color: var(--brass);
  border-bottom: 1px solid var(--brass);
}

/* Version sur fond sombre (dans .portal-card) */
.portal-card .notice {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--rule-dark);
  border-left-color: var(--brass-soft);
  box-shadow: none;
  margin-top: 1.75rem;
}
.portal-card .notice-icon {
  border-color: var(--brass-soft);
  color: var(--brass-soft);
}
.portal-card .notice-body h4 { color: var(--stone-warm); }
.portal-card .notice-body p { color: rgba(245, 239, 221, 0.85); }
/* Le voile blanc du bandeau (6 %) éclaircit le bleu pierre à ~(59,71,83),
   où --brass-soft ne tient que 4,01:1. On passe donc au laiton clair. */
.portal-card .notice-body a {
  color: var(--brass-photo);
  border-bottom-color: var(--brass-photo);
}

/* Pastille « bientôt disponible » */
.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--brass-deco);
  color: var(--brass);
  font-family: var(--f-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-soon::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass-deco);
  flex-shrink: 0;
}
/* Variante sur fond sombre */
.page-hero .badge-soon,
.portal-card .badge-soon,
.cta-band .badge-soon {
  border-color: var(--brass-photo);
  color: var(--brass-photo);
}
.page-hero .badge-soon::before,
.portal-card .badge-soon::before,
.cta-band .badge-soon::before { background: var(--brass-photo); }

/* Boutons désactivés : le lien n'existe pas encore, on ne le rend pas cliquable */
.btn.is-disabled,
.portal-btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}
.portal-btn.is-disabled {
  background: transparent;
  border-color: var(--rule-dark);
  color: rgba(245, 239, 221, 0.65);
  opacity: 1;
}
.btn.is-disabled .arr,
.portal-btn.is-disabled .arr { display: none; }

/* Liste des fonctionnalités à venir : marqueur neutre au lieu de la coche */
.portal-features.is-pending li::after { content: "·"; font-size: 1rem; top: -0.05em; left: 0.28rem; }
.portal-features.is-pending li::before { border-style: dashed; }

/* Entrée « Contact » réservée au menu mobile (masquée en format bureau) */
.nav-cta-mobile { display: none; }

/* ==========================================================================
   Nav — active state
   ========================================================================== */
.nav-links a.active { color: var(--brass); }
.nav-links a.active::after { width: 100%; background: var(--brass); }

/* ==========================================================================
   CTA band (in-page contact CTA)
   ========================================================================== */
.cta-band {
  background: var(--bluestone-deep);
  color: var(--stone-warm);
  padding: clamp(3rem, 8vh, 5rem) 0;
  text-align: center;
}
.cta-band h2 {
  color: var(--stone-warm);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 25ch;
  margin: 0 auto 1rem;
}
.cta-band p {
  color: rgba(245, 239, 221, 0.75);
  max-width: 55ch;
  margin: 0 auto 2rem;
  font-size: 1rem;
}
.cta-band .cta-actions {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-band .btn-primary { background: var(--brass); border-color: var(--brass); }
.cta-band .btn-primary:hover { background: var(--brass-soft); border-color: var(--brass-soft); color: var(--ink); }
.cta-band .btn-secondary { color: var(--stone-warm); border-color: var(--stone-warm); }
.cta-band .btn-secondary:hover { background: var(--stone-warm); color: var(--ink); }

/* ==========================================================================
   Contact page — layout
   ========================================================================== */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  margin-top: 3rem;
}
.contact-info-panel { color: var(--ink); }
.contact-info-panel h2 { font-size: 1.75rem; margin-bottom: 1.5rem; }
.contact-info-panel .contact-item .label { color: var(--brass); }
.contact-info-panel .contact-item .value { color: var(--ink); font-size: 1.2rem; }
.contact-info-panel .contact-item { border-bottom-color: var(--rule); }
.contact-info-panel .contact-item .sub { color: var(--muted); }
.contact-page-form {
  background: var(--white);
  padding: 2.5rem;
  border: 1px solid var(--rule);
  box-shadow: 0 1px 3px rgba(22, 25, 29, 0.04);
}
.contact-page-form h3 { font-size: 1.5rem; color: var(--ink); margin-bottom: 0.5rem; }
.contact-page-form .intro { color: var(--muted); font-size: 0.95rem; margin-bottom: 2rem; }
/* Spécificité renforcée (.field) : ces règles doivent battre `.field label` et
   `.field input` déclarées plus bas dans la feuille pour le formulaire sur fond sombre. */
.contact-page-form .field label { color: var(--brass); }
.contact-page-form .field input,
.contact-page-form .field textarea,
.contact-page-form .field select {
  color: var(--ink);
  border-bottom-color: var(--rule-strong);
}
.contact-page-form .field input::placeholder,
.contact-page-form .field textarea::placeholder { color: var(--muted-light); }
.contact-page-form .field 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' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23816125' stroke-width='1.5'/%3E%3C/svg%3E");
}
.contact-page-form .field select option {
  background: var(--white);
  color: var(--ink);
}
.contact-page-form .field input:focus,
.contact-page-form .field textarea:focus,
.contact-page-form .field select:focus {
  border-bottom-color: var(--brass);
}
.contact-page-form .btn {
  background: var(--bluestone);
  color: var(--stone-warm);
  border-color: var(--bluestone);
}
.contact-page-form .btn:hover { background: var(--ink); border-color: var(--ink); }
.contact-page-form .privacy-note { color: var(--muted); }

/* Responsive adjustments for new components */
@media (max-width: 960px) {
  .pillar-teasers { grid-template-columns: 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-content { order: unset; }
  .split.reverse .split-image { order: unset; }
  .portal-card { grid-template-columns: 1fr; gap: 2rem; }
  .portal-features { grid-template-columns: 1fr; }
  .contact-page-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ---------- Prestations ---------- */
#prestations { background: var(--stone); }
.prest-group { margin-bottom: 3.5rem; }
.prest-group:last-child { margin-bottom: 0; }
.prest-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 0 1.25rem;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.prest-group-head .roman-tag {
  font-family: var(--f-display);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--brass);
  margin-right: 1rem;
}
.prest-group-head h3 {
  font-size: 1.6rem;
  margin: 0;
  flex: 1;
  min-width: 200px;
}
.prest-group-head .prest-group-count {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.prest-group .prestations-list { border-top: none; }
.prestations-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.prest-row {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.5rem;
  padding: 2rem 2rem;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.prest-row:nth-child(odd) { border-right: 1px solid var(--rule); }
.prest-row .num {
  font-family: var(--f-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--brass);
  padding-top: 0.35rem;
}
.prest-row h4 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.prest-row p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* ---------- Reprise ---------- */
#reprise { background: var(--paper); }
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  counter-reset: step;
  border-top: 1px solid var(--rule);
  padding-top: 3rem;
}
.step {
  padding: 0 1.5rem 0 0;
  position: relative;
  counter-increment: step;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.2rem;
  right: 1rem;
  width: calc(100% - 4rem);
  height: 1px;
  background: var(--rule);
}
.step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--brass-deco);
  color: var(--brass);
  font-family: var(--f-display);
  font-size: 1rem;
  background: var(--paper);
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
}
.step h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.step p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* ---------- Zone d'intervention + Mini map ---------- */
#zone { background: var(--stone-warm); }
.zone-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  border-top: 1px solid var(--rule);
  padding-top: 3rem;
  align-items: start;
}
.map-wrap {
  background: var(--white);
  padding: 1.5rem;
  border: 1px solid var(--rule);
  box-shadow: 0 1px 3px rgba(22, 25, 29, 0.04);
  position: relative;
}
.map-wrap .map-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.map-wrap .map-caption .zone-name {
  color: var(--brass);
  font-weight: 600;
}
.zone-svg { display: block; width: 100%; height: auto; }
.map-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.25rem;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.map-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.legend-swatch {
  width: 14px;
  height: 14px;
  border: 1px solid var(--brass-deco);
  flex-shrink: 0;
}
.legend-swatch.bxl { background: rgba(46, 59, 72, 0.28); }
.legend-swatch.bw  { background: rgba(46, 59, 72, 0.12); }
.legend-swatch.siege {
  border-radius: 50%;
  background: var(--brass);
  border-color: var(--brass);
}
.zone-cols {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.zone-col h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.zone-col .zone-sub {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.25rem;
}
.zone-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.zone-col ul li {
  padding: 0.25rem 0;
  border-bottom: 1px dotted var(--rule);
}

/* ---------- FAQ ---------- */
#faq { background: var(--stone); }
.faq-list { border-top: 1px solid var(--rule); }
details {
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem 0;
}
details summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: 3rem 1fr 2rem;
  gap: 1rem;
  align-items: center;
  font-family: var(--f-display);
  font-size: 1.2rem;
  color: var(--ink);
  transition: color 200ms ease;
}
details summary::-webkit-details-marker { display: none; }
details summary:hover { color: var(--brass); }
details summary .q-num {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--brass);
}
details summary .toggle {
  justify-self: end;
  width: 1.5rem;
  height: 1.5rem;
  position: relative;
}
details summary .toggle::before,
details summary .toggle::after {
  content: "";
  position: absolute;
  background: var(--brass-deco);
  transition: transform 240ms ease;
}
details summary .toggle::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
}
details summary .toggle::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
}
details[open] summary .toggle::after {
  transform: rotate(90deg);
}
details .answer {
  padding: 1rem 3rem 0 4rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 68ch;
}
details .answer p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
#contact {
  background: var(--bluestone-deep);
  color: var(--stone-warm);
}
#contact .eyebrow { color: var(--brass-soft); }
#contact .eyebrow::before { background: var(--brass-soft); }
#contact h2 { color: var(--stone-warm); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 15ch;
  margin-bottom: 2rem;
}
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}
.contact-item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule-dark);
}
.contact-item .label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 0.6rem;
}
.contact-item .value {
  font-family: var(--f-display);
  font-size: 1.35rem;
  color: var(--stone-warm);
  line-height: 1.3;
}
.contact-item .value a { color: inherit; }
.contact-item .value a:hover { color: var(--brass-soft); }
.contact-item .sub {
  font-size: 0.88rem;
  color: rgba(245, 239, 221, 0.7);
  margin-top: 0.4rem;
}

.contact-form-wrap {
  background: var(--bluestone);
  padding: 2.5rem;
  border: 1px solid var(--rule-dark);
}
.contact-form-wrap h3 {
  font-size: 1.5rem;
  color: var(--stone-warm);
  margin-bottom: 0.5rem;
}
.contact-form-wrap .intro {
  color: rgba(245, 239, 221, 0.75);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 0.5rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule-dark);
  padding: 0.6rem 0;
  color: var(--stone-warm);
  font-family: var(--f-body);
  font-size: 0.95rem;
  transition: border-color 200ms ease;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23C4A46A' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 2rem;
}
.field select option {
  background: var(--bluestone-deep);
  color: var(--stone-warm);
}
.field textarea {
  resize: vertical;
  min-height: 5rem;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--brass-soft);
}
.contact-form-wrap .btn {
  width: 100%;
  justify-content: center;
  background: var(--brass);
  color: var(--stone-warm);
  border-color: var(--brass);
  margin-top: 1rem;
}
.contact-form-wrap .btn:hover {
  background: var(--brass-soft);
  border-color: var(--brass-soft);
  color: var(--ink);
}
.privacy-note {
  font-size: 0.78rem;
  color: rgba(245, 239, 221, 0.5);
  margin-top: 1rem;
  line-height: 1.5;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(245, 239, 221, 0.75);
  padding: 4rem 0 2rem;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(199, 188, 158, 0.15);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-brand .brand { color: var(--stone-warm); font-size: 1.5rem; }
.footer-brand .brand-logo {
  filter: brightness(0) invert(1) opacity(0.92);
  width: 70px;
  height: 70px;
}
.footer-brand .brand-name-small { color: var(--brass-soft); }
.footer-brand p {
  color: rgba(245, 239, 221, 0.55);
  max-width: 32ch;
  font-size: 0.85rem;
  line-height: 1.55;
}
.footer-col h5 {
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin: 0 0 1.2rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-col a:hover { color: var(--brass-soft); }
.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(245, 239, 221, 0.45);
}
.footer-legal .legal-links { display: flex; gap: 1.5rem; }
.footer-legal .legal-links a:hover { color: var(--brass-soft); }

/* ==========================================================================
   Legal page specific
   ========================================================================== */
.legal-hero {
  padding: clamp(3.5rem, 8vh, 6rem) 0 clamp(3rem, 6vh, 5rem);
  background: var(--stone-warm);
  border-bottom: 1px solid var(--rule);
}
.legal-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  max-width: 18ch;
  margin: 1.5rem 0 1.5rem;
  line-height: 1.05;
}
.legal-hero .lede {
  font-size: 1.1rem;
  max-width: 65ch;
  color: var(--ink-soft);
}
.legal-hero .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-body {
  padding: clamp(3rem, 6vh, 5rem) 0 clamp(4rem, 10vh, 7rem);
  background: var(--stone);
}
.legal-toc {
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 3px rgba(22, 25, 29, 0.04);
  padding: 1.75rem 2rem;
  margin-bottom: 4rem;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
  align-items: start;
}
.legal-toc h4 {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  font-family: var(--f-body);
  font-weight: 600;
  margin: 0;
}
.legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 2rem;
  font-size: 0.9rem;
  counter-reset: toc-item;
}
.legal-toc ol li {
  counter-increment: toc-item;
  padding-left: 3.5rem;
  position: relative;
  color: var(--ink-soft);
}
.legal-toc ol li::before {
  content: counter(toc-item, upper-roman) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--f-display);
  color: var(--brass);
  font-size: 0.85rem;
  width: 3rem;
  letter-spacing: 0.15em;
}
.legal-toc a:hover { color: var(--brass); }

.legal-section {
  padding: 3rem 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.legal-section:first-of-type { border-top: none; padding-top: 0; }
.legal-section .head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: sticky;
  top: 6rem;
}
.legal-section .head .roman-num {
  font-family: var(--f-display);
  font-size: 2.5rem;
  color: var(--brass);
  line-height: 1;
  letter-spacing: 0.05em;
}
.legal-section .head h2 {
  font-size: 1.5rem;
  line-height: 1.2;
}
.legal-section .body {
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.legal-section .body p { margin-bottom: 1rem; }
.legal-section .body p:last-child { margin-bottom: 0; }
.legal-section .body a {
  color: var(--brass);
  border-bottom: 1px solid var(--brass);
}
.legal-section .body a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
}
.legal-table th, .legal-table td {
  text-align: left;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.legal-table th {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass);
  width: 30%;
  padding-right: 1.5rem;
}
.legal-callout {
  background: var(--white);
  border-left: 3px solid var(--brass-deco);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
.legal-callout strong {
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--ink);
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}
.legal-section .body ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.legal-section .body ul li {
  padding-left: 1.25rem;
  position: relative;
}
.legal-section .body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.6rem;
  height: 1px;
  background: var(--brass);
}
.legal-updated {
  padding: 2rem 0 0;
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .section-head { grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--rule-dark); padding-bottom: 2rem; padding-top: 2rem; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }
  .stat:nth-child(3) { border-right: 1px solid var(--rule-dark); }
  .about-signature { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .zone-layout { grid-template-columns: 1fr; gap: 3rem; }
  .legal-section { grid-template-columns: 1fr; gap: 1.5rem; }
  .legal-section .head { position: static; }
  .legal-toc { grid-template-columns: 1fr; gap: 1rem; }
  .legal-toc ol { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .brand { font-size: 1.15rem; gap: 0.8rem; }
  .brand-logo { width: 48px; height: 48px; }
  .footer-brand .brand-logo { width: 56px; height: 56px; }
  .hero-lockup { gap: 1.1rem; margin-bottom: 2rem; padding-bottom: 1.5rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--stone-warm);
    padding: 2rem var(--gutter);
    gap: 1.5rem;
    border-bottom: 1px solid var(--rule);
  }
  .hero-eyebrow-row { margin-bottom: 2rem; }
  .hero-pillars { grid-template-columns: 1fr; gap: 2rem; }
  .hero-pillar { padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
  .hero-pillar:last-child { border-bottom: none; }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar-card { border-right: none; border-bottom: 1px solid var(--rule); }
  .pillar-card:last-child { border-bottom: none; }
  .prestations-list { grid-template-columns: 1fr; }
  .prest-row { border-right: none !important; padding: 1.5rem 0; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .step { padding-right: 0; }
  .step::after { display: none !important; }
  .zone-col ul { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; }
  .footer-legal { flex-direction: column; align-items: flex-start; text-align: left; }
  details summary { grid-template-columns: 2.5rem 1fr 1.5rem; font-size: 1.05rem; }
  details .answer { padding: 1rem 0 0 3.5rem; }
  .about-cred .cred-item { grid-template-columns: 1fr; gap: 0.3rem; }
  .about-grid { grid-template-columns: 1fr; }
  .stat { border-right: none !important; border-bottom: 1px solid var(--rule-dark); }
  .stat:last-child { border-bottom: none; }
  .map-legend { grid-template-columns: 1fr; }
  .legal-table th { display: block; width: 100%; padding-bottom: 0.25rem; }
  .legal-table td { display: block; padding-top: 0; padding-bottom: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Adaptation tactile — Android & iOS
   Ces règles n'altèrent pas le design : elles agrandissent les zones
   cliquables, neutralisent les effets de survol qui « collent » au doigt,
   et corrigent les comportements propres aux navigateurs mobiles.
   ========================================================================== */

/* Empêche iOS de gonfler le texte à la rotation de l'écran */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Surbrillance au toucher aux couleurs de la marque plutôt que le bleu par défaut */
a, button, summary, .portal-btn, .badge-soon {
  -webkit-tap-highlight-color: rgba(129, 97, 37, 0.15);
}

/* Défilement fluide sur iOS pour les zones scrollables */
body { -webkit-overflow-scrolling: touch; }

/* Hauteurs de hero : `svh` évite le saut causé par la barre d'outils mobile */
@supports (height: 100svh) {
  .page-hero { min-height: 40svh; }
  .image-break { height: clamp(20rem, 40svh, 30rem); }
}

/* --------------------------------------------------------------------------
   Appareils sans survol : on fige les états de hover pour qu'ils ne
   restent pas « accrochés » après un appui.
   -------------------------------------------------------------------------- */
@media (hover: none) {
  .pillar-teaser:hover {
    transform: none;
    box-shadow: 0 1px 2px rgba(22, 25, 29, 0.03);
  }
  .pillar-teaser:hover .teaser-image img {
    transform: none;
    filter: saturate(0.85) brightness(0.95);
  }
  .pillar-card:hover { background: transparent; }
  .nav-links a:hover::after { width: 0; }
  .btn:hover .arr,
  .pillar-teaser:hover .teaser-link .arr,
  .portal-btn:hover .arr { transform: none; }

  /* Retour visuel à l'appui, plus pertinent que le survol */
  .pillar-teaser:active { transform: scale(0.995); }
  .btn:active, .portal-btn:active, .nav-cta:active { opacity: 0.85; }
}

/* --------------------------------------------------------------------------
   Zones d'appui : 44 px minimum (recommandation Apple HIG et Material)
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {

  /* Bouton du menu */
  .nav-toggle {
    width: 48px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: -0.5rem;
  }

  /* Liens du menu déroulant */
  .nav-links.open {
    padding: 1rem var(--gutter) 1.5rem;
    gap: 0;
    max-height: calc(100vh - 100%);
    max-height: calc(100svh - 100%);
    overflow-y: auto;
    box-shadow: 0 12px 24px rgba(22, 25, 29, 0.08);
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a {
    display: flex;
    align-items: center;
    min-height: 52px;
    width: 100%;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--rule);
  }
  .nav-links.open a::after { display: none; }
  .nav-links.open li:last-child a { border-bottom: none; }

  /* Le bouton Contact doit rester atteignable : sans cette règle il est
     masqué en mobile alors qu'il ne fait pas partie de .nav-links. */
  .nav-links.open .nav-cta-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 1.25rem;
    background: var(--bluestone);
    color: var(--stone-warm);
    border: 1px solid var(--bluestone);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--bluestone);
  }

  /* Boutons principaux : pleine largeur, plus faciles à viser */
  .btn {
    min-height: 52px;
    padding: 0.9rem 1.5rem;
  }
  .page-hero-actions .btn,
  .cta-band .btn {
    width: 100%;
    justify-content: center;
  }
  .cta-band .cta-actions { width: 100%; flex-direction: column; }
  .portal-btn { min-height: 56px; }

  /* Liens de pied de page et sommaire : hauteur d'appui confortable */
  .footer-col ul a,
  .footer-legal .legal-links a,
  .legal-toc ol li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .footer-col ul { gap: 0; }
  .footer-legal .legal-links { gap: 1.75rem; flex-wrap: wrap; }
  .legal-toc ol { gap: 0; }

  /* En-têtes de FAQ : toute la ligne est cliquable */
  details summary { min-height: 52px; padding: 0.25rem 0; }

  /* Champs de formulaire : 16 px minimum, sinon iOS zoome au focus */
  .field input,
  .field select,
  .field textarea,
  .contact-page-form .field input,
  .contact-page-form .field select,
  .contact-page-form .field textarea {
    font-size: 16px;
    min-height: 48px;
    padding: 0.75rem 0;
  }
  .field textarea { min-height: 7rem; }
  .contact-form-wrap .btn,
  .contact-page-form .btn { min-height: 52px; }

  /* Le sélecteur natif iOS a besoin d'un peu d'air */
  .field select { padding-right: 2.25rem; }
}

/* --------------------------------------------------------------------------
   Encoches et barres système (iPhone X et suivants, Android à trous)
   Nécessite viewport-fit=cover dans la balise viewport.
   -------------------------------------------------------------------------- */
@supports (padding: max(0px)) {
  .wrap {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }
  .site-footer { padding-bottom: max(2rem, env(safe-area-inset-bottom)); }
  .nav-links.open {
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }
}

/* --------------------------------------------------------------------------
   Blocage du défilement de la page quand le menu est ouvert
   -------------------------------------------------------------------------- */
body.nav-open {
  overflow: hidden;
  touch-action: none;
}

/* --------------------------------------------------------------------------
   Ajustements typographiques et d'espacement sur très petits écrans
   -------------------------------------------------------------------------- */
@media (max-width: 400px) {
  .brand { font-size: 1rem; gap: 0.6rem; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-name-small { font-size: 0.58rem; letter-spacing: 0.2em; }
  .hero-lockup { gap: 0.9rem; }
  .hero-lockup .lockup-logo { width: 64px; }
  .page-hero h1 { font-size: clamp(1.9rem, 9vw, 2.4rem); }
  .prest-group-head h3 { font-size: 1.35rem; }
  .contact-form-wrap,
  .contact-page-form { padding: 1.5rem; }
  .portal-card { padding: 1.75rem 1.25rem; }
  .notice { padding: 1.25rem; gap: 0.9rem; }
  .legal-toc { padding: 1.25rem; }
}

/* Impression : on retire les fonds sombres et les images décoratives */
@media print {
  .site-header, .nav-toggle, .image-break, .cta-band { display: none; }
  .page-hero { min-height: auto; background: none; color: var(--ink); }
  .page-hero::before { display: none; }
  .page-hero h1, .page-hero .lede { color: var(--ink); }
  body { background: #fff; }
}

/* --------------------------------------------------------------------------
   Cibles tactiles restantes : liens autonomes (logo, fil d'ariane,
   coordonnées, tableaux). Les liens insérés au milieu d'une phrase ne sont
   volontairement pas agrandis — WCAG 2.5.8 les exempte, et forcer 44 px
   déformerait l'interligne du paragraphe.
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .brand { min-height: 46px; }

  .page-hero .breadcrumb a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .page-hero .breadcrumb { margin-bottom: 1.25rem; }

  .contact-item .value a,
  .contact-info-panel .contact-item .value a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .legal-table td a,
  .legal-section .body > p > a[href^="tel:"],
  .legal-section .body > p > a[href^="mailto:"] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  /* Numéros de téléphone et adresses e-mail : appui confortable partout */
  .footer-col ul a[href^="tel:"],
  .footer-col ul a[href^="mailto:"] { min-height: 44px; }

  /* Lien secondaire sous le bouton de l'espace client */
  .portal-sub a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }
}

/* ==========================================================================
   Point de rupture de la navigation
   La barre horizontale (logo + 6 entrées + bouton Contact) réclame environ
   1000 px. En dessous, elle déborde : on bascule donc sur le menu déroulant
   dès 1024 px, ce qui couvre aussi les tablettes en mode portrait et paysage.
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-right: -0.5rem;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--stone-warm);
    padding: 1rem var(--gutter) 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--rule);
    max-height: calc(100vh - 100%);
    max-height: calc(100svh - 100%);
    overflow-y: auto;
    box-shadow: 0 12px 24px rgba(22, 25, 29, 0.08);
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a {
    display: flex;
    align-items: center;
    min-height: 52px;
    width: 100%;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--rule);
  }
  .nav-links.open a::after { display: none; }
  .nav-links.open li:last-child a { border-bottom: none; }
  .nav-links.open .nav-cta-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 1.25rem;
    background: var(--bluestone);
    color: var(--stone-warm);
    border: 1px solid var(--bluestone);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
  }
  .nav-links.open .nav-cta-mobile:hover { color: var(--stone-warm); }
}
@supports (padding: max(0px)) {
  @media (max-width: 1024px) {
    .nav-links.open { padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
  }
}

/* ==========================================================================
   Cibles tactiles — conditionnées au pointeur, pas à la largeur d'écran.
   Une tablette de 768 ou 1024 px reste un appareil tactile et mérite les
   mêmes zones d'appui qu'un téléphone.
   ========================================================================== */
@media (pointer: coarse) {
  .brand { min-height: 46px; }

  .btn { min-height: 52px; padding: 0.9rem 1.5rem; }
  .portal-btn { min-height: 56px; }

  .page-hero .breadcrumb a,
  .contact-item .value a,
  .contact-info-panel .contact-item .value a,
  .legal-table td a,
  .portal-sub a,
  .footer-col ul a,
  .footer-legal .legal-links a,
  .legal-toc ol li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .footer-col ul { gap: 0; }
  .legal-toc ol { gap: 0; }
  .footer-legal .legal-links { gap: 1.75rem; flex-wrap: wrap; }

  details summary { min-height: 52px; padding: 0.25rem 0; }

  /* 16 px minimum : en dessous, iOS zoome automatiquement au focus */
  .field input,
  .field select,
  .field textarea,
  .contact-page-form .field input,
  .contact-page-form .field select,
  .contact-page-form .field textarea {
    font-size: 16px;
    min-height: 48px;
    padding: 0.75rem 0;
  }
  .field textarea { min-height: 7rem; }
  .field select { padding-right: 2.25rem; }
  .contact-form-wrap .btn,
  .contact-page-form .btn { min-height: 52px; }
}
