/* Eurêka.Foi — an editorial, calm interface inspired by the MissionGRC design layer.
   Warm paper, deep plum ink, terracotta highlights. No framework, no CDN. */

@font-face {
  font-family: 'Manrope Variable';
  src: url('/assets/fonts/manrope-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces Variable';
  src: url('/assets/fonts/fraunces-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ef-paper: #f7f3ec;
  --ef-paper-strong: #fffdf9;
  --ef-ink: #2c2029;
  --ef-ink-soft: #4c3b43;
  --ef-muted: #8b7a7f;
  --ef-line: #e9e0d6;
  --ef-line-strong: #d8cabd;
  --ef-plum: #3b2b3a;
  --ef-plum-deep: #251b28;
  --ef-plum-soft: #8c7387;
  --ef-rose: #a9655a;
  --ef-rose-soft: #e7cfc6;
  --ef-gold: #c7946c;
  --ef-sage: #6c7d63;
  --ef-radius: 16px;
  --ef-shadow-sm: 0 1px 2px rgba(52, 35, 45, 0.05);
  --ef-shadow-md: 0 18px 42px -30px rgba(47, 31, 40, 0.5);
  --ef-sidebar: 264px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-width: 320px;
  margin: 0;
  background: var(--ef-paper);
  color: var(--ef-ink);
  font-family: 'Manrope Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #e9cfc4; color: #321f29; }
a { color: var(--ef-rose); }
h1, h2, h3, h4, p { margin-top: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ef-rose); outline-offset: 2px; }

.ef-icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.14em; }
.ef-sep { margin: 0 0.4rem; color: var(--ef-line-strong); }

/* ------------------------------------------------------------------ shell */

.ef-app { min-height: 100vh; }

.ef-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: var(--ef-sidebar);
  padding: 1.15rem 0.9rem 1rem;
  color: #eadde3;
  background:
    radial-gradient(100% 40% at 0% 0%, rgba(193, 133, 108, 0.22), transparent 70%),
    linear-gradient(180deg, #31222f 0%, #241a26 58%, #2c1f2b 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow-y: auto;
  scrollbar-width: thin;
}

.ef-brand { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.1rem 0.35rem 1.4rem; }
.ef-brand-link { display: flex; align-items: center; gap: 0.65rem; color: inherit; text-decoration: none; }
.ef-brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  color: #efc9a6;
  background: rgba(199, 148, 108, 0.14);
  border: 1px solid rgba(226, 173, 135, 0.28);
}
.ef-brand-mark .ef-icon { width: 1.5rem; height: 1.5rem; }
.ef-brand-text { display: grid; line-height: 1.05; }
.ef-brand-text strong { font-family: 'Fraunces Variable', Georgia, serif; font-size: 1.24rem; font-weight: 600; letter-spacing: -0.02em; color: #fffaf4; }
.ef-brand-text strong span { color: #e2ad8a; }
.ef-brand-text small { margin-top: 0.3rem; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #b39ca4; }

.ef-nav { display: grid; gap: 0.2rem; }
.ef-nav-label { padding: 0 0.7rem 0.45rem; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #aa8f99; }
.ef-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.58rem 0.7rem;
  border-radius: 10px;
  color: #d7c5cc;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}
.ef-nav-link .ef-icon { width: 1.05rem; height: 1.05rem; color: #b79aa5; }
.ef-nav-link:hover { color: #fff8f2; background: rgba(255, 255, 255, 0.055); }
.ef-nav-link.is-active { color: #fff9f3; background: linear-gradient(90deg, rgba(201, 138, 108, 0.2), rgba(201, 138, 108, 0.06)); box-shadow: inset 0 0 0 1px rgba(224, 169, 137, 0.16); }
.ef-nav-link.is-active::before { content: ''; position: absolute; left: 0; top: 0.45rem; bottom: 0.45rem; width: 2px; border-radius: 99px; background: #e0a988; }
.ef-nav-link.is-active .ef-icon { color: #eec4a4; }

.ef-sidebar-bottom { display: grid; gap: 0.85rem; margin-top: auto; padding-top: 1.6rem; }
.ef-side-note { display: flex; gap: 0.6rem; padding: 0.75rem; border-radius: 12px; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.07); }
.ef-side-note .ef-icon { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; color: #e2ad8a; }
.ef-side-note strong { display: block; font-size: 0.72rem; color: #f7e9df; }
.ef-side-note span { display: block; margin-top: 0.15rem; font-size: 0.64rem; line-height: 1.4; color: #b9a1aa; }
.ef-sidebar-foot { margin: 0; padding-left: 0.25rem; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: #947d88; }

.ef-main { margin-left: var(--ef-sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.ef-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
  padding: 0.7rem clamp(1rem, 3vw, 2.2rem);
  background: rgba(247, 243, 236, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ef-line);
}
.ef-topbar-left, .ef-topbar-right { display: flex; align-items: center; gap: 0.65rem; }
.ef-context { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.73rem; color: var(--ef-muted); font-weight: 650; }
.ef-live-dot { width: 7px; height: 7px; border-radius: 99px; background: var(--ef-rose); box-shadow: 0 0 0 4px rgba(169, 101, 90, 0.12); }
.ef-topbar-tag { padding: 0.25rem 0.65rem; border: 1px dashed var(--ef-line-strong); border-radius: 99px; font-size: 0.65rem; font-weight: 750; color: var(--ef-muted); }
.ef-content { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(1.2rem, 3vw, 2.2rem) clamp(1rem, 3vw, 2.2rem) 2.5rem; }
.ef-footer { display: flex; gap: 0.4rem; flex-wrap: wrap; padding: 1rem clamp(1rem, 3vw, 2.2rem) 1.4rem; border-top: 1px solid var(--ef-line); font-size: 0.68rem; color: var(--ef-muted); }

.ef-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border: 1px solid var(--ef-line);
  border-radius: 10px;
  color: var(--ef-ink-soft);
  background: var(--ef-paper-strong);
  transition: background 140ms ease, transform 140ms ease;
}
.ef-icon-btn:hover { background: #fff; transform: translateY(-1px); }
.ef-icon-btn .ef-icon { width: 1.05rem; height: 1.05rem; }
.ef-menu-btn, .ef-sidebar-close { display: none; }
.ef-scrim { position: fixed; inset: 0; z-index: 60; border: 0; background: rgba(37, 27, 40, 0.45); backdrop-filter: blur(2px); }

/* ------------------------------------------------------------------ pages */

.ef-page { display: grid; gap: clamp(1rem, 2vw, 1.4rem); animation: ef-rise 420ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes ef-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.ef-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; }
.ef-eyebrow { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 0.4rem; font-size: 0.63rem; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ef-plum-soft); }
.ef-eyebrow .ef-icon { width: 0.9rem; height: 0.9rem; color: var(--ef-rose); }
.ef-page-title { margin: 0; font-family: 'Fraunces Variable', Georgia, serif; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.45rem); font-weight: 550; line-height: 1.08; letter-spacing: -0.025em; color: var(--ef-plum); }
.ef-page-subtitle { max-width: 66ch; margin: 0.45rem 0 0; font-size: 0.83rem; color: var(--ef-muted); }
.ef-page-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.ef-pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.42rem 0.75rem; border-radius: 99px; border: 1px solid var(--ef-line); background: var(--ef-paper-strong); font-size: 0.7rem; font-weight: 800; color: var(--ef-ink-soft); }
.ef-pill .ef-icon { color: var(--ef-rose); }

.ef-card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--ef-line); border-radius: var(--ef-radius); background: var(--ef-paper-strong); box-shadow: var(--ef-shadow-sm); }
.ef-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; padding: 1.05rem 1.15rem 0.8rem; }
.ef-card-title { display: flex; align-items: center; gap: 0.45rem; margin: 0; font-size: 0.88rem; font-weight: 850; letter-spacing: -0.01em; color: var(--ef-plum); }
.ef-card-title .ef-icon { color: var(--ef-rose); }
.ef-card-sub { margin: 0.2rem 0 0; font-size: 0.72rem; color: var(--ef-muted); }
.ef-card-count { font-size: 0.65rem; font-weight: 800; color: var(--ef-muted); white-space: nowrap; }
.ef-empty { padding: 2rem; text-align: center; }
.ef-empty h2 { font-family: 'Fraunces Variable', Georgia, serif; color: var(--ef-plum); }

/* ----------------------------------------------------------------- player */

.ef-player { display: grid; grid-template-columns: 216px minmax(0, 1fr); overflow: hidden; background: linear-gradient(135deg, #fffdf9 55%, #fbf5ee); }
.ef-player-cover {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
  overflow: hidden;
  background:
    radial-gradient(65% 55% at 70% 20%, rgba(199, 148, 108, 0.55), transparent 70%),
    linear-gradient(150deg, #4c3445 0%, #2e202e 65%, #412b3a 100%);
  color: #f9e9d9;
}
.ef-cover-glow { position: absolute; inset: auto -30% -45% -30%; height: 70%; border-radius: 50%; background: radial-gradient(ellipse, rgba(240, 186, 145, 0.32), transparent 65%); }
.ef-cover-flame { position: relative; width: 5.6rem; height: 5.6rem; color: #f1c6a3; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35)); }
.ef-cover-number { position: absolute; left: 1rem; bottom: 0.9rem; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.14em; color: rgba(255, 240, 226, 0.78); }
.ef-player-body { display: grid; align-content: center; gap: 0.85rem; padding: 1.2rem 1.35rem; }
.ef-player-heading { display: flex; justify-content: space-between; gap: 1rem; }
.ef-player-title { margin: 0; font-family: 'Fraunces Variable', Georgia, serif; font-size: clamp(1.15rem, 1vw + 0.8rem, 1.6rem); font-weight: 550; line-height: 1.18; letter-spacing: -0.015em; color: var(--ef-plum); }
.ef-player-meta { margin: 0.35rem 0 0; font-size: 0.7rem; font-weight: 650; color: var(--ef-muted); }
.ef-player-status { align-self: flex-start; padding: 0.3rem 0.6rem; border-radius: 99px; background: #f1e7de; color: var(--ef-rose); font-size: 0.62rem; font-weight: 800; white-space: nowrap; }
.ef-player-status.is-playing { background: #e3ece0; color: var(--ef-sage); }
.ef-player-resume { max-width: 68ch; margin: 0; font-size: 0.78rem; color: var(--ef-ink-soft); }

.ef-seek { display: grid; gap: 0.25rem; }
input[type='range'] { width: 100%; height: 4px; margin: 0; appearance: none; border-radius: 99px; background: linear-gradient(90deg, var(--ef-rose) var(--ef-fill, 0%), var(--ef-line) var(--ef-fill, 0%)); cursor: pointer; }
input[type='range']::-webkit-slider-thumb { appearance: none; width: 13px; height: 13px; border-radius: 50%; background: var(--ef-rose); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(45, 30, 35, 0.3); }
input[type='range']::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: var(--ef-rose); border: 2px solid #fff; }
.ef-times { display: flex; justify-content: space-between; font-size: 0.65rem; font-variant-numeric: tabular-nums; color: var(--ef-muted); }

.ef-controls { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }
.ef-controls-main, .ef-controls-extra { display: flex; align-items: center; gap: 0.5rem; }
.ef-play-btn { display: inline-grid; place-items: center; width: 2.9rem; height: 2.9rem; padding: 0; border: 0; border-radius: 50%; color: #fff9f3; background: var(--ef-plum); box-shadow: 0 8px 18px -10px rgba(59, 43, 58, 0.9); transition: transform 140ms ease, background 140ms ease; }
.ef-play-btn:hover { transform: scale(1.05); background: var(--ef-rose); }
.ef-play-btn .ef-icon { width: 1.2rem; height: 1.2rem; }
.ef-text-btn { padding: 0.35rem 0.55rem; border: 1px solid var(--ef-line); border-radius: 8px; background: var(--ef-paper-strong); color: var(--ef-ink-soft); font-size: 0.7rem; font-weight: 800; }
.ef-volume { display: flex; align-items: center; gap: 0.4rem; color: var(--ef-muted); }
.ef-volume .ef-icon { width: 1rem; height: 1rem; }
.ef-volume input { width: 74px; }

/* -------------------------------------------------------------- tracklist */

.ef-playlist-card { overflow: hidden; }
.ef-tracklist { list-style: none; margin: 0; padding: 0 0.55rem 0.65rem; }
.ef-track {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.7rem 0.6rem;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: inherit;
  text-align: left;
  transition: background 140ms ease;
}
.ef-track:hover { background: #f8f2eb; }
.ef-track.is-active { background: #f4eae3; }
.ef-track-index { display: grid; place-items: center; width: 2rem; height: 2rem; flex: none; border-radius: 9px; background: #f3ede6; font-size: 0.66rem; font-weight: 800; color: var(--ef-muted); font-variant-numeric: tabular-nums; }
.ef-track.is-active .ef-track-index { background: var(--ef-plum); color: #f8e7d6; }
.ef-track-play { width: 0.8rem; height: 0.8rem; }
.ef-track-info { display: grid; min-width: 0; flex: 1; }
.ef-track-info strong { overflow: hidden; font-size: 0.79rem; font-weight: 800; color: var(--ef-plum); text-overflow: ellipsis; white-space: nowrap; }
.ef-track-info small { font-size: 0.66rem; color: var(--ef-muted); }
.ef-track-duration { display: inline-flex; align-items: center; gap: 0.25rem; flex: none; font-size: 0.68rem; font-variant-numeric: tabular-nums; color: var(--ef-muted); }
.ef-track-duration .ef-icon { width: 0.8rem; height: 0.8rem; }

/* ------------------------------------------------------------ testimonies */

.ef-btn-primary { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.6rem 0.9rem; border: 0; border-radius: 10px; color: #fff9f2; background: var(--ef-plum); font-size: 0.74rem; font-weight: 800; text-decoration: none; box-shadow: 0 8px 18px -12px rgba(59, 43, 58, 0.9); }
.ef-btn-primary:hover { background: var(--ef-rose); }
.ef-btn-primary .ef-icon { width: 0.9rem; height: 0.9rem; }
.ef-notice { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.8rem 1rem; border: 1px solid #cfe0c8; border-radius: 11px; background: #edf5e9; font-size: 0.75rem; font-weight: 700; color: #46603f; }
.ef-notice .ef-icon { width: 1rem; height: 1rem; }
.ef-notice.is-error { flex-direction: column; gap: 0.25rem; border-color: #e6c6bd; background: #fbece7; color: #8a4b40; }
.ef-notice ul { margin: 0.25rem 0 0; padding-left: 1.2rem; }
.ef-testimony-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px, 0.85fr); gap: clamp(0.8rem, 1.6vw, 1.2rem); align-items: start; }
.ef-testimony-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(0.8rem, 1.6vw, 1.2rem); }
.ef-testimony { padding: 1.15rem 1.2rem 0; overflow: hidden; }
.ef-quote { position: absolute; top: 1rem; right: 1.15rem; color: #eadbd1; }
.ef-quote .ef-icon { width: 1.6rem; height: 1.6rem; }
.ef-testimony-title { margin: 0.65rem 0 0.6rem; font-family: 'Fraunces Variable', Georgia, serif; font-size: 1.1rem; font-weight: 600; line-height: 1.25; color: var(--ef-plum); }
.ef-prose { font-size: 0.76rem; line-height: 1.65; color: var(--ef-ink-soft); }
.ef-prose p { margin-bottom: 0.6rem; }
.ef-prose a { color: var(--ef-rose); }
.ef-testimony-foot { display: flex; align-items: center; gap: 0.6rem; margin-top: auto; padding: 0.85rem 0; border-top: 1px solid var(--ef-line); }
.ef-avatar { display: grid; place-items: center; width: 2rem; height: 2rem; flex: none; border-radius: 50%; background: #f0e3d9; color: var(--ef-rose); font-size: 0.62rem; font-weight: 850; }
.ef-testimony-author { display: grid; line-height: 1.3; }
.ef-testimony-author strong { font-size: 0.72rem; color: var(--ef-plum); }
.ef-testimony-author small { font-size: 0.62rem; color: var(--ef-muted); }
.ef-moderation-stat { display: flex; align-items: baseline; gap: 0.5rem; margin: 0.9rem 0; padding: 0.7rem 0.8rem; border-radius: 10px; background: #f6ede5; }
.ef-moderation-stat strong { font-family: 'Fraunces Variable', Georgia, serif; font-size: 1.8rem; color: var(--ef-rose); line-height: 1; }
.ef-moderation-stat span { font-size: 0.68rem; font-weight: 750; color: var(--ef-ink-soft); }

.ef-narrow { max-width: 760px; }
.ef-form-body { display: grid; gap: 1rem; padding: 0.2rem 1.15rem 1.2rem; }
.ef-field { display: grid; gap: 0.35rem; }
.ef-field > span { font-size: 0.72rem; font-weight: 850; color: var(--ef-plum); }
.ef-field input, .ef-field textarea { width: 100%; padding: 0.65rem 0.75rem; border: 1px solid var(--ef-line-strong); border-radius: 10px; background: #fffefa; color: var(--ef-ink); font-size: 0.78rem; resize: vertical; }
.ef-field small { font-size: 0.62rem; color: var(--ef-muted); }
.ef-checkbox { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.7rem; color: var(--ef-ink-soft); }
.ef-checkbox input { margin-top: 0.15rem; accent-color: var(--ef-rose); }
.ef-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ef-submit { justify-self: start; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.65rem 1rem; border: 0; border-radius: 10px; background: var(--ef-plum); color: #fff9f2; font-size: 0.75rem; font-weight: 850; }

/* ------------------------------------------------------------- resources */

.ef-carousel-card { overflow: hidden; }
.ef-carousel-nav { display: flex; gap: 0.4rem; }
.ef-carousel { padding: 0 1.15rem; }
.ef-carousel-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 0.2rem 0 1rem; scrollbar-width: thin; scrollbar-color: var(--ef-line-strong) transparent; }
.ef-carousel-track::-webkit-scrollbar { height: 6px; }
.ef-carousel-track::-webkit-scrollbar-thumb { border-radius: 99px; background: var(--ef-line-strong); }
.ef-slide { flex: 0 0 clamp(240px, 27vw, 320px); scroll-snap-align: start; border: 1px solid var(--ef-line); border-radius: 13px; background: #fffcf7; overflow: hidden; }
.ef-slide-visual { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #efe5db; overflow: hidden; }
.ef-slide-visual img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1); }
.ef-slide-visual:hover img { transform: scale(1.04); }
.ef-slide-zoom { position: absolute; right: 0.6rem; bottom: 0.6rem; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.55rem; border-radius: 99px; background: rgba(37, 27, 40, 0.78); color: #fff7ee; font-size: 0.6rem; font-weight: 800; opacity: 0; transition: opacity 160ms ease; }
.ef-slide-visual:hover .ef-slide-zoom, .ef-slide-visual:focus-visible .ef-slide-zoom { opacity: 1; }
.ef-slide-body { display: grid; gap: 0.35rem; padding: 0.8rem 0.9rem 1rem; }
.ef-slide-body .ef-badge { justify-self: start; }
.ef-slide-body h3 { margin: 0; font-family: 'Fraunces Variable', Georgia, serif; font-size: 0.98rem; font-weight: 600; color: var(--ef-plum); }
.ef-slide-body p { margin: 0; font-size: 0.7rem; color: var(--ef-ink-soft); }
.ef-slide-download { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.25rem; font-size: 0.66rem; font-weight: 850; color: var(--ef-rose); text-decoration: none; }
.ef-slide-download .ef-icon { width: 0.8rem; height: 0.8rem; }
.ef-carousel-dots { display: flex; justify-content: center; gap: 0.35rem; padding: 0 0 1rem; }
.ef-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: var(--ef-line-strong); }
.ef-dot.is-active { width: 20px; background: var(--ef-rose); }

.ef-download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.6rem; padding: 0 1rem 1rem; }
.ef-download { display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem; border: 1px solid var(--ef-line); border-radius: 12px; background: #fffcf7; }
.ef-download-icon { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; flex: none; border-radius: 10px; background: #f2e6dc; color: var(--ef-rose); }
.ef-download-info { display: grid; min-width: 0; flex: 1; }
.ef-download-info strong { font-size: 0.75rem; color: var(--ef-plum); }
.ef-download-info small { font-size: 0.64rem; color: var(--ef-muted); }
.ef-download-btn { display: grid; place-items: center; width: 2rem; height: 2rem; flex: none; border: 1px solid var(--ef-line); border-radius: 9px; color: var(--ef-plum); text-decoration: none; }
.ef-download-btn:hover { border-color: var(--ef-rose); color: var(--ef-rose); }

.ef-lightbox { width: min(92vw, 560px); max-height: 90vh; padding: 1rem; border: 1px solid var(--ef-line); border-radius: 16px; background: var(--ef-paper-strong); box-shadow: 0 24px 70px -30px rgba(37, 27, 40, 0.7); text-align: center; }
.ef-lightbox::backdrop { background: rgba(37, 27, 40, 0.72); backdrop-filter: blur(4px); }
.ef-lightbox img { display: block; max-width: 100%; max-height: 72vh; margin: 0 auto; border-radius: 10px; }
.ef-lightbox p { margin: 0.7rem 0 0; font-family: 'Fraunces Variable', Georgia, serif; font-size: 0.95rem; color: var(--ef-plum); }
.ef-lightbox-close { position: absolute; top: 0.5rem; right: 0.5rem; display: grid; place-items: center; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: #f0e5db; color: var(--ef-plum); }

/* -------------------------------------------------------------- calendar */

.ef-card-link { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.68rem; font-weight: 850; color: var(--ef-rose); text-decoration: none; white-space: nowrap; }
.ef-card-link:hover { color: var(--ef-plum); }
.ef-rotate { transform: rotate(180deg); }
.ef-muted { color: var(--ef-muted); }
.ef-card-body { padding: 0 1.15rem 1.15rem; }
.ef-card-body p { margin-bottom: 0.5rem; font-size: 0.76rem; color: var(--ef-ink-soft); }
.ef-card-body p:last-child { margin-bottom: 0; }

.ef-calendar-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, 1fr); gap: clamp(0.8rem, 1.6vw, 1.2rem); align-items: start; }
.ef-calendar { overflow: hidden; }
.ef-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; padding: 0 0.7rem; background: var(--ef-line); border: 1px solid var(--ef-line); border-radius: 12px; overflow: hidden; }
.ef-weekday { padding: 0.55rem 0.35rem; background: #f3ede5; text-align: center; font-size: 0.6rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ef-plum-soft); }
.ef-day { min-height: 96px; padding: 0.45rem 0.4rem; background: var(--ef-paper-strong); }
.ef-day.is-outside { background: #fbf8f3; color: #b9a9a1; }
.ef-day.is-today { background: #fbf0e8; box-shadow: inset 0 0 0 1px rgba(169, 101, 90, 0.35); }
.ef-day-number { display: inline-grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; font-size: 0.66rem; font-weight: 850; color: var(--ef-ink-soft); font-variant-numeric: tabular-nums; }
.ef-day.is-today .ef-day-number { color: #fff; background: var(--ef-rose); }
.ef-day-events { display: grid; gap: 3px; margin-top: 0.35rem; }
.ef-day-event { overflow: hidden; padding: 2px 5px; border-left: 2px solid var(--ef-rose); border-radius: 3px; background: #f7ece6; font-size: 0.57rem; font-weight: 750; color: var(--ef-ink-soft); text-overflow: ellipsis; white-space: nowrap; }
.ef-day-event.is-upcoming { border-color: var(--ef-gold); background: #faf0e0; }
.ef-day-event.is-past { border-color: #b9aaa4; background: #f1eeea; color: #9b8f8b; }
.ef-day-more { font-size: 0.55rem; font-weight: 800; color: var(--ef-muted); }
.ef-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; padding: 0.85rem 1.15rem 1rem; font-size: 0.64rem; color: var(--ef-muted); }
.ef-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.ef-legend-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ef-rose); }
.ef-legend-dot.is-upcoming { background: var(--ef-gold); }
.ef-legend-dot.is-past { background: #b9aaa4; }
.ef-legend-note { margin-left: auto; }
.ef-calendar-side { display: grid; gap: clamp(0.8rem, 1.6vw, 1.2rem); }
.ef-challenge-list { display: grid; gap: 0.6rem; padding: 0 1rem 1rem; }
.ef-challenge { padding: 0.8rem; border: 1px solid var(--ef-line); border-radius: 12px; background: #fffcf7; }
.ef-challenge-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.45rem; }
.ef-badge { padding: 0.2rem 0.5rem; border-radius: 99px; background: #f0e5dd; color: var(--ef-rose); font-size: 0.58rem; font-weight: 850; letter-spacing: 0.04em; text-transform: uppercase; }
.ef-status { font-size: 0.58rem; font-weight: 850; white-space: nowrap; }
.ef-status.is-current { color: var(--ef-sage); }
.ef-status.is-upcoming { color: var(--ef-gold); }
.ef-status.is-past { color: #a2948e; }
.ef-challenge h3 { margin: 0 0 0.3rem; font-family: 'Fraunces Variable', Georgia, serif; font-size: 0.95rem; font-weight: 600; color: var(--ef-plum); }
.ef-challenge p { margin: 0 0 0.5rem; font-size: 0.71rem; color: var(--ef-ink-soft); }
.ef-challenge-date { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.62rem; font-weight: 750; color: var(--ef-muted); }
.ef-challenge-date .ef-icon { width: 0.75rem; height: 0.75rem; }

/* ---------------------------------------------------------- mini player */

.ef-app.has-mini .ef-content { padding-bottom: 7rem; }
.ef-mini-player {
  position: fixed;
  right: 0;
  bottom: 0;
  left: var(--ef-sidebar);
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 62px;
  padding: 0.55rem clamp(0.9rem, 3vw, 2.2rem);
  background: rgba(255, 253, 249, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--ef-line);
  box-shadow: 0 -12px 32px -28px rgba(47, 31, 40, 0.55);
  transition: left 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.ef-mini-progress { position: absolute; top: 0; left: 0; width: 0; height: 2px; background: var(--ef-rose); }
.ef-mini-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff8f1;
  background: var(--ef-plum);
}
.ef-mini-toggle .ef-icon { width: 1rem; height: 1rem; }
.ef-mini-info { display: grid; min-width: 0; flex: 1; line-height: 1.3; }
.ef-mini-info strong { overflow: hidden; font-size: 0.74rem; font-weight: 800; color: var(--ef-plum); text-overflow: ellipsis; white-space: nowrap; }
.ef-mini-info small { font-size: 0.64rem; color: var(--ef-muted); }
.ef-mini-next { width: 1.9rem; height: 1.9rem; border-color: transparent; background: transparent; }

/* --------------------------------------------------- nouvelles fonctionnalités */

.ef-btn-ghost { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 0.85rem; border: 1px solid var(--ef-line-strong); border-radius: 10px; color: var(--ef-plum); background: #fffaf3; font-size: 0.72rem; font-weight: 800; text-decoration: none; }
.ef-btn-ghost:hover { border-color: var(--ef-rose); color: var(--ef-rose); }
.ef-btn-ghost .ef-icon { width: 0.85rem; height: 0.85rem; }
.ef-inline-form { display: inline-flex; }
.ef-user-badge { display: inline-flex; align-items: center; gap: 0.45rem; padding-right: 0.4rem; }
.ef-user-meta { display: grid; line-height: 1.15; }
.ef-user-meta strong { font-size: 0.7rem; color: var(--ef-plum); }
.ef-user-meta small { font-size: 0.58rem; color: var(--ef-muted); }
.ef-avatar { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: none; border-radius: 50%; background: #efe0d6; color: var(--ef-rose); font-size: 0.65rem; font-weight: 850; letter-spacing: 0.04em; }
.ef-avatar-sm { width: 1.85rem; height: 1.85rem; font-size: 0.55rem; }
.ef-footer a { color: var(--ef-muted); font-size: 0.68rem; text-decoration: none; }
.ef-footer a:hover { color: var(--ef-rose); }

/* accueil */
.ef-home { display: grid; gap: clamp(1rem, 2.5vw, 1.8rem); }
.ef-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.7fr); gap: 1.5rem; align-items: center; padding: clamp(1.4rem, 4vw, 3rem); border: 1px solid #e5d8cc; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, #fffdf9 0%, #f6ece2 60%, #efdfd3 100%); box-shadow: var(--ef-shadow-md); }
.ef-hero-copy { position: relative; z-index: 2; }
.ef-hero-title { margin: 0.55rem 0 0.8rem; font-family: 'Fraunces Variable', Georgia, serif; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.02; letter-spacing: -0.035em; color: var(--ef-plum-deep); }
.ef-hero-title em { color: var(--ef-rose); font-style: italic; }
.ef-hero-subtitle { max-width: 46rem; margin-bottom: 1.2rem; font-size: 0.9rem; line-height: 1.7; color: var(--ef-ink-soft); }
.ef-hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ef-hero-proof { display: flex; flex-wrap: wrap; gap: 0.5rem 1.3rem; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--ef-line); font-size: 0.65rem; color: var(--ef-muted); }
.ef-hero-proof strong { font-family: 'Fraunces Variable', Georgia, serif; font-size: 1.15rem; color: var(--ef-plum); }
.ef-hero-art { position: relative; display: grid; place-items: center; min-height: 230px; }
.ef-hero-orbit { position: absolute; width: 230px; height: 230px; border: 1px solid rgba(169, 101, 90, 0.22); border-radius: 50%; }
.ef-hero-orbit-two { width: 150px; height: 150px; border-color: rgba(199, 148, 108, 0.35); }
.ef-hero-flame { position: relative; display: grid; place-items: center; width: 100px; height: 100px; border-radius: 50%; color: #f2c49d; background: linear-gradient(160deg, #3d2b38, #251b28); box-shadow: 0 24px 45px -22px rgba(37, 27, 40, 0.9); }
.ef-hero-flame .ef-icon { width: 3.4rem; height: 3.4rem; }
.ef-hero-caption { position: absolute; bottom: 0; font-family: 'Fraunces Variable', Georgia, serif; font-size: 0.82rem; font-style: italic; color: var(--ef-rose); }
.ef-section { display: grid; gap: 0.9rem; }
.ef-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; }
.ef-section-head p { max-width: 38rem; margin: 0; font-size: 0.75rem; color: var(--ef-muted); }
.ef-section-title { margin: 0.35rem 0 0; font-family: 'Fraunces Variable', Georgia, serif; font-size: clamp(1.25rem, 2.5vw, 1.8rem); font-weight: 600; color: var(--ef-plum); }
.ef-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
.ef-feature { padding: 1.2rem; border: 1px solid var(--ef-line); border-radius: var(--ef-radius); background: var(--ef-paper-strong); box-shadow: var(--ef-shadow-sm); }
.ef-feature-icon { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; color: var(--ef-rose); background: #f5e8df; }
.ef-feature-icon .ef-icon { width: 1.2rem; height: 1.2rem; }
.ef-feature h3 { margin: 0.8rem 0 0.4rem; font-family: 'Fraunces Variable', Georgia, serif; font-size: 1.12rem; color: var(--ef-plum); }
.ef-feature p { font-size: 0.73rem; color: var(--ef-ink-soft); }
.ef-feature a { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.68rem; font-weight: 850; text-decoration: none; }
.ef-home-columns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(250px, 0.8fr); gap: clamp(0.8rem, 1.6vw, 1.2rem); align-items: start; }
.ef-home-episodes { display: grid; gap: 0.7rem; }
.ef-home-episode { padding: 1rem 1.15rem; }
.ef-home-episode h3 { margin: 0.5rem 0 0.3rem; font-family: 'Fraunces Variable', Georgia, serif; font-size: 1.05rem; }
.ef-home-episode h3 a { color: var(--ef-plum); text-decoration: none; }
.ef-home-episode h3 a:hover { color: var(--ef-rose); }
.ef-home-episode p { margin-bottom: 0.5rem; font-size: 0.72rem; color: var(--ef-ink-soft); }
.ef-home-side { display: grid; gap: 0.8rem; }
.ef-spotlight { padding: 1.1rem; }
.ef-spotlight h2 { margin: 0.5rem 0 0.4rem; font-family: 'Fraunces Variable', Georgia, serif; font-size: 1.1rem; color: var(--ef-plum); }
.ef-spotlight p { font-size: 0.72rem; color: var(--ef-ink-soft); }
.ef-spotlight.is-quiet { background: #f2ece3; }
.ef-spotlight .ef-btn-ghost { margin-top: 0.3rem; }

/* lecteur et fiche épisode */
.ef-player-detail { display: inline-flex; align-items: center; gap: 0.3rem; margin: -0.2rem 0 0.7rem; font-size: 0.65rem; font-weight: 800; color: var(--ef-rose); text-decoration: none; }
.ef-player-detail .ef-icon { width: 0.8rem; height: 0.8rem; }
.ef-tracklist li { position: relative; }
.ef-track-link { position: absolute; top: 50%; right: 0.55rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; transform: translateY(-50%); border-radius: 8px; color: var(--ef-muted); text-decoration: none; }
.ef-track-link:hover { color: var(--ef-rose); background: #f4e9e1; }
.ef-track-duration { margin-right: 1.8rem; }
.ef-detail-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.8fr); gap: 0.9rem; align-items: start; }
.ef-prose-card { overflow: hidden; }
.ef-prose h2 { margin: 1.1rem 0 0.4rem; font-family: 'Fraunces Variable', Georgia, serif; font-size: 1.05rem; color: var(--ef-plum); }
.ef-prose h2:first-child { margin-top: 0; }
.ef-prose p, .ef-prose li { font-size: 0.76rem; line-height: 1.75; color: var(--ef-ink-soft); }
.ef-prose a { color: var(--ef-rose); }
.ef-verse { display: flex; align-items: start; gap: 0.4rem; margin: 0 1.15rem 1rem; padding: 0.8rem; border-left: 3px solid var(--ef-gold); border-radius: 8px; background: #faf2e6; font-size: 0.72rem; color: var(--ef-ink-soft); }
.ef-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0 1.15rem 1.15rem; }
.ef-detail-stats p { font-size: 0.72rem; }
.ef-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0 1.15rem 1.15rem; }

/* comptes et rôles */
.ef-auth-stack { display: grid; gap: 0.8rem; width: 100%; max-width: 520px; margin: 0 auto; }
.ef-demo-note { display: grid; gap: 0.45rem; padding: 1rem 1.15rem; border: 1px dashed #d9c3b4; border-radius: var(--ef-radius); background: #f8f1e9; }
.ef-demo-note p { margin: 0; font-size: 0.72rem; line-height: 1.65; color: var(--ef-ink-soft); }
.ef-demo-list { display: grid; gap: 0.45rem; margin: 0.15rem 0; padding: 0; list-style: none; }
.ef-demo-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.45rem 0.6rem; border-radius: 9px; background: #fffaf3; }
.ef-demo-list code { font-size: 0.62rem; color: var(--ef-rose); }
.ef-demo-list .ef-role-badge { margin: 0; }
.ef-role-badge { display: inline-block; margin-top: 0.2rem; padding: 0.12rem 0.45rem; border-radius: 99px; background: #ede0d7; color: var(--ef-rose); font-size: 0.55rem; font-weight: 850; letter-spacing: 0.04em; text-transform: uppercase; }

/* calendrier : vues et fenêtre de détail */
.ef-day-event { border-top: 0; border-right: 0; border-bottom: 0; cursor: pointer; text-align: left; }
.ef-day-event:hover { background: #efdad0; color: var(--ef-plum); }
.ef-calendar-grid.is-day { grid-template-columns: 1fr; }
.ef-calendar-grid.is-day .ef-day { min-height: 180px; }
.ef-calendar-grid.is-week .ef-day { min-height: 130px; }
.ef-calendar-nav { display: flex; align-items: center; justify-content: center; gap: 0.8rem; padding: 0.7rem 0; font-family: 'Fraunces Variable', Georgia, serif; font-size: 0.9rem; color: var(--ef-plum); }
.ef-challenge h3 a { color: var(--ef-plum); text-decoration: none; }
.ef-challenge h3 a:hover { color: var(--ef-rose); }
.ef-challenge .ef-text-btn { margin-top: 0.3rem; }
.ef-challenge-dialog { position: fixed; width: min(92vw, 620px); max-height: 88vh; padding: 1.6rem; border: 1px solid var(--ef-line); border-radius: 18px; background: var(--ef-paper-strong); box-shadow: 0 28px 80px -32px rgba(37, 27, 40, 0.85); }
.ef-challenge-dialog::backdrop { background: rgba(37, 27, 40, 0.68); backdrop-filter: blur(4px); }
.ef-challenge-dialog h2 { margin: 0.7rem 0 0.2rem; font-family: 'Fraunces Variable', Georgia, serif; font-size: 1.5rem; color: var(--ef-plum); }
.ef-challenge-dialog p { font-size: 0.75rem; color: var(--ef-ink-soft); }
.ef-challenge-dialog .ef-prose { max-height: 40vh; overflow-y: auto; margin: 0.8rem 0; padding: 0.8rem; border-radius: 10px; background: #f7f1e9; }
.ef-challenge-dialog .ef-btn-primary { margin-top: 0.4rem; }

/* statistiques */
.ef-stat-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.ef-stat-card { padding: 1.1rem; }
.ef-stat-card span { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.66rem; font-weight: 850; color: var(--ef-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.ef-stat-card strong { display: block; margin: 0.5rem 0 0.1rem; font-family: 'Fraunces Variable', Georgia, serif; font-size: 2.1rem; line-height: 1; color: var(--ef-plum); }
.ef-stat-card small { font-size: 0.64rem; color: var(--ef-muted); }
.ef-stat-rows { display: grid; gap: 0.9rem; }
.ef-stat-row-head { display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.72rem; }
.ef-stat-row-head span { color: var(--ef-muted); }
.ef-stat-bar { height: 6px; margin: 0.4rem 0; border-radius: 99px; background: #efe5dc; overflow: hidden; }
.ef-stat-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--ef-rose), var(--ef-gold)); }
.ef-stat-row > small { font-size: 0.62rem; color: var(--ef-muted); }

/* crédits */
.ef-credit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; padding: 0 1.15rem 1.15rem; }
.ef-credit { display: flex; gap: 0.7rem; padding: 0.85rem; border: 1px solid var(--ef-line); border-radius: 12px; background: #fffcf7; }
.ef-credit strong { font-size: 0.76rem; color: var(--ef-plum); }
.ef-credit p { margin: 0.25rem 0; font-size: 0.68rem; color: var(--ef-ink-soft); }
.ef-credit small { font-size: 0.6rem; color: var(--ef-muted); }
.ef-credit-note { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }

/* administration */
.ef-admin-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.4rem; border: 1px solid var(--ef-line); border-radius: 12px; background: #f1eae1; }
.ef-admin-tabs a { padding: 0.45rem 0.75rem; border-radius: 8px; color: var(--ef-ink-soft); font-size: 0.67rem; font-weight: 800; text-decoration: none; }
.ef-admin-tabs a.is-active { color: #fff9f2; background: var(--ef-plum); }
.ef-tab-count { display: inline-grid; place-items: center; min-width: 1rem; height: 1rem; margin-left: 0.25rem; border-radius: 99px; background: var(--ef-rose); color: #fff; font-size: 0.55rem; }
.ef-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; align-items: start; }
.ef-admin-section { display: grid; gap: 0.6rem; }
.ef-admin-stack { display: grid; gap: 0.6rem; }
.ef-admin-testimony { padding: 1rem; }
.ef-admin-testimony-head { display: flex; align-items: start; gap: 0.6rem; }
.ef-admin-testimony-head h3 { margin: 0; font-family: 'Fraunces Variable', Georgia, serif; font-size: 0.95rem; color: var(--ef-plum); }
.ef-admin-testimony-head p { margin: 0.15rem 0 0; font-size: 0.63rem; color: var(--ef-muted); }
.ef-admin-testimony-head .ef-status { margin-left: auto; }
.ef-admin-excerpt { max-height: 190px; margin-top: 0.7rem; padding: 0.7rem; border-radius: 10px; background: #f8f2ea; overflow-y: auto; }
.ef-admin-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.7rem; }
.ef-admin-actions form { display: inline-flex; }
.ef-admin-resource { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; padding: 0.8rem; border: 1px solid var(--ef-line); border-radius: 12px; background: #fffcf7; }
.ef-admin-resource strong { font-size: 0.75rem; color: var(--ef-plum); }
.ef-admin-resource p { margin: 0.25rem 0; font-size: 0.66rem; color: var(--ef-ink-soft); }
.ef-admin-resource small { font-size: 0.6rem; color: var(--ef-muted); }
.ef-admin-resource .ef-status { margin-left: 0.4rem; }
.ef-role-row, .ef-user-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.5rem 0; border-bottom: 1px solid var(--ef-line); font-size: 0.71rem; }
.ef-role-row:last-child, .ef-user-row:last-child { border-bottom: 0; }
.ef-user-row > span:nth-child(2) { display: grid; margin-right: auto; line-height: 1.2; }
.ef-user-row small { color: var(--ef-muted); font-size: 0.6rem; }
.ef-table-wrap { overflow-x: auto; }
.ef-table { width: 100%; border-collapse: collapse; font-size: 0.7rem; }
.ef-table th { padding: 0.7rem; background: #f5eee6; text-align: left; font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ef-muted); }
.ef-table td { padding: 0.7rem; border-top: 1px solid var(--ef-line); vertical-align: middle; }
.ef-table select { max-width: 140px; padding: 0.3rem 0.4rem; border: 1px solid var(--ef-line-strong); border-radius: 8px; background: #fffdf9; color: var(--ef-plum); font-size: 0.65rem; }
.ef-table-user { display: flex; align-items: center; gap: 0.5rem; }
.ef-table-user span:last-child { display: grid; line-height: 1.2; }
.ef-table-user small { color: var(--ef-muted); font-size: 0.6rem; }

/* recherche, pagination et confirmation dans l’administration */
[hidden] { display: none !important; }
[x-cloak] { display: none !important; }
.ef-admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; padding: 0 1.15rem 0.9rem; }
.ef-admin-search { display: flex; align-items: center; gap: 0.4rem; flex: 1 1 220px; min-width: 180px; padding: 0.4rem 0.6rem; border: 1px solid var(--ef-line-strong); border-radius: 10px; background: #fffefa; }
.ef-admin-search .ef-icon { width: 0.9rem; height: 0.9rem; flex: none; color: var(--ef-rose); }
.ef-admin-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ef-ink); font-size: 0.75rem; }
.ef-admin-per-page { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.66rem; color: var(--ef-muted); }
.ef-admin-per-page select { padding: 0.3rem 0.4rem; border: 1px solid var(--ef-line-strong); border-radius: 8px; background: #fffdf9; color: var(--ef-plum); font-size: 0.66rem; }
.ef-admin-pager { margin-top: 0.75rem; }
.ef-page-dot { border: 0; cursor: pointer; font-family: inherit; }
.ef-page-dot:disabled { opacity: 0.45; cursor: not-allowed; }
.ef-admin-empty { margin-top: 0.6rem; }
.ef-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1rem; }
.ef-modal-backdrop { position: absolute; inset: 0; background: rgba(26, 18, 22, 0.55); }
.ef-modal-card { position: relative; width: min(420px, 100%); padding: 1.2rem; border: 1px solid var(--ef-line); border-radius: 16px; background: #fffaf3; box-shadow: 0 20px 60px rgba(44, 32, 41, 0.25); }
.ef-modal-card p { margin: 0.6rem 0 1rem; font-size: 0.75rem; color: var(--ef-ink-soft); }

/* inspiration et fiches membres */

.ef-filter-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0.35rem; border: 1px solid var(--ef-line); border-radius: 14px; background: #f1eae1; }
.ef-chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.75rem; border-radius: 99px; color: var(--ef-ink-soft); background: #fffaf3; font-size: 0.68rem; font-weight: 800; text-decoration: none; }
.ef-chip span { display: inline-grid; place-items: center; min-width: 1.1rem; height: 1.1rem; padding: 0 0.25rem; border-radius: 99px; background: #ede0d7; color: var(--ef-rose); font-size: 0.55rem; }
.ef-chip:hover { color: var(--ef-rose); }
.ef-chip.is-active { color: #fff9f2; background: var(--ef-plum); }
.ef-chip.is-active span { color: var(--ef-plum); background: #f7e7d8; }
.ef-inspiration-sections { display: grid; gap: clamp(1rem, 2vw, 1.4rem); }
.ef-inspiration-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.75rem; }
.ef-inspiration-card { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.05rem; background: linear-gradient(160deg, #fffdf9, #f9f1e9); }
.ef-inspiration-card h3 { margin: 0; font-family: 'Fraunces Variable', Georgia, serif; font-size: 1.02rem; color: var(--ef-plum); }
.ef-inspiration-card .ef-icon { width: 0.8rem; height: 0.8rem; }
.ef-inspiration-card .ef-prose { flex: 1; }
.ef-inspiration-card footer { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding-top: 0.6rem; border-top: 1px solid var(--ef-line); font-size: 0.62rem; color: var(--ef-rose); }
.ef-inspiration-card footer span { display: inline-flex; align-items: center; gap: 0.3rem; }
.ef-inspiration-card footer small { color: var(--ef-muted); }

.ef-founder-highlight { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1.15rem; background: linear-gradient(120deg, #fffdf9, #f5e9df); }
.ef-founder-highlight p { margin: 0.4rem 0; font-size: 0.75rem; color: var(--ef-ink-soft); }
.ef-founder-highlight blockquote { margin: 0.5rem 0 0; font-family: 'Fraunces Variable', Georgia, serif; font-style: italic; font-size: 0.78rem; color: var(--ef-rose); }
.ef-founder-highlight .ef-icon { width: 0.85rem; height: 0.85rem; }
.ef-profile-photo { width: 108px; height: 108px; flex: none; border-radius: 50%; object-fit: cover; border: 3px solid #fff9f2; box-shadow: 0 10px 26px -16px rgba(37, 27, 40, 0.8); }
.ef-founder-photo { width: 96px; height: 96px; }
.ef-founder-avatar { width: 96px; height: 96px; font-size: 1.5rem; }
.ef-credit-photo { object-fit: cover; }
.ef-credit.is-founder { border-color: #d9b7a4; background: #fbf2e9; }
.ef-credit strong a { color: var(--ef-plum); text-decoration: none; }
.ef-credit strong a:hover { color: var(--ef-rose); }

.ef-profile-card { display: flex; align-items: start; gap: 1.1rem; padding: 1.3rem; }
.ef-profile-avatar { width: 108px; height: 108px; font-size: 1.5rem; }
.ef-profile-body { flex: 1; }
.ef-profile-bio { margin: 0.5rem 0 0.9rem; font-size: 0.76rem; line-height: 1.75; color: var(--ef-ink-soft); }
.ef-profile-quote { display: flex; align-items: start; gap: 0.4rem; margin: 0; padding: 0.8rem 0.9rem; border-left: 3px solid var(--ef-gold); border-radius: 8px; background: #faf2e6; font-family: 'Fraunces Variable', Georgia, serif; font-size: 0.85rem; font-style: italic; color: var(--ef-plum); }
.ef-profile-quote .ef-icon { width: 1rem; height: 1rem; flex: none; color: var(--ef-rose); }
.ef-member-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr); gap: 0.9rem; align-items: start; }
.ef-feedback { display: flex; gap: 0.7rem; padding: 1rem; border: 1px solid var(--ef-line); border-radius: 14px; background: #fffcf7; }
.ef-feedback h3 { margin: 0 0 0.2rem; font-family: 'Fraunces Variable', Georgia, serif; font-size: 1rem; color: var(--ef-plum); }
.ef-pagination { display: flex; align-items: center; justify-content: center; gap: 0.7rem; margin-top: 0.9rem; }
.ef-pagination-dots { display: inline-flex; gap: 0.3rem; }
.ef-page-dot { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #ede0d7; color: var(--ef-rose); font-size: 0.62rem; font-weight: 800; text-decoration: none; }
.ef-page-dot.is-active { background: var(--ef-plum); color: #fff9f2; }
.ef-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.ef-checkbox { display: flex; align-items: start; gap: 0.5rem; font-size: 0.68rem; color: var(--ef-ink-soft); }
.ef-checkbox input { margin-top: 0.15rem; accent-color: var(--ef-rose); }
.ef-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 960px) {
  .ef-sidebar { transform: translateX(-102%); transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1); }
  .ef-sidebar.is-open { transform: translateX(0); }
  .ef-main { margin-left: 0; }
  .ef-menu-btn, .ef-sidebar-close { display: inline-grid; }
  .ef-mini-player { left: 0; }
  .ef-player { grid-template-columns: 180px minmax(0, 1fr); }
  .ef-calendar-layout, .ef-testimony-layout { grid-template-columns: 1fr; }
  .ef-hero, .ef-home-columns, .ef-detail-layout, .ef-auth-layout, .ef-admin-grid, .ef-credit-note { grid-template-columns: 1fr; }
  .ef-hero-art { display: none; }
  .ef-feature-grid, .ef-stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .ef-content { padding: 1rem 0.9rem 2rem; }
  .ef-topbar { padding: 0.6rem 0.9rem; }
  .ef-date, .ef-topbar-tag { display: none; }
  .ef-player { grid-template-columns: 1fr; }
  .ef-player-cover { min-height: 130px; }
  .ef-cover-flame { width: 3.6rem; height: 3.6rem; }
  .ef-player-body { padding: 1rem; }
  .ef-player-status { display: none; }
  .ef-controls { justify-content: center; }
  .ef-controls-extra { width: 100%; justify-content: center; }
  .ef-track-duration { display: none; }
  .ef-calendar-grid { padding: 0 0.4rem; }
  .ef-day { min-height: 78px; padding: 0.35rem 0.25rem; }
  .ef-day-event { font-size: 0.53rem; padding: 2px 3px; }
  .ef-weekday { font-size: 0.54rem; }
  .ef-legend-note { display: none; }
  .ef-page-actions { width: 100%; justify-content: center; }
  .ef-feature-grid, .ef-stat-cards, .ef-credit-grid { grid-template-columns: 1fr; }
  .ef-hero { padding: 1.2rem; }
  .ef-hero-title { font-size: 2rem; }
  .ef-user-meta { display: none; }
  .ef-section-head { display: grid; gap: 0.5rem; }
  .ef-track-duration { display: none; }
  .ef-track-link { right: 0.25rem; }
  .ef-admin-resource { display: grid; }
  .ef-admin-actions { margin-top: 0; }
  .ef-founder-highlight, .ef-profile-card, .ef-member-layout { grid-template-columns: 1fr; display: grid; }
  .ef-profile-card { justify-items: center; text-align: center; }
  .ef-profile-quote { text-align: left; }
  .ef-form-row { grid-template-columns: 1fr; }
  .ef-founder-highlight { justify-items: center; text-align: center; }
  .ef-pagination { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
