/* ===============================
   🎨 design.css — Thème global
   =============================== */

/* ---------- Variables ---------- */
:root {
  --bg-main: #f4f7fb;
  --bg-secondary: #ffffff;
  --accent: #2a6fb3;
  --accent-light: #77bdf7;
  --accent-soft: #e8f3ff;
  --text-main: #1c2b3a;
  --text-secondary: #5a6b7a;
  --border-color: #e3e9ef;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  font-size: 16px;
}

/* ---------- Reset / structure générale ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body, * {
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE / Edge */
}

body {
  font-family: "Segoe UI", Roboto, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  margin: 0;
  padding: 0;
}

/* Liens généraux */
a {
  text-decoration: none;
  color: inherit; /* les liens prennent la couleur du parent */
}

/* ---------- Titres ---------- */
h1, h2, h3, h4 {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 15px;
}

h2 {
  text-align: center;
  font-size: 1.6rem;
}

/* ---------- Boutons et formulaires ---------- */

/* Inputs texte / nombre / date */
input[type="text"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="email"],
input[type="password"],
textarea
 {
  padding: 6px 16px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  font-weight: 400;
  /* font-size: 1rem;  */
  font-family: inherit;
  background: #fff;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  outline: none;
}

input:focus {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* Tous les select du site */
select {
  padding: 6px 16px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.08);
  color: #1d4ed8;
  font-size: 0.95rem;
  border-radius: 10px;
  /* font-size: 1rem;  */
}

/* Boutons standards */
button {
  padding: 7px 16px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.08);
  color: #1d4ed8;
  cursor: pointer;
  white-space: nowrap;
  /* font-size: 1rem;  */
}

button:hover {
  background: rgba(59, 130, 246, 0.12);
}

/* Lien "Go to recruitment" façon bouton bleu réutilisable */
a.btn-small {
  padding: 6px 16px;
  border: none;
  border-radius: 8px;
  background-color: var(--accent);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s ease;
}

a.btn-small:hover {
  background-color: var(--accent-light);  /* bleu plus clair */
  border: none;
  box-shadow: var(--shadow);              /* enlève si tu n’en veux pas */
}

/* ---------- Layout global ---------- */

.page-wrapper {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.page-container {
  padding: 30px;
  width: 100%;
  max-width: 1100px;
}

.page-container h1 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--accent);
}

/* Cartes génériques */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

/* ---------- Sous-menu générique ---------- */

.sub-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 30px 0;
}

/* Éléments du sous-menu */
.sub-menu-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 16px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  transition: none; /* pas d’animation au chargement */
}

/* Effet survol */
.sub-menu-item:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: none;
}

/* État actif */
.sub-menu-item.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Désactivation */
.sub-menu-item.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Version mobile */
@media (max-width: 600px) {
  .sub-menu-item {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
}

/* ---------- Navbar / Header ---------- */

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  padding: 10px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--accent);
}

.main-nav {
  display: flex;
  gap: 25px;
}

/* Liens du menu principal */
.main-nav a {
  display: inline-block;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

/* Hover général sur le menu */
.main-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Lien logout spécifique */
.main-nav a.logout {
  color: #b10000;
  font-weight: 600;
}

/* Hover spécifique pour logout */
.main-nav a.logout:hover {
  background: #ffe0e0;   /* rouge pastel */
  color: #b10000;
}

/* Lien de date désactivé */
.main-nav .nav-date-link--disabled {
  pointer-events: none; /* pas cliquable */
  cursor: default;      /* curseur normal */
}

/* ---------- Utilitaires ---------- */

.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.shadow { box-shadow: var(--shadow); }
.rounded { border-radius: var(--radius); }

.header-center {
  flex: 1;
  text-align: center;
}

.game-date {
  color: var(--text-secondary);
  font-weight: 500;
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: var(--radius);
  display: inline-block;
  box-shadow: var(--shadow);
}

/* Badge de classe de luxe (réutilisable partout) */
.shipview-lux-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.shipview-lux-tier {
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-variant-numeric: tabular-nums;
}

/* Variantes en cohérence avec les niveaux (1–5) */
.lux-tier--standard {
  background: rgba(148, 163, 184, 0.18);
  border-color: rgba(148, 163, 184, 0.6);
  color: #475569;
}

.lux-tier--comfort {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.5);
  color: #2563eb;
}

.lux-tier--premium {
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.6);
  color: #ca8a04;
}

.lux-tier--luxury {
  background: rgba(147, 51, 234, 0.12);
  border-color: rgba(147, 51, 234, 0.6);
  color: #7c3aed;
}

.lux-tier--elite {
  background: rgba(234, 88, 12, 0.12);
  border-color: rgba(234, 88, 12, 0.7);
  color: #ea580c;
}

/* design.css */
.flash{
  width:100%;
  border-radius:10px;
  padding:10px 12px;
  font-size:12.5px;
  border:1px solid transparent;

  margin-bottom: 12px; /* ✅ espace sous le message */
}


.flash--ok{
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.35);
  color: #166534;
}

.flash--err{
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.35);
  color: #7f1d1d;
}

/* ===== PILL (unique design) ===== */
.pill{
  display: inline-flex;
  align-items: center;
  gap: 4px;                 /* comme stock/service */
  padding: 3px 8px;         /* comme stock/service */
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid var(--pill-border, var(--border-color));
  background: var(--pill-bg, var(--bg-primary));
  color: var(--pill-fg, var(--text-main));
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pill__emoji{ flex: 0 0 auto; }

.pill__text{
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill--no-emoji .pill__emoji{ display: none; }
