/* Harmonisation du style par défaut */
html,
body {
    margin: 0;
    font-family: sans-serif;
    color: #000503;
    scroll-behavior: smooth;
    background-color: #E5ECE9;
}

* {
    box-sizing: border-box;
}

img,
picture,
video,
audio,
canvas,
svg {
    display: block;
    width: 100%;
    max-width: 100vw;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    font-size: 16px;
}

button {
    cursor: pointer;
}

h1 {
    margin-block: 40px;
}

main {
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    width: 100%;
    margin-inline: auto;
}

ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px 8px;
}

ul button {
    padding: 15px;
    border: none;
    border-radius: 8px;
    width: 100%;
    min-width: 120px;
    min-height: 120px;
}

#r1 {
    background-color: #305252;
    color: #fff;
}

#r2 {
    background-color: #373E40;
    color: #fff;
}

#r3 {
    background-color: #3E6F69;
    color: #fff;
}

#r4 {
    background-color: #488286;
    color: #fff;
}

dialog {
    border: none;
    border-radius: 8px;
    min-width: 220px;
}

dialog button {
    border: none;
    border-radius: 8px;
    background-color: #000503;
    color: #E5ECE9;
    padding: 12px 16px;
    width: 100%;

}

dialog img {
    max-height: 80px;
}

dialog#modalescore {
    width: 100%;
    min-height: 400px;
}

dialog#modalescore button {
   background-color: #00000000;
   color: #000503;
   padding: 0;
   border-bottom: 1px solid #000503;
   width: auto;
  border-radius: 0;
  font-size: 14px;
  margin-top: 27px;
}

dialog#modalescore p {
font-size: 64px;
  text-align: center;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
input:focus-visible {
outline-offset: 2px;
outline: #770874 3px solid;
border-radius: 4px;
transition: none;
}


@media (max-width: 1132px) {
main {
padding-inline: 16px;
}
}