body{
  cursor: cell;
}

html{
  scroll-behavior: smooth;
}


/* Largeur du scrollbar */
::-webkit-scrollbar {
    width: 10px;   /* scrollbar vertical */
    height: 8px;  /* scrollbar horizontal */
}

/* Couleur de la piste (fond) */
::-webkit-scrollbar-track {
    background: #1e244f; 
}

/* Couleur de la barre */
::-webkit-scrollbar-thumb {
    background: #2c357d; 
    border-radius: 10px;
}

/* Couleur de la barre au survol */
::-webkit-scrollbar-thumb:hover {
    background: #384399; 
}



.homeImage{
    width: 100vw;
    height: 68vh;
    background-image: url("../media/profil/profil.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    animation: verticalMove 2s ease-in-out infinite alternate;
}

@keyframes verticalMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-30px);
        /* background-image: url("../media/skill/graphisme.jpg");
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover; */
    }
}



/* From Uiverse.io by Spacious74 */ 
.outer {
  width: 300px;
  height: 250px;
  border-radius: 10px;
  padding: 1px;
  background: radial-gradient(circle 230px at 0% 0%, #ffffff, #0c0d0d);
  position: relative;
}

.dot {
  width: 5px;
  aspect-ratio: 1;
  position: absolute;
  background-color: #fff;
  box-shadow: 0 0 10px #ffffff;
  border-radius: 100px;
  z-index: 2;
  right: 10%;
  top: 10%;
  animation: moveDot 6s linear infinite;
}

@keyframes moveDot {
  0%,
  100% {
    top: 10%;
    right: 10%;
  }
  25% {
    top: 10%;
    right: calc(100% - 35px);
  }
  50% {
    top: calc(100% - 30px);
    right: calc(100% - 35px);
  }
  75% {
    top: calc(100% - 30px);
    right: 10%;
  }
}

.cards {
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 9px;
  border: solid 1px #202222;
  background-size: 20px 20px;
  background: radial-gradient(circle 280px at 0% 0%, #444444, #0c0d0d);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-direction: column;
  color: #fff;
}
.ray {
  width: 220px;
  height: 45px;
  border-radius: 100px;
  position: absolute;
  background-color: #c7c7c7;
  opacity: 0.4;
  box-shadow: 0 0 50px #fff;
  filter: blur(10px);
  transform-origin: 10%;
  top: 0%;
  left: 0;
  transform: rotate(40deg);
}

.card .text {
  font-weight: bolder;
  font-size: 4rem;
  background: linear-gradient(45deg, #000000 4%, #fff, #000);
  background-clip: text;
  color: transparent;
}

.line {
  width: 100%;
  height: 2px;
  position: absolute;
  background-color: #2c2c2c;
}
.topl {
  top: 10%;
  background: linear-gradient(90deg, #888888 30%, #1d1f1f 70%);
}
.bottoml {
  bottom: 10%;
}
.leftl {
  left: 10%;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, #747474 30%, #222424 70%);
}
.rightl {
  right: 10%;
  width: 1px;
  height: 100%;
}








/* TECHNOLOGIES */

/* Wrapper général */
.tech-wrapper {
    width: 320px;
    margin: auto;
    text-align: center;
    position: relative;
}

/* Slider conteneur */
.tech-slider {
    height: 80px;              /* hauteur du badge */
    overflow: hidden;          /* masque vertical */
    position: relative;
}

/* Items */
.tech-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    background: #0d1424;
    border: 1px solid #344d87;
    border-radius: 40px;
    padding: 12px 22px;
    height: 80px;
    width: 100%;
    color: white;
    font-weight: 500;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    
    position: absolute;       /* tous superposés */
    top: 0;
    left: 0;
    opacity: 0;               /* caché par défaut */
    animation: slideTech 24s infinite;
}

/* Image */
.tech-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Nom + type */
.tech-name {
    font-size: 16px;
}

.tech-type {
    font-size: 14px;
    opacity: .6;
    margin-left: auto;
}


/* Décalage pour chaque item */
.tech-item:nth-child(1) { animation-delay: 0s; }
.tech-item:nth-child(2) { animation-delay: 3s; }
.tech-item:nth-child(3) { animation-delay: 6s; }
.tech-item:nth-child(4) { animation-delay: 9s; }
.tech-item:nth-child(5) { animation-delay: 12s; }
.tech-item:nth-child(6) { animation-delay: 15s; }
.tech-item:nth-child(7) { animation-delay: 18s; }
.tech-item:nth-child(8) { animation-delay: 21s; }


@keyframes slideTech {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    5% {
        opacity: 1;
        transform: translateY(0);
    }
    12.5% {
        opacity: 1;
        transform: translateY(0);
    }
    17% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* Dots */
.tech-dots {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.tech-dots span {
    width: 8px;
    height: 8px;
    background: #3a3f54;
    border-radius: 50%;
    display: block;
}

.tech-dots span:nth-child(1) { animation: dotAnim 24s infinite steps(1) 0s; }
.tech-dots span:nth-child(2) { animation: dotAnim 24s infinite steps(1) 3s; }
.tech-dots span:nth-child(3) { animation: dotAnim 24s infinite steps(1) 6s; }
.tech-dots span:nth-child(4) { animation: dotAnim 24s infinite steps(1) 9s; }
.tech-dots span:nth-child(5) { animation: dotAnim 24s infinite steps(1) 12s; }
.tech-dots span:nth-child(6) { animation: dotAnim 24s infinite steps(1) 15s; }
.tech-dots span:nth-child(7) { animation: dotAnim 24s infinite steps(1) 18s; }
.tech-dots span:nth-child(8) { animation: dotAnim 24s infinite steps(1) 21s; }

@keyframes dotAnim {
    0% {
        background: #8254ff;
    }
    12.5% {
        background: #8254ff;
    }
    13% {
        background: #3a3f54;
    }
    100% {
        background: #3a3f54;
    }
}



.technoBanner {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.technoBanner img {
    width: 95vw;
    height: auto;
    display: block;
}



/* SERVICES */

.serviceImage {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    /* background-color: #2d0e84; */
}

.serviceImage img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 10px;
}

.serviceImage img:hover {
  cursor: pointer;
  transform: scale(1.03);
  transition: 0.3s ease-in-out;

}


/* CONTACTS */


.contact-section {
    margin-top: 80px;
}

/* Colonne gauche */
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(0, 200, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d4ff;
    margin-right: 15px;
}

.icon-box.green {
    background: rgba(0, 255, 150, 0.15);
    color: #00ff96;
}

.icon-box.yellow {
    background: rgba(255, 200, 0, 0.15);
    color: #ffc107;
}

/* Carte formulaire */
.contact-card {
    background: linear-gradient(180deg, #0f172a, #020617);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Inputs */
.contact-input,
.contact-textarea {
    background: #1e293b;
    border: none;
    padding: 14px 18px;
    color: white;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
    color: #94a3b8;
}

/* Bouton */
.contact-btn {
    background: linear-gradient(90deg, #38bdf8, #6366f1);
    border-radius: 14px;
    padding: 14px;
    font-weight: bold;
    border: none;
    transition: transform 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-1px);
}


.socialIconContainer{
  display: flex;
  justify-content: center;
  align-items: center;
}

.socialIcon{
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: #1c203a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d4ff;
  margin-right: 15px;
}

.socialIcon:hover{
  border: 1px solid white;
  transition: 0.5s ease-in-out;
}

/* Ordinateur */
@media (min-width: 991.98px) {
    #kt_aside {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100%;
        background: #fff;
        transition: all 0.3s ease;
        z-index: 1050;
    }
    #kt_aside.aside-on {
        left: 0;
    }
}



/* Carte image design */
.project-image-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Image */
.project-image-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
}

/* Hover global */
.project-image-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

/* Zoom image */
.project-image-card:hover img {
  transform: scale(1.1);
  filter: brightness(0.6);
}

/* Overlay */
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0)
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Texte overlay */
.project-overlay h4 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Affichage overlay */
.project-image-card:hover .project-overlay {
  opacity: 1;
}

.project-image-card img {
  aspect-ratio: 4 / 3;
}

.project-image-card:hover {
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4),
              0 30px 60px rgba(0, 0, 0, 0.6);
}


/* =========================
   MOBILE / TABLETTE (NO HOVER)
========================= */
@media (hover: none) {

  .project-overlay {
    opacity: 1;
    align-items: flex-end;
    padding-bottom: 12px;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.7),
      rgba(0, 0, 0, 0.2)
    );
  }

  .project-overlay h4 {
    font-size: 1rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 12px;
    border-radius: 20px;
  }

  /* Neutraliser hover */
  .project-image-card:hover,
  .project-image-card:hover img {
    transform: none;
    filter: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }

  /* Feedback tactile */
  .project-image-card:active {
    transform: scale(0.98);
  }
}

/* Taille image mobile */
@media (max-width: 768px) {
  .project-image-card img {
    height: 220px;
  }

  .project-overlay {
    opacity: 1;
    align-items: flex-end;
    padding-bottom: 12px;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.7),
      rgba(0, 0, 0, 0.2)
    );
  }

  project-overlay h4 {
    font-size: 1rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 12px;
    border-radius: 20px;
  }
}



/* Bouton fullscreen */
.fullscreen-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

.fullscreen-btn:hover {
  background: rgba(59, 130, 246, 0.9);
  transform: scale(1.1);
}

/* Mobile : bouton toujours visible */
@media (hover: none) {
  .fullscreen-btn {
    background: rgba(0, 0, 0, 0.75);
  }
}


/* Modal fullscreen */
.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
}

.image-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  animation: zoomIn 0.4s ease;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: white;
  cursor: pointer;
  user-select: none;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
