/* Lieu3D – site principal (www.lieu3d.fr)
   Une seule famille, Instrument Sans, auto-hébergée. Blanc, encre et ardoise (le bleu des toits de château),
   avec une pierre dorée réservée aux repères de plan. Le seul élément fort : la visite 3D vivante du haut de page. */
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url('/fonts/instrument-sans-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url('/fonts/instrument-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #ffffff;
  --mist: #eef1f4;      /* bandes */
  --ink: #1e252c;       /* texte */
  --muted: #5b646e;     /* texte secondaire */
  --line: #dde2e7;      /* filets */
  --slate: #2f4558;     /* ardoise : actions, liens */
  --slate-deep: #22323f;
  --stone: #b8893c;     /* pierre dorée : repères de plan uniquement */
  --font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --w: 1160px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font); }
img, iframe { display: block; max-width: 100%; }
a { color: var(--slate); text-underline-offset: 3px; }
a:hover { color: var(--slate-deep); }
:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--w); margin-inline: auto; padding-inline: 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: #fff; padding: 8px 12px; }

/* ---------- en-tête */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.brand svg { width: 24px; height: 24px; flex: none; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15.5px; }
.nav a:not(.btn):hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 20px; border-radius: 10px; background: var(--slate); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; border: 1px solid var(--slate); }
.btn:hover { background: var(--slate-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--slate); border-color: #b9c4ce; }
.btn.ghost:hover { border-color: var(--slate); color: var(--slate-deep); background: transparent; }
.btn.sm { min-height: 40px; padding: 8px 15px; font-size: 15px; }

/* ---------- ouverture : le texte à gauche, la visite vivante à droite */
.hero { padding-block: 56px 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -0.035em; }
.hero .lede { margin-top: 20px; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 46ch; }
.hero .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .free { margin-top: 18px; font-size: 15px; color: var(--muted); }

.stage { min-width: 0; }
.frame { position: relative; aspect-ratio: 16 / 11; border-radius: 16px; overflow: hidden; background: #dfe4e9; border: 1px solid #cfd7de; box-shadow: 0 30px 60px -36px rgba(34, 50, 63, 0.55); }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* repères de plan en pierre dorée aux quatre coins, à l'extérieur du cadre : la maquette est un plan qu'on visite */
.stage-in { position: relative; }
.stage-in::before, .stage-in::after, .marks::before, .marks::after { content: ''; position: absolute; width: 16px; height: 16px; border-color: var(--stone); border-style: solid; pointer-events: none; }
.stage-in::before { top: -9px; left: -9px; border-width: 2px 0 0 2px; }
.stage-in::after { top: -9px; right: -9px; border-width: 2px 2px 0 0; }
.marks { position: absolute; inset: 0; pointer-events: none; }
.marks::before { bottom: -9px; left: -9px; border-width: 0 0 2px 2px; }
.marks::after { bottom: -9px; right: -9px; border-width: 0 2px 2px 0; }
.configs { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.cfg { display: inline-flex; align-items: baseline; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid #c6d0d9; background: #fff; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.cfg b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--slate); }
.cfg:hover { border-color: var(--slate); }
.cfg[aria-pressed="true"] { background: var(--slate); border-color: var(--slate); color: #fff; }
.cfg[aria-pressed="true"] b { color: #fff; }
.caption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ---------- sections */
section { padding-block: 80px; }
.band { background: var(--mist); }
.sec-head { max-width: 760px; }
.sec-head h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: 18px; max-width: 60ch; }

/* pour qui : deux usages côte à côte */
.uses { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid #cdd5dc; }
.use { padding: 28px 40px 0 0; }
.use + .use { padding: 28px 0 0 40px; border-left: 1px solid #cdd5dc; }
.use h3 { font-size: 22px; }
.use p { margin-top: 12px; max-width: 52ch; }
.use .src { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ce que contient la visite : liste de définitions sur deux colonnes */
.features { margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.features div { padding: 20px 0; border-top: 1px solid var(--line); }
.features dt { font-weight: 600; font-size: 18px; }
.features dd { margin: 6px 0 0; color: var(--muted); max-width: 48ch; }
.honest { margin-top: 36px; padding: 20px 24px; border-left: 3px solid var(--stone); background: #faf8f3; max-width: 760px; }
.honest strong { font-weight: 600; }

/* déroulé : une vraie séquence, donc numérotée */
.steps { margin: 40px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--slate); color: var(--slate); font-weight: 600; margin-bottom: 16px; }
.steps h3 { font-size: 19px; }
.steps p { margin-top: 8px; color: var(--muted); }

/* tarifs */
.offer { margin-top: 32px; padding: 16px 20px; border-radius: 12px; background: var(--paper); border: 1px solid #cdd5dc; font-size: 17px; }
.offer strong { font-weight: 600; color: var(--slate); }
.plans { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: grid; grid-template-rows: auto auto auto 1fr; gap: 10px; padding: 26px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); min-width: 0; }
.plan.main { border: 2px solid var(--slate); }
.plan h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 20px; }
.plan .tag { font-size: 13px; font-weight: 600; letter-spacing: 0; color: #fff; background: var(--slate); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.price b { display: block; font-size: 38px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); font-size: 15px; }
.plan .for { color: var(--muted); font-size: 15px; }
.plan ul { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 7px; align-content: start; font-size: 15.5px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 9px; height: 5px; border-left: 2px solid var(--slate); border-bottom: 2px solid var(--slate); transform: rotate(-45deg); }
.notes { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--muted); font-size: 15px; max-width: 80ch; }
.notes strong { color: var(--ink); font-weight: 600; }

/* questions */
.faq { margin-top: 32px; max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--slate); border-bottom: 2px solid var(--slate); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--muted); max-width: 68ch; }

/* contact : la seule bande sombre */
.contact { background: var(--slate); color: #fff; }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 56px; align-items: center; }
.contact h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; }
.contact p { margin-top: 14px; color: #d3dde6; max-width: 52ch; }
.contact .btn { background: #fff; color: var(--slate); border-color: #fff; }
.contact .btn:hover { background: #e8eef3; color: var(--slate-deep); }
.reach { display: grid; gap: 12px; }
.reach .line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.reach .line span { color: #c3cfda; font-size: 15px; }
.reach .line a { color: #fff; font-weight: 600; font-size: 18px; text-decoration: none; word-break: break-all; }
.reach .line a:hover { text-decoration: underline; }

/* pied de page */
.foot { padding-block: 32px 40px; font-size: 14.5px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }

/* pages de texte (mentions, confidentialité) */
.doc { padding-block: 56px 72px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.doc .updated { margin-top: 10px; color: var(--muted); font-size: 15px; }
.doc h2 { margin-top: 40px; font-size: 22px; }
.doc p, .doc ul { margin-top: 12px; }
.doc ul { padding-left: 20px; }
.doc li + li { margin-top: 6px; }
.doc .todo { background: #fff6e0; padding: 2px 6px; border-radius: 4px; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero { padding-block: 40px 56px; }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .contact .wrap { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .wrap { padding-inline: 16px; }
  .nav a:not(.btn) { display: none; }
  section { padding-block: 56px; }
  .hero h1 { font-size: 36px; }
  .hero .lede { font-size: 17.5px; }
  .frame { aspect-ratio: 4 / 3.4; }
  .uses { grid-template-columns: minmax(0, 1fr); }
  .use, .use + .use { padding: 24px 0 0; border-left: 0; }
  .use + .use { margin-top: 24px; border-top: 1px solid #cdd5dc; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .faq summary { font-size: 17px; }
}
@media (max-width: 380px) {
  .top .btn.sm { padding-inline: 12px; font-size: 14px; }
  .brand { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
