
* {
    box-sizing: border-box;
}


html {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-image: url("wallpaper.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #FFD700;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


h1 {
	padding-left:60px;
    margin-top: 40px;
    font-size: 3em;
    text-shadow: 0 0 10px #FFD700;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
}


.logo {
    font-size: 22px;
    font-weight: bold;
}


nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #FFD700;
    transition: 0.3s;
}

nav a:hover {
    color: #00aa00;
}


.main {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80vh;
}

.card {
    margin-top: 40px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}


.jeu {
    background: #111;
    padding: 25px;
    border-radius: 15px;
    width: 320px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}


.jeu input {
    padding: 10px;
    width: 220px;
    background-color: black;
    border: 1px solid #FFD700;
    color: #FFD700;
    text-align: center;
}


.jeu button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #FFD700;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.jeu button:hover {
    background-color: #e6c200;
}


#resultat {
    margin-top: 15px;
}


.card2 {
    background: #111;
    padding: 25px;
    border-radius: 15px;
    max-width: 800px;
    overflow-x: auto;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}


table {
    border-collapse: collapse;
    white-space: nowrap;
}

th, td {
    padding: 8px 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

th {
    background-color: rgba(255, 215, 0, 0.1);
}

tr:hover {
    background-color: rgba(255, 215, 0, 0.15);
    transition: 0.2s;
}

* { cursor: none; }

#cursor {
  position: fixed;
  width: 6px;
  height: 6px;
  background: #f5c518;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: transform 0.1s, background 0.2s;
}

#cursor-ring {
  position: fixed;
  width: 38px;
  height: 38px;
  border: 3px solid #f5c518;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9998;
  transition: width 0.25s, height 0.25s, border-color 0.2s, opacity 0.2s;
}

#cursor.hovered { transform: translate(-50%, -50%) scale(2.5); }
#cursor-ring.hovered { width: 58px; height: 58px; border-color: rgba(245,197,24,0.4); }
#cursor.clicked { transform: translate(-50%, -50%) scale(0.5); }
#cursor-ring.clicked { width: 22px; height: 22px; }

.trail {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9997;
  background: #f5c518;
  opacity: 0;
}
