*{
    margin: 0;
}

@font-face {
    font-family:Vina;
    src: url(fonts/VinaSans-Regular.ttf);
}

@font-face {
    font-family:Boldonse;
    src: url(fonts//Boldonse-Regular.ttf);
}

@font-face {
    font-family:MontserratR;
    src: url(fonts/MontserratAlternates-Regular.ttf);
}

@keyframes float {
    0% {
      transform: translateY(0);
    }
    50% {
     transform: translateY(-6%);
    }
    100% {
     transform: translateY(0);
    }
}

html{
    background-color:#211e23;
    color:#ffffff;
    font-family: MontserratR;
    scroll-behavior: smooth;
}

main{
    padding:0 90px;
}

nav{
    padding:20px 0;
	display:flex;
	flex-direction:row;
	list-style:none;
    justify-content: space-between;
    align-items: center;
    background: transparent;
}

nav ul{
    padding: 0 10px;
	display:flex;
	flex-direction:row;
	list-style:none;
    align-items: center
}

nav ul a{
    margin: 20px;
	font-size:1.2rem;
    text-decoration: none;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

ul a:hover {
  transform: translateY(-3px);
}

ul a::before {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 5px;
  background-color: #A6A6A6;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

ul a:hover::before {
  transform: scaleY(1);
}

nav #medias{
    display:flex;
	flex-direction:row;
    justify-content: right;
    display: inline-block;
    flex-wrap: nowrap;
    padding: 0 30px;
}

nav #medias img{
    width: 50px;
    padding:0 10px;
    transition: transform .2s ease;
}

nav #medias img:hover{
    width: 50px;
    padding:0 10px;
    transform: scale(1.15);
}


/*elements graphiques flottants*/
.element{
    position: relative;
}

.decor{
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.decor3{
    top: 20%;
    left: 12%;
}

.decor3 img{
    animation: float 3s ease-in-out infinite;
    width: 150px;
}

.decor2{
    top: 50%;
    left: 80%;
}

.decor2 img{
    animation: float 3s ease-in-out infinite;
    width: 50px;
}

.decor9{
    top: 170%;
    right:10%;
}

.decor9 img{
    animation: float 3s ease-in-out infinite;
    width: 100px;
}


#presentation{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 0 200px 0;
}

#presentation h1{
    visibility: hidden;
}

#presentation .name{
    width: 56%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#presentation img{
    width: 100%;
}

/*button explorer*/
button {
 position: relative;
 cursor: pointer;
 outline: none;
 border: 0;
 vertical-align: middle;
 text-decoration: none;
 background: transparent;
 padding: 0;
 font-size: inherit;
 font-family: inherit;
}

button.explorer {
 width: 12rem;
 height: auto;
 display: flex;
}

button.explorer .circle {
 transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
 position: relative;
 display: block;
 margin: 0;
 width: 3rem;
 height: 3rem;
 background: #dff78d;
 border-radius: 1.625rem;
}

button.explorer .circle .icon {
 transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
 position: absolute;
 top: 0;
 bottom: 0;
 margin: auto;
 background: #211e23;
}

button.explorer .circle .icon.arrow {
 transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
 left: 0.625rem;
 width: 1.125rem;
 height: 0.125rem;
 background: none;
}

button.explorer .circle .icon.arrow::before {
 position: absolute;
 content: "";
 top: -0.29rem;
 right: 0.0625rem;
 width: 0.625rem;
 height: 0.625rem;
 border-top: 0.125rem solid #211e23;
 border-right: 0.125rem solid #211e23;
 transform: rotate(45deg);
}

button.explorer .button-text {
 transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 padding: 0.75rem 0;
 margin: 0 0 0 1.85rem;
 color: #ffffff;
 font-weight: 700;
 line-height: 1.6;
 text-align: center;
 text-transform: uppercase;
}

button:hover .circle {
 width: 100%;
}

button:hover .circle .icon.arrow {
 background: #211e23;
 transform: translate(1rem, 0);
 transform: rotate(90deg);
}

button:hover .button-text {
 color: #211e23;
}

section{
    padding-bottom: 80px;
}

h2{
    font-family: Boldonse;
    padding-bottom: 100px;
}

#aboutme .about {
    display: flex;
    justify-content: center;
    align-items: center;
}

#aboutme img{
    width: 25%;
    padding-left: 30px;
}

.description{
    font-size: 1.3rem;
    padding: 0 200px;
}

.highlight {
  color: #dff78d;
  font-weight: bold;
}


/*Dossiers Skills*/
#skills p{
    color: #211e23;
}

.window{
    position: relative;
    height: 1000px;
    display: flex;
    justify-content: right;
    align-items: center;
    padding-left: 50px;
}

.tab{
    position: absolute;
    top:0;
    left:15%;
    z-index: 1;
    width: 70%;
}

.folder {
    position: relative;
    z-index: 2;
    width: 200px;
    height: 180px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.folder p {
    position: relative;
    margin-top: 155px;
    text-align: center;
    font-size: 1rem;
    pointer-events: none;
}

.folder img {
  position: absolute;
  width: 100%;
  left: 0;
  transition: opacity 0.3s ease;
}

/* Dossier fermé visible par défaut */
.folder .closed {
  opacity: 1;
}

/* Dossier ouvert invisible par défaut */
.folder .open {
  opacity: 0;
}

/* Image qui sort du dossier */
.folder .content {
  bottom: 0;
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Effet au survol folder */
.folder:hover .closed {
  opacity: 0;
}

.folder:hover .open {
  opacity: 1;
}

.folder:hover .content {
  transform: translateY(-40px);
  opacity: 1;
}

.folder.active .content {
  transition-delay: 0.1s;
}

.projets{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
}

/*Hover sur projet*/
.post img{
    max-width:100%;
    padding-bottom: 20px;
}

.projets .post {
    position: relative;
    display: inline-block;
    max-width:350px;
    padding-bottom: 20px;
}
  
.post .img-hover {
    width: 100%;
    transition: opacity 0.3s ease;
}
  
.post .caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: "Futura";
    font-size: 0.9rem;
}

.post .caption p{
    font-size: 1.2rem;
    font-family: Futura;
    padding-bottom: 10px;
    background-color: transparent;
    font-weight: bold;
}

.back-to-top{
    position:fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: transparent;
    transition: transform .2s ease;
}

.back-to-top:hover{
    transform: scale(1.15);
}

footer{
    padding: 0 90px;
}

.contact-form {
  max-width: 450px;
  margin: 40px auto;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  font-family: "Inter", sans-serif;
}

.contact-form h2 {
  margin-bottom: 20px;
  font-size: 1.6rem;
  text-align: center;
  color: #333;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #444;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0078ff;
  outline: none;
}

.contact-form textarea {
  height: 120px;
  resize: vertical;
}

.contact-form button {
  width: 100%;
  padding: 12px;
  background: #0078ff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-form button:hover {
  background: #005fcc;
}

footer p{
    text-align: center;
    padding-bottom: 50px;
}

