/* ========================================
   RESET & BASE
   ======================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #003d1e;
  color: #fff;
  display: flex;
  flex-direction: row;
}

/* ========================================
   COLONNE GAUCHE — HISTORIQUE
   ======================================== */
.historique {
  width: 200px;
  min-width: 160px;
  max-width: 200px;
  height: 100vh;
  position: sticky;
  top: 0;
  background: #003d1e;
  overflow-y: auto;
  padding: 12px 6px;
  flex-shrink: 0;
  /* Bordure droite légère pour séparer */
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.historique h2 {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}

/* Gestion Texte vs Emoji */
.mobile-text {
  display: none;
}
.desktop-text {
  display: inline;
}

/* Chaque entrée : colonne verticale (ID en haut, boule en bas) */
.historique-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s;
}

.historique-entry:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ID au-dessus de la boule */
.historique-id {
  font-size: 0.68rem;
  color: #ffe6b3;
  font-family: "Courier New", monospace;
  text-align: center;
}

/* Boules grosses */
.boule {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.historique::-webkit-scrollbar {
  width: 5px;
}
.historique::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.historique::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
}

/* ========================================
   CENTRE — MAIN
   ======================================== */
main {
  flex: 1;
  max-width: 450px;
  margin: 0 auto;
  background: #006732;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 50px;
}

.main-header {
  width: 100%;
  text-align: center;
  padding: 0px 10px 8px;
  margin: 0 auto;
}

.jackpot-img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  margin-top: -50px;
  margin-right: -12px;
}

/* ========================================
   SECTION MIDDLE — Background + Logo
   ======================================== */
.section-middle {
  width: 100%;
  position: relative;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.middle-bg {
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 80%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.middle-logo {
  position: relative;
  z-index: 2;
  width: 92%;
  object-fit: contain;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.7));
  pointer-events: none;
  user-select: none;
  margin-top: 80px;
  /* margin-bottom: 10px; */
  overflow: visible;
}

/* ========================================
   SECTION BOTTOM — DOUBLE BORDURE
   ======================================== */
.section-bottom {
  width: calc(100% - 32px);
  margin: 0px 16px 20px 16px;
  border: 2px solid #ffffff;
  border-radius: 8px;
  padding: 9px;
  background: #52ab3f;
}

.table-outer-border {
  border: 1px solid #ffffff;
  overflow: hidden;
}

.table-outer-border table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.table-outer-border td,
.table-outer-border th {
  border: 1px solid #ffffff;
  text-align: center;
  vertical-align: middle;
  transition: background 0.15s;
}

.table-outer-border td:hover,
.table-outer-border th:hover {
  filter: brightness(1.2);
}

.cell-noir:hover {
  background: #2a2a2a !important;
  box-shadow: inset 0 0 18px 4px rgba(159, 161, 161, 0.048);
  filter: none;
}

/* ========================================
   CASES CHIFFRES
   ======================================== */
.cell-num {
  color: #ffffff;
  font-size: 4rem;
  font-weight: 800;
  height: 60px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.cell-rouge {
  background: #cd0001;
}

.cell-noir {
  background: #000101;
}

/* ========================================
   CELLULES TEXTE
   ======================================== */
.cell-text {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  line-height: 1.3;
  padding: 10px 6px;
}

.table-outer-border table tr:last-child td {
  padding: 14px 6px;
  font-weight: 700;
  letter-spacing: 1px;
  background: #003d1e;
  height: 50px;
}

.cell-empty {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ========================================
   LOSANGES (CLIP-PATH)
   ======================================== */
.cell-losange-container {
  padding: 14px 6px;
  position: relative;
  background: #003d1e;
}

.losange {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  transition:
    transform 0.2s,
    filter 0.2s;
  cursor: pointer;
}

.losange:hover {
  transform: scale(1.1);
  filter: brightness(1.25);
}

/* Grand losange jaune — vertical normal */
.losange-jaune {
  background: #ffd36a;
  width: 100px;
  height: 100px;
}

/* Losange rouge */
.losange-rouge {
  background: #fd0000;
}

/* Losange gris-noir */
.losange-gris {
  background: #2a2b2b;
}

/* ========================================
   LOSANGES PLATS — Inclinés à l'horizontale
   ======================================== */
.losange-plat {
  /* Écraser la hauteur, élargir la largeur → forme plate horizontale */
  width: 90px;
  height: 40px;
  /* Le clip-path reste identique, mais appliqué sur une forme aplatie */
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.losange-plat:hover {
  transform: scale(1.12);
}

/* ========================================
   HAMBURGER — ICÔNE
   ======================================== */
.hamburger {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 1000;
  background: #003d1e;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: background 0.2s;
}

.hamburger:hover {
  background: rgba(139, 110, 56, 0.95);
}

.hamburger-line {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ========================================
   SIDEBAR — MENU
   ======================================== */
.sidebar {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: #003d1e;
  z-index: 999;
  padding: 60px 20px 30px;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0);
}

.sidebar.open {
  right: 0;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.7);
}

.sidebar-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.sidebar-close:hover {
  color: #daa520;
}

.sidebar-item {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition:
    background 0.2s,
    padding-left 0.2s;
  border-radius: 6px;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.06);
  padding-left: 16px;
}

.sidebar-item h3 {
  font-size: 1rem;
  color: #daa520;
  margin-bottom: 4px;
  font-weight: 700;
}

.sidebar-item p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
}

/* ========================================
   OVERLAY
   ======================================== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s,
    visibility 0.35s;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   FOOTER — BARRE DE JETONS
   ======================================== */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(14, 15, 14, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(12px); /* Safari */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 14px;
  z-index: 900;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    transform 0.15s;
  flex-shrink: 0;
}

.footer-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.08);
}

.footer-btn:active {
  transform: scale(0.95);
}

.footer-trash svg {
  stroke: #ff6b6b;
}

.footer-undo svg {
  stroke: #6bcfff;
}

.jetons-container {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0;
}

.jeton {
  width: 48px;
  height: 48px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    filter 0.2s;
  border-radius: 50%;
  flex-shrink: 0;
  user-select: none;
}

.jeton:hover {
  transform: translateY(-5px);
  filter: drop-shadow(0 6px 10px rgba(255, 200, 50, 0.45));
}

.jeton:active {
  transform: translateY(-2px) scale(0.94);
}

.jeton.selected {
  outline: 3px solid #daa520;
  outline-offset: 2px;
  transform: translateY(-5px);
  filter: drop-shadow(0 6px 14px rgba(255, 200, 50, 0.6));
}

@keyframes pop {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.25) translateY(-6px);
  }
  50% {
    transform: scale(0.92) translateY(-2px);
  }
  70% {
    transform: scale(1.08) translateY(-4px);
  }
  100% {
    transform: scale(1) translateY(-5px);
  }
}

.jeton.pop {
  animation: pop 0.4s ease forwards;
}

.jetons-container::-webkit-scrollbar {
  height: 4px;
}
.jetons-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* ========================================
   HIGHLIGHT CASE GAGNANTE
   ======================================== */

@keyframes winner-pulse {
  0% {
    box-shadow: inset 0 0 0 0 rgba(255, 240, 100, 0);
    background-color: transparent;
  }
  10% {
    box-shadow: inset 0 0 40px 12px #fafafa;
    background-color: rgba(255, 240, 100, 0.25);
  }
  25% {
    box-shadow: inset 0 0 15px 4px rgba(255, 240, 100, 0.3);
    background-color: transparent;
  }
  40% {
    box-shadow: inset 0 0 40px 12px #fafafa;
    background-color: rgba(255, 240, 100, 0.25);
  }
  55% {
    box-shadow: inset 0 0 15px 4px rgba(255, 240, 100, 0.3);
    background-color: transparent;
  }
  70% {
    box-shadow: inset 0 0 35px 10px #fafafa;
    background-color: rgba(255, 240, 100, 0.2);
  }
  100% {
    box-shadow: inset 0 0 20px 6px #fafafa;
    background-color: transparent;
  }
}

.cell-winner-highlight {
  animation: winner-pulse 2.5s ease-in-out forwards;
  outline: 3px solid #ffe84d;
  outline-offset: -3px;
  position: relative;
  z-index: 5;
}

@keyframes losange-winner-glow {
  0% {
    filter: brightness(1) drop-shadow(0 0 0px rgba(255, 240, 100, 0));
  }
  10% {
    filter: brightness(2.2) drop-shadow(0 0 22px rgba(255, 240, 100, 1));
  }
  25% {
    filter: brightness(1.3) drop-shadow(0 0 8px rgba(255, 240, 100, 0.4));
  }
  40% {
    filter: brightness(2.2) drop-shadow(0 0 22px rgba(255, 240, 100, 1));
  }
  55% {
    filter: brightness(1.3) drop-shadow(0 0 8px rgba(255, 240, 100, 0.4));
  }
  75% {
    filter: brightness(2) drop-shadow(0 0 18px rgba(255, 240, 100, 0.9));
  }
  100% {
    filter: brightness(1.5) drop-shadow(0 0 12px rgba(255, 240, 100, 0.6));
  }
}

.losange-winner-highlight {
  animation: losange-winner-glow 2.5s ease-in-out forwards;
  transform: scale(1.2);
}

/* ========================================
   JETONS SUR LE TABLEAU
   ======================================== */

.table-chip {
  position: absolute;
  bottom: 4px;
  right: 4px;
  z-index: 10;
  width: 54px;
  min-height: 54px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  /*contenir l'empilement dans la case */
  max-height: calc(100% - 8px);
}
.table-chip.chip-visible {
  opacity: 1;
  transform: scale(1);
}
.table-chip-img {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  right: 0px;
  /* bottom positionné dynamiquement en JS */
}

.chip-amount {
  position: absolute;
  bottom: 10px;
  right: 40px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #ffd700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 1);
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.85),
    rgba(20, 20, 20, 0.9)
  );
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  border: 1px solid rgba(255, 215, 0, 0.4);
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

@keyframes chip-bump {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.2);
  }
  60% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

.table-chip.chip-bump {
  animation: chip-bump 0.35s ease forwards;
}

/* ========================================
   FENÊTRE DE MISE OUVERTE
   ======================================== */

.table-outer-border.betting-open {
  box-shadow: 0 0 15px 3px rgba(0, 255, 100, 0.4);
  border-color: #00ff64;
  transition:
    box-shadow 0.5s ease,
    border-color 0.5s ease;
}

/* ========================================
   CELLULE VERROUILLÉE (losange opposé)
   ======================================== */
.cell-locked {
  opacity: 0.35;
  pointer-events: none;
  position: relative;
}

.cell-locked::after {
  content: "🔒";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  z-index: 15;
}

/* ========================================
   ANIMATION SHAKE (refus de mise)
   ======================================== */
@keyframes cell-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  15% {
    transform: translateX(-6px);
  }
  30% {
    transform: translateX(6px);
  }
  45% {
    transform: translateX(-4px);
  }
  60% {
    transform: translateX(4px);
  }
  75% {
    transform: translateX(-2px);
  }
  90% {
    transform: translateX(2px);
  }
}

.cell-shake {
  animation: cell-shake 0.5s ease;
}

/* ========================================
   MESSAGE "MISES FERMÉES"
   ======================================== */
.mises-fermees-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 18px 28px;
  border-radius: 12px;
  border: 2px solid #ff4444;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  z-index: 2000;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  max-width: 90vw;
  box-shadow: 0 8px 30px rgba(255, 0, 0, 0.3);
}

.mises-fermees-message.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.mises-fermees-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 8px;
}

/* Forcer le verrouillage sur la dernière ligne du tableau */
.table-outer-border table tr:last-child td.cell-locked {
  opacity: 0.35 !important;
  pointer-events: none !important;
  position: relative;
}

.table-outer-border table tr:last-child td.cell-locked::after {
  content: "🔒";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  z-index: 15;
}

/* ========================================
   RESPONSIVE ≤ 700px
   ======================================== */
@media (max-width: 700px) {
  /* --- HISTORIQUE MINCE --- */
  .historique {
    width: 50px;
    min-width: 50px;
    padding: 10px 2px;
  }

  .desktop-text {
    display: none;
  }
  .historique h2 {
    display: none;
  }
  .mobile-text {
    display: none;
    font-size: 1.5rem;
    border-bottom: 0px;
  }

  .historique-id {
    font-size: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }

  .boule {
    width: 32px;
    height: 32px;
  }

  /* --- MAIN --- */
  main {
    width: calc(100% - 50px);
    max-width: none;
    overflow-x: hidden;
    padding-bottom: 0px;
  }

  /* --- HEADER ---------------------------------------------------- */
  .main-header {
    padding: 0;
    width: 100%;
    height: auto;
    min-height: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
  }

  .jackpot-img {
    margin-top: -50px;
    margin-right: -12px;
    width: 100%;
    height: auto;
    display: block;
  }

  /* --- SECTION MIDDLE ---------------------------------------------------- */
  .section-middle {
    width: 100%;
    min-height: unset;
    height: auto;
    margin-top: 0;
    padding: 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
  }

  .middle-bg {
    top: 0;
    height: 85%;
  }

  /* RÈGLE PRINCIPALE : même largeur que .section-bottom */
  .middle-logo {
    width: calc(100% - 10px); /* = section-bottom width */
    margin-top: 0;
    max-width: none;
    overflow: visible;
  }

  /* --- SECTION BOTTOM ---------------------------------------------------- */
  .section-bottom {
    width: calc(100% - 10px);
    margin: 0px auto 70px auto;
    padding: 5px;
  }

  .cell-num {
    font-size: 2rem;
    height: 44px;
  }

  .cell-text {
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    padding: 8px 4px;
  }

  .table-outer-border table tr:last-child td {
    height: 44px;
    padding: 10px 4px;
    font-size: 0.85rem;
  }

  .cell-losange-container {
    padding: 10px 4px;
  }

  .losange {
    width: 62px;
    height: 62px;
  }

  .losange-jaune {
    width: 85px;
    height: 85px;
  }

  .losange-plat {
    width: 65px;
    height: 28px;
  }

  /* --- JETONS FOOTER --- */
  .jeton {
    width: 40px;
    height: 40px;
  }

  /* --- HAMBURGER --- */
  .hamburger {
    top: 5px;
    right: 5px;
    background: rgba(0, 61, 30, 0.9);
  }

  /* --- CHIPS SUR TABLEAU --- */
  .table-chip-img {
    width: 24px;
    height: 24px;
  }

  .chip-amount {
    font-size: 0.55rem;
    padding: 0px 3px;
  }

  .table-chip {
    top: 2px;
    right: 2px;
  }

  .mises-fermees-message {
    font-size: 0.8rem;
    padding: 14px 20px;
  }
}

/* ========================================
   RESPONSIVE ≤ 490px
   ======================================== */
@media (max-width: 490px) {
  .main-header {
    height: auto;
    min-height: unset;
  }

  .jackpot-img {
    margin-top: -40px;
    margin-right: -12px;
    width: 100%;
    height: auto;
  }

  .section-middle {
    height: auto;
    min-height: unset;
    overflow: visible;
    padding-bottom: 0;
  }

  .middle-bg {
    top: 0;
    height: 80%;
  }

  /* RÈGLE PRINCIPALE : même largeur que .section-bottom */
  .middle-logo {
    width: calc(100% - 10px);
    margin-top: 0;
    overflow: visible;
  }

  .section-bottom {
    width: calc(100% - 10px);
    margin-bottom: 70px;
  }

  .cell-num {
    font-size: 1.9rem;
    height: 42px;
  }
}

/* ========================================
   RESPONSIVE ≤ 440px
   ======================================== */
@media (max-width: 440px) {
  .main-header {
    height: auto;
    min-height: unset;
    flex-shrink: 0;
  }

  .jackpot-img {
    width: 100%;
    margin-top: -40px;
    margin-right: -12px;
    height: auto;
    min-height: 72px;
    flex-shrink: 0;
  }

  .section-middle {
    height: auto;
    min-height: unset;
    flex-shrink: 0;
    overflow: visible;
  }

  .middle-bg {
    height: 75%;
  }

  /* RÈGLE PRINCIPALE : même largeur que .section-bottom */
  .middle-logo {
    width: calc(100% - 10px);
    margin-top: 0;
    overflow: visible;
  }

  .cell-num {
    font-size: 1.75rem;
    height: 40px;
  }

  .cell-text {
    font-size: 1rem;
    letter-spacing: 1px;
    padding: 6px 3px;
  }

  .table-outer-border table tr:last-child td {
    height: 40px;
    padding: 8px 3px;
    font-size: 0.8rem;
  }

  .losange-jaune {
    width: 75px;
    height: 75px;
  }

  .losange {
    width: 55px;
    height: 55px;
  }

  .losange-plat {
    width: 58px;
    height: 24px;
  }

  .cell-losange-container {
    padding: 8px 3px;
  }

  .jeton {
    width: 36px;
    height: 36px;
  }
}

/* ========================================
   RESPONSIVE ≤ 350px
   ======================================== */
@media (max-width: 350px) {
  .jackpot-img {
    width: 100%;
    margin-top: -30px;
    margin-right: -12px;
    min-height: 60px;
  }

  .middle-logo {
    width: calc(100% - 10px);
    margin-top: 0;
  }

  .middle-bg {
    height: 70%;
  }

  .cell-num {
    font-size: 1.5rem;
    height: 36px;
  }

  .cell-text {
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    padding: 5px 2px;
  }

  .table-outer-border table tr:last-child td {
    height: 34px;
    padding: 6px 2px;
    font-size: 0.75rem;
  }

  .cell-losange-container {
    padding: 6px 2px;
  }

  .losange-jaune {
    width: 62px;
    height: 62px;
  }

  .losange {
    width: 48px;
    height: 48px;
  }

  .losange-plat {
    width: 50px;
    height: 22px;
  }

  .jeton {
    width: 32px;
    height: 32px;
  }

  .footer {
    gap: 6px;
    padding: 6px 8px;
  }

  .footer-btn {
    padding: 6px;
  }

  .hamburger {
    top: 4px;
    right: 4px;
    padding: 7px;
  }

  .hamburger-line {
    width: 20px;
  }
}
/* ========================================
   RESPONSIVE — MOBILE HAUTEUR SUFFISANTE
   ======================================== */
@media (max-width: 700px) and (min-height: 700px) {
  .cell-num {
    font-size: 2.6rem;
    height: 64px;
  }
  .cell-text {
    font-size: 1.2rem;
    padding: 14px 4px;
  }
  .table-outer-border table tr:last-child td {
    height: 58px;
    padding: 12px 4px;
    font-size: 0.9rem;
  }
  .cell-losange-container {
    padding: 16px 4px;
  }
  .losange-jaune {
    width: 96px;
    height: 96px;
  }
  .losange {
    width: 70px;
    height: 70px;
  }
  .losange-plat {
    width: 70px;
    height: 32px;
  }
}
