*,
*::after,
*::before {
    box-sizing: border-box;
}



header{
    position: fixed;
    top: 0;
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    gap: 10px;
    flex-direction: row;
    padding-left: 30px;
    padding-right: 30px;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9;

}

.header-acceuil{
    justify-content: center;
    background: none;
}


header div{
    display: flex;
    gap: 20px;
}


body{
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('img/fond3.avif');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left;
    background-attachment: fixed;
    min-height: 100vh;
    color: white;
    display: flex;
    justify-content: center;            
    align-items: center;
    flex-direction: column;
}

main{
    margin: 50px;
    margin-top: 100px;
}


.logo img{
    width: 100px;
    height: auto;
}

.logo-acceuil img{
    width: 450px;

}

h1{
    font-size: 3rem;
}

.container{
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.container-combat{
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-right: 70px;
    margin-left: 70px;
}

.card{
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    background-color: #fff;
    width: 400px;
    padding: 25px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    aspect-ratio: 29/41;
    justify-content: space-between;
    color: white;
    background-blend-mode: multiply;
    border-color: rgba(0, 0, 0, 0.4);
    margin: 10px;
    

}


.card * {
    position: relative;
    z-index: 2;
}

.cardtitre,
.titreatk{
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}

h3{
    font-size: 1.5rem;
}
h4 {
    font-size: 1.2rem;
}
p {
    font-size: 1.1rem;
}

h4,
h3,
p{
    font-style: bold;
    margin: 5px;
}

.card-modif {
    position: relative;
    display: inline-block;
}



.card-modif .buttons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-modif:hover .buttons {
    opacity: 1;

}

button {
    background-color: #3498db;
    color: white;
    padding: 8px 12px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

button:hover {
    background-color: #1c6ea4;
}

a{
    text-decoration: none;
    color: #3498db;
}

a:hover{
    color: white;
}

.alice-button {
    font-size: 1.2rem;;
    background: linear-gradient(to bottom, #3498db, #1c6ea4);
    padding: 15px 30px;
    border: 5px solid #d4a017;
    border-radius: 50px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    position: relative;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    outline: none;
    width: 300px;
        /* Largeur fixe */
        height: 70px;
}


.alice-button:hover {
    background: linear-gradient(to bottom, #1c6ea4, #0b3d91);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

.formulaire {
    margin: 30px auto;
    padding: 40px;
    background: #1e1e2ece;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
    flex-wrap: wrap;
    max-width: 800px;
}


form h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #3176b3;
}


form label {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 10px;
}


form select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    background: #2a2a3b;
    color: white;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

form select:hover {
    background: #363677;
}


form button {
    background: #3176b3;
    color: #1e1e2e;
    border: none;
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s ease-in-out;
}

form button:hover {
    background: #ffdb9b;
}

.form {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.form>div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.button-acceuil{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;

}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    background: #2a2a3b;
    color: white;
    transition: 0.3s ease-in-out;
}

form input:focus,
form textarea:focus {
    outline: 2px solid #3176b3;
}


form textarea {
    min-height: 100px;
}

.combat{
    display: flex;
    justify-content: space-between;
    width: 90%;
    flex-direction: row;
    gap: 15px;

}

.btn{
    font-size: 1rem;
    display: flex;
    justify-content: center;
    width: 250px;
    padding: 10px 20px;

}

.jeu{
    display: flex;
    align-items: center;
    justify-content: center;
}

.jeu1{
        flex-wrap: wrap;
}
.jeu2{
        flex-wrap: wrap-reverse;
}

.btnend{
    display: flex;
    justify-content: flex-end;
    flex-direction: column;

}
