/* Styles globaux */
* {
    font-family: "Courier Prime", serif;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
}

/* Texte */
p, h2, li {
    font-size: 40px;
}

/* Header */
header {
    position:sticky;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #885F46;
    /* border-bottom: 10px solid #885F46; */
}

header img {
    width: 320px;
    height: 200px;
}

/* Container principal */
.container {
    display: flex;
    flex: 1;
    justify-content: space-between;
}

/* Main */
main {
    padding: 1rem;
    display: flex;
    gap: 1rem;
    flex-direction: column;
}
main.flex {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Probleme d'échecs */
.ProblemeImg img {
    width: 400px;
    height: auto;
}
.ProblemeImg {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    row-gap: 2rem;
    column-gap: 10rem;
    place-items: center; /* Centre horizontalement et verticalement */
}


/* Formulaire */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 40px;
}

.form-group {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.form-group label {
    display: flex;
    text-align: center;
    justify-content: center;
    font-size: 30px;
    min-width: 150px;
}

/* Champs de saisie */
.ContactBasic, .Message {
    width: 685px;
    margin: auto; /* Centre horizontalement */
}

.ContactBasic {
    height: 66px;
}

.Message {
    height: 229px;
}

#Envoyer {
    width: 291px;
    height: 66px;
    font-size: 40px;
}

/* Footer */
footer {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

footer p {
    font-size: 20px;
}

/* Autres liens  */

.Liens a {
    text-decoration: none;
    color: #069EC0;
    font-size: 40px;
}

.Liens a:hover {
    text-decoration: underline;
}

/* Animation du titre */
h1 {
    font-size: 0px; /* Empêche le gap entre les lettres */
    font-weight: bold;
    color: white;
}

h1 span {
    display: inline-block;
    font-size: 6rem;
    color: white;
    text-transform: uppercase;
    animation: flip 3s infinite;
    animation-delay: calc(.30s * var(--i));
}

@keyframes flip {
    0%, 80% {
        transform: rotateZ(360deg);
    }
}

/* Aside */
aside {
    background-color: #885F46;
    border: 18px solid #885F46;
    display: flex;
    flex-direction: column;
}

aside a {
    border-left: 2px solid black;
    border-right: 2px solid black;
    background-color: #F8B890;
    text-decoration: none;
    color: black;
    font-size: 24px;
    padding: 10px;
    display: block;
}

aside a:hover {
    background-color: #885F46;
    color: white;
}

/* Liens spécifiques */
.FirstA {
    border-top: 2px solid black;
}

.LastA {
    border-bottom: 2px solid black;
}

/* Iframe */
iframe {
    border: 3px solid black;
}
