/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: 'Cormorant Garamond', serif;
  color: #fff;
  overflow-y: auto;
  height: 100vh;
  min-height: 100vh;
  background-color: #0a1429;
  overflow-x: hidden;
}

/* BACKGROUND */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(7px);
  z-index: -2;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 18, 46, 0.35);
  z-index: -1;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease;
}

/* NAVBAR */
.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 30px 0 0 6%;
  z-index: 10;
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 1.5s ease, transform 1.5s ease;
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: 25px;
  background: rgba(18, 33, 61, 0.55);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 25px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Liens de navigation */
.navbar a {
  text-decoration: none;
  color: #ffffffd8;
  font-size: 1rem;
  letter-spacing: 0.5px;
  padding: 7px 20px;
  border-radius: 40px;
  background: transparent;
  transition: all 0.3s ease;
}

/* Effet hover commun à tous les liens */
.navbar a:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #0b172a;
}

/* Lien actif (même style que les autres, sans fond permanent) */
.navbar a.active {
  background: transparent;
  color: #ffffffd8;
}

/* Logo */
.logo {
  position: absolute;
  top: 35px;
  right: 90px;
  width: 100px;
  height: 100px;
  opacity: 0.5;
  border-radius: 50%;
}

/* HERO */
.hero {
  height: 100vh;
  position: relative;
}

/* Slogan à gauche */
.slogan-block {
  position: absolute;
  left: 7%;
  bottom: 23%;
  text-align: left;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 2.5s ease, transform 2.5s ease;
}

.main-slogan {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.sub-slogan {
  font-size: 1.7rem;
  font-style: italic;
  opacity: 0.9;
  margin-top: 0.5rem;
  white-space: nowrap;
}

.name-block {
  position: absolute;
  right: 8%;
  bottom: 30%; /* 🔹 avant 23% → on le monte légèrement */
  text-align: right;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 2.5s ease, transform 2.5s ease;
}

.name {
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 1;
}

.role {
  font-size: 1.6rem;
  letter-spacing: 1px;
  margin-top: 1.2rem;
  margin-bottom : 1.8rem;
}

/* État final après chargement */
.loaded .navbar,
.loaded .slogan-block,
.loaded .name-block,
.loaded .overlay {
  opacity: 1;
  transform: translate(0, 0);
}

/* Délais pour séquence fluide */
.loaded .overlay { transition-delay: 0.2s; }
.loaded .navbar { transition-delay: 0.4s; }
.loaded .slogan-block { transition-delay: 0.6s; }
.loaded .name-block { transition-delay: 0.8s; }

/* Autorise le hover même sur le lien actif */
.navbar a.active:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #0b172a;
}
/* Effet d'arrondi dynamique au survol */
.navbar a {
  border-radius: 40px;
  transition: all 0.3s ease;
}

.navbar a:hover {
  border-radius: 15px;
}

/* Style pour le lien de la page active (même effet que hover) */
.navbar a.active {
  background: rgba(255, 255, 255, 0.9);
  color: #0b172a;
  border-radius: 15px;
}

/* ===== BOUTON "EN SAVOIR PLUS" ===== */
.cta-button {
  position: absolute;
  right: 0;        /* aligné avec le texte */
  bottom: -60px;   /* 🔹 le descend sous “FREELANCE JUNIOR” */
}

/* ===== BOUTON "EN SAVOIR PLUS" ===== */
.learn-more {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  color: #0a1429;
  text-decoration: none;
  border-radius: 50px;
  height: 55px;
  width: 55px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  position: relative;
}

/* === Ajout du signe + visible au repos === */
.learn-more::before {
  content: "+";
  position: absolute;
  font-size: 3rem;
  font-style: bold;
  padding-bottom: 13px;
  color: #0a1429;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: scale(1);
}

/* === Quand on survole, le + disparaît en fondu === */
.learn-more:hover::before {
  opacity: 0;
  transform: scale(0.6);
}

/* --- flèche centrée par défaut --- */
.learn-more .arrow {
  font-size: 1rem;
  color: #0a1429;
  line-height: 1;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* --- texte caché par défaut --- */
.learn-more .text {
  opacity: 0;
  margin-left: 12px;
  color: white;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

/* --- effet au survol --- */
.learn-more:hover {
  width: 200px;
  justify-content: flex-start;
  padding-left: 30px;
  background-color: #13284b;
  color: white;
}

.learn-more:hover .arrow {
  color: white;
  transform: translateX(5px);
}

.learn-more:hover .text {
  opacity: 1;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  width: 100%;
  bottom: 0;
  background: rgba(10, 20, 41, 0.85); /* 🔹 Bleu profond semi-transparent */
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 35px 0 30px;
  text-align: center;
  color: #f1f1f1;
  z-index: 20;
  font-family: 'Cormorant Garamond', serif;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.25);
}

/* Contenu du footer */
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Liens */
.footer-links {
  display: flex;
  gap: 18px;
  font-size: 1rem;
  letter-spacing: 0.4px;
}

.footer a {
  color: #dcdcdc;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer a:hover {
  color: #6da8ff;
  text-shadow: 0 0 8px rgba(109, 168, 255, 0.5);
}

/* Texte du bas */
.footer small {
  color: #bfc7da;
  font-size: 0.9rem;
  opacity: 0.85;
}