:root{
    --background-color: #f9f9f9;/*#ffffff*/
    --use-color: #ffc107;
    --btn-color: #0a53be;
    --github-btn-color:#ff8c00;
    --nav-box-shadow:#ffffff73;
    --picture-background:#ffffff;/*#f9f9f9*/
    --star-color:gray;
    --font-color:black;
    --card-bg-color: #ffffff;
    --card-hover-color: #5372F0;
    --form-border-color:#dee2e6;
    --form-bg-color:#f9f9f9;
    --nav-buttons:#fff;
    --navbar-mobile-color:#ffffff;
    --theme-btn-color: #eaeaea;
}

:root.dark-mode {
    --background-color: #121212;
    --use-color: #ffdd57;
    --btn-color: #0a53be;
    --github-btn-color: #ff8c00;
    --nav-box-shadow: #00000073;
    --picture-background:#f9f9f9;
    --star-color: lightgray;
    --font-color: white;
    --card-bg-color: #252525;
    --form-border-color:#495057;
    --form-bg-color:#252525;
    --navbar-mobile-color:#252525;
    --theme-btn-color: #2c2c2c;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    transition: 0.3s ease-in-out;
    scroll-behavior: smooth;
}

@font-face {
    font-family: 'Roboto';
    src: url("fonts/Roboto/Roboto-VariableFont_wdth,wght-G7A9A6R.ttf") format('truetype');
    font-weight: 400;
    font-style: normal;
}

.navbar-t {
    display: flex;
    width: 100%;
    padding: 10px;
    position: fixed;
    justify-content: center;
    align-items: center;
    /*background-color: transparent;*/
    background: rgba(0,0,0,0.5);
    transition: background-color 0.3s ease-in-out;
    z-index: 10;
    color: white;
}

.navbar-t .navbar-brand{
    font-size: 28px;
}

.navbar-t a {
    transition: color 0.3s ease-in-out;
}

.navbar-t-scrolled {
    background: var(--background-color);
    background-color: var(--background-color) !important;
    color: var(--use-color) !important;
    box-shadow: -3px -3px 7px var(--nav-box-shadow),
    2px 2px 5px rgba(94, 104, 121, 0.288);
}

.navbar-t .container-fluid{
    justify-content:space-between;
}

.navbar-container{
    display: flex;
    align-items: center;
}

.navbar-button-list{
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}

.mobile-navbar-button-list{
    display: none;
    width: 0;
    overflow:hidden;
    text-wrap: nowrap;
}

.nav-burger{
    display: none;
}

.navbar-button-list .navbar-element .navbar-button{
    text-decoration: none;
    color: white;
}

.navbar-t-scrolled .navbar-button-list .navbar-element .navbar-button{
    color: var(--use-color);
}

.navbar-button-list .navbar-element .navbar-button:visited{
    color: white;
}

.navbar-button-list .navbar-button::after {
    content: "";
    position: relative;
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--use-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-button-list .navbar-button:hover::after {
    transform: scaleX(1);
}

.navbar-button-list .navbar-element .navbar-button:hover{
    filter: brightness(90%);
}

.navbar-t-scrolled .navbar-button-list .navbar-element .navbar-button:visited{
    color: var(--use-color);
}

.mobile-navbar-button-list{
    align-items: center;
}

.mobile-navbar-button-list .navbar-element{
    width: 100%;
    display: flex;
    justify-content: center;
}

.mobile-navbar-button-list .navbar-element .navbar-button{
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 5px;
    margin-top: 8px;
    font-size: 24px;
    width: 90%;
    border-radius: 8px;
    text-decoration: none;
    color: var(--use-color);
}

.mobile-navbar-button-list .navbar-element .navbar-button .button-img{
    height: 24px;
    width: auto;
}

.mobile-navbar-button-list .navbar-element .navbar-button:hover{
    background-color: var(--background-color);
}

.home-section {
    height: 100vh;
    max-height: 100vh;
    background: url("img/lakesaturated-fi3cT5B.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out;
}

.home-section.fade-out {
    opacity: 0;
}

.home-section.fade-in {
    opacity: 1;
}

:root.dark-mode .home-section{
    background: url("img/lakenight-LZGB6ws.jpg");
    background-size: cover;
    background-position: center;
}

.presentation .title-buttons{
    display: flex;
    gap: 12px;
    padding: 10px;
}

.presentation{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 20px;
    border-radius: 10px;
}

.presentation .title{
    text-align: center;
    font-size: 4rem;
    margin: 0;
}

.presentation .title-2{
    text-align: center;
    font-size: 4rem;
    margin: 0;
}

.presentation .title-buttons .title-button{
    padding: 5px 10px;
    border-radius: 10px;
    background-color: var(--btn-color);
    color: white;
    text-decoration: none;
    transition: 0.2s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    gap: 5px;
    font-weight: bold;
}

.presentation .title-buttons .git-btn{
    color: black;
    background-color: var(--github-btn-color);
}

.presentation .title-buttons .title-button:hover{
    transform: scale(1.05);
}

.presentation .title-buttons .title-button img{
    width: 20px;
}

.titre-section{
    padding: 2rem;
    color: var(--font-color);
}

.titre-section h2{
    font-size: 2.5rem;
    text-align: center;
    color: var(--font-color);
    transition: 0.3s ease-in-out;
}

.titre-section p{
    font-size: 1rem;
    text-align: center;
    margin-top: 10px;
    color: var(--use-color);
    transition: 0.3s ease-in-out;
}
.skills{
    width: 100%;
}

.skillsDisplay{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px , 1fr)) !important;
    gap: 30px;
    justify-content: center;
    justify-items: center;
    padding: 20px;
}

.skill-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.skill-icon img {
    width: 100px;
    height: 100px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.skill-icon p {
    margin: 10px 0 0;
    font-size: 0.9em;
    color: #333;
    font-weight: bold;
    transition: 0.3s ease-in-out;
}

.skill-icon:hover {
    transform: scale(1.1);
}

.skill-icon:hover img {
    transform: scale(1.2);
    /*filter: brightness(1.2);*/
}

.nomCompetence{
    padding-top: 15px;
    color: var(--font-color);
}

/*.stars {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    margin-top: 5px;*/
/*}*/

/*.star {*/
/*    font-size: 24px;*/
/*    color: gray;*/
/*    margin-right: 5px;*/
/*}*/

/*.star.filled {*/
/*    color: var(--use-color);*/
/*}*/

/*.star.half {*/
/*    color: gray;*/
/*    position: relative;*/
/*}*/

/*.star.half:after {*/
/*    content:'\2605';*/
/*    color: var(--use-color);*/
/*    position: absolute;*/
/*    margin-left: -20px;*/
/*    width: 10px;*/
/*    overflow: hidden;*/
/*}*/

.swiper {
    width: 100%;
    height: 100%;
    padding: 2rem 0;
    overflow: hidden;
    padding: 10px;
}

.swiper-wrapper {
    display: flex;
    align-items: center;
}

.swiper-slide {
    background: var(--card-bg-color);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    height: 250px;
    width: 160px;
    transition: all 0.3s ease-in-out;
    box-sizing: border-box;
    flex-shrink: 0;
    margin: 0 auto;
}

.swiper-slide img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.nomCompetence {
    font-weight: bold;
    font-size: 22px;
    color: var(--font-color);
    margin-bottom: 0.5rem;
    text-align: center;
    transition: ease-in-out 0.3s;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 2px;
}

.star {
    font-size: 22px;
    color: #ccc;
}

.star.filled {
    color: gold;
}

.star.half {
    background: linear-gradient(to right, gold 50%, #ccc 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.swiper-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.swiper-slide:hover img {
    transform: scale(1.1);
}

.swiper-button-next, .swiper-button-prev {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #333;
    top: 50%;
    transform: translateY(-50%);
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
}

.swiper-button-prev {
    left: 10px;
}

.swiper-button-next {
    right: 10px;
}

@media (max-width: 1024px) {
    .skills-container {
        padding: 0 50px;
    }
}

@media (max-width: 768px) {
    .skills-container {
        padding: 0 40px;
    }
    .filter-controls {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .skills-container {
        padding: 0 30px;
    }
}

#toggle-theme {
    position: relative;
    padding: 10px;
    background: none;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#toggle-theme-mobile{
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 100%;
    background-color: var(--theme-btn-color);
    transition: 0.3s ease-in-out;
}

.description-hero{
    padding: 10px;
    display: flex;
    text-align: justify;
}

.description-hero .profile-picture{
    /*width: 25%;*/
    height: auto;
    border-radius: 5%;
    object-fit: cover;
    background-color: var(--picture-background);
}

.description-hero .description-paragraphs{
    color: var(--font-color);
    transition: 0.3s ease-in-out;
    text-align: justify;
}

.description-hero .description-paragraphs strong{
    color: var(--use-color);
    transition: 0.3s ease-in-out;
}

/* -------------- PROJETS --------------- */

.projects .card{
    background: var(--card-bg-color);
    box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    transition: ease-in-out 0.3s;
    border: 2px solid transparent;
}

.projects .card:hover{
    border-color: var(--card-hover-color);
}

.projects .card .card-link{
    text-decoration: none;
}

.projects .card .card-link .card-title{
    color: var(--font-color);
    transition: 0.3s ease-in-out;
}

.projects .card .card-link .card-button{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    width: 35px;
    border-radius: 50%;
    color: #5372F0;
    border: 2px solid #5372F0;
    background: none;
    cursor: pointer;
    transform: rotate(-45deg);
    transition: 0.4s ease-in-out;
}

.projects .card .card-link:hover .card-button{
    transform: rotate(0deg);
    color: #fff;
    background-color: #5372F0;
}

/* ------------- FIN PROJETS -------------*/
/* START -------------- CONTACT --------------- START */

.contact{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.contact .card{
    background: var(--card-bg-color);
    box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    transition: ease-in-out 0.3s;
    border: 2px solid transparent;
}

.contact .card .form-group{
    color: var(--font-color);
    transition: ease-in-out 0.3s;
}

.contact .card .form-control{
    background-color: var(--form-bg-color);
    color: var(--font-color);
    border-color: var(--form-border-color);
    transition: ease-in-out 0.3s;
}

.contact .card .form-control:focus{
    background-color: var(--card-bg-color);
    color: var(--font-color);
    transition: ease-in-out 0.3s;
}

.contact .card .btn.form-control{
    background-color: var(--use-color);
    color: var(--font-color);
    filter: saturate(120%);
    transition: ease-in-out 0.3s;
}

.contact .card .btn.form-control:hover{
    filter: brightness(90%);
    transition: ease-in-out 0.3s;
}


/* END ------------- CONTACT -------------- END*/

/* FOOTER */
.footer {
    background-color: #252525;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
}

.footer h2{
    color:var(--use-color);
}

.footer-columns{
    display: flex;
    gap: 25px;
}

.footer-column {
    margin: 10px;
}
.footer-column h3 {
    color: var(--use-color);
    font-size: 16px;
}
.footer-column a {
    display: block;
    color: white;
    text-decoration: none;
    margin: 5px 0;
    font-size: 14px;
}
.footer-column a:hover {
    color: var(--use-color);
}
.footer-logo {
    max-width: 350px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    /*width: 120px;*/
    height: auto;
    flex-shrink: 0;
}

.footer-logo p {
    font-size: 14px;
    margin: 0;
    flex: 1;
}
/*FOOTER*/

/*--------------DASHBOARD----------------*/

.dash-side{
    width: 300px;
    height: 95vh;
    background-color: var(--card-bg-color);
}
.dash-header{
    height: 5vh;
    width: 100vw;
    background-color: var(--card-bg-color);
    border-bottom: 1px black solid;
    display: flex;
}

.dash-header .dash-brand{
    display: flex;
}

.dash-header .dash-brand{}

.dash-header .dash-brand img{
    height: 5vh;
    width: 5vh;
    overflow: hidden;
    padding: 4px;
    border-radius: 100%;
}

.vh-75{
    height: 75vh;
}

@media (max-width: 991px) {
    .footer{
        justify-content: center;
    }

    .home-section {
        height: 100vh;
        max-height: 100vh;
        background: url("https://www.happycurio.com/wp-content/uploads/2022/08/lac-nantua-montreal-la-cluse.jpg");
        background-size: cover;
        background-position: center;
    }

    .home-section .presentation .title{
        font-size: 2rem;
    }

    .home-section .presentation .title-2{
        font-size: 2rem;
    }

    .title-buttons .title-button{
        font-size: 16px !important;
    }

    .navbar-container{
        padding: 10px;
    }

    /* Responsive navbar*/
    .navbar-t-opened{
        background: var(--background-color);
        background-color: var(--background-color) !important;
        color: var(--use-color) !important;
        box-shadow: -3px -3px 7px var(--nav-box-shadow),
        2px 2px 5px rgba(94, 104, 121, 0.288);
    }

    .navbar-t-opened .navbar-button-list .navbar-element .navbar-button{
        color: var(--use-color);
    }

    .navbar-t-opened .navbar-button-list .navbar-element .navbar-button:visited{
        color: var(--use-color);
    }

    .nav-burger:checked ~ .span-navbar span:nth-child(1) {
        transform: rotate(45deg);
        position: absolute;
    }

    .nav-burger:checked ~ .span-navbar span:nth-child(2) {
        opacity: 0;
    }

    .nav-burger:checked ~ .span-navbar span:nth-child(3) {
        transform: rotate(-45deg);
        position: absolute;
    }

    .mobile-navbar-button-list{
        display: flex;
        list-style-type: none;
        position: absolute;
        top: 82px;
        left: 0;
        transition: 0.3s ease-in-out;
        flex-direction: column;
        height: 0;
        width: 100vw;
        background-color: var(--navbar-mobile-color);
        padding: 0;
        margin:0;
    }

    .mobile-navbar-button-list #toggle-theme-mobile{
        position: absolute;
        bottom: 20px;
        left: 20px;
    }

    #toggle-navbar:checked ~ .mobile-navbar-button-list{
        height: calc(100vh - 82px);
        z-index: 9999;
    }

    .span-navbar{
        display: block;
    }

    .navbar-button-list {
        display: none;
    }

    .span-navbar {
        display: flex;
        flex-direction: column;
        justify-content: center;
        cursor: pointer;
    }

    .span-navbar span {
        display: block;
        width: 30px;
        height: 4px;
        margin: 4px 0;
        background: var(--nav-buttons);
        border-radius: 2px;
        transition: 0.3s ease;
    }

    .navbar-t-scrolled span{
        background: var(--use-color);
    }

    .navbar-t-opened span{
        background: var(--use-color);
    }
}

.description-section .card{
    background-color: var(--card-bg-color) !important;
    transition: 0.3s ease-in-out;
}

.description{
    transition: 0.3s ease-in-out;
}

.description p{
    color: var(--font-color);
    transition: 0.3s ease-in-out;
}

.project-image{
    background: none !important;
    border: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: none;
}

.project-image:hover{
    box-shadow: none;
}

.project-image img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

.swiper2{
    height: 325px;
}

.swiper2 .swiper-slide:hover {
    transform: translateY(0px);
}

.swiper2 .swiper-slide:hover img {
    transform: scale(1.0);
}

#lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}
#lightbox-image {
    max-width: 100%;
    max-height: 80vh;
}
.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    height: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 9999;
}

.lightbox-prev,
.lightbox-next {
    pointer-events: all;
    font-size: 50px;
    color: white;
    background: rgba(60, 56, 56, 0.7);
    padding: 15px 20px;
    margin: 0 20px;
    border-radius: 8px;
    user-select: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(44, 44, 44, 0.7);
}

.project-hero {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
    padding: 10px;
}

.card-img-top{
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 5px;
}

.pagination a {
    text-decoration: none;
    color: #3498db;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.pagination a:hover {
    background-color: #3498db;
    color: white;
}

.pagination .first a,
.pagination .previous a {
    font-weight: bold;
}

.pagination .current {
    color: #555;
    font-weight: bold;
    padding: 8px 12px;
    background-color: #e6e6e6;
    border-radius: 5px;
}

.pagination .first,
.pagination .previous,
.pagination .page {
    display: inline-block;
}

.pagination .current {
    pointer-events: none;
}

.legal-mentions{
    background-color: var(--card-bg-color);
    color: var(--font-color);
    transition: ease-in-out 0.3s;
}

.legal-mentions p{
    color: var(--font-color);
}

.text-color{
    color: var(--font-color) !important;
}

.bg-blue         { background-color: #007bff !important; }
.bg-green        { background-color: #28a745 !important; }
.bg-red          { background-color: #dc3545 !important; }
.bg-orange       { background-color: #fd7e14 !important; }
.bg-pink         { background-color: #e83e8c !important; }
.bg-purple       { background-color: #6f42c1 !important; }
.bg-teal         { background-color: #20c997 !important; }
.bg-gray         { background-color: #adb5bd !important; }

.text-blue       { color: #007bff !important; }
.text-green      { color: #28a745 !important; }
.text-red        { color: #dc3545 !important; }
.text-orange     { color: #fd7e14 !important; }
.text-pink       { color: #e83e8c !important; }
.text-purple     { color: #6f42c1 !important; }
.text-teal       { color: #20c997 !important; }
.text-gray       { color: #adb5bd !important; }


