/* OBA · obascenseurs.fr · feuille de style unique */
@font-face { font-family: "Archivo"; src: url("fonts/archivo-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/plex-mono-500.woff") format("woff"); font-weight: 500; font-display: swap; }

:root {
  --lavande: #6A2CE0; --lavande-700: #5520C2; --lavande-300: #B394F5; --lavande-100: #EDE6FF; --brume: #F6F3FF;
  --ambre: #FFC23D; --ambre-600: #E8A400; --ambre-800: #8A5A00;
  --encre: #140E24; --encre-700: #4A4458; --encre-500: #6E6782; --gris-clair: #CFC9DD;
  --ligne: #E6E0F5; --ok: #1B7F4C;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Archivo", system-ui, sans-serif; color: var(--encre); background: #FFFFFF; line-height: 1.5; }
img, svg { display: block; }
a { color: var(--lavande); }
a:hover { color: var(--lavande-700); }
:focus-visible { outline: 3px solid var(--ambre); outline-offset: 3px; }
.mono { font-family: "Plex", ui-monospace, monospace; font-weight: 500; }
.wrap { max-width: var(--max); margin: 0 auto; }
.section { padding: clamp(64px, 8vw, 120px) var(--pad); }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--lavande); margin: 0; }
.eyebrow::before { content: ""; width: 24px; height: 6px; background: var(--ambre-600); flex: none; }
.on-dark .eyebrow { color: var(--lavande-300); }
.on-dark .eyebrow::before, .on-lavande .eyebrow::before { background: var(--ambre); }
.on-lavande .eyebrow { color: #FFFFFF; }
h1, h2, h3 { font-weight: 600; margin: 0; }
h2 { margin-top: 18px; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -.025em; }
.lead { margin: 20px 0 0; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--encre-700); max-width: 700px; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 14px 20px; border-radius: 6px; font-weight: 600; font-size: 16px; line-height: 1.2; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--lavande); color: #FFFFFF; }
.btn-primary:hover { background: var(--lavande-700); color: #FFFFFF; }
.btn-ghost { color: #FFFFFF; border-color: rgba(255,255,255,.55); font-weight: 400; }
.btn-ghost:hover { color: #FFFFFF; border-color: #FFFFFF; background: rgba(255,255,255,.06); }
.btn-outline { color: var(--lavande); border-color: var(--lavande); }

/* En-tête */
.hero { position: relative; background: var(--encre); color: #FFFFFF; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.hero-art { position: absolute; right: -60px; top: 80px; width: min(520px, 46vw); aspect-ratio: 520 / 650; }
.hero-art .gaine { position: absolute; inset: 0; border: clamp(36px, 5vw, 72px) solid var(--lavande); }
.hero-art .fond { position: absolute; inset: clamp(36px, 5vw, 72px); background: #1E1636; }
/* Le palier monte dans la gaine avec le défilement : --p va de 0 (haut de page) à 1 */
.hero-art .palier { position: absolute; left: 0; right: 0; top: 72%; height: 11.7%; background: var(--ambre); transform: translateY(calc(var(--p, 0) * -521%)); will-change: transform; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .scroll-hint span { animation: none; } html { scroll-behavior: auto; } }

.nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px var(--pad); }
.nav-links { display: flex; align-items: center; gap: 10px 26px; font-size: 15px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a.txt { color: #FFFFFF; text-decoration: none; }
.nav-links a.txt:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-links .btn { padding: 11px 16px; font-size: 15px; }
.menu-btn { display: none; background: none; border: 1.5px solid rgba(255,255,255,.55); color: #FFFFFF; border-radius: 6px; width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; }
.hero-body { position: relative; z-index: 1; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px var(--pad) 120px; max-width: 900px; }
.hero h1 { margin-top: 22px; font-size: clamp(40px, 6vw, 78px); line-height: 1.02; letter-spacing: -.03em; }
.hero p { margin: 24px 0 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--gris-clair); max-width: 620px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.scroll-hint { position: absolute; left: var(--pad); bottom: 34px; display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .16em; color: var(--lavande-300); }
.scroll-hint span { width: 2px; height: 34px; background: var(--ambre); animation: pulse 1.8s ease-in-out infinite; }

/* Outils */
.split { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 56px; align-items: stretch; }
.split > * { flex: 1 1 440px; min-width: 0; }
.demo { background: var(--brume); padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; }
.demo-card { background: #FFFFFF; border: 1px solid var(--ligne); padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.demo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-500); }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; }
.badge::before { content: ""; width: 8px; height: 8px; background: currentColor; }
.badge-ok { color: var(--ok); background: #E7F4EC; }
.steps { list-style: none; margin: 22px 0 0; padding: 0; }
.steps li { display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid var(--ligne); }
.steps time { width: 52px; flex: none; font-size: 14px; color: var(--encre-500); }
.steps b { font-weight: 600; }
.steps p { margin: 2px 0 0; font-size: 14px; color: var(--encre-700); }
.progress { display: flex; gap: 4px; margin-top: auto; padding-top: 16px; }
.progress span { flex: 1; height: 6px; background: var(--lavande); }
.demo-note { margin: 12px 0 0; font-size: 13px; color: var(--encre-500); }
.checklist { display: flex; flex-direction: column; justify-content: space-between; }
.checklist ul { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--ligne); }
.checklist li:last-child { border-bottom: 1px solid var(--ligne); }
.checklist li::before { content: ""; width: 12px; height: 12px; background: var(--lavande); margin-top: 7px; flex: none; }
.checklist li.ambre::before { background: var(--ambre); }
.checklist h3 { font-size: 20px; }
.checklist p { margin: 6px 0 0; font-size: 16px; line-height: 1.55; color: var(--encre-700); }

/* Transparence */
.on-lavande { background: var(--lavande); color: #FFFFFF; position: relative; overflow: hidden; }
.on-lavande::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 14px; background: var(--ambre); }
.on-lavande .split { margin-top: 0; align-items: center; position: relative; }
.on-lavande .txt { background: var(--lavande); padding: 8px 0; }
.on-lavande .lead { color: var(--lavande-100); max-width: 520px; }
.board { background: #FFFFFF; color: var(--encre); padding: 24px; box-shadow: 0 24px 60px rgba(20,14,36,.28); }
.board-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.board-head b { font-size: 18px; font-weight: 600; }
.table { margin-top: 16px; }
.row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.2fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--ligne); align-items: center; }
.row:last-child { border-bottom: 1px solid var(--ligne); }
.row.th { font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--encre-500); padding: 12px 0; }
.row .dispo { font-size: 20px; color: var(--lavande); }
.row .nb { font-size: 20px; }
.row .st { font-size: 13px; font-weight: 600; }
.st-ok { color: var(--ok); } .st-en-cours { color: var(--ambre-800); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tags span { font-size: 14px; background: var(--brume); padding: 8px 12px; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 44px; }
.card { border: 1px solid var(--ligne); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 22px; margin-top: 8px; }
.card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--encre-700); }
.card.dark { background: var(--encre); color: #FFFFFF; border-color: var(--encre); }
.card.dark p { color: var(--gris-clair); }

/* Engagements */
.engagements { background: var(--brume); padding: clamp(56px, 6vw, 88px) var(--pad); }
.engagements .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.engagements .big { font-size: clamp(44px, 5vw, 64px); color: var(--lavande); letter-spacing: -.03em; line-height: 1.1; }
.engagements .pal { width: 24px; height: 6px; background: var(--ambre-600); margin: 14px 0; }
.engagements p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--encre-700); }

/* Réseaux */
.social-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.feed { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 40px; }
.feed a { aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; text-decoration: none; position: relative; overflow: hidden; }
.feed a span { font-size: 15px; font-weight: 600; position: relative; }
.feed .t1 { background: var(--lavande-100); color: var(--encre); }
.feed .t2 { background: var(--encre); color: #FFFFFF; }
.feed .t3 { background: var(--ambre); color: var(--encre); }
.feed .t4 { background: var(--lavande); color: #FFFFFF; }

/* Contact */
.on-dark { background: var(--encre); color: #FFFFFF; }
.on-dark .lead { color: var(--gris-clair); max-width: 440px; }
.contact-ways { margin-top: 36px; display: flex; flex-direction: column; gap: 18px; max-width: 440px; }
.contact-ways > div { border-top: 1px solid rgba(255,255,255,.25); padding-top: 18px; }
.contact-ways .kicker { color: var(--lavande-300); }
.contact-ways a { display: block; color: #FFFFFF; margin-top: 8px; }
.contact-ways .tel { font-size: 28px; text-decoration: none; }
.contact-ways .mail { font-size: 18px; }
.contact-ways p { margin: 4px 0 0; font-size: 15px; color: var(--gris-clair); }
form.contact { background: #FFFFFF; color: var(--encre); padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: 14px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pills span { display: block; border: 1.5px solid #D9D2EA; padding: 10px 14px; border-radius: 6px; font-size: 15px; }
.pills input:checked + span { background: var(--lavande); border-color: var(--lavande); color: #FFFFFF; }
.pills input:focus-visible + span { outline: 3px solid var(--ambre); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 12px; border: 1.5px solid #D9D2EA; border-radius: 6px; color: var(--encre); background: #FFFFFF; }
.field input:focus, .field textarea:focus { border-color: var(--lavande); outline: none; }
.rgpd { font-size: 13px; color: var(--encre-500); margin: 0; }
.form-status { font-size: 15px; margin: 0; }
.form-status.ok { color: var(--ok); } .form-status.err { color: #C42B3E; }
.hp { position: absolute; left: -9999px; }

/* Pied */
footer { background: var(--lavande); color: #FFFFFF; padding: 48px var(--pad) 28px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }
.descr { margin-top: 14px; font-size: 13px; font-weight: 600; letter-spacing: .16em; display: flex; align-items: center; gap: 8px; }
.descr i { width: 14px; height: 4px; background: var(--ambre); }
.foot-cols { display: flex; flex-wrap: wrap; gap: 40px; font-size: 15px; line-height: 1.8; }
.foot-cols b { font-weight: 600; display: block; }
.foot-cols span, .foot-cols a { color: var(--lavande-100); }
.legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--lavande-100); }
.legal a { color: var(--lavande-100); }

/* Rail de guidage : la cabine suit toute la page, chaque section est un étage */
.etages-nav { position: fixed; right: 26px; top: 50%; transform: translateY(-50%); height: min(52vh, 420px); width: 14px; z-index: 40; }
.gaine-track { position: absolute; inset: 0; }
.gaine-track::before { content: ""; position: absolute; top: 0; bottom: 0; left: 6px; width: 2px; background: var(--lavande-300); opacity: .55; }
.gaine-palier { position: absolute; left: 0; width: 14px; height: 14px; top: 0; background: var(--lavande); box-shadow: 0 0 0 1.5px rgba(255,255,255,.85); transition: top .12s ease-out; }
.gaine-etages { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.gaine-etages li { position: absolute; right: 7px; transform: translateY(-50%); }
.gaine-etages a { display: flex; align-items: center; justify-content: flex-end; gap: 8px; height: 24px; text-decoration: none; }
.gaine-etages a::after { content: ""; width: 7px; height: 2px; background: var(--lavande-300); opacity: .8; }
.gaine-etages span { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; background: var(--encre); color: #FFFFFF; padding: 4px 8px; margin-right: 10px; opacity: 0; transform: translateX(6px); transition: opacity .15s, transform .15s; pointer-events: none; }
.gaine-etages a:hover span, .gaine-etages a:focus-visible span { opacity: 1; transform: none; }
.gaine-etages a.actif::after { background: var(--ambre); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .gaine-palier { transition: none; } }

/* Mobile */
@media (max-width: 1000px) {
  .menu-btn { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 84px; left: var(--pad); right: var(--pad); background: var(--encre); border: 1px solid #2C2442; padding: 16px; flex-direction: column; align-items: stretch; gap: 10px; }
  .nav.open .nav-links { display: flex; }
  .nav-links a.txt { padding: 10px 4px; }
  .nav-links .btn { justify-content: center; }
  .hero-art { opacity: .35; right: -120px; }
}
@media (max-width: 760px) { .etages-nav { right: 8px; height: 40vh; width: 10px; } .gaine-track::before { left: 4px; } .gaine-palier { width: 10px; height: 10px; } .gaine-etages li { right: 5px; } .gaine-etages span { display: none; } }
@media (max-width: 560px) {
  .row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .6fr); }
  .row > :nth-child(4) { grid-column: 1 / -1; margin-top: -6px; }
  .row.th > :nth-child(4) { display: none; }
  .hero .ctas .btn { width: 100%; justify-content: center; }
  .hero-art { top: auto; bottom: -70px; right: -90px; width: 220px; opacity: .45; }
  .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .feed a { padding: 14px; }
}
@media (max-width: 900px) { .on-lavande::before { display: none; } }

/* Pages secondaires */
.page-simple { min-height: 100vh; display: flex; flex-direction: column; }
.page-simple header { background: var(--encre); padding: 22px var(--pad); }
.page-simple main { flex-grow: 1; padding: clamp(48px, 6vw, 88px) var(--pad); }
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.02em; margin: 18px 0 24px; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: 0; }
.prose p, .prose li { font-size: 16px; line-height: 1.65; color: var(--encre-700); }
