:root {
    /* Charte shaman.today — ambiance sombre « VIP précieuse » */
    --bg: #363657;            /* indigo profond */
    --bg-deep: #2c2c49;       /* fond plus sombre (nav, embeds) */
    --ink: #ffffff;           /* texte */
    --muted: rgba(255, 255, 255, 0.68);
    --accent: #ff8ca8;        /* rose */
    --accent-2: #ffb48a;      /* corail/or pour les touches précieuses */
    --accent-soft: rgba(255, 140, 168, 0.16);
    --card: #3f3f63;          /* surface carte */
    --card-2: #454569;        /* surface secondaire (tags) */
    --line: rgba(255, 255, 255, 0.17);
    --gold: rgba(255, 200, 140, 0.55);
    --radius: 14px;
    --radius-ctl: 0.375rem;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Quicksand', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(255, 140, 168, 0.10), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(255, 180, 138, 0.08), transparent 55%),
        var(--bg);
    background-attachment: fixed;
    color: var(--ink);
    line-height: 1.55;
}
.wrap { width: min(820px, 92vw); margin: 0 auto; }
a { color: var(--accent); }

/* header */
.site-header {
    background: linear-gradient(110deg, rgba(255, 140, 168, 0.14), rgba(255, 180, 138, 0.10));
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}
.site-header .wrap { display: flex; align-items: baseline; gap: 14px; }
.brand {
    color: #fff; text-decoration: none; font-weight: 700; font-size: 1.35rem;
    text-transform: uppercase; letter-spacing: 0.18rem;
}
.tagline { color: var(--accent); font-size: .9rem; letter-spacing: .05rem; }
.site-footer { margin: 40px 0 20px; color: var(--muted); font-size: .85rem; text-align: center; }
.site-footer a { color: var(--accent); }

main.wrap { padding: 28px 0; }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 18px;
    box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 30px rgba(0,0,0,.18);
}
.card.narrow { max-width: 420px; margin-inline: auto; }
.card.hero {
    border: 1px solid var(--gold);
    background:
        linear-gradient(135deg, rgba(255,140,168,.12), rgba(255,180,138,.06)),
        var(--card);
}
.card.hero h1 { margin-top: 0; }
h1 { font-size: 1.6rem; letter-spacing: .02rem; } h2 { font-size: 1.2rem; }

.error { color: #ff9bb0; font-weight: 600; }

/* activity */
.activity-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.badge {
    background: var(--accent-soft); color: var(--accent);
    border: 1px solid rgba(255,140,168,.4);
    border-radius: 999px; padding: 3px 12px; font-size: .78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06rem;
}
.date { color: var(--muted); font-size: .92rem; }
.media { margin: 12px 0; }
.drive-embed { width: 100%; border: 0; border-radius: 10px; background: var(--bg-deep); }
.drive-embed.audio { height: 80px; }
.drive-embed.image { height: 480px; }
.oracle-img { max-width: 100%; border-radius: 10px; display: block; }
.texte { white-space: normal; margin: 12px 0; }

/* lecteur mp3 — « ce joyau » : écrin festif */
.media-audio {
    background: linear-gradient(135deg, #ff8ca8 0%, #ff9f97 45%, #ffb48a 100%);
    padding: 14px 14px 12px;
    border-radius: 16px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 10px 28px rgba(255,140,168,.30);
}
.media-audio-label {
    display: block; color: #fff; font-weight: 700; font-size: .9rem;
    text-transform: uppercase; letter-spacing: .08rem; margin: 2px 4px 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.media-audio .drive-embed.audio {
    background: #fff; border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.media-audio .dl-link {
    display: inline-block; margin-top: 10px;
    background: rgba(255,255,255,.92); color: #b14a63;
    padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700;
    text-decoration: none;
}
.media-audio .dl-link:hover { background: #fff; }

/* tags */
.tags { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.tag { border: 1px solid var(--line); border-radius: 10px; background: var(--card-2); }
/* accordéon : une seule ligne visible (le tag) ; le texte/doc se déploie au clic */
summary.tag-head {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    list-style: none; cursor: pointer; padding: 10px 12px; user-select: none;
}
summary.tag-head::-webkit-details-marker { display: none; }
summary.tag-head::before {
    content: "\25B8"; color: var(--accent); font-size: .9rem; transition: transform .15s ease;
}
details.tag[open] > summary.tag-head::before { content: "\25BE"; }
.tag-body { padding: 0 12px 12px; }
.tag-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tag-name { font-size: 1rem; }
.follow-btn {
    margin-left: auto; cursor: pointer; border: 1px solid var(--accent);
    background: transparent; color: var(--accent); border-radius: 999px;
    padding: 4px 12px; font-size: .82rem;
}
.follow-btn.on { background: var(--accent); color: var(--bg); }
.tag-media { margin: 8px 0 0; padding-left: 18px; font-size: .92rem; }
.tag-media img { max-width: 100%; border-radius: 8px; }
.tag-doc { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.tag-doc .doc-label { font-size: .8rem; color: var(--accent); font-weight: 600; }
.tag-doc ul { margin: 4px 0 0; padding-left: 18px; font-size: .92rem; }
.tag-doc .doc-folder { display: inline-block; margin: 4px 0; font-size: .9rem; font-weight: 600; }
.tag-doc-acc { margin-top: 6px; }
.tag-doc-acc > summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--accent); list-style: none; }
.tag-doc-acc > summary::-webkit-details-marker { display: none; }
.tag-doc-acc > summary::before { content: "\25B8\00a0"; }
.tag-doc-acc[open] > summary::before { content: "\25BE\00a0"; }
.tag-doc-acc .doc-body { margin-top: 6px; font-size: .9rem; line-height: 1.5; }

/* forms */
label { display: block; margin: 10px 0; font-size: .95rem; }
input[type=password], input[type=text], input[type=email], textarea, select {
    width: 100%; padding: 9px 11px; border: 1px solid var(--line);
    border-radius: 8px; font-size: 1rem; background: var(--bg-deep); color: var(--ink);
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.4); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
.switch input { width: auto; margin-right: 8px; }
button {
    background: var(--accent); color: var(--bg); border: 0; border-radius: 8px;
    padding: 9px 18px; font-size: .95rem; cursor: pointer; font-weight: 700;
    font-family: inherit;
}
button:hover { filter: brightness(1.06); }
details summary { cursor: pointer; color: var(--accent); margin-top: 8px; }
.inline-form { margin-top: 10px; }

/* admin (shared bits) */
.admin-nav { background: var(--bg-deep); border-bottom: 1px solid var(--line); }
.admin-nav .wrap { display:flex; gap:16px; padding:10px 0; flex-wrap:wrap; }
.admin-nav a { color: var(--muted); text-decoration:none; font-size:.92rem; }
.admin-nav a:hover { color:#fff; }
table { width:100%; border-collapse:collapse; }
th, td { text-align:left; padding:8px 10px; border-bottom:1px solid var(--line); font-size:.92rem; }
th { color:var(--muted); font-weight:600; }
.btn-sm { padding:4px 10px; font-size:.82rem; }
.btn-link { background:var(--accent); color:var(--bg); padding:8px 14px; border-radius:8px; text-decoration:none; white-space:nowrap; font-weight:700; }
button.danger { background:#d23b54; color:#fff; }
