/* ------------------------ */
/* === Communauté Tra-V === */
/* ------------------------ */

body {
    font-family: inika, 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #2C2C54;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

footer {
	text-align: center;
}

/* Navbar Styles */
/* Navbar Styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: #E6FFE6;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-radius: 0 0 20px 20px;
height: 30px;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Logo Section */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  font-size: 2.3rem;
  font-weight: bold;
  color: #000;
  transition: transform 0.3s ease-in-out;
}

.navbar-logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.navbar-logo:hover {
  transform: scale(1.1);
}

/* Navigation Menu */
.navbar-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin-top: 15px;
  padding: 0;
flex-wrap: wrap;
}

.navbar-links .nav-link {
  text-decoration: none;
  color: black;
  font-size: 1.0rem;
  font-weight: 500;
  padding: 10px 20px;
  background-color: #E6FFE6;
  border-radius: 50px;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.navbar-links .nav-link:hover {
  background-color: #fff;
  color: #000;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
transform: scale(1.1);
}

/* Hamburger Menu */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.navbar-toggle span {
  width: 35px;
  height: 4px;
  background: white;
  border-radius: 3px;
}

@media (max-width: 768px) {
  .navbar-links {
      flex-direction: column;
      background: #16A085;
      position: absolute;
      top: 100%;
      right: 0;
      width: 100%;
      display: none;
      box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  }

  .navbar-links.active {
      display: flex;
  }

  .navbar-toggle {
      display: flex;
  }
}



/* Sous-menu déroulant */
/* 🌿 Dropdown modernisé */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  backdrop-filter: blur(12px);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  min-width: 230px;
  padding: 12px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 999;
}

.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  color: #2C3E50;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  background: transparent;
  border-left: 4px solid transparent;
}

.dropdown-link::after {
  content: '➜';
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(-5px);
  font-size: 0.95rem;
  color: #2C3E50;
}

.dropdown-link:hover {
  background-color: #d4ffe1;
  padding-left: 28px;
  border-left: 4px solid #2ECC71;
  border-radius: 0 10px 10px 0;
}

.dropdown-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* 🎯 Responsive */
@media (max-width: 768px) {
  .dropdown-menu {
      position: static;
      display: none;
      background: rgba(255, 255, 255, 0.9);
      box-shadow: none;
      border-radius: 12px;
      padding: 0;
      width: 100%;
  }

  .navbar ul.active .dropdown-menu {
      display: block;
      opacity: 1;
      transform: translateY(0);
  }
}


.intro {
    text-align: center;
    background: linear-gradient(135deg, #8de78d 30%, #d3ffd3 100%);
    color: #404040;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 140px;
    width: 80%;
    margin: 20px auto;
    border-radius: 20px;
	font-size: 20px;
}


.cta-button {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: bold;
}

.community-header {
  background-color: #d5cabc;
  padding: 40px 20px;
  text-align: center;
  border-bottom: 2px solid #b4a89e;
}

.community-header h1 {
  margin: 0;
  font-size: 2.5em;
  color: #2c3e50;
}

.community-header p {
  margin-top: 10px;
  color: #4f4f4f;
  font-size: 1.1em;
}

.form-section {
  background-color: #fff;
  margin: 30px auto;
  padding: 30px;
  border-radius: 12px;
  max-width: 800px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.form-section h2 {
  margin-bottom: 20px;
  color: #2c3e50;
}

.form-section form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input[type="text"],
textarea,
input[type="file"],
select {
  padding: 12px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

button[type="submit"] {
  background-color: #2c3e50;
  color: white;
  border: none;
  padding: 12px;
  font-size: 1em;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #1e2b38;
}

/* Zone des posts */
.posts-section {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.posts-section h2 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 30px;
}

.post-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  padding: 20px;
  transition: transform 0.2s ease;
}

.post-card:hover {
  transform: translateY(-3px);
}

.post-card img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.post-content h3 {
  margin: 0;
  font-size: 1.3em;
  color: #2c3e50;
}

.post-content p {
  margin: 8px 0;
  line-height: 1.5;
}

.rating {
  color: #f39c12;
  font-size: 1.2em;
}

/* Responsive */
@media (max-width: 768px) {
  .form-section,
  .posts-section {
    padding: 20px;
  }

  .form-section form {
    gap: 10px;
  }
}
