/* Style commun à toutes les pages (sauf admin) */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background-image: url('/img/bg.png');
    background-size: 100% 100%;  /* Force l'étirement sans préserver le ratio */
    background-repeat: no-repeat;
    background-attachment: fixed;  /* L'image reste fixe pendant le défilement */
}

main {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 0px 20px 0px; /* Enlève le padding top */
    overflow: visible; /* Pour éviter que l'image soit coupée */
}

.page-header {
    width: 1200px;
    height: 202px;
    margin: 0 auto;
    background: url('/img/header.png') no-repeat center top;
    background-size: 1200px 202px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h1 {
    text-align: center;
    color: white;
    text-transform: uppercase;
    padding: 30px 0 0 0; /* Ajout du padding-top */
    margin: 0;
    font-size: 1.8em;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateY(-2em);
}

.page-header::after {
    content: '';
    position: absolute;
    top: 80px; /* Changé de bottom à top */
    width: 300px; /* Augmenté la largeur */
    height: 150px;
    background: url('/img/logo.png') no-repeat center;
    background-size: contain;
}

section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.score-cell {
    font-family: 'Courier New', monospace;
    font-size: 1.2em;
    text-align: right;
    padding-right: 10px;
}

.score-cell .score-prefix {
    opacity: 0.6;
    font-size: 0.8em;
    vertical-align: bottom;
}

.score-cell .score-suffix {
    font-size: 1em;
    vertical-align: bottom;
}

.score-digits {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.2em;
    letter-spacing: -1px;
}

.score-digits .digit {
    display: inline-block;
}

.score-digits .digit.gray {
    color: #666;
}

.score-digits .digit.small,
.score-digits .digit.gray.last-four {
    font-size: 0.7em;
    transform: translateY(2px);
}

@media (max-width: 1200px) {
    .page-header {
        width: 100%;
        height: 202px;
        margin: 0 auto;
        background: url('/img/header.png') no-repeat center top;
        background-size: 1200px 202px;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .page-header::after {
        content: '';
        position: absolute;
        top: 80px; /* Changé de bottom à top */
        width: 300px; /* Augmenté la largeur */
        height: 150px;
        background: url('/img/logo.png') no-repeat center;
        background-size: contain;
    }
}

.footer {
    position: fixed;
    bottom: 50px;
    left: 0;
    width: 100%;
    padding: 10px 0;
    text-align: center;
    z-index: 100;
}

.footer-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.footer-button:hover {
    background-color: #45a049;
}