/* --- Reset --- */

@font-face {
    font-family: 'TheFont';

    /* Variable fonts like the one linked below allow for fine-tuned control over various font properties dynamically via CSS, such as weight ('wght'), width ('wdth'), etc. This link is where your web browser will download the font from. */
    /* Insert the link to your custom variable font */
    src: url("https://garet.typeforward.com/assets/fonts/shared/TFMixVF.woff2") format('woff2');
}

nav.breathe-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Change the Background color of the entire screen */
    background-color: black;
    /* 'vw' is a viewport-width unit, 'vh' is a viewport-height unit. 1vw equals 1% of the width of the viewport, and 1vh equals 1% of the height of the viewport. This allows the font size to scale dynamically with the window size. */
    height: 100vh;
}

.breathe-animation span {
    font-family: 'TheFont';

    /* The 'clamp()' function sets a flexible font size that will never go below a minimum value and never above a maximum value. The middle value is preferred, but it will shrink or grow based on the viewport dimensions. */
    /* Adjusts font size based on content width and viewport height */
    font-size: clamp(10vw, 20vw, 50vh);

    /* Change this to set the text color */
    color: white;

    /* Center text horizontally */
    text-align: center;

    /* The 'animation' property applies the 'letter-breathe' keyframes to the element, making it animate over 3 seconds.'ease-in-out' makes the movement start and end slowly, and 'infinite' makes it repeat forever. */
    /* Controls the animation (3s is the duration) */
    animation: letter-breathe 3s ease-in-out infinite;
}

/* Keyframes define the sequence of styles that an element will go through during an animation. */
@keyframes letter-breathe {

    /* The 'from' and 'to' keyframes establish the initial and final states of the animation, respectively, using 'font-variation-settings'. This CSS property is used with variable fonts to adjust their weight ('wght'), width ('wdth'), etc., during the animation. */
    from,
    to {
        /* Starting weight; adjust the numbers according to your specific font */
        font-variation-settings: 'wght' 100;
    }

    /* At the midpoint (50%) of the animation, the font weight changes to 900. */
    50% {
        /* Ending weight; adjust the numbers according to your specific font */
        font-variation-settings: 'wght' 900;
    }
}

.experience h5 {

    font-family: 'TheFont';
}

body {

    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;


    /* Supprimer la marge par défaut du body */

    /* Utiliser Flexbox pour la mise en page principale */
    min-height: 100vh;


    /* Assurer que le body prend au moins toute la hauteur de la fenêtre */
}

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

body {
    overflow-x: hidden;
    overflow-y: scroll;
}

/* --- Couleurs --- */
:root {
    --header-bg: #07b12f;
    --nav-bg: #1cbeda;
    --pink: #4c6faf;
    --aqua: #093d86;
    --accent: #132c5e;
}

/* --- Header --- */
header {
    width: 100vw;
    height: 100vh;
    background: var(--header-bg);
    display: flex;
    padding: auto;
}

/* --- Navigation --- */
nav {
    width: 100vw;
    height: 200px;
    background: var(--nav-bg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    z-index: 10;
    transition: all 0.3s;
    padding: 10px 0;
    transition: height 0.3s ease, box-shadow 0.3s ease;

}

nav.navShadow {
    box-shadow: 0 4px 30px -5px rgba(0, 0, 0, 0.2);
    height: 100px;
}

nav.navShadow #word-mark {
    opacity: 0;
}

nav ul {
    display: inline-block;
    width: 100vw;
    max-height: 0;
    background: #282929;
    /* ton $aqua */
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 5px 30px -4px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    list-style: none;
}

nav ul li {
    width: 50%;
    height: 0;
    opacity: 0;
    visibility: hidden;
    float: left;
    padding-left: 40px;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;

}

nav ul.showMenu {
    padding: 20px 0;
    max-height: 300px;
    /* c'est ça qui "déroule" le menu */
}

nav ul.showMenu li {
    height: 70px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);

}



nav ul.showMenu li a {
    display: flex;
    /* Flex pour aligner icône + texte */
    align-items: center;
    /* centre verticalement */
    gap: 8px;
    /* espace entre icône et texte */
    font-size: 14px;

    padding: 8px 12px;
    height: auto;
    /* laisse le contenu définir la hauteur */
    text-decoration: none;
    color: white;
    border: 1px solid transparent;
    border-radius: 15px;
    background-color: transparent;
    transition: all 0.3s ease;
}

/* Icones Font Awesome */
nav ul.showMenu li a .fa {
    display: inline-block;
    width: 18px;
    /* largeur uniforme pour toutes */
    text-align: center;
    /* centre l'icône */
}

/* Hover */


/* Li avant l'animation */
nav ul li {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Li quand le menu est ouvert */
nav ul.showMenu li {
    opacity: 1;
    transform: translateY(0);
}



#brand,
#menu,
ul {
    display: flex;
    align-items: center;
}

#brand {
    padding-left: 40px;
}

#logo {
    width: 55px;
    height: 55px;

    border-radius: 50%;
    cursor: pointer;
}




@media screen and (max-width: 766px) {
    .profile-stats {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 5px;
    }

    .profile-stats div {
        color: white;
        font-size: 8px;
    }

    .profile-stats strong {
        font-weight: bold;
    }


}

#word-mark {
    width: auto;

    background: var(--accent);
    border-radius: 90px;
    margin-left: 20px;
    opacity: 1;
    transition: all 0.3s;
}

body.dark-mode #word-mark {
    background: #0c6b5b;
}

/* --- Menu --- */
#menu {
    justify-content: flex-end;
    padding-right: 40px;
}

li a {
    display: flex;
    /* active Flexbox sur le lien */
    align-items: center;
    /* centre verticalement icône + texte */
    gap: 8px;
    /* espace entre icône et texte */
    text-decoration: none;
    color: var(--accent);
    font-size: 18px;
    font-weight: lighter;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;

    border: 1px solid transparent;
    /* empêche le "saut" */
    border-radius: 15px;
    padding: 5px 10px;
    background-color: transparent;
}

li button {
    display: flex;
    /* active Flexbox sur le lien */
    align-items: center;
    /* centre verticalement icône + texte */
    gap: 8px;
    /* espace entre icône et texte */
    text-decoration: none;
    color: var(--accent);
    font-size: 18px;
    font-weight: lighter;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;

    border: 1px solid transparent;
    /* empêche le "saut" */
    border-radius: 15px;
    padding: 5px 10px;
    background-color: transparent;
}







#menu-toggle {
    width: 55px;
    height: 55px;
    background: rgb(159, 229, 229);
    border: none;
    /* darken de nav-bg */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    position: fixed;
}

#menu-toggle:hover .bar {
    width: 25px;
}

#menu-toggle.closeMenu .bar {
    width: 25px;
}

#menu-toggle.closeMenu .bar:first-child {
    transform: translateY(7px) rotate(45deg);
}

#menu-toggle.closeMenu .bar:nth-child(2) {
    transform: scale(0);
}

#menu-toggle.closeMenu .bar:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

.bar {
    width: 25px;
    height: 2px;
    background: var(--accent);
    transition: 0.3s ease-in-out;
}

.bar:nth-child(2) {
    width: 20px;
    margin: 5px 0;
}

.bar:last-child {
    width: 15px;
}

/* --- Hero Section --- */
#hero-section {
    width: 100vw;
    height: calc(100vh - 160px);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 160px;
}

#head-line {
    width: 520px;
    height: 30px;
    background: var(--accent);
    border-radius: 90px;
    position: relative;
}

#head-line::before,
#head-line::after {
    content: "";
    height: 30px;
    border-radius: 90px;
    background: var(--accent);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

#head-line::before {
    width: 360px;
    top: -60px;
}

#head-line::after {
    width: 200px;
    bottom: -60px;
}

/* --- Sections --- */
section {
    width: 100vw;
    height: calc(100vh - 100px);
    display: flex;
    justify-content: center;
}

section:nth-child(odd) {
    background: var(--pink);
}

section:nth-child(even) {
    background: var(--aqua);
}

#heading {
    width: 120px;
    height: 20px;
    background: var(--accent);
    border-radius: 90px;
    margin-top: 40px;
}

/* --- Responsive --- */
@media screen and (max-width: 767px) {
    #menu-toggle {
        display: flex;
    }

    .logo {
        display: flex !important;
        /* forcer l'affichage */
        justify-content: center;
        align-items: center;
    }

    .logo img {
        height: 50px;
        /* ajuste si besoin */
        opacity: 0;
        visibility: hidden;
    }

    .logo img.active {
        opacity: 1;
        visibility: visible;
    }

    /* Styles des liens */
    li a {
        font-size: 14px;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        /* on centre l'icône dans le bouton */
        border: 1px solid transparent;
        border-radius: 12px;
        background-color: transparent;
        transition: all 0.3s ease;
    }

    /* Masquer le texte et garder l'icône */
    li a span,
    li span {
        display: block;
        font-size: small;
        /* masque tout texte éventuel */
    }

    /* Icône centrée et un peu plus grande */
    li a .fa {
        font-size: 20px;
        width: 20px;
        text-align: center;
    }

    /* Menu déroulant version mobile */
    nav ul {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.5s ease, opacity 0.5s ease;
        padding: 0 10px;
    }

    nav ul.showMenu {
        max-height: 600px;
        opacity: 1;
    }

    /* Animation d'apparition */
    nav ul li {
        opacity: 0;
        transform: translateY(-5px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        padding: 5px 0;
    }

    nav ul.showMenu li {
        opacity: 1;
        transform: translateY(0);
    }
}




#head-line {
    transform: scale(0.8);
}