/* Gem Ma Visite — pages publiques (vitrine, légal, 404) */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --primary: #e11d8f;
  --primary-dark: #be1277;
  --primary-light: #f43faf;
  --primary-soft: #fdf2f8;
  --primary-glow: rgba(225, 29, 143, 0.22);
  --accent: #7c3aed;
  --accent-soft: #ede9fe;
  --bg: #f4f6fc;
  --bg-warm: #faf8f6;
  --surface: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font);
  --max: 1120px;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-warm);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(225, 29, 143, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(124, 58, 237, 0.06), transparent 50%),
    linear-gradient(180deg, #fafbfd 0%, var(--bg) 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.pub-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.pub-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pub-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}
.pub-logo:hover { text-decoration: none; }
.pub-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.pub-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pub-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.pub-nav a:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
  text-decoration: none;
}
.pub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.pub-btn:hover { text-decoration: none; filter: brightness(1.03); transform: translateY(-1px); }
.pub-btn-primary {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 50%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 24px var(--primary-glow);
}
.pub-btn-secondary {
  background: var(--surface);
  color: var(--primary-dark);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.pub-main { max-width: var(--max); margin: 0 auto; padding: 0 20px 48px; }

/* Hero */
.pub-hero {
  padding: 48px 0 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .pub-hero { grid-template-columns: 1.05fr 0.95fr; padding: 64px 0 72px; }
}
.pub-hero-eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.pub-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 16px;
}
.pub-hero-lead {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 32rem;
  margin: 0 0 28px;
}
.pub-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pub-hero-visual {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 28px;
  background: linear-gradient(145deg, #701a3a 0%, var(--primary) 45%, var(--accent) 100%);
  color: #fff;
  box-shadow: var(--shadow-lg), 0 20px 50px rgba(157, 23, 77, 0.25);
  overflow: hidden;
}
.pub-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.2), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.15), transparent 50%);
  pointer-events: none;
}
.pub-mock {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(8px);
}
.pub-mock-title { font-weight: 800; font-size: 1.1rem; margin: 0 0 12px; }
.pub-mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.88rem;
}

/* Sections */
.pub-section { padding: 56px 0; }
.pub-section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.pub-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.pub-section-head p { margin: 0; color: var(--text-secondary); }

.pub-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .pub-bento { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .pub-bento { grid-template-columns: repeat(3, 1fr); }
}
.pub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.pub-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pub-card-wide { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .pub-card-wide { grid-column: span 2; }
}
.pub-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
}
.pub-card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; }
.pub-card p { margin: 0; color: var(--text-secondary); font-size: 0.92rem; }

.pub-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 40px;
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}
.pub-trust-item { text-align: center; }
.pub-trust-item b { display: block; font-size: 1.5rem; color: var(--primary-dark); }
.pub-trust-item span { font-size: 0.85rem; color: var(--muted); }

.pub-cta {
  text-align: center;
  padding: 48px 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #9d174d 0%, var(--primary) 40%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 12px 40px rgba(157, 23, 77, 0.28);
}
.pub-cta h2 { font-family: var(--font-display); margin: 0 0 12px; font-size: clamp(1.4rem, 3vw, 1.85rem); }
.pub-cta p { margin: 0 0 24px; opacity: 0.92; max-width: 480px; margin-left: auto; margin-right: auto; }
.pub-cta .pub-btn-secondary { color: var(--text); }

/* Footer */
.pub-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 24px;
}
.pub-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 640px) {
  .pub-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}
.pub-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.pub-footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
}
.pub-footer-copy { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* Legal & prose pages */
.pub-prose { max-width: 720px; margin: 0 auto; padding: 40px 0 56px; }
.pub-prose h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.pub-prose .pub-updated { color: var(--muted); font-size: 0.88rem; margin-bottom: 32px; }
.pub-prose h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 32px 0 12px;
  color: var(--text);
}
.pub-prose p, .pub-prose li { color: var(--text-secondary); font-size: 0.95rem; }
.pub-prose ul { padding-left: 1.25rem; }
.pub-prose .pub-note {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 24px 0;
}

/* 404 */
.pub-404 {
  min-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px;
}
.pub-404-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 7rem);
  font-weight: 800;
  line-height: 1;
  margin: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.35;
  user-select: none;
}
.pub-404-illus {
  font-size: 4rem;
  margin-bottom: 8px;
  animation: pubFloat 4s ease-in-out infinite;
}
@keyframes pubFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.pub-404 h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  margin: 0 0 12px;
}
.pub-404-sub { color: var(--text-secondary); max-width: 420px; margin: 0 auto 8px; }
.pub-404-extra { color: var(--muted); font-size: 0.9rem; font-style: italic; min-height: 1.5em; margin-bottom: 28px; }
.pub-404-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pub-404-back {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
}
.pub-404-back:hover { color: var(--primary-dark); }

@media (max-width: 600px) {
  .pub-nav .pub-nav-text { display: none; }
  .pub-header-inner { padding: 12px 16px; }
}
