/* ============================================================
   PAGE ACCUEIL — Les Arcanes de Cookie
   ============================================================ */

/* ----------------------
   SECTION : Hero
---------------------- */
.home-hero {
  margin-top: 2rem;
}

.home-hero .card {
  padding: 2rem 2.4rem;
  text-align: left;
}

.home-kicker {
  font-size: .9rem;
  color: var(--muted);
  letter-spacing: .12em;
  margin: 0 0 .3rem;
  text-transform: uppercase;
}

.home-title {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: .08em;
}

.home-intro {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 1.8rem;
}

/* ----------------------
   GRID Portail / Créations
---------------------- */
.home-grid {
  display: flex;
  gap: 2rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.home-column {
  flex: 1 1 280px;
}

.home-subtitle {
  color: var(--gold);
  margin-bottom: .7rem;
  font-size: 1.25rem;
  letter-spacing: .06em;
}

.home-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.home-list li {
  margin-bottom: .45rem;
  font-size: .97rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: .35rem;
}

/* ----------------------
   À LA UNE
---------------------- */
.home-news {
  margin-top: 3.2rem;
}

.home-news .card {
  padding: 1.8rem 2rem;
}

.home-news-head h2 {
  font-size: 1.8rem;
  margin-bottom: .3rem;
}

.home-news-note {
  font-size: .9rem;
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.4rem;
}

.news-item {
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--glass-b);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
  position: relative;
  overflow: hidden;
  transition: transform .16s ease, background .16s ease;
}

.news-item:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.06);
}

/* ----------------------
   News tag
---------------------- */
.news-tag {
  display: inline-block;
  padding: .12rem .45rem;
  font-size: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: rgba(147,112,219,.25);
  border-radius: 999px;
  margin-bottom: .4rem;
  color: var(--ink);
}

.news-tag-new {
  background: rgba(214,180,106,.35);
  color: var(--gold);
}

.news-title {
  font-size: 1.2rem;
  margin: .2rem 0 .35rem;
  color: var(--ink);
}

.news-text {
  font-size: .95rem;
  line-height: 1.45;
  color: var(--muted);
  margin-bottom: .4rem;
}

.news-date {
  font-size: .8rem;
  color: var(--muted);
  opacity: .8;
}

/* ----------------------
   Footer du bloc À la une
---------------------- */
.home-news-footer {
  margin-top: 1.8rem;
  text-align: center;
}

.sato-link {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: .08rem;
  transition: border-color .16s ease, color .16s ease;
}

.sato-link:hover,
.sato-link:focus-visible {
  border-color: var(--gold);
  color: var(--ink);
}

/* ----------------------
   Responsive
---------------------- */
@media (max-width: 768px) {
  .home-hero .card {
    padding: 1.5rem 1.4rem;
  }

  .home-title {
    font-size: 1.65rem;
  }

  .home-intro {
    font-size: 1rem;
  }

  .home-grid {
    flex-direction: column;
    gap: 1.3rem;
  }

  .news-item {
    padding: .9rem 1rem;
  }
}

/* ============================================================
   PAGES AUTH — Connexion / Inscription
   ============================================================ */

.auth-wrapper {
  margin-top: 3rem;
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
}

.auth-card {
  max-width: 520px;
  width: 100%;
  padding: 2rem 2.2rem;
}

/* Titre / texte haut */
.auth-head {
  margin-bottom: 1.4rem;
}

.auth-kicker {
  font-size: .85rem;
  color: var(--muted);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 .2rem;
}

.auth-title {
  font-size: 1.8rem;
  color: var(--gold);
  margin: 0 0 .5rem;
  letter-spacing: .08em;
}

.auth-note {
  font-size: .95rem;
  color: var(--muted);
  margin: 0;
}

/* Formulaire */
.auth-form {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.form-group label {
  font-size: .9rem;
  color: var(--muted);
}

.form-group input {
  border-radius: 999px;
  border: 1px solid var(--glass-b);
  padding: .55rem .9rem;
  background: rgba(5,5,15,.85);
  color: var(--ink);
  font-size: .95rem;
  outline: none;
  box-shadow: 0 8px 18px rgba(0,0,0,.55);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.form-group input::placeholder {
  color: rgba(207,197,232,.6);
  font-size: .9rem;
}

.form-group input:focus-visible {
  border-color: var(--gold);
  background: rgba(15,10,26,.9);
  box-shadow: 0 0 0 1px rgba(214,180,106,.4), 0 10px 25px rgba(0,0,0,.7);
}

/* Deux colonnes pour les mots de passe sur inscription */
.form-group-half {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}

/* Bouton principal */
.form-actions {
  margin-top: .5rem;
  display: flex;
  justify-content: flex-end;
}

.btn-primary {
  border: none;
  border-radius: 999px;
  padding: .55rem 1.4rem;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #d6b46a, #f6d58a);
  color: #1a1024;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,.65);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(0,0,0,.8);
  filter: brightness(1.03);
}

/* Messages (flash / erreurs) */
.auth-flash {
  margin-bottom: 1rem;
  padding: .7rem .9rem;
  border-radius: var(--radius);
  font-size: .9rem;
  line-height: 1.45;
}

.auth-flash ul {
  margin: 0;
  padding-left: 1rem;
}

.auth-flash-success {
  background: rgba(99,230,190,.08);
  border: 1px solid rgba(99,230,190,.5);
  color: var(--ink);
}

.auth-flash-error {
  background: rgba(255,107,107,.08);
  border: 1px solid rgba(255,107,107,.55);
  color: var(--ink);
}

/* Footer des cartes auth */
.auth-footer {
  margin-top: 1.4rem;
  text-align: center;
}

.auth-alt {
  font-size: .9rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 700px) {
  .auth-card {
    padding: 1.5rem 1.3rem;
  }

  .form-group-half {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   PAGE LEGAL
========================================= */
.legal-wrapper {
  margin-top: 2.8rem;
  margin-bottom: 3rem;
}

.legal-card {
  padding: 2rem 2.4rem;
  max-width: 900px;
  margin: auto;
}

.legal-title {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: .8rem;
  text-align: center;
}

.legal-intro {
  text-align: center;
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.legal-section {
  margin-bottom: 2.2rem;
}

.legal-subtitle {
  font-size: 1.4rem;
  color: var(--gold);
  margin: 1.2rem 0 .6rem;
  letter-spacing: .05em;
}

.legal-mini {
  font-size: 1.05rem;
  margin: .7rem 0 .3rem;
  color: var(--ink);
}

.legal-list {
  margin: .5rem 0 1rem 1.2rem;
  padding: 0;
  color: var(--ink);
}

.legal-list li {
  margin-bottom: .3rem;
}

.legal-highlight {
  color: var(--gold);
  font-weight: 600;
}

/* responsive */
@media (max-width: 700px) {
  .legal-card {
    padding: 1.5rem 1.3rem;
  }
  .legal-title {
    font-size: 1.6rem;
  }
}
/* ============================================================
   PAGE CONTACT
============================================================ */
.contact-wrapper {
  margin-top: 2.5rem;
  margin-bottom: 3rem;
}

.contact-card {
  max-width: 700px;
  margin: auto;
  padding: 2rem 2.3rem;
}

.contact-head {
  margin-bottom: 1.4rem;
  text-align: center;
}

.contact-kicker {
  font-size: .85rem;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-title {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: .3rem;
}

.contact-note {
  color: var(--muted);
  font-size: .95rem;
}

/* Formulaire */
.contact-form {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  border-radius: var(--radius);
  border: 1px solid var(--glass-b);
  padding: .8rem 1rem;
  background: rgba(5,5,15,.85);
  color: var(--ink);
  font-size: .97rem;
  resize: vertical;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.contact-form textarea {
  border-radius: 15px;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  border-color: var(--gold);
  background: rgba(15,10,26,.9);
  box-shadow: 0 0 0 1px rgba(214,180,106,.4), 0 10px 25px rgba(0,0,0,.7);
}

/* Messages flash */
.contact-flash {
  margin-bottom: 1rem;
  padding: .8rem 1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  line-height: 1.45;
}

.contact-success {
  background: rgba(99,230,190,.08);
  border: 1px solid rgba(99,230,190,.45);
}

.contact-error {
  background: rgba(255,107,107,.08);
  border: 1px solid rgba(255,107,107,.5);
}

/* Bouton */
.form-actions {
  text-align: right;
}
/* ============================================================
   PAGE PROFIL
============================================================ */
.profile-wrapper {
  margin-top: 2.8rem;
  margin-bottom: 3.2rem;
}

.profile-card {
  max-width: 900px;
  margin: auto;
  padding: 2rem 2.4rem;
}

/* HEADER : avatar + bloc principal */
.profile-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.profile-avatar-zone {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-avatar-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  padding: 3px;
  background: radial-gradient(circle at top, var(--gold), transparent 70%);
  box-shadow: 0 0 0 1px rgba(214,180,106,.5), 0 18px 40px rgba(0,0,0,.8);
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Fallback avatar (initiale) */
.profile-avatar-fallback {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at top, rgba(147,112,219,.8), rgba(10,10,20,1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(147,112,219,.6), 0 18px 40px rgba(0,0,0,.8);
}

/* Bloc textes principaux */
.profile-main {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.profile-name {
  font-size: 2rem;
  color: var(--gold);
  letter-spacing: .08em;
  margin: 0;
}

.profile-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}

.profile-pronouns {
  padding: .15rem .6rem;
  border-radius: 999px;
  background: rgba(147,112,219,.25);
  color: var(--ink);
  font-size: .85rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.profile-meta-chip {
  padding: .15rem .6rem;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: .85rem;
}

/* Rôles */
.profile-roles {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .4rem;
}

.role-badge {
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: 1px solid rgba(214,180,106,.5);
  color: var(--gold);
}

/* variations de couleurs simples si tu veux */
.role-admin {
  background: rgba(255,107,107,.12);
}
.role-gardien {
  background: rgba(214,180,106,.12);
}
.role-beta {
  background: rgba(99,230,190,.12);
}
.role-artiste {
  background: rgba(147,112,219,.2);
}
.role-correcteur,
.role-contributeur {
  background: rgba(255,255,255,.04);
}

.profile-meta-sub {
  margin: .3rem 0 0;
  font-size: .85rem;
  color: var(--muted);
}

/* SECTIONS */
.profile-section {
  margin-top: 1.8rem;
}

.profile-section-title {
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: .6rem;
  letter-spacing: .05em;
}

/* Bio */
.profile-bio {
  font-size: .98rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

.profile-bio-empty {
  color: var(--muted);
  font-style: italic;
}

/* Valshaari */
.profile-valsha-grid {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
}

.profile-valsha-class,
.profile-valsha-level,
.profile-valsha-detail {
  margin: 0 0 .4rem;
  font-size: .95rem;
  color: var(--ink);
}

.profile-valsha-xp {
  color: var(--muted);
  font-size: .9rem;
}

/* Barre XP */
.profile-valsha-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.profile-valsha-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}

.profile-valsha-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d6b46a, #936bff);
  box-shadow: 0 0 12px rgba(214,180,106,.8);
}

.profile-valsha-bar-label {
  font-size: .85rem;
  color: var(--muted);
}

/* Préférences */
.profile-pref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .6rem;
}

.profile-pref-item {
  padding: .4rem .7rem;
  border-radius: 10px;
  background: rgba(10,10,20,.9);
  border: 1px solid rgba(147,112,219,.35);
}

.profile-pref-label {
  display: block;
  font-size: .8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.profile-pref-value {
  font-size: .95rem;
  color: var(--ink);
}

/* Liens footer profil */
.profile-footer-links {
  margin-top: 1.8rem;
  text-align: center;
  font-size: .9rem;
  color: var(--muted);
}

.profile-link {
  font-size: .9rem;
}

.profile-link-sep {
  margin: 0 .4rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 768px) {
  .profile-card {
    padding: 1.5rem 1.3rem;
  }

  .profile-head {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-main {
    align-items: center;
  }

  .profile-valsha-grid {
    grid-template-columns: 1fr;
  }

  .profile-avatar-wrap,
  .profile-avatar-fallback {
    width: 100px;
    height: 100px;
  }
}
/* ============================================================
   PAGE PROFIL — ÉDITION
============================================================ */

.profile-edit-wrapper {
  margin-top: 2.8rem;
  margin-bottom: 3.2rem;
}

.profile-edit-card {
  max-width: 900px;
  margin: auto;
  padding: 2rem 2.4rem;
}

.profile-edit-head {
  margin-bottom: 1.4rem;
}

.profile-edit-title {
  font-size: 1.9rem;
  color: var(--gold);
  margin: 0 0 .4rem;
  letter-spacing: .07em;
}

.profile-edit-note {
  font-size: .95rem;
  color: var(--muted);
  margin: 0;
}

/* Formulaire global */
.profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

/* Avatar */
.profile-edit-avatar-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.3rem;
  align-items: center;
}

.profile-avatar-preview {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* On réutilise .profile-avatar-img et .profile-avatar-fallback
   déjà définies dans le CSS du profil simple */

/* Inputs avatar */
.profile-avatar-inputs .form-group {
  margin-bottom: .4rem;
}

.profile-avatar-inputs input[type="file"] {
  font-size: .9rem;
}

/* Grille identité (pronoms, âge, ville, pays) */
.profile-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

/* Inline checkbox & radio */
.profile-checkbox-inline,
.profile-radio-inline {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  color: var(--muted);
  margin-top: .3rem;
}

.profile-checkbox-inline input,
.profile-radio-inline input {
  transform: translateY(1px);
}

/* Textarea bio */
#bio {
  min-height: 120px;
  border-radius: 12px;
  border: 1px solid var(--glass-b);
  padding: .8rem 1rem;
  background: rgba(5,5,15,.85);
  color: var(--ink);
  font-size: .95rem;
  resize: vertical;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

#bio:focus-visible {
  border-color: var(--gold);
  background: rgba(15,10,26,.9);
  box-shadow: 0 0 0 1px rgba(214,180,106,.4), 0 10px 25px rgba(0,0,0,.75);
}

/* Selects */
.profile-edit-form select {
  border-radius: 999px;
  border: 1px solid var(--glass-b);
  padding: .5rem .9rem;
  background: rgba(5,5,15,.9);
  color: var(--ink);
  font-size: .9rem;
  outline: none;
  box-shadow: 0 8px 18px rgba(0,0,0,.55);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.profile-edit-form select:focus-visible {
  border-color: var(--gold);
  background: rgba(15,10,26,.9);
  box-shadow: 0 0 0 1px rgba(214,180,106,.4), 0 10px 25px rgba(0,0,0,.75);
}

/* On s’appuie sur .profile-section & .profile-section-title déjà existants
   pour les blocs Avatar / Identité / Préférences */

/* Responsive */
@media (max-width: 768px) {
  .profile-edit-card {
    padding: 1.5rem 1.3rem;
  }

  .profile-edit-avatar-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-avatar-inputs {
    justify-self: center;
    width: 100%;
  }

  .profile-edit-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   PAGE MUSIQUE
============================================================ */

.music-wrapper {
  margin-top: 2.8rem;
  margin-bottom: 3.2rem;
}

.music-card {
  max-width: 960px;
  margin: auto;
  padding: 2rem 2.4rem;
}

.music-head {
  margin-bottom: 1.6rem;
  text-align: left;
}

.music-kicker {
  font-size: .85rem;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 .2rem;
}

.music-title {
  font-size: 1.9rem;
  color: var(--gold);
  margin: 0 0 .5rem;
  letter-spacing: .07em;
}

.music-note {
  font-size: .95rem;
  color: var(--muted);
  margin: 0;
}

/* Liste de pistes */
.music-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.music-item {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 2.4fr);
  gap: 1rem;
  align-items: center;
  padding: .9rem 1rem;
  border-radius: var(--radius);
  background: rgba(10,10,20,.95);
  border: 1px solid var(--glass-b);
  box-shadow: 0 10px 24px rgba(0,0,0,.55);
}

.music-info {
  min-width: 0;
}

.music-track-title {
  font-size: 1.1rem;
  margin: 0 0 .2rem;
  color: var(--ink);
}

.music-track-artist {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
}

/* Actions : player + bouton download */
.music-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: flex-end;
  align-items: center;
}

/* Responsive */
@media (max-width: 800px) {
  .music-card {
    padding: 1.5rem 1.3rem;
  }

  .music-item {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .music-actions {
    justify-content: flex-start;
  }

  .music-audio {
    max-width: 100%;
  }
}
/* ============================================================
   MESSAGERIE INTERNE — LISTE (messages.php)
============================================================ */

.msg-wrapper {
  margin-top: 2.8rem;
  margin-bottom: 3.2rem;
}

.msg-card {
  max-width: 960px;
  margin: auto;
  padding: 2rem 2.4rem;
}

.msg-head {
  margin-bottom: 1.4rem;
}

.msg-title {
  font-size: 1.8rem;
  color: var(--gold);
  margin: 0 0 .4rem;
  letter-spacing: .06em;
}

.msg-note {
  margin: 0;
  font-size: .95rem;
  color: var(--muted);
}

/* Onglets Réception / Envoyés + bouton Nouveau */
.msg-tabs {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 1.4rem 0 1rem;
  border-bottom: 1px solid rgba(147,112,219,.35);
  padding-bottom: .4rem;
}

.msg-tab {
  position: relative;
  padding: .35rem .9rem;
  border-radius: 999px;
  font-size: .9rem;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.msg-tab:hover,
.msg-tab:focus-visible {
  background: rgba(147,112,219,.18);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(147,112,219,.35);
}

.msg-tab.is-active {
  background: rgba(214,180,106,.16);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(214,180,106,.5);
}

/* Bouton "Nouveau" */
.msg-new-btn {
  margin-left: auto;
  font-size: .9rem;
}

/* Vide */
.msg-empty {
  margin-top: 1.4rem;
  font-size: .95rem;
  color: var(--muted);
  font-style: italic;
}

/* Liste de messages */
.msg-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.msg-item {
  border-radius: 14px;
  background: rgba(10,10,20,.95);
  border: 1px solid rgba(147,112,219,.25);
  box-shadow: 0 12px 24px rgba(0,0,0,.65);
  overflow: hidden;
}

/* Message non lu en réception */
.msg-item.is-unread {
  border-color: rgba(214,180,106,.8);
  box-shadow: 0 0 22px rgba(214,180,106,.4);
}

.msg-item-link {
  display: block;
  padding: .7rem 1rem .8rem;
  text-decoration: none;
  color: inherit;
}

/* Ligne "De/À" + date */
.msg-meta {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .2rem;
}

.msg-other {
  font-size: .9rem;
  color: var(--ink);
}

.msg-other strong {
  color: var(--gold);
  font-weight: 600;
}

.msg-date {
  margin-left: auto;
  font-size: .8rem;
  color: var(--muted);
}

/* Sujet */
.msg-subject {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .2rem;
}

/* Aperçu du contenu */
.msg-preview {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
}

/* Hover */
.msg-item-link:hover,
.msg-item-link:focus-visible {
  background: radial-gradient(circle at top left,
    rgba(147,112,219,.16),
    rgba(5,5,15,.98)
  );
}

/* Responsive */
@media (max-width: 768px) {
  .msg-card {
    padding: 1.5rem 1.3rem;
  }

  .msg-tabs {
    flex-wrap: wrap;
    gap: .4rem .6rem;
  }

  .msg-new-btn {
    margin-left: 0;
    margin-top: .2rem;
  }

  .msg-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: .15rem;
  }

  .msg-date {
    margin-left: 0;
  }
}
/* ============================================================
   MESSAGERIE INTERNE — THREAD (message_thread.php)
============================================================ */

.thread-wrapper {
  margin-top: 2.8rem;
  margin-bottom: 3.2rem;
}

.thread-card {
  max-width: 960px;
  margin: auto;
  padding: 2rem 2.4rem;
}

.thread-head {
  margin-bottom: 1.4rem;
}

.thread-title {
  font-size: 1.8rem;
  color: var(--gold);
  margin: 0 0 .4rem;
  letter-spacing: .06em;
}

.thread-note {
  margin: 0;
  font-size: .95rem;
  color: var(--muted);
}

/* Liste des messages */
.thread-messages {
  margin: 1.2rem 0 1.8rem;
  max-height: 460px;
  overflow-y: auto;
  padding-right: .4rem;
}

/* Texte si vide */
.thread-empty {
  font-size: .95rem;
  color: var(--muted);
  font-style: italic;
}

/* Un message */
.thread-msg {
  max-width: 75%;
  margin-bottom: .7rem;
  padding: .6rem .8rem .7rem;
  border-radius: 14px;
  border: 1px solid var(--glass-b);
  background: rgba(10,10,20,.95);
  box-shadow: 0 8px 18px rgba(0,0,0,.7);
  font-size: .92rem;
}

/* Messages "moi" à droite */
.thread-msg.is-mine {
  margin-left: auto;
  border-color: rgba(214,180,106,.85);
  background: radial-gradient(circle at top right,
    rgba(214,180,106,.25),
    rgba(5,5,15,.98)
  );
}

/* Messages de l’autre à gauche */
.thread-msg.is-other {
  margin-right: auto;
  background: radial-gradient(circle at top left,
    rgba(147,112,219,.2),
    rgba(5,5,15,.98)
  );
}

/* En-tête message : auteur + date */
.thread-msg-head {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  margin-bottom: .2rem;
}

.thread-msg-author {
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink);
}

.thread-msg-date {
  margin-left: auto;
  font-size: .78rem;
  color: var(--muted);
}

/* Sujet dans le fil */
.thread-msg-subject {
  font-size: .86rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: .2rem;
}

/* Corps du message */
.thread-msg-body {
  margin: 0;
  font-size: .9rem;
  color: var(--ink);
  line-height: 1.5;
}

/* Bloc formulaire */
.thread-form-block {
  border-top: 1px solid rgba(147,112,219,.3);
  padding-top: 1.2rem;
}

.thread-form-title {
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 .8rem;
}

/* Formulaire */
.thread-form .form-group {
  margin-bottom: .8rem;
}

.thread-form input[type="text"],
.thread-form textarea {
  width: 100%;
}

/* Textarea message */
.thread-form textarea {
  min-height: 110px;
  border-radius: 12px;
  border: 1px solid var(--glass-b);
  padding: .8rem 1rem;
  background: rgba(5,5,15,.85);
  color: var(--ink);
  font-size: .95rem;
  resize: vertical;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.thread-form textarea:focus-visible {
  border-color: var(--gold);
  background: rgba(15,10,26,.9);
  box-shadow: 0 0 0 1px rgba(214,180,106,.4), 0 10px 25px rgba(0,0,0,.75);
}

/* Bouton envoyer */
.thread-form .form-actions {
  margin-top: .6rem;
  display: flex;
  justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
  .thread-card {
    padding: 1.5rem 1.3rem;
  }

  .thread-messages {
    max-height: 380px;
  }

  .thread-msg {
    max-width: 100%;
  }

  .thread-msg-head {
    flex-direction: column;
    align-items: flex-start;
    gap: .15rem;
  }

  .thread-msg-date {
    margin-left: 0;
  }

  .thread-form .form-actions {
    justify-content: flex-start;
  }
}
.notif-card {
  max-width: 680px;
  margin: 2rem auto;
  padding: 2rem;
}

.notif-list {
  list-style: none;
  padding: 0;
  margin-top: 1.4rem;
}

.notif-item {
  border-bottom: 1px solid rgba(147,112,219,.25);
}

.notif-link {
  display: flex;
  justify-content: space-between;
  padding: .7rem 0;
  text-decoration: none;
  color: var(--ink);
}

.notif-msg {
  font-size: .95rem;
}

.notif-link:hover .notif-msg {
  color: var(--gold);
}
.news-tag {
  display:inline-block;
  background:rgba(120,120,200,.8);
  padding:.2rem .55rem;
  border-radius:999px;
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.06em;
}
/* ============================================================
   MAGIKTALK — FEED
============================================================ */

.mt-feed {
  margin-top: 2.5rem;
  margin-bottom: 3rem;
}

.mt-feed-card {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 2.3rem;
}

.mt-feed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.mt-feed-title {
  font-size: 2rem;
  letter-spacing: .08em;
  color: var(--gold);
  margin: 0 0 .3rem;
}

.mt-feed-sub {
  margin: 0;
  font-size: .95rem;
  color: var(--muted);
}

.mt-feed-new {
  white-space: nowrap;
}

/* Tabs filtres */

.mt-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .6rem 0 1rem;
}

.mt-tab {
  padding: .35rem .85rem;
  border-radius: 999px;
  font-size: .85rem;
  border: 1px solid rgba(147,112,219,.35);
  background: rgba(10,10,20,.9);
  color: var(--muted);
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.mt-tab.is-active {
  background: radial-gradient(circle at top,
    rgba(214,180,106,.4),
    rgba(10,10,20,.98)
  );
  border-color: var(--gold);
  color: var(--ink);
}

/* Barre recherche hashtag */

.mt-search {
  margin: .4rem 0 1.4rem;
}

.mt-search-label {
  display: block;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: .18rem;
}

.mt-search-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.mt-search-prefix {
  padding: .55rem .7rem;
  border-radius: 999px 0 0 999px;
  border: 1px solid rgba(147,112,219,.35);
  border-right: none;
  background: rgba(15,10,26,.96);
  font-size: .9rem;
  color: var(--muted);
}

.mt-search-row input[type="text"] {
  flex: 1;
  border-radius: 0;
  border-top: 1px solid rgba(147,112,219,.35);
  border-bottom: 1px solid rgba(147,112,219,.35);
  border-left: none;
  border-right: none;
  padding: .55rem .7rem;
  background: rgba(5,5,15,.9);
  color: var(--ink);
  font-size: .9rem;
}

.mt-search-row .btn-ghost {
  border-radius: 0 999px 999px 0;
}

/* Feed & posts */

.mt-posts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mt-empty {
  margin: 1rem 0;
  font-size: .95rem;
  color: var(--muted);
  font-style: italic;
}

.mt-post-card {
  border-radius: 18px;
  padding: 1rem 1.2rem .8rem;
  border: 1px solid var(--glass-b);
  background: radial-gradient(
      circle at top left,
      rgba(147,112,219,.25),
      rgba(3,3,10,.98)
  );
  box-shadow: 0 14px 32px rgba(0,0,0,.8);
}

/* Header auteur */

.mt-post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  margin-bottom: .5rem;
}

.mt-author {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: inherit;
}

.mt-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(214,180,106,.75);
}

.mt-author-meta {
  display: flex;
  flex-direction: column;
}

.mt-author-name {
  font-size: .95rem;
  font-weight: 600;
}

.mt-author-role {
  font-size: .78rem;
  color: var(--muted);
}

.mt-post-time {
  font-size: .78rem;
  color: var(--muted);
}

/* Corps */

.mt-post-body {
  margin-top: .2rem;
}

.mt-post-text {
  font-size: .95rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}

.mt-post-more {
  margin-top: .3rem;
  font-size: .8rem;
  border: none;
  background: none;
  color: var(--gold);
  text-decoration: underline;
  cursor: pointer;
}

.mt-post-media {
  margin-top: .6rem;
}

.mt-post-image {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(147,112,219,.4);
}

/* Footer / actions */

.mt-post-footer {
  margin-top: .7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
}

.mt-post-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.mt-action {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font-size: .8rem;
  color: var(--muted);
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .1s ease;
}

.mt-action:hover {
  background: rgba(147,112,219,.15);
  border-color: rgba(147,112,219,.5);
  transform: translateY(-1px);
}

.mt-action.is-active {
  background: radial-gradient(circle at top,
    rgba(214,180,106,.45),
    rgba(10,10,20,.98)
  );
  border-color: var(--gold);
  color: var(--ink);
}

.mt-count {
  font-size: .78rem;
}

/* Pagination */

.mt-pagination {
  margin-top: 1.4rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(147,112,219,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  font-size: .85rem;
}

.mt-page-link {
  color: var(--gold);
  text-decoration: none;
}

.mt-page-link:hover {
  text-decoration: underline;
}

.mt-page-current {
  color: var(--muted);
}

/* Modale */

.mt-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.mt-modal-backdrop[hidden] {
  display: none !important;
}

.mt-modal {
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  background: radial-gradient(circle at top,
    rgba(147,112,219,.32),
    rgba(5,5,15,.98)
  );
  border-radius: 20px;
  border: 1px solid var(--glass-b);
  box-shadow: 0 24px 70px rgba(0,0,0,.9);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mt-modal-close {
  position: absolute;
  top: .6rem;
  right: .8rem;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
}

.mt-modal-body {
  padding: 1.4rem 1.6rem 1.2rem;
  overflow-y: auto;
}

/* Responsive */

@media (max-width: 768px) {
  .mt-feed-card {
    padding: 1.5rem 1.1rem;
  }

  .mt-feed-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .mt-post-card {
    padding: .9rem;
  }

  .mt-post-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .mt-post-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* =========================================
   BOUTIQUE — VITRINE /shop/index.php
   ========================================= */

.shop-wrapper {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.shop-card {
  padding: 1.6rem 1.8rem;
}

/* Titres */
.shop-kicker {
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: 1px;
  opacity: .8;
  margin-bottom: .4rem;
}

.shop-title {
  font-size: 2rem;
  margin-bottom: .6rem;
}

.shop-intro {
  opacity: .85;
  font-size: .95rem;
  margin-bottom: 1.4rem;
}

/* =========================================
   FILTRES & INFO RÉSULTATS
   ========================================= */

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.2rem;
  align-items: flex-end;
  margin-bottom: .7rem;
}

.shop-filter-group {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.shop-filter-group label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .75;
}

.shop-filter-group select {
  min-width: 180px;
  padding: .45rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--glass-b);
  background: rgba(10,10,20,.9);
  color: var(--ink);
  font-size: .9rem;
}

.shop-results-info {
  font-size: .85rem;
  opacity: .75;
  margin-bottom: 1rem;
}

/* =========================================
   GRILLE DE CARTES PRODUITS
   ========================================= */

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.2rem 1.1rem;
  align-items: stretch;
}

/* Lien global qui entoure la carte */
.shop-product {
  display: block;
  text-decoration: none;
  color: var(--ink);
  height: 100%;
}

/* La carte */
.shop-product-inner {
  height: 100%;
  display: flex;
  flex-direction: column;

  background:
    radial-gradient(circle at top left, var(--violet-2), transparent 60%),
    radial-gradient(circle at bottom right, rgba(0,0,0,.6), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,.03), rgba(0,0,0,.5));
  border-radius: var(--radius);
  padding: .9rem .9rem .8rem;
  border: 1px solid var(--glass-b);
  box-shadow: 0 14px 40px rgba(0,0,0,.6);
  backdrop-filter: blur(14px);

  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.shop-product:hover .shop-product-inner {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(0,0,0,.7);
  border-color: var(--gold);
}

/* =========================================
   IMAGE / MEDIA
   ========================================= */

.shop-product-media {
  width: 100%;
  aspect-ratio: 1 / 1;            /* plus compact */
  max-height: 220px;
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,0.04);
  margin-bottom: .7rem;
}

.shop-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.shop-product-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: .9rem;
  opacity: .7;
}

/* =========================================
   CONTENU DE LA CARTE
   ========================================= */

.shop-product-info {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  flex: 1;
}

/* Ligne du haut : catégorie + stock */
.shop-product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  font-size: .78rem;
}

/* Réutilise .news-tag + variante boutique */
.news-tag-boutique {
  font-size: .72rem;
  padding: 2px 8px;
}

/* Stock */
.shop-stock {
  font-size: .78rem;
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
}

.shop-stock-ok {
  background: rgba(50, 200, 90, .16);
  color: #4cff88;
}

.shop-stock-low {
  background: rgba(255, 180, 60, .18);
  color: #ffcf66;
}

.shop-stock-out {
  background: rgba(255, 60, 60, .18);
  color: #ff9c9c;
}

/* Titre + résumé */
.shop-product-title {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
}

.shop-product-subtitle {
  font-size: .82rem;
  opacity: .8;
}

.shop-product-desc {
  font-size: .8rem;
  opacity: .8;
  margin-top: .1rem;

  display: -webkit-box;
  -webkit-line-clamp: 3;    /* max 3 lignes */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pied de carte : prix + CTA */
.shop-product-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: .35rem;
  gap: .5rem;
}

.shop-product-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
}

.shop-price-soon {
  opacity: .7;
  font-size: .9rem;
}

.shop-product-cta {
  font-size: .78rem;
  opacity: .8;
  white-space: nowrap;
  transition: opacity .18s ease, transform .18s ease;
}

.shop-product:hover .shop-product-cta {
  opacity: 1;
  transform: translateX(3px);
}

/* Message si aucun produit */
.shop-empty {
  padding: 2rem 0 1rem;
  text-align: center;
  opacity: .75;
}

/* =========================================
   PAGINATION
   ========================================= */

.shop-pagination {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
}

.shop-page-link {
  padding: .35rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--glass-b);
  font-size: .85rem;
  text-decoration: none;
  color: var(--ink);
  background: rgba(10,10,20,.9);
  transition: background .16s ease, color .16s ease, transform .1s ease;
}

.shop-page-link:hover {
  background: radial-gradient(circle at top, var(--violet), transparent 70%);
  color: var(--gold);
  transform: translateY(-1px);
}

.shop-page-link.is-current {
  background: var(--gold);
  color: #000;
  font-weight: 600;
}

/* Filtres boutique – look pill mystique */
.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.2rem;
  align-items: flex-end;
  margin-bottom: 1rem;

  padding: .75rem 1rem;
  border-radius: 999px;
  background: radial-gradient(circle at top left, rgba(255,255,255,.05), transparent 55%),
              radial-gradient(circle at bottom right, rgba(0,0,0,.7), transparent 60%);
  border: 1px solid var(--glass-b);
}

.shop-filter-group {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.shop-filter-group label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .8;
}

/* Le select "pill" */
.shop-filter-group select {
  min-width: 180px;
  padding: .4rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--glass-b);
  background:
    radial-gradient(circle at top, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(135deg, rgba(8,8,20,.98), rgba(12,12,30,.98));
  color: var(--ink);
  font-size: .9rem;

  outline: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.45);
}

.shop-filter-group select:hover {
  border-color: var(--gold);
}

.shop-filter-group select:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(255,215,128,.6);
}

/* Bouton "Appliquer" plus discret */
.shop-filters .btn.btn-ghost {
  padding-inline: .9rem;
  border-radius: 999px;
  font-size: .85rem;
}

/* Mobile : on évite que ça déborde */
@media (max-width: 600px) {
  .shop-filters {
    border-radius: 1rem;
  }
  .shop-filter-group select {
    min-width: 0;
    width: 100%;
  }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 600px) {
  .shop-title {
    font-size: 1.7rem;
  }

  .shop-card {
    padding-inline: 1.1rem;
  }

  .shop-filter-group select {
    min-width: 0;
  }
}

/* =========================================
   FICHE PRODUIT — /shop/produit.php
   ========================================= */
.product-wrapper {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

/* Fil d’Ariane */
.product-breadcrumb {
  font-size: .9rem;
  opacity: .8;
  margin-bottom: 1rem;
}
.product-breadcrumb a {
  color: var(--gold);
  text-decoration: none;
}
.product-breadcrumb a:hover {
  text-decoration: underline;
}
.product-breadcrumb .sep {
  margin: 0 .35rem;
  opacity: .6;
}

/* Carte principale */
.product-card {
  padding: 2rem;
}

/* Header produit */
.product-kicker {
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: 1px;
  opacity: .8;
  margin-bottom: .4rem;
}

.product-title {
  font-size: 2rem;
  margin-bottom: .4rem;
}

.product-subtitle {
  font-size: 1rem;
  opacity: .75;
  margin-bottom: .8rem;
}

.product-short-desc {
  font-size: .95rem;
  opacity: .9;
  margin-bottom: 1rem;
}

/* Layout 2 colonnes */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

/* Visuel */
.product-media {
  border-radius: var(--radius);
  border: 1px solid var(--glass-b);
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  aspect-ratio: 3/4;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .7;
}

/* Colonne texte */
.product-main {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

/* Métadonnées (prix, stock) */
.product-meta {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-bottom: .8rem;
}

.product-price-line {
  display: flex;
  align-items: baseline;
  gap: .7rem;
}

.product-price {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold);
}

.product-price-soon {
  opacity: .7;
  font-size: 1rem;
}

.product-weight {
  font-size: .9rem;
  opacity: .75;
}

.product-stock-line {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.product-stock-detail {
  font-size: .9rem;
  opacity: .75;
}

/* Actions (qty + bouton) */
.product-actions {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.product-qty-row {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.product-qty-label {
  font-size: .9rem;
}

.product-qty-input {
  width: 80px;
  padding: .3rem .4rem;
  border-radius: .5rem;
  border: 1px solid var(--glass-b);
  background: rgba(6, 6, 18, .8);
  color: var(--text);
}

/* Bouton panier (reprend ton style .btn) */
.product-add-to-cart {
  align-self: flex-start;
}

.product-note {
  font-size: .85rem;
  opacity: .75;
}

.product-unavailable {
  font-size: .95rem;
  color: #ff9c9c;
}

/* Bloc description longue */
.product-desc-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(255,255,255,0.15);
}

.product-desc-title {
  font-size: 1.4rem;
  margin-bottom: .6rem;
}

/* Responsive */
@media (max-width: 800px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 600px) {
  .product-card {
    padding: 1.3rem;
  }
}
/* ===========================
   MAGIKTALK — PAGE FEED
   =========================== */

/* Wrapper global */
.magik-feed-wrapper {
  padding: 4rem 0;
}

/* Carte principale du Feed */
.magik-feed-card {
  background: linear-gradient(180deg, rgba(30,20,50,0.7), rgba(10,8,20,0.9));
  border: 1px solid rgba(255, 210, 90, 0.15);
  border-radius: 22px;
  padding: 3rem;
  box-shadow: 0 0 35px rgba(255, 200, 120, 0.08),
              inset 0 0 12px rgba(255, 200, 120, 0.05);
}

/* Header */
.magik-feed-head {
  text-align: center;
  margin-bottom: 2rem;
}

.magik-feed-kicker {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: .3rem;
}

.magik-feed-title {
  font-size: 2.8rem;
  margin-bottom: .6rem;
}

.magik-feed-note {
  opacity: .8;
  font-size: 1.1rem;
}

/* ===========================
   Nouveau post
   =========================== */

.magik-newpost {
  margin-bottom: 2rem;
}

.magik-newpost-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: rgba(20, 15, 35, 0.7);
  border: 1px solid rgba(255, 210, 120, 0.15);
  border-radius: 20px;
  padding: 1.5rem;
}

.magik-newpost-top textarea {
  width: 100%;
  border-radius: 14px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-a);
  padding: 1rem;
  font-size: 1rem;
  resize: vertical;
  color: #fff;
}

.magik-newpost-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Upload */
.magik-upload-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
}

.magik-upload-label input {
  display: none;
}

.magik-upload-label span {
  font-size: .95rem;
  opacity: .8;
}

/* Sélection visibilité */
.magik-vis-select select {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--glass-b);
  padding: .45rem .6rem;
  border-radius: 10px;
  color: #fff;
}

/* ===========================
   Tabs du feed
   =========================== */

.magik-feed-tabs {
  margin: 2rem 0 1rem 0;
  display: flex;
  gap: .8rem;
}

.magik-feed-tab {
  padding: .55rem 1rem;
  border-radius: 999px;
  font-size: .95rem;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  opacity: .8;
  transition: .3s;
}

.magik-feed-tab:hover {
  opacity: 1;
  border-color: var(--gold);
}

.magik-feed-tab.is-active {
  background: linear-gradient(145deg, #d6a94f, #e8c47e);
  color: #0d0b14;
  opacity: 1;
  border: none;
}

/* ===========================
   Liste des posts
   =========================== */

.magik-feed-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Carte d’un post */
.magik-post-card {
  background: rgba(15,10,25,0.65);
  border: 1px solid rgba(255, 210, 120, 0.12);
  padding: 1.6rem;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(255, 220, 140, 0.05);
}

/* Header */
.magik-post-head {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.magik-post-author {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.magik-post-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
}

.magik-post-avatar.placeholder {
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.magik-post-meta time {
  opacity: .7;
  font-size: .85rem;
}

/* Body */
.magik-post-body {
  margin-bottom: 1rem;
}

.magik-post-body p {
  line-height: 1.5;
  font-size: 1.05rem;
}

.magik-post-image img {
  width: 100%;
  border-radius: 16px;
  margin-top: .7rem;
}

/* Footer actions */
.magik-post-footer {
  display: flex;
  gap: 1.2rem;
}

.magik-btn-like,
.magik-btn-comment,
.magik-btn-repost {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: none;
  border: none;
  color: #fff;
  opacity: .8;
  cursor: pointer;
  transition: .25s;
}

.magik-btn-like:hover,
.magik-btn-comment:hover,
.magik-btn-repost:hover {
  opacity: 1;
  color: var(--gold);
}

.magik-btn-like.is-active .icon {
  color: var(--gold);
}

/* Empty feed */
.magik-feed-empty {
  text-align: center;
  opacity: .7;
  margin-top: 3rem;
  font-size: 1.1rem;
}

/* ===========================
   MAGIKTALK — Lien pseudo
   =========================== */

.magik-post-username {
  display: inline-flex;
  align-items: center;
  gap: .25rem;

  font-size: .95rem;
  font-weight: 600;
  color: var(--gold);

  text-decoration: none;
  padding: .15rem .6rem;
  border-radius: 999px;

  background: rgba(147,112,219,.18);
  border: 1px solid rgba(147,112,219,.45);

  transition:
    background .16s ease,
    border-color .16s ease,
    color .16s ease,
    transform .12s ease,
    box-shadow .16s ease;
}

.magik-post-username:hover,
.magik-post-username:focus-visible {
  background: radial-gradient(circle at top,
    rgba(214,180,106,.4),
    rgba(10,10,20,.98)
  );
  border-color: var(--gold);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(214,180,106,.55);
  outline: none;
}
/* ===========================
   PROFIL MAGIKTALK
   =========================== */

.magik-profile-wrapper {
  padding: 4rem 0;
}

.magik-profile-card {
  background: linear-gradient(180deg, rgba(30,20,50,0.7), rgba(10,8,20,0.95));
  border-radius: 22px;
  padding: 3rem;
  border: 1px solid rgba(255, 210, 120, 0.18);
  box-shadow: 0 0 40px rgba(0,0,0,0.8), 0 0 35px rgba(255, 210, 120, 0.12);
}

/* Header */
.magik-profile-header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.magik-profile-main {
  display: flex;
  gap: 1.8rem;
}

.magik-profile-avatar-wrap {
  flex-shrink: 0;
}

.magik-profile-avatar,
.magik-profile-avatar.placeholder {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255,220,150,0.7);
}

.magik-profile-avatar.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  font-size: 2.2rem;
  font-weight: 600;
}

.magik-profile-info {
  flex: 1;
}

.magik-profile-username {
  font-size: 2.4rem;
  margin-bottom: .4rem;
}

.magik-profile-subline {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .5rem;
}

.magik-pill {
  display: inline-flex;
  align-items: center;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .85rem;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.35);
}

.magik-pill-role {
  border-color: rgba(214,180,106,0.9);
  color: var(--gold);
}

.magik-pill-val {
  border-color: rgba(130, 220, 170, 0.8);
}

.magik-profile-location {
  font-size: .9rem;
  opacity: .85;
  margin-bottom: .7rem;
}

.magik-profile-bio {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 40rem;
}

.magik-bio-empty {
  opacity: .7;
  font-style: italic;
}

/* Stats + actions */
.magik-profile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.magik-profile-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.magik-stat .label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .7;
}

.magik-stat .value {
  font-size: 1.25rem;
  font-weight: 600;
}

.magik-profile-buttons {
  display: flex;
  gap: .8rem;
  flex-shrink: 0;
}

/* Boutons (reuse pattern global) */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  color: #fff;
  font-size: .95rem;
  cursor: pointer;
  transition: .25s;
}

.btn-secondary:hover {
  border-color: var(--gold);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #fff;
  font-size: .95rem;
  text-decoration: none;
  transition: .25s;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Flux du profil */
.magik-profile-feed-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
/* =========================================
   MAGIKTALK — RESPONSIVE TABLETTE
   ========================================= */

@media (max-width: 900px) {
  /* Carte principale feed & profil */
  .magik-feed-card,
  .magik-profile-card {
    padding: 2rem 1.5rem;
    border-radius: 18px;
  }

  /* Nouveau post */
  .magik-newpost-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .magik-newpost-actions {
    width: 100%;
  }

  .magik-newpost-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }

  /* Tabs du feed */
  .magik-feed-tabs {
    flex-wrap: wrap;
    gap: .5rem;
  }

  .magik-feed-tab {
    flex: 1 1 calc(33% - .5rem);
    text-align: center;
  }

  /* Carte post */
  .magik-post-card {
    padding: 1.3rem;
  }

  .magik-post-head {
    align-items: flex-start;
  }

  /* PROFIL MAGIK */
  .magik-profile-header {
    gap: 1.5rem;
  }

  .magik-profile-main {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.2rem;
  }

  .magik-profile-avatar,
  .magik-profile-avatar.placeholder {
    width: 82px;
    height: 82px;
  }

  .magik-profile-username {
    font-size: 2rem;
  }

  .magik-profile-bio {
    max-width: 100%;
  }

  .magik-profile-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
  }

  .magik-profile-stats {
    width: 100%;
    justify-content: space-between;
  }

  .magik-profile-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .magik-profile-buttons .btn-primary,
  .magik-profile-buttons .btn-secondary,
  .magik-profile-buttons .btn-ghost {
    min-width: 150px;
  }
}

/* =========================================
   MAGIKTALK — RESPONSIVE MOBILE
   ========================================= */

@media (max-width: 600px) {
  /* Wrapper */
  .magik-feed-wrapper,
  .magik-profile-wrapper {
    padding: 2.5rem 0;
  }

  .magik-feed-card,
  .magik-profile-card {
    padding: 1.6rem 1.2rem;
    border-radius: 16px;
  }

  /* Titre */
  .magik-feed-title,
  .magik-profile-username {
    font-size: 1.8rem;
  }

  .magik-feed-note {
    font-size: .95rem;
  }

  /* Nouveau post */
  .magik-newpost-form {
    padding: 1.2rem;
  }

  .magik-newpost-top textarea {
    font-size: .95rem;
  }

  /* Tabs */
  .magik-feed-tabs {
    flex-wrap: wrap;
    gap: .4rem;
  }

  .magik-feed-tab {
    flex: 1 1 100%;
    font-size: .9rem;
    padding: .45rem .8rem;
  }

  /* Post */
  .magik-post-card {
    padding: 1.1rem;
  }

  .magik-post-avatar,
  .magik-post-avatar.placeholder {
    width: 42px;
    height: 42px;
  }

  .magik-post-body p {
    font-size: .98rem;
  }

  .magik-post-footer {
    gap: .8rem;
  }

  .magik-btn-like,
  .magik-btn-comment,
  .magik-btn-repost {
    font-size: .9rem;
  }

  /* Profil Magik */
  .magik-profile-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .magik-profile-info {
    text-align: center;
  }

  .magik-profile-subline {
    justify-content: center;
  }

  .magik-profile-location {
    justify-content: center;
    display: flex;
  }

  .magik-profile-bio {
    text-align: left;
    font-size: .95rem;
  }

  .magik-profile-actions {
    align-items: center;
  }

  .magik-profile-stats {
    justify-content: center;
    text-align: center;
  }

  .magik-stat {
    min-width: 80px;
  }

  .magik-profile-buttons {
    justify-content: center;
  }

  .magik-profile-buttons .btn-primary,
  .magik-profile-buttons .btn-secondary,
  .magik-profile-buttons .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}
/* =========================================
   PANIER — /shop/panier.php
   ========================================= */

.cart-wrapper {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.cart-card {
  padding: 2rem;
}

/* Titre / intro */
.cart-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.cart-empty {
  opacity: .8;
  margin-bottom: 1.5rem;
}

/* Tableau */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.cart-table th,
.cart-table td {
  padding: .75rem .75rem;
  text-align: left;
  font-size: .9rem;
}

.cart-table th {
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

.cart-table tr + tr td {
  border-top: 1px solid rgba(255,255,255,.06);
}

/* Colonne produit */
.cart-prod {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

/* Vignette produit (réduit l’énorme image) */
.cart-thumb {
  width: 80px;
  aspect-ratio: 3/4;
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
}

.cart-thumb img,
.cart-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Si tu as laissé <img class="cart-thumb"> au lieu d’un div : */
img.cart-thumb {
  width: 80px;
  aspect-ratio: 3/4;
  border-radius: var(--radius-sm, 8px);
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
}

/* Nom produit */
.cart-prod-title {
  font-weight: 500;
}

/* Input quantité */
.cart-input {
  width: 70px;
  padding: .25rem .4rem;
  border-radius: .5rem;
  border: 1px solid var(--glass-b);
  background: rgba(6, 6, 18, .85);
  color: var(--text);
  font-size: .9rem;
}

/* Bouton lien (Retirer / Vider) */
.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--gold);
  font-size: .85rem;
  cursor: pointer;
}

.btn-link:hover {
  text-decoration: underline;
}

/* Total */
.cart-total {
  font-size: 1.1rem;
  margin-bottom: .8rem;
}

/* Boutons bas */
.cart-next {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
  .cart-card {
    padding: 1.4rem;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td {
    display: block;
    width: 100%;
  }

  .cart-table tr {
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  .cart-table td {
    border: none !important;
    padding: .35rem 0;
  }

  .cart-prod {
    margin-bottom: .4rem;
  }

  .cart-table td:nth-child(2),
  .cart-table td:nth-child(3),
  .cart-table td:nth-child(4),
  .cart-table td:nth-child(5) {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .cart-table td:nth-child(2)::before {
    content: "Prix";
    opacity: .7;
    font-size: .85rem;
  }
  .cart-table td:nth-child(3)::before {
    content: "Quantité";
    opacity: .7;
    font-size: .85rem;
  }
  .cart-table td:nth-child(4)::before {
    content: "Total";
    opacity: .7;
    font-size: .85rem;
  }
}
/* ============================================================
   PORTAIL SANG-SATŌ — INDEX (/portail/sato/index.php)
   ============================================================ */

.sato-index-wrapper {
  margin-top: 2.8rem;
  margin-bottom: 3.2rem;
}

.sato-index-card {
  max-width: 960px;
  margin: auto;
  padding: 2rem 2.4rem;
}

.sato-index-head {
  margin-bottom: 1.4rem;
}

.sato-index-kicker {
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .35rem;
}

.sato-index-title {
  font-size: 2.2rem;
  color: var(--gold);
  margin: 0;
  letter-spacing: .08em;
}

.sato-index-intro {
  margin-top: 1rem;
  margin-bottom: 1.4rem;
  font-size: .98rem;
  color: var(--ink);
}

.sato-index-intro p {
  margin: 0 0 .6rem;
}

.sato-index-grid {
  margin-top: 1.4rem;
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 800px) {
  .sato-index-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.sato-index-section {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  background: rgba(10, 10, 20, .85);
  border: 1px solid var(--glass-b);
  box-shadow: 0 10px 24px rgba(0,0,0,.55);
}

.sato-index-subtitle {
  font-size: 1.2rem;
  margin: 0 0 .6rem;
  color: var(--gold);
}

.sato-index-list {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .95rem;
}

/* Bloc livres */

.sato-books-block {
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px dashed rgba(255,255,255,.18);
}

.sato-books-title {
  font-size: 1.7rem;
  margin: 0 0 .9rem;
  color: var(--gold);
}

.sato-books-empty {
  margin: 0;
  font-size: .95rem;
  color: var(--muted);
  font-style: italic;
}

.sato-books-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.sato-book-item {
  padding: .9rem 1rem;
  border-radius: var(--radius);
  background: rgba(10,10,20,.9);
  border: 1px solid var(--glass-b);
  box-shadow: 0 8px 20px rgba(0,0,0,.55);
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.sato-book-main {
  display: flex;
  align-items: baseline;
  gap: .6rem;
}

.sato-book-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  background: rgba(20,20,35,.95);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--muted);
}

.sato-book-title {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ink);
}

.sato-book-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .9rem;
  font-size: .9rem;
}

.sato-book-status {
  display: inline-flex;
  align-items: center;
  padding: .18rem .65rem;
  border-radius: 999px;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Variantes de statut */
.sato-book-status.status-draft {
  background: rgba(110, 90, 150, .9);
  color: #fff;
}

.sato-book-status.status-writing {
  background: rgba(214, 180, 106, .95);
  color: #120c1c;
}

.sato-book-status.status-published {
  background: rgba(80, 160, 110, .95);
  color: #fff;
}

.sato-book-year {
  color: var(--muted);
}

.sato-book-year-placeholder {
  font-style: italic;
}

/* Footer / actions */

.sato-index-footer {
  margin-top: 2rem;
}

.sato-index-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

@media (max-width: 800px) {
  .sato-index-card {
    padding: 1.7rem 1.4rem;
  }

  .sato-index-title {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .sato-index-actions .btn-primary,
  .sato-index-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
/* ============================================================
   UNIVERS SANG-SATŌ — PAGE /portail/sato/univers.php
   ============================================================ */

.sato-univers-wrapper {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.sato-univers-head {
  text-align: center;
  margin-bottom: 2rem;
}

.sato-univers-title {
  font-size: 2.4rem;
  color: var(--gold);
}

.sato-univers-sub {
  font-size: .95rem;
  color: var(--muted);
}

/* Filtres */
.sato-univers-filters {
  margin-bottom: 2rem;
  padding: 1.4rem;
}

.sato-univers-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sato-univers-type {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: .45rem .9rem;
  border-radius: 999px;
  background: rgba(10,10,20,.92);
  border: 1px solid var(--glass-b);
  font-size: .9rem;
  color: var(--ink);
  transition: .18s;
}

.filter-btn:hover {
  background: rgba(20,20,35,.95);
}

.filter-btn.active {
  background: var(--gold);
  color: #120c1c;
  border-color: var(--gold);
  font-weight: 600;
}


/* Recherche */
.sato-univers-search {
  display: flex;
  gap: .6rem;
}

.search-input {
  flex: 1;
  padding: .6rem .9rem;
  border-radius: var(--radius);
  border: 1px solid var(--glass-b);
  background: rgba(15,12,25,.8);
  color: var(--ink);
}

/* Grille */
.sato-univers-grid {
  display: grid;
  gap: 1.3rem;
}

@media (min-width: 700px) {
  .sato-univers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .sato-univers-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Cartes */
.sato-card {
  background: rgba(10,10,20,.9);
  border: 1px solid var(--glass-b);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.55);
  display: flex;
  flex-direction: column;
}

.sato-card-img {
  height: 180px;
  background: rgba(20,15,35,.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sato-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sato-card-img-placeholder {
  font-size: 2rem;
  opacity: .4;
}

.sato-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.sato-card-title {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ink);
}

.sato-card-type {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.sato-card-desc {
  font-size: .9rem;
  line-height: 1.35;
  color: var(--ink);
  opacity: .85;
}

.sato-card-btn {
  margin-top: .6rem;
  text-align: center;
}

/* Pagination */
.sato-univers-pagination {
  margin-top: 2rem;
  display: flex;
  gap: .4rem;
  justify-content: center;
}

.page-btn {
  padding: .45rem .8rem;
  border-radius: 6px;
  background: rgba(10,10,20,.9);
  border: 1px solid var(--glass-b);
  color: var(--ink);
}

.page-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #120c1c;
}
/* ============================================================
   FICHE SANG-SATŌ — /portail/sato/fiche.php
   ============================================================ */

.sato-fiche-wrapper {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.sato-fiche-card {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2rem 2.4rem;
}

.fiche-back {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-bottom: 1.2rem;
}

/* Layout principal */

.sato-fiche-layout {
  display: grid;
  gap: 1.6rem;
}

@media (min-width: 840px) {
  .sato-fiche-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    align-items: flex-start;
  }
}

/* Image */

.sato-fiche-image {
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 0%, rgba(255,210,120,.25), transparent 60%),
              rgba(10,10,20,.95);
  border: 1px solid var(--glass-b);
  box-shadow: 0 12px 32px rgba(0,0,0,.6);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sato-fiche-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sato-fiche-image-placeholder {
  font-size: 3rem;
  opacity: .4;
}

/* Contenu */

.sato-fiche-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sato-fiche-header {
  margin-bottom: .4rem;
}

.sato-fiche-type {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .25rem;
}

.sato-fiche-title {
  font-size: 2.1rem;
  color: var(--gold);
  margin: 0;
}

/* Meta */

.sato-fiche-meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.meta-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  column-gap: 1.2rem;
  row-gap: .1rem;
  font-size: .92rem;
}

.meta-row dt {
  font-weight: 600;
  color: var(--muted);
}

.meta-row dd {
  margin: 0;
  color: var(--ink);
}

/* Chips tomes */

.meta-books {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.chip-book {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: rgba(15,15,30,.95);
  border: 1px solid var(--glass-b);
  font-size: .8rem;
}

.chip-book-title {
  color: var(--muted);
  font-weight: 400;
}

/* Tags */

.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}

.chip-tag {
  padding: .18rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  font-size: .78rem;
  color: var(--ink);
  background: rgba(20,15,35,.95);
}

/* Description */

.sato-fiche-description {
  margin-top: .8rem;
}

.sato-fiche-section-title {
  font-size: 1.2rem;
  color: var(--gold);
  margin: 0 0 .4rem;
}

.sato-fiche-description p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--ink);
}

/* Responsive */

@media (max-width: 700px) {
  .sato-fiche-card {
    padding: 1.7rem 1.4rem;
  }

  .meta-row {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   SATO UNIVERS — Amélioration style des filtres
   --------------------------------------------------------- */

.sato-univers-type {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.magik-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  z-index: 9999;
}

/* ============================================================
   TIMELINE SANG-SATŌ — /portail/sato/timeline.php
   ============================================================ */

.sato-timeline-wrapper {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.sato-timeline-head {
  text-align: center;
  margin-bottom: 2rem;
}

.sato-timeline-title {
  font-size: 2.3rem;
  color: var(--gold);
  margin: 0;
}

.sato-timeline-sub {
  margin: .4rem 0 0;
  font-size: .95rem;
  color: var(--muted);
}

.sato-timeline-current {
  color: var(--ink);
  font-weight: 600;
}

/* Filtres */

.sato-timeline-filters {
  margin-bottom: 1.8rem;
  padding: 1.3rem 1.4rem;
}

.sato-timeline-types {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: .7rem;
}

.sato-timeline-legend {
  margin: 0;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Timeline */

.sato-timeline {
  position: relative;
  padding-left: 1.8rem;
  border-left: 1px solid rgba(255,255,255,.1);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.6rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -0.55rem;
  top: .5rem;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(255,210,120,.55);
}

/* Importance visuelle */
.timeline-item.importance-1 .timeline-dot {
  transform: scale(.8);
  box-shadow: 0 0 6px rgba(255,210,120,.4);
}

.timeline-item.importance-2 .timeline-dot {
  transform: scale(1);
}

.timeline-item.importance-3 .timeline-dot {
  transform: scale(1.2);
  box-shadow: 0 0 16px rgba(255,220,150,.9);
}

.timeline-content {
  padding-left: .6rem;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .9rem;
  align-items: baseline;
  font-size: .8rem;
  margin-bottom: .25rem;
}

.timeline-book {
  display: inline-flex;
  align-items: baseline;
  gap: .25rem;
  padding: .16rem .6rem;
  border-radius: 999px;
  background: rgba(15,15,30,.95);
  border: 1px solid var(--glass-b);
}

.timeline-book-title {
  color: var(--muted);
}

.timeline-book-global {
  opacity: .8;
  font-style: italic;
}

.timeline-date {
  color: var(--muted);
}

.timeline-title {
  margin: 0 0 .25rem;
  font-size: 1.1rem;
  color: var(--ink);
}

.timeline-summary {
  margin: 0;
  font-size: .94rem;
  line-height: 1.45;
  color: var(--ink);
}

/* État vide */

.sato-timeline-empty {
  margin-top: 1.5rem;
  text-align: center;
  font-size: .95rem;
  color: var(--muted);
  font-style: italic;
}

/* Responsive */

@media (max-width: 700px) {
  .sato-timeline-wrapper .card {
    padding: 1.4rem 1.3rem;
  }
  .sato-timeline {
    padding-left: 1.4rem;
  }
  .timeline-content {
    padding-left: .4rem;
  }
}
/* =========================================
   PORTAIL VALSHAARI — PAGE INDEX
   ========================================= */

.valshaari-page {
  padding-block: 3.5rem 4.5rem;
}

/* Hero */
.valshaari-hero {
  margin-bottom: 3rem;
}

.valshaari-hero-card {
  background: radial-gradient(circle at top left, rgba(120, 90, 255, 0.22), transparent 55%),
              radial-gradient(circle at bottom right, rgba(255, 210, 120, 0.16), transparent 60%),
              rgba(10, 8, 20, 0.95);
  border-radius: 24px;
  border: 1px solid rgba(255, 210, 120, 0.2);
  padding: 2.4rem 2.6rem;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.75),
    inset 0 0 18px rgba(255, 210, 120, 0.15);
}

.valshaari-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.valshaari-hero-main > .kicker {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.valshaari-hero-main > h1 {
  font-size: clamp(1.9rem, 2.2vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.valshaari-hero-main > p {
  font-size: 0.98rem;
  color: var(--text-soft, #c3c0d8);
  max-width: 38rem;
}

/* Bloc stats / progression */
.valshaari-hero-side {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: 1.4rem 1.5rem;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(8, 6, 18, 0.95), rgba(16, 10, 40, 0.98));
  border: 1px solid var(--glass-b);
}

.valshaari-hero-side-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.valshaari-stat-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.valshaari-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.valshaari-stat-label {
  color: var(--text-soft, #d5d3ea);
}

.valshaari-stat-value {
  font-weight: 600;
  color: #fff;
}

/* Barre de niveau / XP */
.valshaari-xp {
  margin-top: 0.5rem;
}

.valshaari-xp-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
  color: var(--text-soft, #c5c1e7);
}

.valshaari-xp-label strong {
  color: #fff;
}

.valshaari-xp-bar {
  position: relative;
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 60%),
              rgba(8, 6, 18, 0.96);
  overflow: hidden;
  border: 1px solid rgba(255, 210, 120, 0.3);
}

.valshaari-xp-bar-fill {
  position: absolute;
  inset: 0;
  width: var(--xp-pct, 30%);
  background: linear-gradient(90deg, #7a5cff, #ffc36b);
  box-shadow: 0 0 14px rgba(255, 210, 120, 0.6);
}

/* Tags / petite capsule */
.valshaari-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.valshaari-badge {
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 120, 0.45);
  background: radial-gradient(circle at top, rgba(255, 210, 120, 0.25), rgba(40, 20, 70, 0.85));
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

/* Grille des sections (Index / Leçons / Exercices / Lexique / Traducteur) */
.valshaari-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.v-card {
  position: relative;
  padding: 1.6rem 1.7rem;
  border-radius: 20px;
  background: radial-gradient(circle at top, rgba(120, 90, 255, 0.18), transparent 60%),
              rgba(10, 8, 20, 0.96);
  border: 1px solid rgba(255, 210, 120, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.v-card:is(a, button) {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.v-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.8),
    0 0 24px rgba(255, 210, 120, 0.35);
  border-color: rgba(255, 210, 120, 0.35);
}

.v-card-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.v-card-title {
  font-size: 1.1rem;
  margin-bottom: 0.1rem;
}

.v-card-body {
  font-size: 0.9rem;
  color: var(--text-soft, #cbc7e6);
}

.v-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.4rem;
}

.v-card-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(30, 24, 60, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-soft, #d0cdee);
}

.v-card-footer {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted, #a29bbf);
}

.v-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold);
}

.v-card-cta svg,
.v-card-cta .icon {
  font-size: 1rem;
}

/* Petite pastille dans l’angle (par ex. “XP”, “À venir”, etc.) */
.v-card-pill {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 210, 120, 0.5);
  color: var(--gold);
}

/* Bloc “En savoir plus” en bas de page si tu en as un */
.valshaari-more {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(220px, 1.1fr);
  gap: 1.6rem;
}

.valshaari-more > .panel {
  padding: 1.5rem 1.7rem;
  border-radius: 18px;
  background: rgba(10, 8, 20, 0.96);
  border: 1px solid var(--glass-b);
}

/* Responsif */
@media (max-width: 1024px) {
  .valshaari-hero-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
  }

  .valshaari-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .valshaari-more {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 768px) {
  .valshaari-page {
    padding-block: 2.5rem 3.2rem;
  }

  .valshaari-hero-card {
    padding: 1.7rem 1.6rem;
  }

  .valshaari-hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .valshaari-hero-side {
    order: -1;
  }

  .valshaari-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .valshaari-more {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ============================
   LEXIQUE VALSHAARI
   ============================ */

.valshaari-lex-filters {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.valshaari-lex-search-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mt-search-row {
  display: flex;
  align-items: stretch;
  border-radius: 999px;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(255,255,255,0.04), transparent 60%),
              rgba(5, 3, 15, 0.98);
  border: 1px solid rgba(255, 210, 120, 0.28);
}

.mt-search-prefix {
  padding: 0 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gold);
}

.mt-search-row input[type="text"] {
  flex: 1 1 auto;
  border: none;
  outline: none;
  padding: 0.7rem 0.9rem;
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
}

.mt-search-row input::placeholder {
  color: rgba(220, 215, 255, 0.6);
}

.mt-search-row .btn-ghost {
  border-radius: 0;
  border-left: 1px solid rgba(255, 210, 120, 0.28);
}

/* Filtres catégories */

.valshaari-lex-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.valshaari-lex-select {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.valshaari-lex-select label {
  color: var(--text-soft, #d6d1f0);
}

/* Shell pour style custom du select */

.select-shell {
  position: relative;
  display: inline-flex;
  width: 100%;
}

.select-shell select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 0.5rem 2.2rem 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 120, 0.35);
  background:
    linear-gradient(135deg, rgba(20, 12, 45, 0.96), rgba(10, 8, 25, 0.96));
  color: #f3efff;
  font-size: 0.9rem;
  cursor: pointer;
}

.select-shell::after {
  content: "▾";
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.7rem;
  color: var(--gold);
}

/* TABLEAU DU LEXIQUE */

.valshaari-lex-table-wrapper {
  margin-top: 1rem;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 210, 120, 0.25);
  background: radial-gradient(circle at top left, rgba(120, 90, 255, 0.14), transparent 55%),
              rgba(8, 5, 18, 0.96);
}

.valshaari-lex-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.valshaari-lex-table thead {
  background: linear-gradient(90deg, rgba(34, 22, 70, 0.98), rgba(55, 30, 95, 0.98));
}

.valshaari-lex-table th,
.valshaari-lex-table td {
  padding: 0.65rem 1rem;
  text-align: left;
}

.valshaari-lex-table th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--gold);
  border-bottom: 1px solid rgba(255, 210, 120, 0.4);
}

.valshaari-lex-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.01);
}

.valshaari-lex-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.1);
}

.valshaari-lex-table tbody tr:hover {
  background: radial-gradient(circle at left, rgba(255, 210, 120, 0.15), transparent 60%);
}

.valshaari-lex-table td {
  color: #f2eeff;
}

.valshaari-lex-table td.lex-fr {
  color: #ddd8ff;
}

.valshaari-lex-table td.lex-cat,
.valshaari-lex-table td.lex-sub {
  font-size: 0.85rem;
  color: #c1bcf1;
}

/* PAGINATION */

.valshaari-pagination {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
}

.valshaari-pagination .page-link,
.valshaari-pagination .page-ellipsis {
  min-width: 2.1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 120, 0.35);
  background: rgba(14, 10, 30, 0.96);
  text-align: center;
  font-size: 0.8rem;
  text-decoration: none;
  color: #f5f0ff;
}

.valshaari-pagination .page-link.current {
  background: linear-gradient(90deg, #7a5cff, #ffc36b);
  color: #0a0615;
  font-weight: 600;
  border-color: transparent;
}

.valshaari-pagination .page-link:hover:not(.current) {
  background: radial-gradient(circle at top, rgba(255, 210, 120, 0.24), rgba(20, 12, 45, 0.98));
}

.valshaari-pagination .prev,
.valshaari-pagination .next {
  padding-inline: 0.9rem;
}

/* Responsive */

@media (max-width: 768px) {
  .valshaari-lex-selects {
    flex-direction: column;
  }

  .valshaari-lex-table th,
  .valshaari-lex-table td {
    padding-inline: 0.6rem;
  }
}
/* =====================================
   FORMULAIRES — PORTAIL VALSHAARI
   ===================================== */

.v-form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.v-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.v-form .form-row .form-group {
  flex: 1 1 230px;
}

.v-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.v-form .form-group label {
  color: var(--text-soft, #d9d4f5);
}

.v-form .required {
  color: var(--gold);
}

/* Inputs / textarea */

.v-form input[type="text"],
.v-form input[type="email"],
.v-form textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 120, 0.35);
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.04), transparent 60%),
    rgba(5, 3, 15, 0.98);
  padding: 0.65rem 0.9rem;
  color: #f7f4ff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.v-form textarea {
  border-radius: 18px;
  min-height: 130px;
  resize: vertical;
}

.v-form input::placeholder,
.v-form textarea::placeholder {
  color: rgba(215, 210, 255, 0.7);
}

.v-form input:focus,
.v-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(255, 210, 120, 0.5),
              0 0 22px rgba(255, 210, 120, 0.25);
}

/* Select (même style que le lexique) */

.select-shell {
  position: relative;
  display: inline-flex;
  width: 100%;
}

.select-shell select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 0.55rem 2.4rem 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 120, 0.35);
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.04), transparent 60%),
    linear-gradient(135deg, rgba(20, 12, 45, 0.96), rgba(10, 8, 25, 0.98));
  color: #f3efff;
  font-size: 0.9rem;
  cursor: pointer;
}

.select-shell::after {
  content: "▾";
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.7rem;
  color: var(--gold);
}

/* Boutons en bas du formulaire */

.v-form .form-actions {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

.v-form .form-actions .btn-primary,
.v-form .form-actions .btn-secondary,
.v-form .form-actions .btn-ghost {
  min-width: 180px;
}

/* Responsive */

@media (max-width: 768px) {
  .v-form .form-actions {
    justify-content: center;
  }
}
.shop-digital-badge {
  background: rgba(120, 80, 255, 0.25);
  color: #e4ccff;
  font-size: .75rem;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: .5rem;
}
.shop-stock-digital {
  background: rgba(120, 80, 255, 0.25);
  color: #c4a5ff;
}
.shop-price-free {
  color: #7cf5b0;
  font-weight: 700;
}
.lesson-list {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.lesson-card {
  padding: 2rem;
  border-radius: 20px;
}

.lesson-meta {
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0;
  font-size: 0.95rem;
  opacity: 0.8;
}

.lesson-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.badge {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.badge-green {
  background: rgba(0, 180, 90, 0.22);
  color: #5fffbe;
  border: 1px solid rgba(90,255,190,0.4);
}

.badge-grey {
  background: rgba(255,255,255,0.15);
  color: #ccc;
  border: 1px solid rgba(255,255,255,0.25);
}
.alert {
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  font-size: 0.9rem;
}

.alert-success {
  background: rgba(80, 220, 150, 0.15);
  border: 1px solid rgba(80, 220, 150, 0.5);
  color: #b9ffd9;
}

.alert-error {
  background: rgba(220, 80, 80, 0.15);
  border: 1px solid rgba(220, 80, 80, 0.5);
  color: #ffd0d0;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}
.progress-summary-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .progress-summary-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  }
}

.progress-summary-bar .profile-valsha-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.profile-valsha-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,210,90,0.9), rgba(180,120,255,0.9));
}

.progress-stats-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .progress-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.progress-stat-card {
  padding: 1.5rem;
  border-radius: 18px;
  background: rgba(15,10,35,0.9);
  border: 1px solid rgba(255,255,255,0.08);
}

.mini-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  margin: 0.4rem 0;
}

.mini-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: rgba(255,210,90,0.9);
}

.progress-history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.progress-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
}

.progress-history-item:last-child {
  border-bottom: none;
}

.progress-history-main {
  display: flex;
  flex-direction: column;
}

.progress-history-date {
  opacity: 0.7;
  font-size: 0.8rem;
}

.progress-history-meta .progress-xp {
  font-weight: 600;
  opacity: 0.9;
}
/* ============================================
   VALSHAARI — EXERCICES (LISTE + DÉTAIL)
   ============================================ */

/* Wrapper commun liste + détail */
.valshaari-wrapper {
  padding: 3rem 0;
}

/* =========================
   LISTE DES EXERCICES
   ========================= */

.valshaari-exercises-list {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Carte exercice */
.valshaari-ex-card {
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  background: radial-gradient(circle at top left,
              rgba(40, 30, 80, .95),
              rgba(10, 8, 25, .98));
  border: 1px solid var(--glass-b);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.02),
    0 14px 32px rgba(0,0,0,.7);
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.valshaari-ex-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at top left,
      rgba(255, 210, 120, .08),
      transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.valshaari-ex-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255,210,120,.13),
    0 20px 40px rgba(0,0,0,.85);
  border-color: rgba(255,210,120,.45);
}

.valshaari-ex-card:hover::before {
  opacity: 1;
}

/* Titre exercice */
.valshaari-ex-card h2 {
  font-size: 1.1rem;
  margin: 0 0 .25rem 0;
  color: var(--white);
}

/* Meta (type, diff, XP, leçon liée) */
.valshaari-ex-card .admin-subtext {
  font-size: .85rem;
  color: var(--gray-light);
}

/* Aperçu question */
.valshaari-ex-card p {
  font-size: .9rem;
  color: rgba(255,255,255,.9);
}

/* Bouton "Faire cet exercice" dans la carte */
.valshaari-ex-card .btn {
  margin-top: .6rem;
}

/* =========================
   FILTRES LISTE EXERCICES
   ========================= */

/* On recycle .admin-filters mais pour le front Valshaari */
.valshaari-wrapper .admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.valshaari-wrapper .admin-filters > div {
  min-width: 160px;
}

.valshaari-wrapper .admin-filters label {
  font-size: .85rem;
  color: var(--gray-light);
}

.valshaari-wrapper .admin-filters select {
  width: 100%;
  margin-top: .2rem;
  padding: .45rem .7rem;
  border-radius: var(--radius);
  background: radial-gradient(circle at top left,
              rgba(30, 24, 70, .95),
              rgba(8, 6, 20, .98));
  border: 1px solid var(--glass-b);
  color: var(--white);
  font-size: .9rem;
}

.valshaari-wrapper .admin-filters select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow:
    0 0 0 1px rgba(255,210,120,.4),
    0 0 18px rgba(255,210,120,.25);
}

/* =========================
   PAGE DÉTAIL /exercice.php
   ========================= */

.valshaari-ex-detail-header .home-intro {
  max-width: 680px;
}

/* Bloc énoncé */
.valshaari-statement {
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: rgba(10, 8, 25, .9);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  font-size: .95rem;
  white-space: pre-line;
}

/* Alerts (on duplique le style admin pour le front) */
.admin-alert {
  padding: .8rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: .9rem;
}

.admin-alert-success {
  background: rgba(40, 150, 90, .25);
  border: 1px solid #6be39c;
}

.admin-alert-error {
  background: rgba(150, 40, 40, .25);
  border: 1px solid #ff7777;
}

/* Formulaire de réponse (on s'aligne sur admin-form-wide) */
.valshaari-wrapper .admin-form-wide {
  max-width: 640px;
}

/* =========================
   TYPE RECOMPOSITION
   ========================= */

/* Zone des boutons mots à cliquer */
#reco-source {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .7rem;
}

#reco-source .btn {
  padding: .35rem .7rem;
  font-size: .9rem;
}

/* Zone de phrase recomposée */
#reco-target {
  min-height: 2.4rem;
  padding: .45rem .6rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(255,255,255,.25);
  background: rgba(10, 8, 25, .8);
  font-size: .95rem;
}

#reco-target span {
  display: inline-block;
  margin-right: .4rem;
  margin-bottom: .2rem;
  padding: .15rem .45rem;
  border-radius: 999px;
  background: rgba(60, 50, 100, .9);
  border: 1px solid rgba(255,255,255,.12);
  cursor: pointer;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 700px) {
  .valshaari-wrapper .admin-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .valshaari-ex-card {
    padding: .9rem 1rem;
  }
}
/* ============================================
   VALSHAARI — Filtres exercices (version forcée)
   ============================================ */

.valshaari-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1.8rem;
  align-items: flex-end;
}

.valshaari-filter-group {
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.valshaari-filter-group label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
}

/* On cible TOUT select dans la zone Valshaari + on force l'apparence */
.valshaari-wrapper select,
.valshaari-filters select {
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--glass-b) !important;
  background: radial-gradient(circle at top left,
              rgba(35, 25, 70, 0.98),
              rgba(8, 6, 20, 0.98)) !important;
  color: var(--white) !important;
  font-size: 0.9rem;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 10px 22px rgba(0, 0, 0, 0.7);
  appearance: none !important;
  -moz-appearance: none !important;
  -webkit-appearance: none !important;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 210, 120, 0.9) 50%),
    linear-gradient(135deg, rgba(255, 210, 120, 0.9) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.valshaari-wrapper select:focus,
.valshaari-filters select:focus {
  outline: none;
  border-color: var(--gold) !important;
  box-shadow:
    0 0 0 1px rgba(255, 210, 120, 0.45),
    0 0 18px rgba(255, 210, 120, 0.25);
}

/* Bouton Filtrer */
.valshaari-filter-actions {
  display: flex;
  align-items: center;
}

.valshaari-filter-actions .btn-gold {
  padding-inline: 1.4rem;
}

/* Responsive */
@media (max-width: 720px) {
  .valshaari-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .valshaari-filter-actions {
    justify-content: flex-start;
  }
}

.valshaari-assoc-grid {
  display: grid;
  gap: .6rem;
}

.valshaari-assoc-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: .6rem;
  align-items: center;
}

.valshaari-assoc-left {
  padding: .4rem .6rem;
  background: rgba(20,20,30,.8);
  border-radius: var(--radius);
  border: 1px solid var(--glass-b);
  font-size: .9rem;
}

.valshaari-assoc-right select {
  width: 100%;
  padding: .35rem .5rem;
  background: rgba(10,10,20,.9);
  border-radius: var(--radius);
  border: 1px solid var(--glass-b);
  color: var(--white);
  font-size: .9rem;
}
/* ============================================================
   PAGE TAROT
============================================================ */
.tarot-wrapper {
  margin-top: 2.8rem;
  margin-bottom: 3rem;
}

.tarot-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 2.4rem;
}

.tarot-head {
  margin-bottom: 1.4rem;
}

.tarot-kicker {
  font-size: .85rem;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 .2rem;
}

.tarot-title {
  font-size: 1.9rem;
  color: var(--gold);
  margin: 0 0 .5rem;
  letter-spacing: .07em;
}

.tarot-note {
  font-size: .95rem;
  color: var(--muted);
  margin: 0;
}

.tarot-note-mini {
  margin-top: .4rem;
  font-size: .85rem;
  color: var(--muted);
  font-style: italic;
}

/* Formulaire */
.tarot-form-block {
  margin-top: 1.6rem;
  border-top: 1px solid rgba(147,112,219,.35);
  padding-top: 1.2rem;
}

.tarot-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tarot-spread-group label {
  font-size: .9rem;
  color: var(--muted);
}

.tarot-spread-options {
  margin-top: .3rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.2rem;
}

.tarot-radio {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .9rem;
  color: var(--ink);
}

/* Résultat */
.tarot-result-block {
  margin-top: 1.8rem;
}

.tarot-section-title {
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: .9rem;
}

.tarot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.tarot-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}

.tarot-card-img {
  width: 110px;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--glass-b);
  box-shadow: 0 10px 24px rgba(0,0,0,.7);
}

.tarot-card-name {
  font-size: .9rem;
  color: var(--ink);
}

.tarot-question-display {
  margin-top: 1.2rem;
  font-size: .9rem;
  color: var(--muted);
}

.tarot-question-display span {
  color: var(--ink);
  font-style: italic;
}

/* Footer */
.tarot-footer {
  margin-top: 1.8rem;
  text-align: center;
}

/* ============================================================
   HISTORIQUE TAROT
============================================================ */
.tarot-history-wrapper {
  margin-top: 2.8rem;
  margin-bottom: 3rem;
}

.tarot-history-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 2.4rem;
}

.tarot-history-empty {
  margin-top: 1.4rem;
  font-size: .95rem;
  color: var(--muted);
  font-style: italic;
}

.tarot-history-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tarot-history-item {
  padding: .9rem 1rem;
  border-radius: 14px;
  background: rgba(10,10,20,.95);
  border: 1px solid var(--glass-b);
  box-shadow: 0 10px 22px rgba(0,0,0,.6);
}

.tarot-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: .3rem;
}

.tarot-history-date {
  font-weight: 500;
  color: var(--ink);
}

.tarot-history-type {
  padding: .15rem .5rem;
  border-radius: 999px;
  background: rgba(147,112,219,.25);
  font-size: .8rem;
}

.tarot-history-question {
  font-size: .9rem;
  color: var(--muted);
  margin: .2rem 0 .4rem;
}

.tarot-history-question span {
  color: var(--ink);
}

.tarot-history-cards {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.tarot-slot-small {
  align-items: flex-start;
}

.tarot-card-img-small {
  width: 70px;
  box-shadow: 0 6px 16px rgba(0,0,0,.6);
}

/* Pagination */
.tarot-pagination {
  margin-top: 1.4rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(147,112,219,.35);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  font-size: .85rem;
}

.tarot-page-link {
  color: var(--gold);
  text-decoration: none;
}

.tarot-page-link:hover {
  text-decoration: underline;
}

.tarot-page-current {
  color: var(--muted);
}

/* Responsive */
@media (max-width: 768px) {
  .tarot-card,
  .tarot-history-card {
    padding: 1.5rem 1.3rem;
  }

  .tarot-history-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
.achievements-grid {
  display:grid;
  gap:1rem;
}

.achievement-card {
  display:flex;
  gap:1rem;
  padding:0.8rem 1rem;
  border-radius:var(--radius-lg);
  background:rgba(10,5,25,0.9);
  border:1px solid rgba(255,255,255,0.04);
}

.achievement-icon-wrap {
  flex:0 0 64px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.achievement-icon,
.achievement-icon-fallback {
  width:64px;
  height:64px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:2rem;
}

.achievement-icon-fallback {
  border:1px solid rgba(255,255,255,0.15);
}

.achievement-main {
  flex:1;
}

.achievement-title {
  margin:0 0 .2rem 0;
  font-size:1.05rem;
}

.achievement-desc {
  margin:0 0 .4rem 0;
  font-size:.9rem;
  opacity:.9;
}

.achievement-meta {
  font-size:.8rem;
  display:flex;
  gap:.6rem;
  align-items:center;
}

.achievement-tag {
  padding:0.1rem .6rem;
  border-radius:999px;
  font-size:.7rem;
}

.achievement-tag-ok {
  background:rgba(80,200,120,0.15);
  border:1px solid rgba(80,200,120,0.7);
}

.achievement-tag-locked {
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.15);
  opacity:.7;
}

.ach-locked {
  opacity:.75;
}
/* Taille des cartes tarot — version compacte */
.tarot-grid .tarot-card-img,
.tarot-history-cards .tarot-card-img {
  width: 140px;      /* ajuste ici (100–160px selon ton goût) */
  max-width: 140px;
  height: auto;
}

/* et pour vraiment écraser les éventuels "width:100%" globaux */
.tarot-grid img.tarot-card-img,
.tarot-history-cards img.tarot-card-img {
  width: 140px !important;
  max-width: 140px !important;
}

/* pour les petites versions dans l'historique */
.tarot-card-img-small {
  width: 90px !important;
  max-width: 90px !important;
}

/* ============================================================
   PAGE MUSIQUE — playlist mystique
============================================================ */

.music-wrapper {
  margin-top: 2.8rem;
  margin-bottom: 3.2rem;
}

.music-card {
  max-width: 960px;
  margin: auto;
  padding: 2rem 2.4rem;
}

/* En-tête */
.music-head {
  margin-bottom: 1.6rem;
  text-align: left;
}

.music-kicker {
  font-size: .85rem;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 .2rem;
}

.music-title {
  font-size: 1.9rem;
  color: var(--gold);
  margin: 0 0 .5rem;
  letter-spacing: .07em;
}

.music-note {
  font-size: .95rem;
  color: var(--muted);
  margin: 0;
}

/* Liste de pistes */
.music-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.music-item {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 2.4fr);
  gap: 1rem;
  align-items: center;
  padding: .9rem 1rem;
  border-radius: var(--radius);
  background: rgba(10,10,20,.95);
  border: 1px solid var(--glass-b);
  box-shadow: 0 10px 24px rgba(0,0,0,.55);
}

.music-info {
  min-width: 0;
}

.music-track-title {
  font-size: 1.1rem;
  margin: 0 0 .2rem;
  color: var(--ink);
}

.music-track-artist {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
}

/* Partie droite : lecteur + bouton */
.music-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: flex-end;
  align-items: center;
}

/* On ne touche qu'au lecteur de la page musique */
.music-audio {
  max-width: 260px;
  width: 100%;
  background: rgba(5,5,15,.9);
  border-radius: 999px;
  padding: .18rem .25rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.7);
}

/* Bouton "Télécharger" version musique */
.music-download {
  border-radius: 999px;
  padding: .45rem 1.1rem;
  font-size: .9rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  cursor: pointer;
  transition:
    background .16s ease,
    color .16s ease,
    box-shadow .16s ease,
    transform .12s ease;
}

.music-download:hover,
.music-download:focus-visible {
  background: rgba(214,180,106,.15);
  color: var(--ink);
  box-shadow: 0 0 18px rgba(214,180,106,.5);
  transform: translateY(-1px);
}

/* Texte état vide + note */
.music-empty {
  margin-top: 1.4rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

.music-footer-note {
  margin-top: 1.2rem;
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
}

/* Responsive */
@media (max-width: 800px) {
  .music-card {
    padding: 1.5rem 1.3rem;
  }

  .music-item {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .music-actions {
    justify-content: flex-start;
  }

  .music-audio {
    max-width: 100%;
  }
}

/* On cache l'audio natif */
.music-audio {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

/* Lecteur custom */
.music-player {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(20,12,40,.95), rgba(10,6,22,.95));
  box-shadow: 0 8px 18px rgba(0,0,0,.65);
  border: 1px solid rgba(214,180,106,.4);
}

/* Bouton play/pause */
.music-play {
  border: none;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  background: radial-gradient(circle at 30% 20%, #f7e6b5, #d6b46a);
  color: #120c20;
  box-shadow: 0 4px 10px rgba(0,0,0,.6);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.music-play:hover,
.music-play:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.75);
  filter: brightness(1.05);
}

.music-play.is-playing {
  font-size: .95rem; /* pour les barres de pause ❚❚ */
}

/* Temps */
.music-time {
  display: flex;
  align-items: baseline;
  gap: .25rem;
  font-size: .8rem;
  color: var(--muted);
  min-width: 90px;
}

.music-current,
.music-duration {
  font-variant-numeric: tabular-nums;
}

.music-separator {
  opacity: .7;
}

/* Barre de progression */
.music-seek {
  flex: 1 1 120px;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  cursor: pointer;
}

/* Webkit */
.music-seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d6b46a, rgba(214,180,106,.1));
}

.music-seek::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: -4px;
  background: #f7e6b5;
  box-shadow: 0 0 10px rgba(214,180,106,.9);
}

/* Firefox */
.music-seek::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d6b46a, rgba(214,180,106,.1));
}

.music-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f7e6b5;
  border: none;
  box-shadow: 0 0 10px rgba(214,180,106,.9);
}

/* Bouton mute */
.music-mute {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .1rem;
  transition: color .12s ease, transform .12s ease;
}

.music-mute:hover,
.music-mute:focus-visible {
  color: var(--gold);
  transform: translateY(-1px);
}

.music-mute.is-muted {
  color: rgba(255,255,255,.5);
}

/* Adaptation mobile */
@media (max-width: 800px) {
  .music-player {
    width: 100%;
    justify-content: space-between;
  }

  .music-time {
    min-width: auto;
  }

  .music-seek {
    flex: 1 1 auto;
  }
}
.music-audio {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}
/* ===========================
   Reposts — cartes & bandeau
   =========================== */

.magik-post-card.is-repost {
  border-left: 3px solid rgba(214, 180, 106, 0.9); /* ton doré */
  background: radial-gradient(circle at top left,
              rgba(214, 180, 106, 0.08),
              transparent 60%);
}

/* Bandeau "Tu as partagé ce post…" */
.magik-post-repost-note {
  font-size: 0.8rem;
  margin: 0 0 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #d6b46a;
  background: rgba(214, 180, 106, 0.12);
}

.magik-post-repost-note::before {
  content: "🔁";
  font-size: 0.9rem;
}

/* Bloc citation du post original quand c'est un repost */
.magik-post-card.is-repost .magik-post-body {
  padding-top: 0.5rem;
}

.magik-post-quote {
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(214, 180, 106, 0.25);
  position: relative;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Petite barre à gauche du bloc citation */
.magik-post-quote::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.45rem;
  bottom: 0.45rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(214, 180, 106, 0.9),
    rgba(139, 111, 181, 0.9)
  );
}

/* Décaler le texte pour ne pas manger la barre */
.magik-post-quote > p {
  margin: 0;
  padding-left: 0.6rem;
}

/* Image dans un repost : un peu plus compacte */
.magik-post-card.is-repost .magik-post-image {
  margin-top: 0.6rem;
  border-radius: 0.7rem;
  overflow: hidden;
  border: 1px solid rgba(214, 180, 106, 0.25);
}
/* Container: bouton Avent + mini encart promo */
.home-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.8rem 0 1.2rem;
}

/* --- Encart Promo Petit & Mignon --- */
.promo-small-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  text-align: right;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  backdrop-filter: blur(3px);
  min-width: 140px;
}

.promo-small-title {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.promo-small-code {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
}

.promo-small-discount {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Responsive : encart passe sous le bouton */
@media (max-width: 768px) {
  .home-cta {
    flex-direction: column;
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
  }

  .promo-small-box {
    text-align: center;
    width: auto;
  }
}
