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

html, body {
  width: 100%;
  overflow-x: hidden;
}

.background {
  background-color: #f8f9fa;
  padding: 20px 0;
}

/* Création de la grille de jeu */
#grid {
    display: grid;
    grid-template-columns: repeat(7, 100px);
    grid-template-rows: repeat(6, 100x);
    gap: 5px;
    background-color: #0025e1;
    padding: 10px;
    border-radius: 10px;
    width: fit-content;
}

/* Style des cellules dans la grille du jeu */
.cell {
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* From Uiverse.io by cssbuttons-io */
button {
    position: relative;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    outline-offset: 4px;
    transition: filter 250ms;
    user-select: none;
    touch-action: manipulation;
}
   
.shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: hsla(0, 0%, 0%, 0.25);
    will-change: transform;
    transform: translateY(2px);
    transition: transform
       600ms
       cubic-bezier(.3, .7, .4, 1);
}

.edge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(
       to left,
       hsl(0, 100%, 50%) 0%,
       hsl(340, 100%, 50%) 8%,
       hsl(340, 100%, 50%) 92%,
       hsl(340, 100%, 50%) 100%
    );
}
   
.front {
    display: block;
    position: relative;
    padding: 12px 27px;
    border-radius: 12px;
    font-size: 1.1rem;
    color: white;
    background: red;
    will-change: transform;
    transform: translateY(-4px);
    transition: transform
       600ms
       cubic-bezier(.3, .7, .4, 1);
}

#champboutton {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
   
button:hover {
    filter: brightness(110%);
}
   
button:hover .front {
    transform: translateY(-6px);
    transition: transform
       250ms
       cubic-bezier(.3, .7, .4, 1.5);
}
   
button:active .front {
    transform: translateY(-2px);
    transition: transform 34ms;
}
   
button:hover .shadow {
    transform: translateY(4px);
    transition: transform
       250ms
       cubic-bezier(.3, .7, .4, 1.5);
}
   
button:active .shadow {
    transform: translateY(1px);
    transition: transform 34ms;
}
   
button:focus:not(:focus-visible) {
    outline: none;
}

.rules-en, .rules-fr {
  padding: 50px 10%;
  border: none; /* Tu peux garder les bordures si tu veux, mais full width + border c’est à manier avec finesse */
  border-radius: 0; /* Carré comme une vraie section */
  box-shadow: none;
  width: 100vw;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif
}

.rules-en {
  background-color: yellow;
  color: #000000;
}

.rules-fr {
  background-color: red;
  color: #ffffff;
}

.rules-en h2, .rules-fr h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.rules-en p, .rules-fr p {
  color: #3f3131;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Footer */
.footer-complet {
  background-color:yellow;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.footer-complet a {
  color: var(--text);
  text-decoration: none;
  margin: 0 0.5rem;
  transition: opacity 0.2s ease;
}

.footer-complet a:hover {
  opacity: 0.7;
}

.footer-socials {
  margin: 1rem 0;
  font-size: 1.5rem;
}

.footer-copy {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #888;
}