@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

:root {
    --color-blue: #285185;
    --color-black: #1f1f1f;
    --color-purple1: #5E8C61;
    --color-purple2: #8DB596;
    --color-red: #9c1010;
}

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

body {
    width: 100%;
    overflow-x: hidden;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
}

.container {
    width: 60%;
    margin: 40px auto 10px auto;
    position: relative;
}

/* Navbar */
#topnav_responsive_menu {
    width: 100%;
    margin: 10px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
}

#topnav_responsive_menu ul {
    width: 60%;
    height: 100px;
    border-radius: 50px;
    box-shadow: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    transition: all 0.6s ease-in-out;
    padding: 0 150px;
    background-color: #fff;
}

a {
    color: var(--color-purple1);
    text-decoration: none;
    font-size: 1.4rem;
}

.nav.active {
    transition: all 0.6s ease-in-out;
    z-index: 999;
    margin: 0 auto;
}

.nav .active a {
    color: var(--color-red);
}

.nav a.current,
.nav a:hover {
    color: var(--color-black);
    font-weight: bold;
}

.topnav {
    width: 100%;
    padding: 10px;
}

.topnav_link {
    color: #fff;
    padding: 12px;
    text-decoration: none;
}

.topnav_link:hover {
    color: #0078b4;
}

#topnav_menu {
    display: none;
}

/* Side Menu */
#menu-cote {
    width: 200px;
    height: 60vh;
    position: fixed;
    top: 20vh;
    left: 4%;
    border-radius: 50px;
    box-shadow: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff;
    display: none;
}

#menu-cote ul {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    align-content: center;
}

#menu-cote ul li {
    width: 80%;
    height: 14%;
    text-align: center;
    vertical-align: middle;
    margin: 2% 0;
    padding-top: 28px;
}

/* Layout Elements */
header {
    width: 100%;
    border-radius: 50px;
    box-shadow: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff;
}

section {
    width: 100%;
    border-radius: 50px;
    margin-top: 60px;
    padding: 20px;
    box-shadow: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff;
}

#section {
    display: flex;
}

#xp, #form, #contactLink {
    margin-bottom: 40px;
}

#contain-id {
    width: 100%;
    height: 300px;
    display: flex;
    border-radius: 50px 50px 0 0;
}

#contain-id #intro {
    width: 70%;
    font-size: 1.4rem;
    padding: 30px;
}

#contain-id #intro h2 {
    margin-bottom: 10px;
}

#contain-id #intro p {
    margin-top: 40px;
    font-size: 1.4rem;
}

#contain-id #photo {
    width: 20%;
    position: relative;
}

#contain-id #photo-accueil {
    display: block;
    width: 20%;
    position: relative;
}


#photo img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: auto;
}

#photo-accueil img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: auto;
}

h1 {
    display: block;
    background: linear-gradient(to bottom right, var(--color-purple1), var(--color-purple2));
    width: 100%;
    height: 100px;
    text-align: center;
    font-size: 3rem;
    margin-top: 40px;
    padding: 16px;
    border-radius: 0 0 50px 50px;
    color: #fff;
}

h2 { font-size: 1.5rem; }
h5 { 
    display: none;
 }
 
p { font-size: 1rem; }

section #gauche {
    width: 70%;
    height: 100%;
    padding: 20px;
}

section #droite {
    width: 30%;
    height: 100%;
    padding: 20px;
}

#gauche h2 {
    display: block;
    background: linear-gradient(to bottom right, var(--color-purple1), var(--color-purple2));
    color: #fff;
    width: 100%;
    height: 80px;
    text-align: center;
    font-size: 2rem;
    margin-top: 30px;
    padding: 20px;
    margin-bottom: 20px;
}

#gauche h3 { font-size: 1.6rem; }

#gauche p {
    color: var(--color-black);
    margin-top: 10px;
}

#gauche .liste {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
}

.h-240 { height: 240px; }
.h-300 { height: 320px; }

#gauche .date {
    width: 14%;
    text-align: center;
}

#gauche .cercle {
    background: linear-gradient(to right, #fff 40%, var(--color-purple1) 40%, #fff 60%);
    width: 60px;
    height: 100%;
    position: relative;
}

.cercle svg {
    width: 20px;
    text-align: center;
    position: absolute;
    left: 50%;
    top: 50%;
    fill: var(--color-purple1);
    transform: translate(-50%, -50%);
}

#gauche .carte {
    background-color: #fff;
    width: 80%;
    height: 80%;
    padding: 20px;
    position: relative;
    box-shadow: 2px 2px 6px #bebebe, -2px -2px 6px #ffffff;
}

#gauche .carte::before {
    content: "";
    border-top: 20px solid transparent;
    border-right: 20px solid var(--color-purple2);
    border-bottom: 20px solid transparent;
    border-left: 20px solid transparent;
    top: 50%;
    left: -18px;
    transform: translate(-50%, -50%);
    position: absolute;
}

#droite h2 {
    color: #fff;
    text-shadow: 2px 2px 0 var(--color-black), 2px -2px 0 var(--color-black), -2px 2px 0 var(--color-black), -2px -2px 0 var(--color-black);
    display: block;
    width: 100%;
    height: 80px;
    text-align: center;
    font-size: 1.6rem;
    margin-top: 30px;
    padding: 20px;
    margin-bottom: 20px;
}

#droite h3 {
    font-size: 1.4rem;
    margin: 30px 0;
    text-decoration: underline;
}

#droite p {
    margin: 10px 0;
    position: relative;
}

#droite p span {
    font-size: 2rem;
    color: var(--color-purple1);
    font-weight: bold;
}

#droite p svg {
    width: 20px;
    fill: var(--color-purple1);
    position: absolute;
    left: -26px;
}

/* Portfolio Section */
#portofolio { margin-bottom: 40px; }
#portofolio-section { width: 100%; }

#portofolio-section h2 {
    width: 100%;
    height: 80px;
    text-align: center;
    margin: 30px 0;
    display: block;
    background: linear-gradient(to bottom right, var(--color-purple1), var(--color-purple2));
    color: #fff;
    font-size: 2rem;
    padding-top: 20px;
    border-radius: 20px;
}

.container-portofolio {
    width: 100%;
    min-height: 1000px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.card {
    position: relative;
    width: 30%;
    height: 500px;
    background: #fff;
    transform-style: preserve-3d;
    transform: perspective(2000px);
    transition: 1s;
    box-shadow: inset 10px 0 20px var(--color-purple1);
    border: 1px solid var(--color-purple1);
}

.card:hover {
    z-index: 1000;
    transform: perspective(2000px) rotate(-10deg);
    box-shadow: inset 10px 0 20px var(--color-purple1);
}

.card .imgBox {
    position: relative;
    width: 100%;
    height: 500px;
    border: 1px solid #000;
    transform-origin: left;
    z-index: 1;
    transition: 1s;
}

.card:hover .imgBox {
    transform: rotateY(-135deg);
}

.card .imgBox img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.card .details {
    position: absolute;
    top: 0;
    left: 0;
    padding: 30px;
}

.card .details h3 {
    margin: 10px 0;
}

/* Contact Section */
#contact {
    height: 90vh;
}

#contact h2 {
    display: block;
    background: linear-gradient(to bottom right, var(--color-purple1), var(--color-purple2));
    color: #fff;
    width: 100%;
    height: 80px;
    text-align: center;
    font-size: 2rem;
    margin-top: 30px;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 20px;
}

.contain-tout {
    width: 90%;
    height: 500px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    border-radius: 10px;
    box-shadow: 2px 2px 6px #bebebe, -2px -2px 6px #ffffff;
}

.form-container {
    width: 60%;
    height: 100%;
}

#contact-form {
    width: 100%;
    height: 100%;
    padding: 10px;
}

#contact-form div {
    width: 100%;
    margin: 20px 0;
    position: relative;
}

input, textarea {
    width: 70%;
    padding: 10px;
    border: 0;
    border-bottom: 2px solid #dddddd;
    background-color: transparent;
    z-index: 999;
}

label {
    display: inline-block;
    width: 22%;
    padding-left: 30px;
    color: black;
    margin-right: 10px;
    z-index: 999;
}

#message { position: absolute; }
input { height: 40px; }

input:focus, textarea:focus {
    border-bottom: 2px solid #01109b;
    outline: none;
}

input.invalid {
    border-color: #900;
    background-color: #FDD;
}

.error {
    width: 100%;
    padding: 0;
    font-size: 80%;
    color: white;
    background-color: #900;
    border-radius: 0 0 5px 5px;
    box-sizing: border-box;
}

.error.active { padding: 0.3em; }

textarea {
    height: 100px;
    resize: none;
}

::placeholder { font-style: italic; }

.btn {
    width: 100%;
    height: 50px;
    background: var(--color-purple1);
    color: #fff;
    border: 1px solid #dddddd;
    transition: 1s;
    border-radius: 10px;
    margin-top: 10px;
}

.btn:hover {
    border: 1px solid var(--color-purple1);
    background: #fff;
    color: var(--color-purple1);
    cursor: pointer;
}

#result-form {
    width: 80%;
    min-height: 30px;
    margin: 0 auto 20px auto;
    padding: 10px;
    text-align: center;
    color: var(--color-purple1);
    font-size: 1rem;
}

.form-image {
    width: 40%;
    height: 100%;
    position: relative;
    padding: 50px;
}

.form-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: auto;
}

footer {
    width: 100%;
    height: 80px;
    background-color: var(--color-purple1);
    margin-top: 150px;
}

.vue-ecran { display: inline-block; }
h4 { display: none; }

ul { padding-left: 20px; }
li { margin-bottom: 8px; }

#droite .liste > div {
    height: 300px;
    margin: 80px 0 80px 20px;
}

.imgAppli {
    width: 200px;
    height: 200px;
}

.imgAppli img {
    width: 200px;
    height: auto;
}

/* Media Queries */
@media only screen and (max-width: 1024px) {
    body { width: 100%; }

    .container {
        width: 100%;
        position: static;
    }

    header, section {
        border-radius: 0;
        box-shadow: none;
    }

    section {
        margin-top: 10px;
        padding: 10px;
        display: block;
    }

    #section { display: block; }

    #contain-id {
        width: 100%;
        height: 300px;
        padding: 20px;
        border-radius: 0;
        flex-wrap: wrap;
    }

    #contain-id #intro {
        width: 62%;
        font-size: 1.4rem;
        padding: 10px;
    }

    #contain-id #photo {
        width: 38%;
        position: static;
        margin: 60px 0 0 0;
    }

    #photo img {
        width: 80%;
        height: auto;
        position: static;
        transform: translate(0);
    }

    .grd-ecran {
        display: none;
    }



    h1 {
        display: block;
        background: linear-gradient(to bottom right, var(--color-purple1), var(--color-purple2));
        width: 100%;
        height: 70px;
        text-align: center;
        font-size: 1.6rem;
        margin-top: 0;
        padding: 16px;
        color: #fff;
        border-radius: 0;
    }

    #xp { display: block; }

    section #gauche {
        width: 100%;
        height: 100%;
        padding: 20px;
    }

    h2 {
        font-size: 1.4rem;
        margin-top: 30px;
        padding: 10px;
        margin-bottom: 20px;
        height: 50px;
    }

    #gauche h3 {
        font-size: 1.2rem;
        text-align: center;
    }

    .h-240 { height: 300px; }
    .h-300 { height: 500px; }

    #gauche p, #gauche .date { font-size: 0.9rem; }
    #gauche .cercle { width: 40px; }
    .cercle svg { width: 10px; }

    #gauche .carte::before {
        border-top: 10px solid transparent;
        border-right: 10px solid var(--color-purple2);
        border-bottom: 10px solid transparent;
        border-left: 10px solid transparent;
        left: -8px;
    }

    section #droite {
        width: 100%;
        padding: 20px;
    }

    #droite .liste {
        padding: 30px;
        box-shadow: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff;
        margin-bottom: 40px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    #droite .imgAppli{
        width: 100%;
    }
    #droite h3 {
        font-size: 1.2rem;
        text-align: center;
    }

    #portofolio {
        width: 100%;
        padding: 0;
    }

    .container-portofolio {
        width: 100%;
        height: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .card {
        position: static;
        width: 90%;
        height: auto;
        transform-style: unset;
        transform: unset;
        transition: none;
        box-shadow: none;
        border: 1px solid var(--color-purple1);
        margin: 40px 0;
    }

    .card:hover {
        z-index: 1000;
        transform: unset;
        box-shadow: none;
    }

    .card .imgBox {
        position: static;
        width: 100%;
        height: 300px;
        transform-origin: left;
        z-index: 1;
        transition: none;
    }

    .card:hover .imgBox { transform: rotateY(0); }

    .card .imgBox img {
        position: static;
        width: 100%;
        height: 300px;
    }

    .card .details {
        position: static;
        padding: 10px;
    }

    .card .details h3 {
        margin: 10px 0;
        text-align: center;
        font-size: 1.2rem;
    }

    .card .details p, .card .details a {
        font-size: 0.9rem;
    }

    #topnav_menu {
        width: 100%;
        display: flex;
        align-items: center;
    }

    .topnav {
        width: 100%;
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
        position: fixed;
        left: 0;
        top: 0;
        z-index: 999;
        background-color: #0078b4;
    }

    #home_link { flex-grow: 1; }

    #topnav_responsive_menu ul {
        display: block;
        flex-direction: column;
        position: absolute;
        justify-content: flex-start;
        margin: 0;
        top: 70px;
        min-width: 50vw;
        height: 100%;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        background-color: #fff;
        padding: 0;
    }

    #topnav_responsive_menu ul li {
        margin: 50px 0;
        text-align: center;
    }

    #topnav_responsive_menu {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
        width: 100vw;
        height: calc(100vh - 70px);
        z-index: 99;
        transform-origin: 0% 0%;
        transform: translate(-200%, 0);
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        background-color: #fff;
    }

    #topnav_responsive_menu.open {
        transform: none;
        position: fixed;
    }

    #contain-ico {
        width: 100%;
        height: 70px;
        position: relative;
        background-color: #fff;
    }

    #topnav_hamburger_icon {
        top: 20px;
        left: 20px;
        width: 33px;
        height: 28px;
        z-index: 100;
        display: block;
        cursor: pointer;
        padding-left: 20px;
        position: absolute;
    }

    #topnav_hamburger_icon span {
        position: absolute;
        height: 4px;
        width: 33px;
        margin-bottom: 5px;
        background: var(--color-purple1);
        border-radius: 3px;
        z-index: 100;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }

    #topnav_hamburger_icon span:nth-child(1) {
        top: 0;
        transform-origin: left top;
    }

    #topnav_hamburger_icon span:nth-child(2) {
        top: 12px;
        transform-origin: left center;
    }

    #topnav_hamburger_icon span:nth-child(3) {
        top: 24px;
        transform-origin: left bottom;
    }

    #topnav_hamburger_icon.open span:nth-child(1) {
        width: 36px;
        transform: rotate(45deg);
    }

    #topnav_hamburger_icon.open span:nth-child(2) {
        width: 0%;
        opacity: 0;
    }

    #topnav_hamburger_icon.open span:nth-child(3) {
        width: 36px;
        transform: rotate(-45deg);
    }

    .container { z-index: -1; }

    #contact h2 { margin-bottom: 0; }
    .form-container { width: 100%; }
    .form-image { display: none; }

    input, textarea {
        width: 80%;
        padding: 10px;
        margin-left: 30px;
        border: 1px solid var(--color-purple1);
    }

    #message { position: static; }

    label {
        display: inline-block;
        width: 80%;
        padding-left: 0;
        color: black;
        margin-right: 0;
        margin-left: 30px;
    }

    input:focus, textarea:focus, input:focus.invalid {
        outline: unset;
    }

    #submit {
        width: 80%;
        margin-left: 30px;
    }

    .btn { transition: none; }

    #home { margin-bottom: -20px; }
    #form { margin-bottom: 60px; }
    #portofolio { margin-bottom: 40px; }
    #contactLink { margin-bottom: 20px; }

    #portofolio-section h2, #contact h2 {
        border-radius: 0;
        height: 60px;
        font-size: 1.5rem;
        padding: 10px 0 4px 0;
        margin-bottom: 10px;
    }

    #contain-id #intro h2 {
        height: 70px;
        margin-top: 0;
    }

    h5 {
        display: block;
        text-align: center;
        margin-top: 60px;
        font-size: 1.2rem;
    }

    h4 {
        display: block;
        text-align: center;
        color: #fff;
        font-size: 1.2rem;
        padding-top: 10px;
        font-weight: 400;
    }

    #contain-id #photo-accueil {
        display: none;
    }

    #h1 {
        font-size: 1rem;
    }
    #gauche h2 {
        font-size: 1rem;
    }

    .cartePetite {
        width: 100%;
        height: 200px;
    }

    .carteGrande {
        width: 100%;
        height: 370px;
    }

    #contain-id #intro p{
        font-size: 0.8rem;
    }

    .pt-ecran {
        width: 100%;
        display: block;
        padding: 10px;
        text-align: center;
    }

    #gauche .cercle {
        display: none;
    }

    #gauche .carte::before {
    display: none;
}

    .vue-ecran, #menu-cote { display: none; }
}