/* ================== BODY ================== */
body {
  cursor: url("./images/cursor.png"), auto !important;
  font-family: Montserrat, sans-serif;
  overflow-x: hidden;
  color: white;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(249,255,212,1) 0%, rgba(252,237,207,1) 100%);
  margin: 0;
}

/* ================== POPUP MUSIQUE ================== */
#music-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.1);
  z-index: 2000;
  text-align: center;
  color: #333;
  min-width: 300px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#music-popup.show {
  opacity: 1;
  visibility: visible;
}

#music-popup h3 {
  margin: 0 0 15px 0;
  color: #333;
}

#music-popup p {
  margin: 0 0 20px 0;
  color: #000000;
  line-height: 1.4;
}

.popup-buttons {
  display: flex;
  justify-content: center;
}

.popup-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.popup-btn.close {
  background: #ff6b6b;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-btn.close:hover {
  background: #ff5252;
  transform: translateY(-2px);
}

/* ================== NAVBAR ================== */
#navbar {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  padding: 15px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease-out;
  z-index: 1000;
}

#navbar.transparent {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

#navbar.shrink {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);          
  -webkit-backdrop-filter: blur(10px);  
  width: 70%;                          
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50px;
  padding: 10px 30px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.1);
}

/* NAV LEFT */
.nav-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

#music-toggle {
  height: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#music-toggle:hover {
  transform: scale(1.1);
}

#music-toggle.paused {
  opacity: 0.5;
  filter: grayscale(50%);
}

.logo {
  height: 50px;
}

/* NAV RIGHT */
.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-right: 80px;
  font-size: 130%;
}

#navbar.shrink .nav-right {
  justify-content: flex-end;
}

/* LIENS HOVER - trait sous le texte */
.nav-right a {
  position: relative;
  text-decoration: none;
  color: black;
  margin-left: 20px;
  transition: all 0.3s ease;
}

.nav-right a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: #000;
  transition: width 0.3s ease;
}

.nav-right a:hover::after {
  width: 100%;
}

/* ================== HEADER AVEC FOND ANIME ================== */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  min-height: 600px;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  height: 600px;
}

/* Image de fond du header avec animation scroll */
.header-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./jungle.webp');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: var(--scroll-blur, blur(3px));
  opacity: var(--scroll-opacity, 0.7);
  z-index: -1;
  transition: filter 0.1s ease-out, opacity 0.1s ease-out;
}

.scroll-buffer {
  height: 100vh;
  pointer-events: none;
}

.intro-container {
  position: relative;
  overflow: hidden;
  height: 100vh;
}

.bushes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.header-container {
  position: relative;
  z-index: 1;
}

.plants, .info-header {
  position: relative;
  z-index: 3;
}

/* ================== PLANTS ================== */
.plants {
  position: relative;
  flex: 1;
  pointer-events: none;
  min-height: 500px;
  padding-top: 50px;
}

.plant {
  position: absolute;
  transform-origin: top center;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.1s ease-out;
}

.plant:nth-child(1) { top: -20px;   left: 0px;   height: 320px; z-index: 5; }
.plant:nth-child(2) { top: -22px;   left: 80px;  height: 380px; z-index: 4; }
.plant:nth-child(3) { top: -20px;   left: 320px; height: 350px; z-index: 3; }
.plant:nth-child(4) { top: -30px; left: 200px; height: 450px; z-index: 2; }
.plant:nth-child(5) { top: -60px; left: 250px; height: 280px; z-index: 1; }

/* ================== INFO HEADER (PORTRAIT + NUAGE) ================== */
.info-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 20px;
  width: 400px;
  height: 500px;
}

.portrait {
  position: absolute;
  width: 200%;
  z-index: 1;
  top: 41%;
  left: 10%;
  transform: translate(-50%, -50%);
}

.nuage {
  position: absolute;
  width: 160%;
  z-index: 2;
  top: 55%;
  left: 17%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ================== PAPILLON ================== */
.papillon {
  position: absolute;
  width: 35px;
  height: auto;
  z-index: 3;
  left: -25%;
  top: 45%;
  animation: vole 6s ease-in-out infinite;
  transform: scaleX(-1);
  transform-origin: center;
}

@keyframes vole {
  0% {
    transform: scaleX(-1) translate(0, 0) rotate(0deg) scale(1);
  }
  25% {
    transform: scaleX(-1) translate(-30px, -20px) rotate(-5deg) scale(1.1);
  }
  50% {
    transform: scaleX(-1) translate(-15px, -40px) rotate(3deg) scale(1);
  }
  75% {
    transform: scaleX(-1) translate(10px, -25px) rotate(-7deg) scale(0.9);
  }
  100% {
    transform: scaleX(-1) translate(0, 0) rotate(0deg) scale(1);
  }
}

.h2-papillon {
  display: flex;
  align-items: center;
  gap: 60px;
}

.h2-papillon h2 {
  margin: 0;
}

/* Papillon volant */
.papillon2 {
  width: 100px !important;
  height: auto;
  margin-left: 60px;
  transform: rotate(-10deg);
  animation: papillon-vol 4s ease-in-out infinite alternate;
}

@keyframes papillon-vol {
  0% {
    transform: translateY(0px) translateX(0px) rotate(-10deg);
  }
  25% {
    transform: translateY(-5px) translateX(3px) rotate(-5deg);
  }
  50% {
    transform: translateY(-10px) translateX(0px) rotate(0deg);
  }
  75% {
    transform: translateY(-5px) translateX(-3px) rotate(-5deg);
  }
  100% {
    transform: translateY(0px) translateX(0px) rotate(-10deg);
  }
}

/* ================== SECTION PRÉSENTATION ================== */
.presentation {
  padding: 80px 50px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  row-gap: 10px;
  align-items: start;
}

.presentation img {
  width: 100%;
  border-radius: 20px;
  grid-row: 1 / 5;
}

.presentation h2 {
  font-size: 3rem;
  font-weight: 400;
  color: #333;
  margin: 0 0 0px 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.presentation h2::before {
  content: "🧚🏾‍♀️";
  font-size: 2.5rem;
}

.container-presentation {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 0px 0;
  padding: 0;
  list-style: none;
}

.tag {
  background: #F3F4F6;
  color: #6B7280;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
}

.presentation p {
  color: #000000;
  line-height: 1.7;
  font-size: 1rem;
  margin: 0 0 0px 0;
}

.presentation div {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: #000000;
  padding: 12px 60px;
  text-decoration: none;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  border: 1px solid #E5E7EB;
  font-weight: 500;
  grid-column: 2;
  justify-self: left;
  width: auto; 
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.arrow svg {
  width: 20px;
  height: 20px;
}

.arrow g {
  transition: all 200ms ease-in-out;
  transform: translate(100px,100px) rotate(-135deg) scale(1.8) translate(-21.5px,-23px);
}

/* ================== SECTION PROJETS ================== */
.projets {
  padding: 80px 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.masonry {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tile {
  flex: 1 0 30%;
  margin-bottom: 10px;
}

.tile img, .tile video {
  width: 100%;
  display: block;
}

.pot-plante-gif {
  position: absolute;
  bottom: 40%;
  left: 0;
  width: 60px;
  height: auto;
  transform: translateY(-10px);
  pointer-events: none;
}

/* ================== FILTRES PROJETS ================== */
.filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 60px;
  flex-wrap: wrap;
  position: relative;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid #000;
  color: #000;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: Montserrat, sans-serif;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.filter-btn.active {
  background: #143a16a8;
  color: #fff;
  border-color: #000;
}

.filter-btn.active:hover {
  background: #333;
}

.container-derniers-projets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.projets {
  position: relative;
  transition: transform 0.3s ease;
}

.projets h2 {
  font-size: 3rem;
  font-weight: 400;
  color: #333;
  margin: 0 0 0px 0;
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
}

.projet:hover {
  transform: translateY(-10px);
}

.projet-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.projet-img {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 15px;
}

.projet-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.projet:hover .projet-img img {
  transform: scale(1.05);
}

/* ================== TAGS EN HAUT À GAUCHE ================== */
.projet-tags {
  position: absolute;
  top: 5px;
  left: 15px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.tag {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #000000;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 400;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ================== ANIMATION TITRE AU HOVER ================== */
.projet-title {
  font-size: 1.4rem;
  font-weight: 500;
  color: #000000;
  margin: 10px 0 8px 0;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.projet:hover .projet-title {
  transform: translateY(-5px);
  color: #0f3612dd;
}

.projet-description {
  color: #000000;
  line-height: 1.5;
  font-size: 0.9rem;
  margin: 0;
}

/* ================== POPUP PROJET AMÉLIORÉ ================== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(5px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: rgba(255, 255, 255, 0.90);
  border-radius: 20px;
  max-width: 900px;
  width: 90%;
  position: relative;
  overflow-y: auto;
  transform: scale(0.7);
  transition: transform 0.3s ease;
}

.popup-overlay.show .popup-content {
  transform: scale(1);
}

.popup-quit {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

.popup-quit button {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.popup-quit button:hover {
  background: #ff6b6b;
  color: white;
  transform: scale(1.1);
}

/* ================== NOUVEAU LAYOUT POPUP ================== */
.popup-inner {
  padding: 30px;
}

.popup-header {
  text-align: center;
  margin-bottom: 20px;
}

.popup-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
}

.popup-category {
  font-size: 1rem;
  color: #000000;
  margin: 0;
}

.popup-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 20px;
  align-items: start;
}

.popup-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.popup-image {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
}

.popup-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.popup-description {
  color: #000000;
  line-height: 1.5;
  margin: 0;
  font-size: 0.9rem;
}

.popup-missions {
  margin: 0;
}

.popup-missions h3 {
  font-size: 1rem;
  color: #000000;
  margin: 0 0 10px 0;
}

.popup-missions ul {
  color: #000000;
  line-height: 1.4;
  margin: 0;
  padding-left: 20px;
  font-size: 0.85rem;
}

.popup-technologies {
  margin: 0;
}

.popup-technologies h3 {
  font-size: 1rem;
  color: #000000;
  margin: 0 0 10px 0;
}

.tech-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.tech-logo {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.tech-name {
  font-size: 0.75rem;
  color: #000000;
  text-align: center;
}

.popup-footer {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid #E5E7EB;
}

.btn-voir-projet {
  background: transparent;
  color: #000;
  padding: 10px 25px;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  font-size: 0.9rem;
}

.btn-voir-projet:hover {
  color: #15751c;
  transform: translateY(-2px);
}

/* ====== Mosaïque dans le popup (projet 1) ====== */
.popup-left .masonry {
  column-count: 2;         
  column-gap: 40px;
  margin-top: 25px; 
}

@media (min-width: 900px) {
  .popup-left .masonry {
    column-count: 2;
    margin-top: 20px;   
  }
}

.popup-left .masonry .tile {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  transform: scale(0.6);
  transition: transform 0.3s;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.popup-left .masonry .tile-media {
  width: 100%;
  height: auto;
  display: block;
}

.popup-left .masonry .tile {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.popup-left .masonry .tile:hover {
  transform: scale(1.35);
}

.popup-video {
  width: 70%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

footer {
  background-color: #00000010;
  padding: 30px 40px;
  color: #000;
}

.footer-content {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 200px;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-info {
  width: 200%;
  display: flex;
  flex-direction: column;
}

.footer-info .socials {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-info .social {
  color: #000;
  border: 1px solid #00000000;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
  border-radius: 40px;
  padding: 2px 10px;
  margin: -2px -10px;
  transition: all 0.3s, color 0.1s, background-color 0.1s;
  transition-timing-function: cubic-bezier(0.44, -0.2, 0, 1.57);
}

.footer-info .social:hover {
  padding: 8px 10px;
  margin: -8px -20px;
  background-color: #15751c22;
  color: #183522;
  border: 1px solid #214a2f;
}

.footer-info .social:active {
  padding: 2px 10px;
  margin: -2px -10px;
}

.footer-info .social img,
.footer-info .social-icon {
  width: 20px;
}

.footer-description {
  display: flex;
}

.footer-copyright {
  width: 150%;
}

.footer-copyright-text {
  font-size: 14px;
  color: #00000090;
}

.footer-copyright img {
  width: 10%;
  height: 10%;
}

.skills-section {
  height: 400svh;
  position: relative;
}

.stuck-layer {
  position: sticky;
  top: 0;
  height: 100svh;
  width: 100%;
  perspective: 1200px;
  overflow: visible;
}

.skill {
  position: absolute;
  width: 10vmin;
  transform-style: preserve-3d;
  opacity: 0;
  filter: blur(5px);
  transition: transform 0.1s, opacity 0.1s, filter 0.1s;
}

@keyframes zoom-in {
  0%   { transform: translateZ(-800px); opacity: 0; filter: blur(5px); }
  50%  { transform: translateZ(0px); opacity: 1; filter: blur(0px); }
  100% { transform: translateZ(800px); opacity: 0; filter: blur(5px); }
}

@supports (animation-timeline: scroll()) {
  .skill {
    animation: zoom-in linear both;
    animation-timeline: scroll(root block);
  }
}

.palmier-gif {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 300px;
  height: auto;
  z-index: 20;
}

/* ================== RESPONSIVE AMÉLIORÉ ================== */

/* Écrans moyens - ajustement portrait */
@media (min-width: 425px) and (max-width: 768px) {
  .portrait {
    top: 15% !important;
    left: 15% !important;
  }
  
  .nuage {
    top: 25% !important;
    left: 20% !important;
  }
  
  .papillon {
    top: 20% !important;
    left: -10% !important;
  }
}

/* Très petits écrans (smartphones en portrait) */
@media (max-width: 480px) {
  #music-popup {
    min-width: 280px;
    padding: 20px;
    margin: 0 20px;
  }

  #navbar {
    padding: 10px 15px;
    top: 10px;
  }

  #navbar.shrink {
    width: 90%;
    padding: 8px 20px;
  }

  .nav-right {
    margin-right: 0;
    font-size: 100%;
    gap: 10px;
  }

  .nav-right a {
    margin-left: 10px;
    font-size: 0.9rem;
  }

  #music-toggle, .logo {
    height: 35px;
  }

  /* Header responsive */
  .header-container {
    flex-direction: column;
    align-items: center;
    min-height: 500px;
    height: auto;
    padding: 10px;
  }

  .intro-container {
    height: 80vh;
  }

  .plants {
    width: 100%;
    height: 200px;
    padding-top: 10px;
    min-height: 200px;
  }

  .plant {
    height: 120px !important;
  }

  .plant:nth-child(1) { left: 5px; top: -10px; }
  .plant:nth-child(2) { left: 40px; top: -12px; }
  .plant:nth-child(3) { left: 120px; top: -10px; }
  .plant:nth-child(4) { left: 80px; top: -15px; }
  .plant:nth-child(5) { left: 100px; top: -30px; }

  .info-header {
    width: 250px;
    height: 280px;
    margin: 10px 0;
  }

  .nuage {
    width: 120%;
  }

  .portrait {
    width: 140%;
  }

  .papillon {
    width: 20px;
    left: -10%;
  }

  /* Présentation responsive */
  .presentation {
    padding: 40px 20px;
    display: block;
    gap: 20px;
  }

  .presentation img {
    width: 100%;
    max-width: 250px;
    margin: 0 auto 30px;
    display: block;
  }

  .presentation h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
  }

  .h2-papillon {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .papillon2 {
    width: 60px !important;
    margin-left: 0;
  }

  .container-presentation {
    justify-content: center;
    margin-bottom: 20px;
  }

  .presentation p {
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 20px;
  }

  .btn-secondary {
    padding: 10px 30px;
    justify-self: center;
    text-align: center;
    margin: 0 auto;
  }

  /* Projets responsive */
  .projets {
    padding: 40px 20px;
  }

  .projets h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .filters {
    gap: 8px;
    margin-bottom: 40px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .pot-plante-gif {
    width: 40px;
    bottom: 35%;
  }

  .container-derniers-projets {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .projet-img {
    height: 200px;
  }

  .projet-title {
    font-size: 1.2rem;
  }

  .projet-description {
    font-size: 0.85rem;
  }

  /* Popup responsive */
  .popup-content {
    width: 95%;
    max-height: 90vh;
  }

  .popup-inner {
    padding: 20px 15px;
  }

  .popup-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .popup-title {
    font-size: 1.3rem;
  }

  .popup-left .masonry {
    column-count: 1;
    column-gap: 0;
  }

  .popup-left .masonry .tile {
    transform: scale(1);
    margin-bottom: 15px;
  }

  .popup-video {
    width: 100%;
  }

  .tech-logos {
    gap: 8px;
  }

  .tech-logo {
    width: 25px;
    height: 25px;
  }

  .tech-name {
    font-size: 0.7rem;
  }

  /* Footer responsive */
  .footer-content {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  footer {
    padding: 20px 15px;
  }

  .footer-info .socials {
    gap: 12px;
  }

  .footer-info .social {
    gap: 12px;
  }

  .footer-copyright-text {
    font-size: 12px;
  }

  /* Skills section responsive */
  .skills-section {
    height: 200svh;
  }

  .skill {
    width: 12vmin;
  }

  .palmier-gif {
    width: 150px;
    top: -20px;
    right: -20px;
  }
}

/* Smartphones en paysage et petites tablettes */
@media (min-width: 481px) and (max-width: 768px) {
  #navbar {
    padding: 12px 25px;
  }

  #navbar.shrink {
    width: 85%;
    padding: 10px 25px;
  }

  .nav-right {
    margin-right: 20px;
    font-size: 110%;
    gap: 15px;
  }

  #music-toggle, .logo {
    height: 40px;
  }

  /* Header */
  .header-container {
    min-height: 500px;
    height: 500px;
    padding: 15px;
  }

  .intro-container {
    height: 75vh;
  }

  .plants {
    height: 350px;
    padding-top: 25px;
    min-height: 350px;
  }

  .plant {
    height: 200px !important;
  }

  .plant:nth-child(1) { left: 10px; }
  .plant:nth-child(2) { left: 50px; }
  .plant:nth-child(3) { left: 150px; }
  .plant:nth-child(4) { left: 100px; }
  .plant:nth-child(5) { left: 120px; }

  .info-header {
    width: 320px;
    height: 360px;
    margin-left: 15px;
  }

  .nuage {
    width: 150%;
    top: 52%;
    left: 18%;
  }

  .portrait {
    width: 190%;
    top: 39%;
    left: 12%;
  }

  .papillon {
    width: 25px;
    left: -15%;
    top: 42%;
  }

  /* Présentation */
  .presentation {
    padding: 60px 30px;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .presentation img {
    max-width: 300px;
    margin: 0 auto;
    grid-row: auto;
  }

  .presentation h2 {
    font-size: 2.5rem;
    text-align: center;
  }

  .h2-papillon {
    justify-content: center;
    gap: 40px;
  }

  .papillon2 {
    width: 80px !important;
    margin-left: 20px;
  }

  .container-presentation {
    justify-content: center;
  }

  .btn-secondary {
    justify-self: center;
    margin: 0 auto;
  }

  /* Projets */
  .projets {
    padding: 60px 30px;
  }

  .projets h2 {
    font-size: 2.5rem;
  }

  .container-derniers-projets {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .pot-plante-gif {
    width: 50px;
  }

  /* Popup */
  .popup-content {
    width: 90%;
  }

  .popup-inner {
    padding: 25px 20px;
  }

  .popup-left .masonry {
    column-count: 2;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 25px;
  }

  footer {
    padding: 25px 20px;
  }

  /* Skills */
  .palmier-gif {
    width: 200px;
  }
}

/* Tablettes */
@media (min-width: 769px) and (max-width: 1024px) {
  #navbar {
    padding: 15px 30px;
  }

  #navbar.shrink {
    width: 80%;
  }

  .nav-right {
    margin-right: 40px;
    font-size: 120%;
  }

  /* Header */
  .header-container {
    padding: 20px;
    min-height: 580px;
  }

  .plants {
    min-height: 400px;
    padding-top: 30px;
  }

  .plant {
    height: 250px !important;
  }

  .plant:nth-child(1) { left: 20px; }
  .plant:nth-child(2) { left: 100px; }
  .plant:nth-child(3) { left: 280px; }
  .plant:nth-child(4) { left: 180px; }
  .plant:nth-child(5) { left: 220px; }

  .info-header {
    width: 350px;
    height: 420px;
  }

  .papillon {
    width: 30px;
    left: -20%;
  }

  /* Présentation */
  .presentation {
    padding: 70px 40px;
    grid-template-columns: 250px 1fr;
    gap: 50px;
  }

  .presentation h2 {
    font-size: 2.8rem;
  }

  .h2-papillon {
    gap: 50px;
  }

  .papillon2 {
    width: 90px !important;
    margin-left: 40px;
  }

  /* Projets */
  .projets {
    padding: 70px 40px;
  }

  .container-derniers-projets {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }

  /* Footer */
  .footer-content {
    gap: 100px;
  }

  footer {
    padding: 25px 30px;
  }

  /* Skills */
  .palmier-gif {
    width: 250px;
  }
}

/* Écrans de bureau moyens */
@media (min-width: 1025px) and (max-width: 1200px) {
  .presentation {
    grid-template-columns: 280px 1fr;
    gap: 55px;
  }

  .container-derniers-projets {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    gap: 150px;
  }
}

/* Grands écrans */
@media (min-width: 1201px) {
  .presentation {
    padding: 100px 60px;
  }

  .projets {
    padding: 100px 60px;
  }

  .container-derniers-projets {
    gap: 50px;
  }

  .footer-content {
    gap: 250px;
  }

  .palmier-gif {
    width: 350px;
  }
}

/* Orientation paysage pour mobiles */
@media (max-height: 500px) and (orientation: landscape) {
  .intro-container {
    height: 100vh;
  }

  .header-container {
    min-height: 400px;
    flex-direction: row;
  }

  .plants {
    height: 300px;
    min-height: 300px;
  }

  .plant {
    height: 200px !important;
  }

  .info-header {
    width: 300px;
    height: 300px;
  }

  #navbar {
    top: 10px;
  }

  .nav-right {
    font-size: 100%;
  }

}
