:root {
  --col-ambre:   #D88A4A;
  --col-terre:   #A85532;
  --col-bois:    #713D35;
  --col-brun:    #3E2C3A;
  --col-creme:   #F3DCC4;

  --text-main:   #FDF7F2;
  --text-soft:   #F3DCC4;
  --panel-bg:    rgba(62, 44, 58, 0.82);
}

/* GLOBAL */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #000;
  color: var(--text-main);
  overflow: hidden;
}

/* LAYOUT PRINCIPAL */

.live-layout {
  position: relative;
  width: 100vw;
  height: 100vh;
}

/* FOND MONTAGNES (STYLE RYON ZÉPHYR / AUTOMNE) */

.background-layer {
  position: absolute;
  inset: 0;
  background-image:url("assets/ryon-social-creation-live-2025-12-03-live-ulule-4.jpg");
  background-size:cover;
  background-position:center;
  z-index: 0;
}

/* CONTENU */

.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  height: 100%;
  padding: 40px 40px 30px;
}

/* COLONNES */

.column {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.column-left {
  width: 27%;
  text-align:center;
}

.column-center {
  width: 76%;
  opacity:0;
}

.column-right {
  width: 24%;
}

/* PANELS GÉNÉRIQUES */

.column-left .panel {text-align:center;}

.panel {
  background: var(--panel-bg);
  /*border-radius: 20px;*/
  padding: 18px 20px;
  /*box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);*/
  backdrop-filter: blur(18px);
  border: 1px solid rgba(243, 220, 196, 0.18);
  float:left;
}

.panel h1,
.panel h2 {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.panel h1 {
  font-size: 1.4rem;
}

.panel h2 {
  font-size: 1rem;
  margin-bottom: 8px;
}

/* TEXTE GÉNÉRAL */

.small-note {
  font-size: 0.75rem;
  color: var(--text-soft);
  opacity: 0.8;
  margin-top: 4px;
}

/* COMPTEURS */

.panel-countdown {
  min-height: 120px;
  width:auto;
  text-align:center;
}

.panel-live
{
  display:flex;
  min-height:100%;
  flex-direction: column;
  justify-content: center;
}

.countdown-time {
  margin-top: 6px;
  font-size: 2.2rem;
  font-weight: 700;
}

/* NOW PLAYING */

.panel-now-playing {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.now-playing-title {
  text-align: center;
  font-size: 1.5rem;
}

.now-playing-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.now-playing-info {
  margin-top: 8px;
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Pochette */

.album-cover-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 18px;
  border: 2px solid rgba(243, 220, 196, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  text-transform: uppercase;
  background: radial-gradient(circle at 30% 20%, rgba(248, 203, 156, 0.8), transparent 60%),
              linear-gradient(135deg, rgba(168, 85, 50, 0.9), rgba(113, 61, 53, 0.95));
}

.track-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.track-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.track-name {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Barre de progression morceau */

.progress-wrapper {
  margin-top: 6px;
}

.progress-bar {
  position: relative;
  height: 8px;
  border-radius: 0px;
  background: rgba(243, 220, 196, 0.16);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 20%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--col-ambre), var(--col-terre));
  transition: width 0.3s linear;
}

.progress-times {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  color: var(--text-soft);
}

/* Timeline des albums */

.timeline-albums {
  margin-top: 16px;
}

.timeline-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.timeline-bar {
  position: relative;
  height: 6px;
  border-radius: 0px;
  background: rgba(243, 220, 196, 0.18);
  overflow: hidden;
}

.timeline-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--col-ambre), var(--col-bois));
  transition: width 0.3s linear;
}

.timeline-labels {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ULULE – GAUGE AMÉLIORÉE */

.panel-ulule {
  text-align: center;
}
/* ULULE – GAUGE */

.panel-ulule {
  text-align: center;
}

.ulule-gauge-wrapper {
  margin-top: 8px;
  display: flex;
  justify-content: center;
}

.ulule-gauge-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background:
    conic-gradient(
      var(--gauge-color, var(--col-ambre)) 0deg calc(var(--ratio, 0) * 1deg),
      rgba(243, 220, 196, 0.15) 0
    );
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s ease-out, box-shadow 0.4s ease-out, transform 0.3s ease-out;
  position: relative;
}

/* Glow après 100% */
.ulule-gauge-circle.glow {
  box-shadow:
    0 0 14px var(--gauge-color, var(--col-ambre)),
    0 0 26px var(--gauge-color, var(--col-ambre));
}

/* Pulse lorsqu’on dépasse un palier */
.ulule-gauge-circle.pulse {
  animation: gaugePulse 0.9s ease-out;
}

@keyframes gaugePulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.ulule-gauge-inner {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(42, 24, 30, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.55);
}

.ulule-percent {
  font-size: 2rem;
  font-weight: 700;
}


.ulule-goal-text {
  font-size: 1.4rem;
  color: var(--text-soft);
}

.ulule-goal-text:first-child {
  margin-bottom: 10px;
}


.ulule-goal-text {
  /*margin-top: 8px;*/
  font-size: 1.5rem;
  color: var(--text-soft);
}

.ulule-goal-text:first-child {margin-bottom:10px;}

/* Stats montant + soutiens */

.ulule-stats {
  /*margin-top: 10px;*/
  font-size: 1.4rem;
  color: var(--text-soft);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ulule-stat-line span {
  font-weight: 600;
  color: var(--text-main);
}

/* SUPPORTERS */

.panel-supporters {
  flex: 1;
  min-height: 150px;
}

.supporters-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
}

.supporter-card {
  padding:10px;
  border-radius: 12px;
  background: rgba(248, 203, 156, 0.06);
}

.supporter-name {
  font-size: 1.5rem;
  font-weight: 600;
}

.supporter-pack {
  font-size: 1.2rem;
  color: var(--text-soft);
}

.supporter-thanks {
  font-size: 0.75rem;
  margin-top: 2px;
}

/* QR */

.panel-qr {
  text-align: center;
}

.qr-label {
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.qr-placeholder {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

/* PETIT RESPONSIVE (au cas où) */

@media (max-width: 1400px) {
  .content {
    padding: 24px;
  }
  .column-left,
  .column-right {
    width: 26%;
  }
  .column-center {
    width: 48%;
  }
}
