@import "theme.css";

* {
    margin:0;
    padding:0;
    outline: none;
    box-sizing: border-box;
    color:inherit;
    text-decoration:none;
    font-size:17px;
    
    border:none;
    cursor: default;
}

@media only screen and (max-width: 425px) {
    * {
        font-size:17px;
    }
}

html {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
}

body{
    width:100%;
    margin:0 auto;
}

main{
    background-size:200%;
    background-position:top;
    background-position-y:300px;
    background-repeat: no-repeat;
    height:fit-content;
}

h1{
    font-size: 3rem;
    color:var(--black);
}


h2{
    font-size: 2.5rem;
    color:var(--black);
}

h3{
    font-size: 2rem;
    color:var(--black);
}


@media only screen and (max-width: 1080px) {
    h1{
        font-size: 2.5rem;
    }

    h2{
        font-size: 2rem;
    }
}

@media only screen and (max-width: 850px) {
    h1{
        font-size: 1.7rem;
    }

    h2{
        font-size: 1.7rem;
    }

}

@media only screen and (max-width: 600px) {

    h1{
        font-size: 1.35rem;
    }

    h2{
        font-size: 1.35rem;
    }

}

@media only screen and (max-width: 500px) {
    h1{
        font-size: 1.6rem;
    }

    h2{
        font-size: 1.6rem;
    }
    
}

@media only screen and (max-width: 425px) {
    h1{
        font-size: 1.4rem;
    }

    h2{
        font-size: 1.4rem;
    }

}

@media only screen and (max-width: 375px) {
    h1{
        font-size: 1.3rem;
    }

    h2{
        font-size: 1.3rem;
    }

}


span{
    font-size: inherit;
}

strong{
    font-weight:bold;
    color:inherit;
    font-size:inherit;
}

u{
    text-decoration: underline;
    font-size: inherit;
}

i{
    font-style: italic;
    font-size:inherit;
}

p{
    line-height: 120%;
}
ul,ol{
    list-style-position: outside;
    margin-left:20px;
    gap:15px;
    display: flex;
    flex-direction: column;
}

a:hover:not(#payerFacture), a.active:not(#payerFacture), nav span:hover, nav span.active{
    cursor:pointer;
    text-decoration:underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 5px;
}

.freestyleFont{
    letter-spacing: 1px;
    margin-bottom:-5px;
    font-family: 'Freestyle Script', sans-serif !important;                                       
}

.textAlignCenter{
    text-align: center;
}

.flex{
    display: flex;
    flex-direction: row;
    gap:15px;
}

.justifyContentCenter{
    display: flex;
    justify-content: center;
}

.flexColumn{
    display: flex;
    flex-direction: column;
}

.baseline{
    align-items: baseline;
}

.textColorOrange{
    color:var(--orange);
}

.textColorDarkGray{
    color:var(--dark-gray);
}


button{
    background-color:var(--mid-dark-gray);
    padding:20px 35px;
    border-radius: 15px;
}

button.fitContent{
    width: fit-content;

}

button.dark:not(button.loading){
    background-color: var(--black);
    color:white;
}

button:active:not(button.loading), button:hover:not(button.loading){
    background-color: var(--orange);
    color:white;
    cursor:pointer;
}

button.dark:hover:not(button.loading){
    background-color: var(--orange);
}

/* Cache le texte du bouton et prépare le cercle */
button.loading {
    opacity: 0.8;
    color: transparent; /* Rend le texte invisible */
    position: relative; /* Prépare le positionnement du cercle */
    pointer-events: none; /* Empêche de cliquer à nouveau sur le bouton */
}

/* Le cercle qui tourne */
button.loading::before {
    content: ''; /* Obligatoire pour afficher le pseudo-élément */
    box-sizing: border-box; /* S'assure que la bordure est à l'intérieur */
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25px;
    height: 25px;
    margin-top: -10px; /* Centre le cercle verticalement */
    margin-left: -10px; /* Centre le cercle horizontalement */
    border: 3px solid rgb(255, 255, 255,0.5);
    border-top-color: var(--dark-gray); /* La partie qui donnera l'impression de tourner */
    border-radius: 50%; /* Crée un cercle parfait */
    animation: spinner 1s linear infinite; /* Applique l'animation de rotation */
}

/* L'animation de rotation */
@keyframes spinner {
    to {
        transform: rotate(360deg); /* Fait tourner l'élément à 360 degrés */
    }
}
