/* assets/css/style.css — agenda2 */

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

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #f5f5f5;
  color: #212121;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #5b7db5;
  color: #fff;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

.header-title { font-size: 1.25rem; font-weight: 700; }

.header-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.header-user button {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background .15s;
}
.header-user button:hover { background: rgba(255,255,255,.25); }

#calendar {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  padding: 1rem;
  display: none;
}

#loginWall {
  max-width: 420px;
  margin: 5rem auto 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  padding: 2.5rem 2rem;
  text-align: center;
  display: none;
}
#loginWall h2 {
  color: #5b7db5;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}
#loginWall p {
  color: #616161;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
#loginWall button {
  background: #5b7db5;
  color: #fff;
  border: none;
  padding: 0.6rem 2rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
}
#loginWall button:hover { opacity: 0.85; }

/* ─── Modals ─────────────────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  width: min(480px, 95vw);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}

.modal h2 { color: #5b7db5; font-size: 1.2rem; }

.modal label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #424242;
}

.modal input {
  padding: 0.5rem 0.75rem;
  border: 1px solid #bdbdbd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color .15s;
}
.modal input:focus { outline: none; border-color: #5b7db5; }

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.modal-actions button {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: opacity .15s;
}
.modal-actions button:first-child { background: #5b7db5; color: #fff; }
.modal-actions button:last-child  { background: #e0e0e0; color: #424242; }
.modal-actions button:hover { opacity: 0.85; }

.info-box {
  background: #e8eaf6;
  border-left: 4px solid #5b7db5;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #5b7db5;
}

.cout-preview {
  font-weight: 700;
  color: #5b7db5;
  font-size: 0.95rem;
}

.error-msg {
  color: #c62828;
  font-size: 0.85rem;
  min-height: 1.2em;
}

.btn-admin {
  background: rgba(255,255,255,.9);
  color: #5b7db5;
  text-decoration: none;
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background .15s;
}
.btn-admin:hover { background: #fff; }


.btn-danger { background: #c62828; color: #fff; border: none; padding: 0.5rem 1.2rem; border-radius: 4px; cursor: pointer; font-size: 0.95rem; }
.btn-danger:hover { background: #b71c1c; }
.btn-perm { background: #6b9fcc; }

/* Footer */
footer.app-footer {
  margin-top: 3rem;
  padding: 1rem 1.5rem;
  background: #5b7db5;
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
footer.app-footer .footer-left,
footer.app-footer .footer-right { line-height: 1.7; }
footer.app-footer .footer-right { text-align: right; }
footer.app-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
footer.app-footer a:hover { text-decoration: underline; }

.book-lignes-group { display: flex; gap: 1.5rem; padding: 0.25rem 0; }
.book-lignes-group label { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; font-weight: normal; }

/* Stand complet */
.fc-event.stand-complet {
  background-color: #e1bee7 !important;
  border-width: 2px !important;
  font-weight: bold !important;
}
.fc-event.stand-complet.stand-mine {
  background-color: #e65100 !important;
  border-color: #7b1fa2 !important;
}

/* Récurrence créneaux */
.recur-row { margin: .5rem 0 .25rem; }
.recur-toggle-label { display: flex; align-items: center; gap: .5rem; font-weight: 500; cursor: pointer; }
#creneauRecurOptions { margin-top: .5rem; padding: .6rem .8rem; background: #f0f4ff; border-radius: 6px; display: flex; flex-direction: column; gap: .4rem; }
#creneauRecurOptions label { font-size: .9rem; }
.recur-hint { margin: 0; font-size: .78rem; color: #666; font-style: italic; }
