/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'poppins', sans-serif;
  scroll-behavior: smooth;
}

/* Style général de la scrollbar */
::-webkit-scrollbar {
  width: 25px; /* Largeur verticale */
  height: 10px; /* Hauteur horizontale (si besoin) */
}

/* Couleur de fond (la piste de la scrollbar) */
::-webkit-scrollbar-track {
  background: #222; 
}

/* Couleur de la barre elle-même */
::-webkit-scrollbar-thumb {
  background: #3498db;  /* Bleu par exemple */
}

/* Au survol */
::-webkit-scrollbar-thumb:hover {
  background: #1c587f;
}

/* Global */
body {
  /* background-color: #121212; */
  color: #eaeaea;
  line-height: 1.6;
  overflow-x: hidden;
  z-index: 3;
}

/* Navbar */

.navbar {
  width: 100%;
  background-color: #1e1e1e;
  position: sticky;
  top: 0;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  animation: show-content 1.5s linear forwards;
  animation-delay: 1.2s;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
}


@keyframes show-content{
  100%{
    visibility: visible;
    opacity: 1;
  }
}

.logo {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: bold;
  color: #00bfff;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-decoration: none;
  outline: none;
  border: none;
}

.logo:hover {
  transform: scale(1.1);
}

.logo:focus,
.logo:active {
  outline: none !important;
  border: none !important;
  text-decoration: none;
}


/* Navigation Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px; 
}

.nav-links li a {
  color: #eaeaea;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav ul li a {
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #00bfff;
  border-bottom: 2px solid #0099cc;
}

/* Burger Icon */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  top: 15px;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin-left: 10rem;
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: -100%;
    background-color: #1e1e1e;
    width: 100%;
    transition: left 0.3s ease;
    padding: 20px 0;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    text-align: center;
    margin: 10px 0;
  }

   .home {
    flex-direction: column;
    padding: 20px;
    align-items: center;
    text-align: center;
  }

  .home-info h1 {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .home-info h2 {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .home-info span {
    display: block;
    margin-top: 5px;
    font-size: 1.2rem;
  }

  .home-info p {
    font-size: 1rem;
    line-height: 1.5;
    padding: 0 10px;
    margin-bottom: 20px;
  }

  .btn-sci {
    flex-direction: column;
    gap: 20px;
  }

  .btn-sci .btn {
    padding: 12px 24px;
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .sci {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .sci a i {
    font-size: 1.5rem;
  }

  .home-img {
    margin-top: 1px;
  }

  .img-box {
    max-width: 200px;
    margin: auto;
  }

  .img-item img {
    width: 100%;
    height: auto;
    border-radius: 50%;
  }

}


/* home Section */
.home{
  display: flex;
  gap: 50px;
  align-items: center;
  height: 100vh;
  padding: 60px 9% 0;
  color: #fff;
  visibility: hidden;
  opacity: 0;
  animation: show-content 1.5s linear forwards;
  animation-delay: 1.5;
}

.home-info h1{
  font-size: 70px;
}

.home-info h2{
  font-size: 50px;
  margin-top: -10px;
}

.home-info .projet{
  color: #0099cc;
  font-weight: 500;
}

.home-info h2 span{
  position: relative;
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: .7px #0099cc;
  animation: display-text 16s linear infinite;
  animation-delay: calc(-4s * var(--i));
}

.home-info h2 span::before{
  content: attr(data-text);
  position: absolute;
  width: 0;
  border-right: 2px solid #0099cc;
  color: #0099cc;
  white-space: nowrap;
  overflow: hidden;
  animation: fill-text 4s linear infinite;
}

@keyframes fill-text{
  10%,100%{
    width: 0;
  }

  70%,90%{
    width: 100%;
  }
}

@keyframes display-text{
  25%,100%{
    display: none;
  }
}

.home-info p{
  font-size: 16px;
  margin: 10px 0 25px;
}

.home-info .btn-sci{
  display: flex;
  align-items: center;
}

.btn{
  display: inline-block;
  padding: 10px 30px;
  background: #0099cc;
  border: 2px solid #0099cc;
  border-radius: 40px;
  text-decoration: none;
  box-shadow: 0 0 10px #0099cc;
  font-size: 16px;
  font-weight: 800;
  color: #1f242d;
  transition: .5s;
}

.btn:hover{
  background: transparent;
  color: #0099cc;
  box-shadow: none;
}

.home-info .btn-sci .sci{
  margin-left: 20px;
}

.home-info .btn-sci .sci a{
  display: inline-flex;
  padding: 8px;
  text-decoration: none;
  border: 2px solid #0099cc;
  border-radius: 50%;
  font-size: 20px;
  color: #fff;
  margin: 0 5px;
}

.home-info .btn-sci .sci a:hover{
  background: #0099cc;
  color: #1f242d;
  box-shadow: 0 0 10px #0099cc;
  transition: .5s;
}

.home-img .img-box{
  position: relative;
  width: 35vw;
  height: 35vw;
  border-radius: 50%;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.home-img .img-box::before,
.home-img .img-box::after{
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  /* background: conic-gradient(transparent, transparent, transparent, #1e1e1e); */
} 

.home-img .img-box .img-item{
  position: relative;
  width: 100%;
  height: 100%;
  background: #111;
  border: .1px solid #111;
  border-radius: 50%;
  display: flex;
  z-index: 1;
  justify-content: center;
  overflow: hidden;
} 

.home-img .img-box .img-item img{
  position: absolute;
  display: block;
  top: 30px;
  width: 65%;
  object-fit: cover;
  mix-blend-mode: lighten;
}

.bars-animation{
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  z-index: -1;
}

.bars-animation .bar{
  width: 100%;
  height: 100%;
  background: #111;
  transform: translateY(-100%);
  animation: show-bars .5s ease-in-out forwards;
  animation-delay: calc(.1s * var(--i));
}

@keyframes show-bars{
  100%{
    transform: translateY(0%);
  }
}


/* Footer */
.footer {
  background-color: #1b1b1b;
  padding: 20px;
  text-align: center;
  color: #ccc;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.social-links a {
  color: #00bfff;
  font-size: 20px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #ffffff;
}

.footer .copyright {
  font-size: 0.9rem;
  color: #666;
}



/* Services */
.services {
  padding: 80px 10%;
  background-color: #1b1b1b;
  text-align: center;
}

.services h2 {
  font-size: 2.2rem;
  color: #00bfff;
  margin-bottom: 40px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-list .service a{
  text-decoration: none;
}

.service {
  background-color: #262626;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 191, 255, 0.2);
}

.service h3 {
  font-size: 1.4rem;
  color: #eaeaea;
  margin-bottom: 10px;
}

.service p {
  font-size: 1rem;
  color: #bbb;
}

/* Projects Section */
.projects {
  background-color: #111;
  padding: 80px 10%;
  text-align: center;
}

.projects h2 {
  font-size: 2.2rem;
  color: #00bfff;
  margin-bottom: 40px;
}

.project-category {
  margin-bottom: 60px;
}

.project-category h3 {
  color: #f2f2f2;
  margin-bottom: 20px;
}

.project-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.project-card {
  background-color: #1e1e1e;
  border-radius: 10px;
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.project-card p {
  color: #ccc;
  margin: 10px 0;
}

.project-card a {
  display: inline-block;
  margin-top: 5px;
  color: #00bfff;
  text-decoration: none;
  font-weight: bold;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
}
.testimonials {
  padding: 60px 20px;
  text-align: center;
  background-color: #1b1b1b;
  color: #fff;
}

.testimonials h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #00bfff;
}

.testimonial-container {
  position: relative;
  max-width: 600px;
  margin: auto;
  overflow: hidden;
  min-height: 300px;
}

.testimonial {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease-in-out;
  pointer-events: none;
}

.testimonial.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.testimonial-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 20px;
}

.testimonial-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #00bfff;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.4);
}

.testimonial-text {
  position: relative;
  font-size: 1.1rem;
  color: #ccc;
  max-width: 500px;
}

.testimonial-text::before,
.testimonial-text::after {
  font-size: 2rem;
  color: #00bfff;
  position: absolute;
  font-family: Georgia, serif;
}

.testimonial-text::before {
  content: "“";
  left: -20px;
  top: -10px;
}

.testimonial-text::after {
  content: "”";
  right: -20px;
  bottom: -10px;
}

.testimonial-text p {
  font-style: italic;
  margin: 0;
  padding: 0 20px;
}

.testimonial-text h4 {
  margin-top: 10px;
  font-weight: normal;
  color: #00bfff;
}

.testimonial-buttons {
  margin-top: 20px;
}

.testimonial-buttons button {
  background: none;
  border: none;
  color: #00bfff;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
  margin-right: 25px;
}

.testimonial-buttons button:hover {
  color: #fff;
}

.contact-section {
  padding: 60px 20px;
  background-color: #111;
  color: #f0f0f0;
  text-align: center;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #00bfff;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  background-color: #222;
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #00bfff;
}

.contact-form button {
  background-color: #00bfff;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #0099cc;
}

.formulaire-contact {
  transition: opacity 0.5s ease;
}

.popup-message {
  display: none;
  background-color: #00b894;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: bold;
  margin-top: 20px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.popup-message.show {
  display: block;
  opacity: 1;
}

.btn-cv {
  display: inline-block;
  background-color: #00bfff;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
  margin-top: 20px;
}

.btn-cv:hover {
  background-color: #009acd;
}

.popup-overlay {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  display: none;
  z-index: 999;
  max-width: 300px;
}

.popup-overlay.show {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

.popup-content {
  position: relative;
  font-size: 14px;
  color: #333;
}

.popup-content h4 {
  margin-top: 0;
  color: #00bfff;
}

.close-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
  color: #888;
}

.popup-content a {
  display: inline-block;
  margin-top: 10px;
  background-color: #00bfff;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.popup-content a:hover {
  background-color: #0099cc;
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


