/* RESET */
* {margin: 0;padding: 0;box-sizing: border-box;}

/*_________________________________________________*/
/* =-=-=-=-=-=-=-=-=-= GENERAL =-=-=-=-=-=-=-=-=-= */
/*_________________________________________________*/
@font-face {font-family: "Righteous"; src: url(Fonts/Righteous-Regular.woff);}
@font-face {font-family: "Montserrat"; src: url(Fonts/Montserrat-Medium.woff);}

body{
	flex-direction: column;
    font-family: Montserrat, sans-serif;
    color: white;
    height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    overflow-y: hidden;
    margin: 0;
    background: linear-gradient(135deg, #2f245b, #280936, #47165c, #231b44, #2f245b);
    background-size: 400% 400%;
    animation: degradeAnime 25s ease infinite;
}
@keyframes degradeAnime {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/*Scrollbar*/
::-webkit-scrollbar {width: 10px;}
::-webkit-scrollbar-track {background: #47165c;}
::-webkit-scrollbar-thumb {background: #ffb628;border-radius: 30px;}
/*Sélection*/
::selection{
    background-color: #ffb628;
    color: #47165c;}


/* ======================== */

/*Typos*/
div h1 {
    font-family: "Righteous", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(1.8rem, 4vw, 3rem);
    text-transform: uppercase;
    color: #ffb628;
    font-weight: 100;
    height: 10vh;
}
h1,h2{
    text-align: center;}
h2{
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    color: #f5b021;}
p {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  font-weight: 700;
}

/* ======================== */

button {
    display: flex;
    font-family: "Montserrat", sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    text-transform: uppercase;
    color: white;
    padding: 20px 56px;
    margin: 0 auto;
    border: 8px solid transparent;
    border-radius: 60px;
    cursor: pointer;
    position: relative;
    background: 
        linear-gradient(135deg, #662482, #2f245b) padding-box,
        linear-gradient(135deg, #2f245b, #662482) border-box;
    background-size: 250% 250%;
    background-position: 0% 0%;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
    transition: 
        background-position 4.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.5s ease,
        box-shadow 0.5s ease;
}
button:hover {
  background-position: 100% 100%;
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* ======================== */

/* ======== HEADER ======== */
header {
    width: 100%;
    height: 10vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #2f245b, #662482);
}
.logo {
    display: flex;
    align-items: center;
    padding: 0 5%;
}
.logo img {height: 10vh;}
nav{width: 70vw;}
nav ul {
	display: flex;
	justify-content: space-around;
    list-style: none;
}
nav ul li{transition: 0.3s;}
nav ul li:hover, nav ul li.active{transform: translateY(-4px);}
nav ul li a{
    text-decoration: none;
    font-size: 1.1vw;
    font-weight: 900;
    color: #f5b021;
    transition: 0.3s;}
nav ul li a:hover, nav ul li a.active{color: #fde3b9;}

/* ======= fin HEADER ======= */
/* =-=-=-=-=-=-=-=-=-= fin GENERAL =-=-=-=-=-=-=-=-=-= */





/*____________________________________________________________*/
/* =-=-=-=-=-=-=-=-=-=-= PAGE D'ACCUEIL =-=-=-=-=-=-=-=-=-=-= */
/*____________________________________________________________*/
#accueil{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}
#accueil main{
    align-items: center;
    margin-top: 9vh;
}
.logoettagline{
    display: flex;
    flex-direction: column;
    align-items: center;
}
#accueil img#embleme{         /*"La médaille"*/
    display: inline-block;
    width: 20vw;
    animation:
            glow 3.5s ease-in-out infinite,
            bounceDouce 5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0));
}
@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0)); }
  50%      { filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.4)); }
}
@keyframes bounceDouce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

#accueil img#texte{         /* "Bête à Clic" */
    width: 50vh;}

#accueil p#tagline{         /*Le slogan*/
    text-align: center;
    color: #ffb628;
}
p#tagline{
    font-size: 1.8em;
    margin-top: 30px;
}

/*Menu*/
#menuaccueil{
    display: flex;
    margin-top: 4vh;
    justify-content: space-evenly;
    width: 100%;
}
.btn {
    --color1: #662482;
    --color2: #2f245b;
    font-family: "Montserrat", sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    text-transform: uppercase;
    color: #fde3b9;
    padding: 20px 56px;
    border: 8px solid transparent;
    border-radius: 60px;
    cursor: pointer;
    position: relative;
    display: inline-block;
    text-decoration: none;
    background: 
        linear-gradient(135deg, var(--color1), var(--color2)) padding-box,
        linear-gradient(135deg, var(--color2), var(--color1)) border-box;
    background-size: 250% 250%;
    background-position: 0% 0%;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
    transition: 
        background-position 4.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.5s ease,
        box-shadow 0.5s ease;
}
.btn:hover {
    background-position: 100% 100%;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
/*Footer*/
footer{
    display: flex;
    flex-direction: column;
}
footer #auteur{
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}
footer #auteur img#logofooter{
    max-height: 5vh;
    max-width: 5vw;
    margin: 0 50px 0 20px;
}
footer a{
    display: flex;
    justify-content: center;
    font-size: 0.7em;
    cursor: pointer;
    margin-bottom: 5px;
    color: #a37cb4;
    text-decoration: none;
}
footer a:hover{
    color: white;
}

/* =-=-=-=-=-=-=-=-=-= fin PAGE D'ACCUEIL =-=-=-=-=-=-=-=-=-= */


/*___________________________________________________________*/
/* =-=-=-=-=-=-=-=-=-= ROUE DE LA CHANCE =-=-=-=-=-=-=-=-=-= */
/*___________________________________________________________*/

/*Réglages généraux*/
#container{height: 90vh;}
#tableaugains, #roue, #boutonlancerroue{
    width: 33.333%;}
#content{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2rem;
}
/*_______________________________*/

/*Tableau des gains*/
#tableaugains{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
#tableaugains h2{
    font-family: "Righteous", sans-serif;
    font-size: 2em;
    font-weight: 100;
    text-transform: uppercase;
    margin: 0 auto 3% auto;
}
.rouegain {
    display: flex;
    align-items: center;
    padding-right: 10vw;
    font-size: 2em;
    margin-bottom: 3%;
}
#tableaugains img {
    width: 27px;
    margin: 0 10px;
}
#tableaugains span{
    font-family: "Righteous", sans-serif;
    font-weight: 100;
}
/*_______________________________*/

/*Roue*/
#roue{
    aspect-ratio: 1 / 1;
    max-height: 80vh;
    background: #2f245b61;
}
#centrerlaflechesansabsolute {
    display: flex;
    justify-content: center;}
#arrow{
    position:fixed;
    width:0;
    height:0;
    border-left:40px solid transparent;
    border-right:40px solid transparent;
    border-top:90px solid #f5b021;
    z-index:100;
    filter:drop-shadow(0 12px 25px #0009);
}
#wheel-container {
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;}
#wheel-svg{
    width:90%;
    height:90%;
    transition:transform 6.5s cubic-bezier(0.16,0.68,0.1,0.99);
}
#center-circle {
    position: fixed;
    width: 100px;
    height: 100px;
    background: #2f245b;
    border-radius: 50%;
    align-content: center;
    z-index: 200;}

#result{
    font-family: "Righteous", sans-serif;
    text-align: center;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 100;
    text-shadow:0 0 50px;
}
.win-or{color:#f5b021;}
.win-bleu{color:#3FB9AD;}

/*Bouton pour lancer la roue*/
#boutonlancerroue button{
    padding: 30px 40px;
}

/* ==================== MODALES ==================== */
.modal{
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}
.modal-content{
   background: linear-gradient(135deg, #2f245b, #280936, #47165c, #231b44, #2f245b);
   padding: 40px;
   border-radius: 30px;
   text-align: center;
    max-width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    border: 6px solid #ffb628;
}
.modal-logo{
    width: 200px;
    margin-bottom: 20px;
}
.modal-content h2{
    font-family: "Righteous", sans-serif;
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffb628;
}
.modal-content p{
    font-size: 1.6em;
    margin-bottom: 30px;
    color: white;
}

.modal-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

/* =-=-=-=-=-=-=-=-=-= fin ROUE DE LA CHANCE =-=-=-=-=-=-=-=-=-= */

/*___________________________________________________________*/
/* =-=-=-=-=-=-=-=-=-= RESPONSIVE =-=-=- =-=-=-=-=-=-=-=-=-= */
/*___________________________________________________________*/

@media (max-width: 1024px) {

    #content {
        flex-wrap: wrap;
    }

    #tableaugains,
    #boutonlancerroue {
        width: 100%;
        text-align: center;
        align-items: center;
    }

    #roue {
        width: 70%;
        margin: 0 auto;
    }

    #tableaugains { order: 2; }
    #roue         { order: 1; }
    #boutonlancerroue { order: 3; }

    .rouegain {
        padding-right: 0;
        justify-content: center;
    }
}


@media (max-width: 768px) {

    #content {
        flex-direction: column;
        align-items: center;
    }

    #tableaugains,
    #roue,
    #boutonlancerroue {
        width: 100%;
    }

    #roue {
        max-width: 90vw;
    }
}


/* =-=-=-=-=-=-=-=-=-= fin RESPONSIVE =-=-=-=-=-=-=-=-=-= */