/* ==========================================================================
   Affichage Salle de Réunion - Design Spécial Tablettes 11" Paysage
   Style : Dark Luxury / Glassmorphism / Typographie Haute Définition
   ========================================================================== */

:root {
    --bg-base: #0e0a08;
    --bg-surface: rgba(28, 18, 12, 0.65);
    --bg-surface-glow: rgba(48, 28, 14, 0.45);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(232, 146, 26, 0.35);

    --text-primary: #ffffff;
    --text-secondary: #c4a98a;
    --text-muted: #8a6d58;
    --text-highlight: #E8921A;

    --accent-orange: #E8921A;
    --accent-purple: #8B2A6E;
    --accent-orange-glow: rgba(232, 146, 26, 0.25);

    /* Rétrocompatibilité avec les références existantes */
    --accent-blue: #E8921A;
    --accent-indigo: #8B2A6E;
    --accent-emerald: #E8921A;

    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-clock: 'Outfit', 'Space Grotesk', system-ui, sans-serif;
}

/* Reset & Plein écran */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-main);
    user-select: none;
    -webkit-user-select: none;
}

/* Arrière-plan avec dégradé subtil et orbes lumineux immersifs */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    animation: floatGlow 18s ease-in-out infinite alternate;
}

.glow-orb-1 {
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, #8B2A6E, transparent 65%);
    top: -15%;
    left: -10%;
}

.glow-orb-2 {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, #E8921A, transparent 65%);
    bottom: -15%;
    right: -10%;
    opacity: 0.35;
    animation-delay: -6s;
}

.glow-orb-3 {
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, #8B2A6E, transparent 65%);
    top: 30%;
    right: 25%;
    opacity: 0.28;
    animation-delay: -11s;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(3vw, 4vh) scale(1.06);
    }

    100% {
        transform: translate(-3vw, -2vh) scale(0.96);
    }
}

/* Grille subtile en surimpression façon cockpit technologique */
.background-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 20%, transparent 80%);
}

/* Structure principale de la tablette */
.display-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    padding: clamp(1.2rem, 3.5vw, 3rem) clamp(1.5rem, 5vw, 4.5rem);
}

/* -------------------------------------------------------------
   EN-TÊTE (HEADER)
   ------------------------------------------------------------- */
.display-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.company-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1.2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.company-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}

.company-name {
    font-size: clamp(1.1rem, 1.7vw, 1.5rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

/* -------------------------------------------------------------
   CORPS CENTRAL (MAIN) : NOM DE LA SALLE
   ------------------------------------------------------------- */
.display-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 1rem 0;
}

.room-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: clamp(1.5rem, 2.6vw, 2.3rem);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
    color: var(--text-highlight);
    margin-bottom: 0.6rem;
    padding-left: 0.2rem;
}

.room-title-container {
    width: 100%;
}

/* Nom de la salle en très grand */
.room-name {
    font-size: clamp(5.5rem, 13vw, 11.5rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: #ffffff;
    word-break: break-word;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.room-meta-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.meta-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.15rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    font-size: clamp(1.1rem, 1.6vw, 1.45rem);
    color: var(--text-secondary);
}

.meta-chip svg {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

/* -------------------------------------------------------------
   PIED DE PAGE (FOOTER) : HORLOGE GÉANTE & DATE
   ------------------------------------------------------------- */
.display-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

/* Bloc Date */
.date-section {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.date-day-name {
    font-size: clamp(1.85rem, 3.4vw, 3.2rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.date-full {
    font-size: clamp(1.2rem, 1.9vw, 1.65rem);
    color: var(--text-secondary);
    font-weight: 500;
}

/* Bloc Horloge (HH:mm uniquement) */
.clock-section {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    font-family: var(--font-clock);
    font-feature-settings: "tnum" 1;
    font-variant-numeric: tabular-nums;
}

.clock-digits {
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    font-weight: 600;
    line-height: 0.85;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 0 35px rgba(255, 255, 255, 0.18);
}

.clock-separator {
    font-size: clamp(2.4rem, 4.8vw, 4.2rem);
    font-weight: 500;
    line-height: 0.85;
    color: var(--accent-blue);
    padding: 0 0.06em;
    animation: blinkSeparator 2s infinite ease-in-out;
}

@keyframes blinkSeparator {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.25;
    }
}



/* -------------------------------------------------------------
   OPTIMISATIONS RESPONSIVES TABLETTE PAYSAGE (Landscape)
   ------------------------------------------------------------- */
@media screen and (orientation: landscape) and (max-height: 800px) {
    .display-wrapper {
        padding: 1.2rem 2.8rem;
    }

    .room-name {
        font-size: clamp(4.8rem, 11vw, 9rem);
    }

    .clock-digits {
        font-size: clamp(2.5rem, 4.6vw, 4rem);
    }

    .clock-separator {
        font-size: clamp(2.1rem, 4.1vw, 3.5rem);
    }
}

/* Mode écran ultra-large ou tablettes 12-14" */
@media screen and (min-width: 2100px) {
    .room-name {
        font-size: 11.5rem;
    }

    .clock-digits {
        font-size: 4.5rem;
    }
}