/* === Apparition douce === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === Cards générales === */
.pgi-card,
.pgi-card-stat,
.pgi-table-container,
.pgi-home {
  animation: fadeIn 0.6s ease-out;
}

.pgi-card {
  max-width: 500px;
  margin: 20px auto;
  padding: 25px;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}
.pgi-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.pgi-card h3 {
  font-size: 1.4em;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* === Champs et boutons === */
.pgi-card input,
.pgi-card button,
.pgi-card input[type="submit"] {
  display: block;
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  transition: transform 0.2s ease;
}
.pgi-card button,
.pgi-card input[type="submit"] {
  background-color: #927070;
  color: white;
  border: none;
  cursor: pointer;
}
.pgi-card button:hover,
.pgi-card input[type="submit"]:hover {
  background-color: #927070;
  transform: scale(1.03);
}

/* === Bouton danger */
.pgi-danger-btn {
  background-color: #c0392b;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}
.pgi-danger-btn:hover {
  background-color: #a5281f;
  transform: scale(1.05);
}

/* Effet au survol */
.bouton-invite:hover {
  color:white;
}

.bouton-invite:active {
  color:white;
}

/* === Tableau responsive === */
.pgi-table-container {
  overflow-x: auto;
  margin-top: 20px;
  padding: 0 10px;
}
table.dataTable {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
table.dataTable thead th {
  background-color: #0073aa;
  color: white;
  padding: 12px;
  font-weight: 600;
}
table.dataTable tbody td {
  padding: 10px;
  border-top: 1px solid #eee;
}

/* === Cartes statistiques === */
.pgi-stats-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
  padding: 10px;
}
.pgi-card-stat {
  width: 260px;
  padding: 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #927070, #987676);
  color: white;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  text-align: center;
}
.pgi-card-stat h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
}
.pgi-card-stat p {
  font-size: 1.6em;
  margin: 0;
}
.pgi-card-stat i {
  font-size: 32px;
  margin-bottom: 10px;
}

/* === Boutons admin actions === */
.action-btn {
  margin-right: 5px;
  padding: 6px 10px;
  border-radius: 6px;
  background-color: #f1f1f1;
  display: inline-block;
  transition: transform 0.2s ease, background-color 0.3s;
}
.action-btn:hover {
  background-color: #ddd;
  transform: scale(1.05);
}

/* === Responsive mobile === */
@media screen and (max-width: 600px) {
  .pgi-card,
  .pgi-card-stat,
  .pgi-home {
    width: 95%;
    padding: 15px;
  }
  .pgi-stats-container {
    flex-direction: column;
    align-items: center;
  }
  table.dataTable {
    font-size: 14px;
  }
}

/* === Page d’accueil avec image de fond === */
.pgi-home {
  background: rgba(0, 0, 0, 0.8);/* 🌄 à personnaliser*/
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1000px rgba(0,0,0,0.5);
  color: white;
  text-align: center;
  padding: 40px 20px;
}
.pgi-home h1,
.pgi-home p {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
#pgi-menu-toggle {
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  border: solid 1px rgba(255,255,255,0.3);
  cursor: pointer;
}
#pgi-mobile-menu {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#pgi-mobile-menu a {
  background: none;
  border: solid 1px white;
  padding: 12px;
  border-radius: 8px;
  color:white;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, background-color 0.3s;
}
#pgi-mobile-menu a:hover {
  background-color: white;
  transform: scale(1.02);
  color: #212121;
}
/* === Animation de clignotement et pulsation === */

@keyframes flashPulse {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

/* ✨ Animation d’apparition */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* 🌸 Carte d'invitation & Message de confirmation */
.pgi-flower-card,
.pgi-flower-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  background: rgba(255,255,255,0.85);
  border-radius: 20px;
  padding: 28px;
  width: 90%;
  max-width: 540px;
  box-shadow: 0 0 12px rgba(0,0,0,0.06);
  font-family: 'Cormorant Garamond', serif;
  text-align: center;
  animation: fadeCard 0.6s ease-out;
  z-index: 100;
}

/* 🎀 Titres */
.pgi-flower-card h2,
.pgi-flower-message h2 {
  font-size: 26px;
  color: #6e4e4e;
  margin-bottom: 18px;
}

/* 🧾 Textes & libellés */
.pgi-flower-card p,
.pgi-flower-card label,
.pgi-flower-message p {
  font-size: 17px;
  margin-bottom: 10px;
  color: #4d4040;
}

/* 🔐 Champs du formulaire */
.pgi-flower-form input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #aaa;
  background: rgba(255,255,255,0.95);
  margin-bottom: 12px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pgi-flower-form input:focus {
  border-color: #927070;
  box-shadow: 0 0 6px rgba(146,112,112,0.3);
  outline: none;
}

/* 🎯 Boutons */
.pgi-flower-form button,
.pgi-flower-btn,
.pgi-flower-btn.alt {
  background-color: #6e4e4e;
  color: #ffffff;
  font-weight: bold;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.pgi-flower-form button:hover,
.pgi-flower-btn:hover,
.pgi-flower-btn.alt:hover {
  background-color: #513939;
  color: #ffffff;
}

/* 🧭 Groupe des boutons */
.pgi-btn-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* 🎇 Feux d’artifice flous blancs */
#pgiFireworks {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* 🌟 Apparition centrée avec expansion douce */
@keyframes fadeCard {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    box-shadow: 0 0 0 rgba(0,0,0,0);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 12px rgba(0,0,0,0.06);
  }
}
.toggle-eye {
  color: #6e4e4e;
  font-size: 18px;
  transition: color 0.3s ease;
}

.toggle-eye:hover {
  color: #927070;
}
