<br />
<b>Warning</b>:  Undefined variable $auth in <b>/home/pevo0181/public_html/pia-soft.com/cleania/routes/index.php</b> on line <b>542</b><br />
<br />
<b>Warning</b>:  Trying to access array offset on value of type null in <b>/home/pevo0181/public_html/pia-soft.com/cleania/routes/index.php</b> on line <b>542</b><br />
/* ============================================================
   DAMES INTERNATIONALES - Design Bois & Or
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --bg: #1a1008;
  --bg2: #221508;
  --gold: #c9993a;
  --gold-light: #e8c060;
  --gold-dark: #8b6820;
  --cream: #f5e6c8;
  --dark-text: #2a1a05;
  --cell-dark: #6b3a1f;
  --cell-dark-hover: #7d4a2a;
  --cell-light: #d4a96a;
  --piece-white: #f0e0b0;
  --piece-white-border: #c8a050;
  --piece-black: #1a1008;
  --piece-black-border: #4a3010;
  --selected: #ffd700;
  --target: #7fff7f;
  --shadow: 0 8px 32px rgba(0,0,0,0.6);
  --border-radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Ã‰vite le zoom sur double-tap et amÃ©liore le tactile */
button, .menu-card, .cell, .radio-card, .room-btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Scroll fluide sur mobile */
html { scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }

body {
  background: var(--bg);
  font-family: 'Crimson Text', Georgia, serif;
  color: var(--cream);
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(201,153,58,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(107,58,31,0.15) 0%, transparent 50%);
}

.hidden { display: none !important; }

/* ---- HEADER ---- */
header {
  text-align: center;
  padding: 2rem 1rem 1rem;
  border-bottom: 1px solid rgba(201,153,58,0.3);
}
header h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  text-shadow: 0 2px 8px rgba(201,153,58,0.4);
}
header p {
  font-style: italic;
  color: var(--gold-dark);
  font-size: 1rem;
  margin-top: 0.3rem;
}

/* ---- MAIN ---- */
main { max-width: 900px; margin: 0 auto; padding: 2rem 1rem; }

/* ---- MENU ---- */
.menu-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
}
.menu-title {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: var(--gold);
  text-align: center;
}
.menu-card {
  background: linear-gradient(135deg, rgba(34,21,8,0.95), rgba(42,26,10,0.95));
  border: 1px solid rgba(201,153,58,0.3);
  border-radius: var(--border-radius);
  padding: 2rem;
  width: 100%;
  max-width: 440px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.menu-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(201,153,58,0.25);
}
.menu-card h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}
.menu-card p { color: rgba(245,230,200,0.7); font-size: 0.95rem; }
.menu-card .icon { font-size: 2.5rem; margin-bottom: 0.8rem; }

/* ---- BOUTONS ---- */
.btn {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.65rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--dark-text);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(201,153,58,0.4);
}
.btn-gold:hover { background: linear-gradient(135deg, var(--gold), var(--gold-light)); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1px solid rgba(201,153,58,0.5);
  color: var(--gold);
}
.btn-outline:hover { border-color: var(--gold); background: rgba(201,153,58,0.1); }
.btn-danger { background: rgba(180,40,40,0.7); color: var(--cream); border: 1px solid rgba(220,60,60,0.5); }
.btn-danger:hover { background: rgba(200,50,50,0.8); }

/* ---- PLATEAU ---- */
.game-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.board-container {
  position: relative;
  padding: 12px;
  background: linear-gradient(135deg, #3d1f0a, #5c2f10);
  border-radius: 10px;
  box-shadow:
    0 0 0 3px var(--gold-dark),
    0 0 0 6px #2a1206,
    var(--shadow);
}

.board {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(10, 1fr);
  width: min(540px, 92vw);
  height: min(540px, 92vw);
  border: 2px solid var(--gold-dark);
}

.cell {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: background-color 0.15s;
  position: relative;
}
.cell.dark { background: var(--cell-dark); }
.cell.light { background: var(--cell-light); }
.cell.dark.has-move { cursor: pointer; }
.cell.selected { background: rgba(255,215,0,0.55) !important; }
.cell.target {
  background: rgba(100,220,100,0.45) !important;
  cursor: pointer;
}
.cell.target::after {
  content: '';
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background: rgba(100,220,100,0.7);
  position: absolute;
}

/* ---- PIÃˆCES ---- */
.piece {
  width: 76%;
  height: 76%;
  border-radius: 50%;
  position: relative;
  transition: transform 0.15s;
}
.piece:hover { transform: scale(1.05); }

.piece-white {
  background: radial-gradient(circle at 35% 35%, #fff8e0, var(--piece-white) 60%, #c8a050);
  border: 2px solid var(--piece-white-border);
  box-shadow:
    inset 0 -3px 6px rgba(0,0,0,0.2),
    inset 0 3px 6px rgba(255,255,255,0.6),
    0 3px 8px rgba(0,0,0,0.4);
}

.piece-black {
  background: radial-gradient(circle at 35% 35%, #4a3010, var(--piece-black) 60%, #0a0502);
  border: 2px solid var(--piece-black-border);
  box-shadow:
    inset 0 -3px 6px rgba(0,0,0,0.5),
    inset 0 3px 6px rgba(100,70,20,0.3),
    0 3px 8px rgba(0,0,0,0.5);
}

.piece-king::after {
  content: 'â™›';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-size: 45%;
  line-height: 1;
}
.piece-white.piece-king::after { color: var(--gold-dark); }
.piece-black.piece-king::after { color: var(--gold-light); }

/* ---- STATUT ---- */
.status {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  background: rgba(34,21,8,0.8);
  border: 1px solid rgba(201,153,58,0.3);
  color: var(--cream);
  text-align: center;
}
.status.winner {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(50,30,5,0.9);
  font-weight: 700;
  font-size: 1.1rem;
}
.status.my-turn {
  color: #90ee90;
  border-color: rgba(144,238,144,0.4);
}

/* ---- GAME CONTROLS ---- */
.game-controls {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- ONLINE LOBBY ---- */
.online-container {
  max-width: 480px;
  margin: 0 auto;
}
.section-title {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(201,153,58,0.2);
}
.input-group { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1.5rem; }
.input-group label { font-size: 0.9rem; color: rgba(245,230,200,0.7); }
.game-input {
  background: rgba(34,21,8,0.8);
  border: 1px solid rgba(201,153,58,0.4);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  color: var(--cream);
  font-family: 'Crimson Text', serif;
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.2s;
}
.game-input:focus { outline: none; border-color: var(--gold); }
.action-row { display: flex; gap: 0.8rem; }
.action-row .btn { flex: 1; justify-content: center; }

.divider {
  text-align: center;
  color: rgba(201,153,58,0.5);
  margin: 1.2rem 0;
  font-size: 0.85rem;
  position: relative;
}
.divider::before, .divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: rgba(201,153,58,0.2);
}
.divider::before { left: 0; }
.divider::after { right: 0; }

.rooms-container { margin-top: 1rem; }
.room-btn {
  width: 100%;
  padding: 0.7rem 1rem;
  margin-bottom: 0.5rem;
  background: rgba(107,58,31,0.3);
  border: 1px solid rgba(201,153,58,0.3);
  border-radius: 8px;
  color: var(--cream);
  cursor: pointer;
  font-family: 'Crimson Text', serif;
  font-size: 1rem;
  transition: all 0.2s;
  text-align: left;
}
.room-btn:hover { background: rgba(107,58,31,0.6); border-color: var(--gold); }
.no-rooms { color: rgba(245,230,200,0.4); font-style: italic; text-align: center; padding: 1rem; }

/* ---- WAITING SCREEN ---- */
.waiting-card {
  background: rgba(34,21,8,0.9);
  border: 1px solid rgba(201,153,58,0.4);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
}
.room-code {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  color: var(--gold-light);
  letter-spacing: 0.2em;
  margin: 1rem 0;
  background: rgba(0,0,0,0.3);
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  display: inline-block;
}
.waiting-dots { color: var(--gold-dark); font-style: italic; margin-top: 1rem; }
.waiting-dots::after {
  content: '...';
  animation: dots 1.5s infinite;
}
@keyframes dots {
  0%, 33% { content: '.'; }
  34%, 66% { content: '..'; }
  67%, 100% { content: '...'; }
}

/* ---- ONLINE GAME INFO ---- */
.online-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(540px, 92vw);
  font-size: 0.9rem;
}
#my-color-label { font-family: 'Cinzel', serif; color: var(--gold); }
#opponent-name { color: rgba(245,230,200,0.7); }

/* ---- FOOTER ---- */
footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  border-top: 1px solid rgba(201,153,58,0.15);
  margin-top: 2rem;
  color: rgba(245,230,200,0.4);
  font-size: 0.85rem;
  font-style: italic;
}
.signature {
  font-family: 'Cinzel', serif;
  font-style: normal;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-shadow: 0 0 12px rgba(201,153,58,0.4);
}
.setup-container {
  max-width: 500px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(34,21,8,0.95), rgba(42,26,10,0.95));
  border: 1px solid rgba(201,153,58,0.3);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.setup-group { margin-bottom: 1.8rem; }
.setup-label {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}
.radio-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.radio-group-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 320px;
}
.radio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.9rem 0.5rem;
  border: 1px solid rgba(201,153,58,0.25);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(0,0,0,0.2);
  position: relative;
}
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card:has(input:checked) {
  border-color: var(--gold);
  background: rgba(201,153,58,0.15);
  box-shadow: 0 0 12px rgba(201,153,58,0.2);
}
.radio-card:hover { border-color: rgba(201,153,58,0.6); }
.radio-icon { font-size: 1.6rem; margin-bottom: 0.3rem; }
.radio-title { font-family: 'Cinzel', serif; font-size: 0.85rem; color: var(--cream); }
.radio-desc { font-size: 0.75rem; color: rgba(245,230,200,0.5); margin-top: 0.15rem; }
.setup-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* ---- MODE IA â€” JEU ---- */
.ai-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(540px, 92vw);
  gap: 1rem;
}
.ai-label {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--gold);
  white-space: nowrap;
}
.thinking-status {
  color: #ffd27a;
  border-color: rgba(255,210,122,0.4);
  animation: pulse 1s infinite alternate;
}
@keyframes pulse { from { opacity: 0.7; } to { opacity: 1; } }

.piece.thinking {
  animation: bounce 0.5s infinite alternate;
}
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-3px); } }

/* ============================================================
   RESPONSIVE â€” MOBILE FIRST
   ============================================================ */

/* Tablette (â‰¤ 768px) */
@media (max-width: 768px) {
  header { padding: 1.2rem 1rem 0.8rem; }
  header h1 { font-size: 1.8rem; }
  header p { font-size: 0.9rem; }

  main { padding: 1.2rem 0.8rem; }

  .menu-container { gap: 1rem; }
  .menu-card { padding: 1.5rem 1.2rem; max-width: 100%; }
  .menu-card h2 { font-size: 1.2rem; }
  .menu-card .icon { font-size: 2rem; }

  .board {
    width: min(480px, 94vw);
    height: min(480px, 94vw);
  }

  .setup-container { padding: 1.4rem; }
  .radio-group { gap: 0.6rem; }
}

/* Mobile (â‰¤ 480px) */
@media (max-width: 480px) {
  header { padding: 0.9rem 0.8rem 0.6rem; }
  header h1 { font-size: 1.35rem; letter-spacing: 0.03em; }
  header p { font-size: 0.8rem; }

  main { padding: 0.8rem 0.5rem; }

  /* Menu principal : cartes empilÃ©es plein largeur */
  .menu-container { gap: 0.8rem; padding: 0.8rem 0; }
  .menu-card {
    padding: 1.1rem 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
  }
  .menu-card .icon { font-size: 1.8rem; margin-bottom: 0; flex-shrink: 0; }
  .menu-card h2 { font-size: 1rem; margin-bottom: 0.2rem; }
  .menu-card p { font-size: 0.8rem; }

  /* Plateau : utilise tout l'Ã©cran */
  .board-container { padding: 7px; border-radius: 8px; }
  .board {
    width: min(370px, 97vw);
    height: min(370px, 97vw);
  }

  /* PiÃ¨ces plus grandes proportionnellement */
  .piece { width: 80%; height: 80%; }
  .piece-king::after { font-size: 48%; }

  /* Statut */
  .status { font-size: 0.82rem; padding: 0.4rem 0.9rem; }

  /* Boutons */
  .btn { font-size: 0.78rem; padding: 0.5rem 0.85rem; border-radius: 7px; }
  .game-controls { gap: 0.5rem; }

  /* Info bar online/IA */
  .online-info, .ai-info-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    width: 97vw;
  }

  /* Setup IA */
  .setup-container { padding: 1rem 0.8rem; border-radius: 10px; }
  .setup-group { margin-bottom: 1.2rem; }
  .setup-label { font-size: 0.85rem; }
  .radio-group { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
  .radio-group-2 { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
  .radio-card { padding: 0.6rem 0.3rem; border-radius: 8px; }
  .radio-icon { font-size: 1.2rem; margin-bottom: 0.2rem; }
  .radio-title { font-size: 0.75rem; }
  .radio-desc { font-size: 0.65rem; }
  .setup-actions { gap: 0.6rem; }
  .setup-actions .btn { flex: 1; justify-content: center; font-size: 0.82rem; }

  /* Lobby en ligne */
  .online-container { padding: 0 0.2rem; }
  .game-input { font-size: 0.9rem; padding: 0.5rem 0.8rem; }
  .action-row { flex-direction: column; }
  .action-row .btn { width: 100%; justify-content: center; }
  .room-btn { font-size: 0.88rem; padding: 0.6rem 0.8rem; }

  /* Salle d'attente */
  .waiting-card { padding: 1.4rem 1rem; }
  .room-code { font-size: 1.8rem; letter-spacing: 0.15em; padding: 0.4rem 1rem; }

  /* Footer */
  footer { font-size: 0.78rem; padding: 1rem 0.8rem 1.5rem; }
}

/* TrÃ