/* --- SALLE REUNION CSS --- */

    /* =========================================
       VARIABLES & BASE (Thème Méta-UVCI)
       ========================================= */
    :root {
        --uvci-green: #18a855;
        --uvci-purple: #8e1582;
        --uvci-purple-light: #a855f7;
        --uvci-pink: #d946ef;
        --bg-dark: #07030a;
        --glass-bg: rgba(255, 255, 255, 0.03);
        --glass-border: rgba(255, 255, 255, 0.08);
    }

    .main-reunion {
        background-color: var(--bg-dark);
        color: #fff;
        font-family: 'Figtree', 'DM Sans', sans-serif;
        min-height: 100vh;
        overflow: hidden;
        position: relative;
    }

    .container-custom {
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 32px;
    }

    /* =========================================
       ORBES LUMINEUSES (Fond)
       ========================================= */
    .reunion-bg-orbs {
        position: absolute;
        inset: 0;
        z-index: 0;
        overflow: hidden;
        pointer-events: none;
    }
    .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.4; }
    .orb-purple { width: 500px; height: 500px; background: var(--uvci-purple); top: -10%; left: -5%; }
    .orb-green { width: 450px; height: 450px; background: var(--uvci-green); bottom: 10%; right: -10%; opacity: 0.2; }

    /* Grille 3D subtile */
    .main-reunion::after {
        content: ''; position: absolute; inset: -50% -50%;
        background-image: linear-gradient(rgba(142,21,130,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(142,21,130,0.08) 1px, transparent 1px);
        background-size: 40px 40px; transform: perspective(1000px) rotateX(70deg) scale(1.5) translateY(-200px);
        transform-origin: top center; z-index: 0; pointer-events: none; opacity: 0.5;
    }

    /* =========================================
       HEADER & BREADCRUMB
       ========================================= */
    .page-header-reunion {
        position: relative;
        z-index: 2;
        padding: 140px 0 40px;
        text-align: center;
    }

    .custom-breadcrumb {
        margin-bottom: 25px;
        display: inline-block;
        background: var(--glass-bg);
        padding: 8px 20px;
        border-radius: 50px;
        border: 1px solid var(--glass-border);
        backdrop-filter: blur(10px);
    }
    .custom-breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; transition: color 0.3s; }
    .custom-breadcrumb a:hover { color: #fff; }
    .custom-breadcrumb .active { color: var(--uvci-green); font-weight: 600; font-size: 0.85rem;}
    .custom-breadcrumb .separator { color: rgba(255,255,255,0.2); margin: 0 8px; font-size: 0.8rem; }

    .header-title {
        font-family: 'Syne', sans-serif;
        font-size: 3.5rem;
        font-weight: 800;
        margin-bottom: 15px;
        letter-spacing: -1px;
    }
    .header-title span {
        background: linear-gradient(90deg, var(--uvci-pink), var(--uvci-purple-light));
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .header-desc {
        color: rgba(255,255,255,0.6);
        font-size: 1.15rem;
        max-width: 600px;
        margin: 0 auto;
        line-height: 1.6;
    }

    /* =========================================
       CONTENEUR WEBGL (L'Application VR)
       ========================================= */
    .vr-app-section {
        position: relative;
        z-index: 2;
        padding-bottom: 120px;
    }

    .vr-glass-wrapper {
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 24px;
        padding: 12px;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 30px 60px rgba(142, 21, 130, 0.15), inset 0 0 20px rgba(255,255,255,0.02);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .vr-glass-wrapper:hover {
        box-shadow: 0 40px 80px rgba(24, 168, 85, 0.15), inset 0 0 20px rgba(255,255,255,0.05);
    }

    /* Fausse barre de navigation pour le style "Application" */
    .app-top-bar {
        display: flex;
        align-items: center;
        padding: 10px 15px 15px;
        gap: 8px;
    }
    .app-dot { width: 12px; height: 12px; border-radius: 50%; }
    .dot-red { background: #ff5f56; box-shadow: 0 0 8px rgba(255, 95, 86, 0.5); }
    .dot-yellow { background: #ffbd2e; box-shadow: 0 0 8px rgba(255, 189, 46, 0.5); }
    .dot-green { background: #27c93f; box-shadow: 0 0 8px rgba(39, 201, 63, 0.5); }
    .app-title-mini { margin-left: auto; font-size: 0.75rem; color: rgba(255,255,255,0.3); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }

    .vr-iframe-container {
        border-radius: 16px;
        overflow: hidden;
        background: #000;
        width: 100%;
        height: 700px;
        position: relative;
    }
    
    .vr-iframe-container iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

    /* =========================================
       RESPONSIVE
       ========================================= */
    @media (max-width: 991px) {
        .header-title { font-size: 2.5rem; }
        .vr-iframe-container { height: 500px; }
        .page-header-reunion { padding: 100px 0 30px; }
    }
    @media (max-width: 576px) {
        .header-title { font-size: 2rem; }
        .vr-iframe-container { height: 400px; }
    }

    /* =========================================
       SCALABILITE LISTE REUNIONS
       ========================================= */
    .salle-reunion-page .meets-grid-section {
        background-color: #07030a;
        padding: 84px 0;
        position: relative;
    }

    .salle-reunion-page .btn-create-meet-modal {
        min-width: 260px;
    }

    .salle-reunion-page .btn-create-meet-modal:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .salle-reunion-page .meets-grid-toolbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
    }

    .salle-reunion-page .meets-grid-count {
        margin: 0;
        color: #ffffff;
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    .salle-reunion-page .meets-grid-hint {
        margin: 0;
        color: rgba(255,255,255,0.55);
        font-size: 0.92rem;
    }

    .salle-reunion-page .meets-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
        gap: 18px;
    }

    .salle-reunion-page .meet-card {
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.05);
        border-radius: 16px;
        padding: 18px;
        position: relative;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.28s;
        display: flex;
        height: 282px;
    }

    .salle-reunion-page .meet-card:hover {
        transform: translateY(-6px);
        background: rgba(255,255,255,0.06);
        border-color: rgba(217, 70, 239, 0.4);
        box-shadow: 0 16px 28px rgba(0,0,0,0.35), 0 0 20px rgba(142,21,130,0.18);
    }

    .salle-reunion-page .meet-card--live {
        border-color: rgba(24,168,85,0.42);
        background: linear-gradient(180deg, rgba(22,163,74,0.14), rgba(255,255,255,0.03));
        box-shadow: 0 0 0 1px rgba(16,185,129,0.18), 0 14px 26px rgba(0,0,0,0.32);
    }

    .salle-reunion-page .meet-card--upcoming {
        border-color: rgba(14,165,233,0.4);
        background: linear-gradient(180deg, rgba(2,132,199,0.13), rgba(255,255,255,0.03));
        box-shadow: 0 0 0 1px rgba(56,189,248,0.16), 0 14px 26px rgba(0,0,0,0.32);
    }

    .salle-reunion-page .meet-card--ended {
        border-color: rgba(239,68,68,0.36);
        background: linear-gradient(180deg, rgba(239,68,68,0.1), rgba(255,255,255,0.02));
        box-shadow: 0 0 0 1px rgba(248,113,113,0.12), 0 14px 26px rgba(0,0,0,0.32);
    }

    .salle-reunion-page .meet-card--live:hover {
        border-color: rgba(34,197,94,0.62);
        box-shadow: 0 0 0 1px rgba(34,197,94,0.26), 0 18px 32px rgba(0,0,0,0.36), 0 0 22px rgba(34,197,94,0.22);
    }

    .salle-reunion-page .meet-card--upcoming:hover {
        border-color: rgba(14,165,233,0.62);
        box-shadow: 0 0 0 1px rgba(56,189,248,0.26), 0 18px 32px rgba(0,0,0,0.36), 0 0 22px rgba(14,165,233,0.22);
    }

    .salle-reunion-page .meet-card--ended:hover {
        border-color: rgba(239,68,68,0.58);
        box-shadow: 0 0 0 1px rgba(248,113,113,0.2), 0 18px 32px rgba(0,0,0,0.36), 0 0 18px rgba(239,68,68,0.16);
    }

    .salle-reunion-page .meet-card-bg {
        position: absolute;
        top: -50px;
        right: -50px;
        width: 130px;
        height: 130px;
        background: radial-gradient(circle, rgba(217, 70, 239, 0.1) 0%, transparent 70%);
        border-radius: 50%;
    }

    .salle-reunion-page .meet-card--live .meet-card-bg {
        background: radial-gradient(circle, rgba(34,197,94,0.22) 0%, transparent 72%);
    }

    .salle-reunion-page .meet-card--upcoming .meet-card-bg {
        background: radial-gradient(circle, rgba(14,165,233,0.2) 0%, transparent 72%);
    }

    .salle-reunion-page .meet-card--ended .meet-card-bg {
        background: radial-gradient(circle, rgba(239,68,68,0.16) 0%, transparent 72%);
    }

    .salle-reunion-page .meet-card-content {
        position: relative;
        z-index: 2;
        width: 100%;
        min-width: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .salle-reunion-page .meet-card-head {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 10px;
        min-width: 0;
    }

    .salle-reunion-page .meet-card-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: rgba(142,21,130,0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        color: #d946ef;
        flex: 0 0 44px;
    }

    .salle-reunion-page .meet-card--live .meet-card-icon {
        background: rgba(22,163,74,0.2);
        color: #4ade80;
        border: 1px solid rgba(34,197,94,0.35);
    }

    .salle-reunion-page .meet-card--upcoming .meet-card-icon {
        background: rgba(2,132,199,0.2);
        color: #67e8f9;
        border: 1px solid rgba(14,165,233,0.34);
    }

    .salle-reunion-page .meet-card--ended .meet-card-icon {
        background: rgba(239,68,68,0.18);
        color: #fda4af;
        border: 1px solid rgba(239,68,68,0.32);
    }

    .salle-reunion-page .meet-card-title {
        font-family: 'Syne', sans-serif;
        font-size: 1rem;
        font-weight: 700;
        color: #fff;
        margin: 0;
        line-height: 1.32;
        flex: 1;
        min-width: 0;
        display: -webkit-box;
        overflow: hidden;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        min-height: 2.64em;
        word-break: break-word;
    }

    .salle-reunion-page .meet-card-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .salle-reunion-page .meet-card-date {
        font-size: 0.86rem;
        color: rgba(255,255,255,0.65);
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 4px;
        border: 1px solid rgba(255,255,255,0.06);
        border-radius: 9px;
        padding: 8px 10px;
        background: rgba(255,255,255,0.02);
        min-width: 0;
    }

    .salle-reunion-page .meet-card-date--end {
        align-items: flex-end;
        text-align: right;
    }

    .salle-reunion-page .meet-card-date--start {
        background: rgba(16, 185, 129, 0.08);
        border-color: rgba(16, 185, 129, 0.28);
    }

    .salle-reunion-page .meet-card-date--end {
        background: rgba(217, 70, 239, 0.08);
        border-color: rgba(217, 70, 239, 0.28);
    }

    .salle-reunion-page .meet-meta-label {
        color: rgba(255,255,255,0.5);
        font-size: 0.74rem;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        font-weight: 700;
        white-space: nowrap;
    }

    .salle-reunion-page .meet-meta-value {
        color: rgba(255,255,255,0.86);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 600;
        width: 100%;
    }

    .salle-reunion-page .meet-meta-date {
        color: #f8fafc;
        font-size: 0.82rem;
        line-height: 1.2;
        font-weight: 700;
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .salle-reunion-page .meet-meta-time {
        font-size: 1rem;
        line-height: 1.1;
        font-weight: 800;
        letter-spacing: 0.02em;
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .salle-reunion-page .meet-card-date--start .meet-meta-time {
        color: #34d399;
    }

    .salle-reunion-page .meet-card-date--end .meet-meta-time {
        color: #e879f9;
    }

    .salle-reunion-page .meet-card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 12px;
        margin-top: auto;
        gap: 8px;
    }

    .salle-reunion-page .meet-status {
        font-size: 0.8rem;
        font-weight: 600;
        padding: 5px 12px;
        border-radius: 50px;
        background: rgba(24, 168, 85, 0.2);
        color: #18a855;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .salle-reunion-page .meet-status--live {
        background: rgba(24,168,85,0.22);
        color: #58e39a;
        border: 1px solid rgba(24,168,85,0.42);
    }

    .salle-reunion-page .meet-status--live i {
        animation: livePulse 1.4s ease-in-out infinite;
        font-size: 0.58rem;
    }

    .salle-reunion-page .meet-status--upcoming {
        background: rgba(14,165,233,0.2);
        color: #7dd3fc;
        border: 1px solid rgba(14,165,233,0.35);
    }

    .salle-reunion-page .meet-status--ended {
        background: rgba(148,163,184,0.2);
        color: #cbd5e1;
        border: 1px solid rgba(148,163,184,0.36);
    }

    .salle-reunion-page .meet-code-badge {
        font-weight: 700;
        color: #f5f3ff;
        letter-spacing: 1px;
        max-width: 46%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        background: rgba(124, 58, 237, 0.18);
        border: 1px solid rgba(167, 139, 250, 0.35);
        padding: 4px 8px;
        border-radius: 999px;
    }

    .salle-reunion-page .meet-code-prefix {
        color: #c4b5fd;
        opacity: 0.9;
        font-weight: 600;
        margin-right: 2px;
        letter-spacing: 0.03em;
    }

    .salle-reunion-page .meets-grid-progress {
        margin: 0;
        color: rgba(255,255,255,0.58);
        font-size: 0.9rem;
    }

    .salle-reunion-page .meets-pagination-wrap {
        margin-top: 26px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        align-items: center;
    }

    .salle-reunion-page .meets-pagination-wrap nav {
        width: 100%;
        display: flex;
        justify-content: center;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .salle-reunion-page .meets-pagination-wrap .pagination {
        display: flex;
        align-items: center;
        list-style: none;
        padding: 0;
        margin: 0;
        gap: 6px;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .salle-reunion-page .meets-pagination-wrap .page-link {
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.12);
        color: rgba(255,255,255,0.85);
        border-radius: 10px;
        min-width: 38px;
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-weight: 600;
    }

    .salle-reunion-page .meets-pagination-wrap .page-item.active .page-link {
        background: linear-gradient(90deg, #d946ef, #8e1582);
        border-color: rgba(217,70,239,0.45);
        color: #fff;
    }

    .salle-reunion-page .meets-pagination-wrap .page-item.disabled .page-link {
        opacity: 0.45;
    }

    .salle-reunion-page .meets-pagination-wrap .page-item:first-child .page-link,
    .salle-reunion-page .meets-pagination-wrap .page-item:last-child .page-link {
        width: auto;
        min-width: 54px;
        padding: 0 12px;
    }

    .salle-reunion-page .meets-empty-state {
        text-align: center;
        background: rgba(255,255,255,0.02);
        border: 1px dashed rgba(255,255,255,0.1);
        padding: 50px 20px;
        border-radius: 20px;
        max-width: 600px;
        margin: 0 auto;
    }

    .salle-reunion-page .meets-empty-state i {
        font-size: 4rem;
        color: rgba(255,255,255,0.1);
        margin-bottom: 20px;
    }

    .salle-reunion-page .meets-empty-state h3 {
        color: #fff;
        font-family: 'Syne', sans-serif;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .salle-reunion-page .meets-empty-state p {
        color: rgba(255,255,255,0.5);
    }

    .meet-modal-content--create {
        max-width: 560px;
        text-align: left;
        border-radius: 24px;
        background: linear-gradient(165deg, rgba(17,8,26,0.98), rgba(10,8,28,0.98));
        border: 1px solid rgba(142, 21, 130, 0.35);
        box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 28px rgba(142,21,130,0.25);
    }

    .create-meet-head { margin-bottom: 16px; }

    .create-meet-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 12px;
        color: #e879f9;
        font-size: 1.3rem;
        background: linear-gradient(145deg, rgba(217,70,239,0.2), rgba(14,165,233,0.16));
        border: 1px solid rgba(232,121,249,0.28);
    }

    .create-meet-head h4 {
        margin: 0 0 4px;
        font-family: 'Syne', sans-serif;
        font-size: 1.35rem;
        font-weight: 700;
        color: #fff;
    }

    .create-meet-head p {
        margin: 0;
        color: rgba(255,255,255,0.62);
        font-size: 0.92rem;
    }

    .create-meet-form { display: grid; gap: 12px; }

    .cm-datetime-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .cm-field label {
        display: inline-block;
        margin-bottom: 6px;
        font-size: 0.84rem;
        font-weight: 700;
        color: #ddd6fe;
    }

    .cm-field input {
        width: 100%;
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.14);
        background: rgba(255,255,255,0.05);
        color: #fff;
        padding: 11px 12px;
        outline: none;
    }

    .cm-field input:focus {
        border-color: rgba(232,121,249,0.62);
        box-shadow: 0 0 0 3px rgba(232,121,249,0.18);
    }

    .cm-field small {
        color: rgba(255,255,255,0.5);
        font-size: 0.76rem;
    }

    .cm-error {
        margin-top: 5px;
        color: #fda4af;
        font-size: 0.8rem;
    }

    @media (max-width: 991px) {
        .salle-reunion-page .meets-grid {
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        }
    }

    @media (max-width: 576px) {
        .cm-datetime-grid {
            grid-template-columns: 1fr;
        }

        .salle-reunion-page .meet-card {
            height: 274px;
            padding: 16px;
        }

        .salle-reunion-page .meet-card-meta {
            grid-template-columns: 1fr;
        }

        .salle-reunion-page .meet-card-date--end {
            align-items: flex-start;
            text-align: left;
        }

        .salle-reunion-page .meets-grid-toolbar {
            align-items: flex-start;
        }

        .salle-reunion-page .meet-meta-value {
            max-width: 58%;
        }
    }

    @keyframes livePulse {
        0%, 100% {
            opacity: 0.35;
            transform: scale(0.82);
        }
        50% {
            opacity: 1;
            transform: scale(1.08);
        }
    }
