/* Site v3 (05/10/2026): editorial private-banking look (Hexagone layout, Benoit's brand), city film hero (Remotion).
   System fonts on purpose: Google Fonts is blocked in China. */
:root {
  --navy: #0b1a33; --navy-2: #142646; --gold: #b8894f; --gold-2: #c9a063;
  --ivory: #f7f3ec; --paper: #fffdf9; --line: #e4ddd0; --muted: #5b6475;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--navy); font: 17px/1.65 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.eyebrow { font-size: 12.5px; letter-spacing: .32em; font-weight: 600; color: var(--gold); text-transform: uppercase; }
h2 { font: 400 clamp(32px, 4.2vw, 48px)/1.12 var(--serif); margin: 14px 0 18px; }
.lede { color: var(--muted); max-width: 640px; margin: 0 0 44px; }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 28px; text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; transition: background .2s, color .2s; }
.btn::after { content: "→"; font-size: 16px; letter-spacing: 0; }
.btn-navy { background: var(--navy); color: var(--ivory); }
.btn-navy:hover { background: var(--gold); color: var(--navy); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--ivory); }

/* header */
header.top { position: fixed; inset: 0 0 auto; z-index: 20; transition: background .3s, box-shadow .3s; }
header.top.solid { background: rgba(255,253,249,.96); box-shadow: 0 1px 0 var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: .26em; }
.brand img { height: 36px; }
nav { display: flex; align-items: center; gap: 26px; }
nav a { text-decoration: none; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--navy-2); }
nav a:hover { color: var(--gold); }
nav .btn { padding: 11px 18px; font-size: 12px; }

/* hero: city film behind, ivory veil on the left for the text */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: var(--ivory); }
.hero video, .hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(255,253,249,.97) 0%, rgba(255,253,249,.9) 34%, rgba(255,253,249,.35) 58%, rgba(255,253,249,0) 75%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-text { max-width: 560px; padding: 120px 0 80px; }
.hero .display { font: 400 clamp(46px, 6.4vw, 84px)/1.02 var(--serif); margin: 30px 0 28px; }
.pillars { display: flex; gap: 14px; flex-wrap: wrap; font-weight: 600; font-size: 13.5px; letter-spacing: .28em; }
.pillars span:not(:last-child)::after { content: "·"; margin-left: 14px; color: var(--gold); }
.hero .lead { font: 400 clamp(19px, 2.2vw, 24px)/1.5 var(--serif); margin: 30px 0 38px; }
/* Benoit 11/10 (voice note 72): since the lead line went, the buttons sat right under the pillars; give them air */
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: clamp(56px, 11vh, 120px); }
.hero .btn-line { border: 1px solid var(--navy); color: var(--navy); }
.hero .btn-line:hover { background: var(--navy); color: var(--ivory); }

/* live clocks band */
.clocks { background: var(--navy); color: var(--ivory); }
.clocks .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.clock { padding: 22px 0; display: flex; align-items: baseline; gap: 16px; border-right: 1px solid rgba(247,243,236,.12); padding-left: 28px; }
.clock:first-child { padding-left: 0; }
.clock:last-child { border-right: 0; }
.clock b { font-size: 12px; letter-spacing: .3em; font-weight: 600; color: var(--gold-2); }
.clock time { font: 400 28px var(--serif); font-variant-numeric: tabular-nums; }

/* sections */
section { padding: 110px 0; }
section.alt { background: var(--ivory); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.pillar { padding: 38px 34px 10px 0; border-right: 1px solid var(--line); }
.pillar + .pillar { padding-left: 34px; }
.pillar:last-child { border-right: 0; }
.pillar .n { font: 400 15px var(--serif); color: var(--gold); }
.pillar h3 { font: 600 15px var(--sans); letter-spacing: .28em; margin: 12px 0 14px; }
.pillar p { color: var(--muted); margin: 0; }

.doors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.door { background: var(--paper); padding: 34px 28px; cursor: pointer; border: 0; text-align: left; font: inherit; color: inherit; transition: background .25s; }
.door:hover, .door[aria-expanded="true"] { background: var(--navy); color: var(--ivory); }
.door .n { color: var(--gold); font: 400 14px var(--serif); }
.door h3 { font: 400 23px/1.25 var(--serif); margin: 14px 0 0; }
.door-panel { display: none; grid-column: 1 / -1; background: var(--paper); padding: 34px 28px; }
.door-panel.open { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.door-panel p { margin: 0 0 14px; font: 400 21px/1.5 var(--serif); }
.door-panel ul { margin: 0; padding: 0; list-style: none; }
.door-panel li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.door-panel li::before { content: "— "; color: var(--gold); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; counter-reset: s; }
.step { border-top: 2px solid var(--navy); padding-top: 22px; }
.step .n { font: 400 44px var(--serif); color: var(--gold); line-height: 1; }
.step h3 { font: 600 14px var(--sans); letter-spacing: .24em; text-transform: uppercase; margin: 16px 0 10px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* "Le voyage d'un patrimoine": sticky map + scrolling steps */
.voyage { background: var(--navy); color: var(--ivory); padding: 0; }
.voyage-grid { display: grid; grid-template-columns: 1fr 1.9fr; gap: 70px; }
.voyage-map { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.voyage-map svg { width: 100%; height: auto; overflow: visible; }
.voyage .grid path { stroke: rgba(247,243,236,.08); stroke-width: 1; fill: none; }
.voyage .lat text { fill: rgba(247,243,236,.3); font: 16px var(--sans); letter-spacing: .1em; }
.seg { fill: none; stroke: var(--gold-2); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.6,0,.2,1); }
.seg.drawn { stroke-dashoffset: 0; }
.ville circle { fill: var(--navy); stroke: rgba(247,243,236,.35); stroke-width: 2; transition: all .5s; }
.ville text { fill: rgba(247,243,236,.4); font: 600 22px var(--sans); letter-spacing: .28em; transition: fill .5s; }
.ville.done circle, .ville.here circle { fill: var(--gold-2); stroke: var(--gold-2); }
.ville.here text, .ville.done text { fill: var(--ivory); }
.ville .halo { fill: none !important; stroke: var(--gold-2); opacity: 0; transform-box: fill-box; transform-origin: center; }
.ville.here .halo { animation: halo 2.2s ease-out infinite; }
@keyframes halo { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(4.5); } }
.voyage-coord { font: 400 15px var(--serif); letter-spacing: .14em; color: var(--gold-2); margin-top: 14px; text-align: right; }
.voyage-steps { padding: 18vh 0 30vh; }
.voyage-steps h2 { color: var(--ivory); margin-bottom: 10vh; }
.etape { min-height: 72vh; opacity: .28; transition: opacity .6s; }
.etape.active { opacity: 1; }
.etape .lieu { font-size: 12px; letter-spacing: .3em; color: var(--gold-2); font-weight: 600; }
.etape h3 { font: 400 clamp(30px, 3.4vw, 42px)/1.15 var(--serif); margin: 16px 0 16px; }
.etape p { font: 400 20px/1.55 var(--serif); color: #dfe3ea; margin: 0 0 22px; }
.etape ul { list-style: none; padding: 0; margin: 0 0 30px; }
.etape li { padding: 11px 0; border-bottom: 1px solid rgba(247,243,236,.12); color: #c9cfdb; }
.etape li::before { content: "— "; color: var(--gold-2); }
.etape .btn-navy { background: var(--gold); color: var(--navy); }

/* simulator */
.sim { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--paper); border: 1px solid var(--line); }
.sim-in { padding: 44px; border-right: 1px solid var(--line); }
.sim-in label { display: block; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin: 0 0 6px; }
.sim-in output { font: 400 30px var(--serif); display: block; margin-bottom: 8px; }
.sim-in input[type=range] { width: 100%; accent-color: var(--gold); margin-bottom: 30px; }
.sim-out { padding: 44px; background: var(--navy); color: var(--ivory); display: flex; flex-direction: column; justify-content: center; }
.sim-out .big { font: 400 clamp(40px, 5vw, 60px)/1 var(--serif); color: var(--gold-2); margin: 10px 0 6px; }
.sim-out .sub { color: #c9cfdb; font-size: 15px; }
.sim-out .bar { height: 6px; background: rgba(247,243,236,.15); margin: 28px 0 10px; }
.sim-out .bar i { display: block; height: 100%; background: var(--gold-2); width: 0; transition: width .4s; }
.sim-note { font-size: 13px; color: var(--muted); margin-top: 16px; max-width: 760px; }

/* about */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: 70px; align-items: center; }
.about figure { margin: 0; position: relative; }
.about figure::after { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 1px solid var(--gold); z-index: -1; }
blockquote { font: italic 400 26px/1.45 var(--serif); margin: 0 0 34px; }
.timeline { border-left: 1px solid var(--gold); padding-left: 26px; }
.timeline div { margin-bottom: 18px; }
.timeline b { display: block; color: var(--gold); font-size: 12px; letter-spacing: .26em; }

.guides { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.guide { border: 1px solid var(--line); background: var(--paper); padding: 30px 26px; }
.guide .n { font: 400 13px var(--serif); color: var(--gold); letter-spacing: .1em; }
.guide h3 { font: 400 22px/1.3 var(--serif); margin: 12px 0 10px; }
.guide p { margin: 0; color: var(--muted); font-size: 15px; }

/* weekly + contact over the cities */
.weekly { text-align: center; }
.weekly blockquote { max-width: 720px; margin: 10px auto 0; }
.contact { position: relative; color: var(--ivory); overflow: hidden; padding: 0; }
.contact .bg { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.contact .bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3); }
.contact::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(11,26,51,.86); }
.contact .wrap { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 120px; text-align: center; }
.contact h2 { color: var(--ivory); }
.contact .lede { color: #c9cfdb; margin-left: auto; margin-right: auto; }

footer { background: var(--navy-2); color: #aab3c4; font-size: 13px; padding: 44px 0; }
footer p { max-width: 900px; margin: 0 0 12px; }
footer a { color: #d7dbe4; }
.legal { max-width: 780px; padding: 140px 0 70px; }
.legal h1 { font: 400 42px var(--serif); }
.legal h2 { font: 600 18px var(--sans); margin-top: 34px; }
.todo { background: #fff3cf; padding: 0 4px; }

@media (prefers-reduced-motion: reduce) { .hero video { display: none; } }
@media (max-width: 900px) {
  nav a:not(.btn) { display: none; }
  .hero::before { background: linear-gradient(180deg, rgba(255,253,249,.94) 0%, rgba(255,253,249,.86) 60%, rgba(255,253,249,.5) 100%); }
  .voyage-grid { grid-template-columns: 1fr; gap: 0; }
  .voyage-coord { display: none; }
  .etape { min-height: 60vh; }
  .clocks .wrap, .pillar-grid, .steps, .guides, .sim, .about { grid-template-columns: 1fr; }
  .doors { grid-template-columns: 1fr 1fr; }
  .door-panel.open { grid-template-columns: 1fr; }
  .clock, .clock:first-child { padding-left: 0; border-right: 0; border-bottom: 1px solid rgba(247,243,236,.12); }
  .pillar, .pillar + .pillar { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .sim-in { border-right: 0; }
  section { padding: 72px 0; }
  .wrap { padding: 0 16px; }
  .about figure::after { display: none; }
}

/* illustrated Benoit (Gemini / Nano Banana, 05/10) in each step of the voyage */
.etape .perso { width: 220px; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 3px; margin-bottom: 22px; box-shadow: 0 18px 40px rgba(0,0,0,.35); transform: translateY(20px); transition: transform .8s, opacity .8s; }
.etape.active .perso { transform: none; }
@media (max-width: 900px) { .etape .perso { width: 160px; } }

/* guides are links now (05/10) */
a.guide { text-decoration: none; color: inherit; display: block; transition: border-color .2s, transform .2s; }
a.guide:hover { border-color: var(--gold); transform: translateY(-3px); }
.guide .ask { display: block; margin-top: 16px; font-size: 12.5px; letter-spacing: .14em; color: var(--gold); font-weight: 600; text-transform: uppercase; }

/* mobile route strip (05/10): replaces the geographic map on phones; pinned under the header by JS while the voyage is on screen */
.route { display: none; }
#carte .ville { cursor: pointer; }
@media (max-width: 900px) {
  .voyage-map { position: static; height: 172px; padding: 0; display: block; }
  .voyage-head.pin { position: fixed; left: 0; right: 0; z-index: 15; background: var(--navy); box-shadow: 0 6px 14px rgba(0,0,0,.3); }
  .ville-film { aspect-ratio: auto; height: 96px; margin: 0; border: 0; border-radius: 0; }
  .voyage-map svg { display: none; }
  .route { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; padding: 14px 4px 8px; background: var(--navy); }
  .route-line { position: absolute; left: 12.5%; right: 12.5%; top: 22px; height: 2px; background: rgba(247,243,236,.18); }
  .route-line i { display: block; height: 100%; width: 0; background: var(--gold-2); transition: width 1s cubic-bezier(.6,0,.2,1); }
  .stop { text-align: center; position: relative; z-index: 1; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
  .stop b { display: block; width: 18px; height: 18px; margin: 0 auto 6px; border-radius: 50%; background: var(--navy); border: 2px solid rgba(247,243,236,.4); transition: all .5s; }
  .stop span { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; white-space: nowrap; text-transform: uppercase; color: rgba(247,243,236,.5); transition: color .5s; }
  .stop.done b, .stop.here b { background: var(--gold-2); border-color: var(--gold-2); }
  .stop.here b { box-shadow: 0 0 0 6px rgba(201,160,99,.25); }
  .stop.here span, .stop.done span { color: var(--ivory); }
  .voyage-steps { padding: 18px 0 8vh; }
  .voyage-steps h2 { margin-bottom: 28px; }
  .etape { min-height: 62vh; scroll-margin-top: 140px; }
}

/* city film above the map (desktop) / panoramic banner (mobile), 05/10 */
.ville-film { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; border: 1px solid rgba(201,160,99,.35); margin-bottom: 26px; background: var(--navy-2); }
.ville-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.ville-film video.on { opacity: 1; }
@media (max-width: 900px) {
  .ville-film { aspect-ratio: auto; height: 96px; margin: 0; border: 0; border-radius: 0; }
}

/* desktop: airliner in the empty part of the map + city film seen through a cabin window (05/10) */
@media (min-width: 901px) {
  .carte-box { position: relative; border-radius: 6px; overflow: visible;
    background:
      linear-gradient(90deg, var(--navy) 0%, var(--navy) 30%, rgba(11,26,51,.35) 62%, rgba(11,26,51,.15) 100%),
      linear-gradient(0deg, var(--navy) 0%, var(--navy) 58%, rgba(11,26,51,0) 82%),
      var(--navy) url("assets/villes/avion.jpg") 78% -12% / 60% auto no-repeat; }
  .carte-box svg { position: relative; z-index: 1; }
  .voyage-head { position: absolute; left: 4%; bottom: 6%; width: 23%; z-index: 2; }
  .ville-film { aspect-ratio: 4 / 5; margin: 0; border-radius: 44% / 38%; border: 5px solid #e7e1d6;
    box-shadow: inset 0 0 0 2px rgba(0,0,0,.25), 0 10px 26px rgba(0,0,0,.45), 0 0 0 1px rgba(201,160,99,.5); }
  .ville-film::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 2; pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 40%); }
}
@media (min-width: 901px) {
  .fond-cabine .carte-box { background:
      linear-gradient(90deg, var(--navy) 0%, rgba(11,26,51,.9) 25%, rgba(11,26,51,.35) 60%, rgba(11,26,51,.25) 100%),
      linear-gradient(0deg, rgba(11,26,51,.85) 0%, rgba(11,26,51,0) 50%),
      var(--navy) url("assets/villes/cabine.jpg") 70% 40% / cover no-repeat; }
}

/* 09/10/2026 (lot A): French H1 in the eyebrow, brand line keeps the big serif look */
h1.eyebrow { margin: 0; }
/* fixed simulator examples: readable without JavaScript (Google, AI crawlers) */
.sim-table { width: 100%; max-width: 760px; margin-top: 28px; border-collapse: collapse; font-size: 15px; }
.sim-table caption { text-align: left; font-weight: 600; margin-bottom: 10px; }
.sim-table th, .sim-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(11,26,51,.12); vertical-align: top; }
.sim-table small { color: var(--muted); }
.contact .alt-link { margin-top: 18px; }
.contact .alt-link a { color: #c9cfdb; text-decoration: underline; }
/* guide request form (09/10/2026) */
.guide-form { max-width: 560px; margin-top: 44px; display: grid; gap: 14px; }
.guide-form h3 { margin: 0 0 4px; font: 400 26px var(--serif); }
.guide-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.guide-form input, .guide-form select { font: inherit; padding: 11px 12px; border: 1px solid rgba(11,26,51,.25); border-radius: 4px; background: #fff; color: var(--navy); }
.guide-form .consent { display: block; font-weight: 400; color: var(--muted); }
.guide-form .consent input { margin-right: 8px; }
.guide-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.guide-form button { justify-self: start; }
.form-msg { min-height: 1.4em; margin: 0; }
.nowrap { white-space: nowrap; }

/* lot B (10/10/2026): guide pages and simulator page */
.page { max-width: 860px; padding: 140px 28px 80px; }
.page h1 { font: 400 clamp(38px, 5vw, 56px)/1.1 var(--serif); margin: 14px 0 12px; }
.page h2 { font: 400 clamp(26px, 3vw, 34px)/1.2 var(--serif); margin: 56px 0 18px; }
.page .lede { margin-bottom: 28px; font-size: 19px; }
.page .intro p { margin: 0 0 14px; }
.page .intro + .btn { margin-top: 12px; }
.reperes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.reperes div { border: 1px solid var(--line); background: var(--ivory); padding: 22px; }
.reperes b { display: block; font: 400 30px/1.15 var(--serif); color: var(--gold); margin-bottom: 8px; }
.reperes p { margin: 0 0 10px; font-size: 15px; }
.reperes small, .page .sources { color: var(--muted); font-size: 13px; }
.sommaire li { margin: 6px 0; }
.faq details, .transcription { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary, .transcription summary { cursor: pointer; font-weight: 600; }
.faq details p, .transcription p { margin: 10px 0 0; }
.video { margin: 0 0 12px; }
.video video { width: 100%; max-width: 300px; aspect-ratio: 9 / 16; display: block; background: var(--navy); }
.video figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.page .guide-form { margin-top: 56px; }
.page .sources { margin-top: 40px; }
.page .sim { margin-top: 10px; }
@media (max-width: 900px) { .reperes { grid-template-columns: 1fr; } .page .sim { grid-template-columns: 1fr; } .page .sim-in { border-right: 0; } }

/* Lot C: La semaine en 3 points (/semaine/, pages built by the server, remotion/site-semaine.mjs) */
.semaine { max-width: 720px; }
.semaine h2 { font-size: 26px; margin: 40px 0 12px; }
.semaine-nav { margin-top: 32px; font-size: 15px; }
.semaine-nav a, .page .sources a { color: var(--navy); }
.semaines { list-style: none; padding: 0; margin: 0; max-width: 760px; }
.semaines li { border-top: 1px solid var(--line); }
.semaines a { display: block; padding: 22px 0; text-decoration: none; color: var(--navy); }
.semaines a:hover b { color: var(--gold); }
.semaines b { display: block; font: 400 22px var(--serif); margin-bottom: 4px; }
.semaines span { color: var(--muted); }
.weekly .btn { margin-top: 24px; }

/* Lot D: questions fréquentes (/questions/, built by 08 Outils/build_faq.py) */
.faq-themes { font-size: 15px; margin: -20px 0 10px; }
.faq-themes a, .faq-src a, .door-panel li a { color: inherit; }
.faq-src { font-size: 14px; color: var(--muted); }
.faq details[open] summary { color: var(--gold); }
.faq details, .page h2[id] { scroll-margin-top: 110px; }
