/* ==========================================================================
   Chorale Connect – Design Liturgique Catholique (Light Theme)
   Mobile-first | Responsive | PHP 7.3+
   ========================================================================== */

/* ── Variables ──────────────────────────────────────────────────── */
:root {
  --bg:          #faf8f4;
  --bg2:         #f5f0e8;
  --card:        #ffffff;
  --card-border: #e8dfc8;
  --text:        #1a1206;
  --text2:       #4a3f2f;
  --muted:       #7a6a52;
  --line:        #e0d5c0;

  /* Couleurs liturgiques */
  --gold:        #C9A646;
  --gold-dark:   #9a7a28;
  --gold-light:  #f0dfa0;
  --red:         #8B1A1A;
  --red-light:   #f7e8e8;
  --violet:      #4A1060;
  --violet-light:#f0e8f8;
  --green:       #1B5E20;
  --green-light: #e8f5e9;
  --cream:       #FFF8E7;

  --shadow-sm:   0 2px 8px rgba(139,110,46,.10);
  --shadow:      0 6px 24px rgba(139,110,46,.14);
  --shadow-lg:   0 16px 48px rgba(139,110,46,.18);
  --radius:      16px;
  --radius-sm:   10px;
  --radius-lg:   24px;
}

/* ── Reset ──────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
  font-family: system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font: inherit; }
code { background: var(--bg2); padding: 2px 6px; border-radius: 6px; font-size:.9em; }

/* ── Topbar ──────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,248,231,.96);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 2px 12px rgba(201,166,70,.15);
}
.topbar__inner {
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__logo {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: var(--shadow-sm);
  font-size: 1.4rem;
  color: #fff;
}
.brand__name {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--red);
  letter-spacing: .3px;
}
.brand__tagline {
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .5px;
  text-transform: uppercase;
}

.topnav { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.topnav__link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-weight: 600;
  font-size: .92rem;
  transition: background .15s, color .15s;
}
.topnav__link:hover { background: var(--gold-light); color: var(--gold-dark); }
.topnav__link--active { background: var(--gold-light); color: var(--gold-dark); }
.topnav__link--admin {
  border: 1px solid var(--red);
  color: var(--red);
}
.topnav__link--admin:hover { background: var(--red-light); }

.burger {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  border-radius: var(--radius-sm);
}
.burger:hover { background: var(--bg2); }
.burger span {
  display: block; width: 22px; height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 2px;
  transition: .2s;
}

@media (max-width: 820px) {
  .burger { display: block; }
  .topnav { display: none; }
  .topnav.topnav--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 3vw; top: 64px;
    width: min(340px, 94vw);
    background: var(--cream);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
   }
  .topnav__link { width: 100%; justify-content: flex-start; }
}

/* ── Layout ──────────────────────────────────────────────────────── */
.container {
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding: 24px 0 48px;
}

.layout { display: grid; gap: 20px; }
.layout--admin   { grid-template-columns: 260px 1fr; }
.layout--feed    { grid-template-columns: 1fr 360px; }
.layout--messages{ grid-template-columns: 320px 1fr; }
@media (max-width: 1024px) {
  .layout--admin    { grid-template-columns: 1fr; }
  .layout--feed     { grid-template-columns: 1fr; }
  .layout--messages { grid-template-columns: 1fr; }
}

/* ── Sidebar admin ──────────────────────────────────────────────── */
/* .sidebar {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  height: fit-content;
  position: sticky;
  top: 80px;
} */
.layout--admin .sidebar {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 80px;
}
.sidebar__logo {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold-light);
  margin-bottom: 12px;
}
.sidebar__logo-icon { font-size: 1.6rem; }
.sidebar__logo-text {
  font-family: Georgia,serif;
  font-weight: 700;
  color: var(--red);
  font-size: 1rem;
}
.sidebar__section { margin-bottom: 16px; }
.sidebar__section-title {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 4px 10px;
  margin-bottom: 4px;
}
.sidebar__link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-weight: 500;
  font-size: .92rem;
  transition: background .15s, color .15s;
  margin-bottom: 2px;
}
.sidebar__link:hover { background: var(--gold-light); color: var(--gold-dark); }
.sidebar__link--active {
  background: linear-gradient(90deg, var(--gold-light), #fff8);
  color: var(--gold-dark);
  border-left: 3px solid var(--gold);
  font-weight: 700;
}
.sidebar__link .icon { font-size: 1.1rem; width: 22px; }

/* ── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.card--gold {
  border-top: 4px solid var(--gold);
}
.card--red {
  border-top: 4px solid var(--red);
}
.card--violet {
  border-top: 4px solid var(--violet);
}
.card--green {
  border-top: 4px solid var(--green);
}
.card__title {
  font-family: Georgia,serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.card__subtitle { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  transition: filter .15s, box-shadow .15s;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.07); box-shadow: var(--shadow-sm); }
.btn--ghost {
  background: transparent;
  color: var(--gold-dark);
  border: 1.5px solid var(--gold);
}
.btn--ghost:hover { background: var(--gold-light); }
.btn--red {
  background: linear-gradient(135deg, var(--red), #6B1010);
  border-color: var(--red);
}
.btn--danger { background: #dc3545; border-color: #dc3545; color: #fff; }
.btn--danger:hover { background: #b02a37; }
.btn--green {
  background: linear-gradient(135deg, var(--green), #145214);
  border-color: var(--green);
}
.btn--violet {
  background: linear-gradient(135deg, var(--violet), #300840);
  border-color: var(--violet);
}
.btn--sm { padding: 7px 12px; font-size: .85rem; border-radius: 8px; }
.btn--lg { padding: 14px 28px; font-size: 1rem; border-radius: 14px; }
.w100 { width: 100%; }

/* ── Alerts ─────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border-left: 4px solid;
  margin: 12px 0;
  font-size: .93rem;
}
.alert--danger  { background: var(--red-light);    border-color: var(--red);    color: var(--red); }
.alert--success { background: var(--green-light);  border-color: var(--green);  color: var(--green); }
.alert--info    { background: var(--violet-light); border-color: var(--violet); color: var(--violet); }
.alert--gold    { background: var(--gold-light);   border-color: var(--gold);   color: var(--gold-dark); }

/* ── Forms ──────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 8px; }
.label {
  font-weight: 600;
  font-size: .88rem;
  color: var(--text2);
  margin-top: 6px;
  display: block;
}
.input {
  width: 100%;
  margin-top: 4px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--card-border);
  background: var(--bg);
  color: var(--text);
  font-size: .93rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,166,70,.15);
  background: #fff;
}
.input::placeholder { color: var(--muted); }
.input--sm { padding: 8px 10px; font-size: .88rem; }
textarea.input { resize: vertical; min-height: 100px; }
select.input { cursor: pointer; }

/* ── Typography helpers ──────────────────────────────────────────── */
.muted  { color: var(--muted); }
.small  { font-size: .85rem; }
.fw     { font-weight: 700; }
.big    { font-size: 2.2rem; font-weight: 800; color: var(--text); font-family: Georgia,serif; }
.text-gold   { color: var(--gold-dark); }
.text-red    { color: var(--red); }
.text-violet { color: var(--violet); }
.text-green  { color: var(--green); }
.mt    { margin-top: 18px; }
.mt-sm { margin-top: 10px; }
.mb    { margin-bottom: 18px; }

/* ── Grid ────────────────────────────────────────────────────────── */
.grid   { display: grid; gap: 16px; }
.grid--2{ grid-template-columns: 1fr 1fr; }
.grid--3{ grid-template-columns: repeat(3,1fr); }
.grid--4{ grid-template-columns: repeat(4,1fr); }
@media(max-width:900px){
  .grid--2,.grid--3,.grid--4{ grid-template-columns:1fr; }
}
@media(min-width:901px) and (max-width:1100px){
  .grid--3{ grid-template-columns:1fr 1fr; }
  .grid--4{ grid-template-columns:1fr 1fr; }
}

.row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.row--between { justify-content:space-between; }
.row--end     { justify-content:flex-end; }

/* ── Stats cards ─────────────────────────────────────────────────── */
.stat-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; top:0; left:0; right:0;
  height: 4px;
}
.stat-card--gold::before  { background: var(--gold); }
.stat-card--red::before   { background: var(--red); }
.stat-card--violet::before{ background: var(--violet); }
.stat-card--green::before { background: var(--green); }
.stat-card__icon { font-size: 2.2rem; margin-bottom: 8px; }
.stat-card__value {
  font-size: 2.4rem; font-weight: 900;
  font-family: Georgia,serif;
  color: var(--text);
}
.stat-card__label { font-size: .85rem; color: var(--muted); margin-top: 4px; }

/* ── Pagehead ────────────────────────────────────────────────────── */
.pagehead {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px;
  margin: 16px 0 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gold-light);
}
.pagehead h1 {
  margin: 0;
  font-size: 1.6rem;
  font-family: Georgia,serif;
  color: var(--red);
}
.pagehead .sub { font-size: .9rem; color: var(--muted); margin-top: 3px; }

/* ── Hero section ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--red) 0%, #5C1010 50%, var(--violet) 100%);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero::before {
  content: '✝';
  position: absolute;
  right: 40px; top: 50%;
  transform: translateY(-50%);
  font-size: 8rem;
  opacity: .08;
}
.hero__cross {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.hero h1 {
  font-family: Georgia,'Times New Roman',serif;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}
.hero p {
  font-size: 1.1rem;
  opacity: .9;
  margin-bottom: 24px;
  max-width: 600px;
}
.hero__badge {
  display: inline-block;
  background: rgba(201,166,70,.25);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: .8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--gold-light);
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media(max-width:600px){
  .hero { padding: 36px 20px; }
  .hero h1 { font-size: 1.7rem; }
}

/* ── Feed / posts ────────────────────────────────────────────────── */
.post {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.post:last-child { border-bottom: 0; }
.post__head {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 10px;
  margin-bottom: 10px;
}
.post__author { font-weight: 700; color: var(--text); }
.post__content {
  color: var(--text2);
  white-space: pre-wrap;
  line-height: 1.7;
  margin: 8px 0 12px;
}
.post__image {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  margin: 10px 0;
  max-height: 500px;
  object-fit: cover;
}
.post__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.post__meta { font-size: .83rem; color: var(--muted); }

/* ── Comments ────────────────────────────────────────────────────── */
.comment {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg2);
  border: 1px solid var(--line);
  margin-top: 8px;
}

/* ── Avatar ──────────────────────────────────────────────────────── */
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  background: var(--bg2);
  flex-shrink: 0;
}
.avatar--lg { width: 72px; height: 72px; }
.avatar--sm { width: 32px; height: 32px; }

/* ── Pill / badge ────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  border: 1px solid;
}
.pill--gold   { background: var(--gold-light);   border-color: var(--gold);   color: var(--gold-dark); }
.pill--red    { background: var(--red-light);    border-color: var(--red);    color: var(--red); }
.pill--violet { background: var(--violet-light); border-color: var(--violet); color: var(--violet); }
.pill--green  { background: var(--green-light);  border-color: var(--green);  color: var(--green); }
.pill--muted  { background: var(--bg2);          border-color: var(--line);   color: var(--muted); }

/* ── Table ───────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
table.tbl th {
  background: var(--bg2);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--text2);
  border-bottom: 2px solid var(--gold-light);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
table.tbl td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.tbl tr:hover td { background: var(--bg2); }

/* ── Pagination ──────────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.page {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--card-border);
  background: var(--card);
  color: var(--text2);
  font-size: .88rem;
  font-weight: 600;
  transition: background .15s;
}
.page:hover { background: var(--gold-light); border-color: var(--gold); }
.page--active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* ── Chat / Messages ─────────────────────────────────────────────── */
.messages__sidebar { height: fit-content; }
.list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.list__item {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  transition: background .15s;
}
.list__item:hover { background: var(--gold-light); border-color: var(--gold); }
.list__item--active { background: var(--gold-light); border-left: 3px solid var(--gold); }

.messages__head {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.chatbox {
  height: 440px;
  overflow-y: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg2);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: .92rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.bubble--me {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.bubble--them {
  align-self: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.bubble .meta { font-size: .72rem; opacity: .7; margin-top: 4px; }
.messages__form { display: flex; gap: 10px; margin-top: 12px; align-items: center; }
.messages__form .input { margin-top: 0; flex: 1; }

/* ── Audio player ────────────────────────────────────────────────── */
.audio-player {
  background: linear-gradient(135deg, var(--red-light), var(--violet-light));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.audio-player audio { width: 100%; margin-top: 8px; }
.chant-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  transition: box-shadow .15s;
}
.chant-card:hover { box-shadow: var(--shadow); }
.chant-card__type {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.chant-card__title {
  font-family: Georgia,serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.chant-card__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ── Carte/map ───────────────────────────────────────────────────── */
#map {
  width: 100%;
  height: 520px;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  box-shadow: var(--shadow);
}
.map-controls {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow) !important;
}

/* ── Liturgie ────────────────────────────────────────────────────── */
.liturgie-day {
  background: linear-gradient(135deg, var(--red) 0%, var(--violet) 100%);
  border-radius: var(--radius);
  padding: 24px;
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
}
.liturgie-day__emoji { font-size: 3rem; margin-bottom: 8px; }
.liturgie-day__title { font-family: Georgia,serif; font-size: 1.5rem; font-weight: 700; }
.liturgie-day__date  { opacity: .85; margin-top: 6px; }

.programme-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 10px;
}
.programme-card__header {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 10px;
  margin-bottom: 8px;
}
.programme-card__date { font-weight: 700; color: var(--red); }
.programme-card__heure { color: var(--muted); font-size: .9rem; }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  background: linear-gradient(135deg, var(--red), #3a0808);
  color: rgba(255,255,255,.85);
  margin-top: 60px;
}
.footer__inner {
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding: 40px 0 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}
.footer__brand-name {
  font-family: Georgia,serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.footer__brand-text { font-size: .88rem; opacity: .8; }
.footer__title {
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 12px;
  font-size: .95rem;
}
.footer__link {
  display: block;
  color: rgba(255,255,255,.75);
  padding: 4px 0;
  font-size: .88rem;
  transition: color .15s;
}
.footer__link:hover { color: var(--gold-light); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 16px 0;
  text-align: center;
  font-size: .8rem;
  opacity: .65;
}
@media(max-width:700px){
  .footer__inner { grid-template-columns: 1fr; gap: 20px; }
}

/* ── Auth pages ──────────────────────────────────────────────────── */
.auth {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
  background: var(--bg);
  padding: 32px 16px;
}
.auth__card {
  width: min(480px, 100%);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.auth__logo {
  text-align: center;
  margin-bottom: 24px;
}
.auth__logo-icon { font-size: 3rem; color: var(--red); }
.auth__logo-title {
  font-family: Georgia,serif;
  font-size: 1.4rem;
  color: var(--red);
  font-weight: 700;
  margin-top: 8px;
}
.auth__logo-sub { font-size: .85rem; color: var(--muted); }
.auth h2 {
  font-family: Georgia,serif;
  color: var(--text);
  margin-bottom: 20px;
  font-size: 1.3rem;
}
.auth__divider {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0;
  color: var(--muted);
  font-size: .85rem;
}
.auth__divider::before,
.auth__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ── Notifications ───────────────────────────────────────────────── */
.notif-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.notif-item:last-child { border-bottom: 0; }
.notif-item--unread { background: var(--gold-light); margin: 0 -14px; padding: 10px 14px; border-radius: var(--radius-sm); }
.notif-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 6px;
  flex-shrink: 0;
}
.notif-dot--read { background: var(--line); }

/* ── Upload zone ─────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--gold);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s;
}
.upload-zone:hover { background: var(--gold-light); }

/* ── Responsive utility ──────────────────────────────────────────── */
@media(max-width:600px){
  .hide-sm { display: none !important; }
  .pagehead { flex-direction: column; }
  .pagehead h1 { font-size: 1.3rem; }
  .hero h1 { font-size: 1.5rem; }
}
@media(min-width:601px){
  .show-sm { display: none !important; }
}

/* ── Scrollbar ───────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ── Liturgical divider ──────────────────────────────────────────── */
.divider-cross {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0;
  color: var(--gold);
  font-size: .85rem;
}
.divider-cross::before,
.divider-cross::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

/* ==========================================================================
   NOUVEAUX STYLES v2 – Icônes SVG, Amis, Psaume du Jour, Partage, etc.
   ========================================================================== */

/* ── Icônes SVG dans la navigation ──────────────────────────────── */
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.topnav__link {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topnav__link svg {
  flex-shrink: 0;
  transition: transform .2s;
}
.topnav__link:hover svg { transform: scale(1.1); }

/* Badge de notification (messages non lus, demandes d'amis) */
.nav-icon--badge-wrap { position: relative; }
.nav-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 18px;
  height: 18px;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--cream);
  animation: badgePop .3s ease;
}
.nav-badge--hidden { display: none !important; }
@keyframes badgePop {
  0% { transform: scale(0); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Lien Psaume du Jour – style particulier dans le menu */
.topnav__link--psalm {
  background: linear-gradient(135deg, rgba(201,166,70,.15), rgba(201,166,70,.05));
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 7px 14px !important;
  color: var(--gold-dark) !important;
  font-weight: 700 !important;
  position: relative;
  overflow: hidden;
}
.topnav__link--psalm::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,166,70,.1), transparent);
  opacity: 0;
  transition: opacity .2s;
}
.topnav__link--psalm:hover::before { opacity: 1; }
.topnav__link--psalm:hover {
  background: var(--gold-light);
  color: var(--gold-dark) !important;
}

/* ── Alertes avec icônes SVG ─────────────────────────────────────── */
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert svg { flex-shrink: 0; }

/* ── Psaume du Jour – Section Héroïque ───────────────────────────── */
.psalm-hero {
  background: linear-gradient(135deg, #1a0a00 0%, var(--gold-dark) 35%, #7a5010 65%, #1a0a00 100%);
  border-radius: var(--radius-lg);
  padding: 0;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(201,166,70,.35);
  border: 1px solid rgba(201,166,70,.4);
}
.psalm-hero__inner {
  padding: 48px 40px;
  position: relative;
  z-index: 2;
}
.psalm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M100 10v180M10 100h180' stroke='rgba(201,166,70,0.07)' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='80' fill='none' stroke='rgba(201,166,70,0.05)' stroke-width='1'/%3E%3C/svg%3E") center/cover;
  z-index: 1;
}
.psalm-hero__ornament {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10rem;
  opacity: .06;
  z-index: 1;
  font-family: Georgia, serif;
  line-height: 1;
}
.psalm-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201,166,70,.2);
  border: 1px solid rgba(201,166,70,.5);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: .78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
  font-weight: 600;
}
.psalm-hero__date {
  font-size: .92rem;
  opacity: .8;
  margin-bottom: 6px;
}
.psalm-hero__number {
  font-size: .9rem;
  color: var(--gold-light);
  opacity: .9;
  margin-bottom: 4px;
  font-family: Georgia, serif;
  letter-spacing: .5px;
}
.psalm-hero__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
@media (max-width: 600px) {
  .psalm-hero__title { font-size: 1.7rem; }
  .psalm-hero__inner { padding: 30px 20px; }
}
.psalm-hero__antienne {
  background: rgba(201,166,70,.15);
  border-left: 3px solid var(--gold-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  font-style: italic;
  font-family: Georgia, serif;
  font-size: 1rem;
  opacity: .95;
  margin-bottom: 24px;
  line-height: 1.6;
}
.psalm-hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.btn--psalm-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  border: none;
  text-decoration: none;
}
.btn--psalm-dl:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.btn--psalm-mp3 {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4) !important;
  backdrop-filter: blur(4px);
}
.btn--psalm-mp3:hover { background: rgba(255,255,255,.25); }
.btn--psalm-partition {
  background: var(--gold);
  color: #1a0a00;
  border: 1.5px solid var(--gold) !important;
}
.btn--psalm-paroles {
  background: transparent;
  color: rgba(255,255,255,.9);
  border: 1.5px solid rgba(255,255,255,.3) !important;
}

/* Texte du psaume */
.psalm-text-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 0;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.psalm-text-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 5rem;
  color: var(--gold-light);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: .6;
}
.psalm-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.08rem;
  line-height: 2.1;
  color: var(--text2);
  white-space: pre-wrap;
  padding-left: 24px;
  border-left: 3px solid var(--gold-light);
  margin-left: 8px;
}
.psalm-source {
  font-size: .78rem;
  color: var(--muted);
  text-align: right;
  margin-top: 16px;
  font-style: italic;
}

/* Widget psaume dans le dashboard */
.psalm-widget {
  background: linear-gradient(135deg, #2a0800, var(--gold-dark) 80%, #4a2000);
  border-radius: var(--radius);
  padding: 20px 18px;
  color: #fff;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201,166,70,.4);
}
.psalm-widget:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(201,166,70,.3); }
.psalm-widget__bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M30 5v50M5 30h50' stroke='rgba(201,166,70,0.08)' stroke-width='1'/%3E%3C/svg%3E") repeat;
  z-index: 0;
}
.psalm-widget__inner { position: relative; z-index: 1; }
.psalm-widget__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-light);
  margin-bottom: 8px;
  font-weight: 700;
  opacity: .9;
}
.psalm-widget__title {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}
.psalm-widget__antienne {
  font-size: .82rem;
  opacity: .8;
  font-style: italic;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 10px;
}
.psalm-widget__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--gold-light);
  font-weight: 700;
  padding: 5px 12px;
  background: rgba(201,166,70,.2);
  border-radius: 999px;
  border: 1px solid rgba(201,166,70,.4);
  transition: background .15s;
}
.psalm-widget:hover .psalm-widget__cta { background: rgba(201,166,70,.35); }

/* ── Système d'amis ──────────────────────────────────────────────── */
.friend-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: box-shadow .15s;
}
.friend-card:hover { box-shadow: var(--shadow-sm); }
.friend-card__info { flex: 1; }
.friend-card__actions { display: flex; gap: 8px; }

.friend-request-card {
  background: var(--card);
  border: 1px solid var(--gold);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.friend-request-card__info { flex: 1; }
.friend-request-card__actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Bouton d'ajout d'ami sur les posts */
.btn--add-friend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #1877f2, #0d5dbd);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: .83rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter .15s;
}
.btn--add-friend:hover { filter: brightness(1.1); }
.btn--add-friend[data-status="pending"] {
  background: var(--bg2);
  color: var(--muted);
  border: 1.5px solid var(--line);
}
.btn--add-friend[data-status="accepted"] {
  background: var(--green-light);
  color: var(--green);
  border: 1.5px solid var(--green);
}

/* ── Partage / Republication ─────────────────────────────────────── */
.shared-post {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 10px 0;
  font-size: .9rem;
}
.shared-post__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: .8rem;
  color: var(--muted);
}
.shared-post__author { font-weight: 700; color: var(--text2); }
.shared-post__content {
  color: var(--text2);
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Modal de partage */
.share-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.share-modal-overlay.active { display: flex; }
.share-modal {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  width: min(480px, 94vw);
  box-shadow: var(--shadow-lg);
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.95) translateY(-10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.share-modal__title {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.share-modal__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.share-option {
  padding: 16px;
  border: 2px solid var(--card-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s;
}
.share-option:hover { border-color: var(--gold); background: var(--gold-light); }
.share-option.selected { border-color: var(--gold); background: var(--gold-light); }
.share-option__icon { font-size: 2rem; margin-bottom: 6px; }
.share-option__label { font-weight: 700; font-size: .9rem; color: var(--text); }
.share-option__desc { font-size: .75rem; color: var(--muted); margin-top: 2px; }

/* ── Likes de commentaires ───────────────────────────────────────── */
.comment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.btn--comment-like {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: .82rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .15s, color .15s;
  font-family: inherit;
}
.btn--comment-like:hover { background: var(--red-light); color: var(--red); }
.btn--comment-like.liked { color: var(--red); font-weight: 700; }
.btn--comment-like svg { transition: transform .2s; }
.btn--comment-like:hover svg { transform: scale(1.2); }

/* Tooltip "qui a aimé" */
.likes-popup {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: .78rem;
  white-space: nowrap;
  max-width: 200px;
  z-index: 50;
  box-shadow: var(--shadow);
  pointer-events: none;
}
.likes-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 12px;
  border: 5px solid transparent;
  border-top-color: var(--text);
}

/* ── Messages: liste des conversations ───────────────────────────── */
.conv-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  transition: background .15s;
  position: relative;
}
.conv-item:hover { background: var(--gold-light); border-color: var(--gold); }
.conv-item--active { background: var(--gold-light); border-left: 3px solid var(--gold); }
.conv-item--unread { background: var(--cream); border-color: var(--gold); }
.conv-item__info { flex: 1; min-width: 0; }
.conv-item__name { font-weight: 700; font-size: .9rem; }
.conv-item__preview {
  font-size: .8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.conv-item__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.conv-item__time { font-size: .72rem; color: var(--muted); }
.conv-unread-badge {
  min-width: 18px;
  height: 18px;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Message avec heure affichée */
.bubble__time {
  font-size: .7rem;
  opacity: .65;
  margin-top: 3px;
  text-align: right;
}
.bubble--them .bubble__time { text-align: left; }

/* ── Notification améliorée ──────────────────────────────────────── */
.notif-item__icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .9rem;
}
.notif-item__icon--msg     { background: var(--gold-light); color: var(--gold-dark); }
.notif-item__icon--friend  { background: #e3f2fd; color: #1877f2; }
.notif-item__icon--share   { background: var(--green-light); color: var(--green); }
.notif-item__icon--like    { background: var(--red-light); color: var(--red); }

/* ── Sidebar link ─────────────────────────────────────────────────── */
.sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-size: .9rem;
  font-weight: 500;
  transition: background .15s, color .15s;
  margin-bottom: 2px;
}
.sidebar__link:hover { background: var(--gold-light); color: var(--gold-dark); }
.sidebar__link svg { flex-shrink: 0; }

/* Psaume widget dans sidebar */
.sidebar__psalm-link {
  display: block;
  background: linear-gradient(135deg, rgba(201,166,70,.15), rgba(201,166,70,.05));
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-decoration: none;
  margin-bottom: 8px;
  transition: background .2s;
}
.sidebar__psalm-link:hover { background: var(--gold-light); }

/* ── Tab navigation (pour la page amis) ─────────────────────────── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--line);
  margin-bottom: 20px;
}
.tab {
  padding: 10px 20px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tab:hover { color: var(--gold-dark); }
.tab--active { color: var(--gold-dark); border-bottom-color: var(--gold); }

/* ── Search choristes dans la sidebar ───────────────────────────── */
.user-search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  margin-bottom: 6px;
  cursor: pointer;
  transition: background .15s;
}
.user-search-result:hover { background: var(--gold-light); border-color: var(--gold); }
.user-search-result__info { flex: 1; }

/* ── Barre de progression pour partages ─────────────────────────── */
.share-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .8rem;
  color: var(--muted);
}

/* ── Médaillon liturgique dans fil d'actualité ───────────────────── */
.psalm-promo-bar {
  background: linear-gradient(90deg, #1a0800, var(--gold-dark) 50%, #1a0800);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  margin-bottom: 18px;
  border: 1px solid rgba(201,166,70,.4);
  transition: box-shadow .2s;
}
.psalm-promo-bar:hover { box-shadow: 0 8px 30px rgba(201,166,70,.3); }
.psalm-promo-bar__icon {
  width: 44px; height: 44px;
  background: rgba(201,166,70,.2);
  border: 1.5px solid rgba(201,166,70,.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.psalm-promo-bar__info { flex: 1; }
.psalm-promo-bar__label {
  font-size: .7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 2px;
}
.psalm-promo-bar__title {
  font-family: Georgia, serif;
  font-size: .95rem;
  font-weight: 700;
}
.psalm-promo-bar__cta {
  font-size: .75rem;
  padding: 5px 12px;
  background: rgba(201,166,70,.2);
  border: 1px solid rgba(201,166,70,.4);
  border-radius: 999px;
  color: var(--gold-light);
  flex-shrink: 0;
  font-weight: 600;
}

/* ── Séparateur de repost dans le fil ──────────────────────────── */
.repost-label {
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}





/* =====================================================
   ADMIN DASHBOARD - STYLES MODERNES
   ===================================================== */

.admin-dashboard {
    padding: 1.5rem;
}

/* En-tête */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-welcome {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-welcome__icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.dashboard-welcome h2 {
    font-size: 1.25rem;
    margin: 0 0 0.25rem 0;
    color: var(--text, #333);
}

.dashboard-welcome p {
    font-size: 0.85rem;
    color: var(--text-muted, #666);
    margin: 0;
}

.dashboard-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg2, #f5f5f5);
    border-radius: 40px;
    font-size: 0.85rem;
    color: var(--text-muted, #666);
}

/* Cartes statistiques */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card, #fff);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--card-border, #e0e0e0);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold, #c9a03d);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.stat-card__icon {
    width: 56px;
    height: 56px;
    background: rgba(201, 160, 61, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold, #c9a03d);
}

.stat-card__content {
    text-align: center;
}

.stat-card__value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text, #333);
    display: block;
}

.stat-card__label {
    font-size: 0.85rem;
    color: var(--text-muted, #666);
}

.stat-card__link {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 0.75rem;
    color: var(--gold, #c9a03d);
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.stat-card:hover .stat-card__link {
    opacity: 1;
}

/* Grille principale */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Cartes du dashboard */
.dashboard-card {
    background: var(--card, #fff);
    border-radius: 20px;
    border: 1px solid var(--card-border, #e0e0e0);
    overflow: hidden;
}

.dashboard-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--card-border, #e0e0e0);
}

.dashboard-card__header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text, #333);
}

.dashboard-card__link {
    font-size: 0.8rem;
    color: var(--gold, #c9a03d);
    text-decoration: none;
}

.dashboard-card__body {
    padding: 1.5rem;
}

/* Graphique */
.dashboard-card--chart {
    grid-column: span 1;
}

.chart-period {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--card-border, #e0e0e0);
    border-radius: 8px;
    background: var(--bg, #fff);
    font-size: 0.75rem;
}

canvas {
    max-height: 250px;
    width: 100%;
}

/* Liste récente */
.recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-list__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--card-border, #e0e0e0);
}

.recent-list__item:last-child {
    border-bottom: none;
}

.recent-list__icon {
    font-size: 1.25rem;
}

.recent-list__avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.recent-list__content {
    flex: 1;
}

.recent-list__title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text, #333);
}

.recent-list__meta {
    font-size: 0.7rem;
    color: var(--text-muted, #666);
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-badge--active {
    background: #e8f5e9;
    color: #4caf50;
}

.status-badge--inactive {
    background: #ffebee;
    color: #f44336;
}

.status-badge--admin {
    background: #fff3e0;
    color: #ff9800;
}

.status-badge--user {
    background: #e3f2fd;
    color: #2196f3;
}

/* Actions rapides */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg2, #f5f5f5);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.quick-action:hover {
    background: var(--gold-light, rgba(201, 160, 61, 0.1));
    transform: translateX(4px);
}

.quick-action__icon {
    font-size: 1.25rem;
}

.quick-action__text {
    font-size: 0.85rem;
    color: var(--text, #333);
}

/* Informations système */
.system-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg2, #f5f5f5);
    border-radius: 16px;
    justify-content: space-between;
}

.system-info__item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.system-info__label {
    font-size: 0.7rem;
    color: var(--text-muted, #666);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.system-info__value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text, #333);
}

.empty-message {
    text-align: center;
    color: var(--text-muted, #666);
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-dashboard {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card__value {
        font-size: 1.5rem;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .system-info {
        flex-direction: column;
        gap: 0.75rem;
    }

    .system-info__item {
        flex-direction: row;
        justify-content: space-between;
    }
}
