/* ═══════════════════════════════════════════
   OmeFree — Pages statiques (about, safety, etc.)
   Utilise les variables CSS de style.css
   ═══════════════════════════════════════════ */

/* ── Page wrapper — scrollable ── */
.page-screen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(145deg, #1e1440 0%, #2a1a5e 40%, #1a1238 100%);
}

/* Override body overflow for these pages */
html:has(.page-screen),
html:has(.page-screen) body {
  overflow: auto;
  height: auto;
}

/* ── Background effect ── */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.page-bg .bg-logo {
  position: absolute;
}

/* ── Content area ── */
.page-content {
  position: relative;
  z-index: 1;
  padding: 120px 24px 60px;
  max-width: 780px;
  margin: 0 auto;
}

/* ── Navbar background on static pages (text mustn't scroll behind) ── */
.page-screen .hero-navbar {
  background: rgba(18, 12, 40, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(128, 104, 248, 0.08);
}

/* ── Mobile burger override for static pages (inherits from style.css) ── */
@media (max-width: 640px) {
  .page-screen .burger-menu {
    background: #120c28;
  }
}

.page-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Page title ── */
.page-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-align: center;
}

.page-updated {
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  margin-top: -12px;
}

/* ── Card ── */
.page-card {
  background: #16122e;
  border: 1px solid rgba(128, 104, 248, 0.15);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}

.card-section {
  padding: 28px 32px;
}

.card-divider {
  height: 1px;
  background: rgba(128, 104, 248, 0.1);
}

.card-intro {
  font-size: 17px;
  line-height: 1.7;
  color: #c8c0e0;
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.card-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(128, 104, 248, 0.15);
  flex-shrink: 0;
}
.card-heading-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--accent-light);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-text {
  font-size: 15px;
  line-height: 1.75;
  color: #c8c0e0;
  margin-bottom: 10px;
}
.card-text:last-child {
  margin-bottom: 0;
}

.card-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.card-list li {
  padding-left: 20px;
  position: relative;
  font-size: 15px;
  line-height: 1.65;
  color: #c8c0e0;
}
.card-list li::before {
  content: '›';
  position: absolute;
  left: 2px;
  color: var(--accent);
  font-weight: 700;
}

/* ── Inline link ── */
.inline-link {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--transition);
}
.inline-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ── Rules list (safety, terms) ── */
.rules-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}
.rule-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}
.rule-item.rule-danger {
  background: rgba(240, 64, 80, 0.1);
  border: 1px solid rgba(240, 64, 80, 0.18);
}
.rule-item.rule-danger .rule-icon {
  background: rgba(240, 64, 80, 0.2);
  color: var(--red);
}
.rule-item.rule-safe {
  background: rgba(8, 200, 168, 0.1);
  border: 1px solid rgba(8, 200, 168, 0.18);
}
.rule-item.rule-safe .rule-icon {
  background: rgba(8, 200, 168, 0.2);
  color: var(--green);
}
.rule-item.rule-warn {
  background: rgba(240, 200, 0, 0.1);
  border: 1px solid rgba(240, 200, 0, 0.18);
}
.rule-item.rule-warn .rule-icon {
  background: rgba(240, 200, 0, 0.2);
  color: var(--yellow);
}

/* ── Values grid (about page) ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 4px;
}
.value-card,
.value-item {
  background: #1a1538;
  border: 1px solid rgba(128, 104, 248, 0.12);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(128, 104, 248, 0.15);
}
.value-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent-light);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.value-title,
.value-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.value-desc {
  font-size: 14px;
  line-height: 1.5;
  color: #c8c0e0;
}

/* ── Help resources (safety page) ── */
.help-resources {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}
.resource-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #1a1538;
  border: 1px solid rgba(128, 104, 248, 0.12);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.resource-item strong {
  display: block;
  color: #fff;
  font-size: 15px;
  margin-bottom: 2px;
}
.resource-desc {
  font-size: 13px;
  color: #a8a0c0;
  line-height: 1.4;
}
.resource-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(128, 104, 248, 0.15);
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-light);
}
.help-card {
  background: #1a1538;
  border: 1px solid rgba(128, 104, 248, 0.12);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.help-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.help-number {
  font-size: 14px;
  color: var(--accent-light);
  font-weight: 500;
}
.help-desc {
  font-size: 12px;
  color: #a8a0c0;
  margin-top: 4px;
}

/* ── Contact grid ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 24px 28px;
}
.contact-card {
  background: #1a1538;
  border: 1px solid rgba(128, 104, 248, 0.12);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  text-align: center;
}
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(128, 104, 248, 0.15);
  margin-bottom: 12px;
}
.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent-light);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.contact-value {
  font-size: 14px;
  margin-bottom: 8px;
}
.contact-desc {
  font-size: 13px;
  color: #a8a0c0;
  line-height: 1.5;
}

/* ── FAQ accordion ── */
.faq-list {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-bottom: 1px solid rgba(128, 104, 248, 0.08);
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
  font-family: var(--font);
}
.faq-question:hover {
  color: var(--accent-light);
}
.faq-arrow {
  font-size: 20px;
  font-weight: 300;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 16px;
  color: var(--text-dim);
}
.faq-item.open .faq-arrow {
  transform: rotate(90deg);
  color: var(--accent);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p,
.faq-answer ul {
  padding: 0 28px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: #c8c0e0;
}
.faq-answer ul {
  padding-left: 48px;
}
.faq-answer li {
  margin-bottom: 4px;
}

/* ── Burger link active on pages ── */
.burger-link.active {
  color: var(--accent-light);
  font-weight: 600;
}

/* ── Back button ── */
.page-back-wrap {
  display: flex;
  justify-content: center;
  padding: 12px 0 20px;
}
.page-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  border: 1px solid rgba(128, 104, 248, 0.12);
  border-radius: 999px;
  transition: all var(--transition);
}
.page-back-btn:hover {
  color: var(--text);
  border-color: rgba(128, 104, 248, 0.3);
  background: rgba(128, 104, 248, 0.06);
}

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */

@media (max-width: 900px) {
  .page-title {
    font-size: 34px;
  }
  .page-content {
    padding-top: 110px;
  }
  .values-grid,
  .help-resources {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-content {
    padding: 96px 14px 40px;
  }
  .page-title {
    font-size: 28px;
  }
  .card-section {
    padding: 22px 18px;
  }
  .card-heading {
    font-size: 18px;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    padding: 18px 16px;
  }
  .faq-question {
    padding: 16px 18px;
    font-size: 14px;
  }
  .faq-answer p,
  .faq-answer ul {
    padding: 0 18px 16px;
  }
  .faq-answer ul {
    padding-left: 36px;
  }
  .help-resources {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-content {
    padding-top: 84px;
  }
}
