body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #ff6ec7, #ffca3a, #8ac926, #1982c4);
  background-size: 400% 400%;
  animation: gradientMove 10s ease infinite;
  color: #fff;
  text-align: center;
}

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

/* Le contenu principal prend toute la place disponible */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* centre verticalement si peu de contenu */
  align-items: center;
}

/* Footer toujours collé en bas */
footer {
  margin-top: auto;
  background: rgba(0, 0, 0, 0.7);
  color: #ddd;
  font-size: 0.9rem;
  width: 100%;
  padding: 20px 0;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

nav.navbar {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}

.navbar-brand span {
  color: #ffca3a;
  font-weight: 700;
}

/* --- BOUTONS DE MENU HARMONISÉS AVEC LE TITRE D&O --- */
.nav-link {
  display: inline-block;
  position: relative;
  color: #111 !important;
  background: linear-gradient(45deg, #ffca3a, #ffd23f);
  border: 2px solid #ffca3a;
  border-radius: 25px;
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 1.2rem !important;
  margin: 0 0.3rem;
  box-shadow: 0 0 10px rgba(255, 202, 58, 0.5);
  transition: all 0.3s ease-in-out;
}

/* Effet au survol ou lien actif */
.nav-link:hover,
.nav-item.active .nav-link,
.nav-link:focus {
  background: linear-gradient(45deg, #ffd23f, #ffb300);
  color: #000 !important;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 202, 58, 0.8);
}

/* Amélioration mobile */
@media (max-width: 992px) {
  .navbar-nav .nav-link {
    display: block;
    text-align: center;
    margin: 0.4rem 0;
    border-radius: 30px;
    font-size: 1.1rem;
  }
}

@keyframes fadeInNav {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.navbar-nav .nav-link {
  animation: fadeInNav 0.8s ease forwards;
}

.logo {
  height: 120px;     /* ou 70px si tu veux vraiment le mettre en avant */
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.05); /* petit effet festif au survol */
}

body {
  padding-top: 120px; /* Ajuste selon la hauteur du menu */
}

header h1 {
  font-size: 2.8rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.card {
  border-radius: 1rem;
}

footer {
  background: rgba(0, 0, 0, 0.6);
  color: #ddd;
  font-size: 0.9rem;
}

/* --- STYLE DES TITRES --- */
.titre-section {
  color: #65a2ff; /* bleu foncé élégant */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* --- STYLE DES BOUTONS --- */
.btn {
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.4);
}

.btn-warning {
  background: linear-gradient(45deg, #f9c80e, #ff9800);
  color: #000;
  border: none;
}

.btn-warning:hover {
  background: linear-gradient(45deg, #ffd23f, #ffb300);
  color: #111;
}

.btn-outline-light, .btn-outline-info {
  background-color: #fff;
  color: #000;
}

.btn-outline-light:hover {
  background-color: #c2c2c2;
  color: #000;
}

.btn-outline-info {
  background-color: #65a2ff;
  border-color: #65a2ff;
  color: #fff;
}

.btn-outline-info:hover {
  background-color: #1b4b91;
  border-color: #1b4b91;
  color: #fff;
}

h2 {
  color: #FFFFFF;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

label {
  color: #fff;
}

.removeInvite {
  opacity: 0.8;
  transition: all 0.2s ease;
}

.removeInvite:hover {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.text-info {
  color: #65a2ff !important; /* ton bleu festif */
  font-weight: 600;
}

.card h5 {
  font-size: 1.2rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

.card p, .card .lead, .card small {
  color: #fff !important;
}

.card.bg-dark.bg-opacity-75:hover {
  transform: scale(1.03);
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(255, 202, 58, 0.4);
}

@media (min-width: 992px) {
  .card.bg-dark.bg-opacity-75 {
    min-height: 330px;
  }
}

/* --- Style personnalisé pour le bouton Ajouter --- */
#addPerson.btn-primary {
  background: linear-gradient(45deg, #2196f3, #00bcd4);
  border: none;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 10px rgba(33, 150, 243, 0.6);
}

#addPerson.btn-primary:hover {
  background: linear-gradient(45deg, #00bcd4, #2196f3);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 188, 212, 0.8);
}
