/* OneAppStay (oneappstay.ai · oneappstay.com) — Charte « Swiss Coral & Architectural Slate »
   Aucune teinte verte · Palette pure : Blanc #FFFFFF · Ardoise #0F172A · Corail #FF385C · Rosé #FFF1F3 · Gris #F7F8FA
   Typographie : Plus Jakarta Sans + Inter · Direct-to-the-point, animations produit interactives. */

:root {
  --bg: #FFFFFF;
  --surface: #F7F8FA;
  --slate: #0F172A;
  --slate-soft: #1E293B;
  --ink: #0F172A;
  --muted: #526071;
  --subtle: #7B8794;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --coral: #FF385C;
  --coral-hover: #E02749;
  --coral-soft: #FFF1F3;
  --coral-border: #FECDD3;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-btn: 10px;
  --shadow-card: 0 24px 60px -24px rgba(15, 23, 42, 0.16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
.tabular { font-variant-numeric: tabular-nums; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(18px, 4vw, 36px);
}

/* ==================== HEADER ==================== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.head-in {
  height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand img { height: 34px; width: auto; }
.nav {
  display: flex; align-items: center; gap: 26px;
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.nav a { white-space: nowrap; transition: color .15s; }
.nav a:hover { color: var(--slate); }
.head-actions { display: flex; align-items: center; gap: 10px; }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-btn);
  font-size: 14.5px; font-weight: 700;
  border: 1.5px solid transparent; cursor: pointer;
  transition: all .15s ease; white-space: nowrap;
}
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-hover); }
.btn-slate { background: var(--slate); color: #fff; }
.btn-slate:hover { background: var(--slate-soft); }
.btn-outline { background: #fff; color: var(--slate); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--slate); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ==================== HERO ==================== */
.hero {
  padding: clamp(36px, 5vw, 64px) 0 clamp(44px, 6vw, 72px);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 4.5vw, 56px);
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--coral-soft); color: var(--coral);
  border: 1px solid var(--coral-border);
  font-size: 12.5px; font-weight: 700;
  padding: 6px 13px; border-radius: 999px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.03em;
  color: var(--slate); margin: 0 0 16px;
}
.hero h1 span { color: var(--coral); }
.hero-lead {
  font-size: 16.5px; line-height: 1.6; color: var(--muted);
  margin: 0 0 22px; max-width: 54ch;
}
.hero-points {
  list-style: none; padding: 0; margin: 0 0 26px;
  display: grid; gap: 10px;
}
.hero-points li {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: var(--slate);
}
.chk {
  width: 21px; height: 21px; border-radius: 50%; flex-shrink: 0;
  background: var(--coral-soft); color: var(--coral);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-trust {
  margin-top: 16px; font-size: 13.5px; color: var(--muted);
}
.hero-trust strong { color: var(--slate); }

/* ==================== PRODUCT APP MOCKUP (ANIMATED) ==================== */
.app-mock {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.mock-bar {
  background: var(--slate); color: #fff;
  padding: 13px 18px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; font-weight: 700;
}
.mock-bar-left { display: flex; align-items: center; gap: 8px; }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--coral);
  box-shadow: 0 0 0 0 rgba(255, 56, 92, 0.65);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(255, 56, 92, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(255, 56, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 56, 92, 0); }
}

.mock-body { padding: 18px; display: grid; gap: 14px; }

.voice-bar {
  background: var(--coral-soft);
  border: 1px solid var(--coral-border);
  border-radius: 12px;
  padding: 11px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.voice-left { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--slate); }
.wave {
  display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 6px;
  border-radius: 8px; background: var(--coral); flex-shrink: 0;
}
.wave i {
  display: block; width: 3px; height: 6px; border-radius: 99px; background: #fff;
  animation: eq 1.1s ease-in-out infinite;
}
.wave i:nth-child(2) { animation-delay: .18s; }
.wave i:nth-child(3) { animation-delay: .36s; }
.wave i:nth-child(4) { animation-delay: .12s; }
@keyframes eq {
  0%, 100% { height: 5px; }
  50% { height: 15px; }
}
.voice-ok {
  font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 6px;
  background: var(--slate); color: #fff; white-space: nowrap;
}

.cal-card {
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: #fff;
}
.cal-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 10px;
}
.cal-row {
  display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center;
  padding: 7px 0; border-top: 1px solid #F1F5F9; font-size: 12.5px; font-weight: 700; color: var(--slate);
}
.cal-bars { display: flex; gap: 6px; }
.stay-pill {
  padding: 5px 10px; border-radius: 6px;
  font-size: 11.5px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p-coral { background: var(--coral); flex: 1.25; }
.p-slate { background: var(--slate); flex: 1; }
.p-slate-soft { background: #334155; flex: 1.05; }
.p-muted { background: #64748B; flex: 0.9; }

.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-tile {
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; background: var(--surface);
}
.m-lbl { font-size: 11px; font-weight: 700; color: var(--subtle); text-transform: uppercase; letter-spacing: .04em; }
.m-val { font-size: 13.5px; font-weight: 800; color: var(--slate); margin-top: 3px; }
.m-ok { font-size: 11.5px; font-weight: 700; color: var(--coral); margin-top: 3px; }

/* ==================== PLATFORMS STRIP ==================== */
.platforms-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.platforms-in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
}
.platforms-lbl {
  font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle);
}
.platforms-logos {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px;
}
.plat-logo {
  display: inline-flex; align-items: center; color: var(--slate); opacity: .75; transition: opacity .15s;
}
.plat-logo:hover { opacity: 1; }
.plat-logo svg { height: 22px; width: auto; }

/* ==================== SECTIONS ==================== */
.sec { padding: clamp(52px, 6.5vw, 84px) 0; border-bottom: 1px solid var(--border); }
.sec-surface { background: var(--surface); }
.sec-slate { background: var(--slate); color: #fff; border-bottom: none; }
.sec-head { max-width: 720px; margin-bottom: 36px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--coral); margin-bottom: 8px;
}
.sec-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 10px; color: var(--slate);
}
.sec-slate .sec-head h2 { color: #fff; }
.sec-head p { font-size: 16px; color: var(--muted); margin: 0; }
.sec-slate .sec-head p { color: #94A3B8; }

/* ==================== INTERACTIVE ANIMATED EXPLAINERS ==================== */
.exp-tabs {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px;
}
.exp-tab {
  border: 1.5px solid var(--border-strong); background: #fff; color: var(--muted);
  padding: 10px 18px; border-radius: 10px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all .18s ease;
}
.exp-tab:hover { border-color: var(--slate); color: var(--slate); }
.exp-tab.active {
  background: var(--slate); color: #fff; border-color: var(--slate);
}

.exp-stage {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(22px, 3.5vw, 38px);
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 44px); align-items: center;
}
.exp-panel { display: none; }
.exp-panel.active { display: contents; }
.exp-panel.active > * { animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.exp-copy h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 800; color: var(--slate);
  margin: 0 0 10px; line-height: 1.2;
}
.exp-copy p { font-size: 15px; color: var(--muted); margin: 0 0 18px; }
.exp-kpis { display: grid; gap: 8px; }
.exp-kpi {
  font-size: 13.5px; font-weight: 700; color: var(--slate);
  display: flex; align-items: center; gap: 9px;
}
.exp-kpi::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); flex-shrink: 0;
}

/* Visual stage box */
.anim-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; min-height: 270px; display: flex; flex-direction: column; justify-content: center; gap: 14px;
}

/* Anim 1: Multi-platform sync flow */
.sync-flow {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center;
}
.sync-sources { display: grid; gap: 8px; }
.sync-node {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; font-size: 12.5px; font-weight: 700; color: var(--slate);
  display: flex; justify-content: space-between; align-items: center;
  transition: all .3s ease;
}
.sync-node.firing {
  border-color: var(--coral); background: var(--coral-soft); color: var(--coral);
  transform: translateX(4px);
}
.sync-hub {
  width: 68px; height: 68px; border-radius: 16px; background: var(--slate); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; text-align: center;
  box-shadow: 0 0 0 0 rgba(255, 56, 92, 0.35);
  animation: pulseDot 2.2s infinite;
}
.sync-out { display: grid; gap: 8px; }
.sync-result {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 12px; font-size: 12px; font-weight: 700; color: var(--slate);
}
.sync-result span { display: block; font-size: 11px; color: var(--coral); margin-top: 2px; }

/* Anim 2: Voice dictation */
.voice-demo-card {
  background: var(--slate); color: #fff; border-radius: 12px; padding: 18px;
  display: grid; gap: 14px;
}
.voice-quote {
  font-size: 16px; font-weight: 700; min-height: 46px; line-height: 1.4;
}
.voice-reply {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px; padding: 12px 14px; font-size: 13px; color: #E2E8F0;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.voice-tag {
  background: var(--coral); color: #fff; font-size: 11px; font-weight: 800;
  padding: 4px 10px; border-radius: 6px; white-space: nowrap;
}

/* Anim 3: Check-in stepper */
.step-track { display: grid; gap: 10px; }
.st-row {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; font-weight: 700; color: var(--muted);
  transition: all .3s ease;
}
.st-row.done {
  border-color: var(--slate); color: var(--slate);
}
.st-row.current {
  border-color: var(--coral); background: var(--coral-soft); color: var(--slate);
  transform: translateX(4px);
}
.st-pill {
  font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px;
  background: var(--surface); color: var(--muted);
}
.st-row.current .st-pill { background: var(--coral); color: #fff; }
.st-row.done .st-pill { background: var(--slate); color: #fff; }

/* ==================== FEATURES 4 CARDS ==================== */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feat {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.feat-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--coral-soft); color: var(--coral);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800;
}
.feat h3 { font-size: 16.5px; font-weight: 800; color: var(--slate); margin: 0; }
.feat p { font-size: 14px; color: var(--muted); margin: 0; }

/* ==================== REFERENCES ==================== */
.refs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ref-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
}
.ref-photo { aspect-ratio: 16 / 9; overflow: hidden; }
.ref-photo img { width: 100%; height: 100%; object-fit: cover; }
.ref-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ref-top { display: flex; align-items: center; gap: 12px; }
.ref-top img { width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0; }
.ref-city { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--coral); }
.ref-top h3 { font-size: 18px; font-weight: 800; color: var(--slate); margin: 0; }
.ref-body p { margin: 0; font-size: 14px; color: var(--muted); }
.ref-link {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 13.5px; font-weight: 700; color: var(--slate);
  display: flex; justify-content: space-between; align-items: center;
}
.ref-link:hover { color: var(--coral); }

/* ==================== CONFIGURATEUR & COMMANDE ==================== */
.order-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px; align-items: start;
}
.order-card {
  background: #fff; color: var(--ink);
  border-radius: var(--radius-lg); padding: clamp(22px, 3.5vw, 32px);
}
.curr-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border);
}
.curr-toggle {
  display: inline-flex; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden;
}
.curr-btn {
  border: none; background: #fff; color: var(--muted);
  padding: 7px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
  border-right: 1px solid var(--border);
}
.curr-btn:last-child { border-right: none; }
.curr-btn.active { background: var(--slate); color: #fff; }

.ctrl { margin-bottom: 20px; }
.ctrl-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.ctrl-head label { font-size: 14px; font-weight: 700; color: var(--slate); }
.ctrl-val { font-size: 18px; font-weight: 800; color: var(--coral); }
input[type="range"] { width: 100%; accent-color: var(--coral); cursor: pointer; }

.opts-list { display: grid; gap: 10px; margin-top: 10px; }
.opt-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.opt-row:hover { border-color: var(--slate); }
.opt-row input { width: 18px; height: 18px; accent-color: var(--coral); flex-shrink: 0; }
.opt-left { display: flex; align-items: center; gap: 10px; }
.opt-name { font-size: 14px; font-weight: 700; color: var(--slate); }
.opt-desc { font-size: 12px; color: var(--muted); display: block; }
.opt-price { font-size: 13.5px; font-weight: 800; color: var(--slate); white-space: nowrap; }

.cod-banner {
  background: var(--coral-soft); color: var(--slate);
  border: 1px solid var(--coral-border); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 18px;
  font-size: 13.5px; font-weight: 600;
}
.cod-banner strong { display: block; font-size: 15px; font-weight: 800; color: var(--coral); margin-bottom: 2px; }

.summary-lines {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 14px 0; margin-bottom: 18px; display: grid; gap: 8px; font-size: 14px;
}
.sum-row { display: flex; justify-content: space-between; gap: 12px; }
.sum-total { font-size: 18px; font-weight: 800; color: var(--slate); padding-top: 8px; border-top: 1px dashed var(--border-strong); }

.field { margin-bottom: 13px; }
.field label {
  display: block; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); margin-bottom: 5px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 14.5px; color: var(--ink); background: #fff; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--slate); }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ==================== FAQ & CONTACT ==================== */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px;
}
.faq-item h3 { font-size: 15.5px; font-weight: 800; color: var(--slate); margin: 0 0 6px; }
.faq-item p { font-size: 14px; color: var(--muted); margin: 0; }

.contact-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start;
}

/* ==================== FOOTER ==================== */
footer {
  padding: 28px 0; background: #fff; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--muted);
}
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }

@media (max-width: 980px) {
  .hero-grid, .exp-stage, .grid-4, .refs-grid, .order-grid, .faq-grid, .contact-box {
    grid-template-columns: 1fr;
  }
  .sync-flow { grid-template-columns: 1fr; justify-items: stretch; }
  .sync-hub { margin: 0 auto; }
  .nav { display: none; }
}
@media (max-width: 600px) {
  .form-2, .mock-grid { grid-template-columns: 1fr; }
  /* En-tête : logo visible, un seul bouton (corrigé ordre 746, débordement à 375 px) */
  .head-in { gap: 10px; }
  .brand img { height: 28px; }
  .head-actions .btn-outline { display: none; }
  .head-actions .btn-sm { padding-left: 12px; padding-right: 12px; font-size: 13px; }
  /* Maquette du haut : rien ne sort de la carte */
  .app-mock { overflow: hidden; }
  .mock-bar { flex-wrap: wrap; gap: 4px 12px; }
  .voice-bar { flex-wrap: wrap; gap: 8px; }
  .cal-row { grid-template-columns: 72px minmax(0, 1fr); }
  .cal-bars { flex-wrap: wrap; min-width: 0; }
  .cal-head { flex-wrap: wrap; gap: 4px 10px; }
}
.sum-note { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
