:root{
  --theme-color: #eaf0fe;
  --bg: var(--theme-color);
  --card: #ffffff;
  --accent: #3d348b;
  --accent-2: #ff7a18;
  --muted: #8a8a8a;
  --gold: #ffb84d;
  --shadow: 0 8px 30px rgba(61,52,139,0.08);
  --radius: 12px;
  --max-width: 760px;
  --gap: 1rem;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, var(--theme-color) 100%);
  color: #222;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  padding: 2vh 1rem;
  transition: background 450ms ease;
}

main{
  max-width: var(--max-width);
  margin: 0 auto;
  display:flex;
  flex-direction:column;
  gap: var(--gap);
  align-items: stretch;
}

/* Header / title */
.main-title{
  display:flex;
  align-items:center;
  gap:.6rem;
  font-weight:800;
  font-size:1.25rem;
  background:var(--card);
  padding:1rem;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  border-left:8px solid var(--accent-2);
}
.icon-pop{font-size:1.2rem;color:var(--accent-2)}

/* citation */
.citation-pop{
  text-align:center;
  color:#d94f7a;
  font-style:italic;
  font-weight:600;
  margin-top:-0.35rem;
  margin-bottom:.6rem;
  text-shadow: 0 4px 16px rgba(217,79,122,0.06);
}

/* Nav buttons row */
.nav-buttons{
  display:flex;
  gap:.6rem;
  align-items:center;
  flex-wrap:wrap;
}
.btn-group{display:flex;gap:.6rem;flex-wrap:wrap}
.nav-buttons button, .btn-submit{
  background:var(--accent);
  color:var(--accent-2);
  border:none;
  padding:.56em .85em;
  border-radius:9px;
  font-weight:700;
  cursor:pointer;
  box-shadow: 0 6px 18px rgba(61,52,139,0.08);
  transition: transform .12s ease, box-shadow .12s ease;
}
.nav-buttons button:hover, .btn-submit:hover{ transform: translateY(-2px); box-shadow: 0 10px 28px rgba(61,52,139,0.12); }
.admin-small{ margin-left:auto; background:transparent; border:1px dashed var(--muted); color:var(--muted); padding:.45em .6em; border-radius:8px; }

/* Cards */
.form-cosy{
  background: var(--card);
  padding:1.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 6px solid var(--gold);
}

/* Inputs */
input, textarea{
  width:100%;
  padding:.68em;
  border-radius:8px;
  border:1.2px solid #dbe7ff;
  background:#fbfdff;
  font-size:1rem;
  color:#222;
  margin-bottom:.9rem;
}
input:focus, textarea:focus{ outline:none; border-color: var(--accent-2); box-shadow: 0 6px 18px rgba(255,122,24,0.08); }

/* Small help / delay message */
.delai-msg{
  background: #fbfbff;
  border-left:4px solid var(--accent-2);
  color: var(--muted);
  padding:.6em .9em;
  border-radius:8px;
  font-size:.98rem;
}

/* Members & reviews lists */
.liste-membres-section ul, .liste-avis { padding:0; margin:0; list-style:none; }
.liste-membres-section li, .liste-avis li{
  background: linear-gradient(90deg,#fff 0%, #fbfbff 100%);
  padding:.75rem 1rem;
  margin-bottom:.6rem;
  border-radius:8px;
  border-left:5px solid var(--gold);
  box-shadow: 0 6px 14px rgba(0,0,0,0.04);
}

/* ENT button */
.btn-ent{
  background: linear-gradient(90deg, var(--accent), #2b2768);
  color: #fff;
  border:none;
  padding:.56em .95em;
  border-radius:9px;
  font-weight:800;
  cursor:pointer;
  box-shadow: 0 8px 18px rgba(61,52,139,0.12);
}
.btn-ent:hover{ background: linear-gradient(90deg,#2b2768,var(--accent)); transform: translateY(-2px); }

/* Small muted button */
.btn-muted{
  background:#f4f5f7;
  color:#444;
  padding:.55em .85em;
  border-radius:8px;
  border:1px solid #e6e6e6;
  text-decoration:none;
  display:inline-block;
}

/* Admin overlay */
.admin-overlay{ position:fixed; inset:0; display:none; align-items:center; justify-content:center; background:rgba(0,0,0,0.36); padding:1rem; z-index:200; }
.admin-overlay[aria-hidden="false"]{ display:flex }
.admin-panel{ width:100%; max-width:520px; position:relative; padding:1rem; }

/* Pending review styles */
.pending-item{ background:#fff; padding:.7rem; border-radius:8px; box-shadow:0 6px 18px rgba(0,0,0,0.06); margin-bottom:.6rem; border:1px solid #f1f1f1; }
.pending-controls{ display:flex; gap:.5rem; margin-top:.45rem; }
.pending-controls .btn-approve{ background:var(--accent); color:var(--accent-2); border:none; padding:.45em .7em; border-radius:7px; font-weight:700; }
.pending-controls .btn-delete{ background:#fff; border:1px solid #f1a05a; color:#c14d00; padding:.45em .7em; border-radius:7px; font-weight:700; }

/* Footer */
footer{ text-align:center; color:var(--muted); font-size:.95rem; margin-top:.6rem; }

/* Responsive */
@media (max-width:720px){
  main{ padding:1rem; }
  .main-title{ font-size:1.05rem; }
  .nav-buttons{ gap:.5rem; }
  .btn-group{ flex-wrap:wrap; }
  .admin-small{ margin-left:0; order:99; }
}