/* Variables */
:root {
  --primary-color: #7c4dff;
  --secondary-color: #00d9ff;
  --dark-bg: #121212;
  --dark-card: #1e1e1e;
  --dark-text: #e0e0e0;
  --light-bg: #f5f5f0;
  --light-card: #ffffff;
  --light-text: #333333;
  --light-primary: #8a6eac;
  --light-secondary: #6e9eac;
  --gradient: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  --light-gradient: linear-gradient(
    45deg,
    var(--light-primary),
    var(--light-secondary)
  );
}

/* Mode sombre (par défaut) */
[data-bs-theme="dark"] {
  --bs-body-bg: var(--dark-bg);
  --bs-body-color: var(--dark-text);
  --bs-card-bg: var(--dark-card);
  --text-color: var(--dark-text);
  --heading-color: white;
  --current-gradient: var(--gradient);
  cursor: none;
}

/* Mode clair */
[data-bs-theme="light"] {
  --bs-body-bg: var(--light-bg);
  --bs-body-color: var(--light-text);
  --bs-card-bg: var(--light-card);
  --text-color: var(--light-text);
  --heading-color: var(--light-text);
  --current-gradient: var(--light-gradient);
  cursor: none;
}

/* Transition de thème */
.theme-transition {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Styles généraux */
body {
  font-family: "Dosis", sans-serif;
  transition: all 0.3s ease;
  padding-top: 56px;
  color: var(--text-color);
  background-color: var(--bs-body-bg);
  position: relative;
}

.video-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Vidéo en arrière-plan */
  overflow: hidden;
}

/* Vidéo en arrière-plan */
.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1; /* Vidéo en arrière-plan */
}

/* Overlay pour assombrir la vidéo */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(
    0,
    0,
    0,
    0.45
  ); /* Overlay noir, ajustez l'opacité si besoin */
  z-index: 2;
  pointer-events: none;
}

/* Conteneur des textes */
.hero .container {
  position: relative;
  z-index: 3; /* Textes au-dessus de la vidéo et de l'overlay */
  color: #fff; /* Assurez-vous que le texte est lisible */
}
/* Suppression de l'ancien effet de fond */
[data-bs-theme="dark"] body::before,
[data-bs-theme="light"] body::before {
  content: none;
}

/* Conteneur pour l'effet de fond interactif */
#background-effect {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* Style du fond - Mode sombre */
[data-bs-theme="dark"] body {
  background-color: var(--dark-bg);
  background-image: radial-gradient(
    circle at 80% 20%,
    rgba(124, 77, 255, 0.05) 0%,
    transparent 60%
  );
}

/* Style du fond - Mode clair avec nouvelles couleurs */
[data-bs-theme="light"] body {
  background-color: var(--light-bg);
  background-image: radial-gradient(
    circle at 20% 80%,
    rgba(110, 158, 172, 0.05) 0%,
    transparent 60%
  );
}

/* Syntaxe code pour le fond - Mode sombre */
.code-particle {
  position: absolute;
  color: rgba(124, 77, 255, 0.15);
  font-family: "Courier New", monospace;
  user-select: none;
  opacity: 0;
  transform: translateY(0);
  transition: opacity 1s ease, transform 1s ease;
}

/* Syntaxe code pour le fond - Mode clair */
[data-bs-theme="light"] .code-particle {
  color: rgba(124, 77, 255, 0.2);
}

/* Animation des particules */
.code-particle.show {
  opacity: 0.8;
  transform: translateY(-20px);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: "Josefin Sans", sans-serif;
  color: var(--heading-color);
}

.btn-primary {
  background: var(--gradient);
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(124, 77, 255, 0.4);
}

.navbar {
  background-color: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

[data-bs-theme="light"] .navbar {
  background-color: rgba(255, 255, 255, 0.9);
}

.navbar-brand {
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Styles spécifiques aux liens de navigation */
.navbar .nav-link {
  position: relative;
  font-weight: 500;
  color: var(--dark-text);
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
}

/* Pour les écrans moyens et larges, augmenter l'espacement */
@media (min-width: 992px) {
  .navbar .nav-link {
    margin: 0 0.5rem;
  }

  .navbar-nav {
    gap: 0.3rem;
  }

  .theme-toggle-item {
    margin-left: 0.5rem;
  }
}

[data-bs-theme="light"] .navbar .nav-link {
  color: var(--light-text);
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateX(-50%);
  opacity: 0;
}

.navbar .nav-link:hover::after {
  width: 60%;
  opacity: 0.7;
}

.navbar .nav-link.active::after {
  width: 80%;
  opacity: 1;
  height: 3px;
  bottom: -3px;
  box-shadow: 0 0 8px rgba(124, 77, 255, 0.5);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary-color);
}

/* Style plus prononcé pour le lien actif */
.navbar .nav-link.active {
  font-weight: 600;
  color: var(--secondary-color);
  text-shadow: 0 0 5px rgba(0, 217, 255, 0.3);
}

.navbar .nav-link.active::after {
  height: 3px;
  background: var(--gradient);
  box-shadow: 0 0 8px rgb(255, 255, 255);
}

.navbar-toggler {
  border-color: var(--primary-color);
}

[data-bs-theme="light"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(33, 33, 33, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-bs-theme="dark"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding: 100px 0;
  /* background: radial-gradient(
    circle at 10% 20%,
    rgba(124, 77, 255, 0.2) 0%,
    rgba(0, 217, 255, 0.1) 90%
    
  ); */
  position: relative;
  overflow: hidden;
}

.hero .row {
  justify-content: center;
}

.hero h1 {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin: 0 auto;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero h2 {
  font-weight: 300;
  letter-spacing: 0.5px;
}

.hero .btn {
  transition: all 0.3s ease;
  white-space: nowrap;
}

.hero .btn:hover {
  transform: translateY(-3px);
}

/* Animation du texte du héro */
.animate-character {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-image-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
  animation: float 6s ease-in-out infinite;
}

.rotating-border {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  background: conic-gradient(
    var(--primary-color),
    var(--secondary-color),
    var(--primary-color)
  );
  animation: rotation 4s linear infinite;
  z-index: 0;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.profile-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
  background-color: var(--dark-bg);
  border: 4px solid var(--dark-bg);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="light"] .profile-image {
  background-color: var(--light-bg);
  border-color: var(--light-bg);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-20px) translateX(10px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

/* Sections */
section {
  padding: 80px 0;
}

section:nth-child(odd) {
  background-color: rgba(124, 77, 255, 0.05);
}

[data-bs-theme="light"] section:nth-child(odd) {
  background-color: rgba(110, 158, 172, 0.05);
}

h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
  font-family: "Josefin Sans", sans-serif;
  font-weight: 600;
}

h2::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 3px;
  background: var(--gradient);
  bottom: -10px;
  left: 25%;
}

/* Cards */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card-body {
  padding: 2rem;
}

/* Projets */
.project-card {
  position: relative;
  overflow: hidden;
}

.project-card img {
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.badge {
  padding: 8px 12px;
  margin-right: 5px;
  border-radius: 30px;
  font-weight: 500;
}

/* Contact */
.contact-info {
  padding: 2rem;
  border-radius: 15px;
  background-color: var(--bs-card-bg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-top: 1.87rem; /* Aligne avec le premier champ du formulaire */
}

.contact-info h3 {
  margin-top: 0;
}

.contact-info ul {
  margin-top: 1.5rem;
}

.contact-info li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.contact-info li i {
  min-width: 25px;
}

.social-icons a {
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: var(--secondary-color);
  transform: translateY(-5px);
  display: inline-block;
}

/* Footer */
footer {
  background-color: rgba(30, 30, 30, 0.8);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(124, 77, 255, 0.2);
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  z-index: 1;
}

footer .text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

footer .social-icons a {
  transition: all 0.3s ease;
  color: var(--dark-text);
  margin: 0 10px;
}

footer .social-icons a:hover {
  color: var(--primary-color);
  transform: translateY(-5px);
}

[data-bs-theme="light"] footer {
  background-color: rgba(245, 245, 245, 0.9);
  border-top: 1px solid rgba(124, 77, 255, 0.1);
}

[data-bs-theme="light"] footer .social-icons a {
  color: var(--light-text);
}

[data-bs-theme="light"] footer .social-icons a:hover {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  footer .row > div {
    text-align: center;
  }

  footer .text-md-end {
    text-align: center !important;
  }
}

/* Bouton de changement de thème */
#theme-toggle {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

#theme-toggle:hover {
  transform: rotate(30deg);
  box-shadow: 0 0 15px rgba(124, 77, 255, 0.4);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bs-body-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeIn 1s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    text-align: center;
    padding: 80px 0 40px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.5rem;
    margin: 0 auto;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero .lead {
    font-size: 1rem;
    margin-bottom: 2rem !important;
  }

  .profile-image-container {
    width: 220px;
    height: 220px;
    margin: 30px auto 0;
  }

  .rotating-border {
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
  }

  .profile-image {
    border-width: 3px;
  }

  .hero .btn {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    margin: 5px;
  }

  .hero .d-flex.gap-3 {
    justify-content: center;
    flex-wrap: wrap;
  }

  .navbar {
    background-color: var(--dark-bg);
  }

  [data-bs-theme="light"] .navbar {
    background-color: var(--light-bg);
  }
}

/* Styles spécifiques pour les très petits écrans */
@media (max-width: 576px) {
  .hero {
    padding: 60px 0 30px;
  }

  .profile-image-container {
    width: 180px;
    height: 180px;
  }

  .hero .btn {
    width: 100%;
    max-width: 200px;
    margin: 5px auto;
  }

  .hero .d-flex.gap-3 {
    gap: 0.5rem !important;
  }
}

/* Styles spécifiques pour les pages de projet */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline-item {
  position: relative;
  padding-bottom: 15px;
}

.timeline-item:before {
  content: "";
  position: absolute;
  left: -30px;
  top: 10px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--gradient);
  z-index: 1;
}

.timeline-item:after {
  content: "";
  position: absolute;
  left: -23px;
  top: 25px;
  width: 2px;
  height: calc(100% - 15px);
  background: var(--primary-color);
  opacity: 0.4;
}

.timeline-item:last-child:after {
  display: none;
}

.project-header {
  position: relative;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(124, 77, 255, 0.2) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  padding: 80px 0 40px;
}

.project-header:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(18, 18, 18, 0.8) 0%,
    rgba(18, 18, 18, 0) 50%,
    rgba(18, 18, 18, 0.8) 100%
  );
  z-index: -1;
}

[data-bs-theme="light"] .project-header:before {
  background: linear-gradient(
    180deg,
    rgba(245, 245, 245, 0.8) 0%,
    rgba(245, 245, 245, 0) 50%,
    rgba(245, 245, 245, 0.8) 100%
  );
}

/* Responsive pour le bouton de thème */
@media (max-width: 991px) {
  .navbar-nav {
    margin-top: 1rem;
  }

  .nav-item:last-child {
    display: flex;
    margin-left: 0;
    margin-top: 0.5rem;
  }

  #theme-toggle {
    margin-left: 0 !important;
  }
}

/* Styles pour l'affichage du CV et le téléchargement */
.cv-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
  max-width: 800px;
  position: relative;
  overflow: visible;
}

#a-propos h1 {
  font-size: 1.8rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: white;
  position: relative;
  display: inline-block;
  text-align: center;
  width: 100%;
}

#a-propos h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 40px;
  height: 3px;
  background: var(--gradient);
  border-radius: 3px;
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

#a-propos h1:hover::after {
  width: 40px;
}

/* Styles pour l'affichage du PDF */
embed {
  width: 100%;
  height: 500px;
  margin-bottom: 20px;
  border-radius: 15px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

/* Effet de fond coloré lors du survol */
.cv-container::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: 5px;
  background: linear-gradient(
    45deg,
    rgba(124, 77, 255, 0.2),
    rgba(0, 217, 255, 0.2)
  );
  border-radius: 20px;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cv-container:hover::before {
  opacity: 1;
}

embed:hover {
  box-shadow: 0 0 40px rgba(124, 77, 255, 0.6);
}

/* Nouveau positionnement du bouton de téléchargement */
.cv-actions {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.cv-download-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  background: var(--gradient);
  color: white;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 1;
  letter-spacing: 0.5px;
}

.cv-download-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  transform: scale(1.1);
}

.cv-download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(124, 77, 255, 0.5);
  color: white;
}

.cv-download-btn:hover::before {
  opacity: 1;
}

.cv-download-btn i {
  margin-right: 8px;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  embed {
    height: 400px;
  }

  .cv-container {
    max-width: 100%;
    padding: 0 15px;
  }
}

@media (max-width: 576px) {
  embed {
    height: 350px;
  }
}

/* Supprimer les anciens styles de bouton qui ne sont plus nécessaires */
.button {
  display: none;
}

.button-wrapper,
.text,
.button .icon,
.button[data-tooltip]:before {
  display: none;
}

/* Section À propos - Formation */
#a-propos .col-lg-6:nth-child(2) {
  margin-top: 2rem;
}

#a-propos h3 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(124, 77, 255, 0.3);
}

#a-propos .list-group-item {
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 0.5rem;
}

@media (min-width: 992px) {
  #a-propos .col-lg-6:nth-child(2) {
    margin-top: 0;
    padding-left: 2.5rem;
    border-left: 1px solid rgba(124, 77, 255, 0.2);
  }
}

/* Ajustements pour la police Josefin Sans */
.hero h1 {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin: 0 auto;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero h2 {
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* Ajustements pour la police Dosis */
p,
.list-group-item,
.card-text,
.btn {
  font-weight: 400;
  line-height: 1.6;
}

.lead {
  font-weight: 500;
}

.btn {
  font-weight: 600;
}

.cv-download-btn {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Correction des textes en mode clair */
[data-bs-theme="light"] p,
[data-bs-theme="light"] .list-group-item,
[data-bs-theme="light"] .card-text,
[data-bs-theme="light"] label,
[data-bs-theme="light"] li {
  color: var(--light-text);
}

[data-bs-theme="light"] #a-propos h1 {
  color: var(--light-text);
}

/* Transitions de page fluides */
.fade-transition {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Style graphique pour les icônes de compétences */
.skill-icon {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.skill-icon:hover {
  transform: scale(1.2);
}

.skill-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.skill-text {
  margin-left: 10px;
}

/* Transitions de page */
.page-enter {
  animation: pageEnter 0.5s ease forwards;
}

.page-exit {
  animation: pageExit 0.3s ease forwards;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageExit {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* Style pour colorer les icônes de compétences aux couleurs du thème */

.skill-icon:hover {
  transform: scale(1.2);
  filter: saturate(1.5);
}

/* Pour les icônes Font Awesome */
.skill-item i {
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.skill-item i:hover {
  color: var(--secondary-color);
  transform: scale(1.5);
  filter: saturate(0.5);
}

/* Suppression des carrés */
.interactive-square {
  display: none;
}

/* Nouvel effet plus doux - particules flottantes */
.particle {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

[data-bs-theme="light"] .particle {
  background-color: rgba(138, 110, 172, 0.2);
}

.particle.visible {
  opacity: 1;
}

/* Nouvelle animation plus douce */
@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-20px) translateX(10px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

/* Suppression de l'ancien curseur */
.custom-cursor,
.custom-cursor-dot,
.cursor-container,
.cursor-bracket,
.cursor-highlight,
.cursor-click {
  display: none;
}

/* Nouveau curseur technique */
.dev-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

.dev-cursor-crosshair {
  position: absolute;
  width: 20px;
  height: 20px;
  opacity: 0.8;
}

/* Lignes horizontales et verticales */
.dev-cursor-crosshair::before,
.dev-cursor-crosshair::after {
  content: "";
  position: absolute;
  background-color: white;
  transition: all 0.2s ease;
}

/* Ligne horizontale */
.dev-cursor-crosshair::before {
  height: 1px;
  width: 20px;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* Ligne verticale */
.dev-cursor-crosshair::after {
  width: 1px;
  height: 20px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Points de sélection aux coins */
.dev-cursor-corner {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: transparent;
  border: 1px solid white;
  transition: all 0.2s ease;
}

.dev-cursor-corner-tl {
  top: -5px;
  left: -5px;
}

.dev-cursor-corner-tr {
  top: -5px;
  right: -5px;
}

.dev-cursor-corner-bl {
  bottom: -5px;
  left: -5px;
}

.dev-cursor-corner-br {
  bottom: -5px;
  right: -5px;
}

/* Animation de sélection */
.dev-cursor-outline {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 1px dashed rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

/* Effet de survol */
.dev-cursor.hovering .dev-cursor-outline {
  opacity: 0.6;
  transform: scale(1.2);
  background: rgba(124, 77, 255, 0.1);
  border-style: solid;
}

.dev-cursor.hovering .dev-cursor-corner {
  background-color: white;
}

/* Effet de clic */
.dev-cursor.clicking .dev-cursor-outline {
  opacity: 0.8;
  transform: scale(0.9);
  background: rgba(124, 77, 255, 0.2);
}

.dev-cursor.clicking .dev-cursor-crosshair::before,
.dev-cursor.clicking .dev-cursor-crosshair::after {
  background-color: var(--primary-color);
}

/* Support pour les appareils tactiles */
@media (hover: none) {
  .dev-cursor {
    display: none;
  }
  body {
    cursor: auto !important;
  }
}

/* Correction du bouton "Me contacter" en mode clair */
[data-bs-theme="light"] .btn-outline-light {
  color: var(--light-text);
  border-color: var(--light-text);
}

[data-bs-theme="light"] .btn-outline-light:hover {
  background-color: var(--light-text);
  color: white;
}
