/* ═══════════════════════════════════════════════
   OXLUM GROUP — pages.css corrigé
   Styles communs pour pages internes :
   contact, 404, help, faq, privacy, terms, etc.
   ═══════════════════════════════════════════════ */

:root {
  --page-bg: #050d1a;
  --page-bg-soft: #081426;
  --page-card: rgba(255, 255, 255, 0.06);
  --page-card-hover: rgba(255, 255, 255, 0.09);
  --page-border: rgba(255, 255, 255, 0.13);
  --page-blue: #1565ff;
  --page-blue-soft: #4da3ff;
  --page-white: #ffffff;
  --page-muted: rgba(255, 255, 255, 0.72);
  --page-muted-2: rgba(255, 255, 255, 0.55);
  --page-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --page-radius: 24px;
}

/* BASE PAGES INTERNES */

.page-hero {
  position: relative;
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 150px 6% 80px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(21, 101, 255, 0.22), transparent 34%),
    radial-gradient(circle at bottom right, rgba(77, 163, 255, 0.13), transparent 34%),
    var(--page-bg);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
  pointer-events: none;
}

.page-hero > * {
  position: relative;
  z-index: 2;
}

.page-hero span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #b8d7ff;
  background: rgba(21, 101, 255, 0.13);
  border: 1px solid rgba(77, 163, 255, 0.28);
  font-weight: 900;
  font-size: 0.88rem;
}

.page-hero h1 {
  max-width: 980px;
  margin: 0 auto 18px;
  color: var(--page-white);
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.page-hero h2 {
  max-width: 880px;
  margin: 0 auto 16px;
  color: var(--page-white);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--page-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* SECTIONS */

.section {
  position: relative;
  padding: 86px 6%;
}

.section-header {
  max-width: 850px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-header span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #b8d7ff;
  background: rgba(21, 101, 255, 0.13);
  border: 1px solid rgba(77, 163, 255, 0.28);
  font-weight: 900;
  font-size: 0.86rem;
}

.section-header h2 {
  margin: 0 0 14px;
  color: var(--page-white);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-header p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--page-muted);
  line-height: 1.75;
}

/* GRILLES */

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* CARTES GÉNÉRIQUES */

.page-card,
.info-card,
.security-card,
.platform-card,
.service-link,
.contact-service-card {
  display: block;
  padding: 26px;
  border-radius: var(--page-radius);
  background: var(--page-card);
  border: 1px solid var(--page-border);
  color: var(--page-white);
  text-decoration: none;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.page-card:hover,
.info-card:hover,
.security-card:hover,
.platform-card:hover,
.service-link:hover,
.contact-service-card:hover {
  transform: translateY(-5px);
  background: var(--page-card-hover);
  border-color: rgba(77, 163, 255, 0.35);
  box-shadow: 0 24px 70px rgba(21, 101, 255, 0.14);
}

.page-card h3,
.info-card h3,
.security-card h3,
.platform-card h3,
.service-link h3,
.contact-service-card h3 {
  margin: 0 0 10px;
  color: var(--page-white);
  font-size: 1.22rem;
  line-height: 1.25;
}

.page-card p,
.info-card p,
.security-card p,
.platform-card p,
.service-link p,
.contact-service-card p {
  margin: 0;
  color: var(--page-muted);
  line-height: 1.7;
}

.page-card strong,
.info-card strong,
.security-card strong,
.platform-card strong,
.service-link strong,
.contact-service-card strong {
  display: inline-flex;
  margin-top: 14px;
  color: var(--page-blue-soft);
  font-weight: 900;
}

/* IMAGES CARTES */

.platform-card img,
.security-card img,
.page-card img,
.info-card img {
  width: auto;
  max-width: 70px;
  max-height: 70px;
  object-fit: contain;
  margin-bottom: 16px;
}

/* FORMULAIRES */

.contact-form,
.page-form,
.search-form {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 30px;
  border-radius: 28px;
  background: var(--page-card);
  border: 1px solid var(--page-border);
  box-shadow: var(--page-shadow);
}

.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-group label,
.page-form label,
.contact-form label,
.search-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--page-white);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.page-form input,
.page-form select,
.page-form textarea,
.search-form input,
.search-form select,
.search-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 13, 26, 0.72);
  color: var(--page-white);
  outline: none;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea,
.page-form textarea,
.search-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.page-form input::placeholder,
.page-form textarea::placeholder,
.search-form input::placeholder,
.search-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.page-form input:focus,
.page-form select:focus,
.page-form textarea:focus,
.search-form input:focus,
.search-form select:focus,
.search-form textarea:focus {
  border-color: rgba(77, 163, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(21, 101, 255, 0.12);
}

/* RECHERCHE */

.search-box {
  width: min(760px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid var(--page-border);
}

.search-box input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--page-white);
  font-size: 1rem;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

/* BOUTONS */

.btn-primary,
.btn-secondary,
.auth-submit,
.page-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary,
.auth-submit {
  background: linear-gradient(135deg, var(--page-blue), var(--page-blue-soft));
  color: var(--page-white);
  box-shadow: 0 18px 40px rgba(21, 101, 255, 0.25);
}

.btn-secondary,
.page-btn {
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--page-border);
  color: var(--page-white);
}

.btn-primary:hover,
.btn-secondary:hover,
.auth-submit:hover,
.page-btn:hover {
  transform: translateY(-2px);
}

/* CHECKBOX / SÉCURITÉ */

.security-check,
.checkbox-box,
.captcha-placeholder {
  margin: 18px 0 22px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(21, 101, 255, 0.09);
  border: 1px solid rgba(77, 163, 255, 0.18);
  color: var(--page-muted);
  line-height: 1.6;
}

.security-check label,
.checkbox-box label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  cursor: pointer;
}

.security-check input,
.checkbox-box input {
  width: auto;
  min-height: auto;
  margin-top: 5px;
  accent-color: var(--page-blue);
}

/* FAQ */

.faq-list {
  width: min(900px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-list details {
  display: block;
  padding: 20px 24px;
  border-radius: 18px;
  background: rgba(14, 29, 53, 0.82);
  border: 1px solid rgba(21, 101, 255, 0.18);
}

.faq-list summary {
  cursor: pointer;
  color: var(--page-white);
  font-weight: 900;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--page-blue-soft);
  font-size: 1.4rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: 14px 0 0;
  color: var(--page-muted);
  line-height: 1.75;
}

/* CONTACT BOX */

.contact-box {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 34px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(21, 101, 255, 0.20), transparent 34%),
    rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(77, 163, 255, 0.22);
  box-shadow: var(--page-shadow);
}

.contact-box span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--page-blue-soft);
  font-weight: 900;
}

.contact-box h2 {
  margin: 0 0 10px;
  color: var(--page-white);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.contact-box p {
  margin: 0;
  max-width: 720px;
  color: var(--page-muted);
  line-height: 1.7;
}

/* TABLES */

.table-wrapper,
.news-table-wrapper {
  width: min(1180px, 100%);
  margin: 0 auto;
  overflow-x: auto;
  border-radius: 22px;
  border: 1px solid var(--page-border);
  background: rgba(255, 255, 255, 0.045);
}

table,
.news-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td,
.news-table th,
.news-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th,
.news-table th {
  color: var(--page-white);
  background: rgba(21, 101, 255, 0.12);
  font-weight: 900;
}

td,
.news-table td {
  color: var(--page-muted);
}

.news-table a,
table a {
  color: var(--page-blue-soft);
  font-weight: 900;
  text-decoration: none;
}

/* BADGES */

.status,
.badge,
.page-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.status.published,
.badge.success,
.page-badge.success {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.26);
}

.status.progress,
.badge.progress,
.page-badge.progress {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.26);
}

.status.planned,
.badge.warning,
.page-badge.warning {
  color: #fed7aa;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.26);
}

/* ALIGNEMENTS */

.center-btn {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

/* WHATSAPP FLOAT — sécurité si style.css ne l’a pas */

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #ffffff;
  text-decoration: none;
  font-size: 1.55rem;
  box-shadow: 0 18px 44px rgba(34, 197, 94, 0.28);
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-hero {
    min-height: auto;
    padding: 120px 5% 62px;
  }

  .section {
    padding: 68px 5%;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form,
  .page-form,
  .search-form {
    padding: 22px;
    border-radius: 24px;
  }

  .contact-box {
    padding: 24px;
    border-radius: 26px;
  }

  .search-box {
    border-radius: 20px;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 480px) {
  .page-hero h1 {
    font-size: 2.35rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .page-card,
  .info-card,
  .security-card,
  .platform-card,
  .service-link,
  .contact-service-card {
    padding: 22px;
  }
}