:root {
    --primary: #2563eb;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.full-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    /* opacity: 0; */
    /* visibility: hidden;*/
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.full-view-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Header de la vue plein écran */
.modal-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    z-index: 1002;
}

.close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Zone de l'image zoomable */
.zoom-viewport {
    flex: 1;
    overflow: hidden;
    /* Important pour cacher ce qui dépasse */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: grab;
}

.zoom-viewport:active {
    cursor: grabbing;
}

#fullImage {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    transition: transform 0.2s ease-out;
    /* Transition fluide pour le zoom */
    transform-origin: center center;
    user-select: none;
}

/* Barre d'outils de zoom */
.zoom-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    gap: 15px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.zoom-level {
    color: white;
    font-variant-numeric: tabular-nums;
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
}