/* =============================================================================
   ZapBiz — Landing "Bientôt en ligne"  (tout tient sur un écran)
   ========================================================================== */

:root {
  --wrap: 1240px;

  --bg: #faf6ee;
  --bg-glow: #f7efe0;

  --ink: #1a2540;
  --muted: #5d6478;
  --muted-2: #8b91a1;

  --violet: #6d5df6;
  --violet-d: #5a48ee;
  --violet-soft: #efeafe;

  --gold: #b98a3a;
  --gold-2: #d3a34e;
  --gold-arrow: #cba96b;
  --orbit: #e4d6bd;

  --card: #ffffff;
  --cream-icon: #fbf1dd;
  --tan: #f1e7d5;
  --tan-line: #ebe3d6;
  --field: #fdfbf7;
  --field-border: #e7e0d3;
  --badge-bg: #f3e9d7;

  --shadow-card: 0 22px 48px -30px rgba(26, 32, 60, .34);
  --shadow-float: 0 14px 34px -16px rgba(26, 32, 60, .26);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --hand: "Caveat", "Segoe Script", cursive;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 600px at 80% -12%, var(--bg-glow), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 40px;
}
.muted { color: var(--muted-2); }

/* Sur grand écran, on garde tout dans une hauteur d'écran. */
body { display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

/* ============================= HEADER ============================= */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 6px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 6px 16px -6px rgba(26,32,60,.45); }
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.badge-construction {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--badge-bg); color: var(--ink);
  font-weight: 700; font-size: 14px; padding: 9px 17px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(185,138,58,.18);
}
.badge-construction svg { width: 16px; height: 16px; color: var(--gold); }

/* ============================= HERO ============================= */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 40px;
  padding-top: 14px; padding-bottom: 8px;
}
.eyebrow { margin: 0 0 12px; font-size: 13.5px; font-weight: 700; letter-spacing: .18em; color: var(--gold); }
.eyebrow span { letter-spacing: 0; }
.hero-title {
  margin: 0 0 16px;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.05; font-weight: 800; letter-spacing: -.025em;
}
.hero-title .accent { color: var(--violet); }
.lead { margin: 0 0 22px; max-width: 470px; font-size: 16.5px; line-height: 1.55; color: var(--muted); }

/* ---- signup card ---- */
.signup {
  background: var(--card); border: 1px solid #f0e9dd; border-radius: 20px;
  padding: 20px 22px; box-shadow: var(--shadow-card); max-width: 520px;
}
.signup-head { display: flex; align-items: center; gap: 13px; margin-bottom: 15px; }
.signup-icon {
  flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--cream-icon); border-radius: 12px; color: var(--gold);
}
.signup-icon svg { width: 21px; height: 21px; }
.signup-head h2 { margin: 0 0 2px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.signup-head p { margin: 0; font-size: 14px; color: var(--muted); }

.signup-form { display: flex; gap: 10px; }
.signup-form input[type="email"] {
  flex: 1 1 auto; height: 50px; padding: 0 17px; font: inherit; font-size: 15px;
  color: var(--ink); background: var(--field); border: 1px solid var(--field-border);
  border-radius: 12px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.signup-form input::placeholder { color: #a6abb8; }
.signup-form input[type="email"]:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(109,93,246,.14); }
.hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; }

#submit-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px;
  height: 50px; padding: 0 22px; font: inherit; font-weight: 700; font-size: 15px;
  color: #fff; cursor: pointer; background: var(--violet); border: none; border-radius: 12px;
  box-shadow: 0 12px 26px -12px rgba(109,93,246,.8); transition: background .15s, transform .06s;
}
#submit-btn svg { width: 18px; height: 18px; transition: transform .15s; }
#submit-btn:hover { background: var(--violet-d); }
#submit-btn:hover svg { transform: translateX(3px); }
#submit-btn:active { transform: translateY(1px); }
#submit-btn:disabled { opacity: .65; cursor: default; box-shadow: none; }

.signup-msg { margin: 10px 2px 0; font-size: 13.5px; min-height: 0; }
.signup-msg.show { min-height: 18px; }
.signup-msg.ok { color: #1a8a4f; }
.signup-msg.err { color: #d0453c; }

.perks {
  list-style: none; margin: 15px 0 0; padding: 14px 0 0; border-top: 1px solid #f2ece1;
  display: flex; flex-wrap: wrap; gap: 9px 20px;
}
.perks li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--muted); }
.perks svg { width: 17px; height: 17px; color: var(--gold-2); flex: 0 0 auto; }

/* ---- mockup ---- */
.hero-right { position: relative; }
.mockup { position: relative; padding: 30px 4% 34px 6%; }

/* ligne décorative (orbite) derrière la scène */
.orbit {
  position: absolute; top: -6%; left: -8%; width: 116%; height: 118%;
  z-index: 0; pointer-events: none;
}

.mockup .dash {
  position: relative; z-index: 1; width: 100%;
  border-radius: 14px; box-shadow: 0 36px 70px -34px rgba(26,32,60,.5);
  border: 1px solid rgba(26,32,60,.06);
}

.mockup .phone {
  position: absolute; left: -4%; bottom: -5%; width: 27%;
  transform: rotate(-6deg); transform-origin: bottom center;
  filter: drop-shadow(0 26px 40px rgba(26,32,60,.4));
  z-index: 3;
}

/* note manuscrite + flèche */
.note {
  position: absolute; top: -26px; right: 4%; margin: 0;
  font-family: var(--hand); font-size: 24px; font-weight: 600; line-height: 1.15;
  color: #6b7186; text-align: center; z-index: 4;
}
.note-arrow { position: absolute; top: 8px; right: -1%; width: 62px; height: 72px; z-index: 4; }

/* cartes flottantes — placées SUR LES BORDS, jamais sur le téléphone */
.float {
  position: absolute; z-index: 5; display: flex; align-items: center; gap: 11px;
  background: #fff; border: 1px solid #f0e9dd; border-radius: 15px;
  padding: 11px 14px; box-shadow: var(--shadow-float); max-width: 232px;
}
.float-ic {
  flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--violet-soft); color: var(--violet); border-radius: 11px;
}
.float-ic svg { width: 19px; height: 19px; }
.float strong { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.float span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.float-rdv   { top: -5%;  left: -4%; }
.float-pay   { top: 11%;  right: -5%; }
.float-avis  { bottom: 1%; left: 34%; }
.float-stats { bottom: 21%; right: -5%; }

/* ============================= FEATURES ============================= */
.features {
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--tan-line);
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 22px;
}
.feature-ic {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--tan); color: #3b4258; border-radius: 12px; margin-bottom: 11px;
}
.feature-ic svg { width: 20px; height: 20px; }
.feature h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.feature p { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }

/* ============================= TAGLINE ============================= */
.tagline {
  position: relative; text-align: center; margin: 26px 0 18px;
  font-family: var(--hand); font-size: 27px; font-weight: 600; color: #4c526a;
}
.tag-swoosh { display: block; width: 220px; height: 14px; margin: 1px auto 0; }

/* ============================= FOOTER ============================= */
.site-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding-top: 14px; padding-bottom: 18px; border-top: 1px solid var(--tan-line);
}
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-brand img { width: 24px; height: 24px; border-radius: 8px; }
.foot-name { font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.foot-sep { color: #d7cfc1; }
.foot-links { display: inline-flex; gap: 26px; }
.foot-links a { font-size: 13.5px; color: var(--muted); transition: color .15s; }
.foot-links a:hover { color: var(--ink); }

/* ============================= RESPONSIVE ============================= */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 8px; }
  .hero-left { max-width: 620px; }
  .mockup { padding: 40px 0 56px; }
  .orbit, .note, .note-arrow { display: none; }
  .float-rdv   { top: 0;   left: 2%; }
  .float-pay   { top: 8%;  right: 2%; }
  .float-avis  { bottom: 2%; left: 30%; }
  .float-stats { bottom: 18%; right: 2%; }
  .features { grid-template-columns: repeat(4, 1fr); gap: 24px 20px; }
}
@media (max-width: 820px) {
  .wrap { padding-inline: 22px; }
  .float { display: none; }
  .mockup { padding: 10px 0; }
  .mockup .phone { width: 38%; left: auto; right: -1%; bottom: -5%; }
  .features { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .site-header { padding-top: 16px; }
  .badge-construction span { display: none; }
  .hero-title { font-size: clamp(34px, 10vw, 46px); }
  .signup { padding: 18px 16px; }
  .signup-form { flex-wrap: wrap; }
  .signup-form input[type="email"] { flex-basis: 100%; }
  #submit-btn { flex: 1 1 100%; justify-content: center; }
  .mockup .phone { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tagline { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ============================= SÉLECTEUR DE LANGUE ============================= */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--muted);
  background: rgba(255,255,255,.55); border: 1px solid var(--tan-line);
  padding: 6px 11px; border-radius: 999px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.lang-btn:hover { color: var(--ink); background: #fff; border-color: #ddd3c2; }
.lang-btn > svg:first-child { width: 15px; height: 15px; }
.lang-caret { width: 13px; height: 13px; opacity: .65; }
.lang-cur { letter-spacing: .02em; }
.lang-menu {
  position: absolute; bottom: calc(100% + 8px); inset-inline-start: 0;
  min-width: 152px; background: #fff; border: 1px solid #eee5d8;
  border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(26,32,60,.35);
  padding: 6px; z-index: 20;
}
.lang-menu button {
  display: block; width: 100%; text-align: start; font: inherit; font-size: 13.5px;
  color: var(--ink); background: none; border: none; border-radius: 8px;
  padding: 8px 11px; cursor: pointer; transition: background .12s;
}
.lang-menu button:hover { background: #f6f1e8; }
.lang-menu button[aria-current="true"] { color: var(--violet); font-weight: 700; background: var(--violet-soft); }

/* ============================= RTL (hébreu) ============================= */
.brand { direction: ltr; }
[dir="rtl"] .eyebrow { letter-spacing: normal; }
[dir="rtl"] .signup-form { direction: rtl; }
[dir="rtl"] #submit-btn svg { transform: scaleX(-1); }
[dir="rtl"] #submit-btn:hover svg { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .note-arrow { transform: scaleX(-1); }
