/* Conteneur principal pour éviter les styles flex globaux */
.main-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Bouton retour aligné à droite */
.btn-retour {
    float: right;
    margin: 10px; /* Aligne le contenu à droite */
    margin-bottom: 10px;
}

.btn-retour a img {
    display: inline-block; /* Assure que l'image reste au format bouton */
}
body {
    font-family: "Times New Roman", Georgia, Times, serif;
    font-size: 12pt;
    background-color: #f4f4f4;
    color: #333;
    background-image: url(../quest-sortie/images/cassel.jpeg);
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

h1 {
    color: #e1ff02;
}
h2 {
    color: #fbff00;
}
h3 {
    color: #090090;
}

form {
    background: #fff;
    padding: 2% 3%;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px grey;
    border-radius: 5px;
    max-width: 800px;
    width: 100%;
}

input[type="text"],
textarea {
    font-size: 11pt;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #2980b9;
}

.annonce {
    background: #fff;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px grey;
    border-radius: 5px;
    max-width: 900px;
    width: 100%;
}

.annonce small {
    color: #888;
}

.annonce-image {
    float: right;
    margin: 10px;
    max-width: 100px;
    height: auto;
}
@media (max-width: 600px) {
    .annonce-image {
        float: none;
        margin: 10px auto;
        display: block;
        max-width: 100%;
    }
}

.tooltip {
    display: none;
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    font-size: 12px;
}
/* Bouton haut page */
/* Effet fluide */

/* Style du bouton */
#scrollToTop {
    position: fixed;
    bottom: 10px;
    right: 100px; /*Position*/
    padding: 10px 15px;
    font-size: 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s,
        visibility 0.3s;
}

/* Afficher le bouton lorsqu'on est en bas de page */
#scrollToTop.show {
    opacity: 1;
    visibility: visible;
}

.styled {
    border: 0;
    line-height: 2.5;
    padding: 0 20px;
    font-size: 1rem;
    text-align: center;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    border-radius: 10px;
    background-color: rgb(220 0 0 / 100%);
    background-image: linear-gradient(to top left, rgb(0 0 0 / 20%), rgb(0 0 0 / 20%) 30%, rgb(0 0 0 / 0%));
    box-shadow:
        inset 2px 2px 3px rgb(255 255 255 / 60%),
        inset -2px -2px 3px rgb(0 0 0 / 60%);
}

/* Bouton stylisé */
.styled:hover {
    background-color: rgb(255 0 0 / 100%);
}

.styled:active {
    box-shadow:
        inset -2px -2px 3px rgb(255 255 255 / 60%),
        inset 2px 2px 3px rgb(0 0 0 / 60%);
}

/* Conteneur pour aligner des éléments */
.header-container {
    display: flex;
    justify-content: space-between; /*Place le titre à gauche et le lien à droite*/
    align-items: center;
}
.header-container h2 {
    margin: 0;
}
.header-container a {
    text-decoration: none;
    color: #ffff00;
    font-weight: bold;
}

/* Conteneur pour survol mot de passe */
.password-container {
    position: relative;
}
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2em;
    color: #007bff;
}
.toggle-password:hover {
    color: #0056b3;
}
