/* ================================================================
   OWL Advisory & Services
   ================================================================ */
:root {
  --navy-950: #050918;
  --navy-900: #0a1230;
  --navy-800: #0f1a40;
  --navy-700: #16224f;
  --brand: #202d57;
  --ivory: #f3f1ec;
  --muted: rgba(243, 241, 236, 0.64);
  --faint: rgba(243, 241, 236, 0.38);
  --line: rgba(243, 241, 236, 0.13);
  --ice: #aebde6;
  --warm: #ffcf96;
  --sans: "Jost", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.77, 0, 0.175, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4.5vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
html, body { background: var(--navy-900); color: var(--ivory); font-family: var(--sans); font-weight: 300; }
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--ice); color: var(--navy-900); }

.mono { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--ice); }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------- Chargement ---------------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; align-content: center; gap: 22px;
  background: var(--navy-900);
  transition: clip-path 1.3s var(--ease), visibility 1.3s;
  clip-path: inset(0 0 0 0);
}
.loader__mark { width: 86px; }
.loader__owl { width: 100%; overflow: visible; }
.loader__owl path {
  fill: var(--ivory); fill-opacity: 0; stroke: var(--ivory); stroke-width: 1.6;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 2.2s var(--ease) forwards, fill-in 0.9s ease 1.7s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill-in { to { fill-opacity: 1; stroke-opacity: 0; } }
.loader__word { display: flex; gap: 0.22em; font-size: 44px; font-weight: 300; letter-spacing: 0.08em; overflow: hidden; }
.loader__word span { display: inline-block; transform: translateY(105%); animation: up 1s var(--out) forwards; }
.loader__word span:nth-child(1) { animation-delay: 1.2s; }
.loader__word span:nth-child(2) { animation-delay: 1.28s; }
.loader__word span:nth-child(3) { animation-delay: 1.36s; }
@keyframes up { to { transform: none; } }
.loader__sub { color: var(--muted); letter-spacing: 0.42em; opacity: 0; animation: fade 1s ease 1.6s forwards; }
@keyframes fade { to { opacity: 1; } }
.loader__pct { position: absolute; bottom: 32px; right: var(--gutter); color: var(--faint); }
.loader__pct span { color: var(--ivory); }
body.is-ready .loader { clip-path: inset(0 0 100% 0); visibility: hidden; }

/* ---------------- Canvas 3D ---------------- */
.webgl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.no-webgl .webgl { background: url("../img/08-panorama.jpg") center / cover; filter: brightness(0.45) saturate(0.7); }

/* ---------------- Curseur ---------------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; mix-blend-mode: difference; }
.cursor span {
  display: block; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: #fff; transition: transform 0.35s var(--out);
}
.cursor.is-hover span { transform: scale(4.2); }
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------------- Navigation ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  transition: background 0.5s, backdrop-filter 0.5s, padding 0.5s, transform 0.6s var(--ease);
}
body.is-loading .nav, body.is-loading .hud { opacity: 0; }
.nav, .hud { transition-property: background, backdrop-filter, padding, transform, opacity; }
body.is-scrolled .nav { background: rgba(10, 18, 48, 0.62); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding-block: 14px; }
body.nav-hidden .nav { transform: translateY(-110%); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__owl { width: 20px; height: 37px; fill: var(--ivory); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-weight: 300; font-size: 24px; letter-spacing: 0.1em; }
.brand__text small { font-size: 8.5px; letter-spacing: 0.3em; color: var(--muted); margin-top: 4px; }
.nav__links { display: flex; gap: 36px; font-size: 14px; font-weight: 400; }
.nav__links a { position: relative; color: var(--muted); transition: color 0.3s; }
.nav__links a:hover { color: var(--ivory); }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------------- Boutons ---------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px; overflow: hidden; isolation: isolate;
  padding: 17px 28px; border-radius: 999px; font-size: 15px; font-weight: 400; white-space: nowrap;
  transition: color 0.45s var(--ease);
}
button.btn { font-family: inherit; cursor: pointer; background: none; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(102%); transition: transform 0.55s var(--ease); }
.btn:hover::before { transform: none; }
.btn i { font-style: normal; transition: transform 0.45s var(--ease); }
.btn:hover i { transform: translateX(5px); }
.btn--light, button.btn--light { background: var(--ivory); color: var(--navy-900); }
.btn--light::before { background: var(--ice); }
.btn--line { border: 1px solid rgba(243, 241, 236, 0.3); color: var(--ivory); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--line::before { background: var(--ivory); }
.btn--line:hover { color: var(--navy-900); }
.btn--sm { padding: 12px 22px; font-size: 14px; }
.btn--lg { padding: 24px 40px; font-size: 18px; }

/* ---------------- HUD ---------------- */
.hud { position: fixed; inset: 0; z-index: 30; pointer-events: none; transition: opacity 0.6s; }
body.past-story .hud { opacity: 0; }
.hud__scroll { position: absolute; left: var(--gutter); bottom: 28px; display: flex; align-items: center; gap: 14px; color: var(--muted); transition: opacity 0.6s; }
body.is-scrolled .hud__scroll { opacity: 0; }
.hud__line { position: relative; width: 1px; height: 46px; background: var(--line); overflow: hidden; }
.hud__line::after { content: ""; position: absolute; left: 0; right: 0; height: 40%; background: var(--ivory); animation: drop 2.2s var(--ease) infinite; }
@keyframes drop { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
.hud__rail { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); list-style: none; display: grid; gap: 16px; transition: opacity 0.5s; }
body.band-in .hud__rail { opacity: 0; }
.hud__rail li { display: flex; align-items: center; justify-content: flex-end; gap: 12px; color: var(--faint); transition: color 0.4s; }
.hud__rail li em { font-style: normal; opacity: 0; transform: translateX(6px); transition: opacity 0.4s, transform 0.4s var(--out); }
.hud__rail li::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width 0.5s var(--out); }
.hud__rail li.is-active { color: var(--ivory); }
.hud__rail li.is-active em { opacity: 1; transform: none; }
.hud__rail li.is-active::after { width: 42px; }
.hud__count { position: absolute; right: var(--gutter); bottom: 28px; color: var(--muted); }
.hud__n { color: var(--ivory); font-variant-numeric: tabular-nums; }

/* ---------------- Histoire (chapitres au-dessus de la 3D) ---------------- */
main { position: relative; z-index: 10; }
.story { position: relative; }
.chapter { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px var(--gutter); }
.chapter--hero { flex-direction: column; align-items: flex-start; justify-content: flex-end; padding-bottom: clamp(96px, 15vh, 150px); }
.chapter--right { justify-content: flex-end; padding-right: calc(var(--gutter) + 150px); }
.chapter--owl { align-items: flex-end; justify-content: center; text-align: center; padding-bottom: 12vh; }
.chapter--end { min-height: 60vh; }
.chapter__box {
  max-width: 490px; padding: 34px 36px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(15, 26, 64, 0.62), rgba(10, 18, 48, 0.35));
  border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0; transform: translateY(40px);
  transition: opacity 1s var(--out), transform 1.2s var(--out);
}
.chapter.in .chapter__box { opacity: 1; transform: none; }
.chapter--owl .chapter__box { max-width: none; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; }
.chapter__box p { margin-top: 16px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.chapter__box .h2 { margin-top: 18px; font-size: clamp(32px, 3.6vw, 56px); }
.chapter__person { display: flex; align-items: center; gap: 20px; }
.chapter__person img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(174, 189, 230, 0.5), 0 0 0 6px rgba(174, 189, 230, 0.08); }
.chapter__person .h3 { font-weight: 300; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -0.015em; }
.chapter__box .chapter__person p { margin-top: 8px; color: var(--ice); font-size: 11px; line-height: 1.5; }
/* « Pour qui ? » : bandeau horizontal en bas de l'écran, sous le hibou */
.chapter--band { align-items: flex-end; justify-content: center; padding-bottom: calc(11vh + 20px); }
.chapter--band .chapter__box { width: 100%; max-width: 1180px; display: grid; gap: 18px; padding: 24px 30px; }
.chapter--band .h2 { margin-top: 0; font-size: clamp(26px, 2.3vw, 36px); line-height: 1.05; }
.profiles { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.profiles li { padding: 4px 20px; border-left: 1px solid var(--line); }
.profiles li:first-child { padding-left: 0; border-left: 0; }
.profiles h3 { font-size: 16px; font-weight: 400; line-height: 1.3; color: var(--ivory); }
.chapter__box .profiles p { margin-top: 6px; font-size: 14px; line-height: 1.5; }

.eyebrow { color: var(--ice); display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.display { font-weight: 200; font-size: clamp(40px, 5.6vw, 104px); line-height: 0.95; letter-spacing: -0.035em; margin: 22px 0 26px; text-shadow: 0 10px 60px rgba(5, 9, 24, 0.6); }
.display .serif { font-weight: 400; letter-spacing: -0.02em; color: var(--ice); }
.mask { display: block; overflow: hidden; padding-bottom: 0.06em; }
.rise { display: inline-block; transform: translateY(110%); transition: transform 1.4s var(--out); }
.in .rise, .in.rise, body.is-ready .chapter--hero .rise { transform: none; }
body.is-ready .chapter--hero .mask:nth-child(2) .rise { transition-delay: 0.1s; }
body.is-ready .chapter--hero .mask:nth-child(3) .rise { transition-delay: 0.2s; }
.lead { max-width: 460px; font-size: 17px; line-height: 1.7; color: var(--muted); }
.actions { display: flex; flex-direction: column; align-items: stretch; width: fit-content; gap: 12px; margin-top: 34px; }
.actions .btn { justify-content: center; }
/* « Où nous trouver » : lien discret sous les boutons */
.locate { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--muted); font-size: 13px; transition: color 0.3s; }
.locate .mono { color: var(--ivory); }
.locate__addr { position: relative; }
.locate__addr::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.locate:hover { color: var(--ivory); }
.locate:hover .locate__addr::after { transform: scaleX(1); transform-origin: left; }
.locate i { font-style: normal; font-size: 12px; transition: transform 0.4s var(--ease); }
.locate:hover i { transform: translateY(3px); }
.locate__pin { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--warm); flex: none; }
.locate__pin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--warm); animation: ping 2.4s var(--out) infinite; }
@keyframes ping { from { transform: scale(1); opacity: 0.6; } to { transform: scale(3.2); opacity: 0; } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--out), transform 1.1s var(--out); }
.reveal.in { opacity: 1; transform: none; }
body.is-ready .chapter--hero .reveal { opacity: 1; transform: none; }
body.is-ready .chapter--hero .eyebrow { transition-delay: 0.1s; }
body.is-ready .chapter--hero .lead { transition-delay: 0.45s; }
body.is-ready .chapter--hero .actions { transition-delay: 0.6s; }
body.is-ready .chapter--hero .locate { transition-delay: 0.8s; }

.h2 { font-weight: 200; font-size: clamp(38px, 5.2vw, 84px); line-height: 1; letter-spacing: -0.03em; }
.h2 .serif { color: var(--ice); }

/* ---------------- Sections de contenu ---------------- */
.section { position: relative; background: var(--navy-900); padding: clamp(96px, 14vw, 180px) 0; }
.section__head { display: grid; gap: 22px; margin-bottom: clamp(48px, 7vw, 96px); }
.ledger { border-radius: 36px 36px 0 0; margin-top: -40px; box-shadow: 0 -40px 80px rgba(5, 9, 24, 0.5); }

/* Grand livre */
.ledger__table { border-top: 1px solid var(--line); }
.ledger__head, .ledger__row { display: grid; grid-template-columns: 90px 1fr 260px 60px; align-items: center; gap: 24px; }
.ledger__head { padding: 16px 0; color: var(--faint); border-bottom: 1px solid var(--line); }
.ledger__row { position: relative; padding: 30px 0; border-bottom: 1px solid var(--line); isolation: isolate; }
.ledger__row::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -0.5); z-index: -1; border-radius: 16px;
  background: linear-gradient(90deg, rgba(174, 189, 230, 0.1), rgba(174, 189, 230, 0.02));
  transform: scaleY(0); transition: transform 0.6s var(--ease);
}
.ledger__row:hover::before { transform: none; }
.ledger__row .ref { color: var(--faint); transition: color 0.4s; }
.ledger__row .title { font-size: clamp(24px, 2.8vw, 40px); font-weight: 300; letter-spacing: -0.015em; display: grid; }
.ledger__row .title small { font-size: 15px; color: var(--muted); letter-spacing: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.6s var(--ease), opacity 0.5s, margin 0.6s var(--ease); }
.ledger__row:hover .title small { max-height: 90px; opacity: 1; margin-top: 10px; }
.ledger__row .who { color: var(--muted); }
.ledger__row .arrow { justify-self: end; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); font-size: 18px; transition: transform 0.6s var(--ease), background 0.4s, color 0.4s; }
.ledger__row:hover .arrow { transform: rotate(45deg); background: var(--ivory); color: var(--navy-900); }
.ledger__row:hover .ref { color: var(--ivory); }

/* Bureaux */
.offices__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 110px); align-items: center; }
.offices__pano img { width: 100%; height: 118%; object-fit: cover; transform: translateY(var(--py, 0)); will-change: transform; }
.offices__text .h2 { margin: 22px 0 24px; }
.offices__text > p { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 420px; }
.offices__pano { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 3 / 2; }
.offices__pano figcaption { position: absolute; right: 16px; bottom: 12px; font-size: 9.5px; color: rgba(243, 241, 236, 0.75); text-shadow: 0 1px 6px rgba(5, 9, 24, 0.8); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.facts dt { color: var(--faint); margin-bottom: 8px; }
.facts dd { color: var(--ivory); line-height: 1.7; text-transform: none; letter-spacing: 0.02em; font-size: 13px; }
.facts a { border-bottom: 1px solid var(--line); transition: border-color 0.3s; }
.facts a:hover { border-color: var(--ivory); }
.reveal-clip { clip-path: inset(18% 0 0 0 round 28px); opacity: 0; transition: clip-path 1.4s var(--ease), opacity 1s; }
.reveal-clip.in { clip-path: inset(0 0 0 0 round 28px); opacity: 1; }

/* Contact */
.contact { padding-bottom: 0; background: radial-gradient(ellipse at 50% 0%, var(--navy-700), var(--navy-900) 60%); }
.contact__title { font-weight: 200; font-size: clamp(48px, 8.4vw, 150px); line-height: 0.92; letter-spacing: -0.04em; margin: 28px 0 56px; }
.contact__title .serif { color: var(--ice); }
/* coordonnées mises en avant */
.contact__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.contact__card {
  position: relative; display: grid; gap: 14px; align-content: start; overflow: hidden; isolation: isolate;
  padding: 30px 30px 26px; border-radius: 22px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(22, 34, 79, 0.75), rgba(10, 18, 48, 0.4));
  transition: transform 0.6s var(--out), border-color 0.4s;
}
.contact__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ivory); transform: translateY(101%); transition: transform 0.6s var(--ease); }
.contact__card:hover { transform: translateY(-4px); border-color: transparent; }
.contact__card:hover::before { transform: none; }
.contact__card .mono { color: var(--ice); transition: color 0.4s; }
.contact__card strong { font-weight: 300; font-size: clamp(21px, 1.75vw, 27px); line-height: 1.2; letter-spacing: -0.01em; overflow-wrap: anywhere; transition: color 0.4s; }
.contact__card strong small { display: block; margin-top: 6px; font-size: 15px; letter-spacing: 0; white-space: nowrap; color: var(--muted); transition: color 0.4s; }
.contact__card em { font-style: normal; font-size: 14px; color: var(--muted); transition: color 0.4s; }
.contact__card em i { display: inline-block; font-style: normal; transition: transform 0.4s var(--ease); }
.contact__card:hover .mono, .contact__card:hover strong, .contact__card:hover strong small, .contact__card:hover em { color: var(--navy-900); }
.contact__card:hover em i { transform: translateX(4px); }

.footer { margin-top: clamp(80px, 12vw, 160px); border-top: 1px solid var(--line); overflow: hidden; }
.footer__word { font-weight: 200; font-size: clamp(120px, 34vw, 560px); line-height: 0.78; letter-spacing: 0.02em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(174, 189, 230, 0.22); margin: 40px 0 -2vw; user-select: none; }
.footer__bar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding-top: 22px; padding-bottom: 26px; color: var(--muted); border-top: 1px solid var(--line); position: relative; background: var(--navy-900); }
.footer__bar a:hover { color: var(--ivory); }
/* informations légales obligatoires (dénomination, siège, BCE, TVA, ITAA) */
.footer__legal { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-bottom: 26px; background: var(--navy-900); font-size: 12px; line-height: 1.6; color: var(--faint); }
.footer__legal a { color: var(--muted); border-bottom: 1px solid var(--line); transition: color 0.3s, border-color 0.3s; }
.footer__legal a:hover { color: var(--ivory); border-color: var(--ivory); }

/* ---------------- Page « Mentions légales » ---------------- */
.page-legal .nav { background: rgba(10, 18, 48, 0.62); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding-block: 14px; }
.legal { max-width: 900px; padding-top: clamp(130px, 16vw, 180px); padding-bottom: 110px; }
.legal .h2 { margin: 22px 0 22px; }
.legal__intro { max-width: 640px; font-size: 17px; line-height: 1.7; color: var(--muted); }
.legal section { margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal h2.mono { margin-bottom: 20px; color: var(--ice); }
.legal dl { display: grid; grid-template-columns: 220px 1fr; gap: 12px 28px; }
.legal dt { font-size: 14px; line-height: 1.7; color: var(--faint); }
.legal dd { font-size: 15.5px; line-height: 1.7; color: var(--ivory); }
.legal p { font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal a { border-bottom: 1px solid var(--line); transition: color 0.3s, border-color 0.3s; }
.legal a:hover { color: var(--ivory); border-color: var(--ivory); }
.footer--legal { margin-top: 0; }

/* ---------------- Menu « Prendre rendez-vous » ---------------- */
.rdv {
  position: fixed; inset: auto; margin: 0; width: 320px; padding: 10px;
  color: var(--ivory); border: 1px solid var(--line); border-radius: 20px;
  background: rgba(13, 22, 56, 0.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.rdv:popover-open { animation: rdv-in 0.35s var(--out); }
@keyframes rdv-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }
.rdv__title { padding: 10px 12px 8px; color: var(--faint); }
.rdv__item { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; transition: background 0.3s; }
.rdv__item:hover, .rdv__item:focus-visible { background: rgba(243, 241, 236, 0.08); outline: none; }
.rdv__icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(174, 189, 230, 0.35); color: var(--ice); transition: background 0.3s, color 0.3s; }
.rdv__icon svg { width: 18px; height: 18px; fill: currentColor; }
.rdv__item:hover .rdv__icon { background: var(--ivory); color: var(--navy-900); border-color: var(--ivory); }
.rdv__text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.rdv__text strong { font-weight: 400; font-size: 16px; }
.rdv__text small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rdv__item i { font-style: normal; color: var(--muted); transition: transform 0.4s var(--ease), color 0.3s; }
.rdv__item:hover i { transform: translateX(4px); color: var(--ivory); }
.rdv::backdrop { background: transparent; }

/* ---------------- Responsive ---------------- */
/* coordonnées : 2 colonnes dès que l'adresse e-mail ne tiendrait plus sur une ligne */
@media (max-width: 1160px) {
  .contact__cards { grid-template-columns: repeat(2, 1fr); }
}
/* ordinateurs portables peu hauts : l'accueil se resserre pour ne pas toucher « Défiler pour explorer » */
@media (min-width: 981px) and (max-height: 820px) {
  .chapter--hero { padding-top: 100px; padding-bottom: 104px; }
  .display { font-size: clamp(40px, min(5.6vw, 8.6vh), 104px); margin: 16px 0 20px; }
  .actions { margin-top: 26px; }
  .locate { margin-top: 18px; }
}
/* écrans tactiles (pas de survol) : les descriptions des services restent visibles */
@media (hover: none) {
  .ledger__row .title small { max-height: none; opacity: 1; margin-top: 8px; }
}
@media (max-width: 980px) {
  .nav__links { display: none; }
  .hud__rail { display: none; }
  .ledger__head { display: none; }
  .ledger__row { grid-template-columns: 44px 1fr 46px; gap: 14px; padding: 24px 0; }
  .ledger__row .who { grid-column: 2; grid-row: 2; }
  .ledger__row .arrow { grid-column: 3; grid-row: 1 / 3; }
  .ledger__row .title small { max-height: none; opacity: 1; margin-top: 8px; }
  .offices__grid { grid-template-columns: 1fr; }
}
/* mise en page empilée (téléphones, tablettes à la verticale) : la scène en haut, le texte en bas */
@media (max-width: 980px) and (min-height: 501px), (orientation: portrait) {
  .chapter { padding: 100px var(--gutter); }
  .chapter--right, .chapter--left { justify-content: center; align-items: flex-end; padding-bottom: 12vh; }
  .chapter__box { padding: 26px 24px; }
  .chapter--band { padding-bottom: 12vh; }
  .chapter--band .chapter__box { grid-template-columns: 1fr; gap: 14px; padding: 22px 22px 12px; }
  .profiles { grid-template-columns: 1fr; }
  .profiles li, .profiles li:first-child { padding: 10px 0; border-left: 0; border-top: 1px solid var(--line); }
  .chapter__box .profiles p { margin-top: 3px; font-size: 13.5px; }
}
/* fenêtre étroite plus large que haute : même accueil que sur téléphone, l'immeuble garde le haut */
@media (max-width: 980px) and (min-height: 501px) and (orientation: landscape) {
  .chapter--hero { padding-top: max(110px, 42vh); padding-top: max(110px, 42svh); padding-bottom: 40px; }
  .hud__scroll, .hud__count { display: none; }
}
@media (max-width: 600px) {
  /* accueil : l'immeuble garde le haut de l'écran, le texte commence au plus haut à 42 % */
  .chapter--hero { padding-top: max(110px, 42vh); padding-top: max(110px, 42svh); padding-bottom: 30px; }
  .hud__scroll { display: none; }
  .eyebrow { gap: 10px; font-size: 10px; letter-spacing: 0.06em; }
  .eyebrow::before { width: 24px; }
  .display { font-size: 38px; margin: 16px 0 18px; }
  .lead { font-size: 15.5px; line-height: 1.6; }
  .actions { margin-top: 24px; }
  .locate { margin-top: 16px; }
  .chapter--band .h2 { font-size: 22px; }
  .contact__cards { grid-template-columns: 1fr; }
  .rdv { left: 12px; right: 12px; bottom: 12px; top: auto; width: auto; padding: 12px; border-radius: 22px; }
  .rdv:popover-open { animation-name: rdv-up; }
  @keyframes rdv-up { from { opacity: 0; transform: translateY(24px); } }
  .rdv::backdrop { background: rgba(5, 9, 24, 0.5); }
  .chapter__box .profiles p { display: none; }
  .profiles li { padding: 9px 0; }
  .brand__text small { display: none; }
  .legal dl { grid-template-columns: 1fr; gap: 0; }
  .legal dd { margin-bottom: 14px; }
  .hud__count { display: none; }
  .facts { grid-template-columns: 1fr; }
  .btn--lg { padding: 20px 30px; font-size: 16px; }
}
/* téléphone à l'horizontale : texte à gauche, scène à droite */
@media (max-height: 500px) and (orientation: landscape) {
  .nav { padding-block: 12px; }
  .chapter { padding: 76px var(--gutter) 40px; }
  .chapter--hero { padding-bottom: 28px; }
  .chapter--hero > * { max-width: 54%; }
  .display { font-size: clamp(28px, 8.6vh, 104px); margin: 12px 0 14px; }
  .lead { font-size: 14.5px; line-height: 1.55; }
  .actions { margin-top: 18px; }
  .actions .btn { padding: 14px 24px; }
  .locate { margin-top: 12px; }
  .hud__scroll, .hud__count { display: none; }
  .chapter--right { padding-right: var(--gutter); }
  .chapter--right .chapter__box { max-width: 60%; padding: 18px 22px; }
  .chapter__person { gap: 14px; }
  .chapter__person img { width: 48px; height: 48px; }
  .chapter__person .h3 { font-size: 22px; }
  .chapter__box p { margin-top: 12px; font-size: 13.5px; line-height: 1.55; }
  .chapter--band { padding-bottom: 20px; }
  .chapter--band .chapter__box { gap: 10px; padding: 16px 22px; }
  .chapter--band .h2 { font-size: 22px; }
  .chapter__box .profiles p { display: none; }
  .chapter--owl { padding-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
