/* ── Junadé — Global Stylesheet ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --color-bg:        #0f0f1a;
  --color-surface:   #1a1a2e;
  --color-card:      #16213e;
  --color-border:    #2a2a4a;
  --color-accent:    #7c3aed;
  --color-accent2:   #a855f7;
  --color-text:      #e2e8f0;
  --color-muted:     #94a3b8;
  --color-heading:   #f1f5f9;
  --radius-card:     16px;
  --radius-btn:      10px;
  --shadow-card:     0 4px 24px rgba(124,58,237,.18);
}

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

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

/* Gradient décoratif fond */
.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(124,58,237,.22) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(168,85,247,.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

/* ── HEADER ────────────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 32px;
  line-height: 1;
}

.site-title {
  font-size: 30px;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

/* Titre sur page politique */
.page-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: var(--color-heading);
}

/* Lien retour */
.back-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent2);
  text-decoration: none;
  transition: opacity .15s;
}
.back-link:hover { opacity: .75; }

/* ── LANG SWITCHER ─────────────────────────────────────────────── */
.lang-switcher { display: flex; gap: 8px; }

.lang-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--color-muted);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all .15s ease;
}
.lang-btn:hover { border-color: var(--color-accent2); color: var(--color-accent2); }
.lang-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.lang-btn:focus-visible {
  outline: 3px solid var(--color-accent2);
  outline-offset: 2px;
}

/* ── HERO ──────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  margin-bottom: 52px;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--color-muted);
  margin: 0;
  letter-spacing: .3px;
}

/* ── SECTION APPS ──────────────────────────────────────────────── */
.apps-section { margin-bottom: 48px; }

.section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 20px 4px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ── APP CARD ──────────────────────────────────────────────────── */
.app-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.app-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(124,58,237,.28);
}

.app-card-icon {
  font-size: 36px;
  line-height: 1;
  flex-shrink: 0;
}

.app-card-body { flex: 1; min-width: 0; }

.app-card-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 6px;
}

.app-card-desc {
  font-size: 14px;
  color: var(--color-muted);
  margin: 0 0 14px;
  line-height: 1.5;
}

.privacy-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent2);
  text-decoration: none;
  padding: 6px 14px;
  border: 1.5px solid var(--color-accent);
  border-radius: 8px;
  transition: all .15s ease;
}
.privacy-link:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ── POLICY PAGE ───────────────────────────────────────────────── */
.policy {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
}
.policy section { margin-bottom: 32px; }
.policy section:last-child { margin-bottom: 0; }
.policy h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent2);
  margin: 0 0 10px;
}
.policy p {
  margin: 0;
  color: var(--color-text);
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.7;
}
.policy a { color: var(--color-accent2); text-decoration: underline; word-break: break-word; }
.policy a:hover { text-decoration: none; }

/* ── FOOTER ────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 13px;
  color: var(--color-muted);
}
.site-footer p { margin: 6px 0; }
.site-footer a { color: var(--color-accent2); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

#update-line { font-weight: 600; color: var(--color-muted); }

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .container { padding: 24px 16px 48px; }
  .site-header { flex-direction: column; align-items: flex-start; }
  .site-title { font-size: 26px; }
  .hero-subtitle { font-size: 16px; }
  .policy { padding: 24px 18px; }
  .app-card { flex-direction: column; }
}
