body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f4f4f4;
}

.site-header {
    background: #1a1a1a;
    color: white;
    padding: 10px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: auto;
}

.site-header nav a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

.hero {
    background: url('bg.jpg') no-repeat center/cover;
    min-height: calc(100vh - 120px); /* hauteur écran moins header/footer */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
    font-size: 32px;
    font-weight: bold;
    box-sizing: border-box;
}

/* Pour que le footer reste collé en bas */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.site-header {
    flex-shrink: 0;
}

.hero {
    flex: 1;
}

.site-footer {
    flex-shrink: 0;
    text-align: center;
    padding: 15px;
    background: #1a1a1a;
    color: white;
}



.main-content {
    max-width: 1000px;
    margin: 20px auto;
    padding: 10px;
}

.card {
    background: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.error { color: red; }

.site-footer {
    text-align: center;
    padding: 15px;
    background: #1a1a1a;
    color: white;
    
}
.center-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.btn-primary, .btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    text-decoration: none;
}

.btn-primary {
    background-color: #ffcc00;
    color: #000;
    font-weight: bold;
}

.btn-secondary {
    background-color: #333;
    color: #fff;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 8px;
    width: 350px;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content input[type="text"],
.modal-content input[type="password"] {
    width: 100%;
    padding: 8px;
    margin: 8px 0 15px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.modal-content input[type="email"] {
    width: 100%;
    padding: 8px;
    margin: 8px 0 15px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.close {
    position: absolute;
    right: 10px;
    top: 8px;
    font-size: 20px;
    cursor: pointer;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1; /* prend tout l’espace dispo */
}

footer {
    background: #111;
    color: #fff;
    padding: 10px;
    text-align: center;
}

/* === Page Classement === */
.classement-page {
    background: url('bg_ranking.png') no-repeat center/cover;
}

/* Carte principale */
.classement-page .ranking-card {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Titre */
.classement-page .ranking-card h2 {
    font-size: 1.4rem;
    color: #fbbf24;
    display: flex;
    align-items: center;
	justify-content: center;
    gap: 8px;
    padding: 16px;
    text-shadow: 0 0 6px rgba(251, 191, 36, 0.5);
}

/* Table */
.classement-page table.rank {
    width: 100%;
    border-collapse: collapse;
}

.classement-page table.rank th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #94a3b8;
    padding: 12px;
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.classement-page table.rank td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
}

/* Lignes alternées et survol */
.classement-page table.rank tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
}

.classement-page table.rank tbody tr:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* Ligne joueur en ligne */
.classement-page table.rank tbody tr.online-row {
    background: rgba(34, 197, 94, 0.08) !important;
}

/* Icône job */
.classement-page .job-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    padding: 2px;
}

/* Badges statut */
.classement-page .badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    background: #334155;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

.classement-page .online {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-color: #22c55e;
}

.classement-page .offline {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: #ef4444;
}
/* === Filtres === */
.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    padding: 16px;
}

.filters label {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 4px;
    display: block;
}

.filters select,
.filters input[type="number"] {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #1e293b;
    color: #e2e8f0;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filters select:focus,
.filters input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}

/* Boutons filtres */
.filters button,
.filters .btn-reset {
    padding: 10px 16px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.filters button {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: white;
}

.filters button:hover {
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    transform: scale(1.02);
}

.filters .btn-reset {
    background: #334155;
    color: #f1f5f9;
    text-decoration: none;
}

.filters .btn-reset:hover {
    background: #475569;
    transform: scale(1.02);
}

/* === Pagination === */
.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    padding: 12px;
    font-size: 0.9rem;
}

.pagination a,
.pagination span {
    padding: 8px 10px;
    border-radius: 6px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
}

.pagination a:hover {
    background: #334155;
    transform: scale(1.05);
}

.pagination .active {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: white;
    border-color: transparent;
}



/* === Page Boutique === */
/* === Page Boutique === */
.shop-page {
  /* Palette principale */
  --color-primary: #ffcc00; /* CTA / action */
  --color-secondary: #ffdd44; /* hover accents */
  --color-success: #4ade80;
  --color-danger: #f87171;
  --color-text: #f1f5f9;
  --color-bg: #0f172a;
  --color-bg-alt: #1e293b;

  /* Typo */
  --font-title: "Poppins", Arial, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Rayons, ombres, espaces */
  --radius: 12px;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;

  /* Durées anim */
  --transition: 200ms ease;

  /* Taille max conteneur */
  --container-max: 1400px;
}

@media (prefers-color-scheme: dark) {
  .shop-page {
    --color-text: #f8fafc;
    --color-bg: #0f172a;
    --color-bg-alt: #1e293b;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-page * {
    transition: none !important;
    animation: none !important;
  }
}

/* RESET + BASE */
.shop-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.shop-page {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

.shop-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

.shop-page a {
  text-decoration: none;
  color: inherit;
}

/* CONTAINER */
.shop-page .container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* HEADER */
.shop-page .shop-header { text-align: center; padding: var(--space-lg) var(--space-md); }
.shop-page .shop-header__title { font-family: var(--font-title); font-size: clamp(1.8rem, 2.5vw, 2.5rem); margin-bottom: var(--space-sm); }
.shop-page .shop-header__subtitle { color: #cbd5e1; max-width: 60ch; margin: 0 auto var(--space-md); }

/* PRODUCT GRID */
.shop-page .product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 600px) {
  .shop-page .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .shop-page .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1400px) {
  .shop-page .product-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.shop-page .product-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition), background var(--transition);
}

.shop-page .product-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
}

.shop-page .product-card__media {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-sm);
}

.shop-page .product-card__title {
  font-family: var(--font-title);
  font-size: 1rem;
  min-height: 40px;
  margin-bottom: var(--space-sm);
}

.shop-page .product-card__price {
  font-weight: bold;
  color: var(--color-primary);
}

.shop-page .product-card__price--old {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 0.9rem;
  margin-right: var(--space-xs);
}

.shop-page .product-card__badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 0.7rem;
  border-radius: var(--radius);
  margin-bottom: var(--space-sm);
}

.shop-page .badge--bestseller {
  background: var(--color-success);
  color: #000;
}

.shop-page .badge--new {
  background: var(--color-primary);
  color: #000;
}

.shop-page .badge--low-stock {
  background: #facc15;
  color: #000;
}

/* CTA BUTTONS */
.shop-page .cta {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  transition: background var(--transition), transform var(--transition);
}

.shop-page .cta--primary {
  background: var(--color-primary);
  color: #000;
}

.shop-page .cta--primary:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
}

/* REASSURANCE BLOCK */
.shop-page .reassures {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  margin-top: var(--space-lg);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.shop-page .reassures__item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: #cbd5e1;
}

/* FOOTER */
.shop-page .footer {
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
  padding: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.1);
}
/* Badges container */
.shop-page .product-card__badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

/* Centrage icône */
.shop-page .product-card__media {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;   /* taille de la zone */
  height: 80px;
  margin: 0 auto var(--space-sm);
}

.shop-page .product-card__media img {
  width: 34px;
  height: 34px;
}
.shop-page .filters {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.shop-page .filter-btn {
  background: var(--color-bg-alt);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--color-text);
  padding: 6px 14px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background var(--transition), transform var(--transition);
}

.shop-page .filter-btn:hover,
.shop-page .filter-btn.active {
  background: var(--color-primary);
  color: #000;
  transform: translateY(-2px);
}

.alert-error {
    background: #ffdddd;
    border: 1px solid #ff5c5c;
    color: #a60000;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.alert-success {
    background: #ddffdd;
    border: 1px solid #5cb85c;
    color: #006600;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 5px;
}
