:root {
  --fond: #def8fb;
  --texte: #26363c;
  --texteblanc: #ffffff;
  --jaune: #adf28d;
  --rouge: #f69696;
  --bleu: #0053ad;
  --gris: #a1a1a1;
  --grishover: #686868;
}

html {
  scroll-behavior: smooth;
}

body {
  height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: flex-start;
  align-items: center;
  background-color: var(--fond);
  line-height: 1.5;
  font-family: ui-sans-serif, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  font-feature-settings: normal;
  font-variation-settings: normal;
  scroll-behavior: smooth;
}

h1, h2, h3, h4 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

h2 {
  font-size: 1rem;
}

a {
  text-decoration-line: none;
  text-decoration-color: var(--gris);
  text-decoration-thickness: 2px;
  text-underline-offset: 4.5px;
  color: rgb(0, 0, 0);
  transition: text-decoration-line 0.8s ease;
}

a:hover {
  text-decoration-color: var(--grishover);
}

body::before,
body::after {
  position: absolute;
  left: 0;
  top: 0;
  content: '';
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 40%;
}

body::before {
  background: #ffffff;
  filter: url(#noiseFilter);
  position: fixed;
}

img {
  border-radius: 10px;
  max-width: 100%;
  height: 100%;
}

/* ABOUT */
#about {
  padding-top: 2rem;
}

/* LISTE SKILLS */
.competence-about {
  margin-top: 3rem;
  padding-bottom: 3rem;
}

.list-skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  height: 100%;
  padding-bottom: 30px;
  padding-top: 30px;
  border-bottom: 1px solid var(--gris);
}

.petit-texte-about {
  margin-top: 3rem;
}
/* DROPDOWN */
.dropdown {
  position: fixed;
  top: 5%;
  right: 2rem;
  display: inline-block;
  background: hsla(0, 0%, 92%, 0.5);
  border-radius: 22px;
  -webkit-backdrop-filter: blur(11.5px);
  backdrop-filter: blur(11.5px);
  padding: 0.2rem;
  z-index: 998;
}
.dropdown-content {
  margin-top: 0rem;
  display: none;
  position: absolute;
  background-color: hsla(0, 0%, 92%, 0.5);
  min-width: 50px;
  max-width: 56px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 22px;
  -webkit-backdrop-filter: blur(11.5px);
  backdrop-filter: blur(11.5px);
  top: 100%;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 0.3s ease;
}
.dropdown-content a {
  color: black;
  padding: 16px 16px;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
.dropdown-content a:hover {
  background-color: var(--bleu);
  border-radius: 22px;
  color: white;
}
.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  visibility: visible;
}
.dropbtn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.4);
  padding: 1rem;
  border-radius: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.flag-icon {
  width: 24px;
  height: 24px;
}
.active-flag{
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 22px;
}
.active-flag-middle{
  background-color: rgba(0, 0, 0, 0.1);

}
header #menu.sticky a {
  color: var(--texte);
}


/* NAVBAR */
header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 0 2rem;
}

header>:first-child :first-child {
  color: var(--couleur-1)
}

#menu {
  border-radius: 50px;
  -webkit-backdrop-filter: blur(11.5px);
  backdrop-filter: blur(11.5px);
  position: fixed;
  z-index: 999;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  transition: background 0.6s;
  background: hsla(0, 0%, 92%, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  height: 58px;
  padding: 0 2rem;
}

header #menu .nav-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

header #menu a {
  width: 100px;
  text-decoration: none;
  border-radius: 22px;
  text-align: center;
  flex-shrink: 0;
  font-size: 12px;
  line-height: 50px;
  color: #26363c;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

header #menu div a.active,
header #menu div a:hover {
  color: var(--bleu);
}

header #menu.sticky {
  background: hsla(0, 0%, 92%, 0.5);
  position: fixed;
}

header #menu.sticky a {
  color: var(--texte);
}
/* Cacher la navbar sur tel */

@media only screen and (max-width: 768px) {
  #menu {
    display: none;
  }
  .dropdown {
    display: block;
    position: fixed;
    top: 5%;
    right: 2rem;
    background: hsla(0, 0%, 92%, 0.5);
    border-radius: 22px;
    -webkit-backdrop-filter: blur(11.5px);
    backdrop-filter: blur(11.5px);
    padding: 0.2rem;
    z-index: 998;
  }
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: hsla(0, 0%, 92%, 0.5);
    min-width: 50px;
    max-width: 56px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 22px;
    -webkit-backdrop-filter: blur(11.5px);
    backdrop-filter: blur(11.5px);
    top: 100%;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 0.3s ease;
  }
  .dropdown-content a {
    color: black;
    padding: 16px 16px;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .dropdown-content a:hover {
    background-color: var(--bleu);
    border-radius: 22px;
    color: white;
  }
  .dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
  }
  .dropbtn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .flag-icon {
    width: 24px;
    height: 24px;
  }
  .active-flag {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 22px;
  }
  .active-flag-middle {
    background-color: rgba(0, 0, 0, 0.1);
  }
}

.inside {
  max-width: 35rem;
  min-width: 808px;
  align-items: center;
  display: flex;
}

.tout {
  padding-top: 6rem;
}

.hero {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 712px;
  height: auto;
  padding: 3rem;
  margin-top: 3rem;
  gap: 3rem;
  background:
      linear-gradient(to right, var(--gris) 1px, transparent 1px) 0 0,
      linear-gradient(to right, var(--gris) 1px, transparent 1px) 0 100%,
      linear-gradient(to left, var(--gris) 1px, transparent 1px) 100% 0,
      linear-gradient(to left, var(--gris) 1px, transparent 1px) 100% 100%,
      linear-gradient(to bottom, var(--gris) 1px, transparent 1px) 0 0,
      linear-gradient(to bottom, var(--gris) 1px, transparent 1px) 100% 0,
      linear-gradient(to top, var(--gris) 1px, transparent 1px) 0 100%,
      linear-gradient(to top, var(--gris) 1px, transparent 1px) 100% 100%;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  position: relative;
}

.projet-img {
  padding: 15px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 90%;
  max-width: 50%;
  max-height: 100%;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(.32, .52, .56, .4), transform 0.4s cubic-bezier(.32, .52, .56, .4);
}

.hero:hover .projet-img {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3em;
}

.descr {
  flex-direction: row;
  display: flex;
  font-size: 1rem;
  padding-right: 1rem;
}

.projet-descr {
  padding-right: 0.8rem;
  color: var(--gris);
}

.buttons {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 2em;
}

.button {
  padding: 1em 3em;
  border: 1px solid var(--texte);
  font-size: 15px;
  border-radius: 12px;
}

.primary {
  background-color: var(--texte);
  color: var(--texteblanc);
}

/* Bulles */
.bulles-cont {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: -2;
  width: 100vh;
  height: 100vh;
  position: fixed;
  right: -5em;
}

.bulles {
  border-radius: 100px;
  filter: blur(60px);
}

.jaune {
  background-color: var(--jaune);
  position: absolute;
  top: 200px;
  left: 100px;
  height: 200px;
  width: 200px;
  animation: jaune 8s infinite ease;
}

.bleue {
  background-color: var(--bleu);
  position: absolute;
  top: 80px;
  right: -20px;
  height: 200px;
  width: 250px;
  animation: bleue 8s infinite ease;
}

.rouge {
  background-color: var(--rouge);
  position: absolute;
  right: 0;
  top: 300px;
  height: 250px;
  width: 200px;
  animation: rouge 8s infinite linear;
}

@keyframes jaune {
  0% { top: 200px; left: 560px; transform: scale(1); }
  30% { top: 300px; left: 400px; transform: scale(1.2); }
  60% { top: 100px; left: 450px; transform: scale(1.3); }
  100% { top: 200px; left: 600px; transform: scale(1); }
}

@keyframes verte {
  0% { top: 80px; right: -20px; transform: scale(1.2); }
  30% { top: 300px; right: -20px; transform: scale(1); }
  60% { top: 200px; right: 100px; transform: scale(1); }
  100% { top: 80px; right: -20px; transform: scale(1.2); }
}

@keyframes rouge {
  0% { top: 250px; right: 0px; transform: scale(1); }
  30% { top: 150px; right: 150px; transform: scale(1.4); }
  60% { top: 250px; right: 100px; transform: scale(1); }
  100% { top: 250px; right: 0px; transform: scale(1); }
}

/* Contact */
#contact {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 4rem;
  width: 100%;
}
.gras{
  font-weight: 600;
}
.contact {
  display: flex;
  width: 50%;
  align-items: center;
  padding-top: 1rem;
}

.project-date {
  padding-right: 0.4rem;
  color: #0053ad;
}

.project-date-2 {
  padding-right: 0.4rem;
  color: var(--gris);
}

.project-date:hover {
  color: #2081C3;
}

/* Footer */

.footer {
  margin-top: 2rem;
  transition: background 0.6s;
  background: hsla(0, 0%, 92%, 0.5);
  display: flex;
  justify-content: center;
  padding-bottom: 2rem;
  padding-top: 2rem;
  text-align: center;
  align-items: center;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}
.footer-taille{
  display: flex;
}
/* Media Queries for Responsiveness */
@media only screen and (max-width: 1000px) {
  body {
      margin: 1em;
  }

  .inside {
      max-width: 100%;
      min-width: auto;
      padding: 1rem;
  }

  .tout {
      padding-top: 4rem;
  }

  .hero {
      flex-direction: column;
      width: 100%;
      padding: 2rem;
      margin-top: 4rem;
      gap: 2rem;
  }

  .projet-img {
      position: static;
      transform: none;
      height: auto;
      max-width: 100%;
      opacity: 1;
  }

  .nav-links {
      flex-direction: column;
      gap: 0.5rem;
  }

  .dropdown {
      position: absolute;
      top: 100%;
      right: 0;
  }

  .dropdown-content {
      position: static;
      top: auto;
      right: auto;
      width: 100%;
  }

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

@media only screen and (max-width: 768px) {
  header {
      padding: 0 1rem;
  }

  #menu {
      width: 90%;
      padding: 0 1rem;
  }

  .hero {
      padding: 1rem;
  }

  .contact {
      width: 100%;
      flex-direction: column;
      align-items: flex-start;
  }

  .footer {
      padding-top: 3rem;
  }
}

@media only screen and (max-width: 480px) {
  h1, h2, h3, h4 {
      font-size: 0.9rem;
  }

  .hero {
      padding: 0.5rem;
  }

  .buttons {
      flex-direction: column;
      gap: 1em;
  }

  .button {
      padding: 0.8em 2em;
  }

  .footer {
      padding-top: 2rem;
  }
}

/* Burger menu */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.burger-line {
  width: 30px;
  height: 3px;
  background: var(--texte);
  display: block;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media only screen and (max-width: 768px) {
  .nav-links {
      display: none;
      flex-direction: column;
      width: 100%;
  }

  .nav-links.active {
      display: flex;
  }

  .burger-menu {
      display: flex;
  }

  header {
      flex-direction: column;
      align-items: flex-start;
  }

  #menu {
      width: 100%;
  }
}

/* CONTACT */
.links:hover{
  color: var(--bleu);
}

.contact-me {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  width: 100%;
  padding-top: 2rem;
  gap: 1rem;
}

.italique {
  font-style: normal;
  padding-bottom: 2rem;
}

/* EMAIL ME */
.blur-background {
  position: relative;
  width: 200px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s;
  cursor: pointer;
  transition: 0.6 ease;
}
.blur-background:hover {
  transform: scale(1.05);
}
.blur-background:active {
  transform: scale(0.95);
}

.button-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: #000000;
  font-size: 16px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  
}
