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

.navigation {
  background: white;
  border-bottom: 1px solid #E5E7EB;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-container::-webkit-scrollbar {
  display: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 500;
  color: #6B7280;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
}

.nav-item:hover {
  color: #16A34A;
  background: #F0FDF4;
}

.nav-item.active {
  background: #16A34A;
  color: white;
  border-radius: 12px;
  margin: 8px 0;
  padding: 16px 24px;
  border-bottom: none;
}

.nav-item.active svg {
  stroke: white;
}
.user-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.user-label {
  font-size: 14px;
  color: #6B7280;
  white-space: nowrap;
}

.user-name {
  color: #1F2937;
  font-weight: 600;
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 10px 20px;
  background: white;
  border: 1.5px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.logout-btn:hover {
  background: #FEF2F2;
  border-color: #FCA5A5;
  color: #DC2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.logout-btn svg {
  transition: transform 0.2s ease;
}

.logout-btn:hover svg {
  transform: translateX(2px);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #F5F5F5;
  min-height: 100vh;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  background: white;
  border-bottom: 1px solid #E5E7EB;
  padding: 20px 0;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.logo-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: #16A34A;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.logo-icon img{
  height: 60px;
  width: 60px;
}

.logo-icon:hover {
  transform: rotate(5deg) scale(1.05);
}

.logo-text {
  flex: 1;
  min-width: 0;
}

.logo-title {
  font-size: 20px;
  font-weight: 600;
  color: #16A34A;
  margin: 0;
  line-height: 1.3;
}

.logo-subtitle {
  font-size: 13px;
  color: #6B7280;
  margin: 4px 0 0 0;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .user-section {
    width: 100%;
    justify-content: space-between;
  }

  .logo-title {
    font-size: 18px;
  }

  .logo-subtitle {
    font-size: 12px;
  }

  .logo-icon {
    width: 45px;
    height: 45px;
  }

  .logo-icon svg {
    width: 35px;
    height: 35px;
  }

  .nav-container {
    padding: 0 16px;
    gap: 4px;
  }

  .nav-item {
    padding: 14px 16px;
    font-size: 14px;
  }

  .nav-item.active {
    padding: 14px 16px;
  }

  .hero-section {
    padding: 48px 24px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-description br {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-btn {
    justify-content: center;
    width: 100%;
  }

  .main-content {
    padding: 32px 16px;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 16px;
  }

  .logo-title {
    font-size: 16px;
  }

  .logo-subtitle {
    font-size: 11px;
  }

  .user-label {
    font-size: 12px;
  }

  .logout-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .nav-item {
    padding: 12px 12px;
    font-size: 13px;
    gap: 6px;
  }

  .nav-item svg {
    width: 16px;
    height: 16px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-description {
    font-size: 14px;
  }

  .location-badge {
    font-size: 12px;
    padding: 8px 16px;
  }

  .hero-btn {
    padding: 14px 24px;
    font-size: 14px;
  }
}


/* Footer */
footer {
  background: #009846; /* vert principal */
  color: #fff;
  padding: 40px 80px 20px;
  font-size: 14px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-about {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.footer-logo img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

.footer-logo span {
  font-size: 16px;
  font-weight: bold;
}

.footer-about p {
  line-height: 1.6;
  font-size: 14px;
}

.footer-links,
.footer-contact {
  flex: 1;
  min-width: 200px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 15px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links ul li a:hover {
  text-decoration: underline;
}

.footer-contact p {
  margin-bottom: 10px;
}

.footer-bottom {
  margin-top: 30px;
  text-align: center;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
}

/* --- Animation de transition de page --- */
.page-transition {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: linear-gradient(90deg, #E8F5E9 0%, #4CAF50 100%);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: translateX(0);
  transition: opacity 0.5s, transform 0.7s cubic-bezier(.77,0,.18,1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-transition.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.page-transition-leave {
  opacity: 1;
  transform: translateX(0);
  animation: pageLeave 0.7s forwards;
}

@keyframes pageLeave {
  0% { opacity: 1; transform: translateX(0);}
  60% { opacity: 1; transform: translateX(-10vw);}
  100% { opacity: 0; transform: translateX(-100vw);}
}

.page-transition-enter {
  opacity: 0;
  transform: translateX(100vw);
  animation: pageEnter 0.7s forwards;
}

@keyframes pageEnter {
  0% { opacity: 0; transform: translateX(100vw);}
  40% { opacity: 1; transform: translateX(10vw);}
  100% { opacity: 1; transform: translateX(0);}
}

/* Optionnel : texte ou icône au centre pendant la transition */
.page-transition-content {
  font-size: 2em;
  color: #388E3C;
  font-weight: 700;
  letter-spacing: 2px;
  opacity: 0.8;
}

/* --- Couleurs de fond selon l'onglet/page --- */
body.page-accueil {
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
}
body.page-contact {
  background: linear-gradient(135deg, #F4FFF4 0%, #E8F5E9 100%);
}
body.page-femme {
  background: linear-gradient(135deg, #E8F5E9 0%, #A5D6A7 100%);
}
body.page-bourse {
  background: linear-gradient(135deg, #E8F5E9 0%, #81C784 100%);
}
body.page-activite {
  background: linear-gradient(135deg, #E8F5E9 0%, #AED581 100%);
}
body.page-apropos {
  background: linear-gradient(135deg, #F4FFF4 0%, #C8E6C9 100%);
}

/* --- Couleur du menu navigation selon la page --- */
body.page-accueil .navigation {
  background: linear-gradient(90deg, #E8F5E9 0%, #C8E6C9 100%);
}
body.page-contact .navigation {
  background: linear-gradient(90deg, #F4FFF4 0%, #E8F5E9 100%);
}
body.page-femme .navigation {
  background: linear-gradient(90deg, #E8F5E9 0%, #A5D6A7 100%);
}
body.page-bourse .navigation {
  background: linear-gradient(90deg, #E8F5E9 0%, #81C784 100%);
}
body.page-activite .navigation {
  background: linear-gradient(90deg, #E8F5E9 0%, #AED581 100%);
}
body.page-apropos .navigation {
  background: linear-gradient(90deg, #F4FFF4 0%, #C8E6C9 100%);
}

/* Onglet actif : couleur verte selon la page */
body.page-accueil .nav-item.active,
body.page-contact .nav-item.active,
body.page-femme .nav-item.active,
body.page-bourse .nav-item.active,
body.page-activite .nav-item.active,
body.page-apropos .nav-item.active {
  background: linear-gradient(90deg, #16A34A 0%, #4CAF50 100%);
  color: #fff;
  border-radius: 12px;
  margin: 8px 0;
  padding: 16px 24px;
  border-bottom: none;
  box-shadow: 0 2px 8px rgba(76,175,80,0.10);
}

body.page-accueil .nav-item.active svg,
body.page-contact .nav-item.active svg,
body.page-femme .nav-item.active svg,
body.page-bourse .nav-item.active svg,
body.page-activite .nav-item.active svg,
body.page-apropos .nav-item.active svg {
  stroke: #fff;
}