@import url('https://fonts.googleapis.com/css2?family=Mochiy+Pop+One&family=Montserrat&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Montserrat', sans-serif;
}

:root {
    --bg-color: #361500;
    --second-bg-color: #1C0A00;
    --third-bg-color: #040303;
    --text-color: #E5BA73;
    --second-text-color: #AD7948;
    --hover-color: #FC8621;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);

}

section {
    padding: 10rem 9% 7rem;
}

h2 {
    font-weight: 800;
    font-size: 3.6rem;
    line-height: 2.54rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

.container {
    max-width: 1200px;
    padding-left: 20px;
    padding-right: 20px;
    margin: auto;
}

.btn {
    background: var(--hover-color);
    color: var(--third-bg-color);
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 1.6rem;
    font-weight: 500;
    transition: .3s;
    cursor: pointer;
}

.btn:hover {
    background: var(--third-bg-color);
    color: var(--text-color);
}

/*----- HEADER -----*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--second-bg-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.logo img {
    width: 100px;
}

.menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.menu a {
    font-family: 'Mochiy Pop One', sans-serif;
    color: var(--second-text-color);
    font-size: 1.7rem;
    margin-left: 4rem;
    transition: .3s;
}

.menu a:hover,
.menu a.active {
    color: var(--hover-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--second-text-color);
    display: none;
}

/*----- ABOUT -----*/
.home {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-intro {
    width: 50%;
}

.home-intro h5 {
    font-size: 2rem;
    font-weight: 400;
    line-height: 3;
}

.home-intro h1 {
    font-size: 4.2rem;
    font-weight: 600;
}

.home-intro h3 {
    font-size: 3.2rem;
    font-weight: 500;
    line-height: 2;
    margin-bottom: 2rem;
}

.home-intro h3 span {
    color: var(--hover-color);
}

.home-intro p {
    margin-top: 2rem;
    padding: 0 2rem;
    font-size: 1.6rem;
    line-height: 3rem;
    color: var(--second-text-color);
}

.home-link {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    margin-top: 2rem;
}

.home-link .link-p {
    font-weight: 600;
    font-size: 1.6rem;
    border-bottom: #E5BA73 1px solid;
    color: var(--text-color);
    transition: .3s;
}

.home-link .link-p:hover {
    color: var(--hover-color);
    border-bottom: #FC8621 1px solid;
}

.home-social {
    display: flex;
    align-items: center;
    gap: 2.2em;
    margin-top: 2rem;
    line-height: 2rem;
}

.home-social span:nth-child(1) {
    font-size: 1.6rem;
    font-weight: 600;
}

.home-social i {
    font-size: 3rem;
    color: var(--text-color);
}


.home-img img {
    width: 25vw;
}

/*----- EXPERIENCES -----*/
.exp {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: auto;
    padding-bottom: 5rem;
}

.exp-title {
    margin-bottom: 5rem;
}

.exp-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15rem;
}

.exp-col {
    flex: 1 1 40rem;
}

.exp-col .title {
    font-size: 2.5rem;
    margin: 0 0 1.5rem 2rem;
}

.exp-box {
    border-left: .2rem solid #E5BA73;
}

.exp-container {
    position: relative;
    padding-left: 2rem;
}

.exp-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1.1rem;
    width: 2rem;
    height: 2rem;
    background: var(--text-color);
    border-radius: 50%;
}

.exp-content {
    position: relative;
    padding: 1.5rem;
    border: .2rem solid var(--text-color);
    border-radius: .6rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.exp-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: .5s;
}

.exp-content:hover::before {
    width: 100%;
}

.exp-year {
    font-size: 1.6rem;
    color: var(--hover-color);
    padding-bottom: .5rem;
}

.exp-year i {
    padding-right: .5rem;
}

.exp-content h3 {
    font-size: 2rem;
}

.exp-content h4 {
    font-size: 1.4rem;
    padding-top: .5rem;
}

.exp-content span {
    color: var(--hover-color);
}

.exp-content ul {
    font-size: 1.6rem;
    padding-top: 1rem;
    padding-left: .5rem;
}

.exp-content p {
    font-size: 1.6rem;
    padding-top: .5rem;
}

/*----- SKILLS -----*/
.skill h2 {
    text-align: center;
}

.skill-container {
    margin: 50px 0;
}

.skill-content {
    margin-bottom: 50px;
}

.skill-content h4 {
    font-size: 2.8rem;

}

.skill-techno {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    padding: 30px 0;
    gap: 2rem;
    text-align: center;
}

.skill-img {
    box-shadow: 0 4px 6px -1px #FC8621;
    padding: 16px 50px;
    border-radius: 8px;
    transition: .3s;
}

.skill-img:hover {
    transform: scale(1.1);
}

.skill-img img {
    width: 100px;
    margin: 0 auto;
}

.skill-img p {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 800;
}

/*----- SITES -----*/
.site {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 30px 0;
}

.gal-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.gal-menu {
    width: 60%;
    margin: 40px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.item-link {
    border: 2px solid #E5BA73;
    padding: 1rem 1.8rem;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: .3s;
}

.item-link:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.menu-active {
    background: var(--text-color);
    color: var(--bg-color);
}

.gallery {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    gap: 2rem;

}

.gal-img {
    width: 30%;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    animation: imgAnimation .4s ease;
    position: relative;
}

@keyframes imgAnimation {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

.gal-img:hover .gal-overlay {
    top: 0;
}

.gal-overlay {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(transparent, #1C0A00, #040303);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 5px;
    transition: .3s;
}

.gal-overlay h4 {
    font-size: 2.4rem;
    color: var(--third-bg-color);
    font-weight: 700;
    margin-top: 5px;
}

.gal-overlay p {
    font-size: 1.6rem;
    margin: 5px 0;
    width: 90%;
    color: var(--text-color);
}


.gal-overlay span {
    color: #FC8621;
    margin: 0 10px 0 0;
    padding: 5px;
    border-radius: 10px;
    border: 1px solid #FC8621;
}

.gal-img:hover img {
    transform: scale(1.1);
}

.link {
    margin-top: 20px;
}

.gal-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: .3s;
}

/*----- SWIPER -----*/
.swiper {
    width: 90%;
    margin-top: 50px;
}

.swiper-slide img {
    width: 80%;
    border-radius: 12px;
}

.swiper-button-prev,
.swiper-button-next {
    color: #fff;
    transition: .3s linear;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    transform: scale(1.1);
}

/*----- FOOTER -----*/
footer {
    background: var(--second-bg-color);
}

.foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 2.5rem;
}

.foot-container {
    width: 50%;
}

.foot-container img {
    width: 75%;
    margin: auto;
}

.foot-container p {
    color: var(--text-color);
    font-size: 1.8rem;
}

.foot-media {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2.5rem;
}

.foot-media span {
    font-size: 1.6rem;
}

.foot-media .icon {
    background: var(--bg-color);
    height: 35px;
    width: 35px;
    padding: 8px;
    border-radius: 100%;
    cursor: pointer;
    text-align: center;
    transition: .3s;
}

.foot-media .icon,
a {
    color: var(--text-color);
}

.foot-media .icon:hover {
    transform: scale(1.1);
    background: var(--third-bg-color);
}

.foot-nav {
    display: block;
}

.foot-nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    list-style: none;
    margin-top: 2.5rem;
}

.foot-nav a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.6rem;
}

.foot-leg {
    background: var(--third-bg-color);
    padding: 1.5rem 0;
    margin-top: 3.5rem;

}

.foot-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.foot-contImg {
    display: block;
}

.foot-image {
    gap: 10px;
}

.foot-image img {
    width: 100px;
}

.foot-content a,
p {
    color: var(--second-text-color);
    font-size: 14px;
}

/*---------- Mentions Légales ----------*/
.legale {
    margin: 30px 0;
}

.legale h2 {
    margin: 20px 0;
}

.legale h3 {
    margin: 10px 0;
    font-size: 2rem;
}

.legale p,
li {
    font-size: 1.6rem;
    line-height: 2rem;
}

/*---------- Media Query ----------*/
@media (max-width:1600px) {
    .gal-img {
        width: 45%;
    }

    .gal-overlay h4 {
        color: var(--hover-color);
    }
}

@media (max-width:1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width:1024px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .menu a {
        font-size: 1.6rem;
        margin-left: 3rem;
    }

    .gal-container {
        width: 95%;
    }

    .gal-img {
        width: 80%;
    }

    .link {
        width: 90%;
    }

    .swiper {
        width: 98%;
    }
}

@media (max-width: 800px) {
    .home {
        flex-direction: column;
    }

    .home-intro {
        width: 90%;
    }

    .home-intro h1 {
        font-size: 3.6rem;
    }

    .home-img img {
        width: 50vw;
    }

}

@media (max-width:768px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--second-bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .menu {
        flex-direction: column;
        margin: 3rem 0;
    }

    .menu a {
        font-size: 2rem;
    }

    .foot {
        flex-direction: column;
    }

    .foot-container {
        margin: 0 auto;
        width: 60%;
        text-align: center;
    }

    .foot-nav {
        display: none;
    }

}

@media (max-width:650px) {

    .foot-content div {
        width: 90%;
        margin: 5px 0;
    }

    .foot-content {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }

}


@media (max-width:500px) {

    .home-intro {
        width: 98%;
    }

    .home h1 {
        font-size: 2rem;
    }

    .home h3 {
        font-size: 1.7rem;
    }

    .gal-menu {
        gap: 10px;
    }

    .gal-img {
        width: 98%;
    }

}