:root {
    --dsh-bg: #04060a;
    --dsh-bg-card: #0d1018;
    --dsh-bg-hover: #11141d;
    --dsh-border: #1a1f2b;
    --dsh-border-soft: #14181f;
    --dsh-gold: #c9a84c;
    --dsh-gold-soft: #b89740;
    --dsh-gold-faint: rgba(201, 168, 76, 0.15);
    --dsh-text: #e8e4d8;
    --dsh-text-dim: #a8a394;
    --dsh-text-faint: #837d6e;
    --dsh-silver: #c8c4bb;
    --dsh-bronze: #c08758;
}

#ds-tout-page,
#ds-tout-page *,
#ds-salle-overlay,
#ds-salle-overlay *,
.ds-heure-banner,
.ds-heure-banner * {
    color: var(--dsh-text);
}

#ds-tout-page input,
#ds-tout-page textarea,
#ds-tout-page select,
#ds-salle-overlay input,
#ds-salle-overlay textarea,
#ds-salle-overlay select {
    color: var(--dsh-text);
    background: var(--dsh-bg);
    -webkit-text-fill-color: var(--dsh-text);
}

.ds-heure-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: linear-gradient(180deg, rgba(0,0,0,0.96), rgba(0,0,0,0.85));
    border-bottom: 1px solid var(--dsh-gold-soft);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.12);
    padding: 10px 16px;
    display: flex;
    justify-content: center;
}

.ds-h-banner-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--dsh-text);
    font-size: 15px;
}

.ds-h-glyph {
    color: var(--dsh-gold);
    font-size: 20px;
    animation: dsh-pulse 4s ease-in-out infinite;
}

.ds-h-name { color: var(--dsh-gold); font-weight: 400; letter-spacing: 1px; }
.ds-h-state { color: var(--dsh-text-dim); font-style: italic; font-size: 13px; }
.ds-h-time { color: var(--dsh-text); font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.ds-h-pres { color: var(--dsh-text-dim); font-size: 13px; }

.ds-h-enter {
    background: transparent;
    border: 1px solid var(--dsh-gold-soft);
    color: var(--dsh-gold);
    padding: 6px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}
.ds-h-enter:hover {
    background: var(--dsh-gold-faint);
    border-color: var(--dsh-gold);
}

@keyframes dsh-pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

#ds-tout-page {
    background: var(--dsh-bg);
    color: var(--dsh-text);
    min-height: 100vh;
    padding: 30px 20px 60px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    max-width: 520px;
    margin: 0 auto;
}

.ds-tout-header {
    text-align: center;
    margin-bottom: 32px;
}

.ds-tout-glyph {
    font-size: 56px;
    color: var(--dsh-gold);
    animation: dsh-pulse 5s ease-in-out infinite;
    margin-bottom: 8px;
}

.ds-tout-title {
    font-family: 'Cormorant SC', 'Cormorant Garamond', serif;
    font-size: 28px;
    letter-spacing: 8px;
    color: var(--dsh-text);
    text-transform: uppercase;
    padding-left: 8px;
}

.ds-h-fil {
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--dsh-gold);
    text-transform: uppercase;
    margin-bottom: 28px;
    padding: 10px;
    border: 1px solid var(--dsh-border);
    border-radius: 1px;
}
.ds-h-fil-empty {
    color: var(--dsh-text-faint);
}

.ds-h-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.ds-h-card {
    background: var(--dsh-bg-card);
    border: 1px solid var(--dsh-border);
    padding: 22px 20px;
    transition: all 0.4s ease;
    position: relative;
}

.ds-h-card.ds-h-in_progress {
    border-color: var(--dsh-gold);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.06), var(--dsh-bg-card) 70%);
    box-shadow: 0 0 18px rgba(201, 168, 76, 0.18);
}

.ds-h-card.ds-h-opening_soon {
    border-color: var(--dsh-gold-soft);
}

.ds-h-card.ds-h-tenue::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 12px;
    width: 6px;
    height: 6px;
    background: var(--dsh-gold);
    border-radius: 50%;
}

.ds-h-header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 10px;
}

.ds-h-time-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--dsh-text-faint);
    letter-spacing: 1.5px;
}

.ds-h-card-name {
    font-family: 'Cormorant SC', 'Cormorant Garamond', serif;
    font-size: 22px;
    letter-spacing: 6px;
    color: var(--dsh-text);
    text-transform: uppercase;
}

.ds-h-check {
    color: var(--dsh-gold);
    font-size: 14px;
    margin-left: auto;
}

.ds-h-state-line {
    margin: 8px 0;
}
.ds-h-now {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--dsh-gold);
    text-transform: uppercase;
}
.ds-h-past {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--dsh-text-faint);
    text-transform: uppercase;
}
.ds-h-wait {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--dsh-text-dim);
    text-transform: uppercase;
}

.ds-h-counter {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    color: var(--dsh-text-dim);
    font-style: italic;
    margin: 8px 0 16px;
}

.ds-h-action {
    margin-top: 12px;
}

.ds-h-btn-enter {
    background: transparent;
    border: 1px solid var(--dsh-gold-soft);
    color: var(--dsh-gold);
    padding: 10px 18px;
    font-family: 'Cormorant SC', serif;
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    width: 100%;
}
.ds-h-btn-enter:hover {
    background: var(--dsh-gold-faint);
    border-color: var(--dsh-gold);
}

.ds-h-calendar-block {
    margin-top: 36px;
}
.ds-h-cal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--dsh-text-faint);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 16px;
}
.ds-h-cal-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}
.ds-h-cal-day {
    background: var(--dsh-bg-card);
    border: 1px solid var(--dsh-border-soft);
    padding: 8px 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.ds-h-cal-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--dsh-text-faint);
}
.ds-h-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--dsh-text-faint);
}
.ds-h-dot-on {
    background: var(--dsh-gold);
    border-color: var(--dsh-gold);
    box-shadow: 0 0 4px rgba(201, 168, 76, 0.5);
}

.ds-salle-overlay {
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: var(--dsh-bg);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ds-salle {
    max-width: 520px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    color: var(--dsh-text);
    font-family: 'Cormorant Garamond', Georgia, serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ds-salle-head {
    text-align: center;
    margin-bottom: 24px;
}
.ds-salle-glyph {
    font-size: 44px;
    color: var(--dsh-gold);
    animation: dsh-pulse 4s ease-in-out infinite;
}
.ds-salle-name {
    font-family: 'Cormorant SC', serif;
    font-size: 28px;
    letter-spacing: 10px;
    margin-top: 4px;
    padding-left: 10px;
}

.ds-epigraphe {
    text-align: center;
    margin: 16px auto 32px;
    max-width: 420px;
}
.ds-epi-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--dsh-text-faint);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.ds-epi-source {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--dsh-text-faint);
    letter-spacing: 1px;
}
.ds-epi-title {
    font-family: 'Cormorant Garamond', serif !important;
    font-style: italic !important;
    font-size: 28px !important;
    color: var(--dsh-gold) !important;
    letter-spacing: 1px !important;
    text-transform: none !important;
    margin-top: 4px;
}

.ds-defile {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 24px 0;
}
.ds-defile-word {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    color: var(--dsh-text);
    opacity: 0;
    transition: opacity 0.4s ease;
    line-height: 1.4;
    text-align: center;
    max-width: 480px;
}
.ds-defile-word.ds-defile-visible {
    opacity: 1;
}
.ds-defile-verse {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-style: italic;
    color: var(--dsh-text);
    opacity: 0;
    transition: opacity 0.8s ease;
    line-height: 1.6;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px;
}
.ds-defile-verse.ds-defile-visible {
    opacity: 1;
}
.ds-defile-strophe {
    font-size: 24px;
    color: var(--dsh-gold);
}

.ds-presences-zone {
    margin-top: 32px;
    border-top: 1px solid var(--dsh-border-soft);
    padding-top: 16px;
}
.ds-pres-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--dsh-text-faint);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 12px;
}
.ds-pres-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ds-p {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--dsh-bg-card);
    font-size: 14px;
}
.ds-p-is-porteur {
    background: linear-gradient(90deg, rgba(201, 168, 76, 0.08), transparent);
    border-left: 2px solid var(--dsh-gold);
}
.ds-p-mark {
    color: var(--dsh-gold);
    width: 16px;
    text-align: center;
}
.ds-p-name {
    color: var(--dsh-text);
    flex: 1;
}
.ds-p-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--dsh-text-faint);
    letter-spacing: 1px;
}
.ds-p-porteur {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: var(--dsh-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-left: 6px;
    padding: 1px 6px;
    border: 1px solid var(--dsh-gold-soft);
}
.ds-p-me {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: var(--dsh-silver);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-left: 6px;
    padding: 1px 6px;
    border: 1px solid var(--dsh-silver);
    opacity: 0.7;
}
.ds-p-is-me {
    background: rgba(232, 228, 216, 0.04);
}

body.ds-heure-mode #global-nav,
body.ds-heure-mode #plus-menu,
body.ds-heure-mode .ds-toast,
body.ds-heure-mode .toast,
body.ds-heure-mode .notification,
body.ds-heure-mode .push-banner,
body.ds-heure-mode [class*="notif"],
body.ds-heure-mode [class*="toast"],
body.ds-heure-mode .sticky-bar {
    display: none !important;
}
body.ds-heure-mode {
    overflow: hidden !important;
}

.ds-porteur-zone {
    margin-top: 24px;
    padding: 16px;
    background: var(--dsh-bg-card);
    border: 1px solid var(--dsh-gold-soft);
}
.ds-porteur-notice {
    font-style: italic;
    font-size: 14px;
    color: var(--dsh-text-dim);
    line-height: 1.6;
    margin-bottom: 12px;
}
#ds-mot-input {
    width: 100%;
    background: var(--dsh-bg);
    border: 1px solid var(--dsh-border);
    color: var(--dsh-text);
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    padding: 10px 12px;
    min-height: 70px;
    resize: vertical;
    box-sizing: border-box;
}
.ds-mot-count {
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--dsh-text-faint);
    margin-top: 4px;
}

.ds-exit {
    max-width: 480px;
    margin: 0 auto;
    padding: 60px 24px;
    text-align: center;
    color: var(--dsh-text);
    font-family: 'Cormorant Garamond', serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ds-exit-glyph {
    font-size: 44px;
    color: var(--dsh-gold);
    margin-bottom: 32px;
    animation: dsh-pulse 5s ease-in-out infinite;
}
.ds-exit-mark {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--dsh-gold);
    text-transform: uppercase;
    margin-bottom: 14px;
}
.ds-exit-mark::before, .ds-exit-mark::after {
    content: '✦ ';
    color: var(--dsh-gold-soft);
    font-size: 8px;
}
.ds-exit-quote {
    font-style: italic;
    font-size: 22px;
    line-height: 1.5;
    color: var(--dsh-gold);
    margin-bottom: 10px;
}
.ds-exit-sig {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--dsh-gold-soft);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
}
.ds-exit-sep {
    color: var(--dsh-gold-soft);
    font-size: 16px;
    margin: 8px 0 30px;
}
.ds-exit-mark-soft {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--dsh-text-dim);
    text-transform: uppercase;
    margin-bottom: 14px;
}
.ds-exit-quote-soft {
    font-style: italic;
    font-size: 19px;
    line-height: 1.5;
    color: var(--dsh-text);
    margin-bottom: 8px;
}
.ds-exit-sig-soft {
    font-size: 13px;
    color: var(--dsh-text-dim);
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}
.ds-exit-silence {
    font-style: italic;
    font-size: 16px;
    color: var(--dsh-text-dim);
    line-height: 1.7;
    margin-bottom: 30px;
}
.ds-exit-mot-error {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--dsh-bronze);
    background: rgba(192, 135, 88, 0.08);
    border: 1px solid var(--dsh-bronze);
    padding: 10px 14px;
    margin: 16px auto;
    max-width: 380px;
    letter-spacing: 0.5px;
}
.ds-exit-final {
    font-style: italic;
    font-size: 16px;
    color: var(--dsh-gold);
    margin: 24px 0 36px;
    letter-spacing: 0.5px;
}
.ds-exit-close {
    background: transparent;
    border: 1px solid var(--dsh-border);
    color: var(--dsh-text-faint);
    padding: 12px 28px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
}
.ds-exit-close:hover {
    color: var(--dsh-gold);
    border-color: var(--dsh-gold-soft);
}

@media (max-width: 480px) {
    .ds-tout-title { font-size: 22px; letter-spacing: 6px; }
    .ds-h-card { padding: 18px 16px; }
    .ds-h-card-name { font-size: 19px; letter-spacing: 4px; }
    .ds-defile-word { font-size: 28px; }
    .ds-salle-name { font-size: 22px; letter-spacing: 7px; }
}
