@import '../fonts/stylesheets.css';

:root{
    --marron: #440E01;
    --orange: #F59C00;
    --blanc: #FFF;
    --rouge: #FF3100;
    --gris: #555;

    --body-bg-color: #ffd498;
    --bg-color: var(--marron);
    --text-color: var(--marron);
    --page-bg: url('/assets/imgs/fond.jpg?s=1540x3500&webp');

    /* bouton */
    --btn-color: var(--blanc);
    --btn-bg-color: var(--marron);
    --btn-hover-color: var(--marron);
    --btn-hover-bg-color: var(--orange);
    --btn-h: 42px;

    --page-w: 1064px;
    --container-w: 938px;
    --container-p: calc((var(--page-w) - var(--container-w)) / 2);
}

@media (max-width: 1064px) {
    :root{--container-p: 15px}
}

*, ::before, ::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    height: auto;
    position: relative;
    overflow-x: hidden;
    background-color: var(--body-bg-color);
}

#page-container{
    width: 100%;
    max-width: var(--page-w);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    background: var(--page-bg) no-repeat top center / cover;
    padding: clamp(30px, 4.2vw, 42px) 0 0;
    position: relative;
}

/*#page-container {
    transform: scale(0.7);
    transform-origin: 50% 0;
}*/

*{color: var(--text-color); font-family: Nunito, cursive;}

img{
    width: 100%;
    max-width: max-content;
    height: auto;
}

img, svg, video, iframe{display: block;}

.btn{
    width: 100%;
    min-height: var(--btn-h);
    background-color: var(--btn-bg-color);
    color: var(--btn-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: calc(var(--btn-h) / 2);
    border: var(--btn-bg-color) 2px solid;
    transition: background-color .3s ease, color .3s ease;
    will-change: background-color, color;
    max-width: max-content;
    padding: 7px 21px;
    font-size: 1.2em;
}

.btn:hover {
    background-color: var(--btn-hover-bg-color);
    color: var(--btn-hover-color);
    border-color: var(--btn-bg-color);
}

.btn.bg-white{
    background-color: white!important;
    color: var(--orange);
}

.btn.bg-white:hover{
    background-color: var(--orange)!important;
    color: white;
}

.container{
    width: 100%;
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 15px;
}

.deco{
    position: absolute;
}


header a{
    width: max-content;
    max-width: clamp(50px, 10%, 91px);
    display: block;
    margin: 0 auto;
}

header #logout-button{
    position: absolute;
    top: 20px; right: 20px;
    padding: 10px 15px;
    z-index: 10;
    max-width: max-content!important;
}

header #logout-button svg{
    width: 30px;
}

#reglement-section{
    padding: 20px;
    min-height: 91px;
    margin-top: -91px;
    position: relative;
}

#reglement-section:before{
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(68,14,0,.59);
    mix-blend-mode: multiply;
}

#reglement-section .container{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

#reglement-section h2{
    font-size: clamp(24px, 3vw, 28px);
    font-weight: 600;
    line-height: 1.2;
    color: white;
    margin: 0;
}

#reglement-section p{
    margin-bottom: 0;
    font-size: 12px;
    font-weight: 500;
    color: white;
    line-height: 1;
}

#reglement-section a{
    color: inherit;
}

footer{
    background-color: var(--marron);
    padding: 30px 0 10px;
}

footer *{
    color: white;
}

footer .top{
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 245px));
    gap: 20px;
    justify-content: space-between;
}

footer .bottom{
    text-align: center;
    margin-top: 10px;
}

footer h2{
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
}

footer .center{text-align: center}

footer .center a{
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
}

footer .center a:hover{
    text-decoration: underline;
}
footer .right h2{text-align: center}
footer .right ul{
    display: flex;
    list-style: none;
    padding-left: 0;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

footer .social svg{width: 50px;}


.modal .modal-header{
    background-color: var(--marron);
    color: white;
}

@media (max-width: 1024px) {
    footer .top{grid-template-columns: repeat(2, minmax(200px, 245px));}
}

@media (max-width: 786px) {
    #reglement-section{margin-top: -93px;}
}

@media (max-width: 768px) {
    footer .top{
        grid-template-columns: repeat(1, minmax(200px, 245px));
        justify-content: center;
        text-align: center;
    }
    footer .right ul{justify-content: center}
    footer h2{margin-bottom: 0}
    footer .center{margin-top: 10px}
    footer ul{margin-top: 10px}
}

@media (max-width: 480px) {
    #reglement-section {
        margin-top: 0;
        padding: 30px 0;
        min-height: 0;
        background-color: #487322;
    }

    #reglement-section:before{display: none;}
    footer .center a{font-size: 12px}
    footer .social svg{width: 30px; height: auto;}
    footer .social a{display: block}
}