/* ============================================================
   ESPACE DIGITAL — codes de YouTube et d'Instagram, habillés YOZENGA
   bannière + avatar centré, onglets, vidéo à la une, grille, lecteur en fenêtre
   ============================================================ */
.theme-digital {
  --dg-grad: linear-gradient(45deg, #e0a45e 0%, #c17b5a 50%, #c98aa0 100%);
  --dg-line: #e8ddd2;
  --dg-grey: #7a6d64;
  --st-blush: #f7f2ec;
  --st-blush-mid: #e6d9cc;
  --st-sage: #c17b5a;
  --st-sage-deep: #a35f42;
  --st-sage-pale: #faf6f1;
}
.theme-digital .site-header { border-bottom-color: var(--dg-line); }
.theme-digital .header-row-bottom { border-top-color: var(--dg-line); }

/* Anneau dégradé (façon « story ») */
.dg-ring { display: inline-flex; padding: 4px; border-radius: 50%; background: var(--dg-grad); flex: none; }
.dg-ring img { display: block; width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 4px solid #fffdfb; }
.dg-ring-sm { padding: 2px; }
.dg-ring-sm img { width: 36px; height: 36px; border-width: 2px; }

/* En-tête de chaîne */
.dg-banner { max-width: 1120px; margin: 24px auto 0; padding: 0 28px; }
.dg-banner img { width: 100%; height: auto; aspect-ratio: 2400 / 369; object-fit: cover; border-radius: 16px; display: block; }
.dg-id { text-align: center; margin-top: -66px; position: relative; }
.dg-name { font-size: clamp(26px, 3.4vw, 36px); margin: 16px 0 4px; }
.dg-handle { margin: 0 0 12px; font-size: 14px; color: var(--dg-grey); }
.dg-bio { margin: 0 auto 22px; max-width: 540px; font-size: 16px; color: var(--st-ink-soft); }
.dg-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Onglets */
.dg-tabs { display: flex; justify-content: center; gap: 8px; margin-top: 34px; border-bottom: 1px solid var(--dg-line); }
.dg-tab {
  background: none; border: 0; cursor: pointer; padding: 14px 22px 12px; margin-bottom: -1px;
  font-family: var(--st-caps); font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dg-grey);
  border-bottom: 3px solid transparent; transition: color .2s ease, border-color .2s ease;
}
.dg-tab:hover { color: var(--st-ink); }
.dg-tab[aria-selected="true"] { color: var(--st-ink); border-bottom-color: var(--st-terracotta); }
.dg-panel { padding: 44px 0 90px; }
.dg-panel[hidden] { display: none; }

/* Vidéo à la une */
.dg-featured { display: grid; grid-template-columns: 1.55fr 1fr; gap: 40px; align-items: center; }
.dg-thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: var(--st-blush); aspect-ratio: 16 / 9; }
.dg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.dg-thumb:hover img, .dg-thumb:focus-visible img { transform: scale(1.03); }
.dg-thumb:focus-visible { outline: 3px solid var(--st-terracotta); outline-offset: 3px; }
.dg-play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%;
  background: rgba(255, 253, 251, 0.94); box-shadow: 0 8px 24px rgba(61, 51, 46, 0.28); transition: transform .25s ease, background .25s ease;
}
.dg-play::after { content: ''; position: absolute; left: 27px; top: 21px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--st-terracotta); }
.dg-thumb:hover .dg-play { transform: scale(1.08); background: #fff; }
.dg-featured h2 { font-family: var(--st-body); text-transform: none; letter-spacing: 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.25; margin-bottom: 10px; }
.dg-meta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--dg-grey); margin-bottom: 14px; }
.dg-featured p { color: var(--st-ink-soft); font-size: 16.5px; }

/* Grille (prête pour les prochaines vidéos et les reels) */
.dg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 22px; margin-top: 56px; }
.dg-card h3 { font-family: var(--st-body); text-transform: none; letter-spacing: 0; font-size: 15.5px; font-weight: 700; margin: 12px 0 2px; }
.dg-card p { margin: 0; font-size: 13.5px; color: var(--dg-grey); }
.dg-grid-reels { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dg-reel .dg-thumb { aspect-ratio: 9 / 16; border-radius: 12px; }
.dg-section-title { margin: 56px 0 0; font-family: var(--st-caps); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--st-ink); }

/* À propos */
.dg-about { max-width: 700px; margin: 0 auto; }
.dg-about p { font-size: 17px; color: var(--st-ink-soft); }
.dg-about .dg-actions { justify-content: flex-start; margin-top: 26px; }

/* Lecteur en fenêtre */
.dg-modal { border: 0; padding: 0; background: transparent; max-width: min(960px, 94vw); width: 100%; overflow: visible; }
.dg-modal::backdrop { background: rgba(35, 27, 23, 0.82); }
.dg-modal-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.dg-modal.is-vertical { max-width: min(420px, 92vw); }
.dg-modal.is-vertical .dg-modal-frame { aspect-ratio: 9 / 16; max-height: 86vh; margin: 0 auto; }
.dg-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dg-close {
  position: absolute; right: 0; top: -46px; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 253, 251, 0.95); color: var(--st-ink); font-size: 22px; line-height: 1;
}
.dg-close:hover { background: #fff; }

@media (max-width: 860px) {
  .dg-featured { grid-template-columns: 1fr; gap: 22px; }
  .dg-grid { grid-template-columns: 1fr 1fr; }
  .dg-grid-reels { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .dg-banner { padding: 0 14px; margin-top: 14px; }
  .dg-ring img { width: 104px; height: 104px; }
  .dg-id { margin-top: -52px; }
  .dg-grid { grid-template-columns: 1fr; }
  .dg-panel { padding: 30px 0 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .dg-thumb img, .dg-play { transition: none; }
}
@media (max-width: 560px) { .dg-banner img { aspect-ratio: 2.2 / 1; } }

/* ============================================================
   Version « live » : réseaux discrets, carte YOZENGA LIVE, bibliothèque
   ============================================================ */
.theme-digital { --dg-grad-text: linear-gradient(90deg, #c17b5a 0%, #b5567a 100%); }
.dg-bio { margin-bottom: 18px; }

/* Réseaux : petits ronds discrets */
.dg-social { display: flex; gap: 10px; justify-content: center; }
.dg-social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--st-ink); color: var(--st-ink); transition: background .25s ease, color .25s ease, transform .25s ease;
}
.dg-social a:hover, .dg-social a:focus-visible { background: var(--st-ink); color: #fffdfb; transform: translateY(-2px); }

/* Carte LIVE */
.dg-live-wrap { padding: 54px 0 16px; }
.dg-live {
  position: relative; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 48px; align-items: center;
  padding: 46px 52px; border-radius: 28px; overflow: hidden;
  border: 2px solid transparent;
  background: linear-gradient(#fffdfb, #fffdfb) padding-box, var(--dg-grad) border-box;
  box-shadow: 0 24px 60px rgba(193, 123, 90, 0.14);
}
.dg-live::before {
  content: ''; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(224, 164, 94, 0.24), rgba(201, 138, 160, 0.10) 58%, transparent 70%);
}
.dg-live-text, .dg-live-visual { position: relative; }
.dg-onair {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 30px; background: #fff; border: 1px solid var(--dg-line);
  font-family: var(--st-caps); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--st-ink);
}
.dg-onair i { width: 9px; height: 9px; border-radius: 50%; background: #e0503a; animation: dg-pulse 1.8s ease-out infinite; }
@keyframes dg-pulse {
  0% { box-shadow: 0 0 0 0 rgba(224, 80, 58, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(224, 80, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 80, 58, 0); }
}
.dg-live-title { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; margin: 18px 0 14px; letter-spacing: 2px; }
.dg-live-title span { background: var(--dg-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dg-live-lede { font-size: clamp(19px, 2vw, 23px); line-height: 1.45; color: var(--st-ink); margin: 0 0 10px; }
.dg-live-lede strong { font-weight: 700; }
.dg-live-sub { color: var(--st-ink-soft); font-size: 16.5px; max-width: 520px; }
.dg-chips { list-style: none; padding: 0; margin: 20px 0 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.dg-chips li { padding: 8px 16px; border-radius: 30px; background: #f7efe6; border: 1px solid var(--dg-line); font-size: 13.5px; color: var(--st-ink); }
.dg-live-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dg-live-note { font-size: 13px; color: var(--dg-grey); max-width: 270px; line-height: 1.45; }

.dg-live-visual { justify-self: center; width: 100%; max-width: 330px; }
.dg-arch { aspect-ratio: 4 / 5; border-radius: 999px 999px 22px 22px; overflow: hidden; background: #efe3d6; }
.dg-arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; display: block; }
.dg-sticker {
  position: absolute; right: -16px; bottom: 28px; width: 104px; height: 104px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, #c17b5a, #b5567a); transform: rotate(-9deg); box-shadow: 0 12px 26px rgba(181, 86, 122, 0.30);
  transition: transform .4s cubic-bezier(.3, 1.6, .5, 1);
}
.dg-sticker strong { font-family: var(--st-caps); font-size: 26px; line-height: 1; }
.dg-sticker span { font-size: 12px; letter-spacing: .5px; margin-top: 3px; }
.dg-live:hover .dg-sticker { transform: rotate(5deg) scale(1.07); }

/* Bibliothèque */
.dg-library { padding: 76px 0 50px; }
.dg-quotidien { background: var(--dg-blush, #faf1e9); padding-bottom: 70px; }
.dg-h2 { font-size: clamp(26px, 3vw, 34px); text-align: center; margin-bottom: 10px; }
.dg-lede { text-align: center; color: var(--st-ink-soft); font-size: 17px; max-width: 560px; margin: 0 auto 26px; }
.dg-rubriques { list-style: none; padding: 0; margin: 0 0 46px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.dg-rubriques li {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 40px; border: 1.5px dashed var(--st-blush-mid); color: var(--dg-grey);
  font-family: var(--st-caps); font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
}
.dg-rubriques li.is-on { border: 1.5px solid var(--st-ink); color: var(--st-ink); background: #fff; }
.dg-rubriques em { font-style: normal; font-family: var(--st-body); text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; color: #fff; background: var(--st-terracotta); padding: 2px 10px; border-radius: 20px; }
.dg-dot { width: 9px; height: 9px; border-radius: 50%; background: #dccfc3; }
.is-on .dg-dot { background: var(--dg-grad); }
.dg-featured h3 { font-family: var(--st-body); text-transform: none; letter-spacing: 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.25; margin-bottom: 10px; }

/* À propos */
.dg-about-band { background: #f7f2ec; padding: 64px 0; }
.dg-about-band .dg-about { text-align: center; }
.dg-about-band .dg-about .dg-actions { justify-content: center; }

@media (max-width: 860px) {
  .dg-live { grid-template-columns: 1fr; gap: 34px; padding: 34px 28px; }
  .dg-live-visual { max-width: 280px; }
  .dg-sticker { right: -10px; }
}
@media (max-width: 560px) {
  .dg-live-wrap { padding-top: 34px; }
  .dg-live { padding: 30px 22px; border-radius: 22px; }
  .dg-live-cta { flex-direction: column; align-items: flex-start; }
  .dg-library { padding: 54px 0 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .dg-onair i { animation: none; }
  .dg-sticker { transition: none; }
  .dg-live:hover .dg-sticker { transform: rotate(-9deg); }
}

/* ============================================================
   Ajustements : en-tête plus compact, badge dynamique, ligne « prochainement »
   ============================================================ */
.dg-banner { margin-top: 18px; }
.dg-id { margin-top: -56px; }
.dg-ring img { width: 112px; height: 112px; }
.dg-name { font-size: clamp(24px, 3vw, 32px); margin: 12px 0 2px; }
.dg-handle-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 8px; }
.dg-handle-row .dg-handle { margin: 0; }
.dg-social a { width: 34px; height: 34px; }
.dg-social a svg { width: 17px; height: 17px; }
.dg-bio { margin: 0 auto; max-width: 720px; font-size: 16px; }
.dg-live-wrap { padding-top: 30px; }

/* Badge : calme par défaut, rouge qui pulse seulement pendant le direct */
.dg-onair i { background: var(--st-terracotta); animation: none; }
.dg-onair.is-live i { background: #e0503a; animation: dg-pulse 1.8s ease-out infinite; }

/* Annonce discrète */
.dg-soon { text-align: center; margin: 44px 0 0; font-size: 13.5px; letter-spacing: .3px; color: var(--dg-grey); }

@media (max-width: 560px) {
  .dg-ring img { width: 100px; height: 100px; }
  .dg-id { margin-top: -50px; }
  .dg-handle-row { flex-wrap: wrap; }
  .dg-live-wrap { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) { .dg-onair.is-live i { animation: none; } }
.dg-onair { text-transform: none; letter-spacing: .2px; font-family: var(--st-body); font-size: 14px; font-weight: 600; }

/* Page d'une seule vue : on gagne de la hauteur pour que la carte LIVE soit visible d'emblée */
.theme-digital .site-header .container.header-row-bottom { display: none; }
.dg-banner { margin-top: 16px; }
.dg-id { margin-top: -40px; }
.dg-ring img { width: 96px; height: 96px; }
.dg-name { margin: 10px 0 2px; }
.dg-live-wrap { padding-top: 22px; }
.dg-live { padding-top: 38px; padding-bottom: 38px; }
.dg-live-title { margin-top: 14px; }
@media (max-width: 560px) {
  .dg-ring img { width: 92px; height: 92px; }
  .dg-id { margin-top: -46px; }
  .dg-live { padding-top: 28px; padding-bottom: 28px; }
}
.dg-ring.dg-ring-sm img { width: 36px; height: 36px; border-width: 2px; }

/* Sans rond de profil : bannière 5:1, titre juste dessous, pastille de prix en haut de l'arche */
.dg-banner img { aspect-ratio: 2400 / 480; }
.dg-id { margin-top: 0; padding-top: 22px; }
.dg-name { margin: 0 0 4px; }
.dg-sticker { bottom: auto; top: 44px; }
@media (max-width: 560px) {
  .dg-id { padding-top: 18px; }
  .dg-banner img { aspect-ratio: 2.2 / 1; }
}
