/* ═══════════════════════════════════════════════════════════════
   SMCL PUBLIC CSS — Joy & Warmth Design System v2.0
   Direction : Chaleureux · Festif · Grand public
   Police : Fraunces (display) + DM Sans (corps)
   Palette : Crème chaud · Corail · Lavande · Menthe
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=DM+Sans:wght@400;500;600&display=swap');

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --cream:      #FDF8F2;
  --cream-dark: #F5EDE0;
  --coral:      #FF6B6B;
  --coral-soft: #FFE5E5;
  --lavender:   #8B7CF6;
  --lavender-soft: #EDE9FF;
  --mint:       #34D399;
  --mint-soft:  #D1FAE5;
  --ink:        #1A1523;
  --ink-mid:    #4A4060;
  --ink-light:  #8B7FA0;
  --white:      #FFFFFF;
  --shadow-sm:  0 2px 8px rgba(26,21,35,.07);
  --shadow-md:  0 8px 32px rgba(26,21,35,.10);
  --shadow-lg:  0 20px 60px rgba(26,21,35,.13);
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --transition:   .22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ciblé ────────────────────────────────────────────── */
.smcl-create-page *,
.smcl-auth-page *,
.smcl-profile-page *,
.smcl-gift-container *,
.smcl-error * {
  box-sizing: border-box;
}

/* ── Base commune ────────────────────────────────────────────── */
.smcl-create-page,
.smcl-auth-page,
.smcl-profile-page,
.smcl-gift-container {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   PAGE CADEAU (view.php)
══════════════════════════════════════════════════════════════ */

.smcl-gift-container {
  max-width: 600px;
  margin: 48px auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 52px 44px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;         /* garde les décorations ::before/::after dans le cadre */
}

/* ── Tout le texte à l'intérieur du conteneur doit rester dans sa boîte ── */
.smcl-gift-container * {
  min-width: 0;             /* laisse les flex/grid items se réduire */
}
.smcl-gift-container p,
.smcl-gift-container h1,
.smcl-gift-container h2,
.smcl-gift-container span,
.smcl-gift-container strong {
  overflow-wrap: break-word; /* coupe les mots trop longs */
  word-break:    break-word; /* fallback Safari/anciens navigateurs */
}

/* Décoration de fond */
.smcl-gift-container::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, #EDE9FF 0%, transparent 70%);
  pointer-events: none;
}
.smcl-gift-container::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, #FFE5E5 0%, transparent 70%);
  pointer-events: none;
}

.smcl-gift-title {
  font-family: var(--font-display);
  font-size: 2.6em;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.2;
  letter-spacing: -.02em;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.smcl-recipient-name {
  color: var(--coral);
  font-style: italic;
}

.smcl-title-emoji {
  display: inline-block;
  animation: bounceEmoji 2.5s ease-in-out infinite;
}
.smcl-title-emoji:last-child {
  animation-delay: .4s;
}

@keyframes bounceEmoji {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.smcl-age {
  font-size: 1.05em;
  color: var(--ink-mid);
  margin: 0 0 32px;
}
.smcl-age-number {
  font-family: var(--font-display);
  font-size: 1.4em;
  font-weight: 700;
  color: var(--lavender);
}

.smcl-message-content {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  font-size: 1.05em;
  color: var(--ink-mid);
  line-height: 1.9;
  text-align: left;
  margin-top: 24px;
  border: 1.5px solid var(--cream-dark);
  position: relative;
  /* ── Anti-débordement ── */
  overflow-wrap: break-word;
  word-break:    break-word;
  hyphens:       auto;
  overflow:      hidden;    /* sécurité supplémentaire */
  width:         100%;
  box-sizing:    border-box;
}
.smcl-message-content p {
  margin: 0;
  overflow-wrap: break-word;
  word-break:    break-word;
  white-space:   pre-wrap;  /* respecte les sauts de ligne du message */
}
.smcl-message-content::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 4em;
  color: var(--cream-dark);
  position: absolute;
  top: -12px; left: 16px;
  line-height: 1;
}

.smcl-gift-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1.5px dashed var(--cream-dark);
}
.smcl-sender {
  font-size: .9em;
  color: var(--ink-light);
  font-style: italic;
  margin: 0;
}
.smcl-sender-name { color: var(--lavender); font-weight: 600; font-style: normal; }


/* ══════════════════════════════════════════════════════════════
   PAGE AUTH (login.php)
══════════════════════════════════════════════════════════════ */

.smcl-auth-page {
  max-width: 480px;
  margin: 48px auto;
}

.smcl-auth-page > h2 {
  font-family: var(--font-display);
  font-size: 1.9em;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: -.02em;
}

.smcl-auth-logo {
  font-size: 2.4em;
  display: block;
  margin-bottom: 8px;
}

.smcl-auth-subtitle {
  color: var(--ink-light);
  font-size: .95em;
  margin: 0 0 28px;
}

/* Tabs */
.smcl-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--cream-dark);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 28px;
}

.smcl-tab {
  padding: 10px 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .9em;
  font-weight: 600;
  color: var(--ink-light);
  text-decoration: none;
  text-align: center;
  transition: var(--transition);
  letter-spacing: .01em;
}
.smcl-tab.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.smcl-tab:hover:not(.active) { color: var(--ink); }

/* Card auth */
.smcl-auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px 32px;
  border: 1.5px solid var(--cream-dark);
}

/* ══════════════════════════════════════════════════════════════
   PAGE CRÉATION (create.php)
══════════════════════════════════════════════════════════════ */

.smcl-create-page {
  max-width: 680px;
  margin: 40px auto;
}

.smcl-create-page > h2 {
  font-family: var(--font-display);
  font-size: 2em;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: -.02em;
}

.smcl-page-subtitle {
  color: var(--ink-light);
  font-size: .95em;
  margin: 0 0 28px;
}

/* Card formulaire */
.smcl-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px 32px;
  border: 1.5px solid var(--cream-dark);
  margin-bottom: 32px;
}

/* Grille 2 colonnes pour les petits champs */
.smcl-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Formulaires (commun) ────────────────────────────────────── */
.smcl-form { max-width: 100%; }

.smcl-form-group {
  margin-bottom: 20px;
}

.smcl-form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85em;
  font-weight: 600;
  color: var(--ink-mid);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.smcl-label-icon {
  font-size: 1.1em;
  line-height: 1;
}

.smcl-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #E8E0F0;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95em;
  color: var(--ink);
  background: var(--cream);
  transition: var(--transition);
}
.smcl-input:focus {
  outline: none;
  border-color: var(--lavender);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(139,124,246,.12);
}
.smcl-input::placeholder { color: var(--ink-light); }

textarea.smcl-input {
  resize: vertical;
  min-height: 120px;
}

select.smcl-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238B7FA0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

/* ── Boutons ─────────────────────────────────────────────────── */
.smcl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: .95em;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: .01em;
  position: relative;
  overflow: hidden;
}

.smcl-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--transition);
}
.smcl-btn:hover::after { background: rgba(255,255,255,.12); }

.smcl-btn-primary {
  background: linear-gradient(135deg, var(--lavender) 0%, var(--coral) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(139,124,246,.35);
}
.smcl-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(139,124,246,.45);
}
.smcl-btn-primary:active { transform: translateY(0); }

.smcl-btn-ghost {
  background: transparent;
  color: var(--lavender);
  border: 1.5px solid var(--lavender);
}
.smcl-btn-ghost:hover {
  background: var(--lavender-soft);
}

.smcl-btn-full { width: 100%; }

/* ── Alertes ─────────────────────────────────────────────────── */
.smcl-alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: .9em;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.smcl-alert-icon { font-size: 1.2em; flex-shrink: 0; margin-top: 1px; }
.smcl-alert-success {
  background: var(--mint-soft);
  color: #065F46;
  border: 1px solid #6EE7B7;
}
.smcl-alert-error {
  background: #FFF0F0;
  color: #9B1C1C;
  border: 1px solid #FCA5A5;
}

/* ── Bloc succès avec lien ───────────────────────────────────── */
.smcl-success-card {
  background: var(--mint-soft);
  border: 1.5px solid #6EE7B7;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 24px;
}
.smcl-success-card h4 {
  font-family: var(--font-display);
  font-size: 1.1em;
  color: #065F46;
  margin: 0 0 10px;
}
.smcl-link-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  border: 1px solid #A7F3D0;
}
.smcl-link-box a {
  flex: 1;
  font-size: .88em;
  color: var(--lavender);
  text-decoration: none;
  word-break: break-all;
  font-weight: 500;
}
.smcl-link-box a:hover { text-decoration: underline; }

/* ── Bouton copier ───────────────────────────────────────────── */
.smcl-copy-btn {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--lavender);
  background: transparent;
  color: var(--lavender);
  cursor: pointer;
  font-size: .82em;
  font-family: var(--font-body);
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.smcl-copy-btn:hover { background: var(--lavender); color: var(--white); }
.smcl-copy-btn.copied { background: var(--mint); border-color: var(--mint); color: var(--white); }

/* ── Liste des liens ─────────────────────────────────────────── */
.smcl-links-section h3 {
  font-family: var(--font-display);
  font-size: 1.3em;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: -.01em;
}

.smcl-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.smcl-link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  transition: var(--transition);
}
.smcl-link-item:hover {
  border-color: var(--lavender);
  box-shadow: var(--shadow-sm);
  transform: translateX(3px);
}

.smcl-link-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--lavender-soft);
  color: var(--lavender);
  font-family: var(--font-display);
  font-size: 1.1em;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.smcl-link-item.opened .smcl-link-avatar {
  background: var(--mint-soft);
  color: var(--mint);
}

.smcl-link-info { flex: 1; min-width: 0; }
.smcl-link-name {
  font-weight: 600;
  color: var(--ink);
  font-size: .95em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.smcl-link-meta { font-size: .8em; color: var(--ink-light); margin-top: 2px; }

.smcl-link-badge {
  font-size: .75em;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  flex-shrink: 0;
}
.smcl-badge-opened  { background: var(--mint-soft);    color: #065F46; }
.smcl-badge-pending { background: var(--coral-soft);   color: #9B1C1C; }
.smcl-badge-expired { background: var(--cream-dark);   color: var(--ink-light); }

.smcl-link-action {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink-mid);
  text-decoration: none;
  font-size: 1em;
  transition: var(--transition);
}
.smcl-link-action:hover { background: var(--lavender-soft); color: var(--lavender); }

/* ── Déconnexion ─────────────────────────────────────────────── */
.smcl-logout-link {
  color: var(--ink-light);
  font-size: .8em;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}
.smcl-logout-link:hover { color: var(--coral); }

/* ── Page profil ─────────────────────────────────────────────── */
.smcl-profile-page {
  max-width: 680px;
  margin: 40px auto;
}

.smcl-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.smcl-profile-header h2 {
  font-family: var(--font-display);
  font-size: 1.9em;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -.02em;
}

/* Stats rapides */
.smcl-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.smcl-stat-pill {
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
}
.smcl-stat-pill strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8em;
  font-weight: 700;
  color: var(--lavender);
  line-height: 1;
  margin-bottom: 4px;
}
.smcl-stat-pill span {
  font-size: .78em;
  color: var(--ink-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Table stats */
.smcl-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88em;
}
.smcl-stats-table th {
  background: var(--cream);
  color: var(--ink-mid);
  font-size: .78em;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1.5px solid var(--cream-dark);
}
.smcl-stats-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--cream-dark);
  color: var(--ink-mid);
  vertical-align: middle;
}
.smcl-stats-table tr:last-child td { border-bottom: none; }
.smcl-stats-table tr:hover td { background: var(--cream); }

/* ── Erreur ──────────────────────────────────────────────────── */
.smcl-error {
  max-width: 440px;
  margin: 80px auto;
  padding: 40px 32px;
  background: var(--white);
  border-radius: var(--radius-xl);
  color: var(--ink-mid);
  text-align: center;
  border: 1.5px solid var(--cream-dark);
  box-shadow: var(--shadow-md);
  font-family: var(--font-body);
}
.smcl-error-icon { font-size: 3em; display: block; margin-bottom: 12px; }
.smcl-error h3 {
  font-family: var(--font-display);
  font-size: 1.3em;
  color: var(--ink);
  margin: 0 0 8px;
}
.smcl-error p { color: var(--ink-light); font-size: .9em; margin: 0; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .smcl-gift-container { margin: 12px; padding: 32px 20px; }
  .smcl-gift-title     { font-size: 1.9em; }
  .smcl-message-content { padding: 18px 16px; font-size: .97em; }
  .smcl-auth-card,
  .smcl-form-card      { padding: 24px 18px; }
  .smcl-form-row       { grid-template-columns: 1fr; }
  .smcl-create-page,
  .smcl-auth-page,
  .smcl-profile-page   { margin: 16px; }
  .smcl-quick-stats    { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .smcl-stat-pill strong { font-size: 1.4em; }
}

/* ══════════════════════════════════════════════════════════════
   VÉRIFICATION EMAIL — Code à 6 chiffres
══════════════════════════════════════════════════════════════ */
.smcl-verify-header {
  text-align: center;
  margin-bottom: 28px;
}
.smcl-verify-icon {
  font-size: 3em;
  display: block;
  margin-bottom: 10px;
  animation: smclVerifyBounce 2s ease-in-out infinite;
}
@keyframes smclVerifyBounce {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-6px); }
}
.smcl-verify-header h3 {
  font-family: var(--font-display);
  font-size: 1.4em;
  color: var(--ink);
  margin: 0 0 8px;
}
.smcl-verify-hint {
  font-size: .88em;
  color: var(--ink-light);
  margin: 0;
  line-height: 1.5;
}

/* Grille des 6 cases */
.smcl-code-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 0 0 24px;
}
.smcl-code-digit {
  width: 48px;
  height: 60px;
  text-align: center;
  font-size: 1.5em;
  font-weight: 700;
  font-family: 'DM Sans', monospace;
  color: var(--ink);
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  background: var(--cream);
  transition: var(--transition);
  caret-color: transparent;
}
.smcl-code-digit:focus {
  outline: none;
  border-color: var(--lavender);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(139,124,246,.15);
  transform: scale(1.06);
}
.smcl-code-digit.filled {
  border-color: var(--lavender);
  background: var(--lavender-soft);
  color: var(--lavender);
}

@media (max-width: 400px) {
  .smcl-code-digit { width: 38px; height: 50px; font-size: 1.2em; }
  .smcl-code-inputs { gap: 7px; }
}

/* ── Lien texte discret (mot de passe oublié, retour connexion) */
.smcl-link {
  color: var(--lavender);
  text-decoration: none;
  font-size: .88em;
  transition: color .2s;
}
.smcl-link:hover { color: var(--ink); text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════
   Photo d'anniversaire personnalisée
   Cachée au chargement, révélée par JS après ouverture du cadeau
══════════════════════════════════════════════════════════════ */
.smcl-birthday-photo {
  margin: 32px auto 0;
  max-width: 560px;
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition: opacity 0.7s ease, transform 0.7s ease;
  text-align: center;
}
.smcl-birthday-photo.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.smcl-birthday-photo-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(139,124,246,.22), 0 2px 8px rgba(0,0,0,.10);
  display: block;
}
.smcl-birthday-photo-caption {
  margin: 14px 0 0;
  font-size: .92em;
  color: var(--muted, #8B7FA0);
  font-style: italic;
  letter-spacing: .01em;
}

@media (max-width: 600px) {
  .smcl-birthday-photo { max-width: 100%; margin-top: 24px; }
  .smcl-birthday-photo-img { border-radius: 14px; }
}

/* ══════════════════════════════════════════════════════════════
   MUSIC PICKER + PREVIEW PLAYER
══════════════════════════════════════════════════════════════ */

/* Grille de cartes musicales */
.smcl-music-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 480px) {
  .smcl-music-picker { grid-template-columns: 1fr; }
}

/* Carte individuelle */
.smcl-music-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-mid);
  text-align: left;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), transform .12s;
  width: 100%;
}

.smcl-music-card:hover {
  border-color: var(--lavender);
  background: var(--lavender-soft);
  box-shadow: 0 2px 12px rgba(139,124,246,.13);
  transform: translateY(-1px);
}

.smcl-music-card--selected {
  border-color: var(--lavender);
  background: var(--lavender-soft);
  color: var(--ink);
  box-shadow: 0 2px 16px rgba(139,124,246,.18);
}

.smcl-music-card--selected .smcl-music-card__play {
  color: var(--lavender);
}

.smcl-music-card__label {
  flex: 1;
  line-height: 1.35;
}

.smcl-music-card__play {
  font-size: .8rem;
  color: var(--ink-light);
  flex-shrink: 0;
  transition: color var(--transition);
}

/* État "en cours d'écoute" sur la carte */
.smcl-music-card--playing .smcl-music-card__play {
  color: var(--coral);
  animation: smcl-pulse-play .7s ease-in-out infinite alternate;
}

@keyframes smcl-pulse-play {
  from { opacity: 1; transform: scale(1);    }
  to   { opacity: .6; transform: scale(1.25); }
}

/* ── Mini lecteur preview ───────────────────────────────────── */
.smcl-preview-player {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--cream-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 52px;
}

.smcl-preview-player__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.smcl-preview-player__name {
  flex: 1;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smcl-preview-player__controls {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.smcl-preview-btn {
  padding: 5px 12px;
  border: none;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform .1s;
  background: var(--lavender);
  color: #fff;
}

.smcl-preview-btn:hover  { filter: brightness(1.1); transform: translateY(-1px); }
.smcl-preview-btn:active { transform: translateY(0); }

.smcl-preview-btn--stop {
  background: var(--coral);
}

/* Barre de progression */
.smcl-preview-player__bar {
  width: 100%;
  height: 4px;
  background: rgba(139,124,246,.2);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.smcl-preview-player__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--lavender), var(--coral));
  border-radius: 2px;
  transition: width .25s linear;
}

/* ══════════════════════════════════════════════════════════════
   CUSTOM MUSIC UPLOAD ZONE
══════════════════════════════════════════════════════════════ */

.smcl-custom-music-zone {
  margin-top: 12px;
  animation: smcl-fadein .22s ease;
}

@keyframes smcl-fadein {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0);     }
}

/* Masquer l'input natif (inaccessible sur mobile) */
.smcl-custom-music-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Label-bouton cliquable */
.smcl-custom-music-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px dashed var(--lavender);
  border-radius: var(--radius-sm);
  background: var(--lavender-soft);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  user-select: none;
}

.smcl-custom-music-label:hover {
  background: #e4deff;
  border-color: #6c55f0;
  box-shadow: 0 2px 12px rgba(139,124,246,.18);
}

/* État "fichier choisi" */
.smcl-custom-music-label--filled {
  border-style: solid;
  border-color: var(--mint);
  background: var(--mint-soft);
}

.smcl-custom-music-label__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
}

.smcl-custom-music-label__text {
  flex: 1;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smcl-custom-music-label__hint {
  font-size: .75rem;
  color: var(--ink-light);
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .smcl-custom-music-label { flex-wrap: wrap; }
  .smcl-custom-music-label__hint { width: 100%; margin-left: calc(1.4rem + 12px); }
}

/* Message d'erreur client */
.smcl-custom-music-error {
  margin: 8px 0 0;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--coral-soft);
  color: #c0392b;
  font-size: .83rem;
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════
   SOUHAITE TEST — styles spécifiques à la version démo
══════════════════════════════════════════════════════════════ */

/* Bannière "version démo" */
.stst-demo-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  margin-bottom: 20px;
  background: #fff8e6;
  border: 1.5px solid #f5c842;
  border-radius: var(--radius-sm);
  color: #7a5800;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Note d'expiration dans la success card */
.stst-expire-note {
  margin: 4px 0 14px;
  font-size: .85rem;
  color: var(--ink-light);
}
