/* RESET ET CONFIGURATION DE BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  background-color: #000;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow-x: hidden;
}

/* ARRIÈRE-PLAN ANIMÉ (HALO) */
body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140vw; 
  height: 140vh;
  z-index: -1;
  pointer-events: none;
  background:
      radial-gradient(circle at 50% 50%,
      rgba(63, 85, 255, 0.40) 0%,
      rgba(63, 85, 255, 0.15) 35%,
      rgba(0, 0, 0, 0) 70%);
  filter: blur(80px) saturate(180%) brightness(1.1);
}

/* FLÈCHE RETOUR */
#back-arrow {
  position: fixed;
  top: 30px;
  left: 30px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.1); 
  backdrop-filter: blur(5px);
  border-radius: 50%;
  padding: 10px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.arrow-icon {
  width: 28px; 
  height: auto;
  opacity: 0.8;
  display: block;
}

#back-arrow:hover {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.25);
}

#back-arrow:hover .arrow-icon {
  opacity: 1;
}

/* CONTENEUR PRINCIPAL ET COLONNES */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 80px;
  width: 100%;
}

.left {
  flex: 1;
  max-width: 600px;
  text-align: left;
  z-index: 1;
}

.left h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.left p {
  font-size: 18px;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 32px;
  font-weight: 400;
}

.right {
  flex: 0 0 auto;
  z-index: 1;
}

/* IMAGE DE PROFIL ET BOUTON CV */
.profile-image {
  width: 380px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  transform: rotate(2deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
}

.profile-image:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 25px 60px rgba(63, 85, 255, 0.25);
}

.cv-container {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 18px;
  font-weight: 600;
}

.cv-btn {
  background-color: #fff;
  color: #000;
  border: none;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cv-btn:hover {
  background-color: #f0f0f0;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(63, 85, 255, 0.3);
}

/* ANIMATION TEXTE (COLORATION PROGRESSIVE) */
.highlight-word {
  color: #e0e0e0;
  font-weight: 700;
  display: inline-block;
  animation: turnBlue 0.8s ease-out forwards;
}

@keyframes turnBlue {
  0% { color: #e0e0e0; text-shadow: none; }
  100% { 
    color: #3F55FF;
    text-shadow: 0 0 15px rgba(63, 85, 255, 0.6);
  }
}

.highlight-word:nth-of-type(1) { animation-delay: 0.5s; }
.highlight-word:nth-of-type(2) { animation-delay: 1.2s; }
.highlight-word:nth-of-type(3) { animation-delay: 1.9s; }
.highlight-word:nth-of-type(4) { animation-delay: 2.6s; }
.highlight-word:nth-of-type(5) { animation-delay: 3.0s; }

/* ADAPTATION RESPONSIVE */
@media (max-width: 900px) {
  .container {
    flex-direction: column-reverse;
    padding: 80px 24px 40px;
    gap: 40px;
    text-align: center;
  }

  .left {
    text-align: center;
    max-width: 100%;
  }

  .left h1 { font-size: 32px; }

  .cv-container {
    justify-content: center;
    flex-direction: column;
    gap: 12px;
  }

  .profile-image {
    width: 300px;
    transform: rotate(0deg);
  }
}

@media (max-width: 600px) {
  .container { padding: 80px 20px 40px; }
  .left h1 { font-size: 28px; }
  .left p { font-size: 16px; }
  .profile-image {
    width: 100%;
    max-width: 280px;
  }
}

a:focus {
  outline: 3px solid rgba(63, 85, 255, 0.5);
  outline-offset: 3px;
  border-radius: 4px;
}