/* ---- Base ---- */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(91deg, #000000, #00693e);
  color: #e0ffe7;
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ---- Navigation ---- */
nav {
  background: #00150C;
  padding: 1rem 2rem;
  text-align: right;
  position: relative;
}

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

nav ul li a {
  text-decoration: none;
  color: #e0ffe7;
  font-weight: bold;
  position: relative;
  transition: color 0.3s ease;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #00b97a;
  transition: width 0.3s ease;
}

nav ul li a:hover {
  color: #00b97a;
}

nav ul li a:hover::after {
  width: 100%;
}

/* ---- Layout ---- */
main {
  display: flex;
  flex-wrap: wrap;
  padding: 2rem;
  flex: 1;
  opacity: 0;
  transition: opacity 0.8s ease;
}

main.fade-in {
  opacity: 1;
}

.left {
  flex: 2;
  padding-right: 2rem;
  animation: fadeInUp 1s ease forwards;
}

.left p,
.left ul {
  text-align: justify;
}

.left h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #33d6a6;
}

/* ---- Colonne droite ---- */
.right {
  flex: 1;
  text-align: center;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s;
}

.right h2 {
  font-size: 1.8rem;
  color: #e0ffe7;
  margin-bottom: 1rem;
  border-top: 1px solid #00b97a;
  border-bottom: 1px solid #00b97a;
  padding: 1rem 0;
}

.profile-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  margin-top: 2rem;
  border: 3px solid #005432;
}

/* ---- Social icons ---- */
.social-icons {
  margin-top: 2rem;
}

.social-icons a {
  margin: 0 10px;
  font-size: 1.5rem;
  color: #e0ffe7;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  color: #00b97a;
  transform: scale(1.2);
}

/* ---- Footer ---- */
.site-footer {
  text-align: center;
  padding: 1rem 0;
  color: #cccccc;
  background: #00150C;
  font-size: 0.9rem;
}

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

/* ---- Global links ---- */
a {
  color: #00b97a;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #33d6a6;
  text-decoration: underline;
}

/* ---- Liens entreprise (verts) ---- */
a.entreprise {
  color: #00b97a;
  font-weight: bold;
  text-decoration: none;
}

a.entreprise:hover {
  color: #33d6a6;
  text-decoration: underline;
}

/* ---- Titres h2 (verts, sans ligne) ---- */
h2 {
  color: #00b97a;
  margin-bottom: 1rem;
}

/* ---- Burger Menu ---- */
.burger {
  display: none;
  font-size: 2rem;
  color: #e0ffe7;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  z-index: 10;
}

nav ul {
  display: inline-flex;
}

@media (max-width: 768px) {
  .burger {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 21, 12, 0.95);
    width: 100%;
    padding: 1rem 0;
    gap: 1rem;
    margin: 0;
    position: static;
  }

  nav ul.open {
    display: flex;
  }

  nav ul li {
    text-align: center;
  }

  nav ul li a {
    font-size: 1.1rem;
  }

  main {
    display: flex;
    flex-direction: column;
    padding: 1rem;
  }

  .left {
    order: 1;
    width: 100%;
    padding-right: 0;
  }

  .right {
    order: 2;
    width: 100%;
    margin-top: 2rem;
  }

  .profile-img {
    width: 150px;
    height: 150px;
  }

  .site-footer {
    font-size: 0.8rem;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 0.5rem 1rem;
  }

  nav ul li a {
    font-size: 0.9rem;
  }

  .profile-img {
    width: 120px;
    height: 120px;
  }
}

/* ---- Scroll to Top ---- */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  font-size: 1.5rem;
  background-color: #00b97a;
  color: white;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#scrollTopBtn:hover {
  background-color: #33d6a6;
  transform: scale(1.1);
}
