html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: "Calibri", sans-serif;
    background-color: #FFF3E0;
}
*, *::before, *::after {
    box-sizing: border-box;
}

.container {
    border-radius: 30px;
    display: flex;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    width: 50%;
    flex-direction: column;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 30px;
    background-color: white;
}

/* Header */
.header {
    background-color: #333333;
    color: white;
    text-align: center;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header img {
    max-width: 90px;
    height: auto;
}

.texte {
    flex: 1;
    text-align: center;
}

.yoyo-toast {
    width: 400px;
    max-width: 90%;
    box-sizing: border-box;
    height: 70px;
}


.header h1, .header p {
    margin: 0;
}

/* Formulaire */
.formulaire {
    display: flex;
    flex-direction: column;
    padding: 20px;
    max-width: 400px;
    width: 100%;
}

.formulaire div {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.formulaire label {
    margin-bottom: 5px;
    font-weight: bold;
}

.formulaire input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 75%;
    box-sizing: border-box;
}

.formulaire button {
    padding: 10px;
    background-color: rgb(112, 48, 160);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 50%;
    font-size: medium;
    transition: background-color 0.3s;
}

.formulaire button:hover {
    background-color: darkviolet;
}

.participation p {
    text-align: left;
}

.message {
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    font-size: 16px;
    width: 100%;
    text-align: center;
    /* text-align: justify;
    text-justify: inter-word; */
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.footer {
    background-color: #333333;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
    width: 100%;
    line-height: 1.5;
}


.image-tennisman {
    position: absolute;
    max-width: 700px;
    height: auto;
    top: 240px;
    z-index: 1;
    border-radius: 15px;

}

.timer {
    display: flex;
    justify-content:left;
    gap: 10px;
    margin-left: 20px;
}

.timer-item {
    background: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timer-item div {
    font-size: 1.5rem;
    font-weight: bold;
    color: rgb(112, 48, 160);
}

.timer-item span {
    font-size: 0.8rem;
    color: rgb(112, 48, 160)
}

/* Responsive design */

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 20px;
        border-radius: 0%;
        margin: 0px;

    }

    .header {
        flex-direction: column;
        text-align: center;
    }

    .formulaire {
        max-width: 60%;
        margin: 0 auto;
    }
    .image-tennisman{
        display: none;
    }
    .formulaire input, .formulaire button {
        width: 100%;
        max-width: none;
    }

    .timer {
        display: flex;
        justify-content:center;
        gap: 10px;
        margin-left: 0px;
    }


    .image-gauche {
        display: none; /* Désactivé sur les petits ecrans */
    }

    .header img {
        width: 70%;
        margin: 10px 0;
    }

    .qr {
        text-align: center;
    }

    .footer {
        padding: 20px 0;
    }
}