/* ========== BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    
    background-color: #ddf6fa;
}

p{
    color:#1C3B6C;
}

a {
    text-decoration: none;
    color:#ffffff;
}

img {
    max-width: 100%;
    display: block;
}

/* ========== HEADER ========== */
header {
    background-color: #4F7DE0;
    padding: 10px 35px 10px 35px;
}

header nav {
    max-width: 1300px;
    margin: 0 auto;
    background-color: #1C3B6C;
    border-radius: 25px;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.en_haut{
    background-color:#1C3B6C !important;
    color:white !important;
}

.en_haut_s{
    background-color:#dddddd !important;
}

.en_haut_s:hover{
    background-color:#999999 !important;
}

.en_haut:hover{
    background-color:#445588 !important;
}

header nav > a {
    color:#ffffff;
    font-weight: bold;
    font-size: 1.2rem;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

header nav ul li a {
    color:#ffffff;
    font-weight: bold;
}

header nav div {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ========== BOUTONS ========== */
.btn {
    border: none;
    color:black;
    padding: 10px 18px;
    border-radius: 15px;
    display: inline-block;
    font-weight: bold;
    background-color: white;
}



.clair {
    background-color: white;
}

/* ========== FRONT OFFICE ========== */
main {
    background-color : #ddf6fa;
}

#accueil {
    
    margin: 0 auto;
    min-height: 75vh;
    padding: 50px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

#accueil > div {
    width: 50%;
}

#accueil h1 {
    font-size: 4.8rem;
    color: white;
    line-height: 0.95;
    text-transform: uppercase;
    margin-bottom: 20px;
}

#accueil h2 {
    font-size: 2.6rem;
    color: white;
    margin-bottom: 10px;
}

#accueil p {
    font-size: 1.5rem;
    color: #ddf6fa;
    max-width: 580px;
    line-height: 1.2;
}

#accueil > div:last-child {
    display: flex;
    justify-content: center;
}

#accueil img {
    width: 100%;
    max-width: 520px;
}

#accueil > div:first-child > div {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

#jeux {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 40px 70px 40px;
}

#jeux h2 {
    font-size: 4rem;
    color: white;
    text-transform: uppercase;
    margin-bottom: 20px;
}

#jeux > div {
    background-color: #4F7DE0;
    border-radius: 25px;
    padding: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

#jeux article {
    width: 150px;
    text-align: center;
}

#jeux article img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

#jeux article h3 {
    margin-top: 15px;
    font-size: 1rem;
    color:#1C3B6C;
}

.text-footer{
    color:white;
}

.btn-site{
    background-color:black;
    color:white;
    border: none;
    padding: 10px 18px;
    border-radius: 15px;
    display: inline-block;
    font-weight: bold;
}



#jeux article p {
    margin-top: 5px;
    color:#1C3B6C;
    background-color: white;
    border-radius: 12px;
    padding: 8px;
}

/* ========== BACK OFFICE ========== */
#dashboard {
    max-width: 1300px;
    margin: 0 auto;
    min-height: 80vh;
    padding: 35px 35px 35px 35px;
    display: flex;
    gap: 30px;
}

.souligne{
    text-decoration: underline;
}

#dashboard aside {
    width: 34%;
    background-color: white;
    border: solid 3px #1C3B6C;
    border-radius: 30px;
    padding: 25px 20px;
    margin-top: 50px;
    margin-bottom: 50px;
}

#dashboard aside nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#dashboard aside nav a {
    background-color: #1C3B6C;
    color:white;
    padding: 16px 20px;
    border-radius: 15px;
    font-weight: bold;
}

#dashboard > section {
    width: 66%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top:50px;
    margin-bottom:50px;
}

#dashboard > section > section {
    background-color: #ffffff;
    border: solid 3px #1C3B6C;
    border-radius: 25px;
    padding: 28px;
    min-height: 150px;
}

#dashboard h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color:black;
}

#dashboard h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color:black;
}

#dashboard p {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color:black;
}



/* ========== FOOTER ========== */
footer {
    background-color: #4F7DE0;
    color: white;
    text-align: center;
    padding: 20px;
}

footer p {
    font-size: 0.95rem;
}

/* ========== Theme sombre =========== */

.cacher_bouton_sombre{
    display:none;
}

.cacher_bouton_clair{
    display:none;
}

.text_sombre{
    color:#1B3A6B !important;
}

.p{
    color:#DDDDDD !important;
}

.button_sombre{
    background-color:#DDDDDD !important;
}

.deconnect{
    background-color:#1B3A6B !important;
    color:#DDDDDD;
}

.user{
    color:#DDDDDD !important;
}

.h_f{
    background-color:#1B3A6B !important;
}

.corps{
    background-color:#1a1a18 !important;
}

.container {
    background-color: #1B3A6B !important;
    border: solid 3px #DDDDDD !important;
}

.h_s_h{
    background-color:#DDDDDD !important;
}

/* ========== HOVER ========== */

.btn-site:hover{
    background-color:#333333;
}

.deconnect:hover {
    background-color: #445588 !important;
}

.deconnect_c:hover {
    background-color: #DDDDDD !important;
}

.bouton_s:hover{
    background-color: #445588 !important;
}

.bouton_c:hover{
    background-color: #999999 !important;
}









/* ========== RESPONSIVE ========== */
@media (max-width: 1000px) {
    #accueil {
        flex-direction: column;
        text-align: center;
    }

    #accueil > div {
        width: 100%;
    }

    #accueil > div:first-child > div {
        justify-content: center;
    }

    #dashboard {
        flex-direction: column;
    }

    #dashboard aside,
    #dashboard > section {
        width: 100%;
    }
}

@media (max-width: 700px) {
    #accueil h1 {
        font-size: 3rem;
    }

    #accueil h2 {
        font-size: 2rem;
    }

    #accueil p {
        font-size: 1.1rem;
    }

    #jeux h2 {
        font-size: 2.5rem;
    }

    #jeux article {
        width: 130px;
    }

    #jeux article img {
        height: 180px;
    }

    #dashboard h1 {
        font-size: 1.6rem;
    }

    #dashboard h2 {
        font-size: 1.3rem;
    }

    #dashboard p {
        font-size: 1rem;
    }
}