/* ====== Variables CSS ====== */
:root {
  --bg: #0b0f1a;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #38bdf8;
  --accent-2: #22c55e;
  --border: #1f2937;
}

/* ====== Reset de base ====== */
* { 
  box-sizing: border-box; 
}

html, body { 
  margin: 0; 
  padding: 0; 
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  color: var(--text);
  background: linear-gradient(to right, #070824, #2f0b2d);
  line-height: 1.5;
}

/* ====== Header ====== */
.header {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(12px, 2.5vw, 24px);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(12px, 2vw, 24px);
  align-items: center;
}

.header img {
  display: block;
  max-width: 100%;
  height: auto;
}

.header {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 350px;
  padding-right: 40px;
}

.header .logo-container {
  padding-left: 80px;
  display: flex;
  align-items: center;
}

.header img.logo-site {
  height: 640px;
  width: auto;
}
/* IMAGE CONTAINER */
.image-container {
  display: inline-block;
  -webkit-mask-image: linear-gradient( to right, transparent 0%, #51121242 10%, black 90%, transparent 100% );
  mask-image: linear-gradient( to right, transparent 0%, #51121242 10%, black 90%, transparent 100% );
}


.image-container img {
  display: block;
  width: 100%;
  height: auto;
}
/* HEADER */
.header {
  color: white;
  padding: 30px;
  text-align: center;
}

.header h1 {
  margin: 0;
  font-size: 2.5em;
}

/* ====== Conteneur tableau ====== */
.table-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(12px, 2.5vw, 24px) clamp(28px, 4vw, 48px);
}

/* ====== Tableau ====== */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

thead th {
  text-align: left;
  font-weight: 600;
  color: #cbd5e1;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
}

tbody td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tbody tr:nth-child(odd) { 
  background: #0e1623; 
}

tbody tr:nth-child(even) { 
  background: #0d1521; 
}

/* ====== Éléments de tableau spécifiques ====== */
.rank {
  width: 56px;
  text-align: center;
  font-weight: 700;
  color: #fbbf24;
}

.logo {
  max-width: 140px;
  width: 100%;
  height: auto;
  display: block;
}

.casino-features {
  margin: 0;
  padding-left: 18px;
}

.casino-features li { 
  margin: 6px 0; 
}

.note {
  white-space: nowrap;
  font-weight: 700;
  color: #f59e0b;
}

.play-button {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #06121e;
  background: linear-gradient(90deg, var(--accent-2), #10b981 60%, #2dd4bf);
  border: 0;
  transition: transform .12s ease, filter .12s ease;
  box-shadow: 0 6px 18px rgba(34, 197, 94, .25);
}

.play-button:hover { 
  transform: translateY(-1px); 
  filter: brightness(1.03); 
}

.play-button:active { 
  transform: translateY(0); 
}

/* ====== Footer ====== */
.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px clamp(12px, 2.5vw, 24px) 48px;
  color: var(--muted);
  text-align: center;
}

.footer a { 
  color: var(--accent); 
  text-decoration: none; 
}

.footer a:hover { 
  text-decoration: underline; 
}

.footer-logos {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.footer-logos img {
  height: 28px;
  width: auto;
  filter: saturate(.9) contrast(1.05);
}

/* ====== Pages de contenu ====== */
.page-container {
  max-width: 900px;
  margin: 40px auto;
  background-color: #0f172a;
  padding: 40px;
  border-radius: 10px;
  color: #f1f5f9;
  line-height: 1.6;
}

.page-container h1,
.page-container h2 {
  color: var(--accent);
}

.page-container a {
  color: #60a5fa;
  text-decoration: none;
}

.page-container a:hover {
  text-decoration: underline;
}

.page-container.mentions h1,
.page-container.mentions h2 {
  color: #fbbf24;
}

/* ====== Responsive Design ====== */

/* Tablette */
@media (max-width: 1024px) {
  .logo { 
    max-width: 110px; 
  }
  
  thead th, tbody td { 
    padding: 14px; 
  }
}

/* Tablette portrait */
@media (max-width: 860px) {
  .header {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .image-container { 
    order: 2; 
  }
  
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  table { 
    min-width: 700px; 
  }
}

/* Mobile */
@media (max-width: 860px) {
  /* Transformation en cartes */
  table, thead, tbody, th, td, tr { 
    display: block; 
  }
  
  thead { 
    display: none; 
  }
  
  table { 
    border: 0; 
    background: transparent; 
    min-width: 0; 
  }
  
  tbody tr {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin: 14px 0;
    overflow: hidden;
  }
  
  tbody td {
    border: 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    padding: 12px 12px 12px 132px;
  }
  
  tbody td:last-child { 
    border-bottom: 0; 
  }

  /* Étiquettes automatiques */
  tbody td:nth-child(1)::before { content: "No"; }
  tbody td:nth-child(2)::before { content: "Casino"; }
  tbody td:nth-child(3)::before { content: "Avantages"; }
  tbody td:nth-child(4)::before { content: "Note"; }

  tbody td::before {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 108px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    font-weight: 600;
    white-space: nowrap;
  }

  .rank { 
    text-align: left; 
    color: #fde68a; 
  }
  
  .logo { 
    max-width: 120px; 
    margin: 0 0 4px; 
  }
  
  .play-button { 
    width: 100%; 
    text-align: center; 
  }
}

/* ====== Accessibilité ====== */
@media (prefers-reduced-motion: reduce) {
  .play-button { 
    transition: none; 
  }
}
/* ====== Version mobile : logo centré verticalement à gauche ====== */
@media (max-width: 860px) {
  .header {
    position: relative;
    height: 220px; /* ajuste si tu veux plus haut ou plus bas */
    padding: 0;
    display: block;
    overflow: hidden;
  }

  /* Bannière en arrière-plan */
  .header .image-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .header .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Logo au premier plan, centré verticalement à gauche */
  .header > div:first-child {
    position: absolute;
    top: 50%;
    left: 15px; /* marge depuis le bord gauche */
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
  }

  .header > div:first-child img {
    height: auto;
    max-height: 70%; /* limite de hauteur du logo */
    max-width: 55%;
  }
}


