/* ============================================
   Sérénité par Joyce — QR Landing Page
   Mobile-first | Pure CSS | No frameworks
   ============================================ */

/* --- Custom Properties --- */
:root {
  --color-bg: #faf8f5;
  --color-surface: #ffffff;
  --color-primary: #c8a97e;
  --color-primary-hover: #d4b88c;
  --color-primary-subtle: rgba(200, 169, 126, 0.08);
  --color-text: #2d2a24;
  --color-text-secondary: #8a857e;
  --color-text-muted: #b5b0a8;
  --color-border: #e8e4de;
  --color-shadow: rgba(45, 42, 36, 0.06);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  --tap-height: 56px;
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* --- Brand Header --- */
.brand {
  text-align: center;
  padding: var(--space-lg) 0 var(--space-sm);
}

.brand-icon {
  font-size: 28px;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.brand-by {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.tagline {
  margin-top: var(--space-sm);
  font-size: 14px;
  color: var(--color-text-secondary);
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* --- Action Cards --- */
.actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  min-height: var(--tap-height);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.card:hover {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary);
}

.card:active {
  transform: scale(0.98);
}

.card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-subtle);
  color: var(--color-primary);
}

.card-icon svg {
  display: block;
}

.card-label {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.card-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-top: 1px;
}

/* --- Social Section --- */
.social {
  text-align: center;
  padding-top: var(--space-sm);
}

.social-heading {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  min-height: var(--tap-height);
  min-width: 72px;
  text-decoration: none;
  color: var(--color-text-secondary);
  font-size: 11px;
  font-weight: 400;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.social-link:hover {
  color: var(--color-primary);
  background: var(--color-primary-subtle);
}

.social-link:active {
  transform: scale(0.96);
}

.social-link svg {
  display: block;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: var(--space-sm) 0 var(--space-md);
}

.footer p {
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

/* --- Safe Area Support --- */
@supports (padding: env(safe-area-inset-bottom)) {
  body {
    padding-left: calc(var(--space-md) + env(safe-area-inset-left));
    padding-right: calc(var(--space-md) + env(safe-area-inset-right));
    padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom));
    padding-top: calc(var(--space-md) + env(safe-area-inset-top));
  }
}

/* --- Tablet (768×1024) --- */
@media (min-width: 600px) {
  body {
    padding: var(--space-2xl);
  }

  .container {
    max-width: 440px;
  }

  .brand-name {
    font-size: 32px;
  }

  .actions {
    gap: var(--space-lg);
  }

  .card {
    padding: var(--space-lg) var(--space-xl);
  }

  .card-icon {
    width: 48px;
    height: 48px;
  }

  .card-label {
    font-size: 16px;
  }

  .card-sub {
    font-size: 13px;
  }
}

/* --- Desktop --- */
@media (min-width: 1024px) {
  body {
    padding: var(--space-2xl);
  }

  .container {
    max-width: 420px;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .card,
  .social-link {
    transition: none;
  }

  .card:active,
  .social-link:active {
    transform: none;
  }
}

/* --- Dark Mode Support (optional, respects system) --- */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1a1816;
    --color-surface: #252320;
    --color-border: #35322e;
    --color-text: #e8e4de;
    --color-text-secondary: #a5a098;
    --color-text-muted: #6b6760;
    --color-primary-subtle: rgba(200, 169, 126, 0.12);
    --color-shadow: rgba(0, 0, 0, 0.2);
  }
}
