@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Zhi+Mang+Xing&display=swap');


/* =========================================================
   RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans", sans-serif;
    color: #2b2b2b;
    background: #a55bd4;
    overflow-x: hidden;
}



/* =========================================================
   NAVBAR
   ========================================================= */

.portfolio-navbar {
    width: 100%;
    min-height: 38px;
    top: 0;
    left: 0;
    padding: 0 12px !important;
    background: #ba7bf2 !important;
    display: flex;
    align-items: center;
    position: fixed;
    z-index: 9999;
}


/* Conteneur Bootstrap */

.portfolio-navbar .container-fluid {
    width: 100%;

    padding: 0 !important;

    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}


/* Logo */

.portfolio-navbar .navbar-brand {
    margin: 0 !important;
    padding: 0 !important;

    display: flex;
    align-items: center;
}


.nav-logo {
    width: 28px;
    height: 28px;

    object-fit: contain;

    display: block;
}


/* Zone des liens */

.portfolio-navbar .navbar-collapse {
    display: flex !important;

    align-items: center !important;
    justify-content: flex-end !important;

    flex-grow: 1;
    flex-basis: auto !important;
}


/* Liste */

.portfolio-navbar .navbar-nav {
    display: flex !important;

    flex-direction: row !important;

    align-items: center !important;

    justify-content: flex-end;

    gap: 35px;

    margin: 0 0 0 auto !important;
    padding: 0 !important;

    list-style: none !important;
}


.portfolio-navbar li {
    list-style: none !important;
}


/* Liens */

.portfolio-navbar .nav-link {
    color: #E8D5A3 !important;

    font-size: 0.72rem;

    font-weight: 500;

    line-height: 1;

    padding: 0 !important;
    margin: 0 !important;

    text-decoration: none;

    white-space: nowrap;

    transition: 0.3s;
}


.portfolio-navbar .nav-link:hover,
.portfolio-navbar .nav-link.active {
    color: #f7dfaa !important;
}

/* =========================================================
   RESET
   ========================================================= */

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


body {
    min-height: 100vh;

    background: #a55bd4;

    font-family: "Noto Sans", sans-serif;

    overflow-x: hidden;
}


/* =========================================================
   SECTION COMPÉTENCES
   ========================================================= */

.competences-section {
    width: 100%;

    min-height: calc(100vh - 55px);

    background: #a55bd4;

    display: flex;
    align-items: center;

    padding: 40px 7%;
}


/* =========================================================
   CONTENEUR
   ========================================================= */

.competences-container {
    width: 100%;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 80px;
}


/* =========================================================
   PARTIE GAUCHE
   ========================================================= */

.competences-left {
    width: 40%;

    display: flex;
    flex-direction: column;

    align-items: flex-start;
}


/* Titre */

.competences-left h1 {
    margin-bottom: 55px;

    color: #E8D5A3;

    font-family: "Playfair Display", serif;

    font-size: clamp(1.5rem, 3vw, 2.4rem);

    font-weight: 400;

    text-decoration: underline;

    text-decoration-color: #f2d59a;

    text-underline-offset: 8px;

    text-decoration-thickness: 1px;
}


/* =========================================================
   GRILLE DES LOGICIELS
   ========================================================= */

.software-grid {
    display: grid;

    grid-template-columns: repeat(2, 90px);

    gap: 30px 35px;

    align-items: center;
}


/* Icônes */

.software-icon {
    width: 80px;
    height: 80px;

    object-fit: contain;
    display: block;

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}


/* Petit effet */

.software-icon:hover {
    transform: scale(1.12);

    filter:
        drop-shadow(
            0 5px 8px
            rgba(0, 0, 0, 0.25)
        );
}


/* =========================================================
   PARTIE DROITE
   ========================================================= */

.competences-right {
    width: 60%;

    display: flex;

    justify-content: center;
    align-items: center;
}


/* Illustration */

.desk-image {
    width: 100%;

    max-width: 650px;

    height: auto;

    object-fit: contain;

    display: block;
}


/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 900px) {

    .competences-section {
        padding: 50px 6%;
    }


    .competences-container {
        gap: 40px;
    }


    .competences-left {
        width: 40%;
    }


    .competences-right {
        width: 60%;
    }


    .software-grid {
    grid-template-columns: repeat(2, 75px);
    gap: 25px;
}


    .software-icon {
    width: 65px;
    height: 65px;
}

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

.competences-section {
    width: 100%;
    min-height: calc(100vh - 55px);

    background: #a55bd4;

    display: flex;

    /* Remonte le contenu */
    align-items: flex-start;

    padding: 35px 7% 40px;
}


    .competences-container {
    width: 100%;

    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 80px;
    align-items: center;
    }


    .competences-left,
    .competences-right {
        width: 100%;
    }


    .competences-left {
        align-items: center;
    }


  .competences-left h1 {
    margin-bottom: 35px;

  }


  .software-grid {
    grid-template-columns: repeat(2, 80px);

    gap: 25px 30px;
}


    .software-icon {
    width: 70px;
    height: 70px;
}


    .desk-image {
        max-width: 420px;
    }

}

