/*******************************************************/
/*                      GENERAL                        */
/*******************************************************/

html {
    scroll-behavior: smooth;
}

body {
    background-color: #2E2C2C;
    color:#c9c1b9;
    font-family: 'Funnel Display', sans-serif;
    font-size: 10px;
    margin: 0;
}

h1, h2, h3 {
    margin-left: 0.5rem;
    font-family: 'Russo One', sans-serif;
    font-weight: 400;
}

h1 {
    color: #cec0b3;
    font-size: 1.5rem;
    font-weight: 500;
}

h2 { 
    color: #D48647;
}

/*******************************************************/
/*                      HEADER                         */
/*******************************************************/

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    position: sticky;
    z-index: 1000;
    top: 0;
    background-color: (0.0.0,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); 
}

.nav-bar {
    display: flex;
    list-style: none;
    gap: 2rem;
    font-size: 1rem;
    padding-top: 1rem
}

.nav-bar a {
    color: unset;
    text-decoration: none;
    transition: 500ms;
}

.nav-bar a:hover {
    color: #D48647;
    text-decoration: underline;
    text-underline-offset: 5px;
}

/*******************************************************/
/*                       MAIN                          */
/*******************************************************/

main {
    margin: 0 auto;
    max-width: 1200px;
    text-align: center;
    padding-top: 14rem;
    scroll-margin-top: 75px;
}

/*********************  ACCUEIL ************************/

.title-accueil {
    font-size: 1rem;
    color: #9d9185
}

.accueil-name {
    font-size: 2.8rem;
    font-weight: 600;
    color: #ffffff;
}

.accueil-p {
    font-size: 2.7rem;
    font-weight: 500;
    color: #ffffff;
    padding: 1rem;
}

.accueil-p2 {
    font-size: 1rem;
    font-weight: 500;
}

main .accueil p {
    margin: 0.2rem auto;
}

main .accueil h2 {
    font-family: 'Funnel Display', sans-serif;
    margin: 0.2rem auto;
}

.liens-main {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    list-style: none;
    padding: 0;
    font-size: 2rem;
}

.liens-main li {
    transition: 150ms;
}

.liens-main li:hover {
    transform: scale(1.3);
}

.button-cv {
    display: inline-block;
    border: 2px solid #D48647;
    font-size: 1.5rem;
    padding: 0.5rem 1.5rem;
    border-radius: 10px;
    transition: 200ms;
}

.button-cv:hover {
    background-color: #ffffff;
    color: #D48647;
}

.button-cv a {
    text-decoration: none;
    color: unset;
}

/*******************  EXPERIENCES **********************/

.expe {
    margin-top: 20rem;
    border-top: 1px solid #D48647;
    scroll-margin-top: 200px;
}

.expe-container {
    display: flex;
    justify-content: flex-start;
}

.expe a {
    text-decoration: none;
    color: unset;
}

.expe h2 {
    text-align: left;
    font-size: 2.2rem;
    margin-bottom: 5rem;
}

.forma-dev {
    background-color: #191818;
    max-width: 650px;
    border-radius: 20px;
    border: 2px solid #D48647;
    margin-left: 5rem;
    text-align: left;
    padding-left: 3rem;
    transition: 0.3s ease;
    padding-right: 4rem;
}

.forma-dev:hover {
    transform: scale(1.1);
}

.forma-icons {
    display: flex;
    list-style: none;
    font-size: 2rem;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.expe h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.expe-ecole {
    display: flex;
    align-items: center;
    padding-top: 0.5rem;
    gap:0.5rem;
}

.expe p {
    font-size: 1.2rem;
    margin: 0;
    margin-left: 2rem;
}

.expe img {
    width: 50px;
    align-items: center;
}

.date {  
    padding-left: 3rem; 
}

/*********************  PROJETS ************************/

.projets {
    margin-top: 10rem;
    border-top: 1px solid #D48647;
    scroll-margin-top: 150px;
}

.projets h2 {
    text-align: left;
    font-size: 2.2rem; 
    margin-bottom: 5rem;
}


.toudou-container {
    display: flex;
    justify-content: flex-end;
}

.toudou {
    background-color: #191818;
    max-width: 650px;
    width: 100%;
    border-radius: 20px;
    border: 2px solid #D48647;
    margin-right: 5rem;
    text-align: left;
    padding: 1.75rem 2rem;
    box-sizing: border-box;
    overflow: hidden;
    transition: transform 0.28s cubic-bezier(.2,.8,.2,1), box-shadow 0.28s ease;
    will-change: transform;
    transform-origin: center;
}

.toudou:hover,
.toudou:focus-within {
    transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
    .toudou {
        transition: none;
        transform: none;
        will-change: auto;
    }
}

.toudou img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}

.toudou--fixed-img-height img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.toudou:focus-within {
    outline: 3px solid rgba(212,134,71,0.18);
    outline-offset: 6px;
}
/*********************  CONTACT ************************/

.contact {
    margin-top: 10rem;
    border-top: 1px solid #D48647;
    scroll-margin-top: 150px;
    margin-bottom: 10rem;
    padding-top: 10rem;
    padding-bottom: 10rem;
}


.contact h2 {
    text-align: center;
    font-size: 2.2rem; 
    color: #FFFFFF
}

.contact-p {
    font-size: 1.1rem;
}

.button-contact {
    font-size: 1.5rem;
    border: 2px solid #D48647;
    border-radius: 10px;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    transition: 200ms;
}

.button-contact:hover {
    background-color: #ffffff;
    color: #D48647;
}

.button-contact a {
    text-decoration: none;
    color: unset;
}

/*******************************************************/
/*                      FOOTER                         */
/*******************************************************/

footer {
    text-align: center;
    font-size: 0.8rem;
    line-height: 0.5rem;
}

footer a {
    text-decoration: none;
    color: unset;
    color: #FFFFFF;
}

/*******************************************************/
/*                    ANIMATION BG                     */
/*******************************************************/

.firefly {
      position: absolute;
      width: 6px;
      height: 6px;
      background: radial-gradient(circle, #ffb109 0%, #D48647 30%, transparent 90%);
      border-radius: 50%;
      box-shadow: 0 0 10px #ff9f0f;
      animation: float 10s infinite ease-in-out;
    }

    @keyframes float {
      0% {
        transform: translate(0, 0);
        opacity: 0.2;
      }
      25% {
        transform: translate(100px, -50px);
        opacity: 0.8;
      }
      50% {
        transform: translate(200px, 100px);
        opacity: 0.4;
      }
      75% {
        transform: translate(50px, 200px);
        opacity: 0.7;
      }
      100% {
        transform: translate(0, 0);
        opacity: 0.2;
      }
    }

    .firefly:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
    .firefly:nth-child(2) { top: 30%; left: 70%; animation-delay: 2s; }
    .firefly:nth-child(3) { top: 60%; left: 40%; animation-delay: 4s; }
    .firefly:nth-child(4) { top: 80%; left: 10%; animation-delay: 1s; }
    .firefly:nth-child(5) { top: 50%; left: 85%; animation-delay: 3s; }


/*******************************************************/
/*                     RESPONSIVE                      */
/*******************************************************/

/**********************  MOBILE ************************/

@media (max-width: 430px) {
    .nav-bar {
        flex-direction: column;
        padding-right: 1rem;
        padding-top: 0;
        gap: 0.5rem;
        margin: 0.1rem;
    }
    .forma-icons {
        padding-left: 0rem;
    }
    .forma-dev {
        margin-left: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    main {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
}