* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Montserrat, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Splash screen*/
.loader{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: 1s;
}

.logo-intro{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}

.logo {
    position: relative;
    display: inline-block;
    bottom: -20px;
    opacity: 0;
}

.logo.active {
    bottom: 0;
    opacity: 1;
    transition: ease-in-out 0.5s;
}

.logo.fade {
    bottom: 150px;
    opacity: 0;
    transition: ease-in-out 0.5s;
}

.header {
    position: fixed;
    top: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    z-index: 99;
    width: 100%;
    transition: all 0.5s ease-in-out;
}

.header.active {
    background-color: rgba(119, 26, 119, 0.863);
    -webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.25);
}

.header img{
    width: 30%;
    height: auto;
    object-fit: cover;
    padding-left: 5%;
    margin-top: 0.5%;
}

.header .menu {
    display: flex;
    flex-direction: row;
    width: 55%;
    justify-content: flex-end;
    padding-right: 5%;
    align-items: center;
    font-size: small;
}

.menu a {
    padding: 2%;
    color: white;
}
    
a {
    text-decoration: none;
}

.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-text {
    display: flex;
    flex-direction: column;
    position: absolute;
    color: white;
    align-items: center;
    justify-content: center;
    background-color: rgba(48, 51, 44, 0.452);
    border-radius: 10px;
    top: 400px;
}

.hero-text a {
    color: white;
    text-decoration: none;
}

.hero-text h2 {
    text-align: center;
    margin: 5% 1% 2% 1%;
    font-size: 1.25em;
}

.hero-text h1 {
    text-align: center;
    font-size: 1.75em;
    margin-top: 5%;
    margin-bottom: 0%;
    font-variant: small-caps;
}

.hero-text h3 {
    text-align: center;
    font-size: 1em;
    height: 19px;
    min-width: 310px;
}

video {
    object-fit: fill;
}

.cta {
    background-color: rgb(216, 132, 205);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin: 10px;
    margin-bottom: 5%;
    transition: 0.3s;
    z-index: 1;
    text-decoration: none;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

section {
    overflow: auto;
}

section h2 {
    text-align: center;
    padding-top: 0.5rem;
    padding-bottom: 0.25rem;
    font-variant: small-caps;
}

.domains h2{
    color: rgb(124, 14, 110);;
}

/* Style the tab */
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: rgb(124, 14, 110);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

/* Style the buttons that are used to open the tab content */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  color: white;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: rgb(216, 132, 205);
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
  animation: fadeEffect 1s; /* Fading effect takes 1 second */
}

.tabcontent p {
    text-align: justify;
    margin: 5%;
    padding-top: 5%;
}

.tabcontent h3 {
    text-align: center;
    font-variant: small-caps;
    margin-top: 8%;
    margin-bottom: 7%;
    color: rgb(124, 14, 110);
}

/* Go from zero to full opacity */
@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: rgb(124, 14, 110);
    color: white;
}

.about a {
    margin-bottom: 30px
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1%;
    width: 85%;
}

.about-content img {
    width: 90%;
    height: 350px;
    object-fit: cover;
    object-position: 25% 25%;
    border-radius: 15px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.about-text {
    height: 100%;
    width: 90%;
    padding: 5%;
    margin: 1%;
    margin-top: 9%;
    margin-bottom: 9%;
    flex-direction: column;
    text-align: justify;
    background-color: rgb(216, 132, 205);
    border-radius: 15px;
    color: white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

}

.project {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5%;
    margin-top: 2.5%;
    margin-bottom: 10%;
    text-align: center;
    background-color: rgb(124, 14, 110);;
    border-radius: 15px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 12px 40px 0 rgba(0, 0, 0, 0.19);
    width: 100%;
}

.project h3 {
    text-align: center;
    margin-top: 1%;
    margin-bottom: 6%;
    font-variant: small-caps;
    color: white;
}

.project p {
    color: white;
    padding: 5% 5% 5% 5%;
    margin: 4% 4% 7% 4%;
    text-align: justify;
    border-radius: 15px;
    background-color: rgb(216, 132, 205);
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 12px 40px 0 rgba(0, 0, 0, 0.19);
}

.projets {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 8%;
    color: white;
    width: 100%;
    padding: 0% 5% 0% 5%;
}

iframe {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border-radius: 15px;
    margin-bottom: 7%;
}

embed {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border-radius: 15px;
}

blockquote {
    padding-right: 20px;
}


.instagram-media {
    min-width: 50% !important;
}

.skill img {
    width: 40px;
    height: auto;
    object-fit: cover;
    border-radius: 10%;
    margin: 1%;
}

.skill p {
    font-size: 0.80em;
    margin: 1%;
    padding: 1%;
}

.skill i {
    font-size: 40px;
    margin: 1%;
    padding: 1%;
}

.skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3%;
    margin-bottom: 1%;
}

.skills {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 1%;
    overflow: visible;
}

.compétences {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5%;
    overflow: auto;
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 0%;
    color: rgb(0, 0, 0);
}

.contact h2 {
    margin-bottom: 3%;
    font-size: 1.75em;
    color: rgb(124, 14, 110);
}

.contact .container {
    width: 72%;
}

.contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 10%;
}

.checkbox-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 10px 5% 0 0;

}

.contact form input,
.contact form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 5%;
    border-radius: 5px;
    border: none;
    background-color: rgb(216, 132, 205);
    color: white;
}

.contact form button {
    background-color: rgb(216, 132, 205);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px;
    transition: 0.3s;
}

footer {
    background-color: rgb(124, 14, 110);
    width: 100%;
    color: white;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 2%;
    position: relative;

}

footer a {
    color: white;
    text-decoration: none;
    margin: 5px;
}

@media only screen and (min-width: 600px) {
    .header img {
        width: 15%;
    }

    .header .menu {
        width: 40%;
    }

    .hero-text h1 {
        font-size: 2.5em;
    }

    .hero-text h2 {
        font-size: 1.5em;
    }

    .hero-text h3 {
        font-size: 1.25em;
    }

    .tabcontent p {
        text-align: justify;
        margin: 3% 5% 0% 5%;
        padding-top: 1%;
    }

    .tabcontent h3 {
        margin-top: 4%;
        margin-bottom: 1%;
    }

    .about h2 {
        margin-top: 3%;
        font-size: 2em;
    }

    .about {
        margin-bottom: 4%;
    }

    .about-content {
        flex-direction: row;
        justify-content: space-around;
        width: 80%;
    }

    .about-content img {
        width: 30%;
        border-radius: 50%;

    }

    .about a  {
        margin-top: 5%;
    }

    .about-text {
        width: 50%;
        margin-top: 5%;
        margin-bottom: 2.5%;
        font-size: large;
    }

    .project {
        width: 400px;
        height: 900px;
        padding-top: 5%;
        justify-content: flex-start;
    }

    .project p {
        width: 250px;
        margin-top: 20%;
    }

    .projets {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
        margin-bottom: 0%;
    }

    .projets h2 {
        left: 40%;
        position: absolute;
        margin-top: 3%;
        font-size: 2.5em;
    }

    .cta {
        margin-top: 10%;
    }

    .tabcontent h4 {
        align-content: center;
        text-align: center;
    }

    .compétences {
        padding-top: 3%;
    }

    .compétences h2 {
        margin-top: 2%;
        font-size: 2.75em;
        margin-bottom: 1%;
    }

    .compétences h3 {
        font-size: 2em;
        font-variant: small-caps;
        margin-top: 3%;
        margin-bottom: 1%;
    }

    .compétences h4 {
        font-size: 1.5em;
        margin-top: 3%;
        margin-bottom: 0%;
    }

    .compétences img {
        width: 200px;
        height: 200px;
        object-fit: contain;
        border-radius: 10%;
        margin: 1%;
    }

    .skill i {
        font-size: 200px;
        margin: 1%;
    }

    .contact {
        margin-bottom: 2%;
    }

    .contact h2 {
        padding-top: 3%;
        padding-bottom: 1%;
        font-size: 2.5em;
    }

    .contact form {
        width: 100%;
        margin-bottom: 4%;
    }

    .contact form textarea {
        height: 200px;
    }
    .contact form input[type="submit"] {
        width: 50%;
    }

    .contact form button {
        margin-top: 8%;
    }
}

@media screen and (min-width: 900px) {
    .header img {
        width: 15%;
    }

    .header .menu {
        width: 30%;
    }

    .hero-text {
        width: 400px;
        height: 400px;
    }

    .hero-text h1 {
        font-size: 3em;
    }

    .hero-text h2 {
        font-size: 2em;
    }

    .hero-text h3 {
        font-size: 1.5em;
    }

    .about-content img {
        width: 25%;
    }
    
}

@media only screen and (min-width: 1200px) {
    .header img {
        width: 12%;
    }

    .header .menu {
        width: 100%;
        font-size: 1em;
    }

    .hero-text {
        width: 500px;
    }

    .hero-text h1 {
        font-size: 2.25em;
    }

    .hero-text h2 {
        font-size: 1.75em;
    }

    .hero-text h3 {
        font-size: 1.25em;
    }

    .domains h2 {
        font-size: 2.5em;
        margin-top: 2%;
    }

    .tablinks {
        width: 100%;
        justify-content: center;
        font-size: 1.25em;
    }

    iframe {
        width: 295px;
    }

    .projets {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: nowrap;
        overflow: auto;
        margin-bottom: 0%;
    }

    .project {
        padding-top: 2%;
        padding-bottom: 0%;
        margin-bottom: 5%;
        margin: 1% 2%;
        height: auto;
    }

    .projets .project h3 {
        padding-bottom: 4%;
        font-size: 1.25em;
        margin-bottom: 15px;
    }

    .project p {
        width: 300px;
        height: 100%;
        min-height: 125px;
        padding: 8% 5% 8% 5%;
        margin-top: 5%;
        margin-bottom: 15%;
        text-align: justify;
        justify-content: center;
    }

    .tabcontent h3 {
        margin-top: 2%;
        font-size: 1.75em;
    }

    .tabcontent h4 {
        align-content: center;
        text-align: center;
    }

    .tabcontent .project h3 {
        font-size: 1.25em;
        margin-top: 2%;
        margin-bottom: 6%;
    }

    .skill {
        width: 200px;
        height: 100px;
        margin: 1%;
    }

    .skill img {
        width: 80px;
        height: auto;
        object-fit: cover;
        border-radius: 10%;
        margin: 1%;
    }

    .skill i {
        font-size: 80px;
        margin: 1%;
    }

    .about h2 {
        margin-bottom: 0%;
    }

    .about a {
        margin-bottom: 3%;
        margin-top: 2%;
    }

    .about-content {
        flex-direction: row;
        width: 80%;
        margin-bottom: 0%;
        justify-content: space-evenly;
    }

    .about-text {
        height: 300px;
        width: 400px;
        font-size: large;
        padding: 1.5%;
    }

    .contact h2 {
        margin-top: 0%;
        margin-bottom: 2%;
        padding-top: 0%;
        padding-bottom: 0%;
    }

    .contact .container {
        width: 60%;
        margin-bottom: 0%;
    }

    #contact-form {
        margin-bottom: 1%;
    }

    #contact-form button{
        margin-top: 2%;
        margin-bottom: 0%;
    } 
}