@font-face {
  font-family: 'Louis George Cafe';
  src: url(font/Louis\ George\ Cafe\ Light.ttf);
  font-display: swap;
}

@font-face {
  font-family: 'Champagne & Limousines';
  src: url(font/Champagne\ &\ Limousines.ttf);
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Louis George Cafe';
  height: 100vh;
  background-image: url(img/pattern.webp);
  background-attachment: fixed;
  background-size: 30%; 
}

header {
  display: flex;
  justify-content: center;
}

/*-------------- NavBar --------------*/  
.navbar {
  background: rgba(166, 166, 166, 0.2);
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);

  position: fixed;
  z-index: 1000;
  padding: 15px 10px;
  margin: 20px 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 80%;
  min-width: 680px;
}

.navbar .logo {
  display: flex;
  align-items: center;
  margin-left: 15px;
  width: 90px;
  transition: 0.2s;
}

.navbar .logo:hover {
  transform: scale(1.1);
  transition: 0.2s;
}

.navbar .nav-links ul {
  display: flex;
}

.navbar .nav-links ul li {
  width: auto;
  margin-right: 30px;
}

.navbar .nav-links ul li a {
  font-family: 'Champagne & Limousines';
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #1a3e52;
  font-weight: bold;
  font-size: 20px;
  transition: 0.2s;
}

.navbar .nav-links ul li a:hover {
  color: #44b6e7;
  transition: 0.2s;
}

.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-right: 20px;
  gap: 6px;
  z-index: 1100;
}

.burger span {
  height: 3px;
  width: 25px;
  background: #1a3e52;
  border-radius: 5px;
  transition: 0.3s;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.anim {
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hidden {
  opacity: 0;
  transform: translateY(50px);
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

/*-------------- Accueil --------------*/
section.main {
  background-image: url(img/pattern_intro.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #3487b4;
  height: 100vh;
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
}

section.main h1 {
  font-family: 'Champagne & Limousines';
  letter-spacing: 1px;
  font-size: 120px;
  padding: 10px;
  color: #ffffff;
}

section.main h2 {
  font-family: 'Champagne & Limousines';
  letter-spacing: 1px;
  font-size: 40px;
  padding: 10px;
  color: #ffffff;
}

/*------------Presentation--------------*/
section#presentation {
  display: flex;
  align-items: center;
  margin: 50px 100px;
  min-height: 100vh;
}

section#presentation img {
  width: 600px;
  height: auto;
  margin-right: 20px;
}

section#presentation h2 {
  font-family: 'Champagne & Limousines';
  letter-spacing: 1px;
  font-size: 40px;
  padding: 20px 0 5px 0;
  border-bottom: 5px solid #3487b4;
  margin-right: 300px;
}

section#presentation p {
  font-family: 'Louis George Cafe';
  font-size: 30px;
  padding-top: 20px;
}

/*------------Compétences--------------*/
.logiciel {
  background-image: url(img/pattern_intro.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #3487b4;
  font-weight: bold;
  text-align: center;
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 100px;
}

.logiciel h2 {
  font-family: 'Champagne & Limousines', sans-serif;
  color: #ffffff;
  letter-spacing: 1px;
  font-size: 40px;
  margin: 20px 400px 40px;
  border-bottom: 5px solid #ffffff;
  padding-bottom: 10px;
}

.skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.skill {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 20px;
  border-radius: 15px;
  gap: 15px;
  transition: background 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.skill:hover:not(.active) {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px 4px rgba(255, 255, 255, 0.31);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill.active {
  box-shadow: 0 4px 15px 4px rgba(255, 255, 255, 0.31);
  transform: scale(1.05);
}

.skill img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.info {
  flex: 1;
  text-align: left;
}

.progress,
.info p,
.details {
  transition: opacity 0.3s ease, height 0.3s ease;
}

.progress {
  width: 100%;
  height: 10px;
  background: #2a566e;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 5px;
}

.bar {
  height: 100%;
  background: #63a8cd;
  transition: width 1s ease-in-out;
}

.info span {
  font-size: 20px;
}

.info p {
  margin-top: 5px;
  font-size: 16px;
}

.details {
  display: none;
  height: 0;
  overflow: hidden;
  font-size: 16px;
  color: #000000;
  margin-top: 5px;
  font-style: italic;
}

.skill.active .progress,
.skill.active .info p {
  display: none;
  height: 0;
}

.skill.active .details {
  display: block;
  height: auto;
}
	
/*--------------- Projets ----------------*/
#lightbox {
  background-color:#000B; 
  position:fixed; 
  top:0; 
  bottom:0; 
  left:0; 
  right:0; 
  display:none; 
  text-align: center; 
  padding:2%;
  z-index: 9999;
}

#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  margin-top: 2vh;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
}

#projets {
  padding: 40px;
}

#projets h2 {
  font-family: 'Champagne & Limousines';
  font-size: 40px;
  margin: 70px 500px 20px;
  padding-bottom: 10px;
  letter-spacing: 1px;
  text-align: center;
  border-bottom: 5px solid #3487b4;
}

#projets .texte p {
  font-size: 30px;
  text-align: center;
  margin: 20px 70px 50px 70px;
}

.projects {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.project {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 410px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.project:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.project:hover img {
  transform: scale(1.08);
}

.information {
  padding: 20px;
}

.information h3 {
  margin: 0;
  font-size: 18px;
}

.information p {
  color: #000000;
  font-size: 15px;
  margin: 5px 0 15px;
}

.btn {
  display: inline-block;
  padding: 10px 15px;
  background-color: black;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
}

.btn:hover {
  background-color: #3487b4;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*-------------- Footer --------------*/
footer {
  background-image: url(img/pattern_intro.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #3487b4;
  color: #ffffff;
  padding: 50px 20px 30px;
  font-family: 'Champagne & Limousines';
}

.footer-container {
  text-align: center;
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 100px;
  margin-bottom: 30px;
  justify-content: space-around;
}

.contact-block h2 a {
  font-size: 28px;
  color: #3487b4;
  background-color: #fff;
  padding: 12px 25px;
  border-radius: 10px;
  display: inline-block;
  transition: 0.3s;
  letter-spacing: 1px;
  text-decoration:none;
}

.contact-block h2 a:hover {
  transform: scale(1.1);
  color: black;
}

.social-block h2 {
  display: block;
  font-size: 25px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.icons img {
  width: 40px;
  filter: invert(1);
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

.icons img:hover {
  transform: scale(1.1);
  opacity: 0.6;
}

.footer-bottom h3 {
  font-size: 20px;
  color: #ffffff;
  letter-spacing: 1px;
}


/*---------------------------------------------- Responsive  ---------------------------------------------------*/ 
/*---------------BODY--------------------------*/
@media screen and (max-width: 1000px) {
  body {
    background-size: 50%;
  }
}

@media screen and (max-width: 580px) {
  body {
    background-size: 90%;
  }
}

@media screen and (max-width: 360px) {
  body {
    background-size: 150%;
  }
}

/* ----------- nav ------------------------- */
@media screen and (max-width: 900px) {
  .burger {
    display: flex;
  }

  .navbar .nav-links ul li {
    margin-bottom: 10px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(231, 231, 231, 0.8);
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    border-radius: 12px;
  }

  .nav-links.open {
    max-height: 300px;
  }

  .nav-links ul {
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }

  .nav-links ul li {
    margin: 10px 0;
  }
}
  
@media screen and (max-width: 700px) {
  .navbar {
    min-width: 600px;  
  }
}

@media screen and (max-width: 600px) {
  .navbar {
    min-width: 350px;  
  }

  .navbar .nav-links ul li {
    width: 80%;
    margin: 0 10px 10px;
    text-align: center;
  }

  .navbar .nav-links ul li a {
    font-size: 20px;
    margin:0px;
  }

  .navbar .logo {
    width: 80px;
  }
}

@media screen and (max-width: 370px) {
  .navbar {
    min-width: 300px;
  }

  .navbar .logo {
    width: 60px;
  }

  .navbar .nav-links ul li a {
    font-size: 16px;
  }

}

@media screen and (max-width: 305px) {
  .navbar {
    min-width: 280px;
  }
}
  
/*-------------- Accueil  --------------*/
@media screen and (max-width: 900px) {
  section.main h1 {
    font-size: 100px;
    padding: 0;
  }

  section.main h2 {
    font-size: 30px;
    padding: 0;
  }
}

@media screen and (max-width: 500px) {
  section.main h1 {
    font-size: 80px;
  }

  section.main h2 {
    font-size: 20px;
  }
}

@media screen and (max-width: 400px) {
  section.main h1{
    font-size: 60px;
  }

  section.main h2 {
    font-size: 15px;
  }
}

/* ----------- Presentation ---------------- */
@media screen and (max-width: 1390px) {
  section#presentation h2 {
    margin-right: 200px;
  }
}

@media screen and (max-width: 1300px) {
  section#presentation {
    display: flex;
    flex-direction: column;
  }

  section#presentation img {
    margin: 0;
  }

  section#presentation h2 {
    text-align: center;
    margin: 0 200px;
  }

  section#presentation p {
    text-align: center;
  }
}

@media screen and (max-width: 900px) {
    section#presentation h2 {
      margin: 0 100px;
    }
  }

@media screen and (max-width: 670px) {
  section#presentation {
    margin: 50px;
  }
}

@media screen and (max-width: 600px) {
  section#presentation h2 {
    margin: 0 50px;
  }

  section#presentation img {
    width: 500px;
  }
}

@media screen and (max-width: 500px) {
  section#presentation {
    margin: 30px;
  }

  section#presentation img {
    width: 400px;
  }
}

@media screen and (max-width: 400px) {
  section#presentation img {
    width: 300px;
  }
}

@media screen and (max-width: 430px) {
  section#presentation h2 {
    font-size: 30px;
  }

  section#presentation p {
    font-size: 25px;
  }
}

@media screen and (max-width: 370px) {
  section#presentation img {
    width: 250px;
  }

  section#presentation h2 {
    margin: 0 20px;
  }
}

@media screen and (max-width: 305px) {
  section#presentation {
    margin: 30px 15px;
  }

  section#presentation h2 {
    margin: 10px;
  }
}

/*----------logiciel - compétences -----------------*/
@media screen and (max-width: 1300px) {
  .logiciel h2 {
    margin: 20px 300px 40px;
  }
}

@media screen and (max-width: 1200px) {
  .logiciel {
    padding:  50px;
  }

  .logiciel h2 {
    margin: 20px 300px 40px;
    font-size: 35px;
  }

  .skills {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 980px) {
  .logiciel h2 {
    margin: 20px 200px 40px;
  }

}

@media screen and (max-width: 800px) {
  .logiciel h2 {
    margin: 20px 100px 40px;
  }
}

@media screen and (max-width: 700px) {
  .logiciel {
    padding: 30px;
  }

  .logiciel h2 {
    margin: 40px 100px;
    font-size: 30px;
  }

  .skills {
    grid-template-columns: 1fr;
  }

  .skill {
    flex-direction: row;
    padding: 15px;
  }

  .info span {
    font-size: 18px;
  }

  .info p {
    font-size: 16px;
  }

  .details {
    font-size: 16px;
  }

  .progress {
    height: 8px;
  }
}

@media screen and (max-width: 500px) {
  .logiciel h2 {
    margin: 40px 50px;
  }
  
}

@media screen and (max-width: 480px) {
  .logiciel h2 {
    font-size: 25px;
    margin: 20px 20px;
  }

  .skills {
    grid-template-columns: 1fr;
  }

  .skill {
    padding: 10px;
  }

  .info p {
    font-size: 14px;
  }

  .details {
    font-size: 14px;
  }
}

@media screen and (max-width: 305px) {
  .info span {
    font-size: 16px;
  }

  .details {
    font-size: 13px;
  }

  .logiciel {
    padding: 20px;
  }

  .logiciel h2 {
    margin: 10px;
  }

  .skill img {
    width: 40px;
    height: 40px;
  }
}

/*-------------- Projets  --------------*/
@media screen and (max-width: 1300px) {
  #projets h2 {
    margin: 70px 400px 20px;
  }
}

@media screen and (max-width: 1200px) {
  #projets h2 {
    margin: 70px 300px 20px;
  }
}

@media screen and (max-width: 1024px) {
  .projects {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .project {
    width: 100%;
    max-width: 400px;
  }
}

@media screen and (max-width: 920px) {
  #projets h2 {
    margin: 70px 200px 20px;
  }
}

@media screen and (max-width: 910px) {
  .btn {
    display: flex;
    justify-content: center;
  }
}

@media screen and (max-width: 670px) {
  #projets {
    padding: 20px;
  }

  #projets h2 {
    margin: 70px 120px 20px;
  }
}

@media screen and (max-width: 500px) {
  #projets h2 {
    margin: 50px 80px 20px;
  }

  #projets .texte p {
    margin: 20px 30px 50px;
  }
}

@media screen and (max-width: 430px) {
  #projets h2 {
    font-size: 30px;
  }

  #projets .texte p {
    font-size: 25px;
  }
}

@media screen and (max-width: 370px) {
  #projets {
    padding: 15px;
  }

  #projets h2 {
    margin: 30px 50px 20px;
  }

  #projets .texte p {
    margin: 20px 0 50px;
  }
}

@media screen and (max-width: 305px) {
  #projets h2 {
    margin: 20px;
  }

}
/*-------------- Footer --------------*/
@media screen and (max-width: 500px) {
  .footer-top {
    flex-direction: column;
    gap: 40px;
  }
}