html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: #eef1f5;
    color: #222;
    margin: 0;
}

.haut {
    background-color: #1a3a6b;
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 5px solid #c0392b;
}

.haut h1 {
    margin: 0;
    font-size: 30px;
}

.haut-gauche p {
    margin: 5px 0 0 0;
    color: #c9d6ea;
}

.haut-droite a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
    font-weight: bold;
}

.haut-droite a:hover {
    text-decoration: underline;
}

#bouton-mode {
    background-color: white;
    color: #1a3a6b;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

#bouton-mode:hover {
    background-color: #ddd;
}

.contenu {
    max-width: 900px;
    margin: auto;
    padding: 30px 20px;
}

.boite {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    text-align: center;
}

h2 {
    color: #1a3a6b;
    margin-top: 0;
    font-size: 28px;
}

.petit-texte {
    color: #777;
    font-size: 14px;
}

.presentation {
    display: flex;
    align-items: center;
    gap: 30px;
    text-align: left;
}

.presentation-texte {
    flex: 1;
}

.presentation-image {
    flex: 1;
    text-align: center;
}

.presentation-image img {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    border: 5px solid #1a3a6b;
}

.bouton {
    display: inline-block;
    background-color: #c0392b;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

.bouton:hover {
    background-color: #a03024;
}

.liste {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.personne {
    width: 150px;
    padding: 15px 10px;
    border-radius: 10px;
    background-color: #f5f7fa;
}

.personne img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #1a3a6b;
    object-fit: cover;
}

.fondateur {
    width: 200px;
}

.fondateur img {
    width: 140px;
    height: 140px;
    border-color: #c0392b;
}

.nom {
    font-weight: bold;
    margin: 10px 0 3px 0;
}

.role {
    margin: 0;
    font-size: 13px;
    color: #c0392b;
}

.liens a {
    display: inline-block;
    width: 130px;
    color: white;
    padding: 12px;
    margin: 5px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.liens a:hover {
    opacity: 0.8;
}

.discord {
    background-color: #5865f2;
}

.youtube {
    background-color: #ff0000;
}

.instagram {
    background-color: #c13584;
}

.x {
    background-color: black;
}

.email {
    font-size: 20px;
    font-weight: bold;
}

a {
    color: #c0392b;
}

.bas {
    background-color: #1a3a6b;
    color: white;
    text-align: center;
    padding: 20px;
    border-top: 5px solid #c0392b;
}

.bas p {
    margin: 5px;
}

.version {
    color: #f4c95d;
}

.copyright {
    font-size: 13px;
    color: #c9d6ea;
}


.version-carte {
    text-align: left;
    background-color: #f5f7fa;
    border-left: 5px solid #1a3a6b;
    border-radius: 5px;
    padding: 15px 20px;
    margin-top: 15px;
}

.version-actuelle {
    border-left-color: #c0392b;
}

.version-titre {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.version-numero {
    font-size: 20px;
    font-weight: bold;
    color: #1a3a6b;
}

.version-badge {
    background-color: #c0392b;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 20px;
}

.version-date {
    color: #777;
    font-size: 14px;
    margin: 5px 0 10px 0;
}

.version-carte ul {
    margin: 0;
    padding-left: 20px;
}

.version-carte li {
    margin-bottom: 5px;
}

.version a {
    color: #f4c95d;
}


.formulaire {
    max-width: 500px;
    margin: 20px auto;
    text-align: left;
}

.formulaire input,
.formulaire textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin-bottom: 10px;
    border: 2px solid #ccd5e0;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 15px;
    background-color: white;
    color: #222;
}

.formulaire textarea {
    resize: vertical;
}

.formulaire input:focus,
.formulaire textarea:focus {
    border-color: #1a3a6b;
    outline: none;
}

#bouton-envoyer {
    background-color: #c0392b;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
}

#bouton-envoyer:hover {
    background-color: #a03024;
}

#bouton-envoyer:disabled {
    opacity: 0.6;
    cursor: default;
}

.erreur {
    color: #c0392b;
    font-size: 14px;
    margin: 8px 0 0 0;
}

#liste-commentaires {
    max-width: 600px;
    margin: 30px auto 0 auto;
    text-align: left;
}

.commentaire {
    display: flex;
    gap: 15px;
    background-color: #f5f7fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
}

.commentaire-texte {
    flex: 1;
    min-width: 0;
}

.commentaire-haut {
    margin: 0 0 5px 0;
}

.commentaire-pseudo {
    font-weight: bold;
    color: #1a3a6b;
    margin-right: 8px;
}

.commentaire-date {
    color: #888;
    font-size: 13px;
}

.commentaire-message {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.bouton-supprimer {
    margin-top: 10px;
    background: none;
    border: 1px solid #c0392b;
    color: #c0392b;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
}

.bouton-supprimer:hover {
    background-color: #c0392b;
    color: white;
}

body.sombre .commentaire {
    background-color: #383838;
}

body.sombre .commentaire-pseudo {
    color: #7fa7e0;
}

body.sombre .formulaire input,
body.sombre .formulaire textarea {
    background-color: #383838;
    border-color: #555;
    color: #eee;
}

.info-vidage {
    max-width: 500px;
    margin: 15px auto;
    padding: 10px 15px;
    background-color: #fff4d6;
    border: 1px solid #f4c95d;
    border-radius: 5px;
    font-size: 14px;
    color: #7a5a00;
}

body.sombre .info-vidage {
    background-color: #3a3320;
    border-color: #7a6420;
    color: #f4c95d;
}

body.sombre .personne {
    background-color: #383838;
}

body.sombre h2 {
    color: #7fa7e0;
}

body.sombre .haut,
body.sombre .bas {
    background-color: #0d1f3c;
}

body.sombre .petit-texte {
    color: #aaa;
}

body.sombre a {
    color: #ff7b6b;
}

body.sombre .haut-droite a,
body.sombre .liens a,
body.sombre .bouton {
    color: white;
}

@media (max-width: 700px) {
    .haut {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .haut-droite {
        margin-top: 15px;
    }

    .presentation {
        flex-direction: column;
        text-align: center;
    }
}