/*
Theme Name: Jaunecitron Theme
Author: Laventin
Description: Le theme custom de jaunecitron8300.
Version: 1.5
Text Domain: jaunecitrontheme
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --scale: 1;
    --header-height: 135px;
    --logo-scale: 350px;
    --header-y : 1px;
    --scroll-y : 0px
}

@supports not (-webkit-appearance: none) {
    * {
        scrollbar-width: auto; /* Largeur fine */
        scrollbar-color: #c2b6e4 rgb(122, 116, 151); /* Couleur de la barre et de la piste */
    }
}

::-webkit-scrollbar {
    width: 15px; /* Largeur de la scrollbar */
    height: 15px; /* Hauteur de la scrollbar */
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background: #c2b6e4; /* Couleur de la barre */
}

::-webkit-scrollbar-thumb:hover {
    background: white; /* Couleur au survol */
}

::-webkit-scrollbar-track {
    background: rgb(122, 116, 151);
}

html{
    height: 100%;
    overflow-y: auto;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a:link { text-decoration: none; } 
a:visited { text-decoration: none; } 
a:hover { text-decoration: none; } 
a:active { text-decoration: none; }

@keyframes loading  {
    to {
      background-position-x: -200%;
    }
}

body{
    width: 100%;
    background-color: rgb(239, 234, 255);
}

.wp-block-group{
    width: calc(100% - 200px);
    margin-left: auto;
    margin-right: auto;
}

.preload-transitions{ transition: none !important; }
.preload-hide { opacity: 0; }

.loading-spinner {
    width: 60px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: 
      radial-gradient(farthest-side,#ff4387ff 94%,#0000) top/10px 10px no-repeat,
      conic-gradient(#0000 30%,#ff4387ff);
    mask: radial-gradient(farthest-side,#0000 calc(100% - 10px),#000 0);
    -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 10px),#000 0);
    animation: spin 1s infinite linear;
    display: block;
    margin: 20px auto;
}

@keyframes spin {
    100%{transform: rotate(1turn)}
}

#side-menu{
    position: fixed;
    width: 400px;
    height: 100%;
    background-color: #fee0e9ff;
    z-index: 5;
    right: 0;
    display: block;
    transition: all 0.2s ease;

    &.collapsed{
        right: -400px;
        box-shadow: 0 0 0px rgba(0, 0, 0, 0.301);
    }

    .link-group{
        margin-top: 80px;
        margin-inline: 40px;
        display: flex;
        gap: 5px;
        flex-direction: column;

        a{
            height: 40px;
            width: 200px;
            position: relative;
            padding-left: 20px;
            padding-top: 5px;
            padding-bottom: 5px;

            &::before {
                content: "";
                z-index: 3;
                position: absolute;
                border-radius: 10px;
                background-color: #ff438727;
                top: 0;
                bottom: 0;
                left: 0;
                right: 0;
                opacity: 0;
                width: 0%;
                transition: all 0.15s ease-out;
            }

            &:hover{
                &::before{
                    opacity: 1;
                    width: 100%;
                }
            }
        }

        .link{
            display: flex;
            align-items: center;

            p{
                color: #ff4387ff;
                font: 1.3rem "Poppins", sans-serif;
                font-weight: 500;
                margin-right: 15px;
            }
        }

        .line-space{
            margin-top: 50px;
        }
    }
}

main{
    position: static;
    min-height: calc(100vh - var(--header-height));
    width: 100%;
    display: flex;
    flex-direction: column;
}

#header{
    position: fixed;
    width: 100%;
    background-color: white;
    overflow-x: clip;
    height: var(--header-height);
    z-index: 4;
    box-shadow: 0 0 30px #0000001f;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;

    #logo-container{
        position: relative;
        height: 100%;
        width: var(--logo-scale);
    
        #logo{
            height: 100%;
            display: flex;
            align-items: center;
            margin-left: 40px;

            img{
                width: 100%;
                position: absolute;

                &:first-child{
                    opacity: 0;
                }
    
                &:last-child{
                    opacity: 1;
                }
            }

            #stars{
                position: absolute;
                margin-top: -10%;
                width: 30%;
                right: -20%;
                top: -20%;
            }
        }
    }

    .top-right-bar{
        display: flex;
        justify-content: flex-end;
        align-items: center;
        margin-right: 30px;
        z-index: 3;
        gap: 25px;

        .nav-links{
            display: flex;
            justify-content: flex-end;
            position: relative;
            gap: 5px;
    
            a{
                z-index: 4;
                user-select: none;
                display: flex;
                align-items: center;

                img{
                    width: calc(50px * var(--scale));
                }
            }
    
            #kofi-button{
                margin-right: 10px;
            }
        }

    }

    .page-title{
        justify-self: center;

        h1{
            text-align: center;
            transition: color 0.1s ease;
            user-select: none;
            overflow-wrap: break-word;
            word-wrap: break-word;
            color: #654daf;
            font: calc(3.5rem * ((var(--scale) * 0.5) + 0.5)) "Poppins", sans-serif;
            font-weight: 700;
            white-space: nowrap;
        }
    }
}

.contact-btn{
    border: none;
    background-color: #ff4387;
    padding-inline: 15px;
    padding-block: 10px;
    border-radius: 10px;
    box-shadow: 6px 6px 0 #654daf;
    transition: all 0.1s ease-out;
    margin-right: 6px;

    p{
        color: white;
        font-weight: 500;
        font-size: calc(1.2rem * ((var(--scale) * 0.5) + 0.5));
    }

    &:hover{
        background-color: #654daf;
        box-shadow: 0px 0px 0 #654daf;
        cursor: pointer;
        transform: translate(2px, 2px);

        p{
            color: rgb(255, 255, 255);
        }
    }

    &.mobile-button{
        display: none;
        border-radius: 50%;
        aspect-ratio: 1/1;
        width: 50px;
        color: white;
        justify-content: center;
        align-items: center;
        box-shadow: 4px 4px 0 #654daf;
        padding: 0;

        svg{
            width: 100%;
        }

        &:hover{
            box-shadow: 0px 0px 0 #654daf;
        }
    }
}

#open-menu-button{
    position: relative;
    z-index: 5;
}

#close-menu-button{
    position: fixed;
    z-index: 5;

    &.collapsed{
        opacity: 0;
        pointer-events: none;
    }
}

.burger-menu-button{

    .burger-circle{
        height: calc(75px * var(--scale));
        width: calc(75px * var(--scale));
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: calc(6px * var(--scale));

        .burger-bar{
            background-color: rgb(255, 255, 255);
            height: calc(6px * var(--scale));
            width: calc(35px * var(--scale));
            border-radius: 10px;
            z-index: 3;
            cursor: pointer;
        }

        &::before {
            content: "";
            z-index: 3;
            position: absolute;
            border-radius: 50%;
            background-color: #ff4387ff;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            transform: scale(1);
            transition: transform 0.1s ease;
        }

        &:hover{
            &::before {
                transform: scale(1.2);
                cursor: pointer;
            }
        }
    }

    &.collapsed{
        z-index: 3;

        .burger-circle{
            .burger-bar{
                background-color: #ff4387ff;
            }
            
            &::before {
                background-color: #ff438727;
            }
        }
    }
}

#header-spacer{
    height: var(--header-height);
}


#content{
    position: static;
    width: 100%;
    height: 100%;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.standard-container{
    position: relative;
    width: calc(1100px * var(--scale));
    height: auto;
    margin-right: auto;
    margin-left: auto;
}

.title-medium{
    position: relative;
    z-index: 1;
    color: white;
    font: calc(2.5rem * ((var(--scale) * 0.5) + 0.5)) "Poppins", sans-serif;
    font-weight: 600;
    margin-bottom: 25px;
    display: block;

    &.centered{
        text-align: center;
    }
}

.paragraph-container{
    display: flex;

    &.column-2{
        flex-direction: row;
        justify-content: space-between;
        gap: 20px;
        
        p{
            flex: 1;
        }
    }
}

.center-flex{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.paragraph{
    position: relative;
    z-index: 1;
    color: white;
    font: calc(1.1rem * ((var(--scale) * 0.5) + 0.5)) "Poppins", sans-serif;
    font-weight: 300;

    &.centered{
        text-align: center;
    }
}

h1, h2{
    color: white;
    font: calc(2.5rem * ((var(--scale) * 0.5) + 0.5)) "Poppins", sans-serif;
    font-weight: 600;
}

p{
    color: white;
    font: calc(1.1rem * ((var(--scale) * 0.5) + 0.5)) "Poppins", sans-serif;
    font-weight: 300;
}

a{
    color: #ff4387ff;
    font: calc(1.1rem * ((var(--scale) * 0.5) + 0.5)) "Poppins", sans-serif;
    font-weight: 300;

    &:hover{
        color: rgb(255, 137, 180);
    }
}

footer{
    min-height: 100px;
    width: 100%;
    background-color: #321a75;
    display: flex;
    flex-direction: column;

    .container{
        margin-bottom: auto;
        margin-top: auto;
        margin-right: 0;
        padding: 20px;
        display: flex;
        overflow: hidden;

        .left{
            margin: auto;
            margin-left: 30px;
            margin-right: 30px;

            img{
                width: 60px;
                height: 60px;
                border-radius: 50%;
            }
        }

        .middle{
            display: flex;
            justify-content: center;
            gap: 40px;
            flex: 1;

            a{
                line-height: 65px;
            }
        }

        .right{
            margin-left: auto;
            margin-top: auto;
            margin-bottom: auto;
        }

        p{
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.466);
            text-align: end;
        }

        a{
            font-size: 0.9rem;
        }
    }

    .site-info{
        padding: 5px;
        padding-right: 20px;

        p{
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.466);
            text-align: end;
        }
    }
}

.contact-container{
    position: absolute;
    width: auto;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 20px;
    margin: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 10px;

    h3{
        color: #654daf;
        font: calc(1.2rem * ((var(--scale) * 0.5) + 0.5)) "Poppins", sans-serif;
        font-weight: 600;
    }

    .contact-copy-field{
        width: 100%;
        border-radius: 10px;
        border: solid 2px #ff4387;
        background-color: #ff438727;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        padding-block: 10px;
        padding-inline: 15px;
        gap: 15px;
        position: relative;

        p{
            color: #ff4387;
            font-weight: 400;
        }

        .icons{
            position: relative;
            width: 30px;
        }

        .svg-icons{
            position: absolute;
            transition: transform 0.05s ease-out, opacity 0.05s ease-out;
            left: 0;

            svg{
                fill: currentColor;
            }
        }

        .copy-icon{
            color: #ff4387;
            transition: transform 0.05s ease-out, opacity 0.05s ease-out;
        }

        .valid-icon{
            opacity: 0;
            color: #ff4387;
            transform: scale(0.2);
            transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.05s ease-out;
        }

        &:hover{
            background-color: #ff438747;
            cursor: pointer;

            p,.copy-icon{
                color: #aa2b59;
            }
        }

        &.clicked{
            cursor: none;
            pointer-events: none;
            
            .copy-icon{
                opacity: 0;
                transform: scale(0.2);
            }

            .valid-icon{
                opacity: 1;
                transform: scale(1);
            }
        }
    }
}

/* Mobiles */
@media (max-width: 767px){
    :root {
        --scale: 0.3;
        --logo-scale: 350px;
        --header-height: 80px;
    }

    .wp-block-group{
        width: 80%;
    }

    #side-menu{
        left: 0;
        margin-left: 0;
        width: 100%;
    
        &.collapsed{
            left: -100%;
            width: 100%;
        }

        .link-group{
            margin-top: 160px;
            gap: 10px;

            .link{
                background-color: rgba(255, 255, 255, 0.452);
                border-radius: 25px;
                width: 100%;
                left: 50%;
                transform: translateX(-50%);

                p{
                    font: 1.1rem "Poppins", sans-serif;
                    font-weight: 500;
                }
            }
        }
    }
    

    #header{
        display: flex;
        justify-content: space-between;
        gap: 0;

        #logo-container{
            display: none;
        }

        .page-title{
            order: 2;
            flex: 1 1 auto;
            min-width: 0;
        }

        .contact-btn {
            display: none;

            &.mobile-button{
                display: flex;
                order: 3;
                flex: 0 0 auto;
                margin-inline: 15px;
            }
        }
        
        .top-right-bar{
/*             z-index: 4;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            left: 0px; */
            order: 1;
            margin-right: 0;
            flex: 0 0 auto;

            .nav-links{
                display: none;
            }

            .burger-menu-button{
                .burger-circle{
                    .burger-bar{
                        background-color: #ff4387ff;
                    }
                }
    
                &.collapsed{
                    z-index: 3;
    
                    .burger-circle{
                        .burger-bar{
                            background-color: #654daf;
                        }
                    }
                }
            }
        }
    }

    .burger-menu-button{
        position: relative;
        z-index: 5;

        .burger-circle{
            height: 75px;
            width: 75px;
            gap: 6px;

            .burger-bar{
                background-color: #ff4387ff;
                height: 6px;
                width: 35px;
            }

            &::before {
                content: "";
                display: none;
            }
        }

        &.collapsed{
            z-index: 3;

            .burger-circle{
                .burger-bar{
                    background-color: rgb(255, 255, 255);
                }
            }
        }
    }

    #content{
        position: static;
        width: 100%;
        height: 100%;
    }

    .standard-container{
        width: 70%;
    }
    
    .title-medium{
        font: 2rem "Poppins", sans-serif;
        font-weight: 600;
        margin-bottom: 25px;
    }
    
    .paragraph-container{   
        &.column-2{
            flex-direction: column;
        }
    }

    .paragraph{
        font: 1rem "Poppins", sans-serif;
        font-weight: 300;
    }

    footer{

        .container{
            margin-bottom: auto;
            margin-top: auto;
            margin-right: 0;
            padding: 20px;
            display: flex;
            overflow: hidden;
    
            .left{
                display: none;
            }
    
            .middle{
                flex-direction: column;
                gap: 5px;
    
                a{
                    line-height: inherit;
                    font-size: 0.8rem;
                }
            }
    
            .right{
                margin-left: auto;
            }

            p{
                font-size: 0.7rem;
            }
        }
    
        .site-info{
            p{
                font-size: 0.7rem;
            }
        }
    }

    .contact-container{
    position: absolute;
    width: auto;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 20px;
    margin: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 10px;

        h3{
            color: #654daf;
            font: calc(1.2rem * ((var(--scale) * 0.5) + 0.5)) "Poppins", sans-serif;
            font-weight: 600;
        }
    }
    .contact-copy-field{
        p{
            font-size: 1rem;
            white-space: nowrap;
        }
    }

}

/* Tablets */
@media (min-width: 768px) and (max-width: 1024px){
    :root {
        --scale: 0.6;
        --logo-scale: 180px;
        --header-height: 100px;
    }

    #header {
        .top-right-bar {
            .nav-links{
                display: none;
            }
        }
    }

}

/* small desktop */
@media (min-width: 1025px) and (max-width: 1399px){
    :root {
        --scale: 0.8;
        --logo-scale: 200px;
        --header-height: 100px;
    }
}

/* standard desktop */
@media (min-width: 1400px) and (max-width: 1999px){
    :root {
        --scale: 1;
        --logo-scale: 280px;
        --header-height: 150px;
    }
}

/* 2K desktop */
@media (min-width: 2000px) and (max-width: 2599px){
    :root {
        --scale: 1.2;
        --logo-scale: 350px;
        --header-height: 150px;
    }
}

/* 4K desktop */
@media (min-width: 2600px){
    :root {
        --scale: 1.6;
        --logo-scale: 350px;
        --header-height: 150px;
    }
}