/* ============================================================
   Homiz Studio — site web (vitrine + pages légales)
   Style néon urbain, dark, cohérent avec l'app mobile
   ============================================================ */

:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --surface: #141414;
  --border: #1f1f1f;
  --text: #ffffff;
  --text-muted: #9b9b9b;
  --text-dim: #5c5c5c;
  --primary: #b026ff;
  --primary-glow: #d561ff;
  --accent: #ff00ff;
  --success: #00ff94;
  --danger: #ff3366;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --max-width: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans,
    Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--primary-glow);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent);
  text-decoration: underline;
}

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

/* ============================================================
   Layout
   ============================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

@media (max-width: 640px) {
  .section {
    padding: 48px 0;
  }
}

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text);
  font-style: italic;
}

.nav-brand .accent {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 640px) {
  .nav-links {
    gap: 16px;
  }
  .nav-links a {
    font-size: 12px;
  }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(176, 38, 255, 0.25),
    transparent 60%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
}

.hero-tagline {
  font-size: 14px;
  letter-spacing: 6px;
  color: var(--text);
  margin-bottom: 16px;
  font-weight: 700;
}

.hero-title {
  font-size: clamp(48px, 12vw, 120px);
  font-weight: 900;
  line-height: 0.95;
  font-style: italic;
  background: linear-gradient(
    180deg,
    var(--primary-glow) 0%,
    var(--primary) 50%,
    var(--accent) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 60px rgba(176, 38, 255, 0.5);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   Boutons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: var(--text);
  box-shadow: 0 0 30px rgba(176, 38, 255, 0.5);
}

.btn-primary:hover {
  background: var(--primary-glow);
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--text);
  text-decoration: none;
}

.btn-store {
  background: var(--text);
  color: var(--bg);
}

.btn-store:hover {
  background: var(--primary-glow);
  color: var(--bg);
  text-decoration: none;
}

/* ============================================================
   Sections / cards
   ============================================================ */

.section-title {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 600px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s;
}

.card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(176, 38, 255, 0.15);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text);
}

.card p {
  color: var(--text-muted);
  font-size: 15px;
}

.card-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

/* ============================================================
   Download badges
   ============================================================ */

.download {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

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

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 8px;
}

.footer a {
  color: var(--text-dim);
  font-size: 14px;
}

.footer a:hover {
  color: var(--primary-glow);
  text-decoration: none;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

/* ============================================================
   Pages légales (CGU, CGV, etc.)
   ============================================================ */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px;
}

.legal h1 {
  font-size: 36px;
  margin-bottom: 8px;
  font-weight: 900;
  font-style: italic;
  color: var(--primary-glow);
}

.legal .updated {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 48px;
}

.legal h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text);
}

.legal h3 {
  font-size: 17px;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text);
}

.legal p,
.legal li {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 15px;
}

.legal ul,
.legal ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal strong {
  color: var(--text);
}

.legal-back {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--text-dim);
  font-size: 14px;
}

/* ============================================================
   Form (suppression compte)
   ============================================================ */

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.notice {
  background: rgba(255, 51, 102, 0.1);
  border: 1px solid var(--danger);
  border-radius: var(--radius-md);
  padding: 16px;
  color: var(--text);
  margin: 24px 0;
  font-size: 14px;
}
