@import url('https://fonts.googleapis.com/css2?family=Funnel+Display:wght@300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
:root {
    --main-bg-start: #3F4783;
    --main-bg-end: #353B60;
    --primary-block-bg: #515ABA;
    --secondary-block-bg: #606ACC;
    --title-bg: #6B77DB;
    --text-accent: #A7B6FF;
    --text-light: #DFE5FD;
    --shadow-color: rgba(0, 0, 0, 0.25);
    --funnel-font: 'Funnel Display', sans-serif;
    --montserrat-font: 'Montserrat', sans-serif;
    --rad5: 5px;
    --rad8: 8px;
    --rad11: 11px;
    --rad24: 24px;
}

/* ------------------------------ */
/* ------------------------------ */
/* ------------ Base ------------ */
/* ------------------------------ */
/* ------------------------------ */

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--main-bg-start), var(--main-bg-end));
    line-height: 1.4;
    scroll-behavior: smooth;
}
h1, h2, h3 {
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
}
a {
    text-decoration: none;
    color: var(--text-light);
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.none {
    display: none;
}
.container {
    max-width: 1300px;
    margin: 0 auto;
}
main{
    margin-top: 17vh;
}
.section-title {
    font-family: var(--funnel-font);
    text-shadow: 0 8px 8px var(--shadow-color);
    margin-bottom: 50px;
    font-size: 4em;
    letter-spacing: 1px;
    text-align: center;
}
.desktop{
    display: block;
}
.mobile{
    display: none;
}
.box{
    display: flex;
    flex-direction: column;
    margin-bottom:  6vh;
    background-color: var(--primary-block-bg);
    box-shadow: 0 8px 8px var(--shadow-color);
    text-align: left;
    padding: 22px;
    border-radius: var(--rad24);
    gap: 22px;
    position: relative;
    overflow: hidden;
}
.svg{
    position: absolute;
    width: 100px;
    height: auto;
    z-index: 1;
}

/* -------------------------------- */
/* -------------------------------- */
/* ------------ Header ------------ */
/* -------------------------------- */
/* -------------------------------- */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    background: linear-gradient(to bottom,
        rgba(59, 66, 119, 1) 0%,
        rgba(59, 66, 119, 0) 100%
    );
}
.header-left {
    flex-grow: 1;
    display: flex;
    justify-content: flex-start;
    flex-basis: 0;
}
.header-left .logo {
    height: 47px;
    filter: drop-shadow(0 8px 8px var(--shadow-color));
    border-radius: var(--rad5);
}
.header-btns {
    display: flex;
    gap: 40px;
}
.nav-btn {
    font-family: 'Funnel Display', sans-serif;
    background-color: var(--primary-block-bg);
    padding: 10px 35px;
    border-radius: var(--rad24);
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 8px 8px var(--shadow-color);
    font-weight: 400;
    font-size: 1.1rem;
}
.nav-btn:hover {
    background-color: var(--secondary-block-bg);
    transform: translateY(-2px);
}
.header-right {
    display: flex; 
    gap: 24px;
    flex-grow: 1;
    justify-content: flex-end;
    flex-basis: 0;
}
.social-icon img {
    height: 22px;
    width: 22px;
    background-color: var(--primary-block-bg);
    padding: 12px;
    border-radius: var(--rad5);
    filter: drop-shadow(0 8px 8px var(--shadow-color));
    transition: transform 0.2s ease;    
}
.social-icon img:hover {
    background-color: var(--secondary-block-bg);
    transform: translateY(-2px);
}

/* ------------------------------- */
/* ------------------------------- */
/* ------------ about ------------ */
/* ------------------------------- */
/* ------------------------------- */

.svg-up1{
    transform: translate(-42%, -42%);
}
.svg-down1{
    bottom: -4.5%;
    right: -2%;
    transform: rotate(180deg);
}
.col1{
    display: flex;
    align-items: center;
    gap: 4vw;
}
.col2{
    margin: 0 22px;
}
.pdp{
    position: relative;
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: var(--rad11);
    z-index: 2;
}
#name-title h1{
    font-family: var(--montserrat-font);
    font-size: 6em;
    margin-bottom: 0px;
    font-weight: 900;
    text-shadow: 0 8px 8px var(--shadow-color);
    margin-block-start: 0;
}
.col2 .para{
    margin: 1em 0;
    font-size: 1.15rem;
}
.para{
    font-family: 'Funnel Display', sans-serif;
    position: relative;
    z-index: 10;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-light);
}

/* ------------------------------- */
/* ------------------------------- */
/* ------------- CTA ------------- */
/* ------------------------------- */
/* ------------------------------- */

.arrow{
    text-align: center;
    position: relative;
}
.scroll-down-arrow{
    margin-top: 11px;
    font-size: 4em;
    display: inline-block;
    animation: bounce 2s infinite;
}
.scroll-down-arrow img{
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 8px 8px var(--shadow-color));
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-8px);
    }
}

/* ------------------------------- */
/* ------------------------------- */
/* ----------- Projets ----------- */
/* ------------------------------- */
/* ------------------------------- */

.grid-projects{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(390px, 1fr)); 
    gap: 30px;
    margin: 0 auto;
}
.card-project-grid{
    background-color: var(--primary-block-bg);
    padding: 16px;
    border-radius: var(--rad11);
    box-shadow: 0 8px 8px var(--shadow-color);
    text-align: left;
    transition: transform 0.3s ease;
    min-height: 400px;
}
.card-project-grid:hover{
    transform: translateY(-5px);
    background-color: var(--secondary-block-bg);
}
.image-project-grid{
    width: 100%;
    height: 215px;
    background-color: var(--secondary-block-bg);
    border-radius: var(--rad8);
    margin-bottom: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-style: italic;
    color: var(--text-accent);
    overflow: hidden;
    position: relative;
    z-index: 100;
}
.image-project-grid img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.detail-project-grid{
    padding: 0 11px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 215px - 22px);
}
.title-project-grid{
    font-size: 1.5em;
    color: var(--text-light);
    display: inline-block;
    margin-bottom: 0.2em;
    text-shadow: 0 8px 8px var(--shadow-color);
}
.desc-project-grid{
    color: var(--text-light);
    margin: 0;
    font-size: 1.25rem;
    margin-bottom: 11px;
    font-family: 'Funnel Display', sans-serif;
    font-weight: 300;
    flex-grow: 1;
}
.date-project-grid{
    color: var(--text-accent);
    font-weight: bold;
    font-size: 0.7rem;
    text-align: end;
}

/* ------------------------------- */
/* ------------------------------- */
/* ----------- Contact ----------- */
/* ------------------------------- */
/* ------------------------------- */

.section-contact {
    text-align: center;
    position: relative;
}
.svg-up2{
    transform: translate(-47%, -47%);
}
.svg-down2{
    bottom: -12.5%;
    right: -2%;
    transform: rotate(180deg);
}
.contact {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.cells1{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 11px;
    flex-wrap: wrap;
}
.cell1{
    display: flex;
    align-items: center;
    flex-direction: row;
    color: var(--text-light);
    background-color: var(--title-bg);
    box-shadow: 0 8px 8px var(--shadow-color);
    border-radius: var(--rad24);
    position: relative;
    z-index: 10;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.cell1:hover{
    color: var(--text-accent);
    transform: translateY(-5px);
}
.cell1 a{
    margin: 11px 22px;
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 1rem;
    white-space: nowrap;
}
.cell1:hover a {
    color: var(--text-accent);
}
.cell1 i{
    font-size: 1.25rem;
}
.cell1:hover i {
    color: var(--text-accent);
}
.cell1 br{
    display: none;
}
.fix{
    gap: 0;
}

/* ------------------------------- */
/* ------------------------------- */
/* ---------- Responsiv ---------- */
/* ------------------------------- */
/* ------------------------------- */

@media (max-width: 1430px) {
    .container{
        max-width: 1300px;
    }
}
@media (max-width: 1330px) {
    .container{
        max-width: 1200px;
    }

    .grid-projects{
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}
@media (max-width: 1230px) {
    .container{
        max-width: 1100px;
    }

    .pdp {
        max-width: 300px;
        width: 100%;
        height: auto;
    }
}
@media (max-width: 1130px) {
    .container{
        max-width: 1000px;
    }

    #name-title h1 {
        font-size: 5em;
        margin-bottom: 0;
    }    
}
@media (max-width: 1030px) {
    .container{
        max-width: 800px;
    }

    #name-title h1 {
        font-size: 3em;
        margin-bottom: 0;
    }
    .pdp {
        max-width: 200px;
        width: 100%;
        height: auto;
    }
    .col2 .para{
        font-size: 1.1125rem;
    }

    .section-title{
        font-size: 3rem;
    }

    .cell1 a{
        font-size: 0.9rem;
    }
    .cell1 i {
        font-size: 1rem;
    }
    .mail a{
        font-size: 0.7rem;
    }
}
@media (max-width: 768px) {
    .header {
        gap: 15px;
        padding: 11px 22px;
    }
    .header-btns{
        display: none;
    }

    .container{
        max-width: 500px;
    }

    .pdp {
        max-width: 200px;
        width: 100%;
        height: auto;
    }
    .name-title h1 {
        font-size: 2.5em;
        position: relative;
        z-index: 10;
        margin-bottom: 1;
    }
    .svg{
        position: absolute;
        width: 80px;
        height: auto;
        z-index: 1;
    }
    .svg-up2{
        transform: translate(-55%, -57%);
    }
    .svg-down2{
        bottom: -4%;
        right: -6.8%;
    }
    .col2 .para{
        margin: 0.7em 0;
        font-size: 1rem;
    }
    .desktop{
        display: none;
    }
    .mobile{
        display: block;
    }
    .content{
        gap: 11px;
    }
    .section-title {
        font-size: 2.8em;
        padding: 8px 20px;
    }
    .grid-projects {
        grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
        justify-content: center;
        gap: 20px;
    }
    .image-project-grid{
        height: 190px;
    }
    .desc-project{
        font-size: 1.05rem;
    }
}
@media (max-width: 530px) {
    .container{
        max-width: 300px;
    }

    #name-title h1 {
        font-size: 1.75em;
        margin-bottom: 0;
    }
    .col2 .para{
        font-size: 0.95rem;
    }

    .contact .para{
        font-size: 1rem;
    }
    .cell1 br{
        display: block;
    }
}

/* -------------------------------- */
/* -------------------------------- */
/* -------------------------------- */
/* -------------------------------- */
/* --------- Page  Projet --------- */
/* -------------------------------- */
/* -------------------------------- */
/* -------------------------------- */
/* -------------------------------- */

.svg-up3{
    top: -2%;
    left: -2%;
}
.svg-down3{
    bottom: -2%;
    right: -2%;
    transform: rotate(180deg);
}
.image-project-page{
    position: relative;
    max-width: 750px;
    width: 100%;
    height: auto;
    border-radius: var(--rad11);
    z-index: 2;
    aspect-ratio: 5/3;
    object-fit: cover;
}
.title-project-page{
    font-family: var(--montserrat-font);
    font-size: 4em;
    margin-bottom: 0.2em;
    font-weight: 900;
    text-shadow: 0 8px 8px var(--shadow-color);
    margin-block-start: 0;
}
.cells2{
    display: flex;
    flex-direction: column;;
}
.cell2{
    display: inline-block;
    font-family: var(--montserrat-font);
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-accent);
    background-color: var(--secondary-block-bg);
    box-shadow: 0 8px 8px var(--shadow-color);
    margin-top: 0;
    padding: 5px 15px;
    border-radius: var(--rad24);
    margin-right: 11px;
}
#galerie{
    background-color: var(--primary-block-bg);
    z-index: 100;
}
.galerie-grid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}
.galerie-grid img{
    border-radius: var(--rad8);
    opacity: 0.6;
    box-shadow: 0 8px 8px var(--shadow-color);
    transition: opacity 0.4s ease;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.galerie-grid img:hover{
    opacity: 1;
    cursor: pointer;
}
.preview{
    z-index: 100;    
}

/* --------------------------------- */
/* --------------------------------- */
/* ------------ Overlay ------------ */
/* --------------------------------- */
/* --------------------------------- */

.overlay {
    display: none;
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.overlay.active {
    display: flex;
}
#overlayImage {
    max-width: 90%;
    max-height: 80%;
    display: block;
    margin: 20px auto;
}
.close-btn {
    position: absolute;
    top: 2%;
    right: 2%;
    color: var(--text-light);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-size: 3rem;
}

/* ------------------------------- */
/* ------------------------------- */
/* ---------- Responsiv ---------- */
/* ------------------------------- */
/* ------------------------------- */

@media (max-width: 1430px) {
}
@media (max-width: 1330px) {
}
@media (max-width: 1230px) {
}
@media (max-width: 1130px) {
    .title-project-page{
        font-size: 3em;
    }
}
@media (max-width: 1030px) {
    .title-project-page{
        font-size: 2em;
    }
    .cell2{
        font-size: 0.8rem;
    }
}
@media (max-width: 768px) {
    .title-project-page{
        font-size: 1.5em;
        font-weight: 800;
    }
    .cell2{
        font-size: 0.5rem;
    }
    .galerie-grid{
        gap: 10px;
    }
}
@media (max-width: 530px) {
}

/* -------------------------------- */
/* -------------------------------- */
/* ------------ Footer ------------ */
/* -------------------------------- */
/* -------------------------------- */

footer {
    background-color: var(--main-bg-end);
    color: var(--text-accent);
    text-align: center;
    padding: 20px 0;
    font-size: 0.85em;
    box-shadow: 0 -8px 8px var(--shadow-color);
}
footer a {
    text-decoration: underline;
    color: var(--text-accent);
}
footer a:hover {
    color: var(--text-light);
}