/* ====== Base ====== */
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background-color: #f4f7fa;
  margin: 0;
  padding: 0;
  color: #333;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 30px;
}

.form-check {
  display: flex;
  align-items: center; /* centre input et label verticalement */
}

.form-check-input {
  margin-top: 0; /* supprime le décalage */
  margin-right: 0.5rem; /* espace entre bouton et texte */
}

.form-check-label {
  margin-top: 0; /* neutralise ton ancien 15px */
}

.cooking-select {
  display: none; /* caché par défaut */
}

.cooking-select.show {
  display: flex; /* ou block si tu préfères */
}

.disabled {
  pointer-events: none;   /* bloque les clics */
  opacity: 0.5;           /* visuel grisé */
  user-select: none;      /* empêche la sélection de texte */
}


/* ====== Pages spécifiques ====== */
body.index {
  background: linear-gradient(to right, #007bff, #00c6ff);
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
}

/* ====== Titres ====== */
h1, h2, h3 {
  color: #005fa3;
  margin-bottom: 20px;
}

h1 {
  font-size: 24px;
}

.section h2 {
  font-size: 1.2em;
  color: #0077cc;
  margin-bottom: 10px;
}

/* ====== Cartes et blocs ====== */
.login-card,
.event-info,
.event-card,
.participant-list {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.login-card {
  max-width: 400px;
  width: 100%;
}

.event-card {
  border-left: 6px solid #0077cc;
  transition: transform 0.2s ease;
}

.event-card:hover {
  transform: scale(1.01);
}

.participant-list {
  padding: 15px;
}

.participant-list ul {
  list-style: none;
  padding: 0;
}

.participant-list li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95em;
  color: #333;
}

    .logo {
      font-size: 1.5rem;
      font-weight: bold;
      color: #007bff;
    }
	
	
    .user-card {
      background: #fff;
      border-radius: 8px;
      box-shadow: 0 0 10px rgba(0,0,0,0.05);
      padding: 1rem;
      margin-bottom: 1rem;
    }
    .user-actions button {
      margin-right: 0.5rem;
      margin-bottom: 0.5rem;
    }
    .search-bar {
      max-width: 500px;
    }


/* ====== Formulaires ====== */
label {
  display: block;
  margin-top: 15px;
  font-weight: 500;
  color: #333;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
}

/* ====== Boutons ====== */
button,
.btn,
.btn-action {
  padding: 10px 15px;
  border-radius: 5px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

button:hover,
.btn:hover,
.btn-action:hover {
  opacity: 0.9;
}

button[type="submit"],
.btn-primary {
  background-color: #0077cc;
  color: white;
}

button[type="submit"]:hover,
.btn-primary:hover {
  background-color: #005fa3;
}

.add {
  background-color: #28a745;
  color: white;
}

.remove {
  background-color: #dc3545;
  color: white;
}

.dp {
  background-color: #ffc107;
  color: black;
}

.btn-details {
  background-color: #f0f0f0;
  color: #333;
}

.button-row-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.btn-success {
  background-color: #198754;
}

/* ====== Liens ====== */
a {
  color: #0077cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a.back-link {
  display: inline-block;
  margin-top: 20px;
}

/* ====== Tableaux ====== */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #e9f1f9;
  color: #0077cc;
  font-weight: 600;
}

tr:hover {
  background-color: #f9fcff;
}

/* ====== Messages ====== */
.message {
  margin-top: 20px;
  padding: 10px;
  border-left: 4px solid;
  border-radius: 5px;
}

.success {
  background-color: #e6f7e6;
  border-color: green;
  color: darkgreen;
}

.error {
  background-color: #fbeaea;
  border-color: red;
  color: darkred;
}

/* ====== Événements ====== */
.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-title {
  font-size: 1.2em;
  font-weight: 600;
  color: #333;
}

.event-location,
.event-dates,
.event-info p {
  font-size: 0.95em;
  color: #444;
}

.event-actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .event-actions {
    flex-direction: column;
  }
}

/* ====== Badges et rôles ====== */
.badge,
.role-badge,
.dp-label {
  display: inline-block;
  background-color: #eef;
  color: #005fa3;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85em;
  margin-left: 10px;
  font-weight: bold;
}

/* ====== Menu admin ====== */
.admin-menu {
  margin-top: 30px;
}

.admin-menu h3 {
  margin-bottom: 10px;
  color: #005fa3;
}

.admin-menu ul {
  list-style: none;
  padding-left: 0;
}

.admin-menu li {
  margin-bottom: 8px;
}

.admin-menu a {
  color: #0077cc;
  font-weight: 500;
}

/* ====== Icônes d'action ====== */
.actions a {
  margin-right: 10px;
  font-size: 18px;
  color: #555;
}

.actions a:hover {
  color: #0077cc;
}

.actions .delete-icon {
  color: #cc0000;
}

.actions .delete-icon:hover {
  color: #ff4444;
}

.protected .delete-icon {
  display: none;
}

.text-justify {
  text-align: justify;
}
