:root {
    --bg-color: #F0F1EB;
    /* Fond clair Apple (--cloud-dancer) */
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-color: #0071e3;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.08);
    --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.06);
    --ui-color: #1d1d1f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none !important;
    /* Masque le curseur par défaut partout pour laisser place au curseur personnalisé */
}

html,
body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    width: 100vw;
    height: 100vh;
    overflow: hidden !important;
    position: fixed;
    user-select: none;
    cursor: none !important;
}

/* ==========================================================================
   CURSEUR PERSONNALISÉ (LOGIQUE EXACTE PORTFOLIO JASON)
   ========================================================================== */
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.06);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), height 0.3s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: left, top;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cursor-text {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1d1d1f;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.cursor-follower.active {
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.5);
}

/* État lorsque le curseur survole une bulle pour afficher "GLISSER" */
.cursor-follower.has-text {
    width: 84px;
    height: 84px;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(0, 113, 227, 0.65);
    box-shadow: 0 10px 30px rgba(0, 113, 227, 0.25);
}

.cursor-follower.has-text .cursor-text {
    opacity: 1;
    transform: scale(1);
    color: var(--accent-color);
}

.cursor-follower.grabbing {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.8);
}

.cursor-follower.grabbing .cursor-text {
    opacity: 0;
    transform: scale(0.5);
}

@media (max-width: 1024px),
(pointer: coarse) {
    .cursor-follower {
        display: none !important;
    }

    * {
        cursor: auto !important;
    }
}

/* --- 3D CANVAS CONTAINER (PLEIN ÉCRAN ET CENTRÉ) --- */
#webgl-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: auto;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    pointer-events: none;
}

.back-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    transform: translateX(-20px);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(-3px);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.title-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    opacity: 0;
    transform: translateY(-20px);
}

.product-name {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.buy-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 980px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.buy-btn:hover {
    background-color: #0077ED;
    transform: scale(1.03);
}

/* ==========================================================================
   SÉLECTEUR & COMPARATEUR DE MODÈLES DANS LE HEADER (CENTRE)
   ========================================================================== */
.model-compare-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 40px;
    padding: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 10;
}

.compare-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: none;
    background: transparent;
    padding: 7px 15px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: none !important;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.compare-toggle-btn .compare-icon {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.compare-toggle-btn:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.04);
}

.compare-toggle-btn.active {
    background: #ffffff;
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.09);
}

.compare-toggle-btn.active .compare-icon {
    opacity: 1;
    color: var(--accent-color);
}

.compare-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 113, 227, 0.08);
    color: var(--accent-color);
    border: none;
    padding: 7px 13px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: none !important;
    margin-left: 2px;
    transition: all 0.25s ease;
}

.compare-action-btn:hover {
    background: var(--accent-color);
    color: #ffffff;
    transform: scale(1.02);
}

/* --- NOTIFICATION MODÈLE 3D NON INTÉGRÉ --- */
.no-3d-notice {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    border-radius: 28px;
    padding: 32px 40px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 440px;
}

.no-3d-notice.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.no-3d-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 113, 227, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.no-3d-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.015em;
}

.no-3d-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* --- INDICATION DE GLISSER-DÉPOSER --- */
.drag-hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 10;
}

.drag-hint.visible {
    opacity: 1;
}

/* ==========================================================================
   BULLES DE FONCTIONNALITÉS — DISPOSITION SYMÉTRIQUE & ESTHÉTIQUE APPLE GLASS
   ========================================================================== */
.bubbles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10;
}

.bubble-item {
    position: absolute;
    width: 146px;
    height: 146px;
    border-radius: 50%;
    pointer-events: auto;
    cursor: none !important;
    opacity: 0;
    transform: scale(0);
    touch-action: none;
    user-select: none;
    will-change: transform, left, top;
    transition: box-shadow 0.35s ease;
}

.bubble-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(250, 252, 255, 0.65) 60%, rgba(235, 243, 255, 0.45) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 71, 227, 0.04), inset 0 2px 5px rgba(255, 255, 255, 1), inset 0 -2px 6px rgba(0, 113, 227, 0.06);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
    pointer-events: none;
}

/* Pastille d'icône soignée */
.bubble-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 113, 227, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    margin-bottom: 6px;
    transition: transform 0.35s ease, background-color 0.35s ease;
}

.bubble-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin-bottom: 2px;
}

.bubble-sub {
    font-size: 0.64rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.15;
    letter-spacing: -0.01em;
    max-width: 110px;
}

/* Effet au survol élégant Apple */
.bubble-item:hover:not(.is-dragging) .bubble-inner {
    transform: scale(1.15);
    border-color: rgba(0, 113, 227, 0.5);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 255, 0.85) 60%, rgba(225, 238, 255, 0.65) 100%);
    box-shadow: 0 24px 50px rgba(0, 113, 227, 0.18), 0 6px 16px rgba(0, 0, 0, 0.05), inset 0 2px 6px rgba(255, 255, 255, 1);
}

.bubble-item:hover:not(.is-dragging) .bubble-icon-wrap {
    transform: scale(1.1);
    background: rgba(0, 113, 227, 0.15);
}

/* État en cours de déplacement (Dragging) */
.bubble-item.is-dragging {
    z-index: 100 !important;
}

.bubble-item.is-dragging .bubble-inner {
    transform: scale(1.12);
    box-shadow: 0 30px 70px rgba(0, 113, 227, 0.32), inset 0 2px 8px rgba(255, 255, 255, 1);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.95);
}

/* Survol prêt à être lâché sur le modèle 3D */
.bubble-item.drop-ready .bubble-inner {
    transform: scale(1.24);
    border-color: #34c759;
    box-shadow: 0 30px 70px rgba(52, 199, 89, 0.38), inset 0 2px 8px rgba(255, 255, 255, 1);
}

/* ==========================================================================
   DISPOSITION SYMÉTRIQUE EN ARC (3 GAUCHE + 3 DROITE)
   ========================================================================== */
/* CÔTÉ GAUCHE (ARC HARMONIEUX) */
.b1 { top: 18vh; left: 11vw; }
.b3 { top: 50vh; left: 7.5vw; transform: translateY(-50%); }
.b5 { bottom: 18vh; left: 11vw; }

/* CÔTÉ DROIT (MIROIR PARFAIT) */
.b2 { top: 18vh; right: 11vw; }
.b4 { top: 50vh; right: 7.5vw; transform: translateY(-50%); }
.b6 { bottom: 18vh; right: 11vw; }

/* ==========================================================================
   MODALE D'EXPLICATION DE LA FONCTIONNALITÉ (STYLE APPLE GLASS)
   ========================================================================== */
.feature-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(240, 241, 235, 0.4);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
    padding: 24px;
}

.feature-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.feature-card {
    position: relative;
    width: 100%;
    max-width: 540px;
    background: rgba(255, 255, 255, 0.88);
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 32px;
    padding: 36px 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12), 0 10px 30px rgba(0, 113, 227, 0.08);
    transform: scale(0.85) translateY(20px);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.feature-overlay.active .feature-card {
    transform: scale(1) translateY(0);
}

.feature-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-color);
    background: rgba(0, 113, 227, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
}

.feature-icon-large {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(0, 113, 227, 0.15), rgba(0, 113, 227, 0.05));
    border: 1.5px solid rgba(0, 113, 227, 0.25);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.feature-title-text {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.25;
}

.feature-desc-text {
    font-size: 0.95rem;
    font-weight: 400;
    color: #4b4b50;
    line-height: 1.5;
    max-width: 460px;
}

.feature-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
}

.highlight-chip {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1d1d1f;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 6px 12px;
}

.feature-close-btn {
    margin-top: 12px;
    background: var(--text-primary);
    color: #ffffff;
    font-size: 0.90rem;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 980px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.feature-close-btn:hover {
    background: var(--accent-color);
    transform: scale(1.04);
}

/* ==========================================================================
   MODALE DE COMPARAISON PRO 1 VS PRO 2
   ========================================================================== */
.compare-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(240, 241, 235, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
    padding: 24px;
}

.compare-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.compare-modal-card {
    position: relative;
    width: 100%;
    max-width: 960px;
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(36px);
    -webkit-backdrop-filter: blur(36px);
    border-radius: 32px;
    padding: 36px 36px 30px 36px;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.14), 0 10px 30px rgba(0, 113, 227, 0.08);
    transform: scale(0.88) translateY(20px);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    max-height: 90vh;
    overflow-y: auto;
}

.compare-modal-overlay.active .compare-modal-card {
    transform: scale(1) translateY(0);
}

.compare-modal-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.compare-modal-title {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

.compare-modal-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    max-width: 580px;
}

.compare-table-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 1.15fr 1.25fr 1.5fr;
    gap: 1px;
    background: rgba(0, 0, 0, 0.07);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.compare-col-header {
    background: rgba(245, 246, 250, 0.95);
    padding: 12px 14px;
    font-size: 0.80rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.compare-col-header.col-pro2 {
    background: rgba(245, 248, 255, 0.95);
    color: #3b6ea8;
}

.compare-col-header.col-pro3 {
    background: linear-gradient(135deg, rgba(235, 244, 255, 0.98) 0%, rgba(220, 236, 255, 0.95) 100%);
    color: var(--accent-color);
    font-weight: 800;
    box-shadow: inset 2px 0 0 rgba(0, 113, 227, 0.4);
}

.badge-new {
    font-size: 0.60rem;
    background: rgba(0, 113, 227, 0.15);
    color: var(--accent-color);
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 600;
}

.badge-pro3 {
    font-size: 0.60rem;
    background: var(--accent-color);
    color: #ffffff;
    padding: 2px 7px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pro3-tag {
    font-size: 0.60rem;
    font-weight: 700;
    background: rgba(0, 113, 227, 0.15);
    color: var(--accent-color);
    padding: 2px 6px;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.compare-row-label {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.compare-cell {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 14px;
    font-size: 0.76rem;
    color: #55555c;
    display: flex;
    align-items: center;
    line-height: 1.35;
}

.compare-cell.col-pro2 {
    background: rgba(250, 252, 255, 0.9);
    color: #334155;
}

.compare-cell.col-pro3.highlight {
    background: rgba(240, 247, 255, 0.98);
    font-weight: 600;
    color: #004399;
    box-shadow: inset 2px 0 0 rgba(0, 113, 227, 0.25);
}

/* --- ÉCRAN DE CHARGEMENT --- */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    z-index: 1000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* --- RESPONSIVE MOBILE & TABLETTE --- */
@media (max-width: 768px) {
    header {
        padding: 18px 20px;
    }

    .product-name {
        font-size: 1.15rem;
    }

    .b1 { width: 110px; height: 110px; top: 12%; left: 6%; }
    .b2 { width: 115px; height: 115px; top: 12%; right: 6%; }
    .b3 { width: 110px; height: 110px; top: 52%; left: 4%; }
    .b4 { width: 115px; height: 115px; top: 50%; right: 4%; }
    .b5 { width: 110px; height: 110px; bottom: 12%; left: 8%; }
    .b6 { width: 115px; height: 115px; bottom: 12%; right: 8%; }

    .bubble-title { font-size: 0.72rem; }
    .bubble-sub { display: none; }
    .feature-card { padding: 24px 20px; border-radius: 24px; }
    .feature-title-text { font-size: 1.2rem; }
}

/* ==========================================================================
   OUTIL DE RÉGLAGE 3D EN DIRECT (LIVE 3D TUNER)
   ========================================================================== */
.live-tuner-toggle-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(22, 22, 26, 0.85);
    color: #f5f5f7;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 980px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    z-index: 2200;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.live-tuner-toggle-btn:hover {
    background: rgba(30, 30, 36, 0.95);
    transform: translateY(-2px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.live-tuner-panel {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 350px;
    max-height: 84vh;
    background: rgba(18, 18, 22, 0.88);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    z-index: 2300;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.96);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    color: #f5f5f7;
}

.live-tuner-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.tuner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.03);
}

.tuner-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.tuner-model-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 980px;
    background: rgba(0, 113, 227, 0.2);
    color: #2997ff;
    border: 1px solid rgba(0, 113, 227, 0.4);
    letter-spacing: -0.01em;
}

.tuner-state-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 980px;
    background: rgba(255, 69, 58, 0.2);
    color: #ff453a;
    border: 1px solid rgba(255, 69, 58, 0.3);
    transition: all 0.3s ease;
}

.tuner-state-pill.open {
    background: rgba(48, 209, 88, 0.2);
    color: #30d158;
    border-color: rgba(48, 209, 88, 0.3);
}

.tuner-close-btn {
    background: none;
    border: none;
    color: #a1a1a6;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.tuner-close-btn:hover {
    color: #ffffff;
}

.tuner-content {
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tuner-content::-webkit-scrollbar {
    width: 5px;
}
.tuner-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.tuner-section {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tuner-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0071e3;
}

.tuner-control {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tuner-control label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    font-weight: 500;
    color: #a1a1a6;
}

.val-badge {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.74rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    padding: 2px 6px;
    border-radius: 6px;
}

.tuner-control input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    cursor: pointer;
}

.tuner-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0071e3;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0, 113, 227, 0.6);
    transition: transform 0.15s ease;
}

.tuner-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.tuner-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.tuner-action-btn {
    font-family: inherit;
    font-size: 0.80rem;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-open-btn {
    background: #0071e3;
    color: #ffffff;
}
.toggle-open-btn:hover {
    background: #0077ed;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}
.copy-btn:hover {
    background: rgba(255, 255, 255, 0.20);
}

.reset-btn {
    background: rgba(255, 59, 48, 0.15);
    color: #ff453a;
}
.reset-btn:hover {
    background: rgba(255, 59, 48, 0.25);
}

.tuner-status {
    font-size: 0.72rem;
    text-align: center;
    color: #30d158;
    min-height: 16px;
    transition: opacity 0.3s ease;
}



