
/* --- SALUT AUX COULEURS 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-salut {
        background-color: var(--bg-dark);
        color: #fff;
        font-family: 'Figtree', 'DM Sans', sans-serif;
        min-height: 100vh;
        overflow-x: hidden; /* Empêche strictement le scroll horizontal */
        position: relative;
    }

    .container-custom {
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 32px;
        box-sizing: border-box; /* Garde le padding à l'intérieur de la largeur */
    }

    /* =========================================
       HEADER & BREADCRUMB (Avec drapeau)
       ========================================= */
    .page-header-salut {
        position: relative;
        z-index: 2;
        padding: 140px 0 80px;
        text-align: center;
        /* Image de fond avec un voile sombre pour garantir la lisibilité du texte */
        background: linear-gradient(rgba(7, 3, 10, 0.8), rgba(7, 3, 10, 0.9)), url('frontVR/assets/img/img-fond/fond-salut.jpg') no-repeat center center / cover;
    }

    .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));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .header-desc {
        color: rgba(255,255,255,0.7);
        font-size: 1.15rem;
        max-width: 600px;
        margin: 0 auto;
        line-height: 1.6;
    }

    /* =========================================
       CONTENEUR WEBGL (L'Application VR)
       ========================================= */
    .vr-iframe-container {
        border-radius: 16px;
        overflow: hidden;
        background: #000;
        width: 100%;
        height: 700px;
        position: relative;
        margin: 50px auto 100px auto;
        box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    }
    
    .vr-iframe-container iframe {
        width: 100%;
        height: 100%;
        border: none;
        display: block;
    }

    /* =========================================
       CALENDRIER & ADMIN (Dark Mode)
       ========================================= */
    .admin-wrapper {
        margin-top: 50px;
        margin-bottom: 70px;
        position: relative;
    }

    .admin-wrapper::before {
        content: "";
        position: absolute;
        inset: -20px 0 auto;
        height: 320px;
        background: radial-gradient(circle at 15% 15%, rgba(168, 85, 247, 0.16), transparent 55%),
                    radial-gradient(circle at 85% 75%, rgba(24, 168, 85, 0.1), transparent 50%);
        pointer-events: none;
    }

    .admin-wrapper .container-custom {
        position: relative;
        z-index: 1;
        background: linear-gradient(165deg, rgba(17, 8, 26, 0.94), rgba(10, 6, 18, 0.95));
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 18px;
        padding: 26px 22px 24px;
        box-shadow: 0 18px 35px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
    }

    .admin-wrapper h2 {
        font-family: 'Syne', sans-serif;
        font-size: 2rem;
        text-align: center;
        margin-bottom: 10px;
        letter-spacing: 0.02em;
        color: #fff;
    }
    .admin-wrapper p {
        text-align: center;
        color: rgba(255,255,255,0.62);
        margin-bottom: 22px;
    }

    #calendar {
        max-width: 1000px;
        margin: 0 auto;
        background: rgba(255,255,255,0.02);
        color: #fff;
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 14px;
        padding: 12px;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
    }

    .fc {
        --fc-neutral-bg-color: rgba(255, 255, 255, 0.03);
        --fc-border-color: rgba(255, 255, 255, 0.1);
        --fc-page-bg-color: transparent;
        --fc-event-bg-color: rgba(255, 255, 255, 0.14);
        --fc-event-border-color: rgba(255, 255, 255, 0.45);
        --fc-event-text-color: #ffffff;
        --fc-today-bg-color: rgba(168, 85, 247, 0.15);
    }

    .fc .fc-toolbar.fc-header-toolbar {
        margin-bottom: 12px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .fc .fc-toolbar-title {
        font-family: 'Syne', sans-serif;
        font-size: 1.2rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        color: #fff !important;
    }

    .fc-theme-standard td, .fc-theme-standard th, .fc-theme-standard .fc-scrollgrid { border-color: rgba(255,255,255,0.1); }
    .fc-col-header-cell {
        background: linear-gradient(135deg, rgba(30, 58, 138, 0.72), rgba(91, 33, 182, 0.72));
        padding: 8px 0;
        text-transform: uppercase;
        font-size: 0.72rem;
        letter-spacing: 0.05em;
        color: #ffffff;
        border-bottom: 1px solid rgba(255,255,255,0.16);
    }

    .fc .fc-col-header-cell-cushion {
        color: #ffffff !important;
        font-weight: 700;
        text-decoration: none;
    }
    .fc-daygrid-day-number { color: #fff; text-decoration: none; }
    .fc-day-today { background: rgba(217, 70, 239, 0.1) !important; }
    .fc .fc-daygrid-day-frame {
        transition: background 0.18s ease;
    }
    .fc .fc-daygrid-day:not(.fc-day-past-custom):hover .fc-daygrid-day-frame {
        background: rgba(255,255,255,0.04);
    }
    .fc .fc-event {
        border-radius: 9px;
        padding: 0;
        font-size: 0.67rem;
        font-weight: 600;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255,255,255,0.22);
        overflow: hidden;
        width: auto;
        max-width: 78%;
        margin-inline: 0;
    }

    .fc .fc-daygrid-event-harness {
        /* margin-top: 0px; */
        margin-bottom: 3px;
    }

    .fc .fc-daygrid-day-events {
        max-height: 72px;
        overflow-y: auto;
        padding-right: 2px;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
    }

    .fc .fc-daygrid-day-top {
        padding: 1px 3px 0 !important;
        margin-bottom: 1px;
    }

    .fc .fc-daygrid-day-number {
        padding: 0 2px !important;
        line-height: 1.15;
    }

    .fc .fc-daygrid-day-events::-webkit-scrollbar {
        width: 5px;
    }

    .fc .fc-daygrid-day-events::-webkit-scrollbar-track {
        background: transparent;
    }

    .fc .fc-daygrid-day-events::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.35);
        border-radius: 999px;
    }

    salut-event-card
    
    .fc .salut-calendar-event .salut-event-card {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 2px 4px;
        color: #ffffff;
        line-height: 1.15;
        cursor: pointer;
    }

    .fc .salut-calendar-event .salut-event-meta {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        width: 100%;
        min-width: 0;
        white-space: nowrap;
        flex-wrap: nowrap;
    }

    .fc .salut-calendar-event .salut-event-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 11px;
        height: 11px;
        font-size: 0.5rem;
        line-height: 1;
        color: rgba(255, 255, 255, 0.9);
        flex-shrink: 0;
    }

    .fc .salut-calendar-event .salut-event-time {
        font-family: 'Syne', sans-serif;
        font-size: 0.56rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.85);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .fc .salut-calendar-event .salut-event-card {
        border-left: 2px solid rgba(24, 168, 85, 0.45);
        border-radius: 6px;
        background: linear-gradient(90deg, rgba(24, 168, 85, 0.12), rgba(24, 168, 85, 0.03));
    }

    .fc .salut-calendar-event.is-past .salut-event-card {
        border-left-color: rgba(148, 163, 184, 0.65);
        background: linear-gradient(90deg, rgba(148, 163, 184, 0.14), rgba(148, 163, 184, 0.04));
    }

    .fc .salut-calendar-event.is-early-ended .salut-event-card {
        border-left-color: rgba(245, 158, 11, 0.85);
        background: linear-gradient(90deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.05));
    }

    .fc .salut-calendar-event.is-future .salut-event-card {
        border-left-color: rgba(59, 130, 246, 0.58);
        background: linear-gradient(90deg, rgba(59, 130, 246, 0.14), rgba(59, 130, 246, 0.04));
    }

    .fc .salut-calendar-event.live-now .salut-event-card {
        border-left-color: rgba(24, 168, 85, 0.9);
        background: linear-gradient(90deg, rgba(24, 168, 85, 0.24), rgba(24, 168, 85, 0.05));
    }

    .fc .salut-calendar-event .salut-event-status-indicator {
        margin-left: 4px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 14px;
        height: 14px;
        border-radius: 999px;
        color: rgba(255, 255, 255, 0.9);
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.24);
        flex-shrink: 0;
    }

    .fc .salut-calendar-event .salut-event-status-indicator i {
        font-size: 0.45rem;
        line-height: 1;
    }

    .fc .salut-calendar-event .salut-event-status-indicator .status-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.95);
    }

    .fc .salut-calendar-event .salut-event-status-indicator.is-past {
        color: #dbe3ef;
        background: rgba(148, 163, 184, 0.24);
        border-color: rgba(148, 163, 184, 0.38);
    }

    .fc .salut-calendar-event .salut-event-status-indicator.is-future {
        color: #dbeafe;
        background: rgba(59, 130, 246, 0.22);
        border-color: rgba(59, 130, 246, 0.36);
    }

    .fc .salut-calendar-event .salut-event-status-indicator.is-live {
        width: 12px;
        height: 12px;
        color: #dbffe8;
        background: rgba(24, 168, 85, 0.25);
        border-color: rgba(24, 168, 85, 0.45);
    }

    .fc .salut-calendar-event .salut-event-status-indicator.is-early-ended {
        color: #ffedd5;
        background: rgba(245, 158, 11, 0.24);
        border-color: rgba(245, 158, 11, 0.48);
    }

    .fc .salut-calendar-event .salut-event-status-indicator.is-live .status-dot {
        background: #18a855;
        box-shadow: 0 0 0 rgba(24, 168, 85, 0.45);
        animation: liveDotPulse 1.2s ease-out infinite;
    }

    .fc .salut-calendar-event.is-past .salut-event-title {
        color: rgba(255, 255, 255, 0.82);
    }

    .fc .salut-calendar-event .salut-event-title {
        font-size: 0.64rem;
        font-weight: 700;
        color: #ffffff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .fc .salut-calendar-event .salut-event-target {
        display: block;
        margin-top: 2px;
        font-size: 0.55rem;
        color: rgba(255, 255, 255, 0.62);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .fc-button {
        background: linear-gradient(135deg, rgba(168, 85, 247, 0.9), rgba(142, 21, 130, 0.9)) !important;
        border: 1px solid rgba(255,255,255,0.14) !important;
        color: white !important;
        padding: 7px 12px !important;
        border-radius: 8px !important;
        box-shadow: 0 6px 16px rgba(142,21,130,0.25);
    }
    .fc .fc-button:hover {
        filter: brightness(1.08);
        transform: translateY(-1px);
    }
    .fc .fc-button:disabled {
        opacity: 0.45 !important;
        transform: none;
        box-shadow: none;
    }
    .fc .fc-button-primary:not(:disabled).fc-button-active,
    .fc .fc-button-primary:not(:disabled):active {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(232, 232, 235, 0.94)) !important;
        color: #1b1028 !important;
        border-color: rgba(255,255,255,0.7) !important;
        box-shadow: 0 10px 18px rgba(0,0,0,0.26);
    }
    .fc .fc-daygrid-day.fc-day-other {
        background: rgba(148, 163, 184, 0.08) !important;
    }

    .fc .fc-daygrid-day.fc-day-other .fc-daygrid-day-number {
        color: rgba(255,255,255,0.35) !important;
    }

    .fc .fc-daygrid-day.fc-day-past-custom:not(.fc-day-other) {
        background:
            linear-gradient(145deg, rgba(249, 115, 22, 0.08), rgba(124, 58, 237, 0.08)) !important;
        box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.22);
    }

    .fc .fc-daygrid-day.fc-day-past-custom:not(.fc-day-other) .fc-daygrid-day-number {
        color: rgba(255,255,255,0.9) !important;
    }

    .fc .fc-daygrid-day.fc-day-past-custom:not(.fc-day-other) .fc-daygrid-day-top::after {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #f97316;
        box-shadow: 0 0 8px rgba(249, 115, 22, 0.5);
        margin-left: 4px;
        align-self: center;
    }

    .fc .fc-daygrid-day.fc-day-past-custom:not(.fc-day-other):hover .fc-daygrid-day-frame {
        background: rgba(249, 115, 22, 0.07);
    }

    /* =========================================
       MODALES
       ========================================= */
    .custom-modal-overlay {
        position: fixed;
        inset: 0;
        display: none;
        justify-content: center;
        align-items: center;
        padding: 16px;
        z-index: 9999;
        background:
            radial-gradient(circle at 18% 18%, rgba(24, 168, 85, 0.16) 0%, transparent 38%),
            radial-gradient(circle at 82% 78%, rgba(249, 115, 22, 0.14) 0%, transparent 36%),
            rgba(4, 6, 12, 0.82);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    .custom-modal {
        position: relative;
        width: min(520px, 100%);
        border-radius: 18px;
        padding: 26px 22px 20px;
        color: #fff;
        border: 1px solid rgba(255,255,255,0.14);
        background: linear-gradient(165deg, rgba(16, 10, 30, 0.98) 0%, rgba(9, 8, 20, 0.98) 100%);
        box-shadow: 0 26px 55px rgba(0,0,0,0.62), inset 0 0 0 1px rgba(24, 168, 85, 0.2);
        max-height: min(88vh, 760px);
        overflow-y: auto;
        animation: salutModalEnter 0.24s ease;
    }

    .custom-modal::-webkit-scrollbar {
        width: 5px;
    }

    .custom-modal::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.03);
        border-radius: 10px;
    }

    .custom-modal::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, var(--uvci-green) 0%, var(--uvci-purple) 100%);
        border-radius: 10px;
    }

    .custom-modal::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #22d975 0%, #c026d3 100%);
    }

    .custom-modal--wide {
        width: min(800px, 96vw);
    }

    .custom-modal h3 {
        margin-top: 0;
        margin-bottom: 16px;
        font-family: 'Syne', sans-serif;
        font-size: 1.35rem;
        letter-spacing: 0.02em;
        border-bottom: 1px solid rgba(255,255,255,0.12);
        padding-bottom: 12px;
        color: #fff;
    }

    .modal-feedback {
        display: none;
        margin: 4px 0 12px;
        border-radius: 10px;
        padding: 9px 11px;
        align-items: flex-start;
        gap: 8px;
        font-size: 0.84rem;
        line-height: 1.35;
        border: 1px solid transparent;
    }

    .modal-feedback .feedback-icon {
        width: 20px;
        height: 20px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.67rem;
        flex-shrink: 0;
        margin-top: 1px;
    }

    .modal-feedback .feedback-text {
        flex: 1;
    }

    .modal-feedback.error {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(244, 63, 94, 0.1));
        color: #fecaca;
        border-color: rgba(239, 68, 68, 0.42);
    }

    .modal-feedback.error .feedback-icon {
        background: rgba(239, 68, 68, 0.2);
        color: #ffe4e6;
        border: 1px solid rgba(255, 205, 210, 0.4);
    }

    .modal-feedback.success {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(232, 232, 235, 0.12));
        color: #ffffff;
        border-color: rgba(255,255,255,0.42);
    }

    .modal-feedback.success .feedback-icon {
        background: rgba(255,255,255,0.2);
        color: #ffffff;
        border: 1px solid rgba(255,255,255,0.4);
    }

    #eventActionModal .custom-modal {
        width: min(420px, 100%);
        text-align: center;
    }

    #eventActionModal .custom-modal h3 {
        margin-bottom: 12px;
        border-bottom-color: rgba(255,255,255,0.09);
    }

    .close-btn {
        position: absolute;
        top: 14px;
        right: 14px;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,0.15);
        background: rgba(255,255,255,0.04);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        line-height: 1;
        cursor: pointer;
        color: rgba(255,255,255,0.7);
        transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
    }

    .close-btn:hover {
        color: #fff;
        border-color: rgba(255,255,255,0.3);
        background: rgba(255,255,255,0.08);
        transform: translateY(-1px);
    }

    .custom-modal label {
        display: block;
        margin-top: 12px;
        margin-bottom: 6px;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: rgba(255,255,255,0.72);
        font-weight: 700;
    }

    .custom-modal input,
    .custom-modal select {
        width: 100%;
        min-height: 44px;
        padding: 11px 12px;
        border-radius: 10px;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.14);
        color: #fff;
        box-sizing: border-box;
        transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    }

    .custom-modal input::placeholder,
    .custom-modal select::placeholder {
        color: rgba(255,255,255,0.45);
    }

    .custom-modal input:focus,
    .custom-modal select:focus {
        outline: none;
        border-color: rgba(24, 168, 85, 0.75);
        box-shadow: 0 0 0 3px rgba(24, 168, 85, 0.18);
        background: rgba(255,255,255,0.07);
    }

    #eventDate {
        background: rgba(255,255,255,0.04);
    }

    .custom-modal input[type="time"] {
        letter-spacing: 0.04em;
    }

    /* Rend l'icone horloge visible sur fond sombre. */
    .custom-modal input[type="time"]::-webkit-calendar-picker-indicator {
        filter: invert(1) brightness(1.15);
        opacity: 0.95;
        cursor: pointer;
    }

    .custom-modal input[type="time"]::-webkit-calendar-picker-indicator:hover {
        opacity: 1;
    }

    .custom-modal select option {
        background: #140d22;
        color: #ffffff;
    }

    #eventStatusSelect option[value="en_cours"] {
        color: #22c55e;
    }

    #eventStatusSelect option[value="termine"] {
        color: #ef4444;
    }

    #eventStatusSelect.status-live {
        color: #86efac;
        border-color: rgba(34, 197, 94, 0.62);
        background: rgba(34, 197, 94, 0.14);
        box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
    }

    #eventStatusSelect.status-done {
        color: #fca5a5;
        border-color: rgba(239, 68, 68, 0.62);
        background: rgba(239, 68, 68, 0.14);
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
    }

    .input-disabled { background-color: rgba(255,255,255,0.02) !important; color: rgba(255,255,255,0.3) !important; cursor: not-allowed; }

    #customModal #eventForm {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    /* ---- Grille 2 colonnes du formulaire de création ---- */
    .salut-event-form .salut-form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        background: rgba(255,255,255,0.025);
        border: 1px solid rgba(255,255,255,0.07);
        border-radius: 12px;
        padding: 14px 16px 10px;
        margin-bottom: 10px;
    }

    .salut-event-form .salut-form-group {
        display: flex;
        flex-direction: column;
    }

    .salut-event-form .salut-form-group > label {
        margin-top: 0;
        margin-bottom: 6px;
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: rgba(255,255,255,0.9);
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .salut-event-form .salut-form-group > label i {
        font-size: 0.82rem;
    }

    .salut-event-form .salut-form-group .salut-form-hint {
        margin: 4px 0 2px;
        font-size: 0.77rem;
    }

    .salut-event-form .salut-form-group .salut-form-hint i {
        color: rgba(255,255,255,0.45);
        margin-right: 3px;
    }

    .salut-event-form #botton_submit {
        margin-top: 10px;
    }

    .custom-modal .select2-container {
        width: 100% !important;
    }

    /* Select2 - Theme Salut aux Couleurs */
    .custom-modal .select2-container--default .select2-selection--single {
        min-height: 44px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        background:
            linear-gradient(120deg, rgba(24, 168, 85, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%),
            rgba(255, 255, 255, 0.03);
        display: flex;
        align-items: center;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    /* Etat desactive: garder le style dark (evite le fond blanc Select2 natif). */
    .custom-modal .select2-container--default.select2-container--disabled .select2-selection--single {
        background: rgba(20, 13, 34, 0.92) !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
        color: rgba(255, 255, 255, 0.62) !important;
        opacity: 1 !important;
        cursor: not-allowed;
    }

    .custom-modal .select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__rendered {
        color: rgba(255, 255, 255, 0.62) !important;
    }

    .custom-modal .select2-container--default.select2-container--disabled .select2-selection__arrow b {
        border-color: rgba(255, 255, 255, 0.55) transparent transparent transparent !important;
    }

    .custom-modal .select2-container--default .select2-selection--single .select2-selection__rendered {
        color: #ffffff;
        line-height: 44px;
        padding-left: 12px;
        padding-right: 36px;
        font-weight: 600;
    }

    .custom-modal .select2-container--default .select2-selection--single .select2-selection__placeholder {
        color: rgba(255, 255, 255, 0.52);
        font-weight: 500;
    }

    .custom-modal .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 44px;
        right: 8px;
    }

    .custom-modal .select2-container--default .select2-selection--single .select2-selection__arrow b {
        border-color: rgba(255, 255, 255, 0.85) transparent transparent transparent;
    }

    .custom-modal .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
        border-color: transparent transparent rgba(255, 255, 255, 0.9) transparent;
    }

    .custom-modal .select2-container--default.select2-container--focus .select2-selection--single,
    .custom-modal .select2-container--default.select2-container--open .select2-selection--single {
        border-color: rgba(24, 168, 85, 0.82);
        box-shadow: 0 0 0 3px rgba(24, 168, 85, 0.18), 0 8px 20px rgba(9, 8, 20, 0.35);
        background:
            linear-gradient(120deg, rgba(24, 168, 85, 0.12) 0%, rgba(249, 115, 22, 0.1) 100%),
            rgba(255, 255, 255, 0.05);
    }

    #customModal .select2-dropdown,
    #customModal .select2-container--open .select2-dropdown {
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
        background: #140d22 !important;
    }

    #customModal .select2-container--default .select2-search--dropdown {
        padding: 10px;
        background: rgba(255, 255, 255, 0.02);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    #customModal .select2-container--default .select2-search--dropdown .select2-search__field {
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.06);
        color: #fff;
        min-height: 38px;
        padding: 8px 10px;
        outline: none;
    }

    #customModal .select2-container--default .select2-search--dropdown .select2-search__field:focus {
        border-color: rgba(24, 168, 85, 0.8);
        box-shadow: 0 0 0 3px rgba(24, 168, 85, 0.18);
    }

    #customModal .select2-container--default .select2-results > .select2-results__options,
    #customModal .select2-results__options {
        max-height: 220px;
        overflow-y: auto;
        background: #140d22 !important;
        color: #fff !important;
    }

    #customModal .select2-container--default .select2-results__option,
    #customModal .select2-results__option {
        padding: 9px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        font-size: 0.88rem;
        background: #140d22 !important;
        color: #ffffff !important;
    }

    #customModal .select2-container--default .select2-results__option--highlighted[aria-selected],
    #customModal .select2-container--default .select2-results__option--highlighted[data-selected],
    #customModal .select2-results__option--highlighted[aria-selected] {
        background: linear-gradient(90deg, rgba(24, 168, 85, 0.36), rgba(168, 85, 247, 0.42)) !important;
        color: #fff !important;
    }

    #customModal .select2-container--default .select2-results__option[aria-selected=true],
    #customModal .select2-results__option[aria-selected=true] {
        background: rgba(24, 168, 85, 0.22) !important;
        color: #d1fae5 !important;
    }

    #customModal .select2-dropdown,
    #customModal .select2-results,
    #customModal .select2-container--default .select2-results__option[aria-disabled=true],
    #customModal .select2-results__option[aria-disabled=true] {
        background: #140d22 !important;
        color: #ffffff !important;
    }

    .salut-form-hint {
        margin: -2px 0 16px;
        color: rgba(255,255,255,0.62);
        font-size: 0.83rem;
        line-height: 1.5;
    }

    .custom-modal button {
        width: 100%;
        min-height: 44px;
        padding: 11px 12px;
        border: 1px solid transparent;
        border-radius: 10px;
        font-family: 'Syne', sans-serif;
        font-size: 0.9rem;
        letter-spacing: 0.03em;
        font-weight: 700;
        cursor: pointer;
        transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    }

    #botton_submit {
        margin-top: 18px;
        background: linear-gradient(135deg, rgba(24, 168, 85, 0.95), rgba(16, 185, 129, 0.92));
        border-color: rgba(187, 247, 208, 0.34);
        color: #fff;
        box-shadow: 0 14px 24px rgba(16, 185, 129, 0.22);
    }

    #botton_submit:hover {
        transform: translateY(-1px);
        filter: brightness(1.06);
    }

    .action-buttons {
        margin-top: 8px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    #cancelActionBtn {
        grid-column: 1 / -1;
        background: transparent;
        border-color: rgba(255,255,255,0.24);
        color: rgba(255,255,255,0.9);
    }

    #editEventBtn {
        background: linear-gradient(135deg, rgba(24, 168, 85, 0.95), rgba(20, 140, 80, 0.94));
        border-color: rgba(110, 231, 183, 0.34);
        color: #fff;
        box-shadow: 0 10px 18px rgba(24, 168, 85, 0.22);
    }

    #deleteEventBtn {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.95));
        border-color: rgba(254, 202, 202, 0.34);
        color: #fff;
        box-shadow: 0 10px 18px rgba(220, 38, 38, 0.22);
    }

    #terminateEventBtn {
        grid-column: 1 / -1;
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(234, 88, 12, 0.95));
        border-color: rgba(253, 224, 71, 0.34);
        color: #fff;
        box-shadow: 0 10px 18px rgba(234, 88, 12, 0.22);
    }

    #eventActionModal .custom-modal button:hover {
        transform: translateY(-1px);
    }

    .action-buttons button i {
        color: #fff;
        margin-right: 6px;
    }

    #cancelActionBtn:hover {
        border-color: rgba(255,255,255,0.4);
        background: rgba(255,255,255,0.06);
    }

    @keyframes salutModalEnter {
        from {
            opacity: 0;
            transform: translateY(10px) scale(0.98);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    #feedbackMessage {
        display: none;
        margin: 0 auto 18px;
        max-width: 560px;
        font-size: 0.9rem;
        text-align: left;
    }
    #feedbackMessage.feedback-toast {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 10px;
        font-weight: 600;
        opacity: 0;
        transform: translateY(-4px);
        transition: opacity 0.22s ease, transform 0.22s ease;
    }
    #feedbackMessage.feedback-toast.show {
        opacity: 1;
        transform: translateY(0);
    }
    #feedbackMessage .feedback-icon {
        width: 22px;
        height: 22px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        flex-shrink: 0;
    }
    #feedbackMessage .feedback-text {
        line-height: 1.35;
    }
    #feedbackMessage.feedback-toast.success {
        background: linear-gradient(135deg, rgba(24, 168, 85, 0.2), rgba(16, 185, 129, 0.12));
        color: #6ee7b7;
        border: 1px solid rgba(24, 168, 85, 0.42);
    }
    #feedbackMessage.feedback-toast.success .feedback-icon {
        background: rgba(24, 168, 85, 0.22);
        color: #bbf7d0;
        border: 1px solid rgba(187, 247, 208, 0.45);
    }
    #feedbackMessage.feedback-toast.error {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(244, 63, 94, 0.12));
        color: #fca5a5;
        border: 1px solid rgba(239, 68, 68, 0.42);
    }
    #feedbackMessage.feedback-toast.error .feedback-icon {
        background: rgba(239, 68, 68, 0.22);
        color: #fecaca;
        border: 1px solid rgba(254, 202, 202, 0.45);
    }

    .salut-confirm-delete-modal {
        position: fixed;
        inset: 0;
        background:
            radial-gradient(circle at 18% 20%, rgba(24, 168, 85, 0.16) 0%, transparent 42%),
            radial-gradient(circle at 82% 76%, rgba(249, 115, 22, 0.14) 0%, transparent 40%),
            rgba(4, 6, 12, 0.78);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
    }

    .salut-confirm-delete-modal.active {
        opacity: 1;
        pointer-events: auto;
    }

    .salut-confirm-delete-box {
        position: relative;
        width: min(440px, calc(100vw - 24px));
        border-radius: 16px;
        padding: 24px 22px 18px;
        text-align: center;
        color: #f3f4f6;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: linear-gradient(165deg, rgba(16, 10, 30, 0.98) 0%, rgba(9, 8, 20, 0.98) 100%);
        box-shadow: 0 24px 50px rgba(0, 0, 0, 0.62), inset 0 0 0 1px rgba(24, 168, 85, 0.22);
        animation: pop 0.25s ease;
        overflow: hidden;
    }

    .salut-confirm-delete-box::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background:
            linear-gradient(135deg, rgba(24, 168, 85, 0.14) 0%, transparent 45%),
            linear-gradient(315deg, rgba(249, 115, 22, 0.14) 0%, transparent 45%);
    }

    .salut-confirm-delete-icon {
        width: 56px;
        height: 56px;
        margin: 0 auto 10px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.35rem;
        color: #ffd6b0;
        border: 1px solid rgba(249, 115, 22, 0.42);
        background: radial-gradient(circle at 35% 30%, rgba(249, 115, 22, 0.2) 0%, rgba(239, 68, 68, 0.08) 70%);
        box-shadow: 0 0 20px rgba(249, 115, 22, 0.24);
    }

    .salut-confirm-delete-box h3 {
        position: relative;
        margin: 0;
        font-family: 'Syne', sans-serif;
        letter-spacing: 0.02em;
        font-size: 1.2rem;
        color: #ffffff;
    }

    .salut-confirm-delete-box p {
        position: relative;
        margin: 8px 0 0;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.75);
    }

    .salut-confirm-delete-actions {
        position: relative;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 18px;
    }

    .salut-confirm-delete-box .btn-cancel,
    .salut-confirm-delete-box .btn-delete {
        min-height: 40px;
        padding: 9px 10px;
        border-radius: 9px;
        border: 1px solid transparent;
        cursor: pointer;
        font-family: 'Syne', sans-serif;
        font-weight: 700;
        font-size: 0.78rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    }

    .salut-confirm-delete-box .btn-cancel {
        background: linear-gradient(180deg, rgba(73, 80, 96, 0.85) 0%, rgba(49, 54, 69, 0.95) 100%);
        border-color: rgba(167, 175, 191, 0.35);
        color: #e5e7eb;
    }

    .salut-confirm-delete-box .btn-cancel:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 14px rgba(0, 0, 0, 0.28);
        border-color: rgba(200, 207, 222, 0.55);
    }

    .salut-confirm-delete-box .btn-delete {
        background: linear-gradient(180deg, #ff5757 0%, #d62828 100%);
        border-color: rgba(255, 175, 175, 0.35);
        color: #fff;
        box-shadow: 0 10px 16px rgba(214, 40, 40, 0.28);
    }

    .salut-confirm-delete-box .btn-delete:hover {
        transform: translateY(-1px);
        background: linear-gradient(180deg, #ff6d6d 0%, #e03131 100%);
        box-shadow: 0 12px 20px rgba(224, 49, 49, 0.34);
    }

    .salut-confirm-delete-box .btn-cancel:active,
    .salut-confirm-delete-box .btn-delete:active {
        transform: translateY(0);
    }

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

        .custom-modal-overlay {
            padding: 14px;
        }

        .custom-modal {
            width: min(560px, 100%);
            border-radius: 16px;
            padding: 22px 18px 16px;
        }

        .custom-modal h3 {
            font-size: 1.2rem;
            padding-bottom: 10px;

                @media (max-width: 768px) {
                    .custom-modal--wide {
                        width: min(100%, 96vw);
                    }

                    .salut-event-form .salut-form-row {
                        grid-template-columns: 1fr;
                        padding: 10px 12px 6px;
                    }
                }

                    .salut-event-form .salut-form-row {
                        grid-template-columns: 1fr;
                        padding: 8px 10px 4px;
                        margin-bottom: 8px;
                    }
            margin-bottom: 12px;
        }
    }
    @media (max-width: 576px) {
        .header-title { font-size: 2rem; }
        .vr-iframe-container { height: 400px; }

        .custom-modal-overlay {
            align-items: center;
            justify-content: center;
            padding: 10px;
        }

        .custom-modal {
            width: min(100%, 520px);
            max-height: 84vh;
            border-radius: 14px;
            padding: 18px 14px 14px;
        }

        .custom-modal h3 {
            font-size: 1.06rem;
            padding-right: 34px;
        }

        .close-btn {
            top: 10px;
            right: 10px;
            width: 30px;
            height: 30px;
            font-size: 1.05rem;
        }

        #customModal #eventForm {
            gap: 0;
        }

        .custom-modal label {
            font-size: 0.72rem;
            margin-top: 10px;
        }

        .custom-modal input,
        .custom-modal select,
        .custom-modal button,
        .select2-container--default .select2-selection--single {
            min-height: 40px;
            font-size: 0.85rem;
        }

        .select2-container--default .select2-selection--single .select2-selection__rendered,
        .select2-container--default .select2-selection--single .select2-selection__arrow {
            height: 40px;
            line-height: 40px;
        }

        .action-buttons {
            grid-template-columns: 1fr;
            gap: 8px;
        }

        #cancelActionBtn {
            grid-column: auto;
        }
    }


    /* =========================================
       HERO CUSTOM POUR LA SALLE VR (Inspiré de l'image Meta)
       ========================================= */
    .hero-meta-vr {
        position: relative;
        min-height: 90vh;
        background: #0f0518; /* Fond très sombre violet */
        display: flex;
        align-items: center;
        padding-top: 80px;
        overflow: hidden;
    }
    
    /* Effet de grille en arrière-plan (côté droit ou global) */
    .hero-meta-vr::before {
        content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        background-size: 50px 50px;
        background-image: 
            linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
            linear-gradient(90px, rgba(255,255,255,0.03) 1px, transparent 1px);
        z-index: 1; pointer-events: none;
    }

    /* Halo lumineux rose/violet au fond */
    .hero-meta-vr::after {
        content: ''; position: absolute; right: -10%; top: -10%; width: 60vw; height: 60vw;
        background: radial-gradient(circle, rgba(142,21,130,0.3) 0%, transparent 70%);
        border-radius: 50%; z-index: 0; filter: blur(80px); pointer-events: none;
    }

    .hero-meta-content { position: relative; z-index: 2; width: 100%; margin-bottom: 80px;}

    .hero-vr-title {
        font-family: 'Syne', sans-serif;
        font-size: 2.8rem;
        font-weight: 800;
        line-height: 1.1;
        letter-spacing: -1px;
        color: #fff;
        margin-bottom: 20px;
    }
    .hero-vr-title span {
        font-size: 3rem; /* Legerement plus gros que le texte principal */
        background: linear-gradient(90deg, #51c4ff, #8e1582, #d946ef);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        border: 1px solid rgba(255,255,255,0.1);
        padding: 5px 25px;
        border-radius: 50px;
        display: inline-block;
        margin-top: 10px;
        backdrop-filter: blur(10px);
    }
    
    .hero-vr-desc { color: rgba(255,255,255,0.7); font-size: 1.1rem; line-height: 1.6; max-width: 500px; margin-bottom: 30px; }

    /* Formulaire de création stylisé */
    .form-create-meet { display: flex; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border-radius: 50px; background: rgba(255,255,255,0.05); padding: 5px; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); max-width: 550px;}
    .form-create-meet input { flex: 1; background: transparent; border: none; color: #fff; padding: 15px 25px; outline: none; font-size: 1rem; }
    .form-create-meet input::placeholder { color: rgba(255,255,255,0.4); }
    .btn-gradient { background: linear-gradient(90deg, #d946ef, #8e1582); border: none; color: #fff; padding: 12px 30px; border-radius: 50px; font-weight: 600; font-family: 'Syne', sans-serif; cursor: pointer; transition: transform 0.3s; box-shadow: 0 5px 15px rgba(217,70,239,0.3); }
    .btn-gradient:hover { transform: scale(1.05); color: #fff; }

    /* Image droite hero */
    .hero-image-wrapper { position: relative; z-index: 2; display: flex; justify-content: flex-end; }
    .hero-image-wrapper img { width: 100%; max-width: 500px; animation: floatImg 6s ease-in-out infinite; }
    @keyframes floatImg { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

    /* Barre des sponsors / logos en bas */
    .bottom-bar-logos { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(90deg, #8e1582, #d946ef); padding: 15px 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 80px;}
    .bottom-bar-logos span { color: rgba(255,255,255,0.9); font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.2rem; letter-spacing: 2px; }

    /* =========================================
       SECTION GRID RÉUNIONS
       ========================================= */
    .meets-grid-section { background-color: #07030a; padding: 100px 0; position: relative; }
    .meets-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 30px; }
    .meet-card {
        background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 20px;
        padding: 30px; position: relative; overflow: hidden; cursor: pointer; transition: all 0.3s;
    }
    .meet-card:hover {
        transform: translateY(-10px); background: rgba(255,255,255,0.06); border-color: rgba(217, 70, 239, 0.4);
        box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(142,21,130,0.2);
    }
    .meet-card-bg {
        position: absolute; top: -50px; right: -50px; width: 150px; height: 150px;
        background: radial-gradient(circle, rgba(217, 70, 239, 0.1) 0%, transparent 70%); border-radius: 50%;
    }
    .meet-card-content { position: relative; z-index: 2; }
    .meet-card-icon {
        width: 50px; height: 50px; border-radius: 12px; background: rgba(142,21,130,0.2); display: flex;
        align-items: center; justify-content: center; font-size: 1.5rem; color: #d946ef; margin-bottom: 20px;
    }
    .meet-card-title { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
    .meet-card-date { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-bottom: 25px; }
    .meet-card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px;}
    .meet-status { font-size: 0.8rem; font-weight: 600; padding: 5px 12px; border-radius: 50px; background: rgba(24, 168, 85, 0.2); color: #18a855; }
    .meet-code-badge { font-weight: bold; color: rgba(255,255,255,0.8); letter-spacing: 1px; }

    .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;
    }
    .meets-empty-state i { font-size: 4rem; color: rgba(255,255,255,0.1); margin-bottom: 20px; }
    .meets-empty-state h3 { color: #fff; font-family: 'Syne', sans-serif; font-weight: 700; margin-bottom: 10px; }
    .meets-empty-state p { color: rgba(255,255,255,0.5); }

    /* =========================================
       MODALES CUSTOM
       ========================================= */
    .meet-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); display: none; justify-content: center; align-items: center; z-index: 1050; opacity: 0; transition: opacity 0.3s; }
    .meet-modal-overlay.active { display: flex; opacity: 1; }
    .meet-modal-content { background: #11081a; border: 1px solid rgba(255,255,255,0.1); width: 90%; max-width: 400px; padding: 30px; border-radius: 20px; text-align: center; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.5); transform: translateY(20px); transition: transform 0.3s; }
    .meet-modal-overlay.active .meet-modal-content { transform: translateY(0); }
    
    .meet-modal-close { position: absolute; top: 15px; right: 20px; background: none; border: none; color: rgba(255,255,255,0.5); font-size: 1.5rem; cursor: pointer; }
    .meet-modal-close:hover { color: #fff; }

    /* =========================================
       APP VR FULLSCREEN OVERLAY
       ========================================= */
    .vr-fullscreen-overlay { position: fixed; inset: 0; background: #000; z-index: 9999; display: none; opacity: 0; transition: opacity 0.5s; }
    .vr-fullscreen-overlay.active { display: block; opacity: 1; }
    .vr-fullscreen-iframe { width: 100%; height: 100%; border: none; }
    .btn-close-vr { position: absolute; top: 20px; right: 20px; background: rgba(255,0,0,0.2); color: #ff4d4d; border: 1px solid rgba(255,0,0,0.4); padding: 10px 20px; border-radius: 50px; font-weight: bold; cursor: pointer; z-index: 10000; backdrop-filter: blur(5px); transition: all 0.3s; }
    .btn-close-vr:hover { background: rgba(255,0,0,0.4); color: #fff; }

    /* =========================================
       COMPOSANT: TIMER COUNTDOWN
       ========================================= */
    .time-box {
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 12px;
        padding: 15px 20px;
        text-align: center;
        backdrop-filter: blur(10px);
        min-width: 80px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
    .time-box span {
        display: block;
        font-family: 'Syne', sans-serif;
        font-size: 2.2rem;
        font-weight: 800;
        color: #fff;
        line-height: 1;
        margin-bottom: 5px;
    }
    .time-box small {
        display: block;
        color: rgba(255,255,255,0.5);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .countdown-ends-live-row {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
        margin: 2px 0 10px;
    }

    .countdown-live-block {
        margin: 0;
        display: inline-flex;
        align-items: center;
        gap: 14px;
        padding: 14px 22px;
        border-radius: 16px;
        border: 1px solid rgba(24,168,85,0.5);
        background: linear-gradient(100deg, rgba(24,168,85,0.28), rgba(16,185,129,0.22), rgba(8,44,31,0.5));
        box-shadow: 0 14px 34px rgba(8, 155, 74, 0.28), 0 0 0 1px rgba(24,168,85,0.22) inset;
        animation: liveBlockBreathe 1.8s ease-in-out infinite;
    }

    .countdown-live-block .live-dot {
        width: 13px;
        height: 13px;
        border-radius: 50%;
        background: #0ce46b;
        box-shadow: 0 0 0 rgba(12,228,107,0.65);
        animation: liveDotPulse 1s ease-out infinite;
        flex-shrink: 0;
    }

    .countdown-live-block .live-text {
        font-family: 'Syne', sans-serif;
        font-size: clamp(0.92rem, 1.3vw, 1.15rem);
        letter-spacing: 2px;
        color: #f4fff8;
        font-weight: 800;
        white-space: nowrap;
        text-transform: uppercase;
        text-shadow: 0 0 14px rgba(12,228,107,0.32);
    }

    .countdown-live-block .live-wave {
        width: 32px;
        height: 14px;
        display: inline-block;
        background: repeating-linear-gradient(
            90deg,
            rgba(12,228,107,0.18) 0px,
            rgba(12,228,107,0.18) 3px,
            rgba(12,228,107,0.95) 3px,
            rgba(12,228,107,0.95) 6px
        );
        border-radius: 4px;
        animation: liveWaveMove 0.8s linear infinite;
    }

    @keyframes liveBlockBreathe {
        0% { transform: translateY(0) scale(1); }
        50% { transform: translateY(-1px) scale(1.015); }
        100% { transform: translateY(0) scale(1); }
    }

    @keyframes liveDotPulse {
        0% { box-shadow: 0 0 0 0 rgba(24,168,85,0.55); }
        70% { box-shadow: 0 0 0 10px rgba(24,168,85,0); }
        100% { box-shadow: 0 0 0 0 rgba(24,168,85,0); }
    }

    @keyframes liveWaveMove {
        0% { transform: translateX(0); }
        100% { transform: translateX(6px); }
    }

    .countdown-ends-at-highlight {
        margin: 0;
        font-family: 'Syne', sans-serif;
        font-size: clamp(1.15rem, 2vw, 1.65rem);
        font-weight: 800;
        letter-spacing: 1.1px;
        color: #facc15;
        text-transform: uppercase;
        text-shadow: 0 0 16px rgba(250, 204, 21, 0.28);
        line-height: 1.1;
    }

    @media (max-width: 576px) {
        .countdown-ends-live-row { gap: 8px; margin: 0 0 8px; }
        #countdown-timer { flex-wrap: wrap; justify-content: center; gap: 10px !important; }
        .time-box { padding: 10px 15px; min-width: 70px; flex: 1; }
        .time-box span { font-size: 1.6rem; }
        .time-box small { font-size: 0.6rem; }
        .countdown-live-block { padding: 10px 14px; gap: 9px; }
        .countdown-live-block .live-text { font-size: 0.75rem; letter-spacing: 1.2px; }
    }
    /* =========================================
       DRAPEAU ET LOADER VR
       ========================================= */
    @keyframes waveFlag {
        0% { transform: translateY(0) skewY(0deg); border-radius: 5px 5px 5px 30px; box-shadow: -5px 10px 15px rgba(0,0,0,0.2); }
        50% { transform: translateY(-10px) skewY(2deg); border-radius: 5px 5px 30px 5px; box-shadow: -10px 15px 25px rgba(0,0,0,0.3); }
        100% { transform: translateY(0) skewY(0deg); border-radius: 5px 5px 5px 30px; box-shadow: -5px 10px 15px rgba(0,0,0,0.2); }
    }
    .civ-flag {
        width: 200px;
        height: 130px;
        background: linear-gradient(90deg, #f97316 33.33%, #ffffff 33.33%, #ffffff 66.66%, #18a855 66.66%);
        position: relative;
        animation: waveFlag 2s ease-in-out infinite;
        display: flex;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
    .civ-flag::before {
        content: '';
        position: absolute;
        left: -10px;
        top: -20px;
        bottom: -50px;
        width: 10px;
        background: linear-gradient(to right, #ccc, #fff, #999);
        border-radius: 10px 10px 0 0;
        box-shadow: 2px 0 5px rgba(0,0,0,0.5);
    }
    .vr-wait-loader {
        position: absolute;
        inset: 0;
        background: rgba(7, 3, 10, 0.95);
        backdrop-filter: blur(10px);
        z-index: 10;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #fff;
        text-align: center;
        padding: 20px;
        transition: opacity 0.5s;
    }

    /* SPINNING LOADER PREMIERE CLASSE */
    .vr-spinner {
        width: 60px;
        height: 60px;
        border: 4px solid rgba(255, 255, 255, 0.05);
        border-top: 4px solid #18a855;
        border-radius: 50%;
        animation: spin-vr 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
        box-shadow: 0 0 15px rgba(24, 168, 85, 0.2);
    }
    @keyframes spin-vr {
        to { transform: rotate(360deg); }
    }

    /* RESPONSIVE */
    @media (max-width: 991px) {
        .hero-meta-vr { text-align: center; padding-top: 100px; min-height: fit-content; padding-bottom: 60px; display: flex; flex-direction: column; }
        .hero-vr-title { font-size: 2.2rem; }
        .hero-vr-title span { font-size: 2.5rem; padding: 5px 20px; border-radius: 40px; }
        .hero-meta-content { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; }
        .hero-image-wrapper { display: none; } /* On cache l'image sur mobile */
        .form-create-meet { margin: 0 auto; flex-direction: column; border-radius: 16px; padding: 10px; background: rgba(255,255,255,0.05); width: 100%; max-width: 400px; }
        .btn-gradient { border-radius: 12px; margin-top: 10px; width: 100%; }
        .bottom-bar-logos { gap: 15px; flex-wrap: wrap; position: relative; width: 100%; margin-top: 40px; padding: 15px; justify-content: center; }
        #countdown-timer { justify-content: center; }
    }
    @media (max-width: 768px) {
        .hero-vr-title { font-size: 1.8rem; letter-spacing: -0.5px; }
        .hero-vr-title span { font-size: 2rem; padding: 5px 15px; border-radius: 30px; }
        .hero-vr-desc { font-size: 0.95rem; margin-bottom: 20px; }
    }
    @media (max-width: 576px) {
        .admin-wrapper .container-custom {
            padding: 18px 12px 16px;
            border-radius: 14px;
        }
        #calendar {
            padding: 8px;
            border-radius: 12px;
        }
        .fc .fc-toolbar-title {
            font-size: 1rem;
        }
        .fc .fc-button {
            padding: 6px 9px !important;
            font-size: 0.75rem !important;
        }
        #feedbackMessage.feedback-toast {
            padding: 9px 10px;
            font-size: 0.82rem;
        }
        .hero-vr-title { font-size: 1.8rem; margin-bottom: 20px; }
        .hero-vr-title span { font-size: 1.8rem; padding: 5px 15px; margin-top: 5px; border-radius: 20px; display: inline-block; }
        .hero-vr-desc { font-size: 0.9rem; line-height: 1.5; padding: 0; margin-bottom: 25px; }
        .form-create-meet input { padding: 10px 15px; font-size: 0.9rem; }
        .btn-gradient { padding: 12px 20px; font-size: 1rem; border-radius: 12px; }
        .bottom-bar-logos span { font-size: 0.9rem; letter-spacing: 1px; }
        .hero-meta-content { padding: 0 20px; }
        .vr-app-section { padding: 40px 0; }
        .vr-app-section iframe:not(.salut-ceremony-iframe) { height: 60vh; }
    }
    
    /* Global scroll fix */
    body, html {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    .vr-app-section iframe {
        max-width: 100%;
    }

    /* =========================================
       STAGE WEBGL: HABILLAGE ET ETAT LIVE
       ========================================= */
    .vr-stage-shell {
        --salut-scene-width: min(1000px, 99vw);
        position: relative;
        /* Le card prend la largeur de la scene au lieu de contraindre la scene. */
        width: var(--salut-scene-width);
        max-width: 99%;
        margin: 0 auto;
        border-radius: 18px;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,0.08);
        background:
            radial-gradient(1200px 300px at 20% -30%, rgba(24,168,85,0.16), transparent 60%),
            radial-gradient(1200px 300px at 80% -30%, rgba(249,115,22,0.14), transparent 60%),
            #07030a;
        box-shadow: 0 16px 50px rgba(0,0,0,0.45);
    }

    .vr-stage-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 14px 18px;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        background: linear-gradient(90deg, rgba(24,168,85,0.08), rgba(249,115,22,0.06));
    }

    .vr-stage-note {
        margin: 0;
        font-family: 'DM Sans', sans-serif;
        color: rgba(255,255,255,0.62);
        font-size: 0.86rem;
        letter-spacing: 0.4px;
    }

    .ceremony-live-pill {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 7px 12px;
        border-radius: 999px;
        font-family: 'Syne', sans-serif;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 1.2px;
        color: #fff;
        border: 1px solid rgba(24,168,85,0.45);
        background: rgba(24,168,85,0.2);
        box-shadow: 0 0 0 0 rgba(24,168,85,0.45);
        animation: livePulse 1.6s ease-out infinite;
    }

    @keyframes livePulse {
        0% { box-shadow: 0 0 0 0 rgba(24,168,85,0.45); }
        70% { box-shadow: 0 0 0 12px rgba(24,168,85,0); }
        100% { box-shadow: 0 0 0 0 rgba(24,168,85,0); }
    }

    .vr-scene-frame {
        position: relative;
        width: 100%;
        height: 600px;
        max-height: 600px;
        margin: 0 auto;
        background: #050308;
        overflow: hidden;
    }

    .salut-ceremony-iframe {
        width: 100%;
        height: 100%;
        border: none;
        display: block;
        background: #050308;
    }

    @media (max-width: 768px) {
        .vr-stage-shell {
            width: 100%;
            max-width: 100%;
            border-radius: 0;
            border-left: none;
            border-right: none;
        }
        .vr-stage-head {
            padding: 12px 14px;
            flex-wrap: wrap;
        }
        .vr-scene-frame {
            width: 100%;
            height: 340px;
            max-height: none;
        }
    }
