@import url("fonts.css");
@import url("font-awesome/css/font-awesome.min.css");
@import url("micons/micons.css");

:root {
    /* Couleurs locales du thème (sans préfixe --cms) */
    --primary-50: hsl(215, 100%, 95%);
    --primary-100: hsl(215, 100%, 85%);
    --primary-300: hsl(215, 98%, 51%);
    --primary-400: hsl(215, 76%, 50%);
    --primary-500: hsl(215, 100%, 38%);

    --neutral-0: #FFFFFF;
    --neutral-50: hsl(0, 0%, 96%);
    --neutral-100: hsl(0, 0%, 92%);
    --neutral-400: hsl(0, 0%, 63%);
    --neutral-600: hsl(0, 0%, 35%);
    --neutral-800: hsl(0, 0%, 8%);
    --neutral-900: hsl(0, 0%, 0%);

    /* Typographie du thème */
    --font-title: "Poppins", sans-serif;
    --font-link: "poppins-bold", sans-serif;
    --font-body: "Inter", sans-serif;

    /* Variables structurelles spécifiques */
    --header-project: 66px;
    --padding-landing: var(--cms-spacing-xxl) 0;
    --padding-landing-mobile: var(--cms-spacing-xl) 0;

    /* Typographies et dimensions préservées pour le bon fonctionnement */
    --font-size-base: 16px;
    --font-size-base-large: 20px;
    --font-size-h1: 4rem;
    --font-size-h2: 2.2rem;
    --font-size-h3: 1.75rem;
    --font-size-h4: 1.5rem;
    --font-size-h5: 1.3rem;
    --font-size-h6: 1.2rem;
    --image-radius: 0.7rem;
}

/* ========================================================================== */
/* BASE STYLE OVERRIDES
/* ========================================================================== */
html, body {
    height: 100%;
}

body {
    background: var(--neutral-0);
    font-family: var(--font-body), serif;
    color: var(--neutral-800);
    font-size: var(--font-size-base);
    line-height: 1.4;
}

main {
    background-color: var(--neutral-0);
}

.fa, .fa-solid, .fa-brands {
    color: var(--neutral-0);
}

i.fa-solid {
    color: var(--neutral-900);
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
}

.icon:not(.material-symbols-outlined) {
    font-family: 'icomoon' !important;
}

/* ========================================================================== */
/* TYPOGRAPHY & GENERAL THEME STYLES
/* ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: "poppins-bold", sans-serif;
    font-style: normal;
    text-rendering: optimizeLegibility;
}

h1 {
    font-size: var(--font-size-h1);
    line-height: 1.2;
    letter-spacing: -.1rem;
}

h2 {
    color: var(--primary-500);
    font-size: var(--font-size-h2);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .15rem;
}

h3, h4, h5, h6 {
    font-family: "poppins-semibold", sans-serif;
}

h3 {
    color: var(--primary-500);
    font-size: var(--font-size-h3);
    line-height: 1.2;
}

h4 {
    font-size: var(--font-size-h4);
    color: var(--primary-500);
}

h5, h6 {
    color: var(--neutral-800);
}

h5 {
    font-size: var(--font-size-h5);
    letter-spacing: .15rem;
}

h6 {
    font-size: var(--font-size-h6);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .15rem;
}

p {
    font-family: var(--font-body);
    line-height: 1.5;
    color: var(--neutral-600);
    font-size: 17px;

    & img {
        margin: 0;
    }

    &.lead {
        font-size: var(--font-size-base);
        line-height: 1.5;
        color: var(--neutral-800);
    }

    & i {
        padding-right: 0.5em;
    }
}

em, i, strong, b {
    line-height: 1.2;
}

em, i {
    font-family: var(--font-body);
    font-style: italic;
}

strong, b {
    font-family: var(--font-body);
    font-weight: bold;
}

small {
    font-size: 1.2rem;
    line-height: inherit;
}

hr {
    border: solid #d2d2d2;
    border-width: 1px 0 0;
    clear: both;
    margin: 2.4rem 0 1.5rem;
    height: 0;
}

/* Links */
a, a:visited {
    color: var(--neutral-900);
    transition: all 0.3s ease-in-out;

    &:hover, &:focus, &:active {
        color: var(--primary-500);
        outline: 0;
    }
}

/* Tables */
table {
    border-width: 0;
    width: 100%;
    max-width: 100%;
    font-family: var(--font-body);

    & th, & td {
        padding: 1.5rem 3rem;
        text-align: left;
        border-bottom: 1px solid #E8E8E8;
    }

    & th {
        color: #313131;
        font-family: var(--font-title);

        &:first-child {
            padding-left: 0;
        }

        &:last-child {
            padding-right: 0;
        }
    }

    & td {
        line-height: 1.5;

        &:first-child {
            padding-left: 0;
        }

        &:last-child {
            padding-right: 0;
        }
    }
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Layout Blocks helpers */
.bgrid {
    padding: 0 20px;
}

/* ========================================================================== */
/* PRELOADER
/* ========================================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--neutral-800);
    z-index: 800;
    height: 100%;
    width: 100%;
}

#loader {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    padding: 0;

    &::before {
        content: "";
        border-top: 11px solid rgba(255, 255, 255, 0.1);
        border-right: 11px solid rgba(255, 255, 255, 0.1);
        border-bottom: 11px solid rgba(255, 255, 255, 0.1);
        border-left: 11px solid var(--primary-500);
        animation: load 1.1s infinite linear;
        display: block;
        border-radius: 50%;
        width: 60px;
        height: 60px;
    }
}

@keyframes load {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================================================== */
/* FORMS
/* ========================================================================== */
fieldset {
    border: none;
}

input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea,
select {
    display: block;
    height: 6rem;
    border: 0;
    outline: none;
    vertical-align: middle;
    color: #313131;
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.4;
    max-width: 100%;
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;

    &:focus {
        color: var(--primary-500);
        border-bottom: 1px solid var(--primary-500);
    }
}

textarea {
    min-height: 25rem;
}

label, legend {
    font-family: var(--font-link);
    font-size: 1.4rem;
    margin-bottom: .6rem;
    color: #3b3b3b;
    display: block;
}

input[type="checkbox"], input[type="radio"] {
    display: inline;
}

label {
    & > .label-text {
        display: inline-block;
        margin-left: 1rem;
        font-family: var(--font-body);
        line-height: inherit;
    }

    & > input[type="checkbox"], & > input[type="radio"] {
        margin: 0;
        position: relative;
        top: .15rem;
    }
}

/* Placeholders */
::-webkit-input-placeholder { color: var(--neutral-400); }
:-moz-placeholder { color: var(--neutral-400); }
::-moz-placeholder { color: var(--neutral-400); }
:-ms-input-placeholder { color: var(--neutral-400); }
.placeholder { color: var(--neutral-400) !important; }

/* Custom Select */
.ss-custom-select {
    position: relative;
    padding: 0;

    & select {
        appearance: none;
        text-indent: 0.01px;
        text-overflow: '';
        margin: 0;
        line-height: 3rem;
        vertical-align: middle;

        & option {
            padding-left: 2rem;
            padding-right: 2rem;
        }
    }

    &::after {
        content: '\f0d7';
        font-family: 'FontAwesome';
        position: absolute;
        top: 50%;
        right: 1.5rem;
        margin-top: -10px;
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 18px;
        text-align: center;
        pointer-events: none;
        color: #252525;
    }
}

/* ========================================================================== */
/* BUTTONS
/* ========================================================================== */
.primary-button, .button-primary {
    background-color: var(--primary-500);
    font-family: var(--font-link);
    font-size: var(--font-size-base);
    line-height: initial;
    color: var(--neutral-0);
    display: inline-flex;
    align-items: center;
    border: solid 2px;
    border-radius: 5px;
    padding: 1.3em 1.5em;
    gap: 0.3em;
    margin: 1em 0;
    text-transform: uppercase;

    &:hover {
        background-color: var(--neutral-900);
        color: var(--neutral-0);
    }

    &:visited {
        color: var(--neutral-0);
    }

    & img {
        width: 20px !important;
        filter: invert(1);
        margin: 0 0.5em 0 0;
        border-radius: 0 !important;
    }

    & i {
        color: var(--neutral-0);
        font-size: 20px;
    }
}

a.secondary-button {
    font-family: var(--font-link);
    color: var(--neutral-0);
    display: inline-flex;
    padding: 1.5rem 2.5rem 1.5rem 2rem;
    font-size: var(--font-size-base);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .25rem;
    background: transparent;
    border: 3px solid rgba(255, 255, 255, 0.3);

    &::after {
        display: inline-block;
        content: "\f107";
        font-family: fontAwesome;
        font-size: var(--font-size-base);
        line-height: inherit;
        text-align: center;
        position: relative;
        left: 1.2rem;
    }

    &.spinning-effect {
        place-self: center;
        border: none;
        position: relative;
        overflow: hidden;

        & i {
            content: "";
            position: absolute;
            top: 3px;
            bottom: 3px;
            left: 3px;
            right: 3px;
            padding: 3px;
            z-index: -1;
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask-composite: exclude;

            &::before {
                --gradient-color0: #114fab;
                --gradient-color1: transparent;
                content: "";
                width: 520px;
                height: 520px;
                display: block;
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%) rotate(0);
                background: conic-gradient(from 180deg at 50% 50%, var(--gradient-color0) 0deg, var(--gradient-color1) 360deg);
                z-index: -2;
                border-radius: 100%;
                animation: spinning_border 3s linear infinite;
            }
        }
    }
}

@keyframes spinning_border {
    0% { transform: translate(-50%,-50%) rotate(1turn); }
    100% { transform: translate(-50%,-50%) rotate(0); }
}

.button,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
    display: inline-block;
    font-family: var(--font-link);
    font-size: var(--font-size-base);
    text-transform: uppercase;
    letter-spacing: .3rem;
    padding: 0.6rem 3rem;
    background: var(--primary-500);
    color: var(--neutral-0);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    border: none;
    transition: all 0.3s ease-in-out;

    &:hover, &:focus {
        background: var(--primary-500);
        color: var(--neutral-0);
        outline: 0;
    }

    &.button-primary {
        background: #313131;
        color: var(--neutral-0);

        &:hover, &:focus {
            background: #1f1f1f;
        }
    }

    &.full-width {
        width: 100%;
        margin-right: 0;
    }

    &.medium {
        height: 5.7rem !important;
        line-height: 5.7rem !important;
        padding: 0 1.8rem !important;
    }

    &.large {
        height: 6rem !important;
        line-height: 6rem !important;
        padding: 0rem 3rem !important;
    }

    &.stroke {
        background: transparent !important;
        border: 3px solid #313131;
        line-height: 4.8rem;

        &.medium {
            line-height: 5.1rem !important;
        }

        &.large {
            line-height: 5.4rem !important;
        }

        &:hover {
            border: 3px solid var(--primary-500);
            color: var(--primary-500);
        }
    }
}

/* ========================================================================== */
/* ALERT BOXES & TOASTS
/* ========================================================================== */
.alert-box {
    padding: 2.1rem 4rem 2.1rem 3rem;
    position: relative;
    margin-bottom: 3rem;
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: var(--font-size-base);

    & .close {
        position: absolute;
        right: 1.8rem;
        top: 1.8rem;
        cursor: pointer;
    }
}

.ss-error { background-color: #ffd1d2; color: #e65153; }
.ss-success { background-color: #c8e675; color: #758c36; }
.ss-info { background-color: #d7ecfb; color: #4a95cc; }
.ss-notice { background-color: #fff099; color: #bba31b; }

/* ========================================================================== */
/* COMMON SKILLBARS & GLOBAL STYLES
/* ========================================================================== */
.skills {
    width: 60%;
    margin: 0 auto;
}

.skill-bars {
    list-style: none;
    margin: 6rem 0 3rem;

    & li {
        height: .6rem;
        background: var(--neutral-400);
        width: 100%;
        margin-bottom: 6rem;
        padding: 0;
        position: relative;

        & strong {
            position: absolute;
            left: 0;
            top: -3rem;
            font-family: var(--font-link);
            color: #313131;
            text-transform: uppercase;
            letter-spacing: .2rem;
            font-size: var(--font-size-base);
            line-height: 2.4rem;
        }

        & .progress {
            background: #313131;
            position: relative;
            height: 100%;

            & span {
                position: absolute;
                right: 0;
                top: -3.6rem;
                display: block;
                font-family: var(--font-body);
                color: var(--neutral-0);
                font-size: var(--font-size-base);
                line-height: 1;
                background: #313131;
                padding: .6rem .6rem;
                border-radius: 3px;

                &::after {
                    position: absolute;
                    left: 50%;
                    bottom: -5px;
                    margin-left: -5px;
                    border-right: 5px solid transparent;
                    border-left: 5px solid transparent;
                    border-top: 5px solid #313131;
                    content: "";
                }
            }

            &.percent10 span::after {
                display: none;
            }
            
            &.percent5   { width: 5%; }
            &.percent10  { width: 10%; }
            &.percent15  { width: 15%; }
            &.percent20  { width: 20%; }
            &.percent25  { width: 25%; }
            &.percent30  { width: 30%; }
            &.percent35  { width: 35%; }
            &.percent40  { width: 40%; }
            &.percent45  { width: 45%; }
            &.percent50  { width: 50%; }
            &.percent55  { width: 55%; }
            &.percent60  { width: 60%; }
            &.percent65  { width: 65%; }
            &.percent70  { width: 70%; }
            &.percent75  { width: 75%; }
            &.percent80  { width: 80%; }
            &.percent85  { width: 85%; }
            &.percent90  { width: 90%; }
            &.percent95  { width: 95%; }
            &.percent100 { width: 100%; }
        }
    }
}

.section-intro {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    position: relative;

    & h1 {
        font-family: "poppins-semibold", serif;
        font-size: 3.6rem;
        color: #313131;
        line-height: 1.25;
        margin-bottom: 1.2rem;
    }
}

/* ========================================================================== */
/* HEADER STYLES
/* ========================================================================== */
header {
    all: initial;
    position: fixed;
    width: 100%;
    min-height: 66px;
    z-index: 600;

    & .container {
        position: relative;
        min-height: 66px;
    }

    & .top-bar {
        display: block;
        background: var(--neutral-900);
        min-width: 165px;
        min-height: var(--header-project);
        position: absolute;
        top: 0;
        right: 0;
    }

    & .logo {
        float: left;
        margin-left: 20px;
        margin-right: 50px;
        margin-top: 25px;
        position: relative;
        right: 0;

        & a {
            display: block;
            margin: 0;
            padding: 0;
            border: none;
            text-shadow: none;
            color: transparent;
            width: 92px;
            height: 15px;
            background: url("../images/logo.png") no-repeat center;
            background-size: 92px 15px;
        }
    }
}

.menu-toggle {
    float: left;
    width: 40px;
    height: 40px;
    display: block;
    position: relative;

    & span {
        display: block;
        background-color: var(--primary-400);
        width: 24px;
        height: 3px;
        margin-top: -1.5px;
        color: transparent;
        position: absolute;
        right: 8px;
        top: 50%;
        transition: background 0.2s ease-in-out;

        &::before, &::after {
            content: '';
            width: 100%;
            height: 100%;
            background-color: inherit;
            position: absolute;
            left: 0;
            transition-duration: 0.2s, 0.2s;
            transition-delay: 0.2s, 0s;
        }

        &::before {
            top: -8px;
            transition-property: top, transform;
        }

        &::after {
            bottom: -8px;
            transition-property: bottom, transform;
        }
    }

    &.is-clicked {
        & span {
            background-color: rgba(255, 0, 119, 0);

            &::before, &::after {
                background-color: var(--primary-500);
                transition-delay: 0s, 0.2s;
            }

            &::before {
                top: 0;
                transform: rotate(45deg);
            }

            &::after {
                bottom: 0;
                transform: rotate(-45deg);
            }
        }
    }
}

#menu-container {
    display: flex;
    align-items: center;
    padding: var(--cms-spacing-s);
    gap: var(--cms-spacing-s);
}

#lang-menu {
    display: flex;
    margin: 0;
    padding: 0;
    gap: 1rem;
    font-family: "poppins-medium";
    list-style: none;

    & a {
        color: var(--neutral-0);

        &:hover {
            color: gray;
        }
    }
}

#main-nav-wrap {
    display: block;
    width: 100%;
    height: auto;
    font-family: "poppins-medium", sans-serif;
    font-size: var(--font-size-base);
    position: absolute;
    top: 100%;
    left: 0;
}

.main-navigation {
    background: var(--neutral-900);
    padding: 0 2.2rem 24px;
    margin: 0;
    width: 100%;
    height: auto;
    clear: both;
    display: none;

    & > li {
        display: block;
        height: auto;
        text-align: left;
        padding: 0;
    }

    & li a {
        display: block;
        color: var(--neutral-0);
        width: auto;
        padding: 15px 0;
        line-height: 16px;
        border: none;

        &:hover {
            color: var(--primary-400);
            padding-left: 1rem;
        }
    }

    & li.current > a {
        background: none;
        color: var(--primary-400);
    }
}

/* ========================================================================== */
/* INTRO & HERO SECTION
/* ========================================================================== */

.hero-content {
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: center;
	align-items: center;

	h1 {
		z-index: 1;
		color: var(--neutral-0);
	}
}

#intro {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    place-content: center;
    text-align: center;

    & #name {
        color: var(--primary-400);
        background-image: -webkit-linear-gradient(0deg, var(--primary-400) 0%, var(--primary-300) 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

#hero-cover {
    & img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

.intro-content {
    position: relative;
    text-align: center;
    z-index: 1;

    & h1 {
        color: var(--neutral-0);
        font-family: "poppins-medium", sans-serif;
        font-size: 6.4rem;
        line-height: 1.071;
        max-width: 900px;
        margin: 0 auto;
        text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    }

    & h5 {
        color: var(--primary-500);
        font-family: var(--font-link);
        font-size: 2.3rem;
        line-height: 1.565;
        margin-bottom: 0;
        text-transform: uppercase;
        letter-spacing: .3rem;
        text-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
    }

    & .intro-position {
        font-family: var(--font-body);
        font-size: var(--font-size-h5);
        line-height: 2.4rem;
        text-transform: uppercase;
        letter-spacing: .2rem;
        color: var(--neutral-0);
        text-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
        text-align: center;

        & span {
            display: inline-block;
            font-family: "poppins-semibold";

            &::after {
                content: "|";
                text-align: center;
                display: inline-block;
                padding: 0 8px 0 14px;
                color: rgba(255, 255, 255, 0.3);
            }

            &:first-child::before {
                content: "|";
                text-align: center;
                display: inline-block;
                padding: 0 14px 0 8px;
                color: rgba(255, 255, 255, 0.3);
            }
        }
    }
}

.intro-social {
    display: block;
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 7.2rem;
    font-size: 3.3rem;
    margin: 0;
    padding: 0;
    z-index: 1;

    & li {
        display: inline-block;
        margin: 0 20px;
        padding: 0;

        & a, & a:visited {
            color: var(--neutral-0);
        }

        & a:hover, & a:focus {
            color: var(--primary-500);
        }
    }
}

.fa-linkedin {
    font-size: 2rem;
}

.profil {
    filter: drop-shadow(0 0 0.3rem var(--neutral-0));
}

/* ========================================================================== */
/* ABOUT SECTION
/* ========================================================================== */
#about {
    background: var(--neutral-0);
    padding: var(--padding-landing);
    display: flex;
    flex-direction: column;
    place-items: center;

    & .section-intro {
        margin-bottom: 1rem;
    }
}

.intro-info {
    & p {
        font-size: var(--font-size-base-large);
        color: var(--neutral-900);
    }

    & img {
        height: 15rem;
        width: 15rem;
        border-radius: 50%;
    }

    & .lead {
        font-size: var(--font-size-base-large);
        text-align: center;
    }
}

.about-content {
    position: relative;
    text-align: left;
    max-width: 850px;
    margin-bottom: 3.6rem;

    & h3 {
        font-family: var(--font-link);
        font-size: var(--font-size-h3);
        text-transform: uppercase;
        letter-spacing: .25rem;
    }

    & .info-list {
        list-style: none;
        margin-left: 0;

        & li {
            padding: 0 0 1.5rem 0;
            margin-bottom: .6rem;

            & strong {
                font-family: var(--font-link);
                color: #313131;
                text-transform: uppercase;
                letter-spacing: .2rem;
                font-size: var(--font-size-base);
                line-height: 3rem;
            }

            & span {
                display: block;
                font-family: var(--font-body);
                color: var(--neutral-400);
                font-size: var(--font-size-base);
                line-height: 1;
            }
        }
    }

    & .skill-bars {
        margin-top: 6rem;
    }
}

/* ========================================================================== */
/* RESUME TIMELINE
/* ========================================================================== */
#resume {
    padding: var(--padding-landing);
    background-color: var(--neutral-0);

    & .resume-header {
        text-align: center;

        & h2 {
            color: var(--primary-500);
        }
    }

    & .resume-timeline {
        max-width: 980px;
    }

    & .timeline-wrap {
        position: relative;
        margin-top: 1.5rem;

        &::before {
            content: "";
            display: block;
            width: 1px;
            height: 100%;
            background: rgba(0, 0, 0, 0.1);
            position: absolute;
            left: 35%;
            top: 0;
        }
    }

    & .timeline-block {
        position: relative;
        padding-top: 1.5rem;
    }

    & .timeline-ico {
        height: 3.2rem;
        width: 3.2rem;
        line-height: 3.2rem;
        background: #313131;
        border-radius: 50%;
        text-align: center;
        color: var(--neutral-0);
        position: absolute;
        left: 36.3%;
        top: .9rem;
        margin-left: -2.4rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    & .timeline-header {
        float: left;
        width: 35%;
        padding-right: 90px;
        text-align: right;

        & p {
            font-family: var(--font-body);
            font-size: var(--font-size-base);
            color: var(--neutral-600);
        }
    }

    & h3 {
        margin: 3em 0;
        text-align: center;
        display: flex;
        align-items: center;
        margin-bottom: 3em;

        &::before, &::after {
            content: "";
            width: 100%;
            height: 2px;
            background-color: var(--primary-500);
        }

        &::before { margin-right: 1em; }
        &::after { margin-left: 1em; }
    }

    & .timeline-content {
        margin-left: 35%;
        padding-left: 60px;

        &.cms-content {
            ul { padding-left: 1rem; }
        }

        & h5 {
            position: relative;
            padding-bottom: 1.2rem;

            &::after {
                content: "";
                display: block;
                height: 3px;
                width: 50px;
                background: rgba(0, 0, 0, 0.2);
                position: absolute;
                left: 0;
                bottom: 0;
            }
        }
    }
}

/* ========================================================================== */
/* PROJECTS & PORTFOLIO
/* ========================================================================== */
#projects {
    background: var(--neutral-0);
    padding: var(--padding-landing);

    & .folio-item {
        padding: 0;
        position: relative;
        overflow: hidden;
        align-content: center;
        height: 100%;

        & picture {
            aspect-ratio: 4/3;
            display: flex;
            justify-content: center;
        }

        & img {
            width: auto;
            height: auto;
            aspect-ratio: 4/3;
            vertical-align: middle;
            transition: all 0.5s ease-in-out;
        }

        &:hover {
            & .overlay {
                background: rgba(0, 0, 0, 0.8);
            }

            & .folio-item-cell {
                left: 0;
            }

            & img {
                transform: scale(1.05);
            }
        }
    }

    & .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent;
        transition: all 0.5s ease-in-out;
    }

    & .folio-item-table {
        display: table;
        width: 100%;
        height: 100%;
    }

    & .folio-item-cell {
        display: table-cell;
        vertical-align: middle;
        text-align: center;
        transition: all 0.5s ease-in-out;
        position: relative;
        left: -100%;
        padding: 2em;
    }

    & .folio-title {
        color: var(--neutral-0);
        font-size: 2rem;
        padding: 0 3rem;
        margin-bottom: 0;
    }

    & .folio-types {
        margin: 1em 0 0 0;
        padding: 0;
        text-transform: uppercase;
        font-family: var(--font-body);
        line-height: 2;
        letter-spacing: .1rem;
        color: rgba(255, 255, 255, 0.6);
    }

    & h3 {
        text-align: center;
        display: flex;
        align-items: center;
        margin: 3em 0;

        &::before, &::after {
            content: "";
            width: 100%;
            height: 2px;
            background-color: var(--primary-500);
        }

        &::before { margin-right: 1em; }
        &::after { margin-left: 1em; }
    }

    & h4 {
        line-height: 1.2;
    }

    & .projects-container {
        box-shadow: 0 2px 30px 10px rgba(0, 0, 0, 0.15);

        & .folio-wrapper {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
        }
        
        & img {
            height: auto;
        }

        & .music-section {
            position: relative;
            grid-column: -1 / 1;
        }
    }

    & .professional-container {
        & .folio-wrapper {
            & > *:last-child:nth-child(odd) {
                grid-column: span 2;
                aspect-ratio: inherit;
                max-height: 300px;
                width: 100%;
                display: flex;
                justify-content: center;

                & picture, & img {
                    aspect-ratio: unset;
                }
            }
        }
    }
}

.projects {
    background-color: var(--neutral-0);

    & p {
        margin: 1.1em 0 0 0;
    }
}

.projet-part {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5em;
    padding-bottom: 6em;

    &.projet-introduction {
        padding: 4em 0;
    }

    & img:not(.media-gallery img) {
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: var(--image-radius);
    }

    & .primary-button {
        margin-top: 1.5em;
    }
}

.projet-h2 {
    color: var(--primary-500);
}

.realisations-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4em 0;

    & p {
        max-width: 550px;
    }

    & img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: -2;
    }
}

/* ========================================================================== */
/* SECTION LANDING, SKILLS & CERTIFICATIONS
/* ========================================================================== */
.section-landing {
    background: var(--neutral-0);
    display: flex; 
    flex-direction: column; 
    place-content: center;
    padding: var(--padding-landing);
    min-height: 30vh;
    padding-left: 1em;
    padding-right: 1em;
}

.landing_heading {
    text-align: center;
}

.section-landing-container {
    align-self: center;
    max-width: 1200px;
}

#skills {
    background-color: var(--neutral-100);

    & h3 {
        margin: var(--cms-spacing-s) 0;
    }

    & .icon {
        font-size: 32px;
    }
}

#digital-certifications {
    background-color: var(--neutral-100);

    & .list-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 1.5em 3em;
        margin: 5em 0 0 0;
    }
}

.list {
    display: flex;
    align-items: start;
    gap: var(--cms-spacing-s);

    & i {
        font-size: 1.5rem;
        color: var(--neutral-900);
    }

    & p {
        margin: 0;
        color: var(--neutral-900);
    }
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin: 4em 0 0;
    gap: 2em;
}

.card {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    background: linear-gradient(71deg, #080509, #1a171c, #080509);
    border: solid 2px var(--neutral-600);
    border-radius: 1rem;
    padding: 1.5em;
    display: flex;
    flex-direction: column;

    &::before {
        --color0: var(--neutral-900);
        --color1: var(--neutral-0);
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        background: linear-gradient(45deg, var(--color0) 0%, var(--color1) 45%, var(--color1) 55%, var(--color0) 100%);
        z-index: 1;
        mix-blend-mode: soft-light;
        transition: .2s ease-in-out;
        background-repeat: no-repeat;
        pointer-events: none;
        opacity: 0.5;
    }

    &:hover::before {
        opacity: 0.9;
    }

    & img {
        width: 30px;
        filter: invert(1);
        margin-bottom: 1em;
        color: var(--neutral-0);
    }

    & h3 {
        color: var(--neutral-0);
    }

    & p {
        color: var(--neutral-400);
        margin: 0;
        flex: 1;
    }

    & span {
        color: var(--neutral-0);
    }
}

/* ========================================================================== */
/* PROTOTYPE PHONE SIMULATOR
/* ========================================================================== */
.phone-case {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.phone-case-svg {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.phone-case-background {
    position: absolute;
    background-color: var(--neutral-900);
    width: 100%;
    height: 100%;
    border-radius: 7rem;
    z-index: 0;
}

.prototype-mask {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.prototype-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 16px;
    box-sizing: border-box;

    & iframe {
        width: 100%;
        height: 100%;
        border: none;
    }
}

/* ========================================================================== */
/* MUSIC SECTIONS
/* ========================================================================== */
.music-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    margin-top: 2em;

    & i {
        color: var(--primary-500);
        padding-right: 0.5em;
        font-size: 1.3em;
        vertical-align: middle;
    }

    .project-iframe-wrapper {
        display: flex; 
        height: 100%;
        width: 100%;
        margin-top: 2em;

        & iframe {
            display: flex;
            justify-content: center;
            height: 100%;
            width: 100%;
            z-index: 1000;
        }
    }
}

.music-section {
    background-color: #f50;
    color: var(--neutral-0);
    display: flex;
    flex-direction: column;

    & h3 {
        color: var(--neutral-0);
    }

    & img {
        filter: brightness(0) invert(1);
        width: 300px;
    }
}

/* ========================================================================== */
/* CAROUSEL & SLIDESHOW
/* ========================================================================== */
.slideshow-container {
    width: 100%;
    max-width: 1000px;
    position: relative;
    border-radius: var(--image-radius);
    box-shadow: 2px 5px 50px rgba(0, 0, 0, 0.15);
    margin: auto;
	padding: 0;

    & .mySlides {
        position: relative;
        display: none;
        min-height: 400px;
    }

    & .prev, & .next {
        cursor: pointer;
        position: absolute;
        top: 50%;
        width: auto;
        padding: 14px;
        color: var(--neutral-900);
        font-weight: bold;
        font-size: 26px;
        transition: 0.6s ease;
        border-radius: 0 3px 3px 0;
        user-select: none;
        transform: translateY(-50%);
        background-color: var(--primary-50);
        display: flex;

        &:hover {
            background-color: var(--primary-500);
            color: var(--neutral-0);

            & .slide-cross-left { fill: var(--neutral-0); }
            & .slide-cross-right { fill: var(--neutral-0); }
        }
    }

    & .next {
        right: 0;
        border-radius: 3px 0 0 3px;
    }

    & .text {
        color: var(--primary-500);
        font-size: 15px;
        padding: 8px 12px;
        position: absolute;
        bottom: 8px;
        width: 100%;
        text-align: center;
    }

    & .numbertext {
        color: var(--neutral-0);
        background-color: var(--primary-500);
        border-radius: 4px 0 4px 0;
        font-size: 12px;
        padding: 8px 12px;
        position: absolute;
        top: 0;
    }

    & .dot {
        cursor: pointer;
        height: 15px;
        width: 15px;
        margin: 0 2px;
        background-color: #bbb;
        border-radius: 50%;
        display: inline-block;
        transition: background-color 0.6s ease;
    }

    & .active, & .dot:hover {
        background-color: #717171;
    }

    & .fade {
        animation-name: fade;
        animation-duration: 1.5s;
    }
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-cross-left {
    fill: var(--primary-500);
    width: 30px;
    transform: rotate(90deg);
}

.slide-cross-right {
    fill: var(--primary-500);
    width: 30px;
    transform: rotate(270deg);
}

@keyframes fade {
    from { opacity: .4; }
    to { opacity: 1; }
}

/* ========================================================================== */
/* STATS
/* ========================================================================== */
#stats {
    background: #990047;
    padding-top: 7.2rem;
    padding-bottom: 6rem;
    text-align: center;

    & .container {
        max-width: 1440px;
    }

    & .stat {
        border-left: 1px solid rgba(255, 255, 255, 0.12);
        min-height: 17.4rem;

        &:first-child {
            border: none;
        }
    }

    & .icon-part i {
        font-size: 4.8rem;
        color: var(--neutral-900);
    }

    & .stat-count {
        color: var(--neutral-0);
        font-size: 3.6rem;
        margin-top: 1.2rem;
        margin-bottom: 0;
        font-family: "poppins-medium", sans-serif;
    }

    & .stat-title {
        color: rgba(255, 255, 255, 0.5);
    }
}

/* ========================================================================== */
/* CONTACT
/* ========================================================================== */
#contact {
    background: var(--neutral-800);
    padding: var(--padding-landing);

    & a {
        color: var(--neutral-400);

        &:hover {
            color: var(--neutral-0);
        }
    }

    & .contact-info {
		justify-content: center;

        p {
            margin: 1rem 0;
        }
    }

    & p {
        color: var(--neutral-400);
    }

    & .section-intro {
        & h1 { color: var(--neutral-0); }
        & h5 { color: var(--primary-500); }
        & p { color: rgba(255, 255, 255, 0.7); }
    }

    & form {
        margin-top: 0;
        margin-bottom: 3rem;
    }

    & input[type="text"],
    & input[type="password"],
    & input[type="email"],
    & textarea {
        width: 100%;
        color: rgba(255, 255, 255, 0.7);
        margin-bottom: 0;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);

        &:focus {
            border-color: var(--primary-500);
            color: var(--neutral-0);
        }
    }
}

#form-contact_form {
    & label {
        display: none;
    }

    & button {
        font-size: var(--font-size-base);
        display: block;
        letter-spacing: .2rem;
        padding: 1.3rem;
        width: 100%;
        background: var(--primary-500);
        color: var(--neutral-0);

        &:hover, &:focus {
            background: var(--primary-400);
        }
    }
}

.contact-form {
    max-width: 740px;
    margin-top: 4em;
    display: flex;
    place-self: center;
    width: 100%;

    & form {
        flex: 1;
    }

    & ::-webkit-input-placeholder { color: rgba(255, 255, 255, 0.3); }
    & :-moz-placeholder { color: rgba(255, 255, 255, 0.3); }
    & ::-moz-placeholder { color: rgba(255, 255, 255, 0.3); }
    & :-ms-input-placeholder { color: rgba(255, 255, 255, 0.3); }
    & .placeholder { color: rgba(255, 255, 255, 0.3) !important; }
}

#message-warning, #message-success {
    display: none;
    background: #0d0d0d;
    border-radius: 3px;
    padding: 3rem;
    margin-bottom: 3.6rem;
    width: 100%;

    & i {
        margin-right: 10px;
    }
}

#message-warning { color: #fa0003; }
#message-success { color: var(--primary-500); }

#submit-loader {
    display: none;
    position: relative;
    left: 0;
    top: 1.8rem;
    width: 100%;
    text-align: center;

    & .text-loader {
        display: none;
        font-family: var(--font-link);
        color: var(--neutral-0);
        letter-spacing: .3rem;
        text-transform: uppercase;
    }
}

.contact-info {
    display: flex;
    gap: 12rem;
    margin: 4.8rem auto 0;
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    text-align: center;

    & .collapse {
        padding: 0;
    }

    & .icon {
        margin-bottom: 1.1rem;

        & i {
            font-size: 4.2rem;
            color: var(--neutral-0);
        }
    }

    & h5 {
        color: var(--primary-500);
    }
}

/* ========================================================================== */
/* FOOTER
/* ========================================================================== */
footer {
    background-color: var(--neutral-800);
    padding: 3rem;
    font-size: var(--font-size-base);
    font-family: var(--font-body);
    color: var(--neutral-400);

    & a, & a:visited {
        color: var(--neutral-0);
    }

    & a:hover, & a:focus {
        color: var(--primary-500);
    }

    & .container {
        max-width: 900px;
    }

    & .copyright {
        & span {
            display: inline-block;

            &::after {
                content: "|";
                display: inline-block;
                padding: 0 1rem 0 1.2rem;
                color: rgba(255, 255, 255, 0.1);
            }

            &:last-child::after {
                display: none;
            }
        }
    }
}

.footer-bottom ul {
    list-style: none;
    padding: 0;
}

.linkedin-link {
    display: flex;
    justify-content: center;

    & img {
        filter: invert(1);
    }
}

#go-top {
    padding: 1em;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 600;
    display: none;

    & a {
        text-decoration: none;
        border: 0 none;
        display: block;
        height: 3rem;
        width: 3rem;
        text-align: center;
        background: var(--primary-500);
        color: var(--neutral-0);
        text-transform: uppercase;
        transition: all 0.3s ease-in-out;
        border-radius: 50%;

        & i {
            font-size: 1rem;
            line-height: inherit;
        }

        &:hover {
            background: var(--neutral-900);
        }
    }
}

/* ========================================================================== */
/* RESPONSIVE (Desktop-first approach)
   Styles are defined for large screens first, then overridden for smaller screens
/* ========================================================================== */

/* Wide Desktop */
@media (min-width: 1921px) { 
    #certifications_container {
        width: 60%;
    }

    .company_img {
        width: 60%; 
        height: 100%;
    }
}

/* Desktop */
@media (max-width: 1920px) { 

}

/* Small laptops & Large Tablets */
@media (max-width: 1280px) { 

}

/* Tablets landscape & Small laptops */
@media (max-width: 1024px) { 
    .bgrid {
        padding: 0 18px;
    }

    .intro-content h1 {
        font-size: 7.6rem;
    }

    .intro-social {
        font-size: 3rem;

        & li {
            margin: 0 15px;
        }
    }

    .intro-info {
        margin-right: 0;
        margin-left: 0;
    }

    #resume {
        & .timeline-header {
            padding-right: 50px;

            & h3 {
                font-size: 1.8rem;
            }

            & p {
                font-size: 1.4rem;
            }
        }

        & .timeline-content {
            padding-left: 50px;
        }
    }

    #projects {
        & .folio-title {
            font-size: 3.1rem;
        }
    }

    #stats {
        & .stat:nth-child(n) {
            border-left: 1px solid rgba(255, 255, 255, 0.12);
            padding-bottom: 1.5rem;
        }

        & .stat:nth-child(3n+1) {
            border: none;
        }
    }
}

/* Tablets portrait & Large Smartphones */
@media (max-width: 768px) { 
    .bgrid {
        padding: 0 15px;
    }

    .section-intro {
        max-width: 650px;

        & h1 {
            font-size: 3rem;
        }
    }

    #intro {
        min-height: 660px;
    }

    .intro-content {
        & h1 { font-size: 5.2rem; }
        & h5 { font-size: 1.8rem; }
        & .intro-position { font-size: 1.3rem; }
    }

    .intro-social {
        font-size: 2.5rem;

        & li { margin: 0 10px; }
    }

    .intro-info {
        & img {
            height: 7.8rem;
            width: 7.8rem;
        }

        & .lead {
            padding-left: 11rem;
        }
    }

    .about-content {
        & h3 { text-align: center; }
        & .info-list, & .skill-bars { margin-bottom: 4.2rem; }
    }

    .button-section {
        & .button {
            width: 100%;
            margin-bottom: 3rem;
        }

        & [class*="col-"] .button:first-child {
            margin-right: 0;
        }
    }

    #resume {
        & .timeline-wrap::before { left: 2.4rem; }
        & .timeline-ico { left: 2.4rem; }
        & .timeline-header {
            float: none;
            width: auto;
            padding-right: 15px;
            text-align: left;

            & h3 { font-size: 2rem; }
            & p {
                font-size: var(--font-size-base);
                margin-bottom: 1.5rem;
            }
        }

        & .timeline-content {
            margin: 0;

            & h4 {
                padding-bottom: 0;
                padding-top: 2.1rem;
                margin-bottom: .6rem;
                font-size: 1.7rem;

                &::after { bottom: auto; top: 0; }
            }
        }

        & .timeline-header, & .timeline-content {
            padding-left: 7rem;
        }
    }

    #projects {
        & .folio-title { font-size: 1.5rem; }
        & .folio-type { font-size: 1rem; }
    }

    #stats {
        & .stat:nth-child(n) { border-left: 1px solid rgba(255, 255, 255, 0.12); }
        & .stat:nth-child(2n+1) { border: none; }
    }

    footer {
        text-align: center;

        & .social {
            display: block;
            width: 100%;
            text-align: center;
            margin-bottom: 1.5rem;
        }

        & .copyright span {
            display: block;

            &::after { display: none; }
        }
    }
}

/* Small Smartphones */
@media (max-width: 500px) { 
    .skill-bars li strong {
        font-size: 0.8rem;
    }

    .skills {
        width: 90%;
    }

    h1 { font-size: 42px; }
    h2 { font-size: 32px; }
    h3 { font-size: 22px; }
    h4 { font-size: 20px; }
    h5 { font-size: 18px; }
    p { font-size: 14px; }
    span { font-size: 14px; }
    ul li { font-size: 14px; }

    #intro {
        background-position: 68%;
    }

    .card-grid {
        grid-template-rows: 1fr;
        grid-template-columns: 1fr;
    }

    #digital-certifications {
        & .list-container {
            font-size: 14px;
            grid-template-columns: 1fr;
        }

        & ul {
            grid-template-columns: 1fr;
            grid-gap: 0;
        }

        & li {
            font-size: var(--font-size-base);
        }
    }

    .mosaic {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-grid {
        grid-template-columns: 1fr;

        & img:first-child {
            grid-row: auto;
            height: 100%;
            width: 100%;
        }
    }

    .folio-wrapper {
        grid-template-columns: 1fr;
    }

    .music-section img {
        width: 200px;
    }

    .flex-container {
        flex-wrap: wrap;
    }

    #certifications_container {
        width: 90%;
    }

    #resume {
        padding: var(--padding-landing-mobile);
    }

    #case-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .case-item {
        width: 300px;
    }

    .genialy {
        width: 100%;
    }

    .hero {
        height: 30vh;
    }

    .projet-part {
        grid-template-columns: 1fr;
        gap: 1.5em;

        & img, & .slideshow-container {
            order: 2;
        }
    }

    .primary-button img {
        order: 0;
    }

    .realisations-banner {
        padding: 2em 2em 0em 2em;
    }

    #contact {
        padding: var(--padding-landing-mobile);

        & .contact-info {
            flex-direction: column;
            gap: 2rem;
        }
    }

    .contact-form {
        margin-top: 3em;
    }

    .col-four.tab-full {
        padding-bottom: 1.2em;

        & p {
            margin: 0.8rem 0;
        }
    }
}