/* Navigation fixe avec effet au scroll */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  padding: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  background: rgba(248, 251, 248, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

/* Effet de la navbar au scroll */
.navbar.scrolled {
  background: rgba(248, 251, 248, 0.98);
  border-bottom: 1px solid rgba(127, 176, 105, 0.1);
  box-shadow: 0 2px 20px rgba(124, 158, 129, 0.1);
}

.nav-logo {
  color: #2C3E2D;
  font-size: 1.5rem;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  animation: fadeInUp 0.6s ease-out;
}

.nav-links li:nth-child(1) {
  animation-delay: 100ms;
}

.nav-links li:nth-child(2) {
  animation-delay: 200ms;
}

.nav-links li:nth-child(3) {
  animation-delay: 300ms;
}

.nav-link {
  transition: all 0.3s ease;
  color: #6B7C6E;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #7FB069;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #7FB069;
  transform: translateY(-2px);
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero plein écran avec animations */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  background: #F8FBF8;
  overflow: hidden;
  padding-top: 80px; /* Espace pour la navbar fixe */
}

/* Motif géométrique subtil */
.hero::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 10%;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(127, 176, 105, 0.1);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
  z-index: 1;
}

/* Container du contenu hero - plus haut */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 0 2rem;
  transform: translateY(-10vh); /* Remonte le contenu */
}

/* Titre principal avec animation */
.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  color: #2C3E2D;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  opacity: 0;
  animation: slideInDown 1.2s ease-out 0.5s forwards;
  position: relative;
}

/* Effet de surbrillance sur le titre */
.hero-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: -10px;
  width: calc(100% + 20px);
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(127, 176, 105, 0.1), transparent);
  animation: highlight 3s ease-in-out 2s infinite;
  z-index: -1;
}

/* Sous-titre avec animation décalée */
.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: #6B7C6E;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: slideInUp 1.2s ease-out 1s forwards;
  line-height: 1.6;
}

/* Bouton CTA avec animations avancées */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #7FB069 0%, #6DA055 100%);
  color: white;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: slideInUp 1.2s ease-out 1.5s forwards;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(127, 176, 105, 0.3);
}

/* Effet de vague sur le bouton */
.hero-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.hero-cta:hover::before {
  left: 100%;
}

.hero-cta:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 40px rgba(127, 176, 105, 0.4);
}

/* Flèche animée dans le bouton */
.hero-cta-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.hero-cta:hover .hero-cta-arrow {
  transform: translateX(5px);
  animation: bounce 0.6s ease-in-out;
}

/* Indicateur de scroll en bas */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #7FB069;
  font-size: 0.9rem;
  text-align: center;
  opacity: 0;
  animation: fadeIn 1s ease-out 2.5s forwards;
}

.scroll-indicator::after {
  content: '↓';
  display: block;
  font-size: 1.5rem;
  margin-top: 0.5rem;
  animation: bounce 2s ease-in-out infinite;
}

/* Sections suivantes avec espacement correct */
.section {
  position: relative;
  z-index: 100;
  background: #F8FBF8;
  margin-bottom: 8rem;
}

.section:first-of-type {
  margin-top: 0; /* Pas d'espace supplémentaire pour la première section après hero */
}

/* Section Contact */
.contact-container {
  text-align: center;
  background: #FFFFFF;
  padding: 4rem 3rem;
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(124, 158, 129, 0.12);
  transition: all 0.5s ease;
  max-width: 600px;
  margin: 0 auto;
}

.contact-container:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(124, 158, 129, 0.18);
}

.contact-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2C3E2D;
  margin-bottom: 1rem;
  position: relative;
}

.contact-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #7FB069, #6DA055);
  border-radius: 2px;
}

.contact-description {
  color: #6B7C6E;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-alternatives {
  background: rgba(127, 176, 105, 0.05);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(127, 176, 105, 0.1);
}

.contact-alternatives h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2C3E2D;
  margin-bottom: 1.5rem;
  text-transform: lowercase;
}

.contact-alternatives h4::first-letter {
  text-transform: uppercase;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2rem;
  background: #FFFFFF;
  border: 2px solid #E8F2E9;
  border-radius: 50px;
  text-decoration: none;
  color: #2C3E2D;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 140px;
  justify-content: center;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s ease;
}

.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(127, 176, 105, 0.2);
  border-color: #7FB069;
}

/* Styles spécifiques LinkedIn */
.social-link.linkedin:hover {
  background: #0077B5;
  color: white;
  border-color: #0077B5;
}

/* Styles spécifiques GitHub */
.social-link.github:hover {
  background: #333;
  color: white;
  border-color: #333;
}

/* Animation d'apparition en cascade */
.social-link:nth-child(1) {
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.social-link:nth-child(2) {
  animation: slideInUp 0.8s ease-out 0.4s both;
}

/* Effet de pulsation subtile sur les icônes */
.social-link:hover {
  animation: none; /* Arrête l'animation d'entrée au hover */
}

/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    padding: 3rem 2rem;
    margin: 0 1rem;
  }
  
  .contact-title {
    font-size: 1.8rem;
  }
  
  .contact-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .contact-alternatives {
    padding: 2rem 1.5rem;
  }
  
  .social-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .social-link {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .contact-container {
    padding: 2.5rem 1.5rem;
  }
  
  .contact-alternatives h4 {
    font-size: 1.1rem;
  }
  
  .social-link {
    font-size: 0.9rem;
    padding: 1rem;
  }
}

/* Animation pour le conteneur au scroll */
.contact-container {
  /*opacity: 0;*/
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.contact-container.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes supplémentaires */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Effet de brillance sur le conteneur */
.contact-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, transparent, rgba(127, 176, 105, 0.1), transparent);
  border-radius: 26px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/*.contact-container:hover::before {
  opacity: 1;
}*/

/* Style pour les petits écrans très étroits */
@media (max-width: 320px) {
  .contact-container {
    padding: 2rem 1rem;
  }
  
  .social-links {
    gap: 0.8rem;
  }
}

/* Keyframes pour les animations */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes highlight {
  0%, 100% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0,0,0);
  }
  40%, 43% {
    transform: translate3d(0,-15px,0);
  }
  70% {
    transform: translate3d(0,-8px,0);
  }
  90% {
    transform: translate3d(0,-3px,0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(1deg);
  }
  66% {
    transform: translateY(5px) rotate(-1deg);
  }
}

/* Particules flottantes (optionnel) */
.hero-particle {
  position: absolute;
  background: rgba(127, 176, 105, 0.2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

.hero-particle:nth-child(1) {
  width: 6px;
  height: 6px;
  top: 20%;
  left: 10%;
  animation: float 4s ease-in-out infinite;
}

.hero-particle:nth-child(2) {
  width: 4px;
  height: 4px;
  top: 60%;
  right: 15%;
  animation: float 6s ease-in-out infinite reverse;
}

.hero-particle:nth-child(3) {
  width: 8px;
  height: 8px;
  bottom: 30%;
  left: 20%;
  animation: float 5s ease-in-out infinite;
  animation-delay: 1s;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
  
  .hero {
    min-height: 100vh;
    padding: 2rem 1rem;
    padding-top: 80px;
  }
  
  .hero-content {
    padding: 0 1rem;
    transform: translateY(-5vh); /* Moins de décalage sur mobile */
  }
  
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .hero-cta {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  /* Désactiver certaines animations sur mobile */
  .hero::after,
  .hero-particle {
    display: none;
  }
}

/* Mode sombre (bonus) */
@media (prefers-color-scheme: dark) {
  .navbar {
    background: rgba(248, 251, 248, 0.95);
  }
  
  .navbar.scrolled {
    background: rgba(248, 251, 248, 0.98);
  }
  
  .hero {
    background: #F8FBF8;
  }
  
  .hero-title {
    color: #2C3E2D;
  }
  
  .hero-subtitle {
    color: #6B7C6E;
  }
}