/* ============================================================
   LUFOP — Styles partagés
   Utilisé par : index.php, travel.php, updates.php
   Version : 1.0
============================================================ */ 

/* ── Variables ─────────────────────────────────────────── */
:root { 
  --bg:      #0b1220;
  --card:    #0f1a2f;
  --border:  rgba(255,255,255,.10);
  --border2: rgba(255,255,255,.16);
  --text:    #eaf0ff;
  --muted:   #aab7d6;
  --muted2:  #c8d4ec;
  --accent:  #4da3ff;
  --accent2: #7cf2c8;
  --accent3: #ffcc66;
  --danger:  #ff6b6b;
  --r:       18px;
  --r2:      14px;
--mono: "Trebuchet MS", "Segoe UI", "Lucida Grande", Arial, Verdana, sans-serif;
  --sans:    'DM Sans', sans-serif;
  --shadow:  0 20px 60px rgba(0,0,0,.45);
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Fond dégradé animé */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 1100px 700px at 20% -10%, rgba(77,163,255,.22) 0%, transparent 60%),
    radial-gradient(ellipse 900px 600px at 90%  10%, rgba(124,242,200,.16) 0%, transparent 55%),
    radial-gradient(ellipse 600px 500px at 50% 110%, rgba(77,163,255,.10) 0%, transparent 55%);
  pointer-events: none;
}

/* Grille scanlines subtile */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 0;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,.04) 3px, rgba(0,0,0,.04) 4px
  );
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }

/* ── Wrapper ────────────────────────────────────────────── */
.wrap {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto;
  padding: 0 12px;
}
@media (min-width: 480px) { .wrap { padding: 0 16px; } }

/* ── Header ─────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(160%);
  background: rgba(11,18,32,.78);
  border-bottom: 1px solid var(--border2);
}

.topbar {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 10px; padding: 10px 12px; flex-wrap: wrap;
}
@media (min-width: 480px) { .topbar { padding: 12px 16px; gap: 14px; } }

/* Logo & brand */
.brand { display: flex; align-items: center; gap: 10px; }
@media (min-width: 480px) { .brand { gap: 12px; } }

.logo {
  position: relative;
  width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(77,163,255,.95), rgba(124,242,200,.85));
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 16px; color: #0b1220;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 10px 30px rgba(77,163,255,.28);
}
@media (min-width: 480px) {
  .logo { width: 42px; height: 42px; font-size: 18px; border-radius: 14px; }
}
.logo::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.22), transparent);
  pointer-events: none;
}

.brand-text strong {
  display: block;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
}
.brand-text span {
  display: none;
  font-size: 10px; color: var(--muted); margin-top: 2px;
}
@media (min-width: 360px) { .brand-text span { display: block; } }
@media (min-width: 480px) {
  .brand-text strong { font-size: 13px; }
  .brand-text span   { font-size: 11px; }
}

/* Zone droite du header */
.header-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (min-width: 480px) { .header-right { gap: 10px; } }

/* Badge VIP */
.vip-header-badge {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 13px; border-radius: 999px;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  min-height: 36px;
}
@media (min-width: 480px) { .vip-header-badge { font-size: 11px; } }

.vip-header-badge.is-vip {
  color: var(--accent2);
  border: 1px solid rgba(124,242,200,.35);
  background: rgba(124,242,200,.10);
}
.vip-header-badge.not-vip {
  color: var(--accent3);
  border: 1px solid rgba(255,204,102,.30);
  background: rgba(255,204,102,.08);
}

/* Bouton retour (utilisé dans travel.php, updates.php) */
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: var(--r2);
  border: 1px solid var(--border2);
  background: rgba(255,255,255,.05);
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  cursor: pointer; transition: all .2s ease;
  white-space: nowrap;
}
.back-btn:hover {
  border-color: rgba(77,163,255,.40);
  color: var(--accent);
  background: rgba(77,163,255,.08);
}

/* Tag générique */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: var(--muted);
}

/* État actif des tags de navigation */
.tag.tag-active {
  color: var(--accent);
  border-color: rgba(77, 163, 255, .40);
  background: rgba(77, 163, 255, .12);
}
.tag.hdr-tag { display: none; }
@media (min-width: 480px) {  .tag.hdr-tag {    display: inline-flex;    padding: 7px 13px;    min-height: 36px;  }
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  position: relative; z-index: 1;
  text-align: center;
  padding: 24px 16px 32px;
  border-top: 1px solid var(--border);
  margin-top: 48px;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: .04em;
}
.site-footer a { color: var(--accent); transition: color .2s; }
.site-footer a:hover { color: var(--accent2); }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  gap: 10px; flex-wrap: wrap;
}
.card-title {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: .05em; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}

/* ── Boutons utilitaires ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--r2);
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  cursor: pointer; transition: all .2s ease;
  border: 1px solid transparent; white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #0b1220;
  border-color: var(--accent);
}
.btn-primary:hover { background: #6ab8ff; border-color: #6ab8ff; }

.btn-ghost {
  background: rgba(255,255,255,.06);
  border-color: var(--border2); color: var(--muted);
}
.btn-ghost:hover {
  border-color: rgba(77,163,255,.50);
  color: var(--accent); background: rgba(77,163,255,.10);
}

/* ── Dot de statut ──────────────────────────────────────── */
.status-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 0 4px rgba(124,242,200,.12);
}
.status-dot.warn { background: var(--accent3); box-shadow: 0 0 0 4px rgba(255,204,102,.18); }
.status-dot.err  { background: var(--danger);  box-shadow: 0 0 0 4px rgba(255,107,107,.18); }

/* ── Tables ─────────────────────────────────────────────── */
.data-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  padding: 10px 14px;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: .06em; color: var(--muted);
  text-align: left; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(77,163,255,.04); }

/* ── Responsive helpers ─────────────────────────────────── */
@media (max-width: 639px) { .hide-sm { display: none !important; } }
@media (max-width: 759px) { .hide-md { display: none !important; } }


/* Menu mobile : bouton hamburger */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* Structure desktop */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mobile */
@media (max-width: 768px) {
  .topbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .brand-text span {
    display: none;
  }

  .header-right {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    z-index: 999;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    background: #0f172a;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
  }

  .header-right.is-open {
    display: flex;
  }

  .main-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .main-nav a,
  .header-right .tag,
  .header-right .btn-plan,
  .header-right .btn-paypal {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .vip-header-badge {
    align-self: center;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}