@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;400;700;900&display=swap');


html, body {
  height: 100%;
  margin: 0;
  scroll-behavior: smooth;
  overflow: hidden;
}

main#main-content {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  display: flex;
  flex-direction: column;
  scroll-padding-top: 0;
}


canvas#canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -3;
  pointer-events: none; 
}

.glow-circles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -3;
  pointer-events: none;
}

.glow-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: 
    radial-gradient(circle, rgba(255, 198, 55, 0.4) 0%, 
    rgba(255, 140, 0, 0.2) 60%, transparent 100%);
  box-shadow:
    0 0 80px 40px rgb(255 200 55 / 20%), 
    0 0 160px 60px rgba(255, 150, 0, 0.2);
  filter: blur(10px);
  opacity: 0.8;
  animation: pulseGlow 10s ease-in-out infinite;
}

/* Position personnalisée */
.circle1 {
  top: 100px;
  right: 100px;
  height: 30px;
  width: 30px;
}

.circle2 {
  bottom: 50px;
  left: 30px;
  width: 30px;
  height: 10px;
}

.circle3 {
  top: 95%;
  right: 25%;
  width: 20px;
  height: 20px;
}

.circle4 {
  top: 33%;
  left: 35%;
  width: 20px;
  height: 20px;
}

/* Animation de pulsation légère */
@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .glow-circle {
    width: 20px;
    height: 20px;
  }
  
  .circle1 {
    top: -80px;
    right: -60px;
  }

  .circle2 {
    bottom: 30px;
    left: -60px;
  }

  .circle3 {
    top: 30%;
    right: 20%;
  }
}

@media (max-width: 480px) {
  .glow-circle {
    width: 20px;
    height: 20px;
  }
  
  .circle1 {
    top: -10px;
    right: -10px;
  }

  .circle2 {
    bottom: 15px;
    left: 0px;
  }

  .circle3 {
    top: 70%;
    right: -10%;
  }

  .circle4 {
    top: 45%;
    right: -17%;
  }
}


model-viewer {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -2;
}

.overlay {
  position: fixed;
  inset: 0;
  background-color: transparent;
  z-index: -1;
}

::-webkit-scrollbar {
  display: none;
}


#transition-screen {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 150%;
  background: linear-gradient(135deg, #f97316 0%, #000000 100%);
  z-index: 9999;
  transform: translateY(100%) skewY(5deg);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
  transform-origin: bottom;
}

#transition-screen.show {
  transform: translateY(0%) skewY(0deg);
  opacity: 1;
}

#transition-screen.hide {
  transform: translateY(-100%) skewY(-5deg);
  opacity: 0;
}

/* Animation d'apparition vers le haut */
.slide-up {
  transform: translateY(50px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.slide-up.show {
  transform: translateY(0);
  opacity: 1;
}




.nav-bar {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  background: rgba(24, 24, 27, 0.9);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  backdrop-filter: blur(10px);
  gap: 1.25rem;
  z-index: 50;
}

.nav-btn {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f97316;
  transition: color 0.3s;
}

.nav-btn .icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}

.nav-btn .bubble {
  position: absolute;
  width: 40px;
  height: 40px;
  background: #f97316;
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
}

.nav-btn:hover .bubble {
  opacity: 0.5;
  transform: scale(1.2);
}

.nav-btn:hover .icon {
  transform: scale(1.2);
  color: white;
}

.nav-btn.active .bubble {
  opacity: 1;
  transform: scale(1);
}

.nav-btn.active .icon {
  color: white;
}

/* ------------------- RESPONSIVE ------------------- */
@media (max-width: 768px) {
  .nav-bar {
    bottom: 1rem;
    padding: 0.5rem 1rem;
    gap: 1rem;
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1rem;
    justify-content: space-around;
  }

  .nav-btn {
    width: 42px;
    height: 42px;
  }

  .nav-btn .icon {
    width: 20px;
    height: 20px;
  }

  .nav-btn .bubble {
    width: 36px;
    height: 36px;
  }
}





/* ACCUEIL */

#accueil-image.fullscreen-start {
  width: 100%;         
  height: 100%;          
  max-height: 100vh;     
  border-radius: 9999px;
  object-fit: cover;
  transition: width 2.5s ease, height 2.5s ease; 
}

#accueil-image.final {
  width: 24rem;           
  height: 24rem;
  border-radius: 9999px;
  object-fit: cover;
  transition: width 2.5s ease, height 2.5s ease;
}

/* Media queries pour rendre responsive la taille finale */

@media (max-width: 1024px) {
  #accueil-image.final {
    width: 20rem;
    height: 18rem;
    margin-left: 10%;
  }
  
}

@media (max-width: 768px) {
  #accueil-image.final {
    width: 18rem;
    height: 18rem;
  }
}

@media (max-width: 480px) {
  #accueil-image.final {
    width: 14rem;
    height: 14rem;
  }
}


#accueil-text h1 {
  font-size: 3rem;
  letter-spacing: 5px;
}

#accueil-text p {
  font-size: 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  #accueil-text h1 {
    font-size: 2.5rem;
  }
  #accueil-text p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  #accueil-text h1 {
    font-size: 1rem;
  }
  #accueil-text p {
    font-size: 0.875rem;
  }
}






/* INFOS */
.section-infos {
  width: 100%;
  padding: 100px 0;
  background-color: #111;
  color: #ccc;
  text-align: center;
}


.container h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-top: 4rem;
  margin-bottom: 4rem;
  text-align: left;
  color: #f97316;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.title {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 2rem 0 5rem 0;
  text-align: left;
  color: #f97316;
}

.description {
  color: #aaa;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.timeline {
  position: relative;
  width: 100%;
  height: 35vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
}

.line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #fb923c;
  transform: translateY(-50%);
  z-index: 1;
}

.step {
  position: relative;
  text-align: center;
  z-index: 2;
  width: 20%;
}

.dot {
  width: 16px;
  height: 16px;
  background-color: #fb923c;
  border-radius: 50%;
  margin: 0 auto;
}

.date {
  margin-top: 8px;
  margin-bottom: 25px;
  font-size: 13px;
  color: #999;
}

.step-title {
  margin-top: 5px;
  color: #fb923c;
  font-weight: 600;
}

.step-info {
  font-style: italic;
  font-size: 13px;
  color: #777;
}


.footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: end;
}


.cv-button a {
  display: inline-block;
  padding: 10px 30px;
  background-color: #fb923c;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.cv-button a:hover {
  background-color: #fcd34d1e;
}


/* .social-buttons {
  margin-top: -46px;
  display: flex;
  justify-content: center;
  gap: 25px;
} */

.social-button {
    display: inline-block;
}

.social-button img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

.social-button:hover img {
    transform: scale(1.1);
}

/* Responsive pour tablette */
@media (max-width: 1024px) {
    .timeline {
        flex-wrap: wrap;
        height: auto;
        padding: 50px 0;
    }

    .step {
        width: 45%;
        margin-bottom: 40px;
    }

    .line {
        display: none;
    }
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .timeline {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        margin-bottom: 25%;
    }

    .step {
        width: 100%;
    }

    .dot {
        margin-bottom: 10px;
    }

    .date {
        margin-bottom: 10px;
    }

    .description {
        font-size: 16px;
    }

    .title {
        font-size: 28px;
    }

    .cv-button a {
        padding: 10px 20px;
        font-size: 14px;
        margin-bottom: 28%;

    }

    .footer-actions {
        gap: 15px;
        padding-bottom: 120px;
        align-items: normal;
    }

    .social-button img {
        width: 40px;
        height: 40px;
    }
}





/* COMPETENCES */
.container {
  position: relative;
  width: 90%;
  height: auto;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.titre-competences {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 7rem;
  text-align: left;
  color: #f97316;
  margin-top: 2%;
}


/* Responsive mobile */
@media (max-width: 500px) {
  .container h2 {
    text-align: center;
  }
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.7rem 1.5rem;
  background-color: transparent;
  border: 2px solid #333;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 500;
}

.tab-btn.active {
  background-color: #333;
  color: #fff;
}

.tab-btn:hover {
  background-color: #333;
  color: #fff;
}

.tab-content {
  position: relative;
  min-height: 200px;
}

.tab-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #f97316;
  text-align: center;
}

.tab-content p {
  font-size: 1rem;
  color: #d1d5db;
  margin-bottom: 3rem;
  text-align: center;
}

.tab-panel {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  padding: 1rem;
  background-color: rgba(255 255 255 / 0.2);
  border-radius: 10px;
}

.tab-panel.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  height: auto;
}

/* Carousel */
.carousel-vertical-horizontal {
  display: flex;
  justify-content: center;
  gap: 5%;
  flex-wrap: wrap;
  margin-top: 10%;
  margin-bottom: -3%;
}

.carousel-column {
  width: 20%;
  min-width: 100px;
  position: relative;
  aspect-ratio: 1/1;
}

.carousel-column img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-column img.active {
  opacity: 1;
}

/* Responsive tablette */
@media (max-width: 768px) {
  .carousel-vertical-horizontal {
    gap: 10%;
  }
  .carousel-column {
    width: 22%;
  }
  .carousel-column img {
    width: 80px;
    height: 80px;
  }
}

/* Responsive mobile */
@media (max-width: 480px) {
  .tabs {
    gap: 0.5rem;
  }

  .tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .carousel-vertical-horizontal {
    gap: 5%;
    margin-top: 5%;
  }

  .carousel-column {
    width: 40%;
    margin-bottom: 1rem;
  }

  .carousel-column img {
    width: 70px;
    height: 70px;
  }

}





/* === PROJETS === */
#projets {
  font-family: 'Montserrat', sans-serif;
  width: 100%;
  padding: 40px 20px;
  box-sizing: border-box;
  color: #f97316;
}

#projets h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 3rem;
  margin-left: 16rem;
  color: #f97316;
}

/* Ajustement du titre pour les petits écrans */
@media (max-width: 1024px) {
  #projets h2 {
    margin-left: 8rem;
  }
}
@media (max-width: 768px) {
  #projets h2 {
    margin-left: 0;
    text-align: center;
    font-size: 2rem;
  }
}
@media (max-width: 480px) {
   #projets {
    padding-bottom: 120px; 
  }

  #projets h2 {
    font-size: 1.75rem;
  }
}
@media (max-width: 360px) {
  #projets h2 {
    font-size: 1.5rem;
  }
}

/* Grid container */
#projets .grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-left: 3%;
  padding-right: 3%;
  justify-content: center;
}

/* Cartes */
#projets .grid > div {
  max-width: 320px;
  width: 100%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
  box-sizing: border-box;
  flex-grow: 1;
  flex-basis: 300px;
}

#projets .grid > div:hover {
  transform: translateY(-5px);
}

/* Bouton info */
#projets .grid > div button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background-color: #374151;
  color: white;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.2s ease;
}

#projets .grid > div button:hover {
  background-color: #4B5563;
}

/* Date */
#projets .grid > div p.text-sm:first-of-type {
  color: #9CA3AF;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

/* Titre */
#projets .grid > div h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #f97316;
}

/* Image */
#projets .grid > div img {
  width: auto;
  height: 80px;
  object-fit: contain;
  margin-bottom: -4rem;
  margin-top: 4rem;
}

/* Description */
#projets .grid > div p.text-gray-300 {
  color: #D1D5DB;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  margin-top: 50%;
  flex-grow: 1;
}

/* Bouton */
#projets .grid > div a {
  background-color: #f97316;
  color: white;
  font-size: 0.875rem;
  padding: 0.5rem 6rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  align-self: center;
  margin-bottom: 0.5rem;
  cursor: pointer;
  user-select: none;
}

#projets .grid > div a:hover {
  background-color: #fcd34d1e;
}

/* Technologies */
#projets .grid > div .tech-details {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #9CA3AF;
}

/* === MEDIA QUERIES === */
@media (max-width: 1024px) {
  #projets .grid > div img {
    height: 160px;
  }
}

@media (max-width: 768px) {
  #projets .grid > div {
    min-height: 550px;
    padding: 1rem;
  }

  #projets .grid > div img {
    height: 100px;
  }

  #projets .grid > div a {
    padding: 0.5rem 4rem;
  }
}

@media (max-width: 480px) {
  #projets .grid > div {
    min-height: auto;
    padding: 1rem;
  }

  #projets .grid > div img {
    margin-top: 2rem;
    margin-bottom: 0;
    height: 70px;
  }

  #projets .grid > div a {
    padding: 0.5rem 2.5rem;
    font-size: 0.85rem;
  }

  #projets .grid > div h3 {
    font-size: 1.1rem;
  }

  #projets .grid > div p.text-gray-300 {
    margin-top: 1rem;
  }
}

@media (max-width: 360px) {
  #projets .grid > div a {
    font-size: 0.8rem;
    padding: 0.4rem 1.5rem;
  }

  #projets .grid > div p.text-gray-300 {
    font-size: 0.8rem;
  }
}






/* CONTACT */

.contact-section {
  width: 40%;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
  border-radius: 8px;
  color: white;
}

.contact-section h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 2rem;
  text-align: left;
  color: #f97316;
}

.contact-section form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.label {
  color: #d1d5db;
  font-weight: 600;
}

.input,
.textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid #4b5563;
  background-color: #374151;
  color: white;
  font-size: 1rem;
  resize: none;
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 2px #f97316;
}

.btn {
  background-color: #f97316;
  color: white;
  padding: 0.75rem 1rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #fb923c;
}

/* === MEDIA QUERIES === */
@media (max-width: 1024px) {
  .contact-section {
    width: 50%;
  }
}

@media (max-width: 768px) {
  .contact-section {
    width: 70%;
  }

  .contact-section h2 {
    text-align: center;
  }
}

@media (max-width: 480px) {

  .contact-section {
    width: 90%;
    padding: 1.5rem 1rem 2rem;
  }

  .contact-section form{
    padding-bottom : 120px
  }

  .contact-section h2 {
    font-size: 1.75rem;
    text-align: center;
  }

  .input,
  .textarea {
    font-size: 0.95rem;
    padding: 0.65rem 0.9rem;
  }

  .btn {
    font-size: 0.95rem;
    padding: 0.65rem 1rem;
  }
}

@media (max-width: 360px) {
  .contact-section h2 {
    font-size: 1.5rem;
  }

  .btn {
    font-size: 0.85rem;
  }
}



/* NOTIFICATION */
.notification-wrapper {
  position: fixed;
  top: 0%;
  left: 50%;
  transform: translate(-50%, 100%) scale(0.95); /* départ en bas hors écran */
  opacity: 0;
  transition: none;
  z-index: 9999;
  pointer-events: none;
}

.notification-wrapper.show {
  animation: slideUpFade 4s forwards;
  pointer-events: auto;
}

@keyframes slideUpFade {
  0% {
    transform: translate(-50%, 100%) scale(0.95);
    opacity: 0;
  }
  10% {
    transform: translate(-50%, 50%) scale(1);
    opacity: 1;
  }
  80% {
    transform: translate(-50%, 50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -100%) scale(0.95);
    opacity: 0;
  }
}

.notification-box {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 20px 28px;
  width: 480px;
  max-width: 90vw;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
}

/* Ligne principale */
.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Contenu : icône + texte */
.notification-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Icône verte */
.notification-icon svg {
  flex-shrink: 0;
}

/* Texte */
.notification-text {
  flex: 1;
}

/* Bouton fermer */
.notification-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
}

.notification-close:hover {
  color: #333;
}

/* Barre de chargement */
.notification-bar {
  margin-top: 16px;
  height: 4px;
  background-color: #28a745;
  width: 0%;
  animation: fillBar 4s linear forwards;
}

/* Animation barre */
@keyframes fillBar {
  from { width: 0%; }
  to   { width: 100%; }
}
