* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 30px 15px;
    font-family: Arial, sans-serif;
    background: #f2eee5;
    color: #2e2e2e;
}

.conteneur {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

h1 {
    margin-top: 0;
    text-align: center;
    color: #6b431f;
}

h2,
h3 {
    color: #6b431f;
}

.introduction {
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.5;
}

.champ {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #aaa;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #80602d;
    outline: 2px solid rgba(128, 96, 45, 0.2);
}

.case {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 17px;
    line-height: 1.4;
}

.case input {
    margin-top: 4px;
    flex-shrink: 0;
}

.case label {
    margin: 0;
    font-weight: normal;
}

.bouton,
button {
    display: inline-block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 7px;
    background: #70491f;
    color: white;
    font-size: 17px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.bouton:hover,
button:hover {
    background: #563716;
}

.bouton-secondaire {
    display: inline-block;
    width: 100%;
    padding: 13px;
    border: 1px solid #70491f;
    border-radius: 7px;
    background: white;
    color: #70491f;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
}

.bouton-secondaire:hover {
    background: #f3eadc;
}

.erreurs {
    margin-bottom: 22px;
    padding: 15px;
    border: 1px solid #b12c2c;
    border-radius: 7px;
    background: #fff0f0;
    color: #8a1717;
}

.erreurs ul {
    margin: 0;
    padding-left: 20px;
}

.message {
    margin: 25px 0;
    padding: 20px;
    border: 1px solid #c9b998;
    border-radius: 7px;
    background: #fffdf8;
    line-height: 1.6;
    text-align: center;
}

.succes {
    border: 1px solid #388447;
    background: #effbf1;
    color: #235e2e;
}

.erreur {
    border: 1px solid #b12c2c;
    background: #fff0f0;
    color: #8a1717;
}

.obligatoire {
    color: #a50000;
}

.information {
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

.lien-secondaire {
    display: block;
    margin-top: 18px;
    text-align: center;
    color: #654216;
}

.entete-tableau-bord {
    padding-bottom: 25px;
    border-bottom: 1px solid #ddd1bd;
    text-align: center;
}

.nom-plateforme {
    margin: 0 0 8px;
    color: #80602d;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.derniere-connexion {
    margin: 15px 0 0;
    color: #666;
    font-size: 14px;
}

.section-tableau-bord {
    margin-top: 35px;
}

.titre-section {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d7c8ad;
    font-size: 24px;
}

.grille-univers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.carte-univers {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    border: 1px solid #d7c8ad;
    border-radius: 10px;
    background: #fffdf8;
}

.image-univers {
    display: block;
    width: auto;
    max-width: 10cm;
    max-height: 380px;
    height: auto;
    margin: 20px auto 10px;
    object-fit: contain;
}

.icone-univers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 150px;
    background: #f3eadc;
    font-size: 65px;
}

.contenu-carte-univers {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    padding: 20px;
}

.contenu-carte-univers h3 {
    margin: 0 0 12px;
    font-size: 21px;
    line-height: 1.3;
    text-align: center;
}

.description-univers {
    flex: 1;
    margin: 0 0 18px;
    line-height: 1.55;
    text-align: center;
}

.statut {
    margin: 0 0 14px;
    color: #80602d;
    font-weight: bold;
    text-align: center;
}

.informations-univers {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px;
    border-radius: 6px;
    background: #f4efe5;
    color: #62451f;
    font-size: 14px;
    font-weight: bold;
}

.bouton-univers {
    margin-top: auto;
}

.grille-menu-compte {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 850px) {
    .grille-univers {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grille-menu-compte {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    body {
        padding: 15px 10px;
    }

    .conteneur {
        padding: 22px 18px;
    }

    .grille-univers,
    .grille-menu-compte {
        grid-template-columns: 1fr;
    }

    .image-univers {
        max-width: 100%;
        max-height: 340px;
    }

    .informations-univers {
        flex-direction: column;
        text-align: center;
    }
}