/* ============================================================
   Bindora — Design system (repris de l'UI de l'app)
   ============================================================ */

:root {
  --cream: #f1eee5;
  --cream-soft: #f7f5ee;
  --card: #ffffff;
  --ink: #232842;
  --navy: #2b3358;
  --navy-dark: #1f2540;
  --muted: #8a8577;
  --line: #e7e2d4;

  --red-bg: #fbdcdc;
  --red-text: #c94b4b;
  --amber-bg: #f6e3c4;
  --amber-text: #b8842f;
  --teal: #244a4a;
  --mauve: #6a4a63;

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-pill: 999px;

  --shadow-card: 0 10px 30px rgba(35, 40, 66, 0.07);
  --shadow-fab: 0 12px 24px rgba(43, 51, 88, 0.35);

  --font-display: "Plus Jakarta Sans", "Manrope", -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 238, 229, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--ink);
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%23232842' d='M1 1l5 5 5-5'/></svg>") no-repeat right 12px center;
  background-size: 10px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 9px 30px 9px 16px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  max-width: 130px;
}

.lang-select:hover {
  border-color: var(--navy);
}

.lang-select:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- Download dialog ---------- */
dialog.download-dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(420px, 92vw);
  box-shadow: 0 30px 60px rgba(35, 40, 66, 0.28);
  background: var(--card);
  color: var(--ink);
}

dialog.download-dialog::backdrop {
  background: rgba(31, 37, 64, 0.55);
  backdrop-filter: blur(4px);
}

dialog.download-dialog[open] {
  animation: dialogIn 0.22s ease;
}

@keyframes dialogIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dialog-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 26px 18px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.dialog-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
}

.dialog-head h3 {
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 800;
}

.dialog-head p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--cream);
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dialog-close:hover {
  background: var(--line);
  transform: rotate(90deg);
}

.dialog-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 26px 28px;
}

.dialog-store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dialog-store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(43, 51, 88, 0.32);
}

.dialog-store-btn .store-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.dialog-store-btn .store-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.dialog-store-btn small {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0.75;
}

.dialog-store-btn strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

/* ---------- Buttons / badges (repris du style pill de l'app) ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 15px;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-icon svg {
  display: block;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-fab);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
  margin-bottom: 24px;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

h1 {
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 20px;
}

h1 em {
  font-style: normal;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--red-text);
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: #4c4a5c;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 280px;
  border-radius: 40px;
  overflow: hidden;
  border: 6px solid var(--navy-dark);
  box-shadow: var(--shadow-card), 0 30px 60px rgba(35, 40, 66, 0.18);
  background: var(--navy-dark);
  transform: rotate(-2deg);
}

.phone-frame img {
  border-radius: 0;
}

.hero-badge-float {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 14px;
}

.hero-badge-float.top {
  top: -10px;
  right: -10px;
  transform: rotate(3deg);
}

.hero-badge-float.bottom {
  bottom: 30px;
  left: -30px;
  transform: rotate(-3deg);
}

.badge-dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

.bg-navy { background: var(--navy); }
.bg-teal { background: var(--teal); }
.bg-mauve { background: var(--mauve); }

/* ---------- Trust strip ---------- */
.trust-strip {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.trust-strip span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Sections ---------- */
section {
  padding: 88px 0;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: 38px;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 14px;
}

.section-head p {
  color: #4c4a5c;
  font-size: 17px;
  line-height: 1.6;
}

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  border-left: 4px solid transparent;
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 14.5px;
  color: #6b6878;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Status chips (repris des badges "En retard / A traiter") ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 12.5px;
}

.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.chip-red {
  background: var(--red-bg);
  color: var(--red-text);
}
.chip-red::before { background: var(--red-text); }

.chip-amber {
  background: var(--amber-bg);
  color: var(--amber-text);
}
.chip-amber::before { background: var(--amber-text); }

/* ---------- Screens showcase ---------- */
.showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.showcase-item {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.showcase-item .phone-frame {
  width: 100%;
  transform: none;
  margin: 0 auto 18px;
}

.showcase-item h4 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 6px;
}

.showcase-item p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  position: relative;
  padding-top: 8px;
}

.step .num {
  font-size: 46px;
  font-weight: 800;
  color: var(--navy);
  opacity: 0.16;
  line-height: 1;
  margin-bottom: 8px;
}

.step h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
}

.step p {
  font-size: 14.5px;
  color: #6b6878;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}

.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  max-width: 560px;
  margin: 22px auto 0;
  line-height: 1.5;
}

.price-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-card);
  border: 2px solid transparent;
}

.price-card.highlight {
  border-color: var(--navy);
}

.price-card .tag {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 10px;
}

.price-card .amount {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.price-card .amount span {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}

.price-card .desc {
  font-size: 14px;
  color: #6b6878;
  margin-bottom: 22px;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
}

.price-card li {
  font-size: 14.5px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
}

.price-card li:first-child {
  border-top: none;
}

.soon {
  display: inline-block;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 800;
  background: var(--amber-bg);
  color: var(--amber-text);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

.faq-item h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 8px;
}

.faq-item p {
  font-size: 14.5px;
  color: #6b6878;
  line-height: 1.6;
  margin: 0;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  color: #fff;
}

.cta-banner h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.cta-banner p {
  color: #c9cbdc;
  font-size: 16px;
  margin: 0 0 30px;
}

.cta-banner .btn-row {
  justify-content: center;
}

.cta-banner .btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ---------- Footer ---------- */
footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  max-width: 280px;
  line-height: 1.6;
  margin-top: 12px;
}

.footer-cols {
  display: flex;
  gap: 64px;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 16px;
}

.footer-col a {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-col a:hover {
  color: var(--navy);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Legal pages ---------- */
.legal-hero {
  padding: 56px 0 24px;
}

.legal-hero h1 {
  font-size: 40px;
}

.legal-updated {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.legal-body {
  padding-bottom: 80px;
}

.legal-body .card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 48px;
  max-width: 820px;
  margin: 0 auto;
}

.legal-body h2 {
  font-size: 21px;
  font-weight: 800;
  margin: 36px 0 14px;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p,
.legal-body li {
  font-size: 15px;
  line-height: 1.7;
  color: #3a3950;
}

.legal-body ul {
  padding-left: 20px;
}

.legal-note {
  background: var(--amber-bg);
  color: #6b5320;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 36px;
}

/* ---------- Animations ---------- */

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-16px) rotate(-1deg); }
}

@keyframes floatBadgeTop {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(-10px) rotate(4deg); }
}

@keyframes floatBadgeBottom {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(10px) rotate(-4deg); }
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-phone .phone-frame {
  animation: float 6s ease-in-out infinite;
}

.hero-badge-float.top {
  animation: floatBadgeTop 5s ease-in-out infinite;
  animation-delay: 0.2s;
}

.hero-badge-float.bottom {
  animation: floatBadgeBottom 6.5s ease-in-out infinite;
  animation-delay: 0.6s;
}

.eyebrow .dot {
  animation: pulseDot 2.2s ease-in-out infinite;
}

/* Buttons: soft lift on hover */
.btn {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary:hover {
  box-shadow: 0 16px 30px rgba(43, 51, 88, 0.4);
}

.btn-secondary:hover {
  border-color: var(--navy);
}

.nav-cta {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(43, 51, 88, 0.3);
}

/* Cards: gentle lift on hover */
.feature-card,
.showcase-item,
.price-card,
.faq-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover,
.showcase-item:hover,
.price-card.highlight:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(35, 40, 66, 0.12);
}

.feature-card .icon {
  transition: transform 0.3s ease;
}

.feature-card:hover .icon {
  transform: scale(1.08) rotate(-4deg);
}

.showcase-item .phone-frame {
  transition: transform 0.3s ease;
}

.showcase-item:hover .phone-frame {
  transform: translateY(-4px) scale(1.015);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
.stagger.is-visible > *:nth-child(6) { transition-delay: 0.55s; }

.stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* CTA banner: subtle breathing glow */
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 rgba(43, 51, 88, 0); }
  50% { box-shadow: 0 0 60px rgba(43, 51, 88, 0.25); }
}

.cta-banner {
  animation: glow 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero-phone .phone-frame,
  .hero-badge-float.top,
  .hero-badge-float.bottom,
  .eyebrow .dot,
  .cta-banner {
    animation: none;
  }
  .reveal,
  .stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  h1 { font-size: 40px; }
  .feature-grid { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .lang-select { max-width: 88px; font-size: 12px; padding-right: 26px; }
  .footer-grid { flex-direction: column; }
  .footer-cols { gap: 40px; }
  .legal-body .card { padding: 28px; }
  .cta-banner { padding: 40px 24px; }
}
