/* ============================================================
   cliPet — landing page
   Style pixel-art / dark, inspiré de vibeisland.app
   ============================================================ */

:root {
  /* Fonds */
  --bg:          #0a0a0a;
  --bg-soft:     #0d0d0d;
  --card:        rgba(255, 255, 255, 0.03);
  --card-hover:  rgba(255, 255, 255, 0.055);
  --border:      rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.05);

  /* Texte */
  --text:        #f0f0f0;
  --text-muted:  #8a8a8a;
  --text-faint:  rgba(255, 255, 255, 0.45);

  /* Accent — clay / terracotta */
  --accent:      #e0833f;   /* repris de la fourrure orange du chat */
  --accent-2:    #d94f4f;   /* rouge museau */
  --accent-soft: rgba(224, 131, 63, 0.14);

  --success:     #7bb86f;

  --btn-bg:      #ffffff;
  --btn-fg:      #0a0a0a;
  --ghost-border:rgba(255, 255, 255, 0.16);

  --radius:      14px;
  --radius-lg:   22px;
  --shadow:      0 24px 70px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 80px rgba(224, 131, 63, 0.15);

  --maxw:        1080px;
  --gap:         22px;

  --pixel: "Departure Mono", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans:  -apple-system, system-ui, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

/* Departure Mono — police pixel (à déposer dans site/fonts/, voir README) */
@font-face {
  font-family: "Departure Mono";
  src: url("fonts/DepartureMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Curseur pixel custom (flèche) */
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath d='M1 0h1v1h1v1h1v1h1v1h1v1h1v1H5v1H4v1H3v1H2v1H1z' fill='%23000'/%3E%3Cpath d='M2 1h1v1h1v1h1v1h1v1h1v1H4v1H3v1H2z' fill='%23fff'/%3E%3C/svg%3E") 2 2, auto;
}

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

h1, h2 {
  font-family: var(--pixel);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(38px, 6.5vw, 78px); line-height: 1.06; }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.12; }
h3 { font-family: var(--sans); font-size: 19px; font-weight: 650; margin: 0; }
p  { margin: 0; color: var(--text-muted); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.accent { color: var(--accent); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-soft);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--pixel);
  font-size: 17px;
  letter-spacing: 0.06em;
}
.logo canvas { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-muted); font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
/* Sélecteur de langue (menu déroulant, largeur fixe -> pas de décalage) */
.lang { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--pixel);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px 9px;
  cursor: inherit;
  transition: color .15s, background .15s;
}
.lang-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.lang-btn .globe { font-size: 12px; filter: grayscale(1) opacity(0.8); }
.lang-btn #langCur { min-width: 1.6em; text-align: center; }
.lang-btn .chev { font-size: 10px; transition: transform .2s; }
.lang.open .lang-btn .chev { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: rgba(18, 18, 20, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu li {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-muted);
  padding: 9px 12px;
  border-radius: 8px;
  cursor: inherit;
  transition: background .12s, color .12s;
}
.lang-menu li:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.lang-menu li[aria-selected="true"] {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { box-shadow: 0 10px 30px rgba(255, 255, 255, 0.12); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--ghost-border); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); }
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 9px; }
/* Bouton nav intégré (sombre, discret) */
.btn-nav {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-nav:hover { background: rgba(255, 255, 255, 0.12); }
.btn .apple { font-size: 16px; line-height: 1; }

/* ============================================================
   HERO
   ============================================================ */
/* Rayons de lumière depuis le haut (god rays) — plein écran, derrière le contenu */
.page-light {
  position: absolute;          /* ancrée en haut -> s'efface quand on scroll */
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 170%;
  height: 1050px;              /* concentré sur le hero, défile hors écran */
  pointer-events: none;
  z-index: -1;
  background:
    repeating-conic-gradient(from 0deg at 50% -10%,
      rgba(255, 255, 255, 0.11) 0deg 2.6deg,
      transparent 2.6deg 9deg);
  -webkit-mask-image: radial-gradient(72% 85% at 50% -3%, #000 0%, rgba(0,0,0,0.55) 48%, transparent 85%);
  mask-image: radial-gradient(72% 85% at 50% -3%, #000 0%, rgba(0,0,0,0.55) 48%, transparent 85%);
  filter: blur(5px);
  opacity: 1;
}
.page-light::after {                 /* halo lumineux au point d'origine */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(46% 40% at 50% -3%, rgba(255, 255, 255, 0.22), transparent 68%);
}

/* Fond interactif : les points s'allument autour du curseur */
.dot-spotlight {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(224, 131, 63, 0.55) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(circle 170px at var(--mx, -500px) var(--my, -500px), #000 0%, transparent 72%);
  mask-image: radial-gradient(circle 170px at var(--mx, -500px) var(--my, -500px), #000 0%, transparent 72%);
  opacity: 0.7;
  transition: opacity 0.4s ease;
}
.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle 260px at var(--mx, -500px) var(--my, -500px), rgba(224, 131, 63, 0.10), transparent 70%);
}

.hero { position: relative; padding: 86px 0 40px; text-align: center; }
.hero > .wrap { position: relative; z-index: 1; }
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -20% 30%;
  background: radial-gradient(ellipse at 50% 30%, rgba(224, 131, 63, 0.12), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
/* Mot dynamique du titre (façon Vibe Island) */
.dyn {
  color: var(--accent);
  display: inline-block;
  transition: opacity .3s ease, transform .3s ease, filter .3s ease;
  text-shadow: 0 0 28px rgba(224, 131, 63, 0.45);
}
.dyn.swap { opacity: 0; transform: translateY(-0.22em); filter: blur(5px); }

.hero .lead {
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 22px auto 0;
}
.hero .lead strong { color: var(--text); font-weight: 600; }
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap;
}

/* — Playground interactif (le chat suit la souris) — */
.stage {
  position: relative;
  margin: 56px auto 0;
  max-width: 920px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow), var(--shadow-glow);
}
.stage-bar {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  background: rgba(20, 20, 22, 0.9);
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--pixel);
  font-size: 11px;
  color: var(--text-faint);
}
.stage-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.stage-bar .dot.r { background: #ff5f57; }
.stage-bar .dot.y { background: #febc2e; }
.stage-bar .dot.g { background: #28c840; }
.stage-bar .title { margin-left: 10px; }
.stage-bar .clock { margin-left: auto; }
/* — Écran Mac simulé à l'intérieur de la fenêtre — */
.mac-screen {
  position: relative;
  overflow: hidden;
  cursor: none;                 /* la pelote remplace le curseur */
}
.wallpaper {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* faux fond de bureau macOS (Sonoma-like) */
  background:
    radial-gradient(120% 90% at 50% 120%, rgba(255, 220, 170, 0.35), transparent 55%),
    linear-gradient(180deg, #2f2b4d 0%, #4a3f63 30%, #8a5d6a 58%, #c47a4f 80%, #e8a866 100%);
}
#playground {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  background: transparent;      /* seul le chat est dessiné dessus */
}

/* Barre de menus macOS */
.menubar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(20, 18, 26, 0.34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.menubar .mb-left { display: flex; align-items: center; gap: 16px; }
.menubar .mb-left .apple { font-size: 13px; }
.menubar .mb-left b { font-weight: 700; }
.menubar .mb-left span:not(.apple) { color: rgba(255, 255, 255, 0.8); }
.menubar .mb-right { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, 0.88); }

/* Notch / Dynamic-Island cliPet */
.notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: min(58%, 540px);
  background: #0b0b0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  border-radius: 0 0 20px 20px;
  padding: 14px 16px 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.notch-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
}
.notch-row + .notch-row { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.notch-row .muted { color: var(--text-muted); }
.notch-row .grow { flex: 1; }
.notch-row.head { padding-bottom: 11px; }
.notch-cat { width: 26px; height: 26px; image-rendering: pixelated; }
.notch-row.head .ni-main { display: flex; flex-direction: column; line-height: 1.25; }
.notch-row.head .ni-main .sub { font-size: 11px; color: var(--text-muted); }
.notch .bullet { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.notch .bullet.o { background: var(--accent); }
.notch .bullet.b { background: #5b9dff; }
.notch .bullet.g { background: var(--success); }
.notch .tag {
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}
.notch .tag.on { background: var(--accent-soft); color: var(--accent); }
.stage-hint {
  font-family: var(--pixel);
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 18px;
}
.stage-hint .accent { color: var(--accent); }

/* Bandeau “compatible avec” */
.compat {
  margin-top: 44px;
  font-family: var(--pixel);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* ============================================================
   SECTIONS génériques
   ============================================================ */
section.block { padding: 96px 0; }
.section-head { max-width: 620px; margin: 0 auto 54px; }
.section-head p { margin-top: 14px; }
.eyebrow {
  font-family: var(--pixel);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ============================================================
   GRILLE DE FEATURES
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  transition: background .2s ease, transform .2s ease, border-color .2s;
}
.feature:hover {
  background: var(--card-hover);
  transform: translateY(-3px);
  border-color: rgba(224, 131, 63, 0.3);
}
.feature .ico {
  width: 40px; height: 40px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
}
.feature .ico canvas { width: 40px; height: 40px; }
.feature h3 { margin-bottom: 9px; }
.feature p { font-size: 15px; line-height: 1.55; }

/* ============================================================
   PRICING
   ============================================================ */
.price-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 38px;
  text-align: center;
  box-shadow: var(--shadow);
}
.price {
  font-family: var(--pixel);
  font-size: 56px;
  line-height: 1;
  margin: 6px 0 2px;
}
.price .old {
  font-size: 26px;
  color: var(--text-faint);
  text-decoration: line-through;
  margin-left: 12px;
}
.price-sub { font-size: 14px; color: var(--text-faint); margin-bottom: 26px; }
.checks { list-style: none; margin: 0 0 28px; padding: 0; text-align: left; }
.checks li {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 8px 0; font-size: 15px; color: var(--text);
}
.checks li::before {
  content: "✓"; color: var(--success); font-weight: 700; flex: none;
}
.price-card .btn-primary { width: 100%; justify-content: center; }
.price-note { font-size: 13px; color: var(--text-faint); margin-top: 16px; }
.price-note a { color: var(--text-muted); text-decoration: underline; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 720px; margin: 0 auto; }
.qa {
  border-bottom: 1px solid var(--border);
}
.qa summary { list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::marker { content: ""; }
.qa button {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 550;
  text-align: left;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: inherit;
}
.qa .plus { color: var(--accent); font-family: var(--pixel); transition: transform .25s; flex: none; }
.qa[open] .plus { transform: rotate(45deg); }
.qa .answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.qa[open] .answer { max-height: 320px; padding-bottom: 22px; }
.qa .answer p { font-size: 15px; }

/* ============================================================
   CTA FINAL
   ============================================================ */
.final {
  text-align: center;
  padding: 110px 0;
  position: relative;
}
.final::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(224, 131, 63, 0.13), transparent 65%);
  z-index: -1;
}
.final p { max-width: 480px; margin: 16px auto 32px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}
.footer .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer .brand { font-family: var(--serif); font-size: 30px; font-style: italic; }
.footer .brand + p { margin-top: 10px; font-size: 15px; }
.footer h4 {
  font-family: var(--pixel);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin: 0 0 16px;
}
.footer .col a { display: block; color: var(--text-muted); font-size: 15px; padding: 6px 0; transition: color .15s; }
.footer .col a:hover { color: var(--text); }
.footer .social { display: flex; gap: 14px; margin-top: 18px; }
.footer .social a { color: var(--text-faint); }
.footer .social a:hover { color: var(--text); }
.copyright {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--text-faint);
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer .grid { grid-template-columns: 1fr 1fr; }
  .footer .brand-col { grid-column: 1 / -1; }
  section.block { padding: 72px 0; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { justify-content: center; }
  .footer .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
